/*
Theme Name: ZS University Thema
Theme URI: https://herinanu.com
Author: Suheri, S. Kom
Description: Tema WordPress lengkap dengan tampilan Landing Page profesional, transparan, dan interaktif Website Resmi Desa .
Version: 4.0.0
Text Domain: zsuniversity-themes
*/

:root {
    --primary-900: #077180;
    --primary-800: #065f46;
    --primary-700: #047857;
    --primary-100: #d1fae5;
    --accent-500: #f59e0b;
    --accent-600: #d97706;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --white: #ffffff;
}

*, *::before, *::after { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

body { 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; 
    background-color: var(--slate-50); 
    color: var(--slate-800); 
    line-height: 1.6; 
}

/* Container */
.container { max-width: 80rem; margin: 0 auto; padding: 0 1rem; }
.container-narrow { max-width: 56rem; margin: 0 auto; padding: 0 1rem; }

/* Top Bar */
.topbar { background-color: var(--primary-900); color: var(--primary-100); font-size: 0.8125rem; padding: 0.5rem 0; box-shadow: inset 0 -1px 0 rgba(0,0,0,0.1); }
.topbar-flex { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem; }
.topbar-info { display: flex; gap: 1.25rem; flex-wrap: wrap; align-items: center; }
.topbar-badge { background-color: var(--primary-800); padding: 0.2rem 0.6rem; border-radius: 0.25rem; font-weight: 500; font-size: 0.75rem; }



/* =================================================
   MENU STYLING
   ================================================= */

.nav-links li {
    position: relative;
}

/* Sembunyikan sub-menu secara default */
.nav-links ul.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background-color: var(--white, #ffffff) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-radius: 0.5rem;
    padding: 0.5rem 0;
    list-style: none;
    z-index: 100;
}

/* Munculkan sub-menu saat parent di-hover (menggunakan kelas bawaan WP) */
.nav-links li.menu-item-has-children:hover > ul.sub-menu {
    display: block !important;
    animation: fadeInSub 0.2s ease-in-out forwards;
}

/* Sub-sub-menu tingkat berikutnya terbuka ke kanan */
.nav-links ul.sub-menu ul.sub-menu {
    top: 0;
    left: 100%;
    margin-left: 0.25rem;
}

@keyframes fadeInSub {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tatanan Tautan di dalam Sub-Menu */
.nav-links ul.sub-menu li {
    width: 100%;
}

.nav-links ul.sub-menu a {
    padding: 0.65rem 1rem 0.65rem 0.85rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    color: var(--slate-700, #334155) !important;
    white-space: nowrap;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.nav-links ul.sub-menu a:hover {
    background-color: #f1f5f9;
    color: var(--primary-700, #047857) !important;
}

/* Titik dekoratif kecil */
.nav-links ul.sub-menu a::before {
    content: "▪";
    font-size: 0.6rem;
    color: #047857;
}

/* --- IKON CHEVRON --- */
.nav-links > li.menu-item-has-children > a::after {
    content: " ▾";
    font-size: 0.75rem;
    display: inline-block;
    transition: transform 0.3s ease;
    margin-left: 0.35rem;
}

.nav-links > li.menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

.nav-links ul.sub-menu a::after {
    content: none !important;
}

.nav-links ul.sub-menu li.menu-item-has-children > a::after {
    content: " ›" !important;
    font-size: 1.1rem;
    line-height: 1;
    font-weight: 700;
    margin-left: auto;
    padding-left: 1.5rem;
}

/* =================================================
   MEGA MENU AUTO FIT (KOLOM & LEBAR FLEKSIBEL)
   ================================================= */

.nav-links-bar li.mega-menu {
    position: relative !important;
}

/* Kotak Panel Mega Menu Auto Sesuai Isi */
.nav-links-bar li.mega-menu > ul.sub-menu {
    display: none;
    position: absolute !important;
    left: 0 !important;
    right: auto !important;
    width: max-content !important;
    min-width: 280px;
    max-width: 800px;
    top: 100% !important;
    background-color: #ffffff !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
    border-radius: 0 0.5rem 0.5rem 0.5rem;
    padding: 1.5rem !important;
    list-style: none;
    z-index: 120;
    
    /* Menggunakan auto-fit agar jumlah kolom otomatis mengikuti berapa banyak sub-menu level 1 yang ada */
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
    gap: 1.5rem !important;
}

/* Munculkan Mega Menu saat di-hover */
.nav-links-bar li.mega-menu:hover > ul.sub-menu {
    display: grid !important;
    animation: fadeInSub 0.2s ease-in-out forwards;
}

/* Judul Kolom di dalam Mega Menu */
.nav-links-bar li.mega-menu > ul.sub-menu > li > a {
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    color: #064e3b !important;
    border-bottom: 2px solid #d1fae5 !important;
    padding-bottom: 0.4rem !important;
    margin-bottom: 0.5rem !important;
    background: transparent !important;
    pointer-events: none;
}

/* Tautan di dalam Kolom Mega Menu */
.nav-links-bar li.mega-menu > ul.sub-menu ul.sub-menu {
    display: block !important;
    position: static !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

.nav-links-bar li.mega-menu > ul.sub-menu ul.sub-menu li a {
    padding: 0.35rem 0.5rem !important;
    font-size: 0.85rem !important;
    color: #334155 !important;
    border-radius: 0.25rem;
    font-weight: 500 !important;
}

.nav-links-bar li.mega-menu > ul.sub-menu ul.sub-menu li a:hover {
    background-color: #f1f5f9 !important;
    color: #047857 !important;
}

/* END MENU STYLE*/
/* Hero Landing */
.hero { background-color: var(--primary-800); color: var(--white); padding: 2.5rem 0; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: center; }
@media (min-width: 768px) { .hero-grid { grid-template-columns: 1.2fr 0.8fr; } }
.hero-tag { display: inline-block; background-color: var(--primary-700); color: var(--primary-100); font-size: 0.75rem; font-weight: 600; padding: 0.25rem 0.75rem; border-radius: 9999px; margin-bottom: 1rem; border: 1px solid rgba(255,255,255,0.1); }
.hero-h1 { font-size: 2.25rem; font-weight: 800; line-height: 1.2; margin-bottom: 1rem; }
@media (min-width: 768px) { .hero-h1 { font-size: 3rem; } }
.hero-p { color: var(--primary-100); font-size: 1rem; margin-bottom: 1.75rem; line-height: 1.7; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1.25rem; border-radius: 0.5rem; font-weight: 700; font-size: 0.875rem; text-decoration: none; transition: background 0.2s; cursor: pointer; border: none; }
.btn-amber { background-color: var(--accent-500); color: var(--slate-900); }
.btn-amber:hover { background-color: var(--accent-600); }
.btn-outline { background-color: rgba(6, 78, 59, 0.6); color: var(--white); border: 1px solid var(--primary-700); }
.btn-outline:hover { background-color: var(--primary-900); }

/* Notice Box */
.notice-box { background-color: rgba(6, 78, 59, 0.5); border: 1px solid rgba(5, 150, 105, 0.4); border-radius: 1rem; padding: 1.5rem; backdrop-filter: blur(4px); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
.notice-title { font-size: 1.125rem; font-weight: 700; color: var(--accent-500); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.notice-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.notice-item { background-color: rgba(6, 78, 59, 0.4); border: 1px solid rgba(5, 150, 105, 0.3); padding: 0.875rem; border-radius: 0.5rem; }
.notice-item strong { display: block; color: var(--white); font-size: 0.875rem; margin-bottom: 0.15rem; }
.notice-item span { font-size: 0.75rem; color: var(--primary-100); }

/* Quick Stats Bar */
.stats-section { background-color: var(--white); border-bottom: 1px solid var(--slate-200); padding: 1.5rem 0; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02); }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; text-align: center; }
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); border-left: 1px solid var(--slate-200); } }
.stat-item { padding: 0.5rem; }
@media (min-width: 768px) { .stat-item { border-right: 1px solid var(--slate-200); } }
.stat-num { font-size: 1.75rem; font-weight: 800; color: var(--primary-800); }
.stat-label { font-size: 0.75rem; font-weight: 600; color: var(--slate-500); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 0.25rem; }

/* Sections */
.section { padding: 1rem 0; }
.bg-slate-100 { background-color: var(--slate-100); }
.bg-white { background-color: var(--white); }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-title { font-size: 2rem; font-weight: 800; color: var(--slate-900); }
.section-sub { font-size: 0.95rem; color: var(--slate-600); margin-top: 0.5rem; }

/* Services Grid */
.grid-4 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.service-card { background-color: var(--white); border: 1px solid var(--slate-200); border-radius: 0.875rem; padding: 2rem 1.5rem; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,0.05); transition: transform 0.2s, box-shadow 0.2s; }
.service-card:hover { transform: translateY(-3px); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.08); }
.service-icon { width: 3.5rem; height: 3.5rem; background-color: var(--primary-100); color: var(--primary-700); border-radius: 9999px; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem auto; font-size: 1.5rem; }
.service-h3 { font-size: 1.05rem; font-weight: 700; color: var(--slate-900); margin-bottom: 0.5rem; }
.service-p { font-size: 0.8rem; color: var(--slate-500); line-height: 1.5; }

/* APBDes Section */
.apbdes-box { background: linear-gradient(135deg, var(--primary-900), var(--primary-800)); color: var(--white); border-radius: 1rem; padding: 2.5rem; box-shadow: 0 10px 25px -5px rgba(6,78,59,0.3); }
.apbdes-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; }
@media (min-width: 768px) { .apbdes-grid { grid-template-columns: 1fr 1fr; } }
.apbdes-card { background-color: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: 0.75rem; padding: 1.5rem; margin-bottom: 1rem; }
.apbdes-label { font-size: 0.875rem; color: var(--primary-100); font-weight: 500; }
.apbdes-val { font-size: 1.75rem; font-weight: 800; color: var(--accent-500); margin-top: 0.25rem; }

