/* Templat halaman maklumat */
.content-page {
    background-color: var(--kuning-anse, #ffd700);
    color: #111;
    font-family: Arial, sans-serif;
}

.content-page .header-nav {
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #000;
    color: #fff;
}

.content-page .btn-kembali {
    color: var(--kuning-anse, #ffd700);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    transition: opacity 0.2s;
}

.content-page .btn-kembali:hover { opacity: 0.8; }

.content-page .header-brand {
    font-weight: 900;
    letter-spacing: 2px;
}

.content-page .content-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px;
}

.content-page .section-title {
    font-size: 2.8rem;
    font-weight: 900;
    margin: 0 0 15px;
    line-height: 1.1;
    color: #000;
}

.content-page .lead-text {
    font-size: 1.15rem;
    line-height: 1.7;
    margin: 0 0 50px;
    color: #222;
}

.content-page .content-section {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.content-page .content-section h2,
.content-page .vm-box h2 {
    margin-top: 0;
    font-size: 1.8rem;
    border-bottom: 3px solid var(--kuning-anse, #ffd700);
    padding-bottom: 10px;
    margin-bottom: 25px;
    display: inline-block;
}

.content-page .content-section p,
.content-page .vm-box p {
    line-height: 1.8;
    font-size: 1rem;
    color: #333;
}

.about-page .ros-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.about-page .ros-table th,
.about-page .ros-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.about-page .ros-table th {
    width: 35%;
    color: #000;
    font-weight: bold;
    background-color: #f9f9f9;
}

.about-page .vm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.about-page .vm-box {
    background: #fdfdfd;
    border: 1px solid #eaeaea;
    padding: 30px;
    border-radius: 10px;
    border-top: 5px solid #000;
}

.about-page .vm-box ul {
    padding-left: 20px;
    line-height: 1.8;
    color: #333;
}

.about-page .vm-box h2 { border-bottom: 0; padding-bottom: 0; margin-bottom: 10px; }

.about-page .exco-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.about-page .exco-card {
    background: #fafafa;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s;
}

.about-page .exco-card:hover { transform: translateY(-5px); }

.about-page .exco-avatar {
    width: 90px;
    height: 90px;
    background-color: #ccc;
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
}

.about-page .exco-name { font-weight: bold; font-size: 1.1rem; margin-bottom: 5px; color: #000; }
.about-page .exco-role { font-size: 0.9rem; color: #555; margin-bottom: 5px; }
.about-page .exco-batch { font-size: 0.8rem; color: #888; background: #eee; padding: 3px 8px; border-radius: 12px; display: inline-block; }

.content-page .page-loading,
.content-page .page-error {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px;
}

.content-page .page-footer {
    padding: 25px 5%;
    background: #000;
    color: #fff;
    text-align: center;
}

.content-page .page-footer p { margin: 0; }

@media (max-width: 768px) {
    .about-page .vm-grid { grid-template-columns: 1fr; }
    .about-page .ros-table th,
    .about-page .ros-table td { display: block; width: 100%; box-sizing: border-box; }
    .about-page .ros-table th { border-bottom: none; padding-bottom: 5px; }
    .about-page .ros-table td { padding-top: 5px; margin-bottom: 10px; }
    .content-page .section-title { font-size: 2.2rem; }
    .content-page .content-section { padding: 25px; }
}

.contact-page .contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.contact-page .contact-card {
    padding: 35px;
    background: #fff;
    border-top: 5px solid #000;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.contact-page .contact-card h2,
.contact-page .contact-social-section h2 {
    margin: 0 0 15px;
    color: #000;
    font-size: 1.5rem;
}

.contact-page .contact-card p,
.contact-page .contact-social-section p {
    color: #333;
    line-height: 1.8;
}

.contact-page .contact-link,
.contact-page .contact-social-link {
    color: #000;
    font-weight: bold;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.contact-page .contact-link:hover,
.contact-page .contact-social-link:hover { color: #555; }

.contact-page .contact-social-section {
    margin-bottom: 40px;
}

.contact-page .contact-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

.contact-page .page-loading,
.contact-page .page-error {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px;
}

.contact-page .page-footer {
    padding: 25px 5%;
    background: #000;
    color: #fff;
    text-align: center;
}

.contact-page .page-footer p { margin: 0; }

@media (max-width: 768px) {
    .contact-page .contact-grid { grid-template-columns: 1fr; }
    .contact-page .contact-card { padding: 25px; }
    .contact-page .contact-social-links { flex-direction: column; gap: 15px; }
}
/* ==========================================================================
   1. RESET & SCROLL CONTAINER
   ========================================================================== */
* {
    box-sizing: border-box;
}

#scroll-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
}

.full-screen {
    height: 100vh;
    width: 100vw;
    scroll-snap-align: start;
    position: relative;
    overflow: hidden;
}

/* ==========================================================================
   2. WARNA LATAR PEMISAH SEKSYEN (PLACEHOLDER COLOR)
   ========================================================================== */
.bg-navigasi {
    background-color: #1a1a1a; /* Gelap asas */
}

.bg-carousel {
    background-color: #2c3e50; /* Kelabu kebiruan */
}

.bg-trivia {
    background-color: var(--biru-fakta); /* Biru Facts & Trivia */
    color: #ffffff;
}

.bg-footer {
    background-color: var(--gelap-charcoal); /* Charcoal Footer */
    color: #ffffff;
}

.section-placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* ==========================================================================
   3. SEKSYEN 1: NAVIGASI (LAYOUT & GRID)
   ========================================================================== */
.nav-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr; /* Nisbah 1:2 (Highlight : Grid Menu) */
    height: 100%;
    width: 100%;
}

/* Kiri: Highlight Grid */
.highlight-grid {
    position: relative;
    padding: 0;
    overflow: hidden;
    background-color: #111;
}

.highlight-link-wrapper {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    text-decoration: none;
    color: #ffffff;
    transition: opacity 0.9s ease, visibility 0.9s ease;
}

.highlight-link-wrapper.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 2;
}

/* Gambar Latar Belakang (Layer 1) */
.highlight-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.03);
    transition: transform 0.9s ease;
}

.highlight-link-wrapper.active .highlight-bg {
    animation: highlightImageFade 1.2s ease forwards;
}

/* Kecerunan Gelap Bawah (Layer 2) */
.highlight-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    pointer-events: none;
}

/* Teks dan Lencana (Layer 3) */
.highlight-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 30px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.highlight-link-wrapper.active .highlight-content {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.15s;
}

.highlight-content .badge {
    background-color: #e74c3c;
    color: #fff;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 4px;
    letter-spacing: 1px;
    margin-bottom: 12px;
    transform: translateY(-10px);
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.highlight-link-wrapper.active .highlight-content .badge {
    opacity: 1;
    transform: translateY(0);
}

.highlight-placeholder {
    color: #ffffff;
}

.highlight-placeholder .badge {
    background-color: #e74c3c;
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 3px;
}

.highlight-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    transform: translateY(16px);
    opacity: 0;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.highlight-link-wrapper.active .highlight-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.highlight-caption {
    font-size: 0.9rem;
    opacity: 0;
    transform: translateX(-12px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.highlight-link-wrapper.active .highlight-caption {
    opacity: 0.8;
    transform: translateX(0);
    transition-delay: 0.35s;
}

/* --- ANIMASI HOVER --- */
.highlight-link-wrapper:hover .highlight-bg {
    animation: none;
    transform: scale(1.12) rotate(2deg);
}

.highlight-link-wrapper:hover .highlight-caption {
    opacity: 1;
    transform: translateX(5px);
}

.highlight-controls {
    position: absolute;
    left: 30px;
    bottom: 22px;
    z-index: 4;
    display: flex;
    gap: 8px;
}

.highlight-dot {
    position: relative;
    width: 34px;
    height: 4px;
    padding: 0;
    border: 0;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    overflow: hidden;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.highlight-dot::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--kuning-anse);
}

.highlight-dot.active::after {
    animation: highlightProgress var(--highlight-duration, 10000ms) linear forwards;
    animation-play-state: running;
}

.highlight-controls.is-paused .highlight-dot.active::after {
    animation-play-state: paused;
}

.highlight-dot:hover,
.highlight-dot:focus-visible {
    transform: translateY(-1px);
}

.highlight-dot:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 4px;
}

.mobile-highlight-open,
.mobile-highlight-close {
    display: none;
}

@keyframes highlightProgress {
    from { width: 0; }
    to { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .highlight-dot.active::after {
        animation: none;
        width: 100%;
    }
}

@keyframes highlightImageFade {
    0% {
        opacity: 0.45;
        transform: scale(1.06);
    }
    100% {
        opacity: 1;
        transform: scale(1.12);
    }
}

/* Kanan: Grid Menu Container */
.grid-menu-container {
    background-color: var(--kuning-anse);
    position: relative;
    height: 100%;
    width: 100%;
    display: flex;
}

/* Logo Overlapping */
.logo-anse-overlay {
    position: absolute;
    left: -40px;
    top: 30%;
    z-index: 10;
    background: #ffffff;
    border: 3px solid #000;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Grid 2x2 untuk Menu */
.grid-menu-4 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    width: 100%;
    height: 100%;
    /* Tambah padding-top 90px untuk elak bertindih dengan blok terapung */
    padding: 90px 0 0 0px; 
}

/* Kad Menu Individual */
.menu-card {
    text-decoration: none;
    color: #000000;
    padding: 30px;
    border: 1px solid rgba(0, 0, 0, 0.05); /* Garisan lebih halus */
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Tolak teks ke bawah */
    align-items: flex-end;     /* Tolak teks ke kanan */
    text-align: right;         /* Susunan teks ke kanan */
    transition: background-color 0.3s ease, transform 0.1s ease;
    position: relative;
    overflow: hidden;          /* INI PENTING: Untuk 'potong' gambar yang terkeluar */
}

/* Kesan Hover (Desktop) */
.menu-card:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.card-content {
    position: relative;
    z-index: 2; /* Pastikan teks sentiasa berada di atas gambar */
    max-width: 70%; /* Elak teks bertindih terlalu banyak dengan gambar */
}

.menu-card h3 {
    margin: 0 0 5px 0;
    font-size: 1.4rem;
    font-weight: 700;
}

.menu-card p {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.9;
}

.card-subtext-pill {
    display: inline-block;
    max-width: 100%;
    padding: 5px 10px;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.72);
    line-height: 1.3;
    transform: translateY(0) scale(1);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.menu-card:hover .card-subtext-pill,
.menu-card:focus-visible .card-subtext-pill {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 7px 14px rgba(0, 0, 0, 0.16);
}

.menu-card:active .card-subtext-pill {
    transform: translateY(-1px) scale(1.02);
}

/* Gambar Rich Photo (Menggantikan SVG lama) */
.card-objek {
    position: absolute;
    z-index: 1; /* Berada di belakang teks */
    top: 50%; 
    left: -15%; /* Tarik gambar ke kiri melepasi sempadan kad */
    transform: translateY(-50%); /* Kekalkan gambar di tengah menegak */
    height: 120%; /* Sengaja besarkan gambar supaya terpotong atas/bawah */
    width: 60%;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-objek img {
    height: 100%;
    width: 100%;
    object-fit: contain; /* Kekalkan nisbah gambar */
    object-position: left center;
    filter: drop-shadow(8px 10px 15px rgba(0,0,0,0.3)); /* Efek bayang 3D dari mockup */
}

/* Kesan Hover pada Gambar */
.menu-card:hover .card-objek {
    transform: translateY(-50%) scale(1.08) rotate(3deg);
}

/* ==========================================================================
   4. BLOK GLOBAL & A11Y STYLING
   ========================================================================== */
.global-floating {
    position: fixed;
    z-index: 898;
}

.top-left {
    top: 20px;
    left: 20px; /* Jarak yang sama seperti blok A11y di kanan */
}

.btn-hamburger {
    background-color: var(--gelap-charcoal);
    color: var(--kuning-anse);
    border: none;
    font-size: 1.5rem; /* Saiz ikon yang selesa untuk ditekan */
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: transform 0.2s ease, background-color 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-hamburger:hover {
    background-color: #000000;
    transform: scale(1.05); /* Sedikit membesar bila dilalukan tetikus */
}

/* Semasa Dark Mode, pastikan butang nampak menonjol */
body.dark-theme .btn-hamburger {
    border: 1px solid rgba(255,255,255,0.2);
}

.top-right {
    top: 20px;
    right: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-sitemap {
    color: #000;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.8);
    padding: 6px 12px;
    border-radius: 20px;
}

.btn-a11y {
    background: #000000;
    color: #ffffff;
    border: none;
    padding: 8px 12px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
}

.bottom-center {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.indicator-arrow {
    color: #ffffff;
    font-size: 1.5rem;
    text-decoration: none;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-12px) translateX(-50%); }
    60% { transform: translateY(-5px) translateX(-50%); }
}

/* ==========================================================================
   5. RESPONSIVE MEDIA QUERIES (MOBILE)
   ========================================================================== */
@media (max-width: 768px) {
    /* Skrin Telefon: highlight dibuka sebagai popup slider */
    .nav-wrapper {
        grid-template-columns: 1fr;
    }

    .highlight-grid {
        position: fixed;
        inset: 0;
        z-index: 900;
        display: block;
        padding: 18px;
        background: rgba(0, 0, 0, 0.78);
        backdrop-filter: blur(8px);
    }

    .highlight-grid .highlight-link-wrapper {
        inset: 8vh 18px 8vh;
        width: auto;
        height: auto;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    }

    .highlight-grid .highlight-content {
        padding: 28px 22px;
    }

    .highlight-grid .highlight-title {
        font-size: 1.45rem;
    }

    .highlight-grid .highlight-controls {
        left: 50%;
        bottom: 4vh;
        transform: translateX(-50%);
    }

    .mobile-highlight-close {
        position: absolute;
        top: 3vh;
        right: 28px;
        display: block;
        z-index: 5;
        width: auto;
        height: auto;
        padding: 4px 10px;
        border: 0;
        border-radius: 4px;
        background: #e74c3c;
        color: #ffffff;
        font-size: 0.75rem;
        font-weight: bold;
        line-height: 1.2;
        cursor: pointer;
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.38), 0 2px 4px rgba(0, 0, 0, 0.22);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .mobile-highlight-close:hover,
    .mobile-highlight-close:focus-visible {
        transform: translateY(-2px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.42), 0 3px 6px rgba(0, 0, 0, 0.24);
    }

    .mobile-highlight-close:focus-visible {
        outline: 2px solid #ffffff;
        outline-offset: 3px;
    }

    .mobile-highlight-open {
        position: fixed;
        right: 16px;
        bottom: 20px;
        display: block;
        z-index: 899;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 8px 14px;
        border: 1px solid rgba(255, 255, 255, 0.45);
        border-radius: 999px;
        background: #e74c3c;
        color: #ffffff;
        font-size: 0.78rem;
        font-weight: bold;
        letter-spacing: 1px;
        cursor: pointer;
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.38), 0 2px 4px rgba(0, 0, 0, 0.22);
        transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    }

    .mobile-highlight-open:hover,
    .mobile-highlight-open:focus-visible {
        transform: translateY(-3px) scale(1.04);
        background: #f05a48;
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.42), 0 3px 6px rgba(0, 0, 0, 0.24);
    }

    .mobile-highlight-open:active {
        transform: translateY(-1px) scale(0.98);
    }

    .mobile-highlight-open:focus-visible {
        outline: 2px solid #ffffff;
        outline-offset: 3px;
    }

    .grid-menu-4 {
        /* Untuk telefon, kekalkan top offset 90px, buang left offset */
        padding: 90px 0 0 0; 
        grid-template-columns: 1fr; 
    }

    .logo-anse-overlay {
        top: 10px;
        left: 10px;
        transform: scale(0.8);
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    .highlight-grid {
        position: relative;
        inset: auto;
        z-index: auto;
        display: block !important;
        padding: 0;
        background-color: #111;
        backdrop-filter: none;
    }

    .highlight-grid .highlight-link-wrapper {
        inset: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
        box-shadow: none;
    }

    .mobile-highlight-open,
    .mobile-highlight-close {
        display: none;
    }
}

/* ==========================================================================
   6. MENU SISI (OFF-CANVAS DRAWER) & BACKDROP
   ========================================================================== */
.drawer {
    position: fixed;
    top: 0;
    left: -320px; /* Sembunyi di luar skrin kiri */
    width: min(320px, 88vw);
    height: 100vh;
    height: 100dvh;
    background-color: var(--gelap-charcoal);
    color: #ffffff;
    z-index: 1001;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding: 20px;
    box-shadow: 4px 0 15px rgba(0,0,0,0.5);
    overflow: hidden;
}

.drawer.open {
    left: 0; /* Meluncur masuk */
}

.drawer:not(.hidden) {
    display: flex !important; /* Timpa utiliti .hidden */
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

#btn-tutup-drawer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 7px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
}

#btn-tutup-drawer svg {
    display: block;
    width: 100%;
    height: 100%;
}

body.dark-theme #btn-tutup-drawer {
    color: var(--kuning-anse);
}

#btn-tutup-drawer:hover {
    background: rgba(255, 255, 255, 0.12);
}

.drawer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.drawer-menu li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    display: block;
    padding: 12px 0;
    transition: color 0.2s ease;
}

.drawer-menu li a:hover {
    color: var(--kuning-anse);
}

.drawer-menu li a:focus-visible,
#btn-tutup-drawer:focus-visible,
#toggle-tema:focus-visible {
    outline: 2px solid var(--kuning-anse);
    outline-offset: 4px;
}

.drawer-footer {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 15px;
    font-size: 0.9rem;
    flex: 0 0 auto;
}

@media (max-width: 768px) and (orientation: landscape) {
    .drawer {
        padding: 12px 16px;
    }

    .drawer-header {
        padding-bottom: 10px;
        margin-bottom: 10px;
    }

    .drawer-menu li a {
        padding: 8px 0;
    }

    .drawer-footer {
        padding-top: 10px;
    }

    .drawer-footer p {
        margin: 0 0 8px;
    }
}

/* Latar Belakang Gelap (Backdrop) */
.drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(3px); /* Efek blur ala glassmorphism */
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.drawer-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

/* ==========================================================================
   7. POPOVER AKSESIBILITI (^A)
   ========================================================================== */
.a11y-wrapper {
    position: relative;
}

.popover {
    position: absolute;
    top: 120%;
    right: 0;
    background: #ffffff;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 10px;
    display: flex;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.popover button {
    background: #f0f0f0;
    border: 1px solid #ddd;
    padding: 5px 12px;
    cursor: pointer;
    border-radius: 4px;
    font-weight: bold;
    color: #333;
}

.popover button:hover {
    background: var(--kuning-anse);
    border-color: #d4b900;
}

.hidden {
    display: none !important;
}

/* ==========================================================================
   8. LIGHTBOX HIGHLIGHT
   ========================================================================== */
.highlight-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: grid;
    place-items: center;
    padding: 24px;
    color: #ffffff;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 6, 10, 0.78);
    backdrop-filter: blur(14px);
}

.lightbox-panel {
    position: relative;
    z-index: 1;
    width: min(920px, 94vw);
    max-height: 92vh;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 12px;
    background: rgba(18, 20, 25, 0.66);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(18px);
}

.lightbox-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    cursor: pointer;
}

