
.sej-hero-wrapper {
    position: relative;
    width: 100%;
  
    /* Gunakan min-height agar elastis saat konten lebih panjang dari layar */
    min-height: 100vh;
    min-height: 100dvh; 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 60px 20px; /* Padding disesuaikan */
    box-sizing: border-box;
    /* Izinkan konten terlihat jika melebihi layar */
    overflow: visible; 
}

.sej-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13, 14, 16, 0.85) 0%, rgba(13, 14, 16, 0.95) 75%, #0d0e10 100%);
    z-index: 1;
}

/* Container Konten Utama */
.sej-hero-container {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
}

/* Breadcrumb Navigation */
.sej-hero-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-family: 'Swiss721', 'Montserrat', sans-serif;
    font-size: 0.9rem;
}

.sej-hero-breadcrumb-link {
    color: #ffffff !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sej-hero-breadcrumb-link:hover {
    color: #f89917 !important;
}

.sej-hero-breadcrumb-separator {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

.sej-hero-breadcrumb-current {
    color: #f89917 !important;
    font-weight: 600;
}

/* Content */
.sej-hero-content {
    text-align: left;
}

/* Badge IDPFEST */
.sej-hero-badge {
    display: inline-block;
    color: #f89917;
    font-family: 'Swiss721', 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 14px;
    border: 1px solid rgba(248, 153, 23, 0.5);
    background: rgba(248, 153, 23, 0.08);
    padding: 5px 14px;
    border-radius: 50px;
    backdrop-filter: blur(4px);
}

/* Judul Utama */
.sej-hero-title {
    color: #ffffff;
    font-family: 'Swiss721', 'Montserrat', sans-serif;
    font-size: 40px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 20px;
    position: relative;
}

/* Garis Aksen Emas */
.sej-hero-title::after {
    content: '';
    display: block;
    width: 70px;
    height: 3px;
    background: linear-gradient(90deg, #bf953f 0%, #fcf6ba 25%, #b38728 50%, #fbf5b7 75%, #aa771c 100%);
    margin-top: 14px;
    border-radius: 2px;
}

.sej-hero-story p {
    color: white;
    font-size: 20px;
    line-height: 1.7;
    margin-bottom: 16px;
    font-weight: 400;
}

/* Section Statistik */
.sej-hero-stats {
    display: flex;
    gap: 50px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.sej-stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.sej-stat-number {
    font-family: 'Swiss721', 'Montserrat', sans-serif;
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 6px;
    background: linear-gradient(90deg, #bf953f 0%, #fcf6ba 25%, #b38728 50%, #fbf5b7 75%, #aa771c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 8px rgba(250, 155, 25, 0.3));
}

.sej-stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================
   ANIMASI TEXT FADE-IN & SLIDE-UP
   ========================================== */
.animate-fade {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-fade.show {
    opacity: 1;
    transform: translateY(0);
}

.sej-hero-breadcrumb.show { transition-delay: 0.1s; }
.sej-hero-badge.show      { transition-delay: 0.2s; }
.sej-hero-title.show      { transition-delay: 0.3s; }
.sej-hero-story.show      { transition-delay: 0.4s; }
.sej-hero-stats.show      { transition-delay: 0.5s; }

/* ==========================================
   RESPONSIF KHUSUS LAPTOP/MONITOR KECIL (HEIGHT SHORT)
   ========================================== */
@media screen and (max-height: 800px) and (min-width: 769px) {
    .sej-hero-wrapper {
        padding-top: 90px;
        padding-bottom: 40px;
    }

    .sej-hero-title {
        font-size: 1.8rem;
        margin-bottom: 14px;
    }


    .sej-hero-stats {
        margin-top: 20px;
        padding-top: 16px;
    }

    .sej-stat-number {
        font-size: 2.2rem;
    }
}

/* ==========================================
   RESPONSIF MOBILE (< 768px)
   ========================================== */
@media (max-width: 768px) {
    .sej-hero-wrapper {
        min-height: 100vh;
        min-height: 100dvh;
        padding: 90px 20px 40px 20px;
        background-attachment: scroll;
        overflow: visible;
    }

    .sej-hero-breadcrumb {
        font-size: 0.8rem;
        margin-bottom: 16px;
    }

    .sej-hero-badge {
        font-size: 0.75rem;
        padding: 4px 12px;
        margin-bottom: 12px;
    }

    .sej-hero-title {
        font-size: 1.65rem;
        margin-bottom: 18px;
    }

    .sej-hero-title::after {
        width: 60px;
        height: 3px;
        margin-top: 12px;
    }

    .sej-hero-story p {
        font-size: 0.9rem;
        line-height: 1.65;
        margin-bottom: 14px;
    }

    .sej-hero-stats {
        gap: 30px;
        margin-top: 24px;
        padding-top: 20px;
    }

    .sej-stat-number {
        font-size: 2.2rem;
    }

    .sej-stat-label {
        font-size: 0.8rem;
    }
}

/* ==========================================================================
   SECTION GALERI PERWAKILAN (ISOLATED & UNIQUE STYLES)
   ========================================================================== */
/* Outer Section dengan Background Image & Fixed Parallax */
.idp-rep-card-link {
    text-decoration: none !important;
    display: block !important;
}

.idp-rep-section {
    position: relative !important;
    width: 100% !important;
    padding: 80px 20px 160px 20px !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important; /* Parallax Effect */
    box-sizing: border-box !important;
    z-index: 5 !important;
    display: block !important;
    overflow: hidden !important;
}

/* Inner Container */
.idp-rep-container {
    position: relative !important;
    z-index: 2 !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Judul Section */
.idp-rep-title {
    text-align: center !important;
    color: #ffffff !important;
    font-size: 2.2rem !important;
    font-weight: 800 !important;
    margin-top: 0 !important;
    margin-bottom: 40px !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
}

/* Grid Wrapper - Presisi 4 Kolom dengan Jarak Rapi */
.idp-rep-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 18px !important; /* Jarak antar card pas, tidak terlalu renggang & tidak dempet */
    width: 100% !important;
    justify-content: center !important;
    align-items: stretch !important;
    box-sizing: border-box !important;
}

/* Card Item Perwakilan - Ukuran Presisi Sama Rata di Desktop */
.idp-rep-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 16px 12px 12px 12px !important;
    text-align: center !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
    
    width: 100% !important;
    min-width: 0 !important;
    aspect-ratio: 1 / 1 !important; 
    
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    box-sizing: border-box !important;
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), 
                box-shadow 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), 
                border-color 0.35s ease !important;
}

/* Card Hover Effect */
.idp-rep-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 16px 32px rgba(250, 155, 25, 0.25) !important;
    border-color: #fa9b19 !important;
}

/* Container Gambar / Logo */
.idp-rep-img-box {
    width: 100% !important;
    flex: 1 !important; /* Mengisi sisa ruang secara dinamis */
    height: 0 !important; /* Trik Cross-Browser & Safari agar pembagian ruang flex konsisten */
    
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
    position: relative !important;
    padding: 4px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.idp-rep-img-box img {
    max-width: 85% !important;
    max-height: 85% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
    transition: transform 0.35s ease !important;
}

.idp-rep-card:hover .idp-rep-img-box img {
    transform: scale(1.06) !important;
}

/* Teks Nama Perwakilan */
.idp-rep-card-title {
    color: #111111 !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    margin: auto 0 0 0 !important; /* Mendorong teks selalu berada di paling bawah */
    padding-top: 8px !important;
    border-top: 1px solid #e2e8f0 !important;
    width: 100% !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.4px !important;
    box-sizing: border-box !important;
    
    /* Mencegah tinggi teks merusak grid (max 2 baris) */
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    min-height: 2.4em !important; /* Menyamakan area tempat teks 1 baris maupun 2 baris */
    
    transition: color 0.3s ease, border-color 0.3s ease !important;
}

.idp-rep-card:hover .idp-rep-card-title {
    color: #fa9b19 !important;
    border-top-color: #fa9b19 !important;
}

/* Teks Nama Perwakilan dengan Garis Pembatas Tipis */
.idp-rep-card-title {
    color: #111111 !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
    padding-top: 8px !important;
    border-top: 1px solid #e2e8f0 !important; /* Garis pembatas tipis */
    width: 100% !important;
    line-height: 1.25 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.4px !important;
    box-sizing: border-box !important;
    transition: color 0.3s ease, border-color 0.3s ease !important;
}

.idp-rep-card:hover .idp-rep-card-title {
    color: #fa9b19 !important;
    border-top-color: #fa9b19 !important;
}

/* State & Animasi Scroll (Fade Up) */
.idp-rep-animate {
    opacity: 0 !important;
    transform: translateY(30px) !important;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out !important;
}

.idp-rep-animate.idp-rep-show {
    opacity: 1 !important;
    transform: translateY(0) !important;
}


/* ==========================================================================
   RESPONSIF (TABLET & MOBILE)
   ========================================================================== */

/* Laptop / Desktop Kecil (3 Kolom) */
@media (max-width: 992px) {
    .idp-rep-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 16px !important;
    }
    
    .idp-rep-title {
        font-size: 1.8rem !important;
        margin-bottom: 32px !important;
    }

    .idp-rep-card-title {
        font-size: 0.85rem !important;
        padding-top: 6px !important;
    }
}

/* Mobile / Smartphone (2 Kolom) */
@media (max-width: 600px) {
    .idp-rep-section {
        padding: 50px 12px !important;
        background-attachment: scroll !important;
    }

    .idp-rep-title {
        font-size: 1.3rem !important;
        margin-bottom: 24px !important;
    }

    .idp-rep-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .idp-rep-card {
        padding: 10px 8px 8px 8px !important;
        border-radius: 12px !important;
    }

    .idp-rep-img-box img {
        max-width: 98% !important;
        max-height: 98% !important;
    }

    .idp-rep-card-title {
        font-size: 0.78rem !important;
        padding-top: 5px !important;
    }
}

/* Styling Link Card */
.idp-rep-card-link {
    text-decoration: none !important;
    display: block !important;
}


/* Custom Aspect Ratio 3:4 untuk Video Portrait */
.doc-bento-video.is-portrait-3-4 {
    aspect-ratio: 3 / 4 !important;
    max-width: 480px; /* Menjaga ukuran video tidak terlalu lebar di desktop */
    margin: 0 auto;
}

.doc-bento-video.is-portrait-3-4 video {
    object-fit: contain !important; /* Menjaga seluruh video terlihat utuh tanpa terpotong */
}

@media (max-width: 768px) {
    .doc-bento-video.is-portrait-3-4 {
        aspect-ratio: 3 / 4 !important;
        width: 100%;
        max-width: 100%;
    }

    .doc-bento-video.is-portrait-3-4 video {
        object-fit: contain !important; /* Mencegah video terpotong/fullscreen di mobile */
    }
}