/* News Grid */
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 1.75rem; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.news-card { background-color: var(--slate-50); border: 1px solid var(--slate-200); border-radius: 0.875rem; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; transition: transform 0.2s; }
.news-card:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.news-img { height: 13rem; width: 100%; object-fit: cover; background-color: var(--primary-100); display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.news-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.news-date { font-size: 0.75rem; font-weight: 700; color: var(--primary-700); text-transform: uppercase; letter-spacing: 0.05em; }
.news-h3 { font-size: 1.15rem; font-weight: 700; color: var(--slate-900); margin: 0.35rem 0 0.75rem 0; line-height: 1.4; }
.news-h3 a { text-decoration: none; color: inherit; }
.news-h3 a:hover { color: var(--primary-700); }
.news-excerpt { font-size: 0.875rem; color: var(--slate-600); margin-bottom: 1.25rem; line-height: 1.6; }
.news-link { font-size: 0.8rem; font-weight: 700; color: var(--primary-700); text-decoration: none; display: inline-flex; align-items: center; gap: 0.35rem; }
.news-link:hover { text-decoration: underline; }

/* Layout Dua Kolom Single Post */
.single-layout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}

@media (min-width: 992px) {
    .single-layout-grid {
        grid-template-columns: 2.3fr 1fr; 
    }
}

