/* ==========================================================
   GAMBAR HERO
========================================================== */

/* ==========================================================
   HERO BERITA
========================================================== */

.berita-detail-hero{

    position:relative;

    min-height:540px;

    display:flex;

    align-items:center;

    overflow:hidden;

}


/* ==========================================================
   GAMBAR HERO
========================================================== */

.berita-hero-image{

    position:absolute;

    inset:0;

    z-index:0;

}


.berita-hero-image img{

    width:100%;

    height:100%;

    display:block;

    object-fit:cover;

    object-position:70% center;

}


/* ==========================================================
   OVERLAY GELAP
   Foto tetap jelas, teks putih lebih kontras
========================================================== */

.berita-hero-overlay{

    position:absolute;

    inset:0;

    z-index:1;

    background:
        linear-gradient(
            90deg,
            rgba(0,0,0,.78) 0%,
            rgba(0,0,0,.58) 35%,
            rgba(0,0,0,.25) 60%,
            rgba(0,0,0,.05) 100%
        );

}


/* ==========================================================
   ISI HERO
========================================================== */

.berita-detail-hero .container{

    position:relative;

    z-index:2;

    padding-top:40px;

    padding-bottom:40px;

}


/* ==========================================================
   BREADCRUMB
========================================================== */

.berita-detail-hero .breadcrumb-custom{

    margin-bottom:28px;

    color:#fff;

}


.berita-detail-hero .breadcrumb-custom a{

    color:#fff;

}


.berita-detail-hero .breadcrumb-custom span{

    color:rgba(255,255,255,.85);

}


/* ==========================================================
   LABEL
========================================================== */

.berita-detail-hero .page-hero-label{

    display:block;

    color:#8ff0c2;

    font-size:.9rem;

    font-weight:700;

    letter-spacing:3px;

    margin-bottom:18px;

}


/* ==========================================================
   JUDUL
========================================================== */

.berita-detail-hero h1{

    max-width:850px;

    margin:0;

    color:#fff;

    font-size:3.4rem;

    font-weight:700;

    line-height:1.15;

    text-shadow:
        0 2px 8px rgba(0,0,0,.35);

}


/* ==========================================================
   GARIS HIJAU
========================================================== */

.berita-detail-hero h1::after{

    content:"";

    display:block;

    width:68px;

    height:3px;

    margin-top:30px;

    background:#45c98a;

}


/* ==========================================================
   DESKRIPSI HERO
========================================================== */

.berita-detail-hero p{

    max-width:800px;

    margin-top:30px;

    margin-bottom:0;

    color:#fff;

    font-size:1.15rem;

    line-height:1.8;

    text-shadow:
        0 2px 6px rgba(0,0,0,.4);

}


/* ==========================================================
   META BERITA
========================================================== */

.news-detail-meta{

    display:flex;

    flex-wrap:wrap;

    align-items:center;

    gap:22px;

    padding:18px 0;

    color:#555;

    font-size:.95rem;

}


.news-detail-meta span{

    display:inline-flex;

    align-items:center;

    gap:7px;

}


.news-detail-meta i{

    color:#198754;

}


/* ==========================================================
   GAMBAR UTAMA BERITA
========================================================== */

.news-detail-image{

    width:100%;

    max-width:900px;

    margin:0 auto 35px;

    display:flex;

    justify-content:center;

    align-items:center;

    overflow:hidden;

    border-radius:16px;

    background:#f5f7f6;

}


.news-detail-image img{

    width:100%;

    height:auto;

    max-height:500px;

    object-fit:contain;

    display:block;

    border-radius:16px;

}

/* ==========================================================
   POSTER BERITA - UKURAN LEBIH KECIL
========================================================== */

.news-image.poster-berita{

    width:50%;

    max-width:450px;

    margin:0 auto 35px;

}


.news-image.poster-berita img{

    width:100%;

    height:auto;

    display:block;

    border-radius:16px;

}

/* ==========================================================
   ISI BERITA
========================================================== */

.news-detail-content{

    max-width:900px;

    margin:0 auto;

}


.news-detail-content p{

    color:#555;

    font-size:1.05rem;

    line-height:1.9;

    margin-bottom:22px;

}

/* ==========================================================
   GALERI FOTO - 3 KOLOM
========================================================== */

/* ==========================================================
   GALERI FOTO
========================================================== */

.news-detail-gallery{

    display:grid;

    grid-template-columns:repeat(3, minmax(0, 1fr));

    gap:18px;

    margin:40px 0;

}


/* ==========================================================
   FOTO DALAM BOX
========================================================== */

.news-detail-gallery figure{

    margin:0;

    aspect-ratio:4 / 3;

    overflow:hidden;

    border-radius:14px;

    background:#f5f7f6;

    box-shadow:
        0 6px 20px rgba(0,0,0,.06);

}


/* ==========================================================
   GAMBAR
========================================================== */

.news-detail-gallery img{

    width:100%;

    height:100%;

    display:block;

    object-fit:cover;

    transition:
        transform .35s ease;

}


/* ==========================================================
   HOVER
========================================================== */

