/**
 *   Written By Arya W.R.
 *   Updated: Red Glass Theme - Mobile Menu Collapse/Expand Accordion
 *   Warna dominan diubah menjadi #D92243
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #FFF5F6 0%, #FEF2F4 100%);
    color: #2d1e1a;
    line-height: 1.5;
}

:root {
    --red-primary: #D92243;
    --red-dark: #B81B38;
    --red-light: #F5C6CE;
    --glass-bg: rgba(217, 34, 67, 0.92);
    --glass-border: rgba(255, 255, 255, 0.25);
}

/* ========== HEADER GLASS ========== */
.modern-header {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.logo-img {
    height: 75px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}
.brand-area {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.brand-text h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    line-height: 1.2;
    margin: 0;
}
.brand-text .tagline {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.9);
    line-height: 1.3;
}
.menu-toggle {
    display: none;
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}
.menu-toggle:hover {
    background: rgba(255,255,255,0.4);
    transform: scale(0.95);
}
.menu-toggle i {
    transition: transform 0.3s ease;
}
.glass-nav {
    background: transparent;
}
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}
.nav-menu li {
    position: relative;
    list-style: none;
}
.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 0;
    transition: 0.2s;
    position: relative;
}
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffeb3b;
    transition: width 0.3s;
}
.nav-menu a:hover::after {
    width: 100%;
}
.nav-menu a:hover {
    color: #ffeb3b;
}
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: auto;
    background: rgba(217, 34, 67, 0.96);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 0.5rem 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    border: 1px solid var(--glass-border);
    z-index: 1001;
    list-style: none;
}
.dropdown-menu li {
    list-style: none;
    padding: 0;
}
.dropdown-menu a {
    padding: 0.6rem 1.2rem;
    display: block;
    white-space: nowrap;
}
.dropdown-menu a::after {
    display: none;
}
.dropdown-menu a:hover {
    background: rgba(255,255,255,0.2);
    padding-left: 1.5rem;
}
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Hilangkan bullet */
ul, ol {
    list-style: none;
}
.nav-menu, .nav-menu ul, .dropdown-menu, .dropdown-menu ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

/* ========== MOBILE MENU - COLLAPSE/EXPAND ACCORDION ========== */
@media (max-width: 768px) {
    .menu-toggle { 
        display: flex;
    }
    .glass-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: rgba(20, 20, 30, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        transition: right 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
        padding: 5rem 1.5rem 2rem;
        z-index: 1000;
        border-left: 1px solid rgba(255,255,255,0.2);
        box-shadow: -10px 0 30px rgba(0,0,0,0.3);
    }
    .glass-nav.active { 
        right: 0; 
    }
    .nav-menu { 
        flex-direction: column; 
        gap: 0;
    }
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .nav-menu a {
        font-size: 1.1rem;
        padding: 0.8rem 0;
        display: block;
    }
    .nav-menu a::after {
        display: none;
    }
    /* Dropdown toggle untuk mobile */
    .dropdown-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        cursor: pointer;
    }
    .dropdown-toggle i.fa-chevron-down {
        transition: transform 0.3s ease;
        font-size: 0.8rem;
    }
    .dropdown.open .dropdown-toggle i.fa-chevron-down {
        transform: rotate(180deg);
    }
    .dropdown-menu {
        position: static;
        background: rgba(0,0,0,0.3);
        backdrop-filter: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin-top: 0;
        padding: 0;
        border: none;
        border-radius: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out;
        box-shadow: none;
    }
    .dropdown.open .dropdown-menu {
        max-height: 500px; /* cukup besar untuk menampung submenu */
        transition: max-height 0.5s ease-in;
    }
    .dropdown-menu li {
        border-bottom: none;
    }
    .dropdown-menu a {
        padding: 0.8rem 0 0.8rem 1rem;
        font-size: 1rem;
        white-space: normal;
    }
    .dropdown-menu a:hover {
        background: rgba(255,255,255,0.15);
        padding-left: 1.5rem;
    }
    .brand-text h1 {
        font-size: 1rem;
    }
    .logo-img {
        height: 50px;
    }
    /* Overlay gelap */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        backdrop-filter: blur(2px);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: 0.3s;
    }
    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

/* ========== SLIDER RESPONSIVE (tidak terpotong) ========== */
.slider-container {
    position: relative;
    max-width: 1280px;
    margin: 1rem auto;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    background: #f5f5f5;
}
.slides {
    display: flex;
    transition: transform 0.5s ease;
}
.slide {
    min-width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.slide img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
    display: block;
}
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 12px 18px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}
.prev:hover, .next:hover {
    background: var(--red-primary);
}
.prev {
    left: 20px;
}
.next {
    right: 20px;
}
.dots {
    text-align: center;
    position: absolute;
    bottom: 20px;
    width: 100%;
    z-index: 15;
}
.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 6px;
    background: rgba(255,255,255,0.6);
    border-radius: 50%;
    cursor: pointer;
}
.dot.active, .dot:hover {
    background: #ffeb3b;
}

