 :root {
    --blue-950: #031a36;
    --blue-900: #062d63;
    --blue-800: #0b438f;
    --blue-600: #2563eb;
    --gold: #facc15;
    --gold-500: #f59e0b;
    --green: #16a34a;
    --dark: #0f172a;
    --text: #1e293b;
    --muted: #64748b;
    --bg: #f7f9fc;
    --white: #fff;
    --border: #e2e8f0;
    --shadow: 0 18px 50px rgba(15, 23, 42, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}
body, button, input, select, textarea { font-family: inherit; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.container { width: min(1160px, 92%); margin-inline: auto; }

/* NAVBAR */
.nav {
    position: absolute;
    inset: 0 0 auto;
    z-index: 100;
    background: rgba(3, 26, 54, .42);
    border-bottom: 1px solid rgba(255,255,255,.14);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.nav-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; min-width: 0; }
.brand-logos { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.brand-logo {
    width: 42px; height: 42px; border-radius: 50%;
    display: grid; place-items: center; overflow: hidden;
    background: rgba(255,255,255,.96);
    border: 2px solid rgba(255,255,255,.72);
    box-shadow: 0 6px 18px rgba(0,0,0,.20);
}
.brand-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ilkom-logo img { width: 34px; height: 38px; }
.unwira-logo img { width: 38px; height: 38px; }
.logo25, .login-logo, .footer-logo {
    display: grid; place-items: center; flex: 0 0 auto; font-weight: 950; color: #fff;
    background: linear-gradient(135deg, var(--gold), var(--gold-500));
    box-shadow: 0 9px 24px rgba(245,158,11,.28);
}
.logo25 { width: 44px; height: 44px; border-radius: 11px; font-size: 20px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 16px; }
.brand-text small { color: var(--gold); font-weight: 800; margin-top: 4px; }
.nav-menu { display: flex; align-items: center; gap: 27px; flex: 0 0 auto; }
.nav-menu a { text-decoration: none; color: #fff; font-size: 14px; font-weight: 750; transition: .2s ease; }
.nav-menu a:hover, .nav-menu a.active { color: var(--gold); }
.admin-button { padding: 9px 15px; border: 1px solid rgba(255,255,255,.7); border-radius: 9px; background: rgba(255,255,255,.08); }
.admin-button:hover { background: rgba(255,255,255,.18); color: #fff !important; }
.nav-toggle { display: none; border: 1px solid rgba(255,255,255,.45); color: #fff; background: rgba(255,255,255,.08); border-radius: 9px; padding: 8px 11px; }

/* HERO */
.hero {
    position: relative;
    min-height: 690px;
    display: flex;
    align-items: center;
    padding: 120px 0 105px;
    color: #fff;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}
.hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(circle at 12% 25%, rgba(37,99,235,.18), transparent 32%), radial-gradient(circle at 90% 20%, rgba(250,204,21,.14), transparent 28%);
}
.hero::after {
    content: ""; position: absolute; inset: auto 0 0; height: 125px; pointer-events: none;
    background: linear-gradient(transparent, var(--bg));
}
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.25fr .75fr; gap: 50px; align-items: center; }
.hero-copy { min-width: 0; }
.badge { display: inline-flex; align-items: center; padding: 9px 17px; border-radius: 999px; background: rgba(101,65,207,.72); border: 1px solid rgba(255,255,255,.32); font-size: 14px; font-weight: 800; box-shadow: 0 10px 30px rgba(0,0,0,.15); backdrop-filter: blur(10px); }
.hero h1 { margin: 22px 0 20px; max-width: 780px; font-size: clamp(46px, 6vw, 76px); line-height: .98; letter-spacing: -3px; color: #fff; text-shadow: 0 6px 22px rgba(0,0,0,.32); }
.hero h1 span { color: var(--gold); }
.hero-copy > p { max-width: 700px; margin: 0; font-size: 18px; line-height: 1.65; color: rgba(255,255,255,.93); text-shadow: 0 2px 8px rgba(0,0,0,.24); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 11px 18px; border: 0; border-radius: 12px; text-decoration: none; font-weight: 850; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); }
.primary { color: #172554; background: linear-gradient(135deg, #fde047, var(--gold-500)); box-shadow: 0 10px 28px rgba(250,204,21,.28); }
.primary:hover { box-shadow: 0 14px 34px rgba(250,204,21,.38); }
.outline { color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.68); backdrop-filter: blur(8px); }
.outline:hover { background: rgba(255,255,255,.2); }
.hero-card { position: relative; padding: 35px 28px; border: 1px solid rgba(255,255,255,.36); border-radius: 28px; background: rgba(255,255,255,.16); backdrop-filter: blur(17px); -webkit-backdrop-filter: blur(17px); box-shadow: 0 30px 80px rgba(0,0,0,.28); text-align: center; overflow: hidden; }
.hero-card::before, .hero-card::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.hero-card::before { width: 180px; height: 180px; right: -80px; top: -95px; background: rgba(250,204,21,.12); }
.hero-card::after { width: 130px; height: 130px; left: -60px; bottom: -80px; background: rgba(37,99,235,.18); }
.number { position: relative; z-index: 1; font-size: 112px; font-weight: 950; line-height: 1; color: var(--gold); text-shadow: 0 8px 30px rgba(0,0,0,.25); }
.hero-card h3 { position: relative; z-index: 1; margin: 13px 0 9px; font-size: 25px; line-height: 1.25; }
.hero-card p { position: relative; z-index: 1; margin: 0; color: rgba(255,255,255,.9); font-size: 14px; }

/* STATS */
.stats { position: relative; z-index: 10; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: -42px; }
.stat { display: flex; align-items: center; gap: 18px; min-height: 108px; padding: 20px 24px; border: 1px solid var(--border); border-radius: 20px; background: rgba(255,255,255,.98); box-shadow: var(--shadow); }
.stat-icon { width: 62px; height: 62px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: #fff; font-size: 27px; font-weight: 900; }
.stat-icon.purple { background: linear-gradient(135deg,#6d28d9,#7c3aed); }
.stat-icon.blue { background: linear-gradient(135deg,#2563eb,#3b82f6); }
.stat-icon.gold { background: linear-gradient(135deg,#f59e0b,#facc15); }
.stat strong { display: block; font-size: 31px; line-height: 1.1; color: var(--dark); }
.stat span { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; }

/* SECTIONS */
.section { padding: 72px 0; scroll-margin-top: 30px; }
.competition-section { padding-top: 58px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.eyebrow { margin-bottom: 5px; color: var(--blue-600); font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.section-title { margin: 0 0 7px; font-size: 36px; line-height: 1.15; letter-spacing: -1.5px; color: var(--dark); }
.section-sub { max-width: 760px; margin: 0; color: var(--muted); }

/* SEARCH */
.toolbar { display: grid; grid-template-columns: 1fr 285px; gap: 12px; margin: 25px 0 22px; }
.search-wrap { position: relative; }
.search-wrap > span { position: absolute; left: 15px; top: 50%; transform: translateY(-51%); color: #64748b; font-size: 22px; pointer-events: none; }
.input, .select, .form-grid input, .form-grid textarea { width: 100%; border: 1px solid #dbe2ea; border-radius: 12px; background: #fff; outline: none; padding: 12px 14px; color: var(--text); }
.search { padding-left: 43px !important; }
.input:focus, .select:focus, .form-grid input:focus, .form-grid textarea:focus { border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }

/* CARDS */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid #e5e7eb; border-radius: 20px; background: #fff; box-shadow: 0 12px 35px rgba(15,23,42,.055); transition: transform .22s ease, box-shadow .22s ease; }
.card:hover { transform: translateY(-5px); box-shadow: 0 24px 55px rgba(15,23,42,.12); }
.card[hidden] { display: none !important; }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 20px; background: linear-gradient(135deg,#eff6ff,#fff 55%,#fefce8); }
.icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: #fff; box-shadow: 0 6px 20px rgba(15,23,42,.08); font-size: 25px; }
.category { padding: 6px 10px; border-radius: 999px; background: #dbeafe; color: var(--blue-600); font-size: 12px; font-weight: 850; }
.card-body { display: flex; flex: 1; flex-direction: column; padding: 21px; }
.card h3 { margin: 0 0 7px; color: var(--dark); font-size: 20px; line-height: 1.3; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }
.meta { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 17px 0; }
.meta div { min-width: 0; padding: 8px 9px; border-radius: 9px; background: #f8fafc; color: #475569; font-size: 12px; }
.guide { width: 100%; margin-top: 10px; background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.guide:hover { background: #dbeafe; }
.wa { width: 100%; margin-top: 10px; background: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(22,163,74,.17); }
.wa:hover { background: #15803d; }
.disabled { width: 100%; margin-top: auto; background: #e2e8f0; color: #64748b; cursor: not-allowed; }
.empty-state { margin-top: 20px; padding: 45px 20px; border: 1px dashed #cbd5e1; border-radius: 20px; text-align: center; background: #fff; }
.empty-state[hidden] { display: none; }
.empty-state > div { font-size: 35px; }
.empty-state h3 { margin: 10px 0 5px; }
.empty-state p { margin: 0; color: var(--muted); }

/* ABOUT */
.about-section { padding-top: 10px; }
.about-card { position: relative; display: grid; grid-template-columns: 90px 1fr 300px; align-items: center; gap: 22px; overflow: hidden; padding: 25px; border: 1px solid var(--border); border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.about-mark { width: 78px; height: 78px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg,#312e81,#7c3aed); color: var(--gold); font-size: 29px; font-weight: 950; border: 5px solid #ede9fe; }
.about-image { min-height: 125px; border-radius: 16px; background-size: cover; background-position: center; box-shadow: inset 0 0 0 1px rgba(15,23,42,.06); }

/* FOOTER */
footer { margin-top: 35px; color: #cbd5e1; background: linear-gradient(135deg,#031a36,#082f63,#0f172a); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 40px; padding: 42px 0; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-logo { width: 52px; height: 52px; border-radius: 14px; }
.footer-brand strong, .footer-brand span { display: block; }
.footer-brand strong { color: #fff; }
.footer-brand span { font-size: 13px; }
footer p { margin: 8px 0 0; font-size: 13px; }
footer h3 { margin: 0 0 10px; color: #fff; font-size: 15px; }
footer a { display: block; width: fit-content; margin: 5px 0; color: #cbd5e1; text-decoration: none; font-size: 13px; }
footer a:hover { color: var(--gold); }
.footer-bottom { padding: 16px 0; border-top: 1px solid rgba(255,255,255,.1); text-align: center; font-size: 12px; }

/* ADMIN */
.admin-body { min-height: 100vh; background: #f5f7fb; }
.admin-nav { background: var(--blue-900); color: #fff; box-shadow: 0 6px 20px rgba(2,25,55,.15); }
.admin-nav-inner { min-height: 68px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.admin-brand { color: #fff; text-decoration: none; font-weight: 900; }
.admin-links { display: flex; align-items: center; gap: 16px; font-size: 13px; }
.admin-links a { color: #fef08a; text-decoration: none; font-weight: 750; }
.admin-main { padding: 35px 0 60px; }
.panel { margin-bottom: 24px; padding: 25px; border: 1px solid var(--border); border-radius: 20px; background: #fff; box-shadow: 0 14px 40px rgba(15,23,42,.055); }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 20px; }
.panel h1, .panel h2 { margin: 0; color: var(--dark); }
.panel h1 { font-size: 28px; }
.panel h2 { font-size: 22px; }
.count-pill { padding: 7px 11px; border-radius: 999px; background: #dbeafe; color: var(--blue-800); font-weight: 850; font-size: 12px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-grid label { display: block; color: var(--dark); font-weight: 750; font-size: 14px; }
.form-grid input, .form-grid textarea { display: block; margin-top: 6px; }
.field-help { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; font-weight: 500; }
.form-grid textarea { min-height: 120px; resize: vertical; }
.full { grid-column: 1 / -1; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.secondary { background: #e2e8f0; color: #334155; }
.danger { background: #fee2e2; color: #991b1b; }
.small { min-height: 34px; padding: 7px 10px; border-radius: 9px; font-size: 12px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px; border-bottom: 1px solid #e5e7eb; text-align: left; vertical-align: top; font-size: 13px; }
th { color: #475569; background: #f8fafc; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
td small { display: block; max-width: 350px; margin-top: 4px; color: var(--muted); white-space: normal; }
.actions-cell { display: flex; gap: 7px; white-space: nowrap; }
.actions-cell form { margin: 0; }
.table-link { color: var(--blue-600); font-weight: 800; text-decoration: none; }
.table-empty { padding: 35px; color: var(--muted); text-align: center; }
.alert { margin-bottom: 18px; padding: 12px 14px; border-radius: 12px; font-weight: 650; }
.alert.danger { background: #fee2e2; color: #991b1b; }
.alert.success { background: #dcfce7; color: #166534; }

/* LOGIN */
.login { min-height: 100vh; display: grid; place-items: center; padding: 25px; background-image: linear-gradient(rgba(3,26,54,.88),rgba(8,47,99,.92)), url('../images/UNWIRA-GEDUNG.jpeg'); background-size: cover; background-position: center; }
.login-card { width: min(420px,100%); display: grid; gap: 15px; padding: 32px; border: 1px solid rgba(255,255,255,.18); border-radius: 24px; background: rgba(255,255,255,.97); box-shadow: 0 30px 90px rgba(0,0,0,.35); }
.login-logo { width: 55px; height: 55px; border-radius: 15px; text-decoration: none; font-size: 24px; }
.login-card h1 { margin: 0; color: var(--dark); font-size: 30px; letter-spacing: -1px; }
.login-card p { margin: 4px 0 0; color: var(--muted); }
.login-card label { color: var(--dark); font-weight: 750; }
.login-card input { width: 100%; margin-top: 6px; padding: 12px 13px; border: 1px solid #dbe2ea; border-radius: 10px; outline: none; }
.login-card input:focus { border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.login-card .primary { color: #fff; background: var(--blue-800); box-shadow: none; }
.back-link { text-align: center; color: var(--blue-800); text-decoration: none; font-weight: 700; }

@media (max-width: 1000px) {
    .hero { min-height: 760px; }
    .hero-grid { grid-template-columns: 1fr; gap: 35px; }
    .hero-card { max-width: 420px; }
    .grid { grid-template-columns: repeat(2, 1fr); }
    .about-card { grid-template-columns: 78px 1fr; }
    .about-image { grid-column: 1 / -1; min-height: 170px; }
}

@media (max-width: 800px) {
    .nav-menu { position: absolute; top: 70px; left: 4%; right: 4%; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 10px; border: 1px solid rgba(255,255,255,.2); border-radius: 14px; background: rgba(3,26,54,.96); box-shadow: 0 20px 50px rgba(0,0,0,.2); }
    .nav-menu.open { display: flex; }
    .nav-menu a { padding: 12px; }
    .brand-text { display: none; }
    .brand-logos { gap: 5px; }
    .brand-logo { width: 38px; height: 38px; }
    .logo25 { width: 40px; height: 40px; font-size: 18px; }
    .nav-toggle { display: block; }
    .toolbar { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .full { grid-column: auto; }
}

@media (max-width: 600px) {
    .container { width: 90%; }
    .hero { min-height: 850px; padding: 105px 0 90px; background-position: 62% center; }
    .hero h1 { font-size: 43px; letter-spacing: -1.8px; }
    .hero-copy > p { font-size: 16px; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    .hero-card { padding: 28px 20px; }
    .number { font-size: 82px; }
    .stats { grid-template-columns: 1fr; margin-top: 16px; }
    .section { padding: 55px 0; }
    .section-title { font-size: 30px; }
    .grid { grid-template-columns: 1fr; }
    .about-card { grid-template-columns: 1fr; text-align: center; }
    .about-mark { margin-inline: auto; }
    .about-image { min-height: 145px; }
    .footer-grid { grid-template-columns: 1fr; }
    .admin-nav-inner, .admin-links { align-items: flex-start; }
    .admin-nav-inner { flex-direction: column; padding: 14px 0; }
    .admin-links { flex-wrap: wrap; gap: 10px; }
    .panel { padding: 18px; }
    .panel-heading { align-items: flex-start; flex-direction: column; }
    .actions-cell { flex-direction: column; }
}

/* =========================
   LOGO LOGIN ADMIN
========================= */

.login-logos {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 18px;
}

/* Logo 25 */
.login-logos .login-logo {
    width: 55px;
    height: 55px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;
    text-decoration: none;
}

/* Logo UNWIRA */
.login-logo-img.unwira {
    width: 55px;
    height: 55px;
    object-fit: contain;
}

/* Logo ILKOM */
.login-logo-img.ilkom {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

/* Hilangkan kotak/lingkaran pada logo */
.login-logo-img {
    display: block;
    border: none;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}
/* =========================================================
   TOMBOL POSTER
========================================================= */

.poster-btn {
    width: 100%;
    margin-top: 10px;
    background: #f5f3ff;
    color: #5b21b6;
    border: 1px solid #ddd6fe;
    cursor: pointer;
}

.poster-btn:hover {
    background: #ede9fe;
}


/* =========================================================
   MODAL POSTER
========================================================= */

.poster-modal {
    display: none;

    position: fixed;
    z-index: 99999;

    inset: 0;

    width: 100%;
    height: 100%;

    padding: 20px;

    box-sizing: border-box;

    background: rgba(0, 0, 0, 0.85);

    justify-content: center;
    align-items: center;
}


/* Kotak poster */

.poster-modal-content {
    position: relative;

    max-width: 600px;
    max-height: 95vh;

    display: flex;

    justify-content: center;
    align-items: center;
}


/* Gambar poster */

.poster-modal-content img {
    display: block;

    max-width: 100%;
    max-height: 90vh;

    width: auto;
    height: auto;

    object-fit: contain;

    border-radius: 12px;

    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}


/* Tombol X */

.poster-close {
    position: absolute;

    top: -18px;
    right: -18px;

    width: 45px;
    height: 45px;

    border: none;
    border-radius: 50%;

    background: #ffffff;
    color: #111827;

    font-size: 30px;
    font-weight: 700;

    line-height: 1;

    cursor: pointer;

    z-index: 10;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.poster-close:hover {
    background: #f3f4f6;
}

/* =====================================================
   PERBAIKAN NAVBAR & POSISI DROPDOWN
   ===================================================== */

/* Pastikan nav-inner mengatur jarak dan layout dengan benar */
.nav-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: relative;
}

/* Pastikan menu navigasi berjajar rapi ke samping */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 0 0 auto;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Memperbaiki struktur teks brand agar tidak turun ke bawah (breaking) */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
    min-width: max-content; /* Mencegah teks brand terpotong/turun */
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    white-space: nowrap; /* Mencegah teks Dies Natalis turun baris */
}

/* Perbaikan posisi dropdown agar tidak merusak tata letak navbar */
.nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

/* Styling Menu Dropdown Kategori */
.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    left: 50%;
    min-width: 260px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 9999;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.nav-dropdown-menu a {
    display: block;
    padding: 12px 18px;
    color: #333333 !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-dropdown-menu a:hover {
    background: #f1f5f9;
    color: var(--blue-600) !important;
}

/* Memunculkan dropdown saat di-hover */
.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.nav-dropdown:hover .nav-arrow {
    transform: rotate(180deg);
}

/* Samakan styling tombol dropdown Perlombaan agar mirip dengan menu navigasi teks biasa */
.nav-dropdown-toggle {
    appearance: none;
    -webkit-appearance: none;
    background: transparent !important; /* Menghilangkan latar belakang putih */
    border: none !important; /* Menghilangkan border kotak */
    outline: none;
    margin: 0;
    padding: 0;
    
    /* Mengikuti font dan ukuran teks menu navigasi lainnya */
    font-family: inherit;
    font-size: 14px; 
    font-weight: 750;
    color: #fff; /* Warna teks putih normal */
    
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s ease;
}

/* Warna saat di-hover atau aktif, disamakan dengan menu lain */
.nav-dropdown-toggle:hover, 
.nav-dropdown-toggle.active {
    color: var(--gold);
}

/* Pastikan menu mobile dapat menyesuaikan tinggi otomatis */
.mobile-menu {
  display: flex;
  flex-direction: column;
  height: auto;
  overflow-y: auto;
  z-index: 9999; /* Pastikan menu berada di paling atas */
}

/* Berikan padding yang memadai untuk area sentuh jari (minimal 44px) */
.mobile-menu a, .mobile-menu button {
  padding: 12px 16px;
  display: block;
  width: 100%;
}

/* ===== FIX NAVBAR MOBILE (harus di paling bawah) ===== */
@media (max-width: 800px) {
    .nav-inner { gap: 10px; }
    .brand { min-width: 0; }
    .brand-text { display: none; }
    .brand-logos img { height: 40px; width: auto; max-width: 100%; }

    .nav-menu {
        display: none;
        position: absolute;
        top: 70px; left: 4%; right: 4%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px;
        max-height: calc(100vh - 90px);
        overflow-y: auto;
        border: 1px solid rgba(255,255,255,.2);
        border-radius: 14px;
        background: rgba(3,26,54,.96);
    }
    .nav-menu.open { display: flex; }
    .nav-menu a { padding: 12px; text-align: center; }

    /* Dropdown Perlombaan: tampil di dalam menu, dibuka lewat klik */
    .nav-dropdown { display: block; width: 100%; }
    .nav-dropdown-toggle { width: 100%; justify-content: center; padding: 12px; }
    .nav-dropdown-menu {
        display: none;
        position: static;
        min-width: 0; width: 100%;
        opacity: 1; visibility: visible; transform: none;
        background: rgba(255,255,255,.06);
        box-shadow: none;
    }
    .nav-dropdown:hover .nav-dropdown-menu { transform: none; }
    .nav-dropdown.open .nav-dropdown-menu { display: flex; }
    .nav-dropdown-menu a {
        color: #fff !important;
        white-space: normal;
        text-align: center;
    }
}