/* ==========================================================
   Situs publik — Profil Dosen
   ========================================================== */
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ---------- Pita atas & header ---------- */
.topbar {
    background: var(--olive-950);
    color: var(--olive-300);
    font-size: .8rem;
}
.topbar .container { display: flex; justify-content: space-between; gap: 1rem; padding-top: .45rem; padding-bottom: .45rem; }
.topbar a { color: var(--olive-300); }
.topbar a:hover { color: var(--brass-light); }
.topbar-items { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.topbar-items span, .topbar-items a { display: inline-flex; align-items: center; gap: .35rem; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(31, 42, 28, .97);
    backdrop-filter: blur(6px);
    border-bottom: 3px solid var(--brass);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 68px; }

.brand { display: flex; align-items: center; gap: .75rem; color: var(--sand-100); min-width: 0; }
.brand:hover { color: #fff; }
.brand-mark {
    width: 40px;
    height: 44px;
    display: grid;
    place-items: center;
    background: var(--olive-700);
    color: var(--brass-light);
    font-family: var(--font-head);
    font-weight: 600;
    letter-spacing: .04em;
    clip-path: polygon(50% 0, 100% 14%, 100% 62%, 50% 100%, 0 62%, 0 14%);
    flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-text strong { font-family: var(--font-head); font-weight: 500; font-size: 1.05rem; letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text small { font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--brass-light); }

.nav { display: flex; align-items: center; gap: .15rem; }
.nav a {
    position: relative;
    padding: .5rem .8rem;
    color: var(--olive-100);
    font-family: var(--font-head);
    font-size: .88rem;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.nav a:hover { color: #fff; }
.nav a.active { color: var(--brass-light); }
.nav a.active::after {
    content: '';
    position: absolute;
    left: .8rem;
    right: .8rem;
    bottom: -14px;
    height: 3px;
    background: var(--brass-light);
}
.nav-toggle { display: none; background: none; border: 0; color: var(--sand-100); cursor: pointer; padding: .4rem; }

/* ---------- Hero beranda ---------- */
.hero {
    position: relative;
    overflow: hidden;
    background:
        repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 2px, transparent 2px 14px),
        radial-gradient(ellipse at 80% 20%, rgba(168,132,58,.18), transparent 55%),
        linear-gradient(160deg, var(--olive-800), var(--olive-950));
    color: var(--olive-100);
    padding: 4.5rem 0 7rem;
}
.hero .container { display: grid; grid-template-columns: 1.35fr 1fr; gap: 3.5rem; align-items: center; }
.hero-kicker { display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 1.1rem; }
.hero-kicker span {
    font-family: var(--font-head);
    font-size: .8rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--brass-light);
}
.hero h1 {
    color: var(--sand-50);
    font-size: clamp(2rem, 4.2vw, 3.2rem);
    font-weight: 600;
    letter-spacing: .01em;
    margin-bottom: .6rem;
}
.hero .tagline { font-size: 1.15rem; color: var(--olive-100); opacity: .88; max-width: 560px; margin: 0 0 1.6rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }

.tag-id {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid rgba(214,184,103,.4);
    border-radius: 3px;
    overflow: hidden;
    font-size: .82rem;
}
.tag-id b {
    padding: .3rem .55rem;
    background: rgba(214,184,103,.15);
    color: var(--brass-light);
    font-family: var(--font-head);
    font-weight: 500;
    letter-spacing: .12em;
}
.tag-id span { padding: .3rem .65rem; font-family: var(--font-mono); color: var(--sand-100); }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.hero .btn-outline { color: var(--sand-100); border-color: rgba(227,230,214,.35); }
.hero .btn-outline:hover { background: rgba(255,255,255,.08); color: #fff; }

/* Bingkai foto bergaya kartu identitas */
.id-card { position: relative; max-width: 360px; justify-self: end; width: 100%; }
.id-card .frame {
    position: relative;
    padding: 12px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(214,184,103,.35);
}
.id-card .frame::before, .id-card .frame::after,
.id-card .corner-b::before, .id-card .corner-b::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    border-color: var(--brass-light);
    border-style: solid;
}
.id-card .frame::before { top: -6px; left: -6px; border-width: 3px 0 0 3px; }
.id-card .frame::after { top: -6px; right: -6px; border-width: 3px 3px 0 0; }
.id-card .corner-b::before { bottom: -6px; left: -6px; border-width: 0 0 3px 3px; }
.id-card .corner-b::after { bottom: -6px; right: -6px; border-width: 0 3px 3px 0; }
.id-card .photo {
    aspect-ratio: 4 / 5;
    background: var(--olive-700);
    display: grid;
    place-items: center;
    overflow: hidden;
}
.id-card .photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) contrast(1.02); }
.id-card .photo .initials { font-family: var(--font-head); font-size: 5rem; color: var(--olive-300); letter-spacing: .05em; }
.id-card .plate {
    margin-top: 12px;
    padding: .7rem .9rem;
    background: var(--sand-100);
    color: var(--ink);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .75rem;
}
.id-card .plate strong { display: block; font-family: var(--font-head); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; font-size: .9rem; }
.id-card .plate small { color: var(--muted); font-size: .78rem; }

/* ---------- Statistik ---------- */
.stats { margin-top: -4rem; position: relative; z-index: 2; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--sand-50);
    border: 1px solid var(--line);
    border-top: 4px solid var(--olive-700);
    box-shadow: var(--shadow-lg);
}
.stat { padding: 1.4rem 1.5rem; border-right: 1px solid var(--line); display: flex; align-items: center; gap: 1rem; }
.stat:last-child { border-right: 0; }
.stat .icon-wrap { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--olive-100); color: var(--olive-700); flex-shrink: 0; }
.stat b { display: block; font-family: var(--font-head); font-size: 2rem; font-weight: 600; line-height: 1; color: var(--olive-900); }
.stat span { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------- Seksi ---------- */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--sand-200); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 2.2rem; flex-wrap: wrap; }
.kicker {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-family: var(--font-head);
    font-size: .78rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--brass);
    margin-bottom: .4rem;
}
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0; }
.section-head .rule { flex: 1; height: 1px; background: var(--line); margin: 0 1rem .6rem; min-width: 40px; }
.link-more { display: inline-flex; align-items: center; gap: .35rem; font-family: var(--font-head); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }

