/* ==========================================================================
   BAGIAN 1: STAT CARD & KOMITMEN (BIRU) - DENGAN EFEK INTERAKTIF
   ========================================================================== */

.environment-commitment-section {
    background: linear-gradient(180deg, #f9fdf9 0%, #edf7ef 100%);
    margin-top: -78px;
    overflow: hidden;
    position: relative;
}
.environment-commitment-section::before {
    background-image:
        repeating-radial-gradient(
            ellipse at -3% 105%,
            transparent 0 19px,
            rgba(64, 132, 78, 0.11) 20px 21px,
            transparent 22px 35px
        ),
        repeating-radial-gradient(
            ellipse at 104% 4%,
            transparent 0 19px,
            rgba(64, 132, 78, 0.1) 20px 21px,
            transparent 22px 35px
        ),
        radial-gradient(
            ellipse at 7% 88%,
            rgba(145, 193, 132, 0.16) 0 2%,
            transparent 2.4%
        ),
        radial-gradient(
            ellipse at 92% 20%,
            rgba(145, 193, 132, 0.13) 0 2%,
            transparent 2.4%
        );
    background-position:
        left bottom,
        right top,
        left bottom,
        right top;
    background-repeat: no-repeat;
    background-size:
        480px 340px,
        480px 340px,
        340px 240px,
        340px 240px;
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: 0;
}
.environment-commitment-section > .container {
    position: relative;
    z-index: 2;
}
.environment-commitment-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 12px 32px rgba(10, 51, 103, 0.1);
    padding: clamp(2rem, 4vw, 3.25rem);
}
.environment-commitment-card .section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
}
.environment-commitment-card .service-single__left-item {
    color: #000000;
    line-height: 1.7;
    margin: 0 auto;
    max-width: 960px;
}
.environment-commitment-card .service-single__left-item p:last-child {
    margin-bottom: 0;
}

@media (max-width: 575.98px) {
    .environment-commitment-section {
        margin-top: -42px;
    }
    .environment-commitment-card {
        border-radius: 18px;
        padding: 1.5rem 1rem;
    }
}

.stat-card-blue {
    background: #4a90b5;
    border-radius: 4px;
    min-height: 180px;
    transition: all 0.4s ease; /* Tambahan: Biar gerakan smooth */
}

/* Efek Tambahan: Membuat kartu biru terangkat saat disorot */
.stat-card-blue:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.info-card-img {
    height: 300px;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease; /* Tambahan: Biar zoom smooth */
}

/* Efek Tambahan: Gambar membesar sedikit saat disorot */
.info-card-img:hover {
    transform: scale(1.02);
}

.info-card-img.tall {
    height: 500px;
}

.info-card-img.stacked {
    height: 100%;
}

.metric-stack-row {
    flex-direction: column;
    flex-wrap: nowrap;
}

.metric-stack-row > .col-12 {
    display: flex;
    flex: 1 1 0;
    min-height: 0;
}

.metric-stack-row .info-card-img.stacked {
    flex: 1;
    min-height: 0;
}

.card-overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    z-index: 2;
    transition: all 0.3s ease; /* Tambahan: Biar teks naik sedikit */
}

.card-overlay-text h3 {
    font-size: clamp(1.45rem, 2vw, 2rem);
    line-height: 1.12;
}

.card-overlay-text h3 small {
    font-size: 0.62em;
    font-weight: 700;
}

.card-overlay-text p {
    line-height: 1.35;
    margin-bottom: 0;
}

/* Efek Tambahan: Teks naik sedikit saat disorot */
.info-card-img:hover .card-overlay-text {
    padding-bottom: 30px;
}

.bg-image-card {
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    overflow: hidden;
    min-height: 180px;
    transition: all 0.4s ease; /* Tambahan */
}

.card-blue-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(74, 144, 181, 0.5);
    z-index: 1;
    transition: all 0.4s ease; /* Tambahan */
}

/* Efek Tambahan: Overlay biru jadi sedikit lebih gelap saat disorot */
.bg-image-card:hover .card-blue-overlay {
    background: rgba(74, 144, 181, 0.7);
}

.stat-card-blue .icon-box,
.stat-card-blue .text-white {
    position: relative;
    z-index: 2;
}

.metric-card-copy {
    position: relative;
    z-index: 2;
}