.lightbox-image-backdrop {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    filter: blur(24px);
    opacity: 0.24;
    transform: scale(1.08);
}

.lightbox-figure {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 18px;
    max-height: 92vh;
    margin: 0;
    padding: 32px;
}

.lightbox-image {
    display: block;
    width: 100%;
    max-height: 66vh;
    object-fit: contain;
}

.lightbox-caption {
    padding: 0 8px 4px;
}

.lightbox-caption .badge {
    display: inline-block;
    margin-bottom: 10px;
}

.lightbox-caption h2 {
    margin: 0 0 8px;
    color: var(--kuning-anse);
    font-size: clamp(1.35rem, 3vw, 2.2rem);
}

.lightbox-caption p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
}

@media (max-width: 768px) {
    .highlight-lightbox {
        padding: 18px;
    }

    .lightbox-panel {
        width: min(100%, 420px);
        max-height: 88vh;
        border: 0;
        border-radius: 4px;
        background: rgba(18, 20, 25, 0.92);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.48), 0 4px 10px rgba(0, 0, 0, 0.28);
    }

    .lightbox-close {
        top: 12px;
        right: 12px;
        width: auto;
        height: auto;
        padding: 4px 10px;
        border: 0;
        border-radius: 4px;
        background: #e74c3c;
        color: #ffffff;
        font-size: 0.75rem;
        font-weight: bold;
        line-height: 1.2;
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.38), 0 2px 4px rgba(0, 0, 0, 0.22);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .lightbox-close:hover,
    .lightbox-close:focus-visible {
        transform: translateY(-2px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.42), 0 3px 6px rgba(0, 0, 0, 0.24);
    }

    .lightbox-close:focus-visible {
        outline: 2px solid #ffffff;
        outline-offset: 3px;
    }

    .lightbox-figure {
        gap: 12px;
        padding: 18px;
    }

    .lightbox-image {
        max-height: 48vh;
    }

    .lightbox-caption {
        padding: 0 2px 2px;
    }

    .lightbox-caption h2 {
        font-size: 1.35rem;
    }
}