/* Profil ringkas */
.profile-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2.5rem; }
.prose { font-size: 1.04rem; color: var(--ink-soft); }
.prose p { margin: 0 0 1em; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip {
    padding: .35rem .75rem;
    border: 1px solid var(--olive-300);
    border-radius: 999px;
    font-size: .85rem;
    color: var(--olive-700);
    background: var(--sand-50);
}

.panel {
    background: var(--sand-50);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}
.panel-title { display: flex; align-items: center; gap: .5rem; font-family: var(--font-head); font-size: .85rem; letter-spacing: .18em; text-transform: uppercase; color: var(--olive-700); margin-bottom: 1rem; padding-bottom: .75rem; border-bottom: 1px solid var(--line); }
.data-list { margin: 0; display: grid; gap: .8rem; }
.data-list div { display: grid; gap: .1rem; }
.data-list dt { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.data-list dd { margin: 0; font-weight: 600; color: var(--ink); }

/* Timeline riwayat */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 1.5rem; border-left: 2px solid var(--olive-300); }
.timeline li { position: relative; padding: 0 0 1.5rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
    content: '';
    position: absolute;
    left: calc(-1.5rem - 7px);
    top: .35rem;
    width: 12px;
    height: 12px;
    background: var(--brass);
    transform: rotate(45deg);
    outline: 3px solid var(--sand-200);
}
.timeline .when { font-family: var(--font-mono); font-size: .8rem; color: var(--brass); }
.timeline h4 { font-size: 1.1rem; margin: .1rem 0 .15rem; }
.timeline p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Kartu */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card {
    display: flex;
    flex-direction: column;
    background: var(--sand-50);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform .2s, box-shadow .2s, border-color .2s;
    color: inherit;
}
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--olive-300); color: inherit; }
.card-media { aspect-ratio: 16 / 9; background: var(--olive-700); overflow: hidden; display: grid; place-items: center; color: var(--olive-300); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 1.25rem 1.35rem 1.4rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card-body h3 { font-size: 1.2rem; margin: 0; }
.card-body p { margin: 0; color: var(--muted); font-size: .95rem; }
.card-meta { display: flex; align-items: center; gap: .75rem; font-size: .8rem; color: var(--muted); flex-wrap: wrap; }
.card-meta span { display: inline-flex; align-items: center; gap: .3rem; }

/* Penghargaan */
.award-card { position: relative; padding: 1.5rem 1.4rem 1.4rem 1.4rem; border-top: 4px solid var(--brass); }
.award-card .medal {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--brass-soft);
    color: var(--brass);
    border: 2px solid var(--brass-light);
    margin-bottom: .9rem;
}
.award-card .year { position: absolute; top: 1.2rem; right: 1.3rem; font-family: var(--font-head); font-size: 1.8rem; color: var(--sand-300); font-weight: 600; }
.award-card h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.award-card .giver { color: var(--muted); font-size: .92rem; margin: 0 0 .6rem; }
.award-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--radius); margin-top: .8rem; }