/* Carousel Galeri */
.gallery-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.gallery-carousel-container {
    display: flex !important;
    gap: 1.5rem !important;
    overflow-x: auto !important;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 1rem 0.25rem;
    width: 100%;
}

.gallery-carousel-container::-webkit-scrollbar {
    display: none;
}

.gallery-slide-card {
    flex: 0 0 320px !important;
    width: 320px !important;
    min-width: 320px !important;
    height: 250px !important;
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    background-color: var(--slate-200);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    display: block !important;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.gallery-slide-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
}

.gallery-slide-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.5s ease;
}

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6, 78, 59, 0.95) 0%, rgba(15, 23, 42, 0.4) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    color: var(--white);
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.gallery-slide-card:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-tag-badge {
    background-color: var(--accent-500);
    color: var(--slate-900);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.2rem 0.6rem;
    border-radius: 0.25rem;
    display: inline-block;
    width: max-content;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.gallery-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.35rem;
    color: #ffffff;
}

.gallery-date {
    font-size: 0.75rem;
    color: var(--primary-100);
}

.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    z-index: 10;
    transition: all 0.2s ease;
}

.gallery-nav-btn:hover {
    background-color: #047857 !important;
    color: #ffffff !important;
    border-color: #047857 !important;
}

.gallery-prev { left: -1.25rem; }
.gallery-next { right: -1.25rem; }

