:root{
    --navy-950:#0a1220; --navy-900:#0f1b33; --navy-800:#152548;
    --gold:#c9a24b; --gold-light:#e6c878; --gold-soft:rgba(201,162,75,.14);
    --ivory:#faf7f0; --ivory-dim:#f1ede2; --slate-600:#5b6478;
    --line:rgba(15,27,51,.08);
    --shadow-soft:0 10px 34px rgba(10,18,32,.08);
    --shadow-hover:0 22px 48px rgba(10,18,32,.16);
    --radius-lg:22px; --radius-md:16px;
    --font-serif:'Playfair Display', Georgia, serif;
}
*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
    margin:0; font-family:'Poppins', sans-serif;
    color:var(--navy-950); background:var(--ivory);
    -webkit-font-smoothing:antialiased;
    animation:pageFadeIn .45s ease both;
}
@keyframes pageFadeIn{ from{ opacity:0; } to{ opacity:1; } }
a{ color:inherit; text-decoration:none; }
.container{ max-width:1080px; margin:0 auto; padding:0 24px; }

/* ---------- ELEGANT DETAILS ---------- */
::selection{ background:var(--gold); color:var(--navy-950); }
::-webkit-scrollbar{ width:10px; height:10px; }
::-webkit-scrollbar-track{ background:var(--ivory-dim); }
::-webkit-scrollbar-thumb{ background:linear-gradient(180deg,var(--gold),var(--gold-light)); border-radius:10px; }
::-webkit-scrollbar-thumb:hover{ background:var(--gold); }
a:focus-visible, button:focus-visible, input:focus-visible, .nav-link:focus-visible{
    outline:2px solid var(--gold); outline-offset:2px; border-radius:6px;
}

/* ---------- HERO / NAVBAR ---------- */
.topnav{
    display:flex; align-items:center; justify-content:space-between;
    padding:1.1rem 0;
}
.topnav .brand{
    display:flex; align-items:center; gap:.65rem;
    font-family:var(--font-serif); font-weight:700; color:#fff; font-size:1.05rem;
}
.topnav .brand i{ color:var(--gold-light); }
.brand-logo{
    width:42px; height:42px; flex:0 0 auto; border-radius:50%;
    object-fit:contain; background:#fff; padding:3px;
    border:1px solid rgba(201,162,75,.45);
    box-shadow:0 6px 16px rgba(10,18,32,.3);
}
.topnav a.admin-link{
    display:inline-flex; align-items:center; gap:.4rem;
    color:rgba(250,247,240,.7); font-size:.82rem; font-weight:600;
    border:1px solid rgba(201,162,75,.3); padding:.4rem .9rem; border-radius:50px;
    transition:all .2s ease;
}
.topnav a.admin-link:hover{ background:var(--gold-soft); color:var(--gold-light); }

/* ---------- MENU DROPDOWN: FAKULTAS & PRODI ---------- */
.nav-menu{ position:relative; }
.nav-menu-btn{
    display:inline-flex; align-items:center; gap:.5rem;
    background:rgba(255,255,255,.06);
    border:1px solid rgba(201,162,75,.3);
    color:#fff; font-family:'Poppins', sans-serif;
    font-size:.82rem; font-weight:600;
    padding:.5rem 1.05rem; border-radius:50px;
    cursor:pointer; transition:all .2s ease;
}
.nav-menu-btn:hover{ background:var(--gold-soft); border-color:rgba(201,162,75,.5); }
.nav-menu-btn i:first-child{ color:var(--gold-light); }
.nav-menu-btn #navMenuChevron{ font-size:.7rem; transition:transform .25s ease; }