.year-group { display: grid; grid-template-columns: 110px 1fr; gap: 1.5rem; padding: 2rem 0; border-top: 1px solid var(--line); }
.year-group:first-child { border-top: 0; padding-top: 0; }
.year-label { font-family: var(--font-head); font-size: 2.4rem; font-weight: 600; color: var(--olive-300); line-height: 1; position: sticky; top: 90px; align-self: start; }
.year-group .card-grid { grid-template-columns: repeat(2, 1fr); }

/* Publikasi */
.pub-list { display: grid; gap: 1rem; }
.pub {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 1.25rem;
    padding: 1.25rem 1.4rem;
    background: var(--sand-50);
    border: 1px solid var(--line);
    border-left: 4px solid var(--olive-600);
    border-radius: var(--radius);
}
.pub.is-buku { border-left-color: var(--brass); }
.pub-cover { width: 74px; aspect-ratio: 3 / 4; background: var(--olive-100); display: grid; place-items: center; color: var(--olive-500); border-radius: 2px; overflow: hidden; }
.pub-cover img { width: 100%; height: 100%; object-fit: cover; }
.pub h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.08rem; margin: .35rem 0 .25rem; line-height: 1.35; }
.pub .authors { margin: 0; color: var(--ink-soft); font-size: .93rem; }
.pub .venue { margin: .2rem 0 0; color: var(--muted); font-size: .9rem; font-style: italic; }
.pub-foot { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .65rem; }
.pub details { margin-top: .6rem; font-size: .92rem; color: var(--ink-soft); }
.pub summary { cursor: pointer; color: var(--olive-700); font-family: var(--font-head); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }

