/* ================= BREADCRUMB ================= */
.gallery-breadcrumb{
    display:flex;
    align-items:center;
    gap:8px;
    margin-top:-40px;
    margin-bottom:0;
    margin-left:-115px;
    transform:translateY(-33px);
    color:#ffffff;
    font-size:14px;
    font-weight:500;
}

.gallery-breadcrumb i{
    font-size:9px;
    opacity:.8;
}

.gallery-breadcrumb a{
    color:#fff;
    text-decoration:none;
    font-weight:600;
}

.gallery-breadcrumb a:hover{
    color:#98d733;
    text-decoration:none;
}

.gallery-breadcrumb span{
    font-weight:750;
    color:#caf5f2;
    text-decoration:none;   
}

/* ================= HERO ================= */
.gallery-hero{
    height:460px;
    position:relative;
    overflow:hidden;
    background-image:url("/static/img/profil/hero.jpg");
    background-size:cover;
    background-position:right center;
    display:flex;
    align-items:center;
    z-index: 1;
    min-height:420px;
    padding-bottom:120px;
}

/* RED GRADIENT */
.gallery-hero-overlay{
    position:absolute;
    inset:0;
    background:
    linear-gradient(
        90deg,
        rgba(190,0,0,0.95) 0%,
        rgba(205,0,0,0.75) 35%,
        rgba(205,0,0,0.25) 70%,
        rgba(252, 251, 251, 0.05)
    );
}

/* DOT */
.gallery-hero::before{
    content:"";
    position:absolute;
    top:25px;
    left:35px;
    width:120px;
    height:120px;
    background-image:
    radial-gradient(
        rgba(255,255,255,.8) 2px,
        transparent 2px
    );
    background-size:16px 16px;
    opacity:.5;
    z-index:3;
}

/* CONTENT */
.gallery-hero-container{
    position:relative;
    z-index:2;
    width:100%;
    padding-left:80px;
}

.gallery-hero-content{
    max-width:800px;
    color:white;
    transform:translateY(20px);
    padding-left:100px;
    padding-bottom: 110px;
}

.gallery-label{
    color:white;
    font-size:52px;
    font-weight:700;
    margin:0 0 40px -80px;
    line-height:1.15;
}

.gallery-hero p{
    font-size:18px;
    line-height:1.6;
    color:white;
    max-width: 620px;
    margin-bottom: 0;
    margin-left:-77px;
}

/* =========================================================
   SOFT FADE BAGIAN BAWAH HERO
========================================================= */
.gallery-hero::after{
    content:"";
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    height:120px;
    z-index:5;
    background:
        linear-gradient(
            to bottom,
            rgba(255,255,255,0) 0%,
            rgba(255,255,255,.35) 35%,
            rgba(255,255,255,.75) 65%,
            #ffffff 100%
        );
    pointer-events:none;
}

/*=====================================
PAGE
=====================================*/
.gallery-page-wrapper{
    position:relative;
    margin-top:-55px;
    margin-bottom:80px;
    z-index:5;
}

.gallery-page{
    background:#fff;
    border-radius:34px;
    padding:40px;
    padding-bottom:80px;
    box-shadow:0 20px 60px rgba(0,0,0,.08);
}

.section-title{
    font-size:36px;
    font-weight:700;
    color:#14213d;
    margin-bottom:30px;
}

/* ================= GRID ================= */
.gallery-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:28px;
}

.gallery-grid p{
    grid-column:1/-1;
    text-align:center;
    background:#fff;
    padding:60px;
    border-radius:20px;
}

/* ================= CARD ================= */
.gallery-card{
    display:block;

    background:#fff;

    border-radius:22px;

    overflow:hidden;

    color:inherit;
    text-decoration:none;

    box-shadow:0 12px 35px rgba(0,0,0,.08);

    transition:.3s;
}

.gallery-card:hover{
    transform:translateY(-8px);
    box-shadow:0 18px 45px rgba(0,0,0,.12);
    text-decoration:none;
}

.gallery-card:hover .gallery-title{
    color:#d71920;
}

/* ================= IMAGE ================= */
.gallery-thumb{
    height:220px;
    overflow:hidden;
}

.gallery-thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:.4s;
}

.gallery-card:hover img{
    transform:scale(1.08);
}

/* ================= BODY ================= */
.gallery-body{
    padding:22px;
}

.gallery-date{
    display:inline-flex;
    align-items:center;
    gap:8px;
    font-size:14px;
    color:#64748b;
    margin-bottom:14px;
}

