/* ==========================================================================
   PORTAL INFORMASI MUSCAB V - DPC SKYNAV MATSC
   Warna mengikuti poster: biru tua, emas, dan putih.
   ========================================================================== */

:root {
    --navy-900: #0a1c3d;
    --navy-800: #102a52;
    --navy-700: #16386c;
    --gold: #d4a437;
    --gold-soft: #f0c964;
    --ink: #10203a;
    --ink-soft: #4a5b75;
    --muted: #8496ad;
    --line: rgba(16, 32, 58, 0.1);
    --paper: #f4f7fb;
    --card: #ffffff;
    --radius: 14px;
    --radius-sm: 9px;
}

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

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--paper);
    color: var(--ink);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.hidden { display: none !important; }

/* ---- Kepala halaman ---------------------------------------------------- */

.info-header {
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
    border-bottom: 3px solid var(--gold);
}

.info-header-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 16px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.info-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Lambang Skynav berwarna biru, jadi diberi alas putih agar terlihat
   jelas di atas latar biru tua. */
.logo-badge {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 50%;
    padding: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.logo-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-muscab {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(212, 164, 55, 0.55);
}

.hero-logo {
    display: block;
    width: 100%;
    max-width: 320px;
    margin: 0 auto 22px;
    border-radius: var(--radius);
    border: 1px solid rgba(212, 164, 55, 0.4);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
}

.info-brand h1 {
    font-size: 22px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 1px;
    line-height: 1.1;
}

.info-tagline {
    font-size: 12px;
    font-weight: 600;
    color: var(--gold-soft);
    letter-spacing: 1.5px;
}

.info-header-right {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.info-motto {
    font-size: 12px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.72);
}

.info-login-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    background: var(--gold);
    color: var(--navy-900);
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
}

.info-login-link:hover {
    background: var(--gold-soft);
    transform: translateY(-1px);
}

/* ---- Tata letak --------------------------------------------------------- */

.info-layout {
    flex: 1;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 26px 22px 40px;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 26px;
    align-items: start;
}

.info-nav {
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 4px 18px rgba(16, 32, 58, 0.05);
}

.info-nav-item {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    padding: 11px 14px;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    color: var(--ink-soft);
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: all 0.18s;
}

.info-nav-item i {
    width: 18px;
    font-size: 14px;
    color: var(--muted);
    transition: color 0.18s;
}

.info-nav-item:hover {
    background: rgba(16, 56, 108, 0.06);
    color: var(--navy-800);
}

.info-nav-item.active {
    background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-700) 100%);
    color: #ffffff;
}

.info-nav-item.active i { color: var(--gold-soft); }

.nav-count {
    margin-left: auto;
    min-width: 22px;
    padding: 2px 7px;
    border-radius: 20px;
    background: rgba(212, 164, 55, 0.18);
    color: var(--gold);
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}

.info-nav-item.active .nav-count {
    background: var(--gold);
    color: var(--navy-900);
}

/* ---- Isi ---------------------------------------------------------------- */

.info-main { min-width: 0; }

.info-loading {
    padding: 60px 20px;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
}

.info-card {
    padding: 28px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 4px 18px rgba(16, 32, 58, 0.05);
}

.info-card + .info-card { margin-top: 18px; }

.page-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--navy-900);
    margin-bottom: 6px;
}

.page-title-rule {
    width: 54px;
    height: 4px;
    background: var(--gold);
    border-radius: 4px;
    margin-bottom: 20px;
}

.rich-text p {
    font-size: 14.5px;
    line-height: 1.75;
    color: var(--ink-soft);
    margin-bottom: 13px;
}

.rich-text ul {
    margin: 0 0 15px 2px;
    padding: 0;
    list-style: none;
}

.rich-text li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 9px;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--ink-soft);
}

.rich-text li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 11px;
    color: var(--gold);
}

.empty-note {
    padding: 44px 20px;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
}

.empty-note i {
    display: block;
    font-size: 34px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.updated-note {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px dashed var(--line);
    font-size: 11.5px;
    color: var(--muted);
}

/* ---- Home --------------------------------------------------------------- */

.hero {
    padding: 34px 30px;
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
    border-radius: var(--radius);
    color: #ffffff;
    margin-bottom: 18px;
}

.hero h2 {
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 8px;
    line-height: 1.2;
}

.hero .hero-rule {
    width: 60px;
    height: 4px;
    background: var(--gold);
    border-radius: 4px;
    margin-bottom: 18px;
}

.hero p {
    font-size: 14.5px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 12px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
    margin-top: 22px;
}

.hero-stat {
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(212, 164, 55, 0.3);
    border-radius: var(--radius-sm);
}

.hero-stat .label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--gold-soft);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 5px;
}

