/* ===== COLORS & BASE ===== */
:root {
    --gov-blue: #0f2a44;
    --gov-blue-light: #1f5e7a;
    --gov-gold: #d4a017;
    --bg-light: #f8f9fa;
}

section {
    scroll-margin-top: 80px;
    overflow-x: hidden;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    height: 100vh;
    background-color: #0f2a44;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    transition: background-image 1.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 42, 68, 0.3) 0%, rgba(15, 42, 68, 0.95) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 5;
    max-width: 900px;
    padding: 0 20px;
    width: 100%;
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    font-weight: 300;
    letter-spacing: 3px;
    color: #e0e0e0;
    text-transform: uppercase;
    margin-bottom: 2.5rem;
}

/* ===== HERO BUTTONS ===== */
.hero-btn-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background: var(--gov-gold);
    color: #000;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(212, 160, 23, 0.3);
}

.btn-hero-primary:hover {
    background: #fff;
    transform: translateY(-3px);
    color: #000;
}

.btn-hero-outline {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    color: #fff;
    padding: 12px 35px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 500;
    text-decoration: none;
    transition: 0.3s;
}

.btn-hero-outline:hover {
    background: #fff;
    color: var(--gov-blue);
    transform: translateY(-3px);
}

/* ===== ANIMATIONS ===== */
.fade-up {
    animation: fadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== GLOBAL COMPONENTS ===== */
.section-title {
    color: var(--gov-blue);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.title-underline {
    width: 80px;
    height: 4px;
    background-color: var(--gov-gold);
    margin: 0 auto 40px auto;
    border-radius: 2px;
}

/* ==========================================
   MODERN ABOUT SECTION (GAMBAR KIRI, TEKS KANAN, FITUR BAWAH)
   ========================================== */
.modern-about-section {
    background-color: #f8fafc;
    overflow: hidden;
}

/* --- BAGIAN ATAS (Gambar & Teks) --- */
.about-image-wrapper {
    position: relative;
    z-index: 1;
    padding-right: 25px;
    padding-bottom: 25px;
}

.about-image-backdrop {
    position: absolute;
    top: 25px;
    right: 0;
    bottom: 0;
    left: 25px;
    background: linear-gradient(135deg, rgba(15, 42, 68, 0.08), rgba(212, 160, 23, 0.2));
    border-radius: 30px;
    z-index: -1;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.about-image-wrapper:hover .about-image-backdrop {
    transform: translate(12px, 12px);
}

.about-main-img {
    width: 100%;
    border-radius: 30px;
    box-shadow: 0 15px 35px rgba(15, 42, 68, 0.12);
    aspect-ratio: 4/5;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.about-image-wrapper:hover .about-main-img {
    transform: translateY(-5px);
}

.about-floating-badge {
    position: absolute;
    bottom: 40px;
    left: -20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 18px 25px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 1);
    animation: floatUpDown 4s ease-in-out infinite;
}

.badge-icon {
    width: 48px;
    height: 48px;
    background: var(--gov-gold);
    color: #000;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.about-modern-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background: rgba(212, 160, 23, 0.1);
    color: var(--gov-gold);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid rgba(212, 160, 23, 0.2);
}

.about-title {
    color: var(--gov-blue);
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
}

/* Garis pembatas emas */
.about-divider {
    width: 65px;
    height: 4px;
    background: linear-gradient(90deg, var(--gov-gold), transparent);
    border-radius: 2px;
}

/* Pemotong Teks Otomatis */
.about-description-box {
    position: relative;
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Tombol Asimetris Modern */
.about-btn-primary {
    display: inline-flex;
    align-items: center;
    background: var(--gov-blue);
    color: white;
    padding: 8px 8px 8px 24px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s ease;
    box-shadow: 0 10px 25px rgba(15, 42, 68, 0.15);
    gap: 15px;
}

.about-btn-primary:hover {
    background: #163d63;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(15, 42, 68, 0.25);
}

.btn-icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gov-gold);
    color: #000;
    border-radius: 50%;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.about-btn-primary:hover .btn-icon-circle {
    transform: rotate(-45deg);
}

.about-btn-primary i {
    transition: transform 0.3s ease;
}

/* --- BAGIAN BAWAH (Cards Keunggulan & Fasilitas) --- */
.feature-card {
    background: #ffffff;
    border-radius: 28px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(15, 42, 68, 0.04);
    border: 1px solid rgba(241, 245, 249, 1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: transparent;
    transition: background 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(15, 42, 68, 0.08);
    border-color: rgba(212, 160, 23, 0.2);
}

.feature-card:hover::before {
    background: var(--gov-gold);
}

.feature-card-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 30px;
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.bg-primary-subtle {
    background: rgba(15, 42, 68, 0.08);
    color: var(--gov-blue);
}

.bg-warning-subtle {
    background: rgba(212, 160, 23, 0.15);
    color: var(--gov-gold);
}

.feature-title {
    font-weight: 800;
    color: var(--gov-blue);
    margin: 0;
    font-size: 1.4rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 16px;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 1.05rem;
    color: #334155;
    font-weight: 600;
    line-height: 1.5;
}

.feature-list li i {
    font-size: 1.3rem;
    margin-top: 1px;
}

@keyframes floatUpDown {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 991.98px) {
    .about-image-wrapper {
        margin-bottom: 2rem;
        padding-right: 0;
    }

    .about-main-img {
        aspect-ratio: 16/10;
    }
}

@media (max-width: 767.98px) {
    .modern-about-section {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    .about-title {
        font-size: 1.6rem !important;
        margin-bottom: 0.8rem !important;
    }

    .about-modern-tag {
        font-size: 0.65rem;
        padding: 5px 12px;
    }

    .about-divider {
        width: 45px;
        height: 3px;
        margin-bottom: 1rem !important;
    }

    .about-description-box {
        font-size: 0.85rem;
        line-height: 1.6;
        -webkit-line-clamp: 5;
        margin-bottom: 1.5rem !important;
    }

    /* Tombol asimetris presisi di HP */
    .about-btn-primary {
        width: 100%;
        justify-content: space-between;
        padding: 8px 8px 8px 20px;
        font-size: 0.85rem;
    }

    .btn-icon-circle {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    /* Floating Badge Dikecilkan Maksimal */
    .about-floating-badge {
        left: 5px;
        bottom: -15px;
        padding: 8px 12px;
        border-radius: 12px;
        gap: 10px;
    }

    .about-floating-badge .badge-text span.fw-bold {
        font-size: 0.85rem !important;
    }

    .about-floating-badge .badge-text span.text-muted {
        font-size: 0.65rem !important;
    }

    .badge-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
        border-radius: 8px;
    }

    .about-image-backdrop {
        display: none;
    }

    /* Penyesuaian Card 2 Kolom Ekstra Kecil */
    .feature-card {
        padding: 12px;
        border-radius: 12px;
    }

    .feature-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 12px;
    }

    .feature-icon {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
        border-radius: 8px;
    }

    .feature-title {
        font-size: 0.85rem;
        line-height: 1.2;
    }

    .feature-list {
        gap: 6px;
    }

    .feature-list li {
        font-size: 0.65rem;
        gap: 6px;
        align-items: flex-start;
        line-height: 1.4;
    }

    .feature-list li i {
        font-size: 0.75rem;
        margin-top: 2px;
    }
}

/* ===== DOKUMENTASI (HOVER ZOOM CARD) ===== */
/* ==========================================
   MODERN DOKUMENTASI SECTION (GALERI)
   ========================================== */
.modern-doc-section {
    background-color: #f8fafc;
    /* Latar belakang senada dengan Tentang */
    border-top: 1px solid rgba(226, 232, 240, 0.8);
}

/* Header Styling */
.modern-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    background: rgba(212, 160, 23, 0.1);
    color: var(--gov-gold);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid rgba(212, 160, 23, 0.2);
}

.modern-section-title {
    color: var(--gov-blue);
    font-weight: 800;
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    letter-spacing: -1px;
    margin-bottom: 15px;
}

.modern-title-underline {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--gov-gold), transparent);
    border-radius: 2px;
    margin-bottom: 20px;
}

.modern-section-subtitle {
    color: #64748b;
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 650px;
}

/* --------------------------------------
   GRID HORIZONTAL SCROLL (GALERI SWIPE)
   -------------------------------------- */
.grid-swipe-row {
    display: grid;
    gap: 24px;
    overflow-x: auto;
    padding-bottom: 25px;
    /* Ruang untuk efek hover naik */
    padding-top: 10px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;

    /* Scrollbar Tipis Elegan */
    scrollbar-width: thin;
    scrollbar-color: rgba(15, 42, 68, 0.3) rgba(241, 245, 249, 1);
}

/* Kustomisasi Scrollbar (Chrome/Edge/Safari) */
.grid-swipe-row::-webkit-scrollbar {
    height: 8px;
}

.grid-swipe-row::-webkit-scrollbar-track {
    background: rgba(241, 245, 249, 1);
    border-radius: 10px;
}

.grid-swipe-row::-webkit-scrollbar-thumb {
    background: rgba(15, 42, 68, 0.3);
    border-radius: 10px;
}

.grid-swipe-row::-webkit-scrollbar-thumb:hover {
    background: var(--gov-gold);
}

.grid-swipe-item {
    scroll-snap-align: start;
    height: 100%;
}

/* Aturan Kolom Grid Responsive */
@media (min-width: 1200px) {

    /* PC Besar: 3 Kartu Terlihat, Geser ke Kanan */
    .grid-swipe-row {
        grid-auto-columns: calc(33.333% - 16px);
        grid-auto-flow: column;
    }
}

@media (min-width: 768px) and (max-width: 1199.98px) {

    /* Tablet/Laptop: 2 Kartu Terlihat */
    .grid-swipe-row {
        grid-auto-columns: calc(50% - 12px);
        grid-auto-flow: column;
    }
}

/* --------------------------------------
   DOC CARD MODERN UI
   -------------------------------------- */
.doc-card {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(241, 245, 249, 1);
    box-shadow: 0 10px 30px rgba(15, 42, 68, 0.04);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
}

.doc-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(15, 42, 68, 0.08);
    border-color: rgba(212, 160, 23, 0.2);
}

