/* ===================================================================
   FKM UMI — Theme (Ungu / Purple)
   Public Health Faculty, Universitas Muslim Indonesia
   =================================================================== */
:root {
    --fkm-primary: #5e2b8a;
    --fkm-primary-dark: #46206a;
    --fkm-primary-darker: #341852;
    --fkm-primary-light: #7c45ad;
    --fkm-primary-soft: #f3edf9;
    --fkm-accent: #f5b301;
    --fkm-accent-dark: #d99a00;
    --fkm-ink: #2a2433;
    --fkm-muted: #6b6577;
    --fkm-line: #e7e2ee;
    --fkm-bg: #faf9fc;
    --fkm-white: #ffffff;
    --fkm-radius: 14px;
    --fkm-shadow: 0 10px 30px rgba(70, 32, 106, .10);
    --fkm-shadow-sm: 0 4px 14px rgba(70, 32, 106, .08);
    --fkm-font: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --fkm-head: 'Poppins', var(--fkm-font);
}

* { box-sizing: border-box; }

body {
    font-family: var(--fkm-font);
    color: var(--fkm-ink);
    background: var(--fkm-bg);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .navbar-brand { font-family: var(--fkm-head); font-weight: 700; }
a { color: var(--fkm-primary); text-decoration: none; transition: .2s; }
a:hover { color: var(--fkm-primary-dark); }
img { max-width: 100%; height: auto; }

.skip-link {
    position: absolute; top: 8px; left: 8px; z-index: 2000;
    background: var(--fkm-primary); color: #fff; padding: .5rem 1rem; border-radius: 8px;
}

.section { padding: 70px 0; }
.section-tight { padding: 45px 0; }
.bg-soft { background: var(--fkm-primary-soft); }
/* Latar khas untuk seksi Agenda & Pengumuman — gradien ungu→emas lembut + aksen */
.bg-agenda {
    position: relative; overflow: hidden;
    background:
        radial-gradient(circle at 10% 18%, color-mix(in srgb, var(--fkm-accent) 12%, transparent), transparent 42%),
        radial-gradient(circle at 90% 88%, color-mix(in srgb, var(--fkm-primary) 14%, transparent), transparent 45%),
        linear-gradient(135deg, #f6f1fb 0%, #fdf8ef 100%);
    border-top: 1px solid rgba(94,43,138,.08);
    border-bottom: 1px solid rgba(94,43,138,.08);
}
.bg-agenda::before {
    content: ""; position: absolute; right: -90px; top: -90px; width: 260px; height: 260px; border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--fkm-accent) 18%, transparent), transparent 70%);
    pointer-events: none;
}
.bg-agenda > .container { position: relative; z-index: 1; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head .eyebrow {
    display: inline-block; color: var(--fkm-primary); font-weight: 700; letter-spacing: .14em;
    text-transform: uppercase; font-size: .78rem; margin-bottom: .6rem;
}
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); color: var(--fkm-primary-darker); }
.section-head h2::after {
    content: ""; display: block; width: 64px; height: 4px; border-radius: 4px;
    background: linear-gradient(90deg, var(--fkm-primary), var(--fkm-accent)); margin: 14px auto 0;
}
.section-head p { color: var(--fkm-muted); margin-top: .75rem; }

