/* =========================================================
   NWDCo - Go Green Page Styles
   Sustainability & Green Responsibility Page
   ========================================================= */

/* ---------------------------------------------------------
   Section: Sustainability Hero
   --------------------------------------------------------- */
.sustainability-hero {
    background: #fff;
    padding: 80px 0;
}

.sustainability-hero .sustainability-subtitle {
    font-size: 22px;
    color: #2e7d32;
    margin-bottom: 20px;
}

.sustainability-hero .sustainability-img img {
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* ---------------------------------------------------------
   Section: Certified Green Commitment
   --------------------------------------------------------- */
.certified-green {
    background: #f4f7fc;
    padding: 80px 0;
}

.certified-green .certified-img img {
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.certified-green .certified-content h4 {
    color: #0f204b;
    margin-bottom: 15px;
}

.certified-green .green-initiatives-list {
    list-style: none;
    padding: 0;
}

.certified-green .green-initiatives-list li {
    padding: 8px 0;
    font-size: 15px;
    color: #555;
    border-bottom: 1px solid #eee;
}

.certified-green .green-initiatives-list li:last-child {
    border-bottom: none;
}

.certified-green .green-initiatives-list li i {
    color: #0f204b;
    margin-right: 10px;
}

/* ---------------------------------------------------------
   Section: Green Technology Vision
   --------------------------------------------------------- */
.green-vision {
    background: #f9f9f9;
    padding: 80px 0;
}

.green-vision .vision-item {
    background: #fff;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.green-vision .vision-item i {
    font-size: 36px;
    color: #0f204b;
    margin-bottom: 10px;
    display: block;
}

.green-vision .vision-item h5 {
    color: #2e7d32;
    margin-bottom: 8px;
}

.green-vision .vision-img img {
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* ---------------------------------------------------------
   Section: Certifications - EQUAL HEIGHT CARDS
   --------------------------------------------------------- */
.certifications {
    background: #fff;
    padding: 80px 0;
}

/* Override Bootstrap row behavior for certifications grid */
.certifications .cert-row {
    display: flex;
    flex-wrap: nowrap;
    margin-left: -15px;
    margin-right: -15px;
}

/* Each column takes equal width */
.certifications .cert-row>.cert-col {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding-left: 15px;
    padding-right: 15px;
    display: flex;
    margin-bottom: 30px;
    box-sizing: border-box;
}

/* Card fills the column height and uses flex column */
.certifications .cert-card {
    background: linear-gradient(135deg, #f4f7fc 0%, #f4f7fc 100%);
    padding: 30px 25px;
    border-radius: 12px;
    border: 2px solid #f4f7fc;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    min-height: 420px;
}

/* Body takes available space, pushing year badge to bottom */
.certifications .cert-card-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.certifications .cert-card-body figure {
    margin: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.certifications .cert-card-body figure a {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 280px;
    width: 100%;
}

.certifications .cert-card-body figure img {
    max-width: 100%;
    max-height: 280px;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    border-radius: 4px;
}

/* Year badge at bottom */
.certifications .cert-year {
    background: #0f204b;
    color: #fff;
    display: inline-block;
    padding: 10px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 700;
    margin-top: 20px;
    flex-shrink: 0;
}

.certifications .cert-icon {
    margin-bottom: 20px;
}

.certifications .cert-icon i {
    font-size: 48px;
    color: #0f204b;
}

.certifications .cert-card h4 {
    color: #2e7d32;
    margin-bottom: 15px;
}

.certifications .cert-placeholder {
    margin-top: 15px;
}

.certifications .cert-placeholder img {
    max-width: 100%;
    margin: 0 auto;
    opacity: 0.6;
}

/* ---------------------------------------------------------
   Section: Building for the Future
   --------------------------------------------------------- */
.building-future {
    background: linear-gradient(135deg, #0f204b 0%, #152d69 100%);
    padding: 80px 0;
    color: #fff;
}

.building-future .future-content h2 {
    color: #fff;
    margin-bottom: 25px;
}

.building-future .future-content h2 strong {
    color: #4e68aa;
}

.building-future .future-content p {
    color: #e8f5e9;
}

.building-future .future-img img {
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ---------------------------------------------------------
   Responsive Adjustments
   --------------------------------------------------------- */
@media (max-width: 991px) {
    .certifications .cert-card {
        padding: 25px 15px;
        min-height: 380px;
    }

    .certifications .cert-card-body figure a {
        min-height: 220px;
    }

    .certifications .cert-card-body figure img {
        max-height: 220px;
    }
}

@media (max-width: 767px) {

    .sustainability-hero,
    .certified-green,
    .green-vision,
    .certifications,
    .building-future {
        padding: 50px 0;
    }

    .sustainability-hero .sustainability-subtitle {
        font-size: 18px;
    }

    .certifications .cert-row {
        flex-wrap: wrap;
    }

    .certifications .cert-row>.cert-col {
        flex: 0 0 100%;
        max-width: 100%;
        display: block;
        margin-bottom: 20px;
    }

    .certifications .cert-card {
        min-height: auto;
        padding: 25px 20px;
    }

    .certifications .cert-card-body figure a {
        min-height: auto;
    }

    .certifications .cert-card-body figure img {
        max-height: 250px;
    }

    .green-vision .vision-item {
        padding: 20px 15px;
    }

    .green-vision .vision-item i {
        font-size: 28px;
    }

    .building-future .future-content h2 {
        font-size: 24px;
    }
}