.doc-img-wrapper {
    position: relative;
    width: 100%;
    height: 230px;
    overflow: hidden;
}

.doc-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.doc-card:hover .doc-img {
    transform: scale(1.08);
}

/* Tag Kaca (Glassmorphism) */
.doc-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--gov-blue);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.doc-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.doc-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--gov-blue);
    margin-bottom: 10px;
    line-height: 1.4;
    /* CSS Line Clamp (Potong Judul max 2 baris) */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.doc-text {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 0;
    /* CSS Line Clamp (Potong Deskripsi max 3 baris) */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Link Animasi Panah Bergeser */
.doc-link {
    display: inline-flex;
    align-items: center;
    color: var(--gov-blue);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
}

.doc-link i {
    margin-left: 8px;
    color: var(--gov-gold);
    font-size: 1.1rem;
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.doc-link:hover {
    color: var(--gov-gold);
    border-bottom-color: var(--gov-gold);
}

.doc-link:hover i {
    transform: translateX(6px);
}

/* --------------------------------------
   RESPONSIVE MOBILE
   -------------------------------------- */
@media (max-width: 767.98px) {
    .modern-doc-section {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .modern-badge {
        font-size: 0.65rem;
        padding: 6px 14px;
    }

    .modern-section-title {
        font-size: 1.6rem !important;
        margin-bottom: 10px;
    }

    .modern-section-subtitle {
        font-size: 0.85rem;
        padding: 0 10px;
    }

    /* Grid HP: Kartu terlihat 85%, jadi pembaca tahu bisa di-swipe */
    .grid-swipe-row {
        grid-auto-columns: 85%;
        grid-auto-flow: column;
        gap: 16px;
        padding-bottom: 15px;
        /* Matikan garis scrollbar di HP agar lebih lega */
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .grid-swipe-row::-webkit-scrollbar {
        display: none;
    }

    .doc-card {
        border-radius: 18px;
    }

    .doc-img-wrapper {
        height: 180px;
        /* Gambar dipendekkan di HP */
    }

    .doc-body {
        padding: 18px;
    }

    .doc-title {
        font-size: 1rem;
    }

    .doc-text {
        font-size: 0.85rem;
        -webkit-line-clamp: 3;
    }

    .doc-tag {
        font-size: 0.65rem;
        padding: 5px 12px;
        top: 10px;
        left: 10px;
    }
}

/* ===== AGENDA (EVENT TICKET STYLE) ===== */
.agenda-card {
    border: none;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
    margin-bottom: 25px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    position: relative;
}

.agenda-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(15, 42, 68, 0.1);
}

.agenda-img-wrap {
    position: relative;
    height: 100%;
    min-height: 180px;
    overflow: hidden;
}

.agenda-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.agenda-card:hover .agenda-img {
    transform: scale(1.05);
}

.agenda-date-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--gov-gold);
    color: #000;
    padding: 8px 15px;
    border-radius: 12px;
    text-align: center;
    line-height: 1.1;
    box-shadow: 0 4px 15px rgba(212, 160, 23, 0.4);
    z-index: 2;
}

.agenda-date-badge .day {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
}

.agenda-date-badge .month {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.agenda-status {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 50px;
    background: rgba(15, 42, 68, 0.05);
    color: var(--gov-blue);
    letter-spacing: 0.5px;
}

/* ===== FITUR BARU: BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--gov-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(15, 42, 68, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1040;
}

.back-to-top:hover {
    background-color: var(--gov-gold);
    color: #000;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(212, 160, 23, 0.4);
}

.back-to-top.show-btn {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ==========================================
   PREMIUM AGENDA SECTION
   ========================================== */
.premium-agenda-section {
    position: relative;
    overflow: hidden;
}

/* Base Card Styling */
.premium-agenda-card {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid rgba(241, 245, 249, 1);
    box-shadow: 0 10px 30px rgba(15, 42, 68, 0.03);
    margin-bottom: 24px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.premium-agenda-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 20px 40px rgba(15, 42, 68, 0.08);
    border-color: rgba(212, 160, 23, 0.2);
}

/* Image Wrapper (Floating Style) */
.agenda-img-box {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 200px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.agenda-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    transition: transform 0.6s ease;
}

.premium-agenda-card:hover .agenda-img {
    transform: scale(1.08);
}

/* Glassmorphism Date Badge */
.agenda-date-glass {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: var(--gov-blue);
    padding: 8px 16px;
    border-radius: 14px;
    text-align: center;
    line-height: 1.1;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.agenda-date-glass .day {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
}

.agenda-date-glass .month {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gov-gold);
}

/* Status Badges */
.agenda-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.status-upcoming {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    /* Warna Hijau Modern untuk event yang belum terjadi */
}

.status-completed {
    background: rgba(100, 116, 139, 0.1);
    color: #64748b;
    /* Warna Abu-abu untuk event yang sudah lewat */
}

/* Typography Content */
.agenda-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--gov-blue);
    margin-bottom: 12px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.premium-agenda-card:hover .agenda-title {
    color: var(--gov-gold);
}

.agenda-desc {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    /* CSS Line Clamp (Potong 2 Baris) */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Action Link */
.agenda-action-link {
    display: inline-flex;
    align-items: center;
    color: var(--gov-blue);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.agenda-action-link i {
    margin-left: 8px;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.agenda-action-link:hover {
    color: var(--gov-gold);
}

.agenda-action-link:hover i {
    transform: translateX(6px);
}

/* ==========================================
   RESPONSIVE MOBILE AGENDA
   ========================================== */
@media (max-width: 767.98px) {
    .premium-agenda-card {
        border-radius: 20px;
    }

    .agenda-img-box {
        min-height: 180px;
        border-radius: 16px;
    }

    /* Kurangi padding di HP */
    .premium-agenda-card .card-body {
        padding: 20px !important;
    }

    .agenda-title {
        font-size: 1.15rem;
        margin-bottom: 10px;
    }

    .agenda-desc {
        font-size: 0.85rem;
        -webkit-line-clamp: 3;
        /* Kasih 3 baris di HP */
        margin-bottom: 15px;
    }

    .agenda-date-glass {
        top: 10px;
        left: 10px;
        padding: 6px 12px;
        border-radius: 12px;
    }

    .agenda-date-glass .day {
        font-size: 1.2rem;
    }

    .agenda-date-glass .month {
        font-size: 0.65rem;
    }

    .agenda-action-link {
        font-size: 0.85rem;
    }
}

/* ==========================================
   HORIZONTAL SCROLL UNTUK AGENDA (2 KOLOM SEJAJAR)
   ========================================== */
.agenda-swipe-row {
    display: grid;
    gap: 24px;
    overflow-x: auto;
    padding-bottom: 25px;
    padding-top: 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    /* Scrollbar Tipis Elegan */
    scrollbar-width: thin;
    scrollbar-color: rgba(15, 42, 68, 0.3) rgba(241, 245, 249, 1);
}

.agenda-swipe-row::-webkit-scrollbar {
    height: 8px;
}

.agenda-swipe-row::-webkit-scrollbar-track {
    background: rgba(241, 245, 249, 1);
    border-radius: 10px;
}

.agenda-swipe-row::-webkit-scrollbar-thumb {
    background: rgba(15, 42, 68, 0.3);
    border-radius: 10px;
}

.agenda-swipe-row::-webkit-scrollbar-thumb:hover {
    background: var(--gov-gold);
}

.agenda-swipe-item {
    scroll-snap-align: start;
    height: 100%;
}

/* Memotong Judul Agenda agar sejajar rapi */
.agenda-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 1.2rem;
}

/* --- LOGIKA TAMPILAN 2 CARD --- */
@media (min-width: 992px) {

    /* PC/Laptop: Tampilkan tepat 2 kartu per baris. Sisanya di-scroll */
    .agenda-swipe-row {
        grid-auto-columns: calc(50% - 12px);
        grid-auto-flow: column;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {

    /* Tablet: Tampilkan 1.5 kartu agar kelihatan bisa di-scroll */
    .agenda-swipe-row {
        grid-auto-columns: calc(85% - 12px);
        grid-auto-flow: column;
    }
}

/* ==========================================
   RESPONSIVE MOBILE AGENDA (EKSTRA KOMPAK)
   ========================================== */
@media (max-width: 767.98px) {

    /* 1. Grid Swipe Area */
    .agenda-swipe-row {
        grid-auto-columns: 80%;
        /* Lebar kartu dikecilkan jadi 80% layar agar kartu sebelah lebih mengintip */
        grid-auto-flow: column;
        gap: 12px;
        /* Jarak antar kartu dirapatkan */
        padding-bottom: 15px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .agenda-swipe-row::-webkit-scrollbar {
        display: none;
    }

    /* 2. Container Kartu */
    .premium-agenda-card {
        border-radius: 16px;
    }

    .premium-agenda-card .card-body {
        padding: 12px 14px !important;
        /* Padding dalam kartu dikurangi drastis */
    }

    /* 3. Area Gambar (Atas) */
    .premium-agenda-card .col-md-4 {
        padding: 10px 10px 0 10px !important;
        /* Jarak bingkai luar gambar ditekan */
    }

    .agenda-img-box {
        min-height: 140px;
        /* Tinggi gambar dipendekkan drastis */
        border-radius: 12px;
    }

    /* 4. Tanggal Melayang (Kaca) */
    .agenda-date-glass {
        top: 8px;
        left: 8px;
        padding: 5px 10px;
        border-radius: 10px;
        gap: 2px;
    }

    .agenda-date-glass .day {
        font-size: 1.1rem;
        /* Angka tanggal lebih mini */
    }

    .agenda-date-glass .month {
        font-size: 0.6rem;
    }

    /* 5. Teks & Typografi */
    .agenda-status-badge {
        font-size: 0.65rem;
        /* Label Mendatang/Selesai ekstra kecil */
        padding: 4px 10px;
    }

    .agenda-title {
        font-size: 0.95rem;
        /* Judul ditekan di bawah 1rem */
        margin-bottom: 6px;
        line-height: 1.3;
    }

    .agenda-desc {
        font-size: 0.75rem;
        /* Deskripsi sangat mungil (~12px) */
        -webkit-line-clamp: 2;
        /* Hanya tampil 2 baris di HP biar hemat tempat */
        margin-bottom: 12px;
        line-height: 1.4;
    }

    /* 6. Footer Kartu (Tanggal Bawah & Link) */
    .premium-agenda-card .text-muted.small.fw-medium {
        font-size: 0.7rem !important;
        /* Tanggal bawah ekstra mini */
    }

    .agenda-action-link {
        font-size: 0.75rem;
        /* Tombol "Detail" dikecilkan */
    }

    .agenda-action-link i {
        font-size: 0.85rem;
    }
}

/* =========================================
       CSS GRID HORIZONTAL SCROLL (GALERI)
       ========================================= */


.grid-swipe-row::-webkit-scrollbar {
    height: 10px;
}

.grid-swipe-row::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.grid-swipe-row::-webkit-scrollbar-thumb {
    background: var(--gov-blue, #0b3a52);
    border-radius: 10px;
}

.grid-swipe-row::-webkit-scrollbar-thumb:hover {
    background: var(--gov-gold, #d4a017);
}

.grid-swipe-item {
    scroll-snap-align: start;
    height: 100%;
}

.grid-swipe-item .doc-img-wrapper img {
    height: 220px;
    width: 100%;
    object-fit: cover;
}

/* -------------------------------
       RESPONSIVE BREAKPOINTS
       ------------------------------- */

@media (min-width: 992px) {
    .grid-swipe-row {
        grid-template-rows: repeat(2, 1fr);
        grid-auto-flow: column;
        grid-auto-columns: calc(33.333% - 1rem);
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .grid-swipe-row {
        grid-template-rows: repeat(2, 1fr);
        grid-auto-flow: column;
        grid-auto-columns: calc(50% - 0.75rem);
    }
}

@media (max-width: 767.98px) {
    .grid-swipe-row {
        grid-template-rows: 1fr;
        grid-auto-flow: column;
        grid-auto-columns: 85%;
    }
}