.nav-menu-panel{
    position:absolute; top:calc(100% + 12px); left:50%; transform:translateX(-50%);
    background:#fff; border-radius:16px;
    box-shadow:0 30px 70px rgba(0,0,0,.35);
    width:min(680px, 90vw);
    max-height:0; overflow:hidden;
    opacity:0; visibility:hidden;
    transition:opacity .25s ease, visibility .25s ease;
    z-index:50;
    display:grid; grid-template-columns:repeat(2,1fr);
    gap:0;
}
.nav-menu-panel.show{
    max-height:70vh; overflow-y:auto;
    opacity:1; visibility:visible;
    padding:1.2rem;
}
.nav-menu-group{ padding:.6rem .8rem; }
.nav-menu-fak{
    display:flex; align-items:center; gap:.5rem;
    font-family:var(--font-serif); font-weight:700; font-size:.88rem;
    color:var(--navy-950); margin-bottom:.6rem;
    padding-bottom:.5rem; border-bottom:1px solid var(--line);
}
.nav-menu-fak i{ color:var(--gold); }
.nav-menu-link{
    display:flex; align-items:center; justify-content:space-between; gap:.6rem;
    padding:.55rem .6rem; border-radius:8px;
    font-size:.84rem; color:var(--navy-900); font-weight:500;
    text-decoration:none; transition:background .18s ease;
}
.nav-menu-link:hover{ background:var(--ivory-dim); color:var(--navy-950); }
.nav-menu-jenjang{
    flex:0 0 auto; background:var(--gold-soft); color:#9c7a2e;
    font-size:.66rem; font-weight:700; padding:.15rem .5rem; border-radius:50px;
}
.nav-menu-empty{ font-size:.8rem; color:var(--slate-600); padding:.4rem .6rem; }

@media (max-width:767px){
    .nav-menu-panel{ grid-template-columns:1fr; left:0; transform:none; width:92vw; }
    .nav-menu-btn span{ display:none; }
}
@media (max-width:576px){
    .topnav{ flex-wrap:wrap; gap:.6rem; justify-content:center; }
    .nav-menu-btn{ font-size:.78rem; padding:.45rem .85rem; }
}

.hero{
    position:relative; overflow:hidden;
    padding:0 0 70px;
    background:
        radial-gradient(ellipse at 12% 18%, rgba(201,162,75,.18), transparent 45%),
        radial-gradient(ellipse at 88% 85%, rgba(201,162,75,.10), transparent 50%),
        linear-gradient(150deg,var(--navy-950) 0%,var(--navy-900) 45%,var(--navy-800) 100%);
}
.hero::before{
    content:""; position:absolute; inset:0;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size:56px 56px;
    mask-image:radial-gradient(ellipse at center, black 0%, transparent 75%);
}
.hero-inner{ position:relative; z-index:1; text-align:center; padding-top:2.4rem; }
.eyebrow{
    display:inline-flex; align-items:center; gap:.5rem;
    background:var(--gold-soft); border:1px solid rgba(201,162,75,.4);
    color:var(--gold-light); padding:.5rem 1.1rem; border-radius:50px;
    font-size:.76rem; font-weight:700; letter-spacing:1.4px; text-transform:uppercase;
}
.hero h1{
    font-family:var(--font-serif); color:#fff; font-weight:700;
    font-size:clamp(1.9rem,4vw,2.9rem); line-height:1.25;
    margin:1.2rem auto .9rem; max-width:720px;
}
.hero p{
    color:rgba(250,247,240,.7); font-size:1.02rem; line-height:1.75;
    max-width:600px; margin:0 auto;
}

.stat-strip{
    position:relative; z-index:2; margin-top:-52px;
    display:grid; grid-template-columns:repeat(auto-fit, minmax(130px,1fr)); gap:14px;
}
.stat-strip.stat-strip-4{ grid-template-columns:repeat(4,1fr); }
.stat-strip.stat-strip-5{ grid-template-columns:repeat(5,1fr); }
.stat-box{
    background:#fff; border:1px solid var(--line); border-radius:var(--radius-md);
    box-shadow:var(--shadow-hover); padding:1.4rem 1rem; text-align:center;
}
.stat-box .num{ font-family:var(--font-serif); font-weight:800; font-size:2rem; color:var(--navy-950); line-height:1; }
.stat-box .lbl{ margin-top:.5rem; font-size:.72rem; font-weight:700; letter-spacing:.6px; text-transform:uppercase; color:var(--slate-600); }

