/* =====================================================================
   WEBSITE FAKULTAS KEDOKTERAN — Design System
   Warna utama berasal dari Website Settings (CSS variables di <head>).
   Medical + Academic + Professional + Modern
   ===================================================================== */
:root {
    --primary-color: #0b5394;
    --secondary-color: #0f7a5c;
    --accent-color: #20b2aa;
    --header-color: #ffffff;
    --topbar-color: #083d6e;
    --footer-color: #0a2540;
    --bg-color: #ffffff;
    --text-color: #1f2937;

    --muted: #5b6474;
    --line: #e4e9f0;
    --soft: #f3f7fb;
    --primary-soft: color-mix(in srgb, var(--primary-color) 9%, #fff);
    --secondary-soft: color-mix(in srgb, var(--secondary-color) 10%, #fff);

    --radius-sm: .4rem;
    --radius: .75rem;
    --radius-lg: 1rem;
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
    --shadow: 0 4px 16px rgba(16, 24, 40, .07);
    --shadow-lg: 0 14px 36px rgba(16, 24, 40, .10);

    --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --fs-xs: .78rem; --fs-sm: .875rem; --fs-base: 1rem;
    --section-y: clamp(3rem, 6vw, 5rem);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text-color); background: var(--bg-color); font-size: var(--fs-base); line-height: 1.65;
    -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.25; color: color-mix(in srgb, var(--text-color) 92%, var(--primary-color)); }
a { color: var(--primary-color); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: color-mix(in srgb, var(--primary-color) 78%, #000); }
img { max-width: 100%; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary-color) 55%, transparent); outline-offset: 2px; border-radius: 2px; }
.skip-link { position: absolute; left: .5rem; top: .5rem; z-index: 3000; background: #fff; padding: .5rem 1rem; border-radius: var(--radius-sm); }
.text-muted { color: var(--muted) !important; }
.small-caps { text-transform: uppercase; letter-spacing: .08em; font-size: var(--fs-xs); font-weight: 700; }

/* Bootstrap overrides mengikuti tema */
.btn { border-radius: .55rem; font-weight: 600; }
.btn-primary { --bs-btn-bg: var(--primary-color); --bs-btn-border-color: var(--primary-color);
    --bs-btn-hover-bg: color-mix(in srgb, var(--primary-color) 85%, #000); --bs-btn-hover-border-color: color-mix(in srgb, var(--primary-color) 85%, #000);
    --bs-btn-active-bg: color-mix(in srgb, var(--primary-color) 75%, #000); --bs-btn-active-border-color: color-mix(in srgb, var(--primary-color) 75%, #000); }
.btn-secondary { --bs-btn-bg: var(--secondary-color); --bs-btn-border-color: var(--secondary-color);
    --bs-btn-hover-bg: color-mix(in srgb, var(--secondary-color) 85%, #000); --bs-btn-hover-border-color: color-mix(in srgb, var(--secondary-color) 85%, #000); }
.btn-outline-primary { --bs-btn-color: var(--primary-color); --bs-btn-border-color: var(--primary-color);
    --bs-btn-hover-bg: var(--primary-color); --bs-btn-hover-border-color: var(--primary-color); --bs-btn-active-bg: var(--primary-color); }
.text-primary { color: var(--primary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.page-link { color: var(--primary-color); }
.active > .page-link, .page-link.active { background-color: var(--primary-color); border-color: var(--primary-color); }
.form-control:focus, .form-select:focus { border-color: color-mix(in srgb, var(--primary-color) 50%, #fff);
    box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--primary-color) 18%, transparent); }
.badge-soft { background: var(--primary-soft); color: var(--primary-color); font-weight: 600; }
.badge-soft-green { background: var(--secondary-soft); color: var(--secondary-color); font-weight: 600; }

/* ---------- Top bar & Header ---------- */
.topbar { background: var(--topbar-color); color: rgba(255,255,255,.88); font-size: var(--fs-xs); }
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar .inner { display: flex; gap: 1.25rem; align-items: center; min-height: 36px; flex-wrap: wrap; }

.site-header { background: var(--header-color); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1030; }
.site-header .navbar { padding: .55rem 0; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: inherit; min-width: 0; }
.brand img { height: 48px; width: auto; }
.brand-mark { width: 44px; height: 44px; border-radius: .7rem; display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); color: #fff; font-size: 1.35rem; flex-shrink: 0; }
.brand-text { line-height: 1.15; min-width: 0; }
.brand-text strong { display: block; font-size: 1.02rem; color: var(--primary-color); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text small { display: block; font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.main-nav .nav-link { font-weight: 600; font-size: .92rem; color: var(--text-color); padding: .55rem .7rem !important; border-radius: .5rem; }
.main-nav .nav-link:hover, .main-nav .nav-link.active, .main-nav .show > .nav-link { color: var(--primary-color); background: var(--primary-soft); }
.main-nav .dropdown-menu { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: .4rem; min-width: 240px; }
.main-nav .dropdown-item { border-radius: .45rem; padding: .5rem .75rem; font-size: .9rem; }
.main-nav .dropdown-item:hover, .main-nav .dropdown-item:focus { background: var(--primary-soft); color: var(--primary-color); }
.header-search { max-width: 220px; }
@media (min-width: 1200px) {
    .main-nav .dropdown:hover > .dropdown-menu { display: block; margin-top: 0; }
}
@media (max-width: 1199.98px) {
    .main-nav { max-height: calc(100vh - 80px); overflow-y: auto; padding: .5rem 0 1rem; }
    .main-nav .dropdown-menu { box-shadow: none; border: 0; padding-left: 1rem; }
    .header-search { max-width: none; }
}

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; }
.section-soft { background: var(--soft); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.75rem; }
.section-head .eyebrow { color: var(--secondary-color); }
.section-head h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); margin: .25rem 0 0; }
.section-head p { color: var(--muted); margin: .35rem 0 0; max-width: 640px; }
.link-more { font-weight: 600; text-decoration: none; white-space: nowrap; }
.link-more i { transition: transform .15s; }
.link-more:hover i { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: #0b2239; overflow: hidden; }
.hero-slide { position: relative; min-height: clamp(420px, 62vh, 620px); display: flex; align-items: center; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-slide::after { content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, color-mix(in srgb, var(--primary-color) 88%, #000) 0%, color-mix(in srgb, var(--primary-color) 55%, transparent) 55%, rgba(0,0,0,.15) 100%); }
.hero-content { position: relative; z-index: 2; max-width: 680px; padding: 3rem 0; }
.hero-content .eyebrow { display: inline-flex; gap: .4rem; align-items: center; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25);
    padding: .3rem .8rem; border-radius: 99px; font-size: var(--fs-xs); font-weight: 600; margin-bottom: 1rem; }
.hero h1, .hero h2 { color: #fff; font-size: clamp(1.9rem, 4.4vw, 3.1rem); font-weight: 800; margin-bottom: 1rem; }
.hero p { font-size: clamp(1rem, 1.6vw, 1.15rem); color: rgba(255,255,255,.9); margin-bottom: 1.75rem; }
.hero .btn-light { color: var(--primary-color); }
.hero .carousel-indicators [data-bs-target] { width: 28px; height: 4px; border-radius: 4px; }
.hero-no-image { background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); }

/* ---------- Quick access ---------- */
.quick-access { margin-top: -3rem; position: relative; z-index: 5; }
.quick-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .75rem; background: #fff; padding: 1rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.quick-item { display: flex; flex-direction: column; align-items: center; gap: .45rem; padding: 1rem .5rem; border-radius: var(--radius); text-decoration: none;
    color: var(--text-color); text-align: center; font-weight: 600; font-size: .88rem; transition: background .15s, transform .15s; }
.quick-item:hover { background: var(--primary-soft); color: var(--primary-color); transform: translateY(-2px); }
.quick-item .qi-icon { width: 48px; height: 48px; border-radius: .8rem; display: flex; align-items: center; justify-content: center; font-size: 1.35rem;
    background: var(--primary-soft); color: var(--primary-color); }
.quick-item:nth-child(even) .qi-icon { background: var(--secondary-soft); color: var(--secondary-color); }
@media (max-width: 991.98px) { .quick-grid { grid-template-columns: repeat(5, minmax(96px, 1fr)); overflow-x: auto; } }
@media (max-width: 575.98px) { .quick-grid { grid-template-columns: repeat(3, 1fr); overflow: visible; } .quick-access { margin-top: -2rem; } }

/* ---------- Cards ---------- */
.card-x { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; height: 100%;
    display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.card-x:hover { box-shadow: var(--shadow); }
.card-x .card-body { padding: 1.1rem 1.2rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.card-x h3 { font-size: 1.08rem; margin: .35rem 0 .45rem; }
.card-x h3 a { color: inherit; text-decoration: none; }
.card-x h3 a:hover { color: var(--primary-color); }
.card-x .excerpt { color: var(--muted); font-size: .92rem; margin-bottom: .9rem; }
.card-x .meta { font-size: var(--fs-xs); color: var(--muted); display: flex; flex-wrap: wrap; gap: .35rem .9rem; align-items: center; }
.card-x .card-foot { margin-top: auto; }
.card-img-top-x { width: 100%; aspect-ratio: 16/10; object-fit: cover; background: var(--soft); display: block; }

.img-placeholder { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary-soft), var(--secondary-soft));
    color: color-mix(in srgb, var(--primary-color) 45%, #fff); font-size: 2rem; width: 100%; aspect-ratio: 16/10; }

/* ---------- THUMBNAIL GALLERY (multi-image pada daftar posting) ---------- */
.thumb-strip { display: grid; gap: 4px; grid-template-columns: repeat(var(--cols, 4), 1fr); text-decoration: none; background: #fff; }
.thumb-strip .thumb { position: relative; overflow: hidden; background: var(--soft); aspect-ratio: 4/3; }
.thumb-strip .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.thumb-strip:hover .thumb img { transform: scale(1.04); }
.thumb-strip[data-count="1"] .thumb { aspect-ratio: 16/8; }
.thumb-strip .more { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; background: rgba(8, 30, 52, .62);
    color: #fff; font-weight: 800; font-size: 1.35rem; letter-spacing: .02em; }
.thumb-strip .more-desktop { display: flex; }
.thumb-strip .thumb.only-desktop { display: block; }

/* Mode ringkas (kartu beranda) dan mobile: 1 gambar besar + 2 kecil */
.thumb-strip.compact, .thumb-strip.compact[data-count] { grid-template-columns: 1fr 1fr; }
.thumb-strip.compact .thumb:first-child { grid-column: 1 / -1; aspect-ratio: 16/9; }
.thumb-strip.compact .thumb { aspect-ratio: 16/9; }
.thumb-strip.compact[data-count="2"] .thumb:first-child,
.thumb-strip.compact[data-count="2"] .thumb { grid-column: auto; aspect-ratio: 4/3; }
.thumb-strip.compact .thumb.only-desktop { display: none; }
.thumb-strip.compact .more-desktop { display: none; }
.thumb-strip.compact .more-mobile { display: flex; }

@media (max-width: 575.98px) {
    .thumb-strip:not([data-count="1"]) { grid-template-columns: 1fr 1fr; }
    .thumb-strip:not([data-count="1"]) .thumb:first-child { grid-column: 1 / -1; aspect-ratio: 16/9; }
    .thumb-strip[data-count="2"] .thumb:first-child,
    .thumb-strip[data-count="2"] .thumb { grid-column: auto; aspect-ratio: 4/3; }
    .thumb-strip .thumb.only-desktop { display: none; }
    .thumb-strip .more-desktop { display: none; }
    .thumb-strip .more-mobile { display: flex; }
}

/* Kartu posting horizontal (halaman daftar Berita/Informasi/Pengumuman) */
.post-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.post-item + .post-item { margin-top: 1.25rem; }
.post-item .post-body { padding: 1.1rem 1.35rem 1.35rem; }
.post-item h2, .post-item h3 { font-size: clamp(1.1rem, 2vw, 1.3rem); margin: .4rem 0 .5rem; }
.post-item h2 a, .post-item h3 a { color: inherit; text-decoration: none; }
.post-item h2 a:hover, .post-item h3 a:hover { color: var(--primary-color); }
.post-item .excerpt { color: var(--muted); margin-bottom: .8rem; }
.post-item .meta { font-size: var(--fs-sm); color: var(--muted); display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin-bottom: 1rem; }
.post-item.is-announcement { border-left: 4px solid var(--accent-color); }

/* Pengumuman (list ringkas) */
.announce-list { list-style: none; margin: 0; padding: 0; }
.announce-list li { display: flex; gap: .9rem; padding: .95rem 0; border-bottom: 1px dashed var(--line); }
.announce-list li:last-child { border-bottom: 0; }
.date-badge { flex-shrink: 0; width: 58px; text-align: center; border-radius: .6rem; background: var(--primary-soft); color: var(--primary-color); padding: .35rem 0; line-height: 1.1; }
.date-badge .d { display: block; font-size: 1.35rem; font-weight: 800; }
.date-badge .m { display: block; font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; }
.announce-list a { font-weight: 600; color: var(--text-color); text-decoration: none; }
.announce-list a:hover { color: var(--primary-color); }

/* ---------- About & Stats ---------- */
.about-img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 4/3; object-fit: cover; box-shadow: var(--shadow); }
.check-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.check-list li { padding-left: 1.75rem; position: relative; margin-bottom: .55rem; }
.check-list li::before { content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: 0; color: var(--secondary-color); }
.stats { background: linear-gradient(135deg, var(--primary-color), color-mix(in srgb, var(--secondary-color) 80%, var(--primary-color))); color: #fff; }
.stat { text-align: center; padding: 1rem; }
.stat .num { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; line-height: 1; }
.stat .lbl { opacity: .88; margin-top: .4rem; font-weight: 500; }

/* ---------- Program studi ---------- */
.program-card .level { position: absolute; top: .75rem; left: .75rem; }
.program-card .img-wrap { position: relative; }
.program-meta { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; font-size: var(--fs-sm); margin: .5rem 0 1rem; }
.program-meta div { background: var(--soft); border-radius: .5rem; padding: .45rem .6rem; }
.program-meta span { display: block; font-size: var(--fs-xs); color: var(--muted); }

/* ---------- Agenda ---------- */
.agenda-item { display: flex; gap: 1rem; padding: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); height: 100%; }
.agenda-item .date-badge { width: 64px; background: var(--secondary-color); color: #fff; }
.agenda-item h3 { font-size: 1rem; margin: 0 0 .35rem; }
.agenda-item h3 a { color: inherit; text-decoration: none; }
.agenda-item .meta { font-size: var(--fs-xs); color: var(--muted); }
.agenda-thumb { aspect-ratio: 4/3; object-fit: cover; }

.calendar { width: 100%; table-layout: fixed; border-collapse: collapse; }
.calendar th { text-align: center; font-size: var(--fs-xs); text-transform: uppercase; color: var(--muted); padding: .5rem 0; }
.calendar td { border: 1px solid var(--line); vertical-align: top; height: 108px; padding: .3rem; font-size: var(--fs-xs); }
.calendar td.other { background: var(--soft); color: #aab4c2; }
.calendar td.today { background: var(--primary-soft); }
.calendar .day { font-weight: 700; font-size: .85rem; }
.calendar .ev { display: block; margin-top: .2rem; padding: .15rem .35rem; border-radius: .3rem; background: var(--primary-color); color: #fff; text-decoration: none;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 767.98px) {
    .calendar td { height: 64px; }
    .calendar .ev { font-size: 0; height: 6px; padding: 0; }
}

/* ---------- People ---------- */
.person-card { text-align: center; }
.person-card .photo { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: top; background: var(--soft); display: block; }
.person-card .photo.img-placeholder { aspect-ratio: 1; font-size: 3rem; }
.person-card h3 { font-size: 1rem; margin: .2rem 0; }
.person-card .role { color: var(--secondary-color); font-weight: 600; font-size: var(--fs-sm); }
.profile-photo { width: 100%; max-width: 280px; aspect-ratio: 1; object-fit: cover; object-position: top; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.profile-photo.img-placeholder { font-size: 4rem; }

/* ---------- Page header & breadcrumb ---------- */
.page-hero { background: linear-gradient(135deg, color-mix(in srgb, var(--primary-color) 94%, #000), color-mix(in srgb, var(--secondary-color) 85%, var(--primary-color)));
    color: #fff; padding: 2.4rem 0 2.2rem; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%;
    background: rgba(255,255,255,.06); }
.page-hero h1 { color: #fff; font-size: clamp(1.5rem, 3.2vw, 2.25rem); margin: .35rem 0 .25rem; position: relative; z-index: 1; }
.page-hero p { color: rgba(255,255,255,.88); margin: 0; max-width: 720px; position: relative; z-index: 1; }
.page-hero .breadcrumb { --bs-breadcrumb-divider-color: rgba(255,255,255,.6); margin: 0; font-size: var(--fs-sm); position: relative; z-index: 1; }
.page-hero .breadcrumb a { color: rgba(255,255,255,.85); text-decoration: none; }
.page-hero .breadcrumb a:hover { color: #fff; text-decoration: underline; }
.page-hero .breadcrumb-item.active { color: #fff; }

/* ---------- Article detail ---------- */
.article-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; color: var(--muted); font-size: var(--fs-sm); margin-bottom: 1.25rem; }
.article-main-img { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 1.5rem; background: var(--soft); }
.article-main-img img { width: 100%; max-height: 520px; object-fit: cover; display: block; }
.article-main-img figcaption { font-size: var(--fs-sm); color: var(--muted); padding: .6rem .9rem; background: var(--soft); }
.article-body { max-width: 780px; }
.share-links a { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%;
    background: var(--soft); color: var(--text-color); text-decoration: none; }
.share-links a:hover { background: var(--primary-color); color: #fff; }
.tag { display: inline-block; padding: .25rem .65rem; border-radius: 99px; background: var(--soft); color: var(--muted); font-size: var(--fs-xs); text-decoration: none; margin: 0 .25rem .35rem 0; }
.tag:hover { background: var(--primary-soft); color: var(--primary-color); }
.disclaimer { background: #fff8e6; border: 1px solid #f5d98b; border-left: 4px solid #e0a800; border-radius: var(--radius); padding: 1rem 1.1rem; font-size: var(--fs-sm); color: #6b4e00; }
.references { font-size: var(--fs-sm); color: var(--muted); }
.references ol { padding-left: 1.2rem; }

/* Gallery grid (detail) */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .6rem; }
.gallery-grid a { position: relative; display: block; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4/3; background: var(--soft); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-grid a:hover img { transform: scale(1.05); }
.gallery-grid .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: .9rem .5rem .35rem; font-size: var(--fs-xs); color: #fff;
    background: linear-gradient(transparent, rgba(0,0,0,.7)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gallery-grid .play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 2.5rem; background: rgba(0,0,0,.25); }

/* Attachments */
.file-list { list-style: none; padding: 0; margin: 0; }
.file-list li { display: flex; align-items: center; gap: .8rem; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .5rem; background: #fff; }
.file-list .ficon { font-size: 1.6rem; color: #c0392b; flex-shrink: 0; }
.file-list .fname { font-weight: 600; word-break: break-word; }
.file-list .fmeta { font-size: var(--fs-xs); color: var(--muted); }

/* Sidebar */
.sidebar-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; margin-bottom: 1.25rem; }
.sidebar-box h2 { font-size: 1rem; margin-bottom: .85rem; padding-bottom: .6rem; border-bottom: 2px solid var(--primary-soft); }
.side-list { list-style: none; padding: 0; margin: 0; }
.side-list li + li { border-top: 1px solid var(--line); }
.side-list a { display: flex; justify-content: space-between; gap: .5rem; padding: .55rem 0; color: var(--text-color); text-decoration: none; font-size: var(--fs-sm); }
.side-list a:hover, .side-list a.active { color: var(--primary-color); font-weight: 600; }
.mini-post { display: flex; gap: .75rem; padding: .55rem 0; text-decoration: none; color: var(--text-color); }
.mini-post + .mini-post { border-top: 1px solid var(--line); }
.mini-post img, .mini-post .img-placeholder { width: 72px; height: 54px; object-fit: cover; border-radius: .4rem; flex-shrink: 0; aspect-ratio: auto; font-size: 1rem; }
.mini-post .t { font-size: var(--fs-sm); font-weight: 600; line-height: 1.35; }
.mini-post:hover .t { color: var(--primary-color); }
.mini-post .d { font-size: var(--fs-xs); color: var(--muted); }

/* Filter bar */
.filter-bar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem; margin-bottom: 1.5rem; }

/* Tabs pills */
.nav-pills-x .nav-link { border-radius: 99px; color: var(--muted); font-weight: 600; font-size: var(--fs-sm); padding: .4rem 1rem; }
.nav-pills-x .nav-link.active { background: var(--primary-color); color: #fff; }

/* Accordion */
.accordion-button:not(.collapsed) { color: var(--primary-color); background: var(--primary-soft); box-shadow: none; }
.accordion-button:focus { box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--primary-color) 20%, transparent); }

/* Timeline (akreditasi) */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 4px; bottom: 4px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 1.4rem 2.4rem; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--primary-color); }
.timeline li.current::before { background: var(--secondary-color); border-color: var(--secondary-color); box-shadow: 0 0 0 4px var(--secondary-soft); }
.acc-rank { font-size: 1.5rem; font-weight: 800; color: var(--secondary-color); }

/* Empty state */
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--muted); background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); }
.empty-state i { font-size: 2.6rem; display: block; margin-bottom: .6rem; color: color-mix(in srgb, var(--primary-color) 40%, #fff); }

/* Partners */
.partners { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; align-items: center; justify-content: center; }
.partners a, .partners span { display: inline-flex; align-items: center; gap: .5rem; color: var(--muted); text-decoration: none; font-weight: 600; }
.partners img { max-height: 56px; width: auto; filter: grayscale(1); opacity: .8; transition: .2s; }
.partners a:hover img { filter: none; opacity: 1; }

/* CTA */
.cta-band { background: linear-gradient(135deg, var(--secondary-color), color-mix(in srgb, var(--secondary-color) 50%, var(--primary-color))); color: #fff;
    border-radius: var(--radius-lg); padding: 2rem; }
.cta-band h2 { color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-color); color: rgba(255,255,255,.78); font-size: var(--fs-sm); padding-top: 3.5rem; }
.site-footer h2 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.site-footer a { color: rgba(255,255,255,.78); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer .contact li { display: flex; gap: .6rem; }
.site-footer .contact i { color: var(--accent-color); }
.social a { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.08); margin-right: .35rem; }
.social a:hover { background: var(--primary-color); text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.1rem 0; margin-top: 2.5rem; font-size: var(--fs-xs); }
.wa-float { position: fixed; right: 1rem; bottom: 1rem; z-index: 1040; width: 52px; height: 52px; border-radius: 50%; background: #25d366; color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 1.6rem; box-shadow: var(--shadow-lg); text-decoration: none; }
.wa-float:hover { color: #fff; transform: scale(1.05); }

/* ---------- Lightbox sederhana ---------- */
.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(5, 12, 22, .94); display: none; align-items: center; justify-content: center; flex-direction: column; padding: 3.5rem 1rem 1rem; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 150px); object-fit: contain; border-radius: .4rem; }
.lightbox .lb-cap { color: #e5e7eb; margin-top: .8rem; text-align: center; font-size: var(--fs-sm); max-width: 800px; }
.lightbox .lb-count { position: absolute; top: 1rem; left: 1rem; color: #cbd5e1; font-size: var(--fs-sm); }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 46px; height: 46px; border-radius: 50%; font-size: 1.3rem; }
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lightbox .lb-close { top: .75rem; right: .75rem; }
.lightbox .lb-prev { left: .75rem; top: 50%; }
.lightbox .lb-next { right: .75rem; top: 50%; }

/* Utilities */
.object-cover { object-fit: cover; }
.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; }
.map-embed { border: 0; width: 100%; height: 320px; border-radius: var(--radius); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .topbar, .site-header, .site-footer, .wa-float, .share-links, aside { display: none !important; } }