.metric-card-copy span {
    color: #ffffff;
    display: block;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.metric-card-copy h2 {
    color: #ffffff;
    font-size: clamp(2.25rem, 4vw, 3.6rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 10px;
}

.metric-card-copy h2 small {
    color: #ffffff;
    font-size: 0.48em;
}

.metric-card-copy p {
    color: #ffffff;
    line-height: 1.45;
    margin-bottom: 0;
    max-width: 680px;
}

/* Flora and fauna gallery */
.flora-fauna-gallery {
    background-color: #f8fffc;
    background-image: url("../images/tanggung-jawab/lingkungan/bg_flora_fauna.jpeg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
    padding: 76px 0 64px;
    position: relative;
}
.flora-fauna-gallery::before {
    background: rgba(248, 255, 252, 0.55);
    content: "";
    inset: 0;
    position: absolute;
}
.flora-fauna-gallery .container {
    position: relative;
    z-index: 1;
}
.flora-fauna-gallery__heading {
    margin: 0 auto 28px;
    max-width: 720px;
    text-align: center;
}
.flora-fauna-gallery__heading h2 {
    color: #122a5e;
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 15px;
}
.flora-fauna-gallery__heading p {
    color: #000000 !important;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.environment-heading-divider {
    background: linear-gradient(90deg, #e67e22, #f39c12);
    border-radius: 2px;
    height: 4px;
    margin: 0 auto 25px;
    width: 180px;
}
.flora-fauna-gallery__heading h2,
.climate-action-area h2 {
    margin-bottom: 15px !important;
}
.environment-heading-divider--navy {
    background: linear-gradient(90deg, #e67e22, #f39c12);
}
.flora-fauna-gallery__coverflow {
    margin: 0 auto;
    max-width: 1100px;
    position: relative;
}
.flora-fauna-gallery__stage {
    height: 330px;
    perspective: 1300px;
    position: relative;
    transform-style: preserve-3d;
}
.flora-fauna-gallery__item {
    /* border: 6px solid rgba(255, 255, 255, 0.9); */
    border: 6px solid rgb(28 94 31);
    border-radius: 30px;
    box-shadow: 0 16px 30px rgba(19, 70, 42, 0.2);
    cursor: pointer;
    height: 270px;
    left: 50%;
    margin: 0;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    top: 20px;
    transform: translateX(-50%) scale(0.68);
    transition:
        transform 600ms ease,
        opacity 600ms ease,
        filter 600ms ease;
    width: min(44vw, 430px);
}
.flora-fauna-gallery__item img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}
.flora-fauna-gallery__item figcaption {
    background: linear-gradient(transparent, rgba(7, 47, 28, 0.84));
    bottom: 0;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    left: 0;
    padding: 40px 18px 15px;
    position: absolute;
    right: 0;
}
.flora-fauna-gallery__item.is-active {
    filter: none;
    opacity: 1;
    transform: translate3d(-50%, 0, 70px) scale(1);
    z-index: 3;
}
.flora-fauna-gallery__item.is-prev {
    filter: saturate(0.7) brightness(0.85);
    opacity: 0.8;
    transform: translate3d(-142%, 0, -70px) rotateY(-35deg) scale(0.84);
    z-index: 2;
}
.flora-fauna-gallery__item.is-next {
    filter: saturate(0.7) brightness(0.85);
    opacity: 0.8;
    transform: translate3d(42%, 0, -70px) rotateY(35deg) scale(0.84);
    z-index: 2;
}
.flora-fauna-gallery__item.is-far {
    pointer-events: none;
    z-index: 0;
}
.flora-fauna-gallery__click-zone {
    background: transparent;
    border: 0;
    bottom: 24px;
    cursor: pointer;
    padding: 0;
    position: absolute;
    top: 20px;
    width: calc(50% - 210px);
    z-index: 4;
}
.flora-fauna-gallery__click-zone--prev {
    left: 0;
}
.flora-fauna-gallery__click-zone--next {
    right: 0;
}
.flora-fauna-gallery__arrow {
    align-items: center;
    background: #fff;
    border: 0;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(19, 70, 42, 0.18);
    color: #126238;
    display: flex;
    font-size: 1rem;
    height: 48px;
    justify-content: center;
    position: absolute;
    top: 46%;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
    width: 48px;
    z-index: 5;
}
.flora-fauna-gallery__arrow:hover {
    background: #126238;
    color: #fff;
    transform: scale(1.08);
}
.flora-fauna-gallery__arrow--prev {
    left: 0;
}
.flora-fauna-gallery__arrow--next {
    right: 0;
}

@media (max-width: 767px) {
    .flora-fauna-gallery {
        padding: 56px 0 40px;
    }
    .flora-fauna-gallery__heading p {
        font-size: 0.95rem;
    }
    .flora-fauna-gallery__stage {
        height: 260px;
    }
    .flora-fauna-gallery__item {
        height: 220px;
        width: min(70vw, 320px);
    }
    .flora-fauna-gallery__item.is-prev {
        transform: translate3d(-118%, 0, -60px) rotateY(-35deg) scale(0.72);
    }
    .flora-fauna-gallery__item.is-next {
        transform: translate3d(18%, 0, -60px) rotateY(35deg) scale(0.72);
    }
    .flora-fauna-gallery__click-zone {
        bottom: 18px;
        top: 16px;
        width: calc(50% - 135px);
    }
    .flora-fauna-gallery__arrow {
        height: 40px;
        top: 45%;
        width: 40px;
    }
    .flora-fauna-gallery__arrow--prev {
        left: 4px;
    }
    .flora-fauna-gallery__arrow--next {
        right: 4px;
    }
}

.environment-stat-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: 210px 330px;
}

.environment-stat-feature {
    grid-column: 1 / span 2;
    grid-row: 1;
    height: 100%;
    min-height: 0;
}

.environment-stat-card {
    height: 100%;
    min-height: 0;
}

.environment-stat-seed {
    grid-column: 1;
    grid-row: 2;
}

.environment-stat-variety {
    grid-column: 2;
    grid-row: 2;
}

.environment-stat-side {
    grid-column: 3;
    grid-row: 1 / span 2;
    display: grid;
    gap: 16px;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    min-height: 0;
}

.environment-stat-grid .card-overlay-text h3 {
    overflow-wrap: anywhere;
}

.environment-stat-grid .card-overlay-text p {
    font-size: clamp(0.9rem, 1.05vw, 1.05rem);
}

/* Efek Tambahan: Ikon truk bergerak sedikit */
.stat-card-blue:hover .icon-box i {
    transform: translateX(10px);
    transition: all 0.4s ease;
}

/* ==========================================================================
   BAGIAN 2: CLIMATE ACTION (HIJAU) - FIXED HOVER DESCRIPTION
   ========================================================================== */

.climate-action-area h2 {
    color: #e6ee9c !important;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px !important;
}

.action-card {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    height: 350px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.action-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.action-card:hover img {
    transform: scale(1.1);
}

/* Box Judul & Deskripsi */
.action-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-weight: bold;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1.2;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

/* Saat Hover, box naik ke atas */
.action-card:hover .action-title {
    min-height: 50%;
    background: rgba(0, 0, 0, 0.85);
}

/* DESKRIPSI: Sembunyikan total di awal */
.desc-text {
    font-size: 12px;
    font-weight: normal;
    text-align: center;
    margin: 0; /* Reset margin p */

    /* State Sembunyi */
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;

    transition: all 0.4s ease;
}

/* Munculkan deskripsi HANYA saat kartu disorot mouse (hover) */
.action-card:hover .desc-text {
    opacity: 1;
    visibility: visible;
    max-height: 200px; /* Batas tinggi maksimal */
    margin-top: 10px;
}

/* ==========================================================================
   BAGIAN 3: RESPONSIVE - PERTAHANKAN ASLI
   ========================================================================== */

@media (max-width: 767px) {
    .environment-stat-grid {
        grid-template-columns: 1fr;
        grid-template-rows: none;
    }

    .environment-stat-feature,
    .environment-stat-seed,
    .environment-stat-variety,
    .environment-stat-side,
    .environment-stat-carbon,
    .environment-stat-compost {
        grid-column: auto;
        grid-row: auto;
        min-height: 260px;
    }

    .environment-stat-side {
        display: grid;
        gap: 16px;
        grid-template-rows: none;
    }

    .stat-card-blue {
        padding-left: 20px !important;
        justify-content: center;
        text-align: center;
        flex-direction: column;
    }
    .stat-card-blue .icon-box {
        margin-right: 0 !important;
        margin-bottom: 10px;
    }
    .info-card-img.stacked {
        height: 300px;
        min-height: 300px;
    }
    .metric-card-copy p {
        max-width: 100%;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .environment-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: 220px 300px 300px;
    }

    .environment-stat-feature {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .environment-stat-seed {
        grid-column: 1;
        grid-row: 2;
    }

    .environment-stat-variety {
        grid-column: 2;
        grid-row: 2;
    }

    .environment-stat-side {
        display: grid;
        gap: 16px;
        grid-column: 1 / -1;
        grid-row: 3;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: 300px;
    }
}