/* ---------- SECTION ---------- */
.section{ padding:80px 0 100px; }
.section-head{ text-align:center; max-width:640px; margin:0 auto 3rem; }
.section-eyebrow{ display:inline-block; font-size:.78rem; font-weight:700; letter-spacing:1.6px; text-transform:uppercase; color:var(--gold); margin-bottom:.5rem; }
.section-title{ font-family:var(--font-serif); font-weight:700; color:var(--navy-950); font-size:clamp(1.7rem,3vw,2.2rem); margin:0; }
.section-divider{ width:54px; height:3px; border-radius:4px; background:var(--gold); margin:1.1rem auto 0; }

.obe-note{
    display:flex; align-items:flex-start; gap:1rem;
    background:#fff; border:1px solid var(--line); border-radius:var(--radius-md);
    box-shadow:var(--shadow-soft); padding:1.3rem 1.5rem; margin-bottom:2.2rem;
}
.obe-note i{ font-size:1.5rem; color:var(--gold); flex:0 0 auto; margin-top:.1rem; }
.obe-note p{ color:var(--slate-600); font-size:.9rem; line-height:1.75; margin:0; }
.obe-note strong{ color:var(--navy-950); }

/* ---------- ACCORDION MATA KULIAH ---------- */
.mk-item{
    background:#fff; border:1px solid var(--line); border-radius:var(--radius-lg);
    box-shadow:var(--shadow-soft); margin-bottom:20px; overflow:hidden;
    transition:box-shadow .3s ease, border-color .3s ease;
}
.mk-item.open{ box-shadow:var(--shadow-hover); border-color:rgba(201,162,75,.3); }
.mk-head{ display:flex; align-items:center; gap:1rem; padding:1.4rem 1.7rem; cursor:pointer; user-select:none; }
.mk-icon{
    width:52px;height:52px; flex:0 0 auto; display:flex;align-items:center;justify-content:center;
    border-radius:14px; background:linear-gradient(135deg,var(--navy-800),var(--navy-950));
    color:var(--gold-light); font-size:1.3rem; box-shadow:0 10px 22px rgba(15,27,51,.25);
}
.mk-head-text{ flex:1; min-width:0; }
.mk-head-text .kode{
    display:inline-flex; align-items:center; gap:.35rem; background:var(--gold-soft); color:#9c7a2e;
    font-size:.7rem; font-weight:700; letter-spacing:.5px; text-transform:uppercase;
    padding:.22rem .65rem; border-radius:50px; margin-bottom:.4rem;
}
.mk-head-text h3{ font-family:var(--font-serif); font-weight:700; color:var(--navy-950); font-size:1.12rem; margin:0; line-height:1.4; }
.mk-head-text .sub{ font-size:.78rem; color:var(--slate-600); margin-top:.3rem; }
.mk-score{ flex:0 0 auto; text-align:center; display:flex; flex-direction:column; align-items:center; }
.mk-score .val{ font-family:var(--font-serif); font-weight:800; font-size:1.5rem; color:var(--navy-950); line-height:1; }
.mk-score .lbl{ font-size:.62rem; font-weight:700; letter-spacing:.5px; text-transform:uppercase; color:var(--slate-600); margin-top:.25rem; }
.mk-chevron{
    flex:0 0 auto; width:34px;height:34px; border-radius:50%; background:var(--ivory-dim);
    display:flex;align-items:center;justify-content:center; color:var(--navy-900); font-size:.9rem;
    transition:transform .3s ease, background .25s ease;
}
.mk-item.open .mk-chevron{ transform:rotate(180deg); background:var(--gold-soft); color:#9c7a2e; }
.mk-body{ max-height:0; overflow:hidden; transition:max-height .45s ease; }
.mk-body-inner{ padding:0 1.7rem 1.9rem; border-top:1px dashed var(--line); }

.block-title{ display:flex; align-items:center; gap:.6rem; font-size:.76rem; font-weight:700; letter-spacing:.9px; text-transform:uppercase; color:var(--gold); margin:1.6rem 0 1rem; }

.cpl-list{ list-style:none; margin:0; padding:0; }
.cpl-list li{ display:flex; align-items:flex-start; gap:.7rem; background:var(--ivory-dim); border-radius:12px; padding:.85rem 1rem; margin-bottom:.6rem; font-size:.87rem; color:var(--navy-900); line-height:1.6; }
.cpl-list li:last-child{ margin-bottom:0; }
.cpl-list li b{ flex:0 0 auto; background:var(--navy-950); color:var(--gold-light); font-size:.7rem; font-weight:700; padding:.25rem .55rem; border-radius:6px; font-family:'Courier New', monospace; }

.cpmk-detail{ border:1px solid var(--line); border-radius:14px; padding:1rem 1.2rem; margin-bottom:.8rem; }
.cpmk-detail:last-child{ margin-bottom:0; }
.cpmk-detail-head{ display:flex; justify-content:space-between; align-items:flex-start; gap:1rem; margin-bottom:.6rem; }
.cpmk-detail-head .txt{ font-size:.87rem; color:var(--navy-900); line-height:1.6; font-weight:500; }
.cpmk-detail-head .pct{ flex:0 0 auto; font-family:var(--font-serif); font-weight:800; font-size:1.05rem; color:var(--navy-950); }
.cpl-tag-sm{ display:inline-block; background:var(--gold-soft); color:#9c7a2e; font-size:.68rem; font-weight:700; padding:.2rem .55rem; border-radius:6px; margin:0 .3rem .3rem 0; }
.progress-track{ width:100%; height:7px; border-radius:8px; background:var(--ivory-dim); overflow:hidden; }
.progress-fill{ height:100%; border-radius:8px; background:linear-gradient(90deg,var(--gold),var(--gold-light)); }

.empty-state{ text-align:center; padding:4rem 1rem; background:#fff; border:1px dashed var(--line); border-radius:var(--radius-lg); color:var(--slate-600); }
.empty-state i{ font-size:2.4rem; color:var(--gold); margin-bottom:1rem; display:block; }

footer{ text-align:center; padding:2.4rem 0 3rem; color:var(--slate-600); font-size:.82rem; }

@media (max-width:991px){ .stat-strip{ grid-template-columns:repeat(3,1fr); } .stat-strip.stat-strip-4{ grid-template-columns:repeat(2,1fr); } .stat-strip.stat-strip-5{ grid-template-columns:repeat(3,1fr); } }
@media (max-width:640px){
    .stat-strip{ grid-template-columns:repeat(2,1fr); margin-top:-30px; }
    .section{ padding:60px 0 70px; }
    .mk-head{ flex-wrap:wrap; }
}

/* ---------- DIREKTORI FAKULTAS & PRODI (index.php) ---------- */
.fakultas-block{ margin-bottom:2.6rem; }
.fakultas-block:last-child{ margin-bottom:0; }
.fakultas-title{
    display:flex; align-items:center; gap:.7rem;
    font-family:var(--font-serif); font-weight:700; font-size:1.15rem;
    color:var(--navy-950); margin-bottom:1.2rem;
}
.fakultas-title .icn{
    width:40px;height:40px; border-radius:12px;
    background:linear-gradient(135deg,var(--navy-800),var(--navy-950));
    color:var(--gold-light); display:flex;align-items:center;justify-content:center; font-size:1.05rem;
}
.prodi-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.prodi-card{
    background:#fff; border:1px solid var(--line); border-radius:var(--radius-md);
    box-shadow:var(--shadow-soft); padding:1.4rem; transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    display:block;
}
.prodi-card:hover{ transform:translateY(-5px); box-shadow:var(--shadow-hover); border-color:rgba(201,162,75,.3); }
.prodi-card .jenjang{
    display:inline-block; background:var(--gold-soft); color:#9c7a2e;
    font-size:.68rem; font-weight:700; padding:.2rem .6rem; border-radius:50px; margin-bottom:.7rem;
}
.prodi-card h4{ font-family:var(--font-serif); font-weight:700; font-size:1rem; color:var(--navy-950); margin:0 0 .8rem; line-height:1.4; }
.prodi-card-stats{ display:flex; flex-wrap:wrap; gap:.5rem .9rem; }
.prodi-card-stats span{ display:flex; align-items:center; gap:.35rem; font-size:.74rem; color:var(--slate-600); font-weight:500; }
.prodi-card-stats i{ color:var(--gold); font-size:.8rem; }
.prodi-card .meta{ display:flex; justify-content:space-between; align-items:center; font-size:.78rem; color:var(--slate-600); margin-top:.9rem; padding-top:.8rem; border-top:1px dashed var(--line); }
.prodi-card .meta b{ font-family:var(--font-serif); font-weight:800; font-size:1.05rem; color:var(--navy-950); }

.breadcrumb-mini{ font-size:.82rem; color:rgba(250,247,240,.6); margin-top:.6rem; }
.breadcrumb-mini a{ color:var(--gold-light); font-weight:600; }

/* ---------- DAFTAR LENGKAP CPL (prodi.php) ---------- */
.cpl-section-head{ margin-bottom:1.6rem; }
.cpl-section-head:not(:first-child){ margin-top:3.2rem; }
.cpl-full-grid{
    display:grid; grid-template-columns:repeat(2,1fr); gap:16px;
    margin-bottom:1rem;
}
.cpl-full-card{
    background:#fff; border:1px solid var(--line); border-radius:var(--radius-md);
    box-shadow:var(--shadow-soft); padding:1.3rem 1.4rem;
    transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.cpl-full-card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-hover); border-color:rgba(201,162,75,.3); }
.cpl-full-top{ display:flex; justify-content:space-between; align-items:center; margin-bottom:.7rem; }
.cpl-full-top .kode{
    background:var(--navy-950); color:var(--gold-light);
    font-family:'Courier New', monospace; font-size:.74rem; font-weight:700;
    padding:.25rem .6rem; border-radius:6px;
}
.cpl-full-top .pct{ font-family:var(--font-serif); font-weight:800; font-size:1.15rem; color:var(--navy-950); }
.cpl-full-card p{ font-size:.87rem; color:var(--navy-900); line-height:1.65; margin:0 0 1rem; }
.cpl-full-foot{ display:flex; align-items:center; gap:.8rem; }
.cpl-full-foot .progress-track{ flex:1; }
.cpl-full-foot .usage{ font-size:.72rem; color:var(--slate-600); font-weight:600; white-space:nowrap; }

@media (max-width:640px){ .cpl-full-grid{ grid-template-columns:1fr; } }

@media (max-width:900px){ .prodi-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:640px){ .prodi-grid{ grid-template-columns:1fr; } }

/* ---------- TIM DOSEN (prodi.php) ---------- */
.dosen-grid{
    display:grid; grid-template-columns:repeat(3,1fr); gap:18px;
    margin-bottom:1rem;
}
.dosen-card{
    background:#fff; border:1px solid var(--line); border-radius:var(--radius-lg);
    box-shadow:var(--shadow-soft); padding:1.6rem 1.4rem; text-align:center;
    transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.dosen-card:hover{ transform:translateY(-6px); box-shadow:var(--shadow-hover); border-color:rgba(201,162,75,.3); }
.dosen-photo{
    width:84px; height:84px; border-radius:50%; object-fit:cover;
    margin:0 auto 1rem; display:block;
    border:3px solid var(--gold-soft);
}
.dosen-photo-fallback{
    display:flex; align-items:center; justify-content:center;
    background:linear-gradient(135deg,var(--navy-800),var(--navy-950));
    color:var(--gold-light); font-family:var(--font-serif); font-weight:700; font-size:1.5rem;
    border:3px solid var(--gold-soft);
}
.dosen-card h4{
    font-family:var(--font-serif); font-weight:700; font-size:1.02rem;
    color:var(--navy-950); margin:0 0 .4rem; line-height:1.4;
}
.dosen-jabatan{
    display:inline-block; background:var(--gold-soft); color:#9c7a2e;
    font-size:.72rem; font-weight:700; padding:.25rem .7rem; border-radius:50px;
    margin-bottom:.6rem;
}
.dosen-nidn{ font-size:.76rem; color:var(--slate-600); font-family:'Courier New', monospace; margin-bottom:.7rem; }
.dosen-info{
    display:flex; align-items:center; justify-content:center; gap:.4rem;
    font-size:.8rem; color:var(--navy-900); margin-bottom:.7rem; line-height:1.5;
}
.dosen-info i{ color:var(--gold); flex:0 0 auto; }
.dosen-keahlian{ display:flex; flex-wrap:wrap; justify-content:center; gap:.35rem; margin-bottom:.9rem; }
.dosen-keahlian span{
    background:var(--ivory-dim); color:var(--slate-600); font-size:.7rem; font-weight:600;
    padding:.22rem .6rem; border-radius:50px;
}
.dosen-stat-box{
    background:var(--ivory-dim); border-radius:12px; padding:.8rem .9rem;
    margin-bottom:.8rem; text-align:left;
}
.dosen-stat-row{ display:flex; justify-content:space-between; gap:.6rem; }
.dosen-stat-row span{ display:flex; align-items:center; gap:.35rem; font-size:.73rem; color:var(--slate-600); font-weight:600; }
.dosen-stat-row i{ color:var(--gold); }
.dosen-stat-pct{ font-size:.7rem; color:var(--slate-600); margin-top:.4rem; text-align:center; }
.dosen-detail-link{
    display:flex; align-items:center; justify-content:center; gap:.4rem;
    font-size:.78rem; font-weight:700; color:var(--navy-900);
    text-decoration:none; margin-bottom:.9rem;
    padding:.55rem; border-radius:10px; border:1.5px solid var(--line);
    transition:all .2s ease;
}
.dosen-detail-link:hover{ background:var(--navy-950); color:var(--gold-light); border-color:var(--navy-950); }
.dosen-detail-link i{ transition:transform .2s ease; }
.dosen-detail-link:hover i{ transform:translateX(3px); }

.dosen-email{
    display:inline-flex; align-items:center; gap:.4rem;
    font-size:.78rem; color:var(--navy-900); font-weight:600;
    text-decoration:none; padding-top:.8rem; border-top:1px dashed var(--line);
    width:100%; justify-content:center;
}
.dosen-email:hover{ color:var(--gold); }
.dosen-email i{ color:var(--gold); }

@media (max-width:900px){ .dosen-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:640px){ .dosen-grid{ grid-template-columns:1fr; } }

/* ---------- HALAMAN DETAIL DOSEN (dosen.php) ---------- */
.dosen-profile-card{
    display:flex; align-items:flex-start; gap:1.6rem;
    background:#fff; border:1px solid var(--line); border-radius:var(--radius-lg);
    box-shadow:var(--shadow-soft); padding:1.8rem; margin-bottom:2.5rem;
    flex-wrap:wrap;
}
.dosen-profile-photo{
    width:100px; height:100px; border-radius:50%; object-fit:cover;
    border:3px solid var(--gold-soft); flex:0 0 auto;
}
.dosen-profile-photo-fallback{
    display:flex; align-items:center; justify-content:center;
    background:linear-gradient(135deg,var(--navy-800),var(--navy-950));
    color:var(--gold-light); font-family:var(--font-serif); font-weight:700; font-size:1.8rem;
}
.dosen-profile-info{ flex:1; min-width:220px; }

.row-stat-3{
    display:grid; grid-template-columns:repeat(3,1fr); gap:16px;
    margin-bottom:3rem;
}

@media (max-width:640px){
    .dosen-profile-card{ flex-direction:column; align-items:center; text-align:center; }
    .row-stat-3{ grid-template-columns:1fr; }
}
