/*
 Theme Name: D2SL
 Theme URI: https://d2sl.org
 Description: Drive 2 Save Lives Theme
 Author: Rob Davidson
 Author URI: https://www.linkedin.com/in/robinda/
 Template: Divi
 Version: 1.0.0
*/

/* =Theme customization starts here
------------------------------------------------------- */

/* ===================================================
   Campaign Page Template Styles
   =================================================== */

/* Campaign Header */
.campaign-page-template .campaign-header {
    background: linear-gradient(135deg, #2f54b9 0%, #1a3570 100%);
    padding: 40px 0;
    margin-bottom: 40px;
}

.campaign-page-template .campaign-title {
    color: #ffffff;
    font-size: 2.5em;
    font-weight: 700;
    margin: 0;
    text-align: center;
}

/* Campaign Layout */
.campaign-page-template .campaign-content-wrapper {
    padding: 0 0 60px 0;
}

.campaign-page-template .campaign-layout-columns {
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 980px) {
    .campaign-page-template .campaign-layout-columns {
        grid-template-columns: 1fr;
    }
}

/* Featured Image Column */
.campaign-page-template .campaign-featured-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.campaign-page-template .campaign-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
}

/* Stats Column */
.campaign-page-template .campaign-stats-wrapper {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Campaign Goal Section */
.campaign-page-template .campaign-goal-section {
    margin-bottom: 25px;
}

.campaign-page-template .campaign-goal-title {
    font-size: 1.2em;
    font-weight: 600;
    color: #2f54b9;
    margin: 0 0 15px 0;
}

.campaign-page-template .campaign-goal-amount {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: #333;
}

.campaign-page-template .raised-amount {
    font-size: 1.6em;
    font-weight: 700;
    color: #2f54b9;
}

.campaign-page-template .goal-amount {
    font-weight: 600;
    color: #666;
}

/* Progress Bar */
.campaign-page-template .campaign-progress-bar {
    margin-top: 15px;
}

.campaign-page-template .progress-bar-bg {
    width: 100%;
    height: 30px;
    background-color: #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.campaign-page-template .progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #2f54b9 0%, #4a6fd5 100%);
    border-radius: 15px;
    transition: width 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    position: relative;
}

.campaign-page-template .progress-percentage {
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Stats Grid */
.campaign-page-template .campaign-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.campaign-page-template .campaign-stat-item {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.campaign-page-template .stat-value {
    font-size: 1.8em;
    font-weight: 700;
    color: #2f54b9;
    margin-bottom: 5px;
}

.campaign-page-template .stat-label {
    font-size: 0.9em;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Donate Button */
.campaign-page-template .campaign-donate-button-wrapper {
    margin-top: auto;
}

.campaign-page-template .campaign-donate-button {
    display: block;
    width: 100%;
    padding: 18px 30px;
    background: #f7d800;
    color: #2f54b9;
    font-size: 1.3em;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    border: 3px solid #2f54b9;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.campaign-page-template .campaign-donate-button:hover {
    background: #2f54b9;
    color: #f7d800;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(47, 84, 185, 0.3);
}

/* Funded Badge */
.campaign-page-template .campaign-funded-badge {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    font-size: 1.3em;
    font-weight: 700;
    margin-top: auto;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.campaign-page-template .funded-icon {
    display: inline-block;
    width: 30px;
    height: 30px;
    background: #ffffff;
    color: #28a745;
    border-radius: 50%;
    line-height: 30px;
    margin-right: 10px;
    font-weight: 900;
}

/* Campaign Description */
.campaign-page-template .campaign-description-section {
    margin: 50px 0;
    padding: 40px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.campaign-page-template .campaign-description {
    font-size: 1.1em;
    line-height: 1.8;
    color: #333;
}

.campaign-page-template .campaign-description p {
    margin-bottom: 1.5em;
}

/* Donations & Donors Sections */
.campaign-page-template .campaign-donations-section,
.campaign-page-template .campaign-donors-section {
    margin: 50px 0;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 8px;
}

.campaign-page-template .section-title {
    font-size: 2em;
    font-weight: 700;
    color: #2f54b9;
    margin: 0 0 30px 0;
    padding-bottom: 15px;
    border-bottom: 3px solid #f7d800;
}

/* Social Sharing */
.campaign-page-template .campaign-social-sharing {
    margin: 50px 0;
    padding: 30px;
    background: #ffffff;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.campaign-page-template .campaign-social-sharing h3 {
    font-size: 1.3em;
    color: #2f54b9;
    margin-bottom: 20px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .campaign-page-template .campaign-title {
        font-size: 1.8em;
    }

    .campaign-page-template .campaign-stats-wrapper {
        padding: 20px;
    }

    .campaign-page-template .campaign-stats-grid {
        grid-template-columns: 1fr;
    }

    .campaign-page-template .raised-amount {
        font-size: 1.3em;
    }

    .campaign-page-template .campaign-donate-button {
        font-size: 1.1em;
        padding: 15px 25px;
    }

    .campaign-page-template .section-title {
        font-size: 1.5em;
    }
}

/* ================================================= */

.et_pb_blog_grid .et_pb_post .post-content a.more-link {
    padding: 10px 15px;
    background: #2f54b9;
    margin-top: 10px;
    display: inline-block;
    color: #f7d800;
    font-weight: bold;
    text-transform: capitalize;
    border-radius: 4px;
}
.et_pb_blog_grid h2 a {
    text-transform: capitalize;
}
.et_pb_blog_grid .et_pb_image_container img {
    background: white;
    border-bottom: 8px solid #2f54b9;
    box-shadow: 0 8px 0 #f7d800;
}