/* ==========================================================================
   8. SEKSYEN CAROUSEL (BERITA)
   ========================================================================== */
#seksyen-carousel {
    background-color: var(--gelap-charcoal);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.carousel-wrapper {
    width: 100%;
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
}

/* Trek yang memegang semua slaid */
.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Slaid Individual */
.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Tambah transisi untuk efek zoom dan pudar */
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s ease; 
}

/* Mod Partial View (Hanya aktif untuk skrin landscape/desktop) */
@media (min-width: 769px) {
    .seksyen-carousel-partial .carousel-slide {
        min-width: 88%; /* Slaid tak ambil penuh skrin, hanya 80% */
        margin: 0 1%;   /* Jarak sikit antara slaid */
        opacity: 0.3;   /* Slaid kiri/kanan jadi pudar */
        transform: scale(0.85); /* Slaid kiri/kanan mengecil sedikit */
        border-radius: 20px; /* Opsional: beri bucu bulat supaya nampak kemas macam kad */
        overflow: hidden;
    }
    
    /* Slaid yang sedang aktif di tengah */
    .seksyen-carousel-partial .carousel-slide.active-slide {
        opacity: 1;
        transform: scale(1);
        z-index: 5;
    }
}

/* Gambar Latar Slaid */
.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.5;
    z-index: 1;
}