.hero-stat .value {
    font-size: 17px;
    font-weight: 800;
    color: #ffffff;
}

/* ---- Timeline ----------------------------------------------------------- */

.timeline { position: relative; padding-left: 8px; }

.timeline-item {
    position: relative;
    display: flex;
    gap: 18px;
    padding-bottom: 24px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
    content: '';
    position: absolute;
    left: 21px;
    top: 46px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--gold) 0%, rgba(212, 164, 55, 0.2) 100%);
}

.timeline-item:last-child::before { display: none; }

.timeline-no {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gold) 0%, #b8860b 100%);
    color: var(--navy-900);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 900;
    box-shadow: 0 3px 10px rgba(212, 164, 55, 0.35);
}

.timeline-body {
    flex: 1;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(16, 42, 82, 0.04) 0%, rgba(255, 255, 255, 0) 100%);
    border: 1px solid var(--line);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius-sm);
}

.timeline-date {
    display: inline-block;
    margin-bottom: 6px;
    font-size: 12.5px;
    font-weight: 800;
    color: var(--gold);
    letter-spacing: 0.3px;
}

.timeline-title {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--navy-900);
    line-height: 1.5;
}

.timeline-note {
    margin-top: 5px;
    font-size: 13px;
    color: var(--ink-soft);
    line-height: 1.55;
}

/* ---- Kartu bakal calon -------------------------------------------------- */

.calon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 18px;
}

.calon-card {
    padding: 22px 18px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    text-align: center;
    box-shadow: 0 4px 18px rgba(16, 32, 58, 0.05);
    transition: transform 0.18s, box-shadow 0.18s;
}

.calon-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(16, 32, 58, 0.1);
}

.calon-avatar {
    width: 92px;
    height: 92px;
    margin: 0 auto 14px;
    border-radius: 50%;
    border: 3px solid var(--gold);
    background-size: cover;
    background-position: center;
    background-color: var(--navy-800);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-soft);
    font-size: 28px;
    font-weight: 800;
    overflow: hidden;
}

.calon-nama {
    font-size: 15px;
    font-weight: 800;
    color: var(--navy-900);
    margin-bottom: 4px;
    line-height: 1.3;
}

.calon-jabatan {
    font-size: 12.5px;
    color: var(--ink-soft);
    margin-bottom: 3px;
}

.calon-nik {
    font-size: 11.5px;
    color: var(--muted);
}

.calon-motto {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--line);
    font-size: 12.5px;
    font-style: italic;
    color: var(--gold);
}

/* ---- Visi misi ---------------------------------------------------------- */

.vm-card { margin-bottom: 18px; }

.vm-head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.vm-avatar {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 2px solid var(--gold);
    background-size: cover;
    background-position: center;
    background-color: var(--navy-800);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-soft);
    font-size: 20px;
    font-weight: 800;
}

.vm-head h3 {
    font-size: 16px;
    font-weight: 800;
    color: var(--navy-900);
}

.vm-head span {
    font-size: 12.5px;
    color: var(--ink-soft);
}

.vm-block { margin-bottom: 16px; }

.vm-block:last-child { margin-bottom: 0; }

.vm-label {
    display: inline-block;
    margin-bottom: 8px;
    padding: 4px 12px;
    background: rgba(212, 164, 55, 0.14);
    color: #9a7418;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* ---- Pengumuman --------------------------------------------------------- */

.pengumuman-item {
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--muted);
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
}

.pengumuman-item.penting {
    border-left-color: var(--gold);
    background: rgba(212, 164, 55, 0.05);
}

.pengumuman-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.pengumuman-item h3 {
    font-size: 15.5px;
    font-weight: 800;
    color: var(--navy-900);
}

.pengumuman-date {
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
}

.badge-penting {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 9px;
    background: var(--gold);
    color: var(--navy-900);
    border-radius: 20px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

/* ---- Dokumentasi -------------------------------------------------------- */

.doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 16px;
}

.doc-item {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--card);
}

.doc-thumb {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    background: rgba(16, 32, 58, 0.05);
}

.doc-body { padding: 12px 14px; }

.doc-body h4 {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 4px;
}

.doc-body p {
    font-size: 12px;
    color: var(--ink-soft);
    line-height: 1.5;
}

/* ---- Kaki halaman ------------------------------------------------------- */