/* Animasi Reveal Section */
.reveal-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-section.active {
    opacity: 1;
    transform: translateY(0);
}

/* Widget Post Terbaru */
.zs-widget-posts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.zs-widget-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.875rem;
    padding: 0.75rem;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.zs-widget-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.06);
}

.zs-widget-thumb {
    flex: 0 0 85px;
    width: 85px;
    height: 70px;
    border-radius: 0.5rem;
    overflow: hidden;
    background-color: #cbd5e1;
}

.zs-widget-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zs-widget-no-thumb {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: #f1f5f9;
}

.zs-widget-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.zs-widget-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    margin-bottom: 0.4rem;
}

.zs-widget-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.zs-widget-date {
    font-size: 0.7rem;
    color: #475569;
    font-weight: 600;
}

.zs-widget-badge {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 0.3rem;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(2, 132, 199, 0.2);
    white-space: nowrap;
}

/* Widget Kategori Badge */
.zs-categories-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.zs-cat-badge {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff !important;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.4rem 0.85rem;
    border-radius: 0.375rem;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(2, 132, 199, 0.2);
    transition: transform 0.2s ease, opacity 0.2s ease;
    display: inline-block;
}

.zs-cat-badge:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* Widget Arsip */
.zs-archive-list li a {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.zs-archive-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Footer & Peta Responsif */
.footer { background-color: var(--slate-900); color: var(--slate-400); padding-top: 4rem; padding-bottom: 1.5rem; border-top: 1px solid var(--slate-800); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; margin-bottom: 3rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-h4 { color: var(--white); font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; }
.footer-p { font-size: 0.875rem; line-height: 1.7; color: #fff; }
.footer-bottom { text-align: center; font-size: 0.75rem; border-top: 1px solid var(--slate-800); padding-top: 1.5rem; color: var(--slate-500); }

.footer-map-container iframe {
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
    display: block;
}

/* =================================================
   HEADER DUAL BARIS, STICKY, MEGA MENU & MOBILE
   ================================================= */

.site-header-dual {
    background-color: var(--white, #ffffff);
    border-bottom: 1px solid var(--slate-200, #e2e8f0);
    width: 100%;
}

/* --- 1. STICKY HEADER SAAT SCROLL --- */
.site-header-dual.sticky-scrolled {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    animation: slideDownHeader 0.3s ease-in-out;
}

@keyframes slideDownHeader {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* --- BARIS ATAS --- */
.header-top-row {
    background-color: #f8fafc;
    padding: 1rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.header-top-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.brand-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--slate-900, #0f172a);
    line-height: 1.2;
}

.brand-sub {
    font-size: 0.75rem;
    color: var(--slate-500, #64748b);
    font-weight: 500;
}

/* Form Search Atas */
.search-form-header {
    display: flex;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 9999px;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.search-form-header .search-field-header {
    border: none;
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    outline: none;
    width: 240px;
    color: #334155;
    background: transparent;
}

.search-form-header .search-submit-header {
    background-color: #064e3b;
    color: #ffffff;
    border: none;
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.search-form-header .search-submit-header:hover {
    background-color: #065f46;
}

/* Tombol Hamburger (Disembunyikan di Desktop) */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: #064e3b;
    border-radius: 3px;
    transition: all 0.3s ease;
}


/* --- 2. BARIS BAWAH: NAVIGASI BAR & MEGA MENU --- */
.main-navigation-bar {
    background-color: var(--primary-900);
    z-index: 100;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.nav-links-bar {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links-bar > li {
    position: relative;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.nav-links-bar > li:first-child {
    border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.nav-links-bar > li > a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 1.25rem;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
}

.nav-links-bar > li > a:hover,
.nav-links-bar > li.current-menu-item > a,
.nav-links-bar > li.current_page_item > a {
    background-color: #f59e0b !important;
    color: #ffffff !important;
}


/* --- 3. DUKUNGAN MEGA MENU & DROPDOWN --- */
/* Jika item menu ingin dijadikan Mega Menu, tambahkan CSS Grid kolom */
.nav-links-bar li.menu-item-has-children ul.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background-color: #ffffff !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 0.5rem 0.5rem;
    padding: 1rem;
    list-style: none;
    z-index: 110;
}

/* Dukungan Mega Menu: Menjadi Grid Kolom jika memiliki struktur bertingkat banyak */
.nav-links-bar li.mega-menu > ul.sub-menu {
    left: 0 !important;
    right: auto;
    width: 600px; /* Lebar panel Mega Menu */
    display: none;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.nav-links-bar li:hover > ul.sub-menu {
    display: block;
}
.nav-links-bar li.mega-menu:hover > ul.sub-menu {
    display: grid !important;
    animation: fadeInSub 0.2s ease-in-out forwards;
}

@keyframes fadeInSub {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.nav-links-bar ul.sub-menu ul.sub-menu {
    top: 0;
    left: 100%;
    border-radius: 0.5rem;
}

.nav-links-bar ul.sub-menu a {
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    color: #334155 !important;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.3rem;
    transition: background 0.2s, color 0.2s;
}

.nav-links-bar ul.sub-menu a:hover {
    background-color: #f1f5f9;
    color: #064e3b !important;
}

.nav-links-bar > li.menu-item-has-children > a::after {
    content: " ▾";
    font-size: 0.75rem;
    margin-left: 0.35rem;
}

.nav-links-bar ul.sub-menu a::after {
    content: none !important;
}


/* --- 4. RESPONSIF UNTUK MOBILE --- */
@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .header-search-bar-inline {
        display: none; /* Sembunyikan search bar atas di mobile, atau pindahkan ke menu jika perlu */
    }

    .main-navigation-bar {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #064e3b;
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    }

    .main-navigation-bar.mobile-active {
        display: block;
    }

    .nav-links-bar {
        flex-direction: column;
    }

    .nav-links-bar > li {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links-bar > li:first-child {
        border-left: none;
    }

    .nav-links-bar ul.sub-menu {
        position: static !important;
        box-shadow: none !important;
        background-color: rgba(0, 0, 0, 0.1) !important;
        padding-left: 1rem;
        width: 100% !important;
    }

    .nav-links-bar li.mega-menu > ul.sub-menu {
        display: block !important; /* Ubah grid menjadi list biasa di mobile */
    }

    /* Animasi Tombol Hamburger ketika aktif */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}


/* Memastikan Overlay Galeri / Berita selalu tampil permanen */
.gallery-slide-card .gallery-overlay {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

/* Opsional: Efek zoom halus pada gambar saja saat di-hover tanpa menyembunyikan teks */
.gallery-slide-card:hover .gallery-slide-img {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}