.news-detail-gallery figure:hover img{

    transform:scale(1.04);

}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width:991px){

    .news-detail-gallery{

        grid-template-columns:repeat(2, minmax(0,1fr));

        gap:18px;

    }

}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width:767.98px){

    .news-detail-gallery{

        grid-template-columns:1fr;

        gap:20px;

        margin:30px 0 35px;

    }


    .news-detail-gallery figure{

        width:100%;

        aspect-ratio:4 / 3;

        border-radius:14px;

    }


    .news-detail-gallery img{

        width:100%;

        height:100%;

        object-fit:cover;

    }

}


/* ==========================================================
   FOTO DALAM BOX
========================================================== */

.news-detail-gallery figure{

    margin:0;

    aspect-ratio:4 / 3;

    overflow:hidden;

    border-radius:14px;

    background:#f5f7f6;

    box-shadow:
        0 6px 20px rgba(0,0,0,.06);

}


/* ==========================================================
   GAMBAR
========================================================== */

.news-detail-gallery img{

    width:100%;

    height:100%;

    display:block;

    object-fit:cover;

    transition:
        transform .35s ease;

}


/* ==========================================================
   HOVER
========================================================== */

.news-detail-gallery figure:hover img{

    transform:scale(1.04);

}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width:991px){

    .berita-detail-hero{

        min-height:480px;

    }


    .berita-hero-image img{

        object-position:center;

    }


    .berita-hero-overlay{

        background:
            linear-gradient(
                90deg,
                rgba(0,0,0,.72) 0%,
                rgba(0,0,0,.48) 45%,
                rgba(0,0,0,.15) 100%
            );

    }


    .berita-detail-hero h1{

        font-size:2.8rem;

        max-width:700px;

    }


    .berita-detail-hero p{

        font-size:1.05rem;

        max-width:650px;

    }

}

/* ==========================================================
   MOBILE
========================================================== */

@media (max-width:767px){

    .berita-detail-hero{

        min-height:520px;

        align-items:flex-start;

    }


    .berita-hero-image img{

        object-position:center;

    }


    .berita-hero-overlay{

        background:
            linear-gradient(
                180deg,
                rgba(0,0,0,.70) 0%,
                rgba(0,0,0,.48) 45%,
                rgba(0,0,0,.20) 100%
            );

    }


    .berita-detail-hero .container{

        padding-top:35px;

        padding-bottom:30px;

    }


    .berita-detail-hero .breadcrumb-custom{

        margin-bottom:24px;

    }


    .berita-detail-hero .page-hero-label{

        font-size:.8rem;

        letter-spacing:2.5px;

        margin-bottom:14px;

        color:#8ff0c2;

    }


    .berita-detail-hero h1{

        font-size:2.15rem;

        line-height:1.2;

    }


    .berita-detail-hero h1::after{

        width:55px;

        margin-top:22px;

    }


    .berita-detail-hero p{

        margin-top:22px;

        font-size:.98rem;

        line-height:1.7;

    }

}

/* ==========================================================
   FOTO + NARASI DALAM BOX
========================================================== */

.news-feature-box{

    display:grid;

    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);

    gap:30px;

    align-items:center;

    margin:40px 0;

    padding:25px;

    background:#f8faf9;

    border:1px solid #e2e8e5;

    border-radius:18px;

    box-shadow:0 8px 25px rgba(0,0,0,.05);

}


/* ==========================================================
   FOTO
========================================================== */

.news-feature-image{

    overflow:hidden;

    border-radius:14px;

    background:#fff;

}


.news-feature-image img{

    width:100%;

    height:auto;

    display:block;

    border-radius:14px;

}


/* ==========================================================
   KETERANGAN FOTO
========================================================== */

.news-feature-caption{

    padding:12px 15px;

    color:#666;

    font-size:.9rem;

    line-height:1.6;

    text-align:center;

}


/* ==========================================================
   TEKS DI SEBELAH FOTO
========================================================== */

.news-feature-text{

    padding:5px 10px;

}


.news-feature-text p{

    margin:0 0 18px;

    color:#555;

    font-size:1.05rem;

    line-height:1.9;

}


.news-feature-text p:last-child{

    margin-bottom:0;

}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width:991px){

    .news-feature-box{

        grid-template-columns:1fr 1fr;

        gap:22px;

        padding:20px;

    }


    .news-feature-text p{

        font-size:1rem;

        line-height:1.8;

    }

}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width:767.98px){

    .news-feature-box{

        grid-template-columns:1fr;

        gap:20px;

        margin:30px 0;

        padding:15px;

        border-radius:14px;

    }


    /* ======================================================
       FOTO
    ====================================================== */

    .news-feature-image{

        width:100%;

        border-radius:14px;

    }


    .news-feature-image img{

        width:100%;

        height:auto;

        min-height:180px;

        object-fit:cover;

        border-radius:14px;

    }


    /* ======================================================
       TEKS
    ====================================================== */

    .news-feature-text{

        padding:0 5px;

    }


    .news-feature-text p{

        font-size:1rem;

        line-height:1.8;

    }


    /* ======================================================
       CAPTION
    ====================================================== */

    .news-feature-caption{

        font-size:.85rem;

    }

}
/* ==========================================================
   END FOTO + NARASI DALAM BOX
========================================================== */