/* Kecerunan Gelap untuk kebolehbacaan teks */
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.9) 10%, rgba(0,0,0,0.3) 60%, transparent);
    z-index: 2;
}

/* Konten Teks Slaid */
.slide-content {
    position: relative;
    z-index: 3;
    width: 85%;
    max-width: 1200px;
    color: #ffffff;
    padding: 0 50px;
}

.slide-content h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    color: var(--kuning-anse);
}

.slide-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.btn-utama {
    display: inline-block;
    background-color: var(--kuning-anse);
    color: #000;
    padding: 12px 28px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 6px;
    transition: transform 0.2s ease, background-color 0.2s;
}

.btn-utama:hover {
    background-color: #e6c800;
    transform: translateY(-2px);
}

/* --- BLOK SOSIAL MEDIA (SHIELD) --- */
.social-block-overlay {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 240px;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 65px;
}

.social-shield-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.15));
}

.social-shield-bg svg {
    width: 100%;
    height: 100%;
}

.social-content {
    text-align: center;
    color: #000;
}

.social-title {
    display: block;
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.social-subtitle {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

.social-icons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.social-icons a {
    color: #000;
    transition: transform 0.2s ease;
    display: flex;
}

.social-icons a:hover {
    transform: scale(1.15) translateY(-3px);
}

.social-icons svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

@media (orientation: landscape) and (min-width: 769px) {
    .social-block-overlay {
        opacity: 0;
        visibility: hidden;
        transform: translateX(-50%) scale(0.84);
        transition: opacity 0.7s ease 0.45s, transform 0.7s cubic-bezier(0.18, 0.9, 0.2, 1.12) 0.45s, visibility 0s linear 1.15s;
    }

    .social-block-overlay.is-visible {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) scale(1);
        transition-delay: 0.45s, 0.45s, 0s;
    }
}

/* Responsif untuk Mobile (Ikut Mockup 3) */
@media (max-width: 768px) {
    .social-block-overlay {
        left: auto;
        right: -30px; /* Anjak keluar ke kanan supaya terpotong separuh */
        top: 120px; /* Sedikit ditolak ke bawah supaya tidak bertindih dengan A11y */
        transform: translateX(26px);
        width: 100px;
        height: 280px; /* Lebih panjang untuk tampung ikon menegak */
        padding-top: 90px; /* Tolak ke bawah sikit dari butang A11y */
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.55s ease 0.45s, transform 0.55s cubic-bezier(0.18, 0.9, 0.2, 1.1) 0.45s, visibility 0s linear 1.0s;
    }

    .social-block-overlay.is-visible {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
        transition-delay: 0.45s, 0.45s, 0s;
    }
    
    .social-title, .social-subtitle {
        display: none; /* Sorok teks pada paparan telefon */
    }
    
    .social-icons {
        flex-direction: column; /* Susun ikon menegak */
        gap: 20px;
    }
    
    .social-icons svg {
        width: 26px;
        height: 26px;
    }
}

/* Butang Navigasi (Kiri/Kanan) */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s, transform 0.2s;
    backdrop-filter: blur(4px);
}