@media (max-width: 768px) {
    .slider-container {
        border-radius: 16px;
        margin: 0.5rem;
    }
    .slide img {
        width: 100%;
        height: auto;
        max-height: none;
        object-fit: contain;
        background: #f5f5f5;
    }
    .prev, .next {
        padding: 8px 12px;
        font-size: 1rem;
    }
    .prev {
        left: 10px;
    }
    .next {
        right: 10px;
    }
    .dot {
        width: 8px;
        height: 8px;
        margin: 0 4px;
    }
}

/* ========== CONTAINER & CARD ========== */
.container {
    max-width: 1280px;
    margin: 2rem auto;
    padding: 2rem 1.5rem;
    background: white;
    border-radius: 28px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}
.section-title {
    font-size: 2rem;
    font-weight: 700;
    border-left: 8px solid var(--red-primary);
    padding-left: 1rem;
    margin-bottom: 2rem;
    color: var(--red-dark);
}

/* ========== TAB BERITA ========== */
.tab-berita {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.tab-buttons {
    display: flex;
    background: var(--red-light);
    border-bottom: 2px solid var(--red-primary);
}
.tab-btn {
    flex: 1;
    padding: 1rem;
    font-weight: 700;
    background: transparent;
    border: none;
    color: #5a2a28;
    cursor: pointer;
    transition: 0.2s;
}
.tab-btn.active {
    background: var(--red-primary);
    color: white;
}
.tab-content {
    padding: 2rem;
    display: none;
}
.tab-content.active { display: block; }
.berita-item {
    border-bottom: 1px solid #f0e0de;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: 0.2s;
}
.berita-item:hover {
    background: var(--red-light);
    border-radius: 16px;
    padding-left: 0.8rem;
}
.berita-item h3 { color: var(--red-dark); margin-bottom: 0.5rem; }
.berita-date { font-size: 0.8rem; color: #d32f2f; }

/* ========== STRUKTUR ORGANISASI ========== */
.struktur-kategori {
    background: white;
    border-radius: 24px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.struktur-kategori h3 {
    color: var(--red-dark);
    border-left: 5px solid var(--red-primary);
    padding-left: 1rem;
}
.struktur-card-hirarki {
    background: #fff5f5;
    border-radius: 20px;
    padding: 1rem;
    text-align: center;
    transition: 0.2s;
}
.struktur-card-hirarki:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(217, 34, 67, 0.2);
}
.struktur-card-hirarki img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--red-primary);
}
.struktur-info h3 { color: var(--red-dark); }
.jabatan { color: var(--red-primary); font-weight: 600; }

/* ========== DOKUMEN ========== */
.doc-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: 0.2s;
}
.doc-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
.doc-icon { color: var(--red-primary); font-size: 2.5rem; }
.download-doc {
    background: var(--red-primary);
    color: white;
    border-radius: 40px;
    padding: 0.6rem 1.2rem;
    display: inline-block;
    text-decoration: none;
}
.download-doc:hover { background: var(--red-dark); }

/* ========== FORM KONTAK ========== */
.kontak-form {
    background: white;
    border-radius: 28px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 28px;
}
.btn-kirim {
    background: var(--red-primary);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 40px;
    cursor: pointer;
}
.btn-kirim:hover { background: var(--red-dark); }

/* ========== SPONSOR ========== */
.sponsor-section {
    background: white;
    border-radius: 28px;
    padding: 2rem;
    text-align: center;
}
.sponsor-title {
    color: var(--red-dark);
    margin-bottom: 1.5rem;
}
.sponsor-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}
.sponsor-item img {
    max-height: 80px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* ========== FOOTER ========== */
footer {
    background: var(--red-dark);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
}

/* ========== BUTTONS & LINKS ========== */
.btn, .back-link {
    background: var(--red-primary);
    color: white;
    border-radius: 40px;
    padding: 8px 16px;
    text-decoration: none;
    display: inline-block;
}
.btn:hover, .back-link:hover { background: var(--red-dark); }

/* ========== LIST KONTEN ========== */
.berita-konten ul, .berita-konten ol,
.sejarah-konten ul, .sejarah-konten ol,
.visi-misi-container ul, .visi-misi-container ol {
    list-style: revert;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}