/* ---------- Buttons ---------- */
.btn { border-radius: 50px; font-weight: 600; padding: .6rem 1.5rem; }
.btn-primary, .btn-fkm {
    background: var(--fkm-primary); border-color: var(--fkm-primary); color: #fff;
}
.btn-primary:hover, .btn-fkm:hover { background: var(--fkm-primary-dark); border-color: var(--fkm-primary-dark); color:#fff; }
.btn-accent { background: var(--fkm-accent); border-color: var(--fkm-accent); color: #3a2a00; }
.btn-accent:hover { background: var(--fkm-accent-dark); color: #3a2a00; }
.btn-outline-light-fkm { border: 2px solid rgba(255,255,255,.7); color:#fff; }
.btn-outline-light-fkm:hover { background:#fff; color: var(--fkm-primary); }

/* ---------- Topbar ---------- */
.topbar {
    background: var(--fkm-primary-darker); color: rgba(255,255,255,.85); font-size: .82rem;
    padding: 8px 0;
}
.topbar a { color: rgba(255,255,255,.85); }
.topbar a:hover { color: #fff; }
.topbar-info span, .topbar-info a { margin-right: 1.25rem; }
.topbar-social a { margin-left: .9rem; font-size: .95rem; }

/* ---------- Pemilih bahasa (Google Translate) ---------- */
.lang-switch .lang-btn { background: transparent; border: 1px solid rgba(255,255,255,.35); color: #fff; border-radius: 50px; padding: .1rem .7rem; font-size: .8rem; font-weight: 500; cursor: pointer; }
.lang-switch .lang-btn:hover { background: rgba(255,255,255,.14); }
.lang-switch .lang-btn .bi { font-size: .9rem; }
.lang-switch .dropdown-menu {
    min-width: 180px; z-index: 2000; background: #fff; border: 0; border-top: 3px solid var(--fkm-primary);
    border-radius: 12px; box-shadow: var(--fkm-shadow); padding: .4rem;
}
.lang-switch .dropdown-item { border-radius: 8px; font-weight: 500; color: var(--fkm-ink); padding: .5rem .8rem; }
.lang-switch .dropdown-item:hover, .lang-switch .dropdown-item:focus { background: var(--fkm-primary-soft); color: var(--fkm-primary); }
.lang-switch .dropdown-item:active, .lang-switch .dropdown-item.active { background: var(--fkm-primary); color: #fff; }
.lang-switch.lang-light .lang-btn { border-color: var(--fkm-line); color: var(--fkm-ink); }
.lang-switch.lang-light .lang-btn:hover { background: var(--fkm-primary-soft); color: var(--fkm-primary); }
/* Sembunyikan banner & tooltip bawaan Google Translate agar tak mengganggu layout */
.goog-te-banner-frame, .skiptranslate > iframe { display: none !important; }
body { top: 0 !important; }
#goog-gt-tt, .goog-te-balloon-frame { display: none !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
.goog-logo-link, .goog-te-gadget span { display: none !important; }

/* ---------- Navbar ---------- */
.site-header { z-index: 1030; }
.main-navbar { background: #fff; box-shadow: var(--fkm-shadow-sm); padding: .5rem 0; position: relative; border-bottom: 1px solid var(--fkm-line); }
/* Aksen gradien ungu→emas di puncak header (signature tema) */
.main-navbar::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--fkm-primary), var(--fkm-accent)); }
.navbar-brand { gap: .65rem; }
.navbar-brand img { border-radius: 8px; }
.navbar-brand .brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.navbar-brand .brand-text strong { color: var(--fkm-primary); font-size: 1.25rem; letter-spacing: .2px; }
.navbar-brand .brand-text small { color: var(--fkm-muted); font-size: .72rem; font-weight: 500; }
.main-navbar .nav-link {
    color: var(--fkm-ink); font-weight: 600; font-size: .94rem; padding: .5rem .9rem !important;
    border-radius: 10px; transition: color .2s, background .2s, box-shadow .2s;
}
/* Hover: pil ungu lembut; Aktif: pil + garis aksen emas */
.main-navbar .nav-link:hover { color: var(--fkm-primary); background: var(--fkm-primary-soft); }
.main-navbar .nav-link.active { color: var(--fkm-primary); background: var(--fkm-primary-soft); box-shadow: inset 0 -3px 0 var(--fkm-accent); }
.main-navbar .dropdown-toggle::after { margin-left: .4rem; vertical-align: .14em; opacity: .6; }
.nav-search .form-control:focus { border-color: var(--fkm-primary); box-shadow: 0 0 0 .18rem var(--fkm-primary-soft); }
.dropdown-menu {
    border: none; box-shadow: var(--fkm-shadow); border-radius: 12px; padding: .4rem;
    border-top: 3px solid var(--fkm-primary); min-width: 240px;
}
.dropdown-item { border-radius: 8px; font-weight: 500; padding: .55rem .85rem; }
.dropdown-item:hover, .dropdown-item:focus { background: var(--fkm-primary-soft); color: var(--fkm-primary); }
.dropdown-submenu { position: relative; }
.dropdown-submenu .dropdown-menu { top: 0; left: 100%; margin-left: .1rem; }
@media (min-width: 992px) {
    .dropdown-submenu:hover > .dropdown-menu { display: block; }
    .navbar .dropdown:hover > .dropdown-menu { display: block; }
}

/* Mega menu (panel sub-menu multi-kolom) */
.mega-menu { padding: 1rem; min-width: min(640px, 92vw); }
.mega-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .15rem .4rem; }
.mega-col { padding: .25rem .5rem; }
.mega-title { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fkm-primary); font-weight: 700; margin: .3rem 0 .5rem; padding-bottom: .4rem; border-bottom: 1px solid var(--fkm-line); }
.mega-list { list-style: none; margin: 0; padding: 0; }
.mega-list li a { display: block; padding: .4rem .5rem; border-radius: 8px; font-weight: 500; font-size: .9rem; color: var(--fkm-ink); text-decoration: none; }
.mega-list li a:hover { background: var(--fkm-primary-soft); color: var(--fkm-primary); }
.mega-link { display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem; border-radius: 10px; font-weight: 500; font-size: .92rem; color: var(--fkm-ink); text-decoration: none; transition: background .2s, color .2s; }
.mega-link i { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; background: var(--fkm-primary-soft); color: var(--fkm-primary); font-size: .95rem; flex: none; transition: background .2s, color .2s; }
.mega-link:hover, .mega-link.active { background: var(--fkm-primary-soft); color: var(--fkm-primary); }
.mega-link:hover i, .mega-link.active i { background: var(--fkm-primary); color: #fff; }
@media (max-width: 991.98px) {
    .mega-menu { min-width: 100%; padding: .4rem; box-shadow: none; border-top: 0; }
    .mega-grid { grid-template-columns: 1fr; }
    .mega-title { margin-top: .6rem; }
}
.nav-search { position: relative; }
.nav-search .form-control { border-radius: 50px; padding-right: 2.6rem; border-color: var(--fkm-line); min-width: 200px; }
.nav-search .btn { position: absolute; right: 4px; top: 3px; bottom: 3px; border:0; color: var(--fkm-primary); background: transparent; }

/* ---------- Hero / Slider (Split Editorial) ---------- */
.hero { position: relative; overflow: hidden; background: var(--fkm-primary-darker); }

/* Tata letak split: foto di satu sisi, panel ungu berisi teks di sisi lain */
.hs-split { display: flex; height: 82vh; min-height: 520px; max-height: 820px; }
.hs-media { flex: 1 1 56%; position: relative; overflow: hidden; }
.hs-media::after { /* sambungan halus ke panel */
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent 70%, rgba(58,26,90,.45) 100%);
}
.hs-media img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
/* Ken Burns: zoom halus pada slide aktif */
.hero .carousel-item.active .hs-media img { animation: heroZoom 9s ease-out both; }
@keyframes heroZoom { from { transform: scale(1.14); } to { transform: scale(1); } }

.hs-panel {
    flex: 1 1 44%; position: relative; display: flex; flex-direction: column; justify-content: center;
    padding: clamp(2.2rem, 5vw, 4.6rem) clamp(1.8rem, 5%, 4.2rem);
    background: linear-gradient(150deg, var(--fkm-primary-darker) 0%, var(--fkm-primary) 100%);
    overflow: hidden;
}
.hs-panel::before { /* bilah aksen emas pada sambungan */
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--fkm-accent); z-index: 2;
}
.hs-panel::after { /* motif lingkar halus di sudut panel */
    content: ""; position: absolute; right: -120px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%;
    background: radial-gradient(circle, rgba(245,179,1,.16) 0%, transparent 70%);
}

.hero-content { position: relative; z-index: 2; max-width: 520px; }
.hero-kicker {
    display: inline-block; color: var(--fkm-accent); font-weight: 600; letter-spacing: .3em;
    text-transform: uppercase; font-size: .74rem; margin-bottom: 1rem;
}
.hero h2 {
    font-family: var(--fkm-head); font-size: clamp(1.9rem, 3.4vw, 3rem); color: #fff; font-weight: 700;
    line-height: 1.1; letter-spacing: -.5px; margin-bottom: 1.1rem;
}
.hero p {
    color: rgba(255,255,255,.82); font-size: clamp(1rem, 1.3vw, 1.12rem); font-weight: 300;
    line-height: 1.75; margin-bottom: 1.9rem;
}
.hero .hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero .hero-cta .btn { padding: .85rem 2rem; font-size: 1rem; font-weight: 600; }
.hero .hero-cta .btn-accent { box-shadow: 0 14px 36px rgba(245,179,1,.42); }
.hero .hero-cta .btn-accent .bi { transition: transform .25s; }
.hero .hero-cta .btn-accent:hover .bi { transform: translateX(5px); }

/* Nomor slide (editorial) di kaki panel */
.hero-meta {
    position: absolute; left: clamp(1.8rem, 5%, 4.2rem); bottom: clamp(1.6rem, 3vw, 2.6rem); z-index: 2;
    display: flex; align-items: center; gap: .65rem; color: rgba(255,255,255,.85); font-family: var(--fkm-head);
}
.hero-meta .hero-num { font-size: 1.8rem; font-weight: 700; color: #fff; }
.hero-meta .hero-line { width: 46px; height: 1px; background: rgba(255,255,255,.5); }
.hero-meta .hero-total { font-size: .95rem; opacity: .7; }

/* Progress bar timing tiap slide (di kaki panel) */
.hero-progress { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--fkm-accent); z-index: 3; }
.hero .carousel-item.active .hero-progress { animation: heroProg 6s linear forwards; }
@keyframes heroProg { from { width: 0; } to { width: 100%; } }

/* Animasi konten masuk bertahap saat slide aktif */
.hero-content > * { opacity: 0; transform: translateY(30px); }
.hero .carousel-item.active .hero-content > * { animation: heroUp .9s cubic-bezier(.2,.7,.2,1) forwards; }
.hero .carousel-item.active .hero-content > *:nth-child(1) { animation-delay: .28s; }
.hero .carousel-item.active .hero-content > *:nth-child(2) { animation-delay: .44s; }
.hero .carousel-item.active .hero-content > *:nth-child(3) { animation-delay: .6s; }
.hero .carousel-item.active .hero-content > *:nth-child(4) { animation-delay: .76s; }
@keyframes heroUp { to { opacity: 1; transform: none; } }

/* Indikator garis (di atas foto) */
.hero .carousel-indicators { margin-bottom: 2rem; gap: .5rem; justify-content: flex-start; margin-left: 4%; }
.hero .carousel-indicators [data-bs-target] {
    width: 30px; height: 3px; border-radius: 4px; background: rgba(255,255,255,.5); border: 0; opacity: 1; transition: .3s;
}
.hero .carousel-indicators .active { background: var(--fkm-accent); width: 50px; }

/* Kontrol kaca (muncul saat hover, dibatasi area foto) */
.hero .carousel-control-prev, .hero .carousel-control-next { width: 7%; max-width: 56%; opacity: 0; transition: opacity .3s; }
.hero .carousel-control-next { right: 44%; }
.hero:hover .carousel-control-prev, .hero:hover .carousel-control-next { opacity: .9; }
.hero .carousel-control-prev-icon, .hero .carousel-control-next-icon {
    width: 54px; height: 54px; border-radius: 50%; background-color: rgba(255,255,255,.14);
    backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.4); background-size: 38%;
}

/* Responsif: tumpuk foto di atas, panel di bawah */
@media (max-width: 991px) {
    .hs-split { flex-direction: column; height: auto; max-height: none; }
    .hs-media { flex: none; height: 42vh; min-height: 260px; }
    .hs-media::after { display: none; }
    .hs-panel { flex: none; padding: 2.4rem 1.5rem 3rem; }
    .hero-content { max-width: none; }
    .hero-meta { position: static; margin-top: 1.8rem; }
    .hero .carousel-control-next { right: 0; }
    .hero .carousel-control-prev, .hero .carousel-control-next { height: 42vh; }
    .hero .carousel-indicators { margin-bottom: 1rem; margin-left: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
    .hero .carousel-item.active .hs-media img, .hero .carousel-item.active .hero-content > *, .hero-progress {
        animation: none !important; opacity: 1 !important; transform: none !important; width: 100% !important;
    }
}

.hero-static {
    background: linear-gradient(120deg, var(--fkm-primary-darker), var(--fkm-primary));
    color: #fff; padding: 110px 0 90px; text-align: center;
}
.hero-static h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
.hero-static p { color: rgba(255,255,255,.88); max-width: 640px; margin: 1rem auto 0; }

/* ---------- Running text / ticker ---------- */
.ticker { position: relative; z-index: 4; background: var(--fkm-bg); border-top: 1px solid rgba(94,43,138,.08); border-bottom: 1px solid rgba(94,43,138,.1); box-shadow: 0 4px 12px rgba(38,16,60,.05); }
.ticker-bar { display: flex; align-items: stretch; height: 40px; }
/* Label kembar kiri & kanan — selaras dengan menu (teks ungu di tint lembut, tanpa blok pekat) */
.ticker-label {
    display: flex; align-items: center; gap: .5rem; white-space: nowrap; position: relative;
    background: rgba(94,43,138,.06);
    color: var(--fkm-primary); font-weight: 600; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase;
}
.ticker-label .bi { color: var(--fkm-accent); font-size: 1rem; }
.ticker-label-left  { padding: 0 1.2rem 0 clamp(1rem, 4%, 3rem); border-right: 1px solid rgba(94,43,138,.12); }
.ticker-label-right { padding: 0 clamp(1rem, 4%, 3rem) 0 1.2rem; border-left: 1px solid rgba(94,43,138,.12); }
.ticker-viewport { flex: 1; overflow: hidden; display: flex; align-items: center; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%); }
.ticker-track { display: flex; align-items: center; width: max-content; padding-left: 1rem; animation: tickerScroll 60s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item {
    display: inline-flex; align-items: center; gap: .45rem; padding: 0 1.5rem; white-space: nowrap;
    color: #3a2150; font-size: .92rem; font-weight: 500; text-decoration: none; transition: color .2s;
    border-right: 1px solid rgba(94,43,138,.12);
}
.ticker-item .bi { color: var(--fkm-accent); font-size: .8rem; }
.ticker-item:hover { color: var(--fkm-primary); }
@keyframes tickerScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (max-width: 575px) {
    .ticker-bar { height: 36px; }
    .ticker-label { font-size: 0; padding: 0 1rem; gap: 0; }
    .ticker-label .bi { font-size: 1.1rem; }
    .ticker-label .tl-text { display: none; }
    .ticker-item { font-size: .85rem; padding: 0 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
    .ticker-track { animation: none; }
    .ticker-viewport { overflow-x: auto; }
}

/* ---------- Page banner / breadcrumb ---------- */
.page-banner {
    background: linear-gradient(120deg, var(--fkm-primary-darker), var(--fkm-primary-light));
    color: #fff; padding: 60px 0 50px; position: relative;
}
.page-banner::after {
    content:""; position:absolute; inset:0; opacity:.12; pointer-events: none;
    background-image: radial-gradient(circle at 80% 20%, #fff 0, transparent 40%);
}
.page-banner .container { position: relative; z-index: 2; }
.page-banner-title { font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin: 0; }
.page-banner .breadcrumb { margin: .6rem 0 0; position: relative; z-index: 2; }
.page-banner .breadcrumb-item, .page-banner .breadcrumb-item a { color: rgba(255,255,255,.85); transition: color .15s; }
.page-banner .breadcrumb-item a:hover { color: #fff; text-decoration: underline; }
.page-banner .breadcrumb-item.active { color: #fff; }
.page-banner .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.6); }

/* ---------- Cards ---------- */
.card-fkm {
    background: #fff; border: 1px solid var(--fkm-line); border-radius: var(--fkm-radius);
    overflow: hidden; height: 100%; transition: transform .25s, box-shadow .25s;
}
.card-fkm:hover { transform: translateY(-6px); box-shadow: var(--fkm-shadow); }
.card-fkm .thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--fkm-primary-soft); }
.card-fkm .thumb img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.card-fkm:hover .thumb img { transform: scale(1.06); }
.card-fkm .body { padding: 1.25rem; }
.card-fkm .cat {
    display:inline-block; background: var(--fkm-primary-soft); color: var(--fkm-primary);
    font-size: .72rem; font-weight:700; padding:.25rem .7rem; border-radius:50px; text-transform:uppercase;
}
.card-fkm h3, .card-fkm h5 { font-size: 1.06rem; margin: .7rem 0 .5rem; line-height: 1.4; }
.card-fkm h3 a, .card-fkm h5 a { color: var(--fkm-ink); }
.card-fkm h3 a:hover, .card-fkm h5 a:hover { color: var(--fkm-primary); }
.card-fkm .meta { color: var(--fkm-muted); font-size: .82rem; }
.card-fkm .excerpt { color: var(--fkm-muted); font-size: .92rem; }

/* ---------- Stats ---------- */
.stats { background: linear-gradient(120deg, var(--fkm-primary), var(--fkm-primary-dark)); color:#fff; }
.stat-item { text-align:center; padding: 1rem; }
.stat-item .num { font-family: var(--fkm-head); font-size: 2.6rem; font-weight: 800; color: var(--fkm-accent); }
.stat-item .lbl { text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; opacity: .9; }

/* ---------- Program cards ---------- */
.prodi-card {
    background:#fff; border-radius: var(--fkm-radius); padding: 2rem 1.5rem; text-align:center;
    border:1px solid var(--fkm-line); height:100%; transition:.25s;
}
.prodi-card:hover { border-color: var(--fkm-primary); box-shadow: var(--fkm-shadow); transform: translateY(-5px); }
.prodi-card .ic {
    width:72px; height:72px; border-radius:20px; display:grid; place-items:center; margin:0 auto 1rem;
    background: var(--fkm-primary-soft); color: var(--fkm-primary); font-size: 1.9rem;
}
.prodi-card .lvl { color: var(--fkm-accent-dark); font-weight:700; font-size:.8rem; letter-spacing:.05em; }
.badge-akreditasi { background: var(--fkm-primary); color:#fff; border-radius:50px; padding:.3rem .8rem; font-size:.78rem; }

/* Kartu prodi beridentitas (warna aksen per prodi, --pc) */
.prodi-tile {
    --pc: var(--fkm-primary); position: relative; overflow: hidden; height: 100%;
    display: flex; flex-direction: column; background: #fff; border: 1px solid var(--fkm-line);
    border-radius: 18px; padding: 1.6rem 1.5rem 1.3rem; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.prodi-tile::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px;
    background: linear-gradient(90deg, var(--pc), var(--fkm-primary)); }
.prodi-tile::after { content: ""; position: absolute; right: -34px; top: -34px; width: 130px; height: 130px;
    border-radius: 50%; background: var(--pc); opacity: .08; transition: .35s; }
.prodi-tile:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(70,32,106,.16); border-color: transparent; }
.prodi-tile:hover::after { transform: scale(1.6); opacity: .12; }
.pt-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; position: relative; z-index: 1; }
.pt-ic { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-size: 1.85rem;
    color: var(--pc); background: var(--fkm-primary-soft); background: color-mix(in srgb, var(--pc) 14%, #fff); }
.pt-level { background: var(--pc); color: #fff; font-weight: 700; font-size: .72rem; padding: .32rem .85rem;
    border-radius: 50px; letter-spacing: .04em; }
.prodi-tile h3 { font-size: 1.16rem; margin: .1rem 0 .5rem; line-height: 1.3; }
.prodi-tile h3 a { color: var(--fkm-ink); }
.prodi-tile h3 a:hover { color: var(--pc); }
.pt-akred { display: inline-flex; align-items: center; gap: .35rem; align-self: flex-start; font-weight: 700;
    font-size: .73rem; padding: .26rem .7rem; border-radius: 50px; margin-bottom: .7rem;
    background: var(--fkm-primary-soft); color: var(--fkm-primary); }
.pt-akred.ak-unggul { background: linear-gradient(120deg, #fff1c2, #ffe08a); color: #8a6a00; }
.pt-akred.ak-baiksekali { background: #e3edff; color: #2456c9; }
.pt-akred.ak-baik { background: #e6f7ef; color: #138a5e; }
.pt-akred.ak-default { background: var(--fkm-primary-soft); color: var(--fkm-primary); }
.pt-desc { color: var(--fkm-muted); font-size: .9rem; flex-grow: 1; margin-bottom: 1rem; }
.pt-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; border-top: 1px dashed var(--fkm-line); padding-top: .9rem; }
.pt-degree { font-size: .8rem; color: var(--fkm-muted); }
.pt-degree b { color: var(--fkm-primary-darker); }
.pt-btn { border: 1.5px solid var(--pc); color: var(--pc); background: transparent; font-weight: 600; white-space: nowrap; border-radius: 50px; }
.pt-btn:hover { background: var(--pc); color: #fff; }

/* Widget Status Akreditasi (detail prodi) */
.akred-grade { display:flex; align-items:center; justify-content:space-between; gap:.5rem; flex-wrap:wrap; margin-bottom:.3rem; }
.akred-peringkat { display:inline-flex; align-items:center; gap:.45rem; font-weight:700; font-size:1.02rem; padding:.5rem 1rem;
    border-radius:12px; color:#fff; background:linear-gradient(120deg, var(--fkm-primary), var(--fkm-primary-dark));
    box-shadow:0 6px 16px rgba(94,43,138,.25); }
.akred-peringkat .bi { color: var(--fkm-accent); }
.akred-status { background:#e7f7ef; color:#1ba672; font-weight:700; font-size:.72rem; padding:.28rem .7rem; border-radius:50px; }
.akred-detail { margin-top:.7rem; }
.akred-detail li { display:flex; justify-content:space-between; gap:.9rem; align-items:flex-start; font-size:.84rem; }
.akred-detail li strong { color:var(--fkm-muted); font-weight:600; white-space:nowrap; }
.akred-detail li span { text-align:right; color:var(--fkm-ink); font-weight:600; word-break:break-word; }
.akred-source { display:inline-flex; align-items:center; gap:.4rem; margin-top:.8rem; font-size:.78rem; color:var(--fkm-primary); font-weight:600; }
.akred-source:hover { color:var(--fkm-primary-dark); text-decoration:underline; }

/* Timeline riwayat akreditasi (detail prodi) */
.akred-timeline { position:relative; margin-top:1rem; padding-left:30px; }
.akred-timeline::before { content:""; position:absolute; left:9px; top:8px; bottom:8px; width:2px; background:var(--fkm-line); }
.at-item { position:relative; margin-bottom:1rem; }
.at-item:last-child { margin-bottom:0; }
.at-dot { position:absolute; left:-26px; top:9px; width:18px; height:18px; border-radius:50%; background:#fff; border:3px solid var(--fkm-primary-light); }
.at-item.is-current .at-dot { border-color:var(--fkm-accent); background:var(--fkm-accent); box-shadow:0 0 0 4px rgba(245,179,1,.22); }
.at-card { background:#fff; border:1px solid var(--fkm-line); border-radius:12px; padding:.9rem 1.1rem; transition:.2s; }
.at-item.is-current .at-card { border-color:var(--fkm-primary); box-shadow:var(--fkm-shadow-sm); }
.at-head { display:flex; align-items:center; gap:.6rem; flex-wrap:wrap; margin-bottom:.5rem; }
.at-now { background:var(--fkm-accent); color:#3a2a00; font-weight:700; font-size:.68rem; padding:.18rem .55rem; border-radius:50px; }
.at-year { margin-left:auto; font-family:var(--fkm-head); font-weight:700; color:var(--fkm-primary-darker); font-size:1.05rem; }
.at-meta { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:.28rem; }
.at-meta li { font-size:.83rem; color:var(--fkm-muted); }
.at-meta li i { color:var(--fkm-primary); width:18px; }

/* Riwayat akreditasi ringkas (sidebar) — peringkat + tahun */
.akred-history { list-style:none; margin:0; padding:0; }
.akred-history li { display:flex; align-items:center; gap:.6rem; padding:.5rem 0; border-bottom:1px dashed var(--fkm-line); }
.akred-history li:last-child { border-bottom:0; padding-bottom:0; }
.akred-history .ah-year { font-family:var(--fkm-head); font-weight:700; color:var(--fkm-primary-darker); font-size:.92rem; min-width:44px; }
.akred-history li.is-current { background:linear-gradient(90deg, rgba(245,179,1,.12), transparent); border-radius:8px; margin:0 -.4rem; padding-left:.4rem; padding-right:.4rem; }
.akred-history .ah-now { font-size:.64rem; background:var(--fkm-accent); color:#3a2a00; font-weight:700; padding:.12rem .5rem; border-radius:50px; margin-left:auto; }

/* Banner promosi prodi di sidebar (warna identitas prodi) */
.promo-side { --pc: var(--fkm-primary); position:relative; overflow:hidden; border-radius:16px; padding:1.6rem 1.4rem;
    color:#fff; text-align:center; margin-bottom:1.5rem; box-shadow: var(--fkm-shadow);
    background:linear-gradient(155deg, var(--pc), #46206a); background:linear-gradient(155deg, var(--pc), color-mix(in srgb, var(--pc) 52%, #1a0b2e)); }
.promo-side::after { content:""; position:absolute; right:-40px; top:-40px; width:140px; height:140px; border-radius:50%; background:rgba(255,255,255,.1); }
.promo-side > * { position:relative; z-index:1; }
.ps-ic { width:58px; height:58px; border-radius:16px; background:rgba(255,255,255,.2); display:grid; place-items:center; font-size:1.7rem; margin:0 auto .9rem; }
.ps-kicker { display:inline-block; font-size:.7rem; font-weight:700; text-transform:uppercase; letter-spacing:.12em; color:rgba(255,255,255,.85); }
.promo-side h4 { color:#fff; font-size:1.12rem; margin:.45rem 0 .55rem; line-height:1.3; font-weight:700; }
.promo-side p { color:rgba(255,255,255,.85); font-size:.84rem; margin-bottom:1.1rem; }
.promo-side .ps-btn { background:#fff; color:var(--pc); font-weight:700; border-radius:50px; padding:.65rem 1.4rem; width:100%; border:0; }
.promo-side .ps-btn:hover { background:var(--fkm-accent); color:#3a2a00; }
.promo-side .ps-link { display:block; margin-top:.85rem; color:rgba(255,255,255,.9); font-size:.8rem; text-decoration:underline; }
.promo-side .ps-link:hover { color:#fff; }

/* ---------- Dosen ---------- */
.dosen-card { background:#fff; border:1px solid var(--fkm-line); border-radius: var(--fkm-radius); overflow:hidden; height:100%; transition:.25s; }
.dosen-card:hover { box-shadow: var(--fkm-shadow); transform: translateY(-5px); }
.dosen-card .ph { aspect-ratio: 1/1; overflow:hidden; background: var(--fkm-primary-soft); }
.dosen-card .ph img { width:100%; height:100%; object-fit: cover; }
.dosen-card .body { padding: 1rem; text-align:center; }
.dosen-card .body h5 { font-size: 1rem; margin-bottom:.2rem; }
.dosen-card .body small { color: var(--fkm-muted); }

/* Cluster dosen per program studi (warna = identitas prodi via --pc) */
.dosen-cluster { margin-bottom: 2.8rem; }
.dosen-cluster-head {
    display: flex; align-items: center; gap: .9rem; margin-bottom: 1.3rem;
    padding: .8rem 1.1rem; border-radius: var(--fkm-radius);
    background: linear-gradient(100deg, color-mix(in srgb, var(--pc) 13%, #fff), #fff);
    border: 1px solid var(--fkm-line); border-left: 5px solid var(--pc);
}
.dosen-cluster-head .dch-ic {
    flex: none; width: 46px; height: 46px; border-radius: 12px; display: flex;
    align-items: center; justify-content: center; font-size: 1.4rem; color: #fff;
    background: var(--pc); box-shadow: 0 8px 20px color-mix(in srgb, var(--pc) 38%, transparent);
}
.dosen-cluster-head h3 { margin: 0; font-family: var(--fkm-head); font-size: 1.1rem; color: var(--fkm-primary-darker); line-height: 1.15; }
.dosen-cluster-head .dch-count { color: var(--fkm-muted); font-size: .83rem; }
.dosen-cluster-head .dch-link { margin-left: auto; font-size: .85rem; font-weight: 600; color: var(--pc); text-decoration: none; white-space: nowrap; }
.dosen-cluster-head .dch-link:hover { text-decoration: underline; }
.dosen-cluster-head .dch-link .bi { transition: transform .2s; }
.dosen-cluster-head .dch-link:hover .bi { transform: translateX(3px); }
/* Kartu dalam cluster diberi aksen warna prodi */
.dosen-cluster .dosen-card { border-top: 3px solid var(--pc); }

/* ---------- Detail dosen + profil riset (SINTA) ---------- */
.dosen-profile .dp-photo { width: 100%; aspect-ratio: 1 / 1.05; object-fit: cover; border-radius: var(--fkm-radius); border: 3px solid #fff; box-shadow: var(--fkm-shadow); }
.dp-links { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: .2rem; }
.dp-link { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .85rem; border-radius: 999px; font-size: .82rem; font-weight: 600; text-decoration: none; border: 1px solid transparent; transition: transform .2s, box-shadow .2s; }
.dp-link:hover { transform: translateY(-2px); box-shadow: var(--fkm-shadow-sm); }
.dp-sinta { background: var(--fkm-primary-soft); color: var(--fkm-primary); }
.dp-scholar { background: #eaf1fe; color: #2456c4; }
.dp-scopus { background: #fdeede; color: #c5631a; }

.score-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.score-card { background: linear-gradient(150deg, var(--fkm-primary-darker), var(--fkm-primary)); color: #fff; border-radius: 12px; padding: .75rem .5rem; text-align: center; }
.score-card .sc-val { font-family: var(--fkm-head); font-size: 1.35rem; font-weight: 700; line-height: 1; }
.score-card .sc-lbl { font-size: .62rem; opacity: .85; margin-top: .35rem; text-transform: uppercase; letter-spacing: .04em; }

.dosen-tabs { border-bottom: 2px solid var(--fkm-line); gap: .2rem; flex-wrap: wrap; }
.dosen-tabs .nav-link { border: 0; border-radius: 10px 10px 0 0; font-weight: 600; color: var(--fkm-muted); padding: .6rem 1.1rem; }
.dosen-tabs .nav-link:hover { color: var(--fkm-primary); background: var(--fkm-primary-soft); }
.dosen-tabs .nav-link.active { color: var(--fkm-primary); background: transparent; border-bottom: 3px solid var(--fkm-primary); margin-bottom: -2px; }
.dosen-tab-content { padding-top: 1.5rem; }

.metric-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.metric-table thead th { background: var(--fkm-primary); color: #fff; font-size: .8rem; font-weight: 600; padding: .55rem .8rem; text-align: center; }
.metric-table thead th:first-child { text-align: left; border-radius: 10px 0 0 0; }
.metric-table thead th:last-child { border-radius: 0 10px 0 0; }
.metric-table tbody td { padding: .5rem .8rem; text-align: center; border-bottom: 1px solid var(--fkm-line); font-weight: 700; color: var(--fkm-primary-darker); }
.metric-table tbody td.mt-label { text-align: left; font-weight: 500; color: var(--fkm-ink); }
.metric-table tbody tr:nth-child(odd) td { background: var(--fkm-bg); }

.pub-tabs { gap: .4rem; }
.pub-tabs .nav-link { font-weight: 600; font-size: .88rem; color: var(--fkm-ink); border: 1px solid var(--fkm-line); border-radius: 999px; padding: .35rem .9rem; }
.pub-tabs .nav-link:hover { border-color: var(--fkm-primary); color: var(--fkm-primary); }
.pub-tabs .nav-link.active { background: var(--fkm-primary); color: #fff; border-color: var(--fkm-primary); }
.pt-count { display: inline-block; min-width: 1.4em; padding: 0 .35em; margin-left: .25rem; border-radius: 999px; background: rgba(0,0,0,.08); font-size: .72rem; }
.pub-tabs .nav-link.active .pt-count { background: rgba(255,255,255,.28); }

.pub-list { list-style: none; margin: 0; padding: 0; }
.pub-item { padding: .85rem 0; border-bottom: 1px dashed var(--fkm-line); }
.pub-item:last-child { border-bottom: 0; }
.pub-title { font-weight: 600; line-height: 1.4; }
.pub-title a { color: var(--fkm-primary-darker); text-decoration: none; }
.pub-title a:hover { color: var(--fkm-primary); }
.pub-venue { color: var(--fkm-muted); font-size: .85rem; margin-top: .2rem; }
.pub-meta { display: flex; flex-wrap: wrap; gap: .5rem .9rem; margin-top: .35rem; font-size: .8rem; color: var(--fkm-muted); }
.pub-meta .pub-cited { color: var(--fkm-accent-dark); font-weight: 600; }
.pub-q { background: var(--fkm-primary-soft); color: var(--fkm-primary); font-weight: 700; font-size: .72rem; padding: .05rem .5rem; border-radius: 6px; }

/* ---------- Halaman Pimpinan & Manajemen (struktur kepemimpinan) ---------- */
/* Konten impor memakai class .team / .kotakkuh; di-tema ulang agar selaras. */
.leadership .container { max-width: 100%; padding-left: 0; padding-right: 0; }
.leadership .row { --bs-gutter-x: 1.5rem; }
.leadership a[href] { text-decoration: none; }

/* Judul tiap bagian (Dekan, Wakil Dekan, dst.) */
.leadership .heading-block { text-align: center; margin: 2.8rem 0 1.6rem; }
.leadership .heading-block:first-child { margin-top: .5rem; }
.leadership .heading-block h3, .leadership .heading-block h4 {
    display: inline-block; position: relative; margin: 0; padding-bottom: .65rem;
    font-family: var(--fkm-head); font-weight: 700; color: var(--fkm-primary-darker);
    font-size: clamp(1.25rem, 2.4vw, 1.7rem);
}
.leadership .heading-block h3::after, .leadership .heading-block h4::after {
    content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
    width: 64px; height: 3px; border-radius: 3px;
    background: linear-gradient(90deg, var(--fkm-primary), var(--fkm-accent));
}

/* Dekan — sorotan utama */
.leadership .center.bottommargin-sm { text-align: center; }
.leadership .center.bottommargin-sm img {
    width: 210px; height: 250px; object-fit: cover; border-radius: 18px;
    border: 4px solid #fff; box-shadow: var(--fkm-shadow); outline: 1px solid var(--fkm-line);
}
.leadership .team-desc.bottommargin-lg { text-align: center; margin-bottom: 2.4rem; }
.leadership .namateam { margin: .85rem 0 .15rem; font-weight: 700; }
.leadership .namateam, .leadership .namateam a { color: var(--fkm-primary-darker); font-size: 1.05rem; }
.leadership .namateam a:hover { color: var(--fkm-primary); }
.leadership .team-title span {
    display: inline-block; color: var(--fkm-accent-dark); font-weight: 600;
    font-size: .82rem; letter-spacing: .02em; margin-top: .15rem;
}

/* Kartu Wakil Dekan (.team) */
.leadership .team {
    background: #fff; border: 1px solid var(--fkm-line); border-radius: var(--fkm-radius);
    overflow: hidden; height: 100%; text-align: center; transition: .25s;
}
.leadership .team:hover { box-shadow: var(--fkm-shadow); transform: translateY(-5px); }
.leadership .team .team-image { aspect-ratio: 4/5; overflow: hidden; background: var(--fkm-primary-soft); }
.leadership .team .team-image img { width: 100%; height: 100%; object-fit: cover; }
.leadership .team .team-desc { padding: 1rem .85rem 1.25rem; }
.leadership .team .namateam { font-size: .98rem; margin-top: 0; }

/* Kartu jabatan (.kotakkuh) — foto bulat di kiri, nama + peran di kanan */
.leadership .kotakkuh {
    display: flex; align-items: center; gap: 1rem; height: 100%;
    background: #fff; border: 1px solid var(--fkm-line); border-radius: var(--fkm-radius);
    border-left: 4px solid var(--fkm-primary); padding: .85rem 1rem; transition: .25s;
}
.leadership .kotakkuh:hover { box-shadow: var(--fkm-shadow); transform: translateY(-3px); border-left-color: var(--fkm-accent); }
.leadership .testis-image { flex: none; }
.leadership .testis-image img {
    width: 70px; height: 70px; border-radius: 50%; object-fit: cover; object-position: top;
    border: 2px solid #fff; outline: 2px solid var(--fkm-primary-soft);
}
.leadership .testi-content { min-width: 0; }
.leadership .testi-meta a, .leadership .testi-meta strong {
    display: block; color: var(--fkm-primary-darker); font-weight: 600; font-size: .95rem; line-height: 1.3;
}
.leadership .testi-meta a:hover { color: var(--fkm-primary); }
.leadership .testi-meta span { display: block; margin-top: .25rem; color: var(--fkm-muted); font-size: .82rem; }

/* Cluster (kelompok bagian) + Dekan + grid pimpinan prodi */
.leadership .lead-cluster { margin-bottom: 1.4rem; }
/* Dekan: kartu serupa Wakil Dekan agar proporsional, dengan aksen emas. */
.leadership .team--dekan { border: 2px solid var(--fkm-accent); box-shadow: 0 12px 32px rgba(245, 179, 1, .18); }
.leadership .team--dekan .team-desc { background: linear-gradient(0deg, var(--fkm-primary-soft), #fff); }
.leadership .team--dekan .team-title span { color: var(--fkm-accent-dark); font-weight: 700; }

/* Sub-header per prodi; kartunya seukuran kartu Laboratorium (col-lg-4). */
.leadership .lead-prodi-title {
    display: flex; align-items: center; gap: .5rem; margin: 1.3rem 0 .8rem;
    padding-bottom: .5rem; border-bottom: 1px dashed var(--fkm-line);
    font-family: var(--fkm-head); font-weight: 700; color: var(--fkm-primary-darker); font-size: 1.02rem;
}
.leadership .lead-prodi-title i { color: var(--fkm-primary); }
.leadership .lead-prodi-row { margin-bottom: .4rem; }
/* Kartu prodi lebih lega (2 per baris): foto sedikit lebih besar + badge peran. */
.leadership .lead-prodi-row .kotakkuh { padding: 1rem 1.1rem; }
.leadership .lead-prodi-row .testis-image img { width: 82px; height: 82px; }
.leadership .kotakkuh--ketua { border-left-color: var(--fkm-primary); }
.leadership .kotakkuh--sekretaris { border-left-color: var(--fkm-accent); }
.leadership .kotakkuh--ketua .testi-meta span,
.leadership .kotakkuh--sekretaris .testi-meta span {
    display: inline-block; margin-top: .4rem; padding: .14rem .65rem; border-radius: 999px;
    font-size: .72rem; font-weight: 600; letter-spacing: .02em;
}
.leadership .kotakkuh--ketua .testi-meta span { background: var(--fkm-primary-soft); color: var(--fkm-primary); }
.leadership .kotakkuh--sekretaris .testi-meta span { background: #fdf3da; color: var(--fkm-accent-dark); }

/* Fallback foto kosong */
.leadership .km-noimg { display: flex; align-items: center; justify-content: center; background: var(--fkm-primary-soft); color: var(--fkm-primary); }
.leadership .testis-image .km-noimg { width: 70px; height: 70px; border-radius: 50%; border: 2px solid #fff; outline: 2px solid var(--fkm-primary-soft); font-size: 1.5rem; }
.leadership .team-image .km-noimg { width: 100%; height: 100%; font-size: 2.4rem; }

@media (max-width: 575px) {
    .leadership .kotakkuh { gap: .75rem; padding: .7rem .8rem; }
    .leadership .testis-image img, .leadership .testis-image .km-noimg { width: 56px; height: 56px; }
}

/* ---------- Q&A / FAQ accordion ---------- */
.faq-wrap { max-width: 860px; margin: 0 auto; }
.faq-accordion .accordion-item { border: 1px solid var(--fkm-line); border-radius: var(--fkm-radius) !important; margin-bottom: .85rem; overflow: hidden; background: #fff; box-shadow: var(--fkm-shadow-sm); }
.faq-accordion .accordion-button {
    font-family: var(--fkm-head); font-weight: 600; font-size: 1rem; color: var(--fkm-primary-darker);
    padding: 1.05rem 1.2rem; background: #fff; gap: .2rem;
}
.faq-accordion .accordion-button:not(.collapsed) { color: var(--fkm-primary); background: var(--fkm-primary-soft); box-shadow: none; }
.faq-accordion .accordion-button:focus { box-shadow: none; border: 0; }
.faq-accordion .accordion-button .faq-q-ic { color: var(--fkm-accent); margin-right: .6rem; font-size: 1.15rem; }
.faq-accordion .accordion-button:not(.collapsed) .faq-q-ic { color: var(--fkm-primary); }
/* Ganti chevron default dengan warna tema */
.faq-accordion .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%235e2b8a'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
.faq-accordion .accordion-body { padding: 0 1.2rem 1.2rem; color: var(--fkm-ink); line-height: 1.75; }

/* ---------- Gallery ---------- */
.gallery-grid { display:grid; grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); gap: 14px; }
.gallery-grid a { display:block; aspect-ratio:1/1; border-radius:12px; overflow:hidden; position:relative; }
.gallery-grid img { width:100%; height:100%; object-fit:cover; transition:.35s; }
.gallery-grid a:hover img { transform: scale(1.08); }

/* ---------- Article / content ---------- */
.article-content { font-size: 1.04rem; color: #3a3344; }
.article-content img { border-radius: 12px; margin: 1rem 0; height:auto; }
.article-content h2, .article-content h3 { color: var(--fkm-primary-darker); margin: 1.6rem 0 .8rem; }
.article-content blockquote {
    border-left: 4px solid var(--fkm-primary); background: var(--fkm-primary-soft);
    padding: 1rem 1.25rem; border-radius: 0 10px 10px 0; margin: 1.25rem 0;
}
.article-content table { width:100%; border-collapse: collapse; margin: 1rem 0; }
.article-content th, .article-content td { border:1px solid var(--fkm-line); padding:.6rem .8rem; }
.article-content th { background: var(--fkm-primary-soft); }
.widget { background:#fff; border:1px solid var(--fkm-line); border-radius: var(--fkm-radius); padding:1.5rem; margin-bottom:1.5rem; box-shadow: var(--fkm-shadow-sm); }
.widget h4 {
    font-size: 1.02rem; color: var(--fkm-primary-darker); margin:0 0 1.1rem; padding-left:.85rem;
    position:relative; display:flex; align-items:center; gap:.5rem;
}
.widget h4::before { content:""; position:absolute; left:0; top:.05em; bottom:.05em; width:4px; border-radius:4px; background:linear-gradient(var(--fkm-primary),var(--fkm-accent)); }
.widget-list { list-style:none; padding:0; margin:0; }
.widget-list li { padding:.55rem 0; border-bottom:1px dashed var(--fkm-line); }
.widget-list li:last-child { border-bottom:0; }
.widget-list a { color: var(--fkm-ink); font-weight:500; font-size:.92rem; }
.widget-list a:hover { color: var(--fkm-primary); }

/* Kategori widget (pil + badge jumlah) */
.cat-list { list-style:none; padding:0; margin:0; }
.cat-list li { margin-bottom:.45rem; }
.cat-list li:last-child { margin-bottom:0; }
.cat-list a {
    display:flex; align-items:center; justify-content:space-between; gap:.5rem;
    padding:.6rem .9rem; border-radius:11px; background:var(--fkm-primary-soft); color:var(--fkm-ink);
    font-weight:600; font-size:.9rem; transition:.18s;
}
.cat-list a:hover { background:linear-gradient(120deg,var(--fkm-primary),var(--fkm-primary-dark)); color:#fff; transform:translateX(4px); }
.cat-list .cat-name { display:flex; align-items:center; gap:.55rem; }
.cat-list .cat-name i { color:var(--fkm-primary); transition:.18s; }
.cat-list a:hover .cat-name i { color:var(--fkm-accent); }
.cat-count { background:#fff; color:var(--fkm-primary); border-radius:50px; padding:.08rem .62rem; font-size:.76rem; font-weight:700; min-width:30px; text-align:center; }
.cat-list a:hover .cat-count { background:rgba(255,255,255,.22); color:#fff; }

/* Terpopuler widget (peringkat + thumbnail) */
.pop-list { list-style:none; padding:0; margin:0; }
.pop-item { display:flex; gap:.85rem; align-items:center; padding:.7rem 0; border-bottom:1px dashed var(--fkm-line); }
.pop-item:last-child { border-bottom:0; padding-bottom:0; }
.pop-thumb-wrap { position:relative; flex:none; display:block; }
.pop-item .pop-thumb { width:70px; height:56px; border-radius:10px; object-fit:cover; display:block; background:var(--fkm-primary-soft); transition:.25s; }
.pop-thumb-wrap:hover .pop-thumb { filter:brightness(.88); }
.pop-rank {
    position:absolute; top:-7px; left:-7px; width:26px; height:26px; border-radius:50%;
    background:linear-gradient(135deg, var(--fkm-primary), var(--fkm-primary-dark)); color:#fff;
    font-family:var(--fkm-head); font-weight:700; font-size:.78rem; display:grid; place-items:center;
    border:2px solid #fff; box-shadow:0 3px 8px rgba(94,43,138,.35);
}
.pop-item.is-top .pop-rank { background:linear-gradient(135deg, var(--fkm-accent), var(--fkm-accent-dark)); color:#3a2a00; }
.pop-body { min-width:0; }
.pop-title { font-weight:600; font-size:.87rem; color:var(--fkm-ink); line-height:1.35; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.pop-title:hover { color:var(--fkm-primary); }
.pop-meta { font-size:.74rem; color:var(--fkm-muted); margin-top:.3rem; }
.pop-meta i { color:var(--fkm-accent-dark); }

/* Arsip widget */
.arsip-list { list-style:none; padding:0; margin:0; }
.arsip-list li { margin-bottom:.3rem; }
.arsip-list li:last-child { margin-bottom:0; }
.arsip-list a { display:flex; align-items:center; justify-content:space-between; gap:.5rem; padding:.5rem .3rem .5rem .2rem;
    border-bottom:1px dashed var(--fkm-line); color:var(--fkm-ink); font-weight:500; font-size:.9rem; transition:.15s; }
.arsip-list li:last-child a { border-bottom:0; }
.arsip-list a:hover { color:var(--fkm-primary); padding-left:.5rem; }
.arsip-list a i { color:var(--fkm-primary); font-size:.7rem; transition:.15s; }
.arsip-list .cat-count { background:var(--fkm-primary-soft); }

/* Tag cloud */
.tag-cloud { display:flex; flex-wrap:wrap; gap:.5rem; }
.tag-chip { display:inline-flex; align-items:center; gap:.35rem; padding:.4rem .8rem; border-radius:50px;
    background:var(--fkm-primary-soft); color:var(--fkm-primary); font-size:.82rem; font-weight:600; transition:.18s; }
.tag-chip span { background:#fff; color:var(--fkm-primary); border-radius:50px; padding:0 .42rem; font-size:.7rem; }
.tag-chip:hover { background:linear-gradient(120deg, var(--fkm-primary), var(--fkm-primary-dark)); color:#fff; transform:translateY(-2px); box-shadow:0 6px 14px rgba(94,43,138,.25); }
.tag-chip:hover span { background:rgba(255,255,255,.25); color:#fff; }

/* Banner promosi Program Studi (acak) */
.prodi-promo { display:flex; align-items:stretch; border-radius:16px; overflow:hidden; margin:2.2rem 0; color:#fff;
    background:linear-gradient(120deg, var(--fkm-primary-darker), var(--fkm-primary)); box-shadow: var(--fkm-shadow); }
.prodi-promo .pp-img { position:relative; flex:0 0 38%; min-height:190px; background-size:cover; background-position:center;
    background-color:var(--fkm-primary-dark); display:grid; place-items:center; }
.prodi-promo .pp-img i { font-size:3.2rem; color:rgba(255,255,255,.55); position:relative; z-index:1; }
.prodi-promo .pp-img::after { content:""; position:absolute; inset:0; background:linear-gradient(120deg, rgba(70,32,106,.12), rgba(70,32,106,.6)); }
.prodi-promo .pp-level { position:absolute; left:1rem; top:1rem; z-index:2; background:var(--fkm-accent); color:#3a2a00;
    font-weight:700; font-size:.72rem; padding:.3rem .8rem; border-radius:50px; }
.prodi-promo .pp-body { flex:1; padding:1.6rem 1.8rem; }
.prodi-promo .pp-kicker { display:inline-flex; align-items:center; gap:.4rem; color:var(--fkm-accent); font-weight:700;
    font-size:.74rem; text-transform:uppercase; letter-spacing:.06em; margin-bottom:.5rem; }
.prodi-promo h3 { font-family:var(--fkm-head); font-size:1.4rem; color:#fff; margin-bottom:.5rem; line-height:1.2; }
.prodi-promo p { color:rgba(255,255,255,.85); font-size:.92rem; margin-bottom:1.1rem; }
.prodi-promo .pp-cta { display:flex; gap:.6rem; flex-wrap:wrap; }
.prodi-promo .pp-cta .btn-light { background:#fff; color:var(--fkm-primary); font-weight:600; border:0; }
.prodi-promo .pp-cta .btn-light:hover { background:var(--fkm-primary-soft); color:var(--fkm-primary-dark); }
@media (max-width:575px){ .prodi-promo { flex-direction:column; } .prodi-promo .pp-img { flex-basis:auto; min-height:150px; } }

/* Berita terkait — satu baris */
.related-head { display:flex; align-items:center; gap:.5rem; margin:2.2rem 0 1.1rem; padding-bottom:.6rem; border-bottom:2px solid var(--fkm-primary-soft); }
.related-head h2 { font-size:1.05rem; color:var(--fkm-primary-darker); margin:0; }
.related-head i { color:var(--fkm-primary); }
.related-card .body { padding:.85rem; }
.related-card h3 { font-size:.88rem; margin:0 0 .35rem; line-height:1.35; }
.related-card .meta { font-size:.75rem; }

/* ---------- Pagination (markup CI4: <ul.pagination><li><a>) ---------- */
.pagination { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; padding: 0; justify-content: center; }
.pagination > li > a, .pagination > li > span {
    border: 1px solid var(--fkm-line); border-radius: 12px; color: var(--fkm-primary); font-weight: 700;
    min-width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
    padding: 0 .85rem; background: #fff; transition: .18s; text-decoration: none;
}
.pagination > li > a:hover {
    background: var(--fkm-primary-soft); border-color: var(--fkm-primary); color: var(--fkm-primary-dark);
    transform: translateY(-2px); box-shadow: 0 6px 16px rgba(94,43,138,.14);
}
.pagination > li.active > a, .pagination > li.active > span {
    background: linear-gradient(135deg, var(--fkm-primary), var(--fkm-primary-dark));
    border-color: transparent; color: #fff; box-shadow: 0 6px 16px rgba(94,43,138,.35);
}
.pagination > li.disabled > a, .pagination > li.disabled > span { color: #c3bad4; background: #f5f3f9; cursor: not-allowed; }

/* ---------- Forms ---------- */
.form-control, .form-select { border-radius: 10px; border-color: var(--fkm-line); padding: .7rem .9rem; }
.form-control:focus, .form-select:focus { border-color: var(--fkm-primary); box-shadow: 0 0 0 .2rem rgba(94,43,138,.15); }
.hp-field { position:absolute !important; left:-9999px !important; opacity:0; height:0; width:0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--fkm-primary-darker); color: rgba(255,255,255,.8); margin-top: auto; }
.footer-main { padding: 60px 0 40px; }
.footer-desc { font-size: .92rem; color: rgba(255,255,255,.7); }
.footer-title { color:#fff; font-size: 1rem; margin-bottom: 1.1rem; position:relative; padding-bottom:.5rem; }
.footer-title::after { content:""; position:absolute; left:0; bottom:0; width:34px; height:3px; background: var(--fkm-accent); }
.footer-links, .footer-contact { list-style:none; padding:0; margin:0; }
.footer-links li { margin-bottom:.55rem; }
.footer-links a { color: rgba(255,255,255,.72); font-size:.92rem; }
.footer-links a:hover { color: var(--fkm-accent); padding-left: 5px; }
.footer-contact li { display:flex; gap:.6rem; margin-bottom:.7rem; font-size:.9rem; color: rgba(255,255,255,.72); }
.footer-contact i { color: var(--fkm-accent); margin-top:.2rem; }
/* Telepon & email: putih agar kontras di latar ungu gelap footer */
.footer-contact a { color: #fff; font-weight: 500; }
.footer-contact a:hover { color: var(--fkm-accent); }
.footer-social a {
    width:38px; height:38px; border-radius:10px; display:inline-grid; place-items:center;
    background: rgba(255,255,255,.1); color:#fff; margin-right:.5rem;
}
.footer-social a:hover { background: var(--fkm-accent); color:#3a2a00; }
.footer-bottom { background: rgba(0,0,0,.22); padding: 1rem 0; font-size:.85rem; }

/* ---------- Back to top ---------- */
.back-to-top {
    position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border:0;
    border-radius: 50%; background: var(--fkm-primary); color:#fff; display:none; z-index: 1040;
    box-shadow: var(--fkm-shadow);
}
.back-to-top.show { display: grid; place-items: center; }
.back-to-top:hover { background: var(--fkm-accent); color: #3a2a00; }

/* ---------- Utilities ---------- */
.text-fkm { color: var(--fkm-primary) !important; }
.bg-fkm { background: var(--fkm-primary) !important; }
.line-clamp-2 { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.line-clamp-3 { display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.alert { border-radius: 12px; border: 0; }

@media (max-width: 991.98px) {
    .main-navbar .navbar-collapse { background:#fff; margin-top:.6rem; padding:1rem; border-radius:12px; box-shadow: var(--fkm-shadow); }
    .nav-search { margin-top:.8rem; }
}