.gallery-title{
    margin:0 0 18px;
    line-height:1.5;
    text-decoration:none !important;
}

/* ================= BUTTON ================= */
.gallery-readmore{
    display:inline-flex;
    align-items:center;
    gap:8px;
    color:#d71920;
    font-weight:700;
    text-decoration:none;
    transition:.2s;
}

.gallery-readmore:hover{
    gap:14px;
    text-decoration:none;
}

/* ================= PAGINATION ================= */
.pagination{
    margin:60px 0 20px;
    display:flex;
    justify-content:center;
    gap:10px;
    flex-wrap:wrap;
}

.pagination a,
.pagination span{
    width:46px;
    height:46px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:12px;
    background:#fff;
    border:1px solid #e2e8f0;
    font-weight:700;
    color:#475569;
    text-decoration:none;
    transition:.2s;
}

.pagination a:hover{
    background:#d71920;
    color:#fff;
}

.pagination .active{
    background:#d71920;
    color:#fff;
    border-color:#d71920;
}

/*==================================================
FEATURED GALLERY
==================================================*/
.featured-gallery{
    display:grid;
    grid-template-columns:minmax(0, 48fr) minmax(0, 52fr);
    align-items:center;
    gap:50px;
    background:#fff;
    border-radius:32px;
    padding:32px;
    margin-bottom:70px;
    box-shadow:0 18px 50px rgba(0,0,0,.08);
    transition:.35s;
    color:inherit;
    text-decoration:none;
}

.featured-gallery,
.featured-gallery *,
.featured-gallery h2,
.featured-gallery .featured-gallery-button{
    text-decoration:none !important;
}

.featured-gallery:hover{
    transform:translateY(-6px);
    box-shadow:0 28px 70px rgba(0,0,0,.12);
}

.featured-gallery:hover h2{
    color:#d71920;
}

.featured-gallery-image{
    height:340px;
    overflow:hidden;
    border-radius:20px;
}

.featured-gallery-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center center;
    display:block;
    transition:.5s;
}

.featured-gallery:hover img{
    transform:scale(1.05);
}