.carousel-btn:hover {
    background: var(--kuning-anse);
    color: #000;
    border-color: var(--kuning-anse);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn { left: 30px; }
.next-btn { right: 30px; }

/* Titik Penunjuk (Dots) */
.carousel-dots {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.dot.active {
    background: var(--kuning-anse);
    transform: scale(1.3);
}

/* Responsif Mobile */
@media (max-width: 768px) {
    .slide-content h2 { font-size: 2.2rem; }
    .slide-content { padding: 0 20px; }
    .carousel-btn { display: none; } /* Sorok butang di phone, biarkan dots sahaja */  
}

/* ==========================================================================
   9. SEKSYEN FAKTA & TRIVIA (SEKSYEN 3)
   ========================================================================== */
#seksyen-trivia {
    background-color: #3b3a7a; /* Warna biru/ungu dari mockup */
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    padding: 20px;
}

.trivia-wrapper {
    max-width: 800px;
    width: 90%;
}

.trivia-wrapper h2 {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

.trivia-item {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    font-weight: 400;
}

.trivia-sumber {
    position: absolute;
    bottom: 30px;
    right: 40px;
    font-size: 0.8rem;
    font-style: italic;
    opacity: 0.7;
}

.trivia-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    opacity: 0.4;
    color: #ffffff;
}

/* Responsif untuk skrin kecil */
@media (max-width: 768px) {
    .trivia-wrapper h2 { font-size: 1rem; margin-bottom: 25px; }
    .trivia-item { font-size: 0.95rem; }
    .trivia-sumber { right: 20px; bottom: 20px; font-size: 0.7rem; }
}

/* ==========================================================================
   10. SEKSYEN FOOTER & PETA (SEKSYEN 4)
   ========================================================================== */
#seksyen-footer {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: var(--gelap-charcoal);
}