.info-footer {
    padding: 20px;
    background: var(--navy-900);
    border-top: 3px solid var(--gold);
    text-align: center;
    color: var(--gold-soft);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 3px;
}

.info-footer small {
    display: block;
    margin-top: 7px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0;
}

/* ---- Layar kecil -------------------------------------------------------- */

@media (max-width: 900px) {
    .info-layout {
        grid-template-columns: 1fr;
        padding: 18px 14px 30px;
        gap: 16px;
    }

    .info-nav {
        position: static;
        flex-direction: row;
        overflow-x: auto;
        padding: 8px;
        gap: 6px;
    }

    .info-nav-item {
        flex-shrink: 0;
        width: auto;
        padding: 9px 14px;
        font-size: 12.5px;
        white-space: nowrap;
    }

    .info-card { padding: 20px 17px; }
    .hero { padding: 24px 20px; }
    .hero h2 { font-size: 22px; }
    .info-motto { display: none; }
    .logo-muscab { display: none; }
    .hero-logo { max-width: 230px; }
}

/* ---- Pendaftaran bakal calon mandiri ------------------------------------ */

.grup-judul {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 800;
    color: var(--navy-900);
    margin-bottom: 4px;
}

.grup-judul i { color: var(--gold); font-size: 14px; }

.daftar-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 18px;
}

.daftar-banner i { font-size: 22px; }

.daftar-banner strong { display: block; font-size: 14px; font-weight: 800; }

.daftar-banner span { font-size: 12.5px; opacity: 0.85; }

.daftar-banner.buka {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #0b6b4f;
}

.daftar-banner.tutup {
    background: rgba(16, 32, 58, 0.05);
    border: 1px solid var(--line);
    color: var(--ink-soft);
}

.daftar-form { margin-top: 6px; }

.df-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.df-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.df-field label {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ink-soft);
}

.df-field .wajib { color: #d94141; }

.df-field input,
.df-field textarea {
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #ffffff;
    color: var(--ink);
    font-family: inherit;
    font-size: 13.5px;
    outline: none;
    transition: border-color 0.18s, box-shadow 0.18s;
}

.df-field textarea { min-height: 96px; resize: vertical; line-height: 1.6; }

.df-field input:focus,
.df-field textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 164, 55, 0.15);
}

.df-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    margin-bottom: 16px;
    border: 1px dashed var(--line);
    border-radius: var(--radius-sm);
    background: rgba(212, 164, 55, 0.05);
    font-size: 13px;
    line-height: 1.55;
    color: var(--ink-soft);
    cursor: pointer;
}

.df-check input { margin-top: 3px; flex-shrink: 0; }

.df-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.df-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border: none;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-700) 100%);
    color: #ffffff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}

.df-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(16, 42, 82, 0.25);
}

.df-btn:disabled { opacity: 0.55; cursor: not-allowed; }

.df-btn.ghost {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--ink-soft);
}

.df-btn.ghost:hover:not(:disabled) {
    border-color: var(--gold);
    color: #9a7418;
    box-shadow: none;
}

.df-pesan {
    display: none;
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    line-height: 1.6;
}

.df-pesan.tampil { display: block; }

.df-pesan.sukses {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #0b6b4f;
}

.df-pesan.gagal {
    background: rgba(217, 65, 65, 0.08);
    border: 1px solid rgba(217, 65, 65, 0.28);
    color: #9b2727;
}

.df-pesan.netral {
    background: rgba(16, 32, 58, 0.04);
    border: 1px solid var(--line);
    color: var(--ink-soft);
}

/* Nomor urut calon, ditempel di sudut kartu agar terbaca lebih dulu
   daripada nama, sebagaimana pada surat suara. */
.calon-card { position: relative; }

.calon-nomor {
    position: absolute; top: 12px; left: 12px;
    min-width: 34px; height: 34px; padding: 0 8px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px;
    background: #0ea5a4; color: #fff;
    font-size: 16px; font-weight: 800; line-height: 1;
}

.vm-nomor {
    display: inline-block; margin-bottom: 4px;
    padding: 2px 10px; border-radius: 999px;
    background: #0ea5a4; color: #fff;
    font-size: 11px; font-weight: 700; letter-spacing: 0.3px;
}

/* Pemutar video visi misi. Perbandingan sisi dikunci 16:9 supaya tingginya
   menyesuaikan sendiri, baik pada layar lebar maupun telepon. */
.vm-video {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    background: #0f172a;
}

.vm-video iframe,
.vm-video video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
