/* ===== RESET & BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; color: #333; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 2.2rem; color: #1a3c6e; margin-bottom: 10px; position: relative; display: inline-block; }
.section-title h2::after { content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); width: 60px; height: 4px; background: linear-gradient(90deg, #1a3c6e, #4a90d9); border-radius: 2px; }
.section-title p { color: #666; margin-top: 15px; font-size: 1.05rem; }
section { padding: 80px 0; }
.btn { display: inline-block; padding: 12px 30px; border-radius: 50px; font-weight: 600; font-size: 1rem; cursor: pointer; transition: all 0.3s ease; border: none; }
.btn-primary { background: linear-gradient(135deg, #1a3c6e, #4a90d9); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(26, 60, 110, 0.4); }
.btn-secondary { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-secondary:hover { background: #fff; color: #1a3c6e; }

/* ===== TOP BAR ===== */
.top-bar {
    background: #0d1f3c;
    color: #ccc;
    padding: 8px 0;
    font-size: 0.85rem; 
}
.top-bar .container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    flex-wrap: wrap; 
}
.top-bar a { color: #ccc; margin-left: 15px; transition: color 0.3s; }
.top-bar a:hover { color: #4a90d9; }
/* ===== NAVBAR ===== */
.navbar {
    background: #f6f8f8;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 80px; /* Tinggi navbar */
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0; /* Logo tidak mengecil */
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1a3c6e, #4a90d9);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

.logo-text h1 {
    font-size: 1.2rem;
    color: #1a3c6e;
    line-height: 1.2;
    margin: 0;
    white-space: nowrap;
}

.logo-text span {
    font-size: 0.75rem;
    color: #666;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-left: auto; /* Push nav-links ke kanan */
}

.nav-links a {
    padding: 8px 12px;
    font-weight: 500;
    color: #444;
    transition: all 0.3s;
    position: relative;
    font-size: 0.95rem;
    white-space: nowrap;
    text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
    color: #1a3c6e;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: #165fad;
    transition: width 0.3s;
    border-radius: 2px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 70%;
}

/* Hamburger Menu - Hidden by default */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 10px;
    z-index: 1001;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: #1a3c6e;
    border-radius: 3px;
    transition: all 0.3s;
}

/* ===== RESPONSIVE MOBILE ===== */

/* ===== MOBILE NAVBAR FIX ===== */
@media (max-width: 992px) {
    .hamburger {
        display: flex;
        z-index: 1002;
        cursor: pointer;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -300px; /* Sembunyi di kanan */
        width: 280px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        padding: 80px 20px 20px;
        box-shadow: -5px 0 20px rgba(0,0,0,0.15);
        transition: right 0.3s ease;
        z-index: 1001;
        gap: 0;
        overflow-y: auto;
    }
    
    .nav-links.active {
        right: 0; /* Muncul ke kiri */
    }
    
    .nav-links a, .dropdown-toggle {
        padding: 15px 0;
        border-bottom: 1px solid #f0f0f0;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .nav-links a::after { display: none; } /* Hilangkan underline desktop */
    
    /* Dropdown Mobile */
    .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none; /* Hidden by default */
        background: #f8fafc;
        margin: 0;
        padding: 0;
        border-radius: 0;
    }
    
    .dropdown-menu.show {
        display: flex;
        flex-direction: column;
    }
    
    .dropdown-menu a {
        padding: 12px 20px;
        border-bottom: 1px solid #eee;
        font-size: 0.9rem;
    }
    
    .dropdown-toggle .arrow {
        transition: transform 0.3s;
    }
    
    /* Overlay Gelap */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0; left: 0; width: 100%; height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 1000;
    }
    .nav-overlay.active { display: block; }
}

@media (max-width: 768px) {
    .navbar .container { padding: 0 15px; }
    .logo-icon { width: 40px; height: 40px; font-size: 1.2rem; }
    .logo-text h1 { font-size: 1rem; }
}

/* ===== HERO ===== */
.hero {
    position: relative;
    /* padding-top: 0; */
    min-height: 600px;
    display: flex;
    align-items: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    transition: background-image 1s ease-in-out;
}
.hero::before { 
    content: '';
    position: absolute; 
    top: 0; 
    left: 0;
    right: 0;
    bottom: 0; 
    /* background: rgba(142, 190, 226, 0.5); */
     /* background: linear-gradient(135deg, #0d1f3c 0%, #1a3c6e 50%, #254a8a 100%);  */
     z-index: 0; 
    }
.hero-content {
    position: relative; 
    z-index: 1; 
    max-width: 800px;
    margin: 0 auto;
 }
.hero-badge { display: inline-block; background: rgba(255, 255, 255, 0.15); backdrop-filter: blur(10px); padding: 8px 20px; border-radius: 50px; font-size: 0.9rem; margin-bottom: 20px; border: 1px solid rgba(255, 255, 255, 0.2); }
.hero h2 { font-size: 3.2rem; margin-bottom: 20px; line-height: 1.2; }
.hero p { font-size: 1.2rem; margin-bottom: 35px; opacity: 0.9; line-height: 1.8; }
.hero-buttons { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }
.hero-stats { display: flex; justify-content: center; gap: 50px; margin-top: 60px; flex-wrap: wrap; }
.stat-item { text-align: center; }
.stat-item h3 { font-size: 2.5rem; font-weight: 700; }
.stat-item p { font-size: 0.9rem; opacity: 0.8; margin-bottom: 0; }

/* ===== MARQUEE ===== */
.marquee-bar { background: #f0f4f8; padding: 12px 0; border-bottom: 2px solid #e0e7ef; }
.marquee-content { display: flex; align-items: center; gap: 15px; }
.marquee-label { background: #e74c3c; color: #fff; padding: 4px 15px; border-radius: 4px; font-size: 0.8rem; font-weight: 600; white-space: nowrap; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } }
.marquee-text { overflow: hidden; flex: 1; }
.marquee-text p { white-space: nowrap; animation: marquee 25s linear infinite; font-size: 0.95rem; color: #444; }
@keyframes marquee { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }

/* ===== ABOUT ===== */
.about { background: #fff; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-image .img-placeholder { width: 100%; height: 400px; background: linear-gradient(135deg, #e8eef5, #d0dce8); border-radius: 20px; display: flex; align-items: center; justify-content: center; font-size: 5rem; position: relative; overflow: hidden; }
.about-image .experience-badge { position: absolute; bottom: -20px; right: -20px; background: linear-gradient(135deg, #1a3c6e, #4a90d9); color: #fff; padding: 20px 25px; border-radius: 15px; text-align: center; box-shadow: 0 10px 30px rgba(26, 60, 110, 0.3); }
.experience-badge h3 { font-size: 2rem; line-height: 1; }
.experience-badge p { font-size: 0.85rem; opacity: 0.9; }
.about-content h3 { font-size: 1.8rem; color: #1a3c6e; margin-bottom: 15px; }
.about-content p { color: #555; margin-bottom: 15px; line-height: 1.8; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 25px; }
.about-feature { display: flex; align-items: center; gap: 10px; padding: 10px; background: #f8fafc; border-radius: 10px; }
.about-feature .icon { width: 35px; height: 35px; background: linear-gradient(135deg, #1a3c6e, #4a90d9); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 0.9rem; flex-shrink: 0; }
.about-feature span { font-size: 0.9rem; font-weight: 500; color: #333; }

/* ===== PROGRAMS ===== */
.programs { background: #f8fafc; }
.programs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.program-card { background: #fff; border-radius: 20px; padding: 40px 30px; text-align: center; transition: all 0.3s ease; box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05); position: relative; overflow: hidden; }
.program-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, #1a3c6e, #4a90d9); transform: scaleX(0); transition: transform 0.3s; }
.program-card:hover::before { transform: scaleX(1); }
.program-card:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1); }
.program-icon { width: 80px; height: 80px; background: linear-gradient(135deg, #e8eef5, #d0dce8); border-radius: 20px; display: flex; align-items: center; justify-content: center; font-size: 2.2rem; margin: 0 auto 20px; transition: all 0.3s; }
.program-card:hover .program-icon { background: linear-gradient(135deg, #1a3c6e, #4a90d9); transform: rotateY(180deg); }
.program-card h3 { font-size: 1.3rem; color: #1a3c6e; margin-bottom: 12px; }
.program-card p { color: #666; font-size: 0.95rem; line-height: 1.7; }

/* ===== NEWS ===== */
.news { 
    background: #fff; 
}
.news-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); 
    gap: 30px; }
.news-card { 
    background: #fff; 
    border-radius: 20px; 
    overflow: hidden; 
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08); 
    transition: all 0.3s; 
}
.news-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12); }
.news-image { 
    height: 200px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 3rem; 
    position: relative; 
}
.news-card:nth-child(1) .news-image { 
    background: linear-gradient(135deg, #667eea, #764ba2); 
}
.news-card:nth-child(2) .news-image { 
    background: linear-gradient(135deg, #f093fb, #f5576c); 
}
.news-card:nth-child(3) .news-image { 
    background: linear-gradient(135deg, #4facfe, #00f2fe); 
 }
.news-date { position: absolute; top: 15px; left: 15px; background: rgba(255, 255, 255, 0.95); padding: 8px 12px; border-radius: 10px; text-align: center; font-weight: 600; color: #1a3c6e; font-size: 0.8rem; line-height: 1.3; }
.news-date span { display: block; font-size: 1.4rem; color: #e74c3c; }
.news-content { padding: 25px; }
.news-category { display: inline-block; background: #e8eef5; color: #1a3c6e; padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; margin-bottom: 10px; }
.news-content h3 { font-size: 1.2rem; color: #222; margin-bottom: 10px; line-height: 1.4; }
.news-content p { color: #666; font-size: 0.9rem; line-height: 1.7; }
.news-content .read-more { display: inline-flex; align-items: center; gap: 5px; color: #4a90d9; font-weight: 600; margin-top: 15px; font-size: 0.9rem; transition: gap 0.3s; }
.news-content .read-more:hover { gap: 10px; }

/* ===== TEACHERS ===== */
.teachers { background: #f8fafc; }
.teachers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.teacher-card { background: #fff; border-radius: 20px; padding: 30px; text-align: center; box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05); transition: all 0.3s; }
.teacher-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1); }
.teacher-avatar { width: 100px; height: 100px; border-radius: 50%; margin: 0 auto 15px; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; background: linear-gradient(135deg, #e8eef5, #d0dce8); }
.teacher-card h4 { color: #1a3c6e; font-size: 1.1rem; margin-bottom: 5px; }
.teacher-card .position { color: #4a90d9; font-size: 0.85rem; font-weight: 600; margin-bottom: 5px; }
.teacher-card .subject { color: #888; font-size: 0.85rem; }

/* ===== FACILITIES ===== */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.facility-item {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.facility-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.facility-item .facility-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.facility-item h4 {
    color: #1a3c6e;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* ===== TESTIMONIALS ===== */
.testimonials { background: linear-gradient(135deg, #0d1f3c, #1a3c6e); color: #fff; }
.testimonials .section-title h2 { color: #fff; }
.testimonials .section-title h2::after { background: linear-gradient(90deg, #4a90d9, #fff); }
.testimonials .section-title p { color: rgba(255, 255, 255, 0.7); }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.testimonial-card { background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 20px; padding: 30px; }
.testimonial-card .stars { color: #f1c40f; font-size: 1.1rem; margin-bottom: 15px; }
.testimonial-card p { font-style: italic; line-height: 1.8; opacity: 0.9; margin-bottom: 20px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-author .avatar { width: 45px; height: 45px; background: rgba(255, 255, 255, 0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.testimonial-author h5 { font-size: 0.95rem; }
.testimonial-author span { font-size: 0.8rem; opacity: 0.7; }

/* ===== CTA ===== */
.cta { background: linear-gradient(135deg, #4a90d9, #1a3c6e); text-align: center; color: #fff; padding: 60px 0; }
.cta h2 { font-size: 2rem; margin-bottom: 15px; }
.cta p { font-size: 1.1rem; opacity: 0.9; margin-bottom: 25px; }
.cta .btn { background: #fff; color: #1a3c6e; font-weight: 700; }
.cta .btn:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); }

/* ===== CONTACT ===== */
.contact { background: #f8fafc; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-info { display: flex; flex-direction: column; gap: 25px; }
.contact-item { display: flex; gap: 15px; align-items: flex-start; }
.contact-item .icon-box { width: 50px; height: 50px; background: linear-gradient(135deg, #1a3c6e, #4a90d9); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.2rem; flex-shrink: 0; }
.contact-item h4 { color: #1a3c6e; margin-bottom: 3px; }
.contact-item p { color: #666; font-size: 0.9rem; }
.contact-form { background: #fff; padding: 35px; border-radius: 20px; box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; color: #333; font-size: 0.9rem; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px 16px; border: 2px solid #e0e7ef; border-radius: 10px; font-size: 0.95rem; font-family: inherit; transition: border-color 0.3s; outline: none; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: #4a90d9; }
.form-group textarea { height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

/* ===== FOOTER ===== */
.footer {
    
    background: #0d1f3c;
    color: #ccc;
    padding: 60px 0 0;
 }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, 0.1);
 }
.footer-about h3 { 
    color: #fff; 
    font-size: 1.3rem; 
    margin-bottom: 15px;
 }
.footer-about p {
    font-size: 0.9rem;
    line-height: 1.8; 
    opacity: 0.8; 
}
.footer-social { display: flex; 
    gap: 10px; 
    margin-top: 20px; 
}
.footer-social a { 
    width: 40px; 
    height: 40px; 
    background: rgba(255, 255, 255, 0.1); 
    border-radius: 10px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: #fff; 
    transition: all 0.3s; 
    font-size: 1.1rem; 
}
.footer-social a:hover { 
    background: #4a90d9; 
    transform: translateY(-3px); 
}
.footer-links h4 { 
    color: #fff; 
    margin-bottom: 20px; 
    font-size: 1.1rem; 
}
.footer-links ul li {
     margin-bottom: 10px; 
}
.footer-links ul li a { 
    color: #aaa; 
    font-size: 0.9rem; 
    transition: all 0.3s; 
}
.footer-links ul li a:hover { 
    color: #4a90d9; 
    padding-left: 5px; 
}
.footer-bottom { 
    text-align: center; 
    padding: 20px 0; 
    font-size: 0.85rem; 
    opacity: 0.7; 
}

/* ===== BACK TO TOP ===== */
.back-to-top { 
    position: fixed; 
    bottom: 30px; 
    right: 30px; 
    width: 50px; 
    height: 50px; 
    background: linear-gradient(135deg, #1a3c6e, #4a90d9); 
    color: #fff; 
    border: none; 
    border-radius: 15px; 
    cursor: pointer; 
    font-size: 1.2rem; 
    display: none; 
    align-items: center; 
    justify-content: center; 
    box-shadow: 0 5px 20px rgba(26, 60, 110, 0.4); 
    transition: all 0.3s; 
    z-index: 999; 
}
.back-to-top:hover { transform: translateY(-5px); }
.back-to-top.show { display: flex; }

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) { .about-grid, .contact-grid { grid-template-columns: 1fr; } .footer-grid { grid-template-columns: 1fr 1fr; } .hero h2 { font-size: 2.5rem; } }
@media (max-width: 768px) { .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; padding: 20px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); } .nav-links.active { display: flex; } .nav-links a { padding: 12px 15px; } .hamburger { display: flex; } .hero h2 { font-size: 2rem; } .hero-stats { gap: 30px; } .section-title h2 { font-size: 1.8rem; } .footer-grid { grid-template-columns: 1fr; } .news-grid { grid-template-columns: 1fr; } .form-row { grid-template-columns: 1fr; } .top-bar .container { justify-content: center; text-align: center; } }
@media (max-width: 480px) { .hero h2 { font-size: 1.6rem; } .hero-stats { gap: 20px; } .stat-item h3 { font-size: 1.8rem; } .about-features { grid-template-columns: 1fr; } .programs-grid { grid-template-columns: 1fr; } }

/* ===== ANIMATIONS ===== */
.fade-in { opacity: 0; transform: translateY(30px); transition: all 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
/* Fix Navbar Overlap */
main { margin-top: 0; }

/* Dropdown CSS */
.nav-item { position: relative; }
.dropdown-menu {
    position: absolute; top: 100%; left: 0; min-width: 200px;
    background: #fff; border-radius: 10px; padding: 8px 0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: all 0.25s ease; z-index: 1000;
}
.nav-item:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a { display: block; padding: 10px 20px; color: #444; font-weight: 500; transition: 0.2s; }
.dropdown-menu a:hover { background: #f0f4f8; color: #1a3c6e; padding-left: 25px; }
.dropdown-menu a::after { display: none; }
.dropdown-toggle::after { content: ' ▾'; margin-left: 4px; font-size: 0.7em; }

/* Mobile Dropdown */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static; box-shadow: none; opacity: 1; visibility: visible;
        transform: none; display: none; background: #f8fafc; border-radius: 0;
    }
    .dropdown-menu.show { display: block; }
    .dropdown-menu a { padding: 10px 30px; }
    .dropdown-toggle.active::after { transform: rotate(180deg); }
}


/* ===== MOBILE NAVBAR SEDERHANA ===== */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #1a3c6e;
    transition: 0.3s;
}

.nav-dropdown {
    position: relative;
}

.dropbtn {
    background: none;
    border: none;
    font-size: 0.95rem;
    cursor: pointer;
    padding: 20px 18px;
    font-weight: 500;
    color: #444;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 200px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border-radius: 8px;
    z-index: 1000;
}

.dropdown-content a {
    display: block;
    padding: 12px 20px;
    color: #444;
    text-decoration: none;
}

.dropdown-content a:hover {
    background: #f0f4f8;
}

/* MOBILE */
@media (max-width: 992px) {
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
        z-index: 999;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links a, .dropbtn {
        padding: 15px;
        border-bottom: 1px solid #f0f0f0;
        text-align: left;
        width: 100%;
    }
    
    .dropdown-content {
        position: static;
        box-shadow: none;
        background: #f8fafc;
        display: none;
    }
    
    .dropdown-content.show {
        display: block;
    }
}




/* tgl13 */
.btn-admin {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white !important;
    padding: 10px 24px !important;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
    display: inline-block;
    border: 2px solid transparent;
}

.btn-admin:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.5);
    border-color: #fca5a5;
}


/* ========================================
   FIX FINAL NAVBAR MOBILE & DROPDOWN
======================================== */

.nav-item.dropdown {
    position: relative;
}

/* Tampilan desktop */
@media (min-width: 993px) {
    .nav-links {
        display: flex;
    }

    .nav-item.dropdown:hover > .dropdown-menu,
    .nav-item.dropdown.open > .dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* Tampilan HP dan tablet */
@media (max-width: 992px) {
    .navbar {
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    .navbar .container {
        position: relative;
    }

    .hamburger {
        display: flex;
        position: relative;
        z-index: 1003;
    }

    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        right: -300px;
        left: auto;
        width: 280px;
        max-width: 85vw;
        height: 100vh;
        height: 100dvh;
        padding: 85px 20px 25px;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        overflow-y: auto;
        background: #fff;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.15);
        z-index: 1002;
        transition: right 0.3s ease;
    }

    .nav-links.active {
        display: flex;
        right: 0;
    }

    .nav-links > a,
    .nav-links .dropdown-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 14px 5px;
        border-bottom: 1px solid #eee;
        white-space: normal;
    }

    .nav-item.dropdown {
        display: block;
        width: 100%;
    }

    .dropdown-menu {
        display: none;
        position: static;
        width: 100%;
        min-width: 0;
        margin: 0;
        padding: 0 0 0 12px;
        background: #f8fafc;
        border-radius: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .dropdown-menu.show {
        display: flex;
        flex-direction: column;
    }

    .dropdown-menu a {
        display: block;
        width: 100%;
        padding: 12px 15px;
        border-bottom: 1px solid #eee;
        white-space: normal;
    }

    .dropdown-toggle::after {
        display: none;
    }

    .dropdown-toggle .arrow {
        display: inline-block;
        transition: transform 0.2s ease;
    }

    .dropdown-toggle.active .arrow {
        transform: rotate(180deg);
    }

    /* Matikan efek hover desktop pada HP */
    .nav-item:hover > .dropdown-menu:not(.show) {
        display: none;
    }
}