.footer-map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: #d8d6cb;
}

.footer-map::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 24, 22, 0.08) 0%, rgba(20, 24, 22, 0.24) 48%, rgba(20, 24, 22, 0.78) 100%);
    pointer-events: none;
}

.footer-map iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(15%) contrast(110%);
}

.footer-panel {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 64px));
    margin-bottom: 32px;
    background: rgba(42, 42, 42, 0.96);
    color: #ffffff;
    padding: 34px 38px 30px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 0.8fr;
    gap: 42px;
    border-top: 3px solid var(--kuning-anse);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.footer-logo-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 68px;
    width: 68px;
    height: 68px;
    margin-right: 16px;
}

.footer-logo-container img {
    width: 48px;
    height: auto;
    transform-origin: center;
    filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.72))
        drop-shadow(0 0 12px rgba(0, 0, 0, 0.42));
    animation: footerLogoHeartbeat 2.4s ease-in-out infinite;
}

@keyframes footerLogoHeartbeat {
    0%, 38%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.72))
            drop-shadow(0 0 12px rgba(0, 0, 0, 0.42));
    }
    12% {
        transform: scale(1.06);
        filter: drop-shadow(0 0 5px rgba(255, 255, 255, 1))
            drop-shadow(0 0 16px rgba(255, 255, 255, 0.8))
            drop-shadow(0 0 26px rgba(255, 255, 255, 0.5));
    }
    20% {
        transform: scale(1.015);
        filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.72))
            drop-shadow(0 0 12px rgba(0, 0, 0, 0.42));
    }
    28% {
        transform: scale(1.04);
        filter: drop-shadow(0 0 5px rgba(255, 255, 255, 1))
            drop-shadow(0 0 16px rgba(255, 255, 255, 0.8))
            drop-shadow(0 0 26px rgba(255, 255, 255, 0.5));
    }
}