.filter-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; }
.tabs { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--sand-50); }
.tabs a { padding: .55rem 1.1rem; font-family: var(--font-head); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); border-right: 1px solid var(--line); }
.tabs a:last-child { border-right: 0; }
.tabs a.active { background: var(--olive-700); color: #fff; }
.search { display: flex; gap: .5rem; flex: 1; max-width: 380px; }
.search .input { padding: .55rem .75rem; }

/* Penelitian */
.research-table { width: 100%; border-collapse: collapse; background: var(--sand-50); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.research-table th {
    text-align: left;
    padding: .85rem 1rem;
    background: var(--olive-800);
    color: var(--sand-100);
    font-family: var(--font-head);
    font-weight: 500;
    font-size: .78rem;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.research-table td { padding: 1rem; border-top: 1px solid var(--line); vertical-align: top; font-size: .95rem; }
.research-table tr:nth-child(even) td { background: var(--sand-100); }
.research-table .title { font-weight: 700; color: var(--ink); }
.research-table .desc { color: var(--muted); font-size: .88rem; margin-top: .3rem; }
.summary-strip { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.75rem; }
.summary-strip .panel { flex: 1; min-width: 180px; padding: 1rem 1.25rem; }
.summary-strip b { display: block; font-family: var(--font-head); font-size: 1.6rem; color: var(--olive-900); }
.summary-strip span { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* Halaman dalam */
.page-head {
    background:
        repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 2px, transparent 2px 14px),
        linear-gradient(160deg, var(--olive-800), var(--olive-950));
    color: var(--olive-100);
    padding: 3.25rem 0 3rem;
    border-bottom: 1px solid var(--olive-950);
}
.page-head h1 { color: var(--sand-50); font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 0 0 .4rem; }
.page-head p { margin: 0; opacity: .8; max-width: 620px; }
.page-head .kicker { color: var(--brass-light); }

/* Berita detail */
.article { max-width: 760px; margin: 0 auto; }
.article-cover { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 2rem; border: 1px solid var(--line); }
.article .prose { font-size: 1.08rem; line-height: 1.8; }
.back-link { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-head); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; color: var(--brass-light); }

/* Kontak */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2rem; align-items: start; }
.contact-item { display: flex; gap: .9rem; padding: .9rem 0; border-bottom: 1px dashed var(--line); }
.contact-item:last-child { border-bottom: 0; }
.contact-item .icon-wrap { width: 40px; height: 40px; border-radius: var(--radius); background: var(--olive-700); color: var(--brass-light); display: grid; place-items: center; flex-shrink: 0; }
.contact-item small { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact-item span, .contact-item a { font-weight: 600; word-break: break-word; }
.map-embed { margin-top: 1.5rem; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.map-embed iframe { display: block; width: 100%; height: 280px; border: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }

/* CTA */
.cta {
    background: var(--olive-900);
    color: var(--olive-100);
    padding: 3rem 0;
    border-top: 3px solid var(--brass);
}
.cta .container { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.cta h2 { color: var(--sand-50); margin: 0 0 .25rem; font-size: 1.7rem; }
.cta p { margin: 0; opacity: .8; }

/* Footer */
.site-footer { background: var(--olive-950); color: var(--olive-300); padding: 3.5rem 0 0; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.site-footer h4 { color: var(--sand-100); font-size: .85rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer a { color: var(--olive-300); }
.site-footer a:hover { color: var(--brass-light); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer-bottom { border-top: 1px solid rgba(163,173,138,.15); padding: 1.1rem 0; font-size: .8rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ---------- Responsif ---------- */
@media (max-width: 960px) {
    .hero .container, .profile-grid, .two-col, .contact-grid { grid-template-columns: 1fr; }
    .id-card { justify-self: start; max-width: 300px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(2) { border-right: 0; }
    .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid > :first-child { grid-column: 1 / -1; }

    .nav-toggle { display: block; }
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        background: var(--olive-900);
        border-bottom: 3px solid var(--brass);
        padding: .5rem 0;
    }
    .nav.open { display: flex; }
    .nav a { padding: .8rem 20px; }
    .nav a.active::after { left: 0; right: auto; top: 0; bottom: 0; width: 3px; height: auto; }
}

@media (max-width: 640px) {
    .container { padding: 0 16px; }
    .topbar { display: none; }
    .hero { padding: 3rem 0 6rem; }
    .stat { padding: 1rem; gap: .7rem; }
    .stat .icon-wrap { display: none; }
    .stat b { font-size: 1.6rem; }
    .card-grid, .year-group .card-grid { grid-template-columns: 1fr; }
    .year-group { grid-template-columns: 1fr; gap: .75rem; }
    .year-label { position: static; font-size: 1.8rem; }
    .pub { grid-template-columns: 1fr; }
    .pub-cover { display: none; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .section { padding: 3rem 0; }
    .search { max-width: none; }
    .research-table thead { display: none; }
    .research-table, .research-table tbody, .research-table tr, .research-table td { display: block; width: 100%; }
    .research-table td { border-top: 0; padding: .35rem 1rem; }
    .research-table tr { border-top: 1px solid var(--line); padding: .75rem 0; }
    .research-table td[data-label]::before { content: attr(data-label) ': '; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
}