.featured-gallery-content{
    padding:0;
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.featured-gallery-content h2{
    margin:14px 0 22px;

    font-size:36px;
    font-weight:700;
    line-height:1.25;

    color:#14213d;

    text-decoration:none !important;

    overflow-wrap:break-word;
    word-break:normal;  
}

.featured-gallery:hover h2{
    color:#d71920;
}

.featured-gallery-badge{
    display:inline-block;
    background:#D71920;
    color:#fff;
    padding:10px 22px;
    border-radius:50px;
    font-size:13px;
    font-weight:700;
    margin-bottom:20px;
    width:max-content;
    letter-spacing:.5px;
}

.featured-gallery-type{
    display:inline-block;
    width:max-content;
    padding:8px 18px;
    border-radius:999px;
    color:#fff;
    font-size:13px;
    font-weight:700;
}

.featured-gallery-type.video{
    background:#2563eb;
}

.featured-gallery-type.artikel{
    background:#16a34a;
}

.featured-gallery-type.foto{
    background:#d71920;
}

.featured-gallery-date{
    color:#64748b;
    font-size:15px;
    margin-bottom:18px;
}

.featured-gallery-excerpt{
    font-size:17px;
    line-height:1.8;
    color:#64748b;
    margin-bottom:30px;
}

.featured-gallery-button{
    display:inline-flex;
    align-items:center;
    gap:8px;

    width:max-content;

    color:#D71920;
    font-weight:700;
    font-size:18px;

    text-decoration:none !important;

    transition:.25s;
}

.featured-gallery-button:hover{
    gap:12px;
    color:#D71920;
    text-decoration:none !important;
}



/* ================= MOBILE ================= */
@media(max-width:600px){
    /* =====================================================
       HERO MOBILE
    ===================================================== */
    .gallery-hero{
        height:300px;
        position:relative;
        overflow:hidden;
        align-items:flex-start;
        background-position:68% center;
    }

    /* -----------------------------------------------------
       OVERLAY MOBILE
    ----------------------------------------------------- */
    .gallery-hero-overlay{
        background:
        linear-gradient(
            90deg,
            rgba(190,0,0,.94) 0%,
            rgba(205,0,0,.72) 42%,
            rgba(205,0,0,.25) 75%,
            rgba(255,255,255,.05) 100%
        );
    }

    /* -----------------------------------------------------
       DOT PATTERN
    ----------------------------------------------------- */
    .gallery-hero::before{
        top:22px;
        left:18px;
        width:90px;
        height:90px;
        background-size:13px 13px;
        opacity:.45;
    }

    /* -----------------------------------------------------
       CONTENT
    ----------------------------------------------------- */
    .gallery-hero-container{
        width:100%;
    }

    .gallery-hero-content{
        max-width:none;
        padding-left:20px;
        padding-right:20px;
        padding-top:-10px;
        padding-bottom:0;
        transform:none;
    }
    
    /* -----------------------------------------------------
       BREADCRUMB
    ----------------------------------------------------- */
    .gallery-breadcrumb{
        display:none;

    }

    /* -----------------------------------------------------
       JUDUL
    ----------------------------------------------------- */
    .gallery-label{
        font-size:30px;
        line-height:1.15;
        font-weight:800;
        margin:0 0 12px -81px;
        color:#fff;
   }

    /* -----------------------------------------------------
       DESKRIPSI
    ----------------------------------------------------- */
    .gallery-hero p{
        font-size:14px;
        line-height:1.55;
        max-width:330px;
        margin:0 0 0 -79px;
        color:#fff;
    }

    /* =====================================================
       SOFT FADE BAWAH HERO
    ===================================================== */
    .gallery-hero::after{
        height:100px;
        background:
        linear-gradient(
            to bottom,
            rgba(255,255,255,0) 0%,
            rgba(255,255,255,.18) 25%,
            rgba(255,255,255,.65) 65%,
            #fff 100%
        );
        z-index:5;
        pointer-events:none;
    }

    /* =====================================================
       WRAPPER ISI
    ===================================================== */

    .gallery-page-wrapper{
        width:100%;
        max-width:none;

        margin:20px 0 40px;
        padding:0;

        box-sizing:border-box;
    }



    /* =====================================================
       CONTAINER ISI
    ===================================================== */

    .gallery-page{
        width:100%;
        max-width:none;

        box-sizing:border-box;

        padding:28px 20px 40px;

        border-radius:24px;

        background:#fff;

        box-shadow:0 10px 30px rgba(0,0,0,.06);
    }


    /* =====================================================
       FEATURED GALLERY
       MOBILE
       TEKS KIRI | GAMBAR KANAN
    ===================================================== */

    .featured-gallery{
        width:100%;

        box-sizing:border-box;

        display:grid;

        grid-template-columns:52% 48%;

        align-items:center;

        gap:0;

        padding:14px;

        margin:0 0 52px;

        border-radius:20px;

        background:#fff;

        box-shadow:0 10px 30px rgba(0,0,0,.07);

        overflow:hidden;
        color:inherit;
        text-decoration:none;
    }

    .featured-gallery:hover{
        transform:none;
        box-shadow:0 10px 30px rgba(0,0,0,.07);
        text-decoration:none;
    }

    .featured-gallery:hover h2{
        color:#d71920;
    }
    /* =====================================================
       GAMBAR FEATURED
       → KANAN
    ===================================================== */

    .featured-gallery-image{
        order:2;

        width:100%;
        height:150px;

        overflow:hidden;

        border-radius:12px;
    }


    .featured-gallery-image img{
        width:100%;
        height:100%;

        display:block;

        object-fit:cover;
        object-position:center;

        transition:none;
    }


    /* =====================================================
       KONTEN FEATURED
       → KIRI
    ===================================================== */

    .featured-gallery-content{
        order:1;

        width:100%;
        min-width:0;

        box-sizing:border-box;

        padding:4px 10px 4px 4px;

        display:flex;

        flex-direction:column;

        justify-content:center;

        align-items:flex-start;
    }


    /* =====================================================
       TIPE FEATURED
       SESUAI HTML:
       .featured-type
    ===================================================== */

    .featured-gallery-content .featured-type{
        display:inline-block;

        width:max-content;

        padding:6px 9px;

        margin:0 0 8px;

        border-radius:999px;

        color:#fff;

        font-size:10px;

        font-weight:700;

        line-height:1.2;

        white-space:nowrap;
    }

    .featured-gallery-content .featured-type.video{
        background:#2563eb;
    }

    .featured-gallery-content .featured-type.artikel{
        background:#16a34a;
    }

    .featured-gallery-content .featured-type.foto{
        background:#d71920;
    }

    /* =====================================================
       TANGGAL FEATURED
    ===================================================== */
    .featured-gallery-date{
        display:block;

        width:100%;

        margin:0 0 7px;

        font-size:12px;

        line-height:1.4;

        color:#64748b;
    }

    /* =====================================================
       JUDUL FEATURED
    ===================================================== */
    .featured-gallery-content h2{
        width:100%;

        margin:0 0 9px;

        font-size:18px;

        line-height:1.3;

        font-weight:700;

        color:#172554;

        display:-webkit-box;

        -webkit-box-orient:vertical;

        -webkit-line-clamp:3;

        overflow:hidden;

        overflow-wrap:break-word;
    }

    /* =====================================================
       EXCERPT FEATURED
       MOBILE DISEMBUNYIKAN
    ===================================================== */
    .featured-gallery-excerpt{
        display:none;
    }

    /* =====================================================
       BUTTON FEATURED
       SESUAI HTML:
       .featured-button
    ===================================================== */

    .featured-gallery-button{
        display:inline-flex;

        align-items:center;

        gap:5px;

        font-size:12px;

        line-height:1.4;

        font-weight:600;

        color:#dc2626;

        text-decoration:none;

        white-space:nowrap;
    }

    .featured-gallery-button:hover{
        gap:5px;

        color:#dc2626;
    }


    /* =====================================================
       JUDUL SECTION
       KONTEN EDUKASI
    ===================================================== */

    .gallery-page .section-title{
        width:100%;

        margin:0 0 24px;

        font-size:28px;

        line-height:1.2;

        font-weight:700;

        color:#172554;

        text-align:left;
    }


    /* =====================================================
       GRID
       MOBILE = 1 KOLOM
    ===================================================== */
    .gallery-grid{
        width:100%;

        display:grid;

        grid-template-columns:1fr;

        gap:16px;

        margin:0;
    }


    /* =====================================================
       CARD
       TEKS KIRI | GAMBAR KANAN
    ===================================================== */

    .gallery-card{
        width:100%;

        min-width:0;

        box-sizing:border-box;

        display:grid;

        grid-template-columns:52% 48%;

        align-items:center;

        gap:0;

        min-height:150px;

        padding:12px;

        margin:0;

        overflow:hidden;

        border-radius:18px;

        background:#fff;

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

        transition:none;
    }


    .gallery-card:hover{
        transform:none;

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


    /* =====================================================
       GAMBAR CARD
       → KANAN
    ===================================================== */

    .gallery-thumb{
        order:2;

        width:100%;

        height:125px;

        overflow:hidden;

        border-radius:12px;

        position:relative;
    }


    .gallery-thumb img{
        width:100%;
        height:100%;

        display:block;

        object-fit:cover;

        object-position:center;

        transition:none;
    }


    .gallery-card:hover img{
        transform:none;
    }


    /* =====================================================
       BODY CARD
       → KIRI
    ===================================================== */

    .gallery-body{
        order:1;

        width:100%;

        min-width:0;

        box-sizing:border-box;

        padding:4px 10px 4px 4px;

        display:flex;

        flex-direction:column;

        justify-content:center;

        align-items:flex-start;
    }


    /* =====================================================
       TANGGAL
    ===================================================== */

    .gallery-date{
        display:block;

        width:100%;

        margin:0 0 7px;

        font-size:12px;

        line-height:1.4;

        color:#64748b;
    }


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

    .gallery-title{
        width:100%;

        margin:0 0 9px;

        font-size:18px;

        line-height:1.3;

        font-weight:700;

        color:#172554;

        overflow-wrap:break-word;

        word-break:normal;

        display:-webkit-box;

        -webkit-box-orient:vertical;

        -webkit-line-clamp:3;

        overflow:hidden;
    }

    /* =====================================================
       BACA SELENGKAPNYA
    ===================================================== */

    .gallery-readmore{
        display:inline-flex;

        align-items:center;

        gap:5px;

        font-size:12px;

        line-height:1.4;

        font-weight:600;

        color:#dc2626;

        text-decoration:none;

        white-space:nowrap;

        transition:none;
    }


    .gallery-readmore:hover{
        gap:5px;

        color:#dc2626;
    }


    /* =====================================================
       BADGE PADA GAMBAR
       UNTUK SAAT INI TIDAK DITAMPILKAN
       KARENA TARGET UI BERITA TIDAK MEMAKAINYA
    ===================================================== */

    .gallery-thumb .gallery-badge{
        display:none;
    }


    /* =====================================================
       PAGINATION
    ===================================================== */

    .pagination{
        display:flex;

        align-items:center;

        justify-content:center;

        flex-wrap:wrap;

        gap:8px;

        width:100%;

        margin:32px 0 0;
    }


    .pagination a,
    .pagination span{
        display:flex;

        align-items:center;

        justify-content:center;

        min-width:40px;

        height:40px;

        padding:0 10px;

        box-sizing:border-box;

        border-radius:10px;

        font-size:14px;

        text-decoration:none;
    }


    .pagination .active{
        background:#2196f3;

        color:#fff;

        border-color:#2196f3;
    }

    /* =====================================================
       GRID
    ===================================================== */

    .gallery-grid{
        display:grid !important;
        grid-template-columns:1fr !important;
        gap:16px !important;
        width:100% !important;
        margin:0 !important;
    }


    /* =====================================================
       CARD
       SEMUA CARD TINGGI SAMA
    ===================================================== */

    .gallery-grid .gallery-card{
        display:flex !important;
        flex-direction:row !important;
        align-items:center !important;

        width:100% !important;
        height:145px !important;
        min-height:145px !important;
        max-height:145px !important;

        padding:12px !important;
        margin:0 !important;

        box-sizing:border-box !important;

        overflow:hidden !important;

        border-radius:18px !important;

        background:#fff !important;

        box-shadow:0 8px 25px rgba(0,0,0,.07) !important;

        text-decoration:none !important;
        color:inherit !important;
    }

    .gallery-grid .gallery-card:hover{
        transform:none !important;
        box-shadow:0 8px 25px rgba(0,0,0,.07) !important;
    }


    /* =====================================================
       BODY / TEKS — KIRI
    ===================================================== */

    .gallery-grid .gallery-card .gallery-body{
        order:1 !important;
        width:46% !important;
        max-width:46% !important;
        flex:0 0 46% !important;

        min-width:0 !important;

        height:100% !important;

        padding:4px 8px 4px 4px !important;

        box-sizing:border-box !important;

        display:flex !important;
        flex-direction:column !important;

        align-items:flex-start !important;
        justify-content:center !important;

        overflow:hidden !important;
    }


    /* =====================================================
       TANGGAL
    ===================================================== */

    .gallery-grid .gallery-card .gallery-date{
        display:block !important;

        width:100% !important;

        margin:0 0 6px !important;

        font-size:11px !important;

        line-height:1.3 !important;

        color:#64748b !important;

        flex-shrink:0 !important;
    }


    /* =====================================================
       JUDUL
       MAKSIMAL 3 BARIS
    ===================================================== */

    .gallery-grid .gallery-card .gallery-title{
        display:-webkit-box !important;

        width:100% !important;
        max-width:100% !important;

        margin:0 0 7px !important;

        font-size:17px !important;

        line-height:1.3 !important;

        font-weight:700 !important;

        color:#172554 !important;

        overflow:hidden !important;

        text-overflow:ellipsis !important;

        -webkit-line-clamp:3 !important;
        -webkit-box-orient:vertical !important;

        flex-shrink:0 !important;
    }

    .gallery-grid .gallery-card:hover .gallery-title{
        color:#d71920 !important;
    }

    /* =====================================================
       READ MORE
       SELALU DI BAGIAN BAWAH AREA TEKS
    ===================================================== */

    .gallery-grid .gallery-card .gallery-readmore{
        display:block !important;

        width:auto !important;

        margin-top:auto !important;

        font-size:11px !important;

        line-height:1.3 !important;

        font-weight:600 !important;

        color:#dc2626 !important;

        white-space:nowrap !important;

        text-decoration:none !important;

        flex-shrink:0 !important;
    }


    /* =====================================================
       GAMBAR — KANAN
    ===================================================== */

    .gallery-grid .gallery-card .gallery-thumb{
        order:2 !important;
        width:54% !important;
        max-width:54% !important;
        flex:0 0 54% !important;
        min-width:0 !important;
        height:125px !important;
        margin:0 !important;
        padding:0 !important;
        box-sizing:border-box !important;
        overflow:hidden !important;
        border-radius:12px !important;
        position:relative !important;
    }

    /* =====================================================
       IMAGE
    ===================================================== */

    .gallery-grid .gallery-card .gallery-thumb img{
        display:block !important;

        width:100% !important;
        height:100% !important;

        max-width:none !important;
        max-height:none !important;

        margin:0 !important;
        padding:0 !important;

        object-fit:cover !important;

        object-position:center !important;

        border-radius:12px !important;

        transform:none !important;
    }

    /* =====================================================
       BADGE
       TIDAK DIPAKAI PADA CARD MOBILE
    ===================================================== */

    .gallery-grid .gallery-card .gallery-badge{
        display:none !important;
    }

}