@media (prefers-reduced-motion: reduce) {
    .footer-logo-container img {
        animation: none;
    }
}

.footer-brand {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
}

.footer-eyebrow {
    color: var(--kuning-anse);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.footer-info h2,
.footer-links h2,
.footer-location h2 {
    margin: 0 0 12px;
    font-size: 1.05rem;
    line-height: 1.35;
}

.footer-info p,
.footer-location p,
.footer-info address {
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0 0 8px;
    opacity: 0.8;
}

.footer-info address {
    font-style: normal;
}

.footer-info .footer-registration {
    font-size: 0.72rem;
    opacity: 0.55;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 18px;
}

.footer-links ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: color 0.2s, opacity 0.2s;
}

.footer-links ul li a:hover {
    color: var(--kuning-anse);
    opacity: 1;
}

.footer-map-link {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin-top: 10px;
    color: var(--kuning-anse);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
}

.footer-map-link:hover {
    color: #ffffff;
}

.footer-subfooter {
    position: absolute;
    right: 32px;
    bottom: 12px;
    left: 32px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.72rem;
}

.footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-legal-links a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal-links a:hover,
.footer-legal-links a:focus-visible {
    color: var(--kuning-anse);
}

.footer-subfooter p {
    margin: 0;
    text-align: right;
}

/* Responsif Mobile */
@media (max-width: 768px) {
    #seksyen-footer {
        align-items: stretch;
        background: var(--gelap-charcoal);
    }

    #seksyen-footer .footer-map {
        display: none;
    }

    .footer-panel {
        align-content: center;
        grid-template-columns: 1fr;
        gap: 24px;
        width: 100%;
        min-height: 100%;
        margin: 0;
        padding: 42px 24px 104px;
        border-top: 3px solid var(--kuning-anse);
        background: transparent;
        box-shadow: none;
    }

    .footer-subfooter {
        right: 24px;
        bottom: 16px;
        left: 24px;
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        font-size: 0.68rem;
    }

    .footer-subfooter p {
        text-align: left;
    }

    #mobile-highlight-open.footer-is-visible {
        animation: mobileHighlightFadeOut 0.25s ease forwards;
        pointer-events: none;
    }

    #mobile-highlight-open:not(.footer-is-visible) {
        animation: mobileHighlightFadeIn 0.25s ease forwards;
    }

    .footer-links ul {
        gap: 10px 14px;
    }

    .footer-logo-container {
        flex-basis: 60px;
        width: 60px;
        height: 60px;
        margin-right: 14px;
    }

    .footer-logo-container img {
        width: 42px;
    }
}

@keyframes mobileHighlightFadeOut {
    from { opacity: 1; visibility: visible; }
    to { opacity: 0; visibility: hidden; }
}

@keyframes mobileHighlightFadeIn {
    from { opacity: 0; visibility: hidden; }
    to { opacity: 1; visibility: visible; }
}

/* ==========================================================================
   GAYA KHAS: BUTANG BACK TO TOP
   ========================================================================== */
/* 1. Butang Next Section (Lutsinar untuk keadaan biasa) */
.indicator-arrow {
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

/* Kelas ini akan disuntik oleh JavaScript bila sampai ke Footer */
/* 2. Butang Back to Top (Lutsinar di atas Footer) */
.indicator-arrow.back-to-top-mode {
    font-size: 0.9rem;
    font-weight: bold;
    color: #000000;
    border: none;
    background-color: transparent !important;
    box-shadow: none !important;

    /* Tukar warna ikon/teks kepada kuning supaya kontra dengan footer gelap */
    color: var(--kuning-anse) !important;
    
    /* --- BARIS PENTING UNTUK MEMBETULKAN SQUASHED CIRCLE --- */
    width: auto; /* reset size to content */
    height: auto;
    border-radius: 30px; /* Bentuk pil (pill) */
    /* Buang padding yang tebal sebab dah tak ada bentuk pil/bulat */
    padding: 10px !important;
    
    display: flex; /* keep flex for centering icon/text */
    justify-content: center;
    align-items: center;
    gap: 8px; /* space between icon/text */
    animation: none; /* disable bouncing */
    
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    
    /* Pastikan teks tidak tersumbat dan berada pada satu baris */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Efek bila butang disentuh/hover */
.indicator-arrow.back-to-top-mode:hover {
    background-color: rgba(255, 255, 255, 0.05) !important; /* Highlight pudar sangat nipis */
    transform: translateY(-3px);
}


/* ==========================================================================
   GAYA RESPONSIP: BUTANG BACK TO TOP UNTUK MOBILE
   ========================================================================== */
@media (max-width: 768px) {
    /* Kembalikan ia menjadi butang bulat (circle) di skrin kecil */
    .indicator-arrow.back-to-top-mode {
        width: 50px;
        height: 50px;
        padding: 0;
        border-radius: 50%; /* Bentuk bulat penuh */
        justify-content: center;
    }
    
    /* Sorokkan teks "Back to top" di telefon supaya tak langgar pautan */
    .btt-text {
        display: none;
    }
}
