/* =====================================================================
   Frontend theme — Website Prodi Manajemen FEB UNM
   Dimuat HANYA pada layout publik (layouts/frontend.blade.php).
   Tujuan: tampilan bersih khas template Tabler — background abu terang,
   kartu putih, font Inter, aksen warna primary (navy). Tanpa efek
   "landing" berat (gradient besar, glass, gelombang, emas).
   Mengandalkan token warna dari brand.css.
   ===================================================================== */

/* ---------- Lebar layout (condensed) ---------- */
@media (min-width: 1200px) {
  .container-xl { max-width: 1200px; }
}

/* ---------- Dasar: background abu Tabler (font mengikuti default Tabler: Geist) ---------- */
body {
  background-color: #f6f7fb;
  color: #4b5563;
}
h1, h2, h3, h4, .h1, .h2, .h3, .h4 {
  letter-spacing: -0.01em;
  color: #1d273b;
}

/* ---------- Section (blok konten full-width) ---------- */
.section { padding: 3.5rem 0; }
.section-sm { padding: 2.5rem 0; }
/* Blok dengan latar putih, untuk berselang-seling dengan body abu */
.section-tint { background: #fff; }
/* Blok aksen gelap (mis. pengumuman) */
.section-dark { background: var(--brand-navy); color: #cbd5e1; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }

/* ---------- Header section (judul blok) ---------- */
.section-header { max-width: 720px; margin-bottom: 2rem; }
.section-header.text-center { margin-left: auto; margin-right: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .75rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand-blue);
  margin-bottom: .5rem;
}
.section-title { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 700; }
.section-subtitle { color: #6b7280; font-size: 1rem; margin-top: .35rem; }

/* ---------- Hero beranda (cover navy, bersih) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-navy) 100%);
  color: #fff;
  min-height: var(--hero-min-height, 0px);
  padding: 4.5rem 0 5rem;
}
/* Cahaya lembut di pojok (tanpa blob/gelombang) */
.hero > .container-xl { position: relative; z-index: 1; width: 100%; }

/* ---------- Hero Slider (carousel) ---------- */
.hero-carousel-wrap { position: relative; }
.hero-slide {
  min-height: clamp(360px, 56vh, 600px);
  background-size: cover; background-position: center;
  display: flex; align-items: center;
  color: #fff;
}
.hero-slide-content { max-width: 46rem; }
.hero-slide h1 { color: #fff; font-weight: 700; font-size: clamp(1.9rem, 4.4vw, 3.1rem); line-height: 1.12; }
.hero-slide .hero-lead { color: rgba(255,255,255,.9); font-size: 1.15rem; max-width: 40rem; }
.hero-carousel-wrap .carousel-indicators { margin-bottom: 1.25rem; }
.hero-carousel-wrap .carousel-control-prev,
.hero-carousel-wrap .carousel-control-next { width: 5%; opacity: .7; }
.hero-carousel-wrap .carousel-control-prev:hover,
.hero-carousel-wrap .carousel-control-next:hover { opacity: 1; }
@media (max-width: 575.98px) {
  .hero-slide { min-height: 340px; }
}
.hero h1 { color: #fff; font-weight: 700; font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.1; }
.hero .hero-lead { color: rgba(255,255,255,.82); font-size: 1.15rem; max-width: 38rem; }
.hero .eyebrow { color: rgba(255,255,255,.75); }
.hero .text-accent { color: #ffca70; }
/* Sisa ornamen landing lama bila masih ada di markup */
.hero-blob, .hero-wave { display: none !important; }

/* ---------- Page header halaman dalam (ringan, gaya Tabler) ---------- */
.page-hero {
  background: linear-gradient(135deg, rgba(var(--tblr-primary-rgb), .09), rgba(var(--tblr-primary-rgb), .02) 55%, #fff);
  border-bottom: 1px solid var(--tblr-border-color, #e6e7e9);
  padding: 2.25rem 0;
}
.page-hero h1 { font-weight: 700; font-size: clamp(1.5rem, 3vw, 2.1rem); color: #1d273b; }
.page-hero .breadcrumb { margin-bottom: .35rem; font-size: .85rem; }

/* ---------- Kartu (mengikuti default Tabler, sedikit dihaluskan) ---------- */
.card { border: 1px solid var(--tblr-border-color, #e6e7e9); }
.card-hover { transition: border-color .2s ease, box-shadow .2s ease; }
.card-hover:hover, .card-hover:focus-within { border-color: rgba(var(--tblr-primary-rgb), .45); box-shadow: 0 .35rem 1rem rgba(24,36,64,.08); }

/* Ikon fitur (kotak lembut) */
.feature-icon {
  width: 3rem; height: 3rem;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--tblr-border-radius, .5rem);
  background: rgba(var(--tblr-primary-rgb), .1);
  color: var(--brand-blue);
  font-size: 1.4rem;
}
.feature-icon.gold { background: rgba(var(--tblr-primary-rgb), .1); color: var(--brand-blue); }

/* ---------- Statistik ---------- */
.stat-value {
  font-family: 'Inter', sans-serif; font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1;
  color: var(--brand-blue);
}
.section-dark .stat-value { color: #fff; }
.stat-value .plus { color: var(--brand-blue); }
.section-dark .stat-value .plus { color: #fff; }

/* Band statistik (blok beranda) */
.stat-band .stat-icon {
  width: 3.5rem; height: 3.5rem; margin: 0 auto .75rem;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; font-size: 1.6rem;
  background: rgba(var(--tblr-primary-rgb, 27,58,91), .12); color: var(--tblr-primary);
}
.stat-band.section-dark .stat-icon { background: rgba(255,255,255,.14); color: #fff; }
.stat-band .stat-value { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.stat-band .stat-label { font-size: .9rem; margin-top: .15rem; }
.stat-band.section-dark .stat-label { color: rgba(255,255,255,.8) !important; }

/* ---------- Tombol ---------- */
/* Tombol terang untuk dipakai di atas latar gelap (mis. hero/CTA navy) */
.btn-gold {
  background: #fff; border-color: #fff; color: var(--brand-blue); font-weight: 600;
}
.btn-gold:hover { background: #eef1f6; border-color: #eef1f6; color: var(--brand-blue-dark); }
.btn-light-outline {
  background-color: transparent; border: 1px solid rgba(255,255,255,.55); color: #fff;
}
.btn-light-outline:hover { background-color: #fff; border-color: #fff; color: var(--brand-blue); }

/* ---------- Badge tint kustom ---------- */
.bg-gold-lt { background: rgba(var(--tblr-primary-rgb), .12); color: var(--brand-blue); }

/* ---------- Featured post ---------- */
.featured-post { overflow: hidden; }
.featured-img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--brand-navy); color: rgba(255,255,255,.75);
  font-size: .8rem; padding: .35rem 0;
}
.topbar .topbar-link { color: rgba(255,255,255,.75); text-decoration: none; transition: color .2s; }
.topbar .topbar-link:hover { color: #fff; }

/* ---------- Header: dua baris (brand + menu), sticky — gaya Tabler "navbar sticky" ---------- */
.site-header { transition: box-shadow .2s ease; }
.site-header.is-scrolled { box-shadow: 0 .25rem .75rem rgba(24,36,64,.06); }

/* Baris brand (atas) — logo rapi & seimbang */
.site-navbar { background: #fff; box-shadow: none; }
.site-navbar .navbar-brand { padding-top: .75rem; padding-bottom: .75rem; }
.site-navbar .navbar-brand img { height: 42px; width: auto; display: block; }
.site-menu-toggle { width: auto; min-width: 44px; min-height: 44px; align-items: center; gap: .4rem; padding: .4rem .65rem; font-weight: 600; white-space: nowrap; }

/* Mobile: logo lebih kecil + padding kiri-kanan konten lebih lega */
@media (max-width: 575.98px) {
  .site-navbar .navbar-brand img { height: 32px; }
  .site-navbar .navbar-brand { padding-top: .5rem; padding-bottom: .5rem; }
  .container, .container-sm, .container-md, .container-lg, .container-xl {
    padding-left: 1.25rem; padding-right: 1.25rem;
  }
}

/* Baris menu (bawah) */
.site-navmenu .navbar {
  background: #fff;
  border-bottom: 0;
  box-shadow: none;
  padding-top: 0; padding-bottom: 0;
}
.site-navmenu .nav-link { font-weight: 500; font-size: .95rem; color: #4b5563; transition: color .15s, background-color .15s; }
.site-navmenu .nav-link:hover { color: var(--brand-blue); }
/* Beri jarak antara teks menu dan ikon panah dropdown */
.site-navmenu .dropdown-toggle::after { margin-left: .5em; }

/* Penanda menu aktif: teks brand + tebal */
.site-navmenu .navbar-nav .nav-item.active > .nav-link { color: var(--brand-blue); font-weight: 600; }
.site-navmenu .navbar-nav .nav-item.active::after { display: none; }

@media (min-width: 1200px) {
  .site-navbar > .container-xl,
  .topbar > .container-xl,
  .site-navmenu .container-xl { max-width: 1280px; }
  /* Menu baris bawah rata tengah (saat diaktifkan di admin) */
  .site-navmenu.is-centered .container-xl { justify-content: center; }
  .site-navmenu .navbar-nav { gap: .25rem; }
  .site-navmenu .navbar-nav .nav-link { padding: .65rem .9rem; border-radius: .375rem; }
  /* Hover jelas: latar tipis */
  .site-navmenu .navbar-nav .nav-link:hover { background: rgba(var(--tblr-primary-rgb), .07); }
  /* Aktif jelas: pill terisi + tetap saat hover */
  .site-navmenu .navbar-nav .nav-item.active > .nav-link,
  .site-navmenu .navbar-nav .nav-item.active > .nav-link:hover {
    background: rgba(var(--tblr-primary-rgb), .13);
    color: var(--brand-blue);
  }
}

/* Mode hamburger (<1200px) */
@media (max-width: 1199.98px) {
  .site-navmenu .navbar-collapse { background: #fff; border-bottom: 0; }
  .site-navmenu .navbar { border: 0; padding: .25rem 0 .5rem; }
  .site-navmenu .navbar-nav .nav-link { padding: .75rem .25rem; }
  .site-navmenu .dropdown-menu { border: 0; box-shadow: none; padding-left: 1rem; }
  .site-search, .site-search .input-icon, .site-search .form-control { width: 100%; }
}

/* Logo mark — kotak solid navy */
.brand-mark {
  width: 2rem; height: 2rem; border-radius: var(--tblr-border-radius, .5rem);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; background: var(--brand-blue);
}

/* ---------- Tombol kembali ke atas ---------- */
.back-to-top {
  position: fixed; right: 1.25rem; bottom: 5rem; z-index: 1030;
  width: 3rem; height: 3rem; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-blue); color: #fff; border: 0;
  box-shadow: 0 .5rem 1rem rgba(24,36,64,.2);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--brand-blue-dark); color: #fff; }

/* ---------- Glass card (hanya di blok gelap, mis. pengumuman) ---------- */
.glass-card {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--tblr-border-radius, .5rem); color: #fff;
  transition: background .2s ease;
}
.glass-card:hover { background: rgba(255,255,255,.14); }

/* ---------- Anchor nav Profil (scrollspy) ---------- */
.profil-nav { border-left: 2px solid var(--tblr-border-color, #e6e7e9); padding-left: 1rem; }
.profil-nav.sticky-top { top: var(--sticky-header-offset, 8rem); }
.profil-nav-link {
  display: block; padding: .4rem 0; color: #6b7280; text-decoration: none;
  font-weight: 500; font-size: .9rem; position: relative; transition: color .2s;
}
.profil-nav-link::before {
  content: ""; position: absolute; left: calc(-1rem - 2px); top: 0; bottom: 0;
  width: 2px; background: transparent; transition: background .2s;
}
.profil-nav-link:hover, .profil-nav-link.active { color: var(--brand-blue); }
.profil-nav-link.active::before { background: var(--brand-blue); }
.profil-section { scroll-margin-top: var(--sticky-header-offset, 8rem); }

/* ---------- Dosen card ---------- */
.dosen-card .avatar { box-shadow: 0 .25rem .75rem rgba(24,36,64,.08); }

/* Kartu dosen gaya foto-atas (halaman daftar dosen) */
.dosen-card { overflow: hidden; }
.dosen-card .dosen-photo { aspect-ratio: 4 / 5; background: #e9edf2; }
.dosen-card .dosen-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dosen-card .dosen-photo .ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 3rem; font-weight: 700;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-navy));
}
.dosen-card .dosen-name { font-size: 1.05rem; line-height: 1.25; color: #1d273b; }
/* Sejajarkan badge konsentrasi di dasar tiap kartu (apa pun panjang nama). */
.dosen-card .card-body { display: flex; flex-direction: column; }
.dosen-card .dosen-konsentrasi { margin-top: auto; align-self: flex-start; }
.dosen-konsentrasi {
  display: inline-flex; align-items: center;
  font-size: .7rem; font-weight: 600;
  white-space: normal; text-align: left; line-height: 1.2;
}
.dosen-konsentrasi i { font-size: .85rem; }

/* Versi ringkas kartu dosen (mis. blok beranda) */
.dosen-card-sm .dosen-photo { aspect-ratio: 1 / 1; }
.dosen-card-sm .card-body { padding: .75rem; }
.dosen-card-sm .dosen-name { font-size: .85rem; }
.dosen-card-sm .dosen-konsentrasi { font-size: .58rem; padding: .15rem .4rem; }
.dosen-card-sm .dosen-konsentrasi i { font-size: .68rem; }
.dosen-card-sm .dosen-photo .ph { font-size: 2rem; }

/* Kartu profil dosen (halaman detail): offset sticky HANYA di desktop.
   Di mobile .card tetap position:relative, jadi 'top' tak boleh diterapkan
   (kalau diterapkan, kartu terdorong turun → muncul gap besar). */
@media (min-width: 992px) {
  .dosen-profile-sticky { top: 5.5rem; }
}

/* ---------- Footer ---------- */
.footer a:hover { color: #fff !important; }

/* ---------- Ringkasan kartu: maksimal 2 baris (anti meluber) ---------- */
.excerpt-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Konten kaya (markdown) ---------- */
.markdown { line-height: 1.8; color: #3b4658; }
.markdown h2, .markdown h3 { margin-top: 1.6rem; color: #1d273b; }
.markdown img { border-radius: var(--tblr-border-radius, .5rem); max-width: 100%; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--sticky-header-offset, 8rem);
}

/* ---------- Google Translate widget (sembunyikan UI bawaan) ---------- */
#google_translate_element { display: none !important; }
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
.skiptranslate iframe,
.goog-te-balloon-frame { display: none !important; visibility: hidden !important; }
.goog-te-gadget { font-size: 0 !important; }
#goog-gt-tt, .goog-tooltip, .goog-tooltip * { display: none !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
body { top: 0 !important; position: static !important; }

/* ---------- Tombol bahasa melayang (kanan bawah) ---------- */
.floating-actions {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1032;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: .75rem;
}
.lang-fab { position: relative; }
.lang-fab-btn {
  width: 3rem; height: 3rem;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; font-weight: 600; padding: 0;
  box-shadow: 0 .5rem 1.25rem rgba(24,36,64,.25);
  overflow: hidden;
  white-space: nowrap;
  transition: width .2s ease, border-radius .2s ease, padding .2s ease;
}
.lang-fab .dropdown-menu { min-width: 12rem; }

/* ---------- Aksesibilitas ---------- */
.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 2000;
  transform: translateY(-150%);
  background: #fff;
  color: var(--brand-blue);
  border: 2px solid var(--brand-blue);
  border-radius: var(--tblr-border-radius, .5rem);
  padding: .65rem 1rem;
  font-weight: 700;
  box-shadow: 0 .5rem 1.25rem rgba(24,36,64,.18);
}
.skip-link:focus {
  transform: none;
  outline: 3px solid #ffbf00;
  outline-offset: 2px;
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid #ffbf00;
  outline-offset: 3px;
}

.accessibility-widget {
  position: relative;
}
.accessibility-toggle {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 .5rem 1.25rem rgba(24,36,64,.25);
  overflow: hidden;
  white-space: nowrap;
  transition: width .2s ease, border-radius .2s ease, padding .2s ease;
}
.floating-action-text {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-width .2s ease, opacity .15s ease, margin-left .2s ease;
}
.accessibility-toggle:hover,
.accessibility-toggle:focus-visible,
.lang-fab-btn:hover,
.lang-fab-btn:focus-visible {
  width: auto;
  min-width: 3rem;
  border-radius: 2rem;
  padding: 0 1rem;
}
.accessibility-toggle:hover .floating-action-text,
.accessibility-toggle:focus-visible .floating-action-text,
.lang-fab-btn:hover .floating-action-text,
.lang-fab-btn:focus-visible .floating-action-text {
  max-width: 9rem;
  opacity: 1;
  margin-left: .45rem;
}
.accessibility-panel {
  position: absolute;
  right: 0;
  bottom: 3.75rem;
  width: min(19rem, calc(100vw - 2.5rem));
  background: #fff;
  color: #1d273b;
  border: 1px solid var(--tblr-border-color, #e6e7e9);
  border-radius: var(--tblr-border-radius, .5rem);
  padding: 1rem;
}
.accessibility-actions {
  display: grid;
  gap: .45rem;
}
.accessibility-actions .btn {
  justify-content: flex-start;
  text-align: left;
}
.accessibility-actions .btn.active {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #fff;
}

html.a11y-large-text { font-size: 112.5%; }
html.a11y-readable-font body {
  font-family: Arial, Verdana, Tahoma, sans-serif;
  letter-spacing: 0;
}
html.a11y-underline-links a:not(.btn):not(.nav-link):not(.navbar-brand) {
  text-decoration: underline !important;
  text-underline-offset: .18em;
}
html.a11y-grayscale body { filter: grayscale(1); }
html.a11y-high-contrast body {
  background: #000 !important;
  color: #fff !important;
}
html.a11y-high-contrast .page,
html.a11y-high-contrast .section,
html.a11y-high-contrast .section-tint,
html.a11y-high-contrast .site-navbar,
html.a11y-high-contrast .site-navmenu .navbar,
html.a11y-high-contrast .site-navmenu .navbar-collapse,
html.a11y-high-contrast .card,
html.a11y-high-contrast .dropdown-menu,
html.a11y-high-contrast .accessibility-panel {
  background: #000 !important;
  color: #fff !important;
  border-color: #fff !important;
}
html.a11y-high-contrast h1,
html.a11y-high-contrast h2,
html.a11y-high-contrast h3,
html.a11y-high-contrast h4,
html.a11y-high-contrast .section-title,
html.a11y-high-contrast .card-title,
html.a11y-high-contrast .nav-link,
html.a11y-high-contrast .dropdown-item,
html.a11y-high-contrast .text-secondary,
html.a11y-high-contrast .section-subtitle {
  color: #fff !important;
}
html.a11y-high-contrast a:not(.btn),
html.a11y-high-contrast .eyebrow { color: #ffdf5d !important; }
html.a11y-high-contrast .btn-outline-primary,
html.a11y-high-contrast .btn-ghost-secondary {
  color: #fff !important;
  border-color: #fff !important;
}
html.a11y-high-contrast .btn-primary,
html.a11y-high-contrast .accessibility-actions .btn.active {
  background: #ffdf5d !important;
  border-color: #ffdf5d !important;
  color: #000 !important;
}
html.a11y-reduce-motion,
html.a11y-reduce-motion body { scroll-behavior: auto !important; }
html.a11y-reduce-motion *,
html.a11y-reduce-motion *::before,
html.a11y-reduce-motion *::after {
  animation-duration: .001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: .001ms !important;
}
@media (max-width: 575.98px) {
  .floating-actions { right: 1rem; bottom: 1rem; gap: .55rem; }
  .back-to-top { right: 1rem; bottom: 4.6rem; }
}

/* ---------- Banner pengumuman site-wide ---------- */
.announcement-bar { background: var(--brand-navy); color: #fff; font-size: .9rem; padding: .5rem 0; }
.announcement-bar .ti-speakerphone { opacity: .9; }
.announcement-bar .announcement-link { color: #fff; text-decoration: none; }
.announcement-bar .announcement-link:hover { text-decoration: underline; }
.announcement-bar .announcement-cta { color: #fff; text-decoration: none; font-weight: 600; white-space: nowrap; opacity: .9; }
.announcement-bar .announcement-cta:hover { opacity: 1; }
.announcement-bar .announcement-close {
  background: transparent; border: 0; color: #fff; opacity: .7; line-height: 1;
  padding: .15rem .3rem; flex-shrink: 0; cursor: pointer; transition: opacity .2s;
}
.announcement-bar .announcement-close:hover { opacity: 1; }

/* ---------- Mitra: logo berjalan otomatis (marquee) ---------- */
.mitra-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.mitra-track { display: flex; width: max-content; align-items: center; gap: 3.5rem; animation: mitra-scroll 40s linear infinite; }
.mitra-marquee:hover .mitra-track { animation-play-state: paused; }
.mitra-item { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }
.mitra-item img { height: 52px; width: auto; max-width: 160px; object-fit: contain; display: block; }
.mitra-item .mitra-name { font-weight: 700; color: var(--brand-blue); font-size: 1.1rem; white-space: nowrap; }
.mitra-marquee.is-grayscale .mitra-item img { filter: grayscale(1); opacity: .65; transition: filter .25s, opacity .25s; }
.mitra-marquee.is-grayscale .mitra-item:hover img { filter: grayscale(0); opacity: 1; }
@keyframes mitra-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .mitra-track { animation: none; flex-wrap: wrap; justify-content: center; row-gap: 1.5rem; } }

/* Aksen institusi: cukup untuk menandai judul dan tautan penting. */
:root { --brand-accent: #f5a623; }

.eyebrow { color: var(--brand-blue); }
.eyebrow { letter-spacing: 0; }
.section-dark .eyebrow { color: rgba(255,255,255,.82); }
.section-title { position: relative; }
.section-title::after {
  content: ""; display: block; width: 46px; height: 3px;
  background: var(--brand-accent); margin-top: .7rem;
}
.section-header.text-center .section-title::after,
.text-center > .section-title::after { margin-left: auto; margin-right: auto; }
.section-dark .section-title::after { background: var(--brand-accent); opacity: .9; }

/* Tipografi display tetap dipakai untuk hierarki, tanpa ornamen tambahan. */
h1, h2, h3, h4, .h1, .h2, .h3, .h4,
.section-title, .card-title,
.hero h1, .hero-slide h1, .page-hero h1 {
  font-family: 'Plus Jakarta Sans', var(--tblr-font-sans-serif, 'Geist'), sans-serif;
  letter-spacing: 0;
}
body { color: #3b4453; }
.section { padding: 4.25rem 0; }
.section-title { font-size: clamp(1.65rem, 3vw, 2.35rem); font-weight: 800; }
.section-subtitle { font-size: 1.05rem; line-height: 1.65; color: #5b6472; }

/* Ikon fitur mengikuti warna merek, bukan warna dekoratif per urutan. */
.feature-icon {
  width: 3.25rem; height: 3.25rem; border-radius: .375rem; font-size: 1.5rem;
}
.feature-icon.fi-1, .feature-icon.fi-2, .feature-icon.fi-3, .feature-icon.fi-4 {
  background: rgba(var(--tblr-primary-rgb), .1); color: var(--brand-blue);
}

.card { border-radius: .5rem; }
.section .card { box-shadow: 0 1px 3px rgba(24,36,64,.05); }
.section .card-hover:hover, .section .card-hover:focus-within { box-shadow: 0 .35rem 1rem rgba(24,36,64,.08); }

/* Link "Lihat Semua": panah bergeser saat hover */
.section-header a.btn i.ti-arrow-right { transition: transform .2s ease; }
.section-header a.btn:hover i.ti-arrow-right { transform: translateX(4px); }

/* Post-card modern: thumbnail + badge kategori overlay */
.post-card .post-thumb {
  position: relative; display: block; aspect-ratio: 16/9; overflow: hidden;
  border-top-left-radius: .5rem; border-top-right-radius: .5rem;
}
.post-card .post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .post-thumb-ph {
  width: 100%; height: 100%; font-size: 2.5rem; opacity: .85;
  background: var(--brand-blue);
}
.post-card .post-cat { position: absolute; top: .65rem; left: .65rem; z-index: 2; }
.post-card .card-title a:hover { color: var(--brand-blue); }

/* Tombol mengikuti bahasa visual Tabler dan hierarki merek. */
.btn { border-radius: .375rem; }
.btn-lg { border-radius: .5rem; }

/* Aksen pada tautan di dalam konten (markdown) */
.markdown a { color: var(--brand-blue); text-underline-offset: 3px; }

/* Seleksi teks memakai warna brand */
::selection { background: rgba(var(--tblr-primary-rgb, 27,58,91), .18); }

/* =========================================================
   HERO IMMERSIVE — menu transparan menimpa hero (hanya beranda)
   ========================================================= */
.site-header--overlay { background: transparent; box-shadow: none; z-index: 1030; }
.site-header--overlay .site-navbar { background: transparent; }
.site-header--overlay .navbar-brand img { filter: brightness(0) invert(1); }
.site-header--overlay .navbar-brand .fw-bold { color: #fff; }
.site-header--overlay .navbar-brand .text-secondary { color: rgba(255,255,255,.72) !important; }
.site-header--overlay .navbar-toggler { color: #fff; border-color: rgba(255,255,255,.5); }

/* Saat di-scroll: header jadi solid navy agar tetap terbaca di atas konten terang */
.site-header--overlay.is-scrolled { background: var(--brand-navy); box-shadow: 0 .3rem 1rem rgba(0,0,0,.25); }

/* Menu row transparan + teks terang — HANYA desktop (di mobile menu jadi panel putih) */
@media (min-width: 1200px) {
  .site-header--overlay .site-navmenu .navbar { background: transparent; border: 0; }
  .site-header--overlay .site-navmenu .nav-link { color: rgba(255,255,255,.9); }
  .site-header--overlay .site-navmenu .nav-link:hover { color: #fff; }
  .site-header--overlay .site-navmenu .navbar-nav .nav-item.active > .nav-link,
  .site-header--overlay .site-navmenu .navbar-nav .nav-item.active > .nav-link:hover {
    color: #fff; background: rgba(255,255,255,.16);
  }
  .site-header--overlay .site-search .form-control {
    background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.28); color: #fff;
  }
  .site-header--overlay .site-search .form-control::placeholder { color: rgba(255,255,255,.7); }
  .site-header--overlay .site-search .input-icon-addon { color: rgba(255,255,255,.75); }
}

/* Hero ditarik ke atas hingga berada di belakang menu (full-bleed) */
.page-hero-overlay .hero,
.page-hero-overlay .hero-carousel-wrap { margin-top: calc(-1 * var(--site-header-h, 118px)); }
.page-hero-overlay .hero { padding-top: calc(var(--site-header-h, 118px) + 2.5rem); }
.page-hero-overlay .hero-slide { padding-top: calc(var(--site-header-h, 118px) + 1rem); }

/* Beranda: pilar tampil sebagai isi utama, bukan tiga kartu identik. */
.home-pillars { background: #f1f4f7; }
.home-pillars-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 7vw, 7rem); align-items: start; }
.home-pillars-intro { max-width: 27rem; padding-top: .5rem; }
.home-pillars-intro .section-title { line-height: 1.17; margin-bottom: 1.25rem; overflow-wrap: anywhere; }
.home-pillars-intro .section-subtitle { max-width: 25rem; }
.home-pillars-list { border-top: 1px solid #cbd5df; }
.home-pillar { display: grid; grid-template-columns: 3.25rem minmax(0, 1fr); gap: 1.25rem; padding: 1.4rem 0; border-bottom: 1px solid #cbd5df; }
.home-pillar .feature-icon { margin-top: .1rem; }
.home-pillar-title { margin: 0 0 .35rem; font-size: 1.15rem; font-weight: 700; color: #1d273b; }
.home-pillar p { color: #4d5967; line-height: 1.65; }

/* Tentang: judul pendek di kiri, narasi dan fakta di kanan. */
.home-about .section-title { max-width: 29rem; line-height: 1.2; }
.home-about-lead { color: #344155; font-size: 1.15rem; line-height: 1.75; }
.home-about-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem 1.75rem; padding-top: 1.3rem; border-top: 1px solid #dce2e9; }
.home-about-point { display: flex; align-items: flex-start; gap: .6rem; font-weight: 500; color: #344155; }
.home-about-point .ti { color: var(--brand-blue); font-size: 1.25rem; flex: 0 0 auto; }
.home-about-image { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: .375rem; }

/* Berita terbaru mendapat satu cerita utama, didukung dua cerita lain. */
@media (min-width: 992px) {
  .home-posts-lead .post-card { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); min-height: 21rem; }
  .home-posts-lead .post-thumb { height: 100%; aspect-ratio: auto; border-radius: .5rem 0 0 .5rem; }
  .home-posts-lead .post-card .card-body { justify-content: center; padding: clamp(1.5rem, 3vw, 3rem); }
  .home-posts-lead .card-title { font-size: clamp(1.35rem, 2vw, 1.8rem); line-height: 1.3; }
  .home-posts-lead .excerpt-clamp { -webkit-line-clamp: 3; line-clamp: 3; }
}

/* Penutup adalah satu band aksi, tidak dibingkai sebagai kartu baru. */
.home-cta { border-top: 4px solid var(--brand-accent); }
.home-cta-layout { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: center; }
.home-cta h2 { max-width: 39rem; color: #fff; font-size: clamp(1.6rem, 2.6vw, 2.3rem); line-height: 1.2; }
.home-cta p { max-width: 37rem; color: #d5dfe9; font-size: 1.05rem; line-height: 1.6; }
.home-cta-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .65rem; }

@media (max-width: 991.98px) {
  .home-pillars-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .home-pillars-intro, .home-pillars-intro .section-subtitle { max-width: 44rem; }
  .home-cta-layout { grid-template-columns: 1fr; }
  .home-cta-actions { justify-content: flex-start; }
}

@media (max-width: 767.98px) {
  .hero { min-height: min(var(--hero-min-height, 0px), 68svh); padding-bottom: 2.5rem; }
  .section { padding: 2.75rem 0; }
  .home-pillars-list { margin-top: .25rem; }
  .home-pillar { grid-template-columns: 2.75rem minmax(0, 1fr); gap: .9rem; padding: 1.1rem 0; }
  .home-pillar .feature-icon { width: 2.75rem; height: 2.75rem; font-size: 1.25rem; }
  .home-about-lead { font-size: 1.05rem; }
  .home-about-points { grid-template-columns: 1fr; }
  .home-cta-actions .btn { width: 100%; justify-content: center; }
}

/* Homepage editorial: identitas akademik dengan pola digital kontemporer. */
.page-home {
  --home-ink: #102b46;
  --home-accent: #bd3f23;
  --home-surface: #eaf2f8;
  --home-rule: #d8e0e7;
  color: var(--home-ink);
}

.site-header {
  --home-ink: #102b46;
  --home-accent: #bd3f23;
  position: relative;
  z-index: 1030;
}
.site-brandbar { background: #fff; }
.site-navbar-inner { display: flex; min-height: 4.25rem; align-items: center; }
.site-brandbar .navbar-brand { flex: 0 0 auto; padding: .35rem 0; }
.site-brandbar .navbar-brand img { display: block; width: auto; max-width: 15rem; height: 2.75rem; object-fit: contain; }
.site-brand-subtext { margin-top: .32rem; font-size: .72rem; font-weight: 500; letter-spacing: .02em; }
.site-navmenu-shell { position: relative; z-index: 1030; background: #fff; border-top: 1px solid #edf0f3; border-bottom: 1px solid #e4e9ee; }
.site-navmenu-shell.sticky-top { position: sticky; top: 0; }
.site-navmenu-shell.is-scrolled { box-shadow: 0 5px 18px rgba(16, 43, 70, .08); }
.site-navmenu { width: 100%; padding: 0; background: #fff; }
.site-navmenu .container-xl { display: flex; min-height: 3.25rem; align-items: center; gap: .8rem; }
.site-menu-toggle { display: none; align-items: center; gap: .45rem; min-height: 2.75rem; color: var(--home-ink); }
.site-navmenu .navbar-nav { align-items: center; gap: .05rem; }
.site-navmenu .container-xl.is-centered .navbar-nav { margin-right: auto; margin-left: auto; }
.site-navmenu .nav-link {
  position: relative;
  padding: .8rem .62rem;
  color: #263d52;
  font-size: .9rem;
  font-weight: 600;
  white-space: nowrap;
}
.site-navmenu .nav-link:hover,
.site-navmenu .nav-item.active > .nav-link { color: var(--home-accent); }
.site-navmenu .nav-item.active > .nav-link:not(.dropdown-toggle)::after {
  position: absolute;
  right: .62rem;
  bottom: .42rem;
  left: .62rem;
  height: 2px;
  background: var(--home-accent);
  content: "";
}
.site-search { flex: 0 1 10.5rem; margin: 0; }
.site-search .form-control { min-height: 2.5rem; padding-left: 2.15rem; border-color: #d7e0e7; background: #f7f9fb; font-size: .88rem; }
.site-search .input-icon-addon { color: #486178; }
.site-header-actions { display: flex; flex: 0 0 auto; align-items: center; gap: .45rem; }
.site-header-actions .btn { min-height: 2.5rem; padding: .55rem .8rem; border-radius: .2rem; font-size: .85rem; font-weight: 700; white-space: nowrap; }
.site-header--home .site-brandbar { background: #fff; }

.home-hero { position: relative; overflow: hidden; background: var(--home-surface); }
.home-hero-layout { display: grid; min-height: var(--home-hero-min-height, 32rem); grid-template-columns: minmax(21rem, .78fr) minmax(0, 1.22fr); }
.home-hero-copy { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; justify-content: center; padding: 3.5rem clamp(2rem, 5vw, 5.5rem) 3.25rem max(2rem, calc((100vw - 1280px) / 2)); }
.home-eyebrow { margin: 0 0 1.25rem; color: var(--home-accent); font-size: .76rem; font-weight: 800; letter-spacing: .09em; line-height: 1.5; text-transform: uppercase; }
.home-hero h1 { max-width: 11.5ch; margin: 0 0 1.1rem; color: var(--home-ink); font-family: 'Plus Jakarta Sans', 'Geist', sans-serif; font-size: 3.5rem; font-weight: 800; line-height: 1.03; overflow-wrap: anywhere; }
.home-hero h1 span { color: var(--home-accent); }
.home-hero-lead { max-width: 34rem; margin: 0; color: #354c61; font-size: 1.08rem; line-height: 1.65; }
.home-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem 1rem; }
.home-primary-link { display: inline-flex; min-height: 3.15rem; align-items: center; gap: .75rem; margin-top: 1.55rem; padding: .75rem 1.1rem; background: var(--home-ink); color: #fff; font-weight: 700; text-decoration: none; transition: background-color .18s ease, gap .18s ease; }
.home-primary-link:hover { gap: 1rem; background: #1c466a; color: #fff; }
.home-secondary-link { display: inline-flex; min-height: 3rem; align-items: center; margin-top: 1.55rem; color: var(--home-ink); font-weight: 700; text-underline-offset: 4px; }
.home-secondary-link:hover { color: var(--home-accent); }
.home-primary-link:focus-visible,
.home-hero-controls button:focus-visible,
.home-quicklinks a:focus-visible { outline: 3px solid var(--home-accent); outline-offset: 3px; }
.home-hero-meta { display: flex; align-items: center; gap: .7rem; margin: auto 0 0; padding-top: 2.6rem; color: #425a70; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.home-hero-meta span { display: inline-block; width: 1.5rem; height: 2px; background: var(--home-accent); }
.home-hero-stats { display: flex; width: 100%; flex-wrap: wrap; gap: 1rem 1.4rem; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid #c7d5e0; }
.home-hero-stats > div { display: flex; min-width: 4.5rem; flex-direction: column; gap: .12rem; }
.home-hero-stats strong { color: var(--home-ink); font-size: 1.05rem; font-weight: 800; }
.home-hero-stats span { color: #425a70; font-size: .74rem; line-height: 1.4; }
.home-hero-stats .home-hero-accreditation { min-width: 8rem; max-width: 13rem; }
.home-hero-image { position: relative; min-width: 0; min-height: var(--home-hero-min-height, 32rem); background: #cfdeea; }
.home-hero-image img { display: block; width: 100%; height: 100%; min-height: var(--home-hero-min-height, 32rem); object-fit: cover; object-position: center; }
.home-hero-image.is-empty { display: grid; place-items: center; background: #cfdeea; }
.home-hero-image-placeholder { display: grid; width: 11rem; aspect-ratio: 1; place-items: center; border: 1px solid rgba(16, 43, 70, .25); color: var(--home-ink); font-family: 'Plus Jakarta Sans', sans-serif; font-size: 4rem; font-weight: 800; }
.home-hero-indicators { right: auto; bottom: 1.15rem; left: 3rem; justify-content: flex-start; gap: .4rem; margin: 0; }
.home-hero-indicators [data-bs-target] { width: 1.5rem; height: 3px; margin: 0; border: 0; background: #7890a4; opacity: .65; }
.home-hero-indicators .active { width: 2.5rem; background: var(--home-accent); opacity: 1; }
.home-hero-controls { position: absolute; z-index: 2; right: max(1.5rem, calc((100vw - 1280px) / 2)); bottom: 1.25rem; display: flex; gap: .45rem; }
.home-hero-controls button { display: grid; width: 2.75rem; aspect-ratio: 1; place-items: center; border: 1px solid rgba(255,255,255,.72); background: rgba(16,43,70,.88); color: #fff; font-size: 1.1rem; }

.home-quicklinks { background: #fff; border-bottom: 1px solid var(--home-rule); }
.home-quicklinks-inner { display: grid; min-height: 4.5rem; grid-template-columns: auto repeat(4, minmax(0, 1fr)); align-items: center; }
.home-quicklinks-label { padding-right: 1.5rem; color: var(--home-ink); font-size: .95rem; font-weight: 800; }
.home-quicklinks a { display: flex; min-width: 0; min-height: 2.75rem; align-items: center; justify-content: space-between; gap: .6rem; padding: .6rem 1rem; border-left: 1px solid var(--home-rule); color: #263d52; font-size: .9rem; font-weight: 650; text-decoration: none; }
.home-quicklinks a i { flex: 0 0 auto; color: var(--home-accent); font-size: 1.05rem; transition: transform .18s ease; }
.home-quicklinks a:hover { color: var(--home-accent); }
.home-quicklinks a:hover i { transform: translate(2px, -2px); }

.page-home .section { padding: 4.5rem 0; }
.page-home .section-title { color: var(--home-ink); font-family: 'Plus Jakarta Sans', 'Geist', sans-serif; font-size: 2rem; font-weight: 800; line-height: 1.15; }
.page-home .section-title::after { display: none; }
.page-home .eyebrow { color: var(--home-accent); font-size: .72rem; font-weight: 800; }
.page-home .section-subtitle { color: #43596c; }
.page-home .section-tint,
.page-home .home-pillars { background: #f3f6f8; }
.page-home .home-pillar-title { color: var(--home-ink); }
.page-home .home-about-image { border-radius: 0; }
.page-home .feature-icon { border-radius: .2rem; background: #e6eef4; color: var(--home-ink); }
.page-home .home-cta { border-top: 0; }
.page-home .home-posts .section-header { max-width: none; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .75rem 1.5rem; }
.page-home .home-posts .section-header .section-title { margin-bottom: 0; }
.page-home .home-posts .section-header .btn { color: var(--home-accent); font-weight: 700; }
.page-home .post-card { overflow: hidden; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.page-home .post-card .post-thumb { position: relative; overflow: hidden; background: #d9e4ec; }
.page-home .post-card .post-thumb img { transition: transform .35s ease; }
.page-home .post-card:hover .post-thumb img { transform: scale(1.025); }
.page-home .post-card .post-thumb img,
.page-home .post-card .post-thumb-ph { border-radius: 0; }
.page-home .post-card .card-body { padding: 1rem 0; }
.page-home .post-card .card-title { color: var(--home-ink); font-family: 'Plus Jakarta Sans', 'Geist', sans-serif; font-weight: 750; line-height: 1.32; }
.page-home .post-card .card-title a:hover { color: var(--home-accent); }
.page-home .post-card .post-cat { top: .75rem; left: .75rem; border-radius: 0; background: var(--home-accent) !important; }
.page-home .home-posts-lead .post-card { border-bottom: 1px solid var(--home-rule); }
.page-home .home-announcement-list { overflow: visible; border: 0; border-top: 1px solid var(--home-rule); border-radius: 0; background: transparent; box-shadow: none; }
.page-home .home-announcement-list .list-group-item { min-height: 5rem; gap: 1rem !important; padding: 1rem .25rem !important; border-color: var(--home-rule); background: transparent; }
.page-home .home-announcement-list .list-group-item > div:first-child { width: 3.25rem !important; }
.page-home .home-announcement-list .list-group-item > div:first-child .fw-bold { color: var(--home-accent) !important; font-size: 1.45rem !important; }
.page-home .home-announcement-list .list-group-item > div:nth-child(2) > div:first-child { color: var(--home-ink); font-weight: 700; }
.page-home .home-announcement-list .list-group-item:hover { background: #f3f6f8; }
.page-home a:not(.btn):focus-visible { outline: 3px solid var(--home-accent); outline-offset: 3px; }

@media (min-width: 1200px) {
  .site-brandbar .site-navbar-inner { min-height: 4.25rem; }
  .site-navmenu .site-search { margin-left: .55rem; }
}

@media (max-width: 1199.98px) {
  .site-navmenu .container-xl { flex-wrap: wrap; justify-content: space-between; }
  .site-menu-toggle { display: inline-flex; }
  .site-navmenu .navbar-collapse { flex: 0 0 100%; padding: .75rem 0 .35rem; border-top: 1px solid #e4e9ee; }
  .site-navmenu .navbar-nav { align-items: stretch; }
  .site-navmenu .nav-link { min-height: 2.75rem; padding: .7rem .2rem; }
  .site-navmenu .nav-item.active > .nav-link:not(.dropdown-toggle)::after { right: auto; bottom: .25rem; left: .2rem; width: 1.75rem; }
  .site-search { flex: 1 1 14rem; margin: .55rem 0; }
  .site-header-actions { flex-wrap: wrap; padding: .4rem 0; }
  .home-hero-layout { grid-template-columns: minmax(19rem, .85fr) minmax(0, 1.15fr); }
  .home-hero-copy { padding-left: 2rem; }
  .home-hero h1 { font-size: 3rem; }
}

@media (max-width: 767.98px) {
  .site-brandbar { padding: .35rem 0; }
  .site-brandbar .navbar-brand img { max-width: 12rem; height: 2.35rem; }
  .site-menu-toggle { min-width: 2.75rem; justify-content: center; padding: .35rem .55rem; }
  .site-menu-toggle span { font-size: .85rem; font-weight: 650; }
  .home-hero-layout { grid-template-columns: 1fr; }
  .home-hero-copy { min-height: 25rem; padding: 2.75rem 1.25rem 2rem; }
  .home-hero h1 { max-width: 12ch; font-size: 2.5rem; }
  .home-hero-lead { font-size: 1rem; }
  .home-hero-meta { padding-top: 1.65rem; }
  .home-hero-stats { gap: .75rem 1rem; }
  .home-hero-stats .home-hero-accreditation { flex: 1 1 100%; max-width: none; }
  .home-hero-image,
  .home-hero-image img { min-height: 0; aspect-ratio: 4 / 3; }
  .home-hero-indicators { bottom: .8rem; left: 1.25rem; }
  .home-hero-controls { right: 1rem; bottom: .75rem; }
  .home-hero-controls button { width: 2.75rem; }
  .home-quicklinks-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: .65rem; padding-bottom: .65rem; }
  .home-quicklinks-label { grid-column: 1 / -1; padding: .4rem 0; }
  .home-quicklinks a { min-height: 2.9rem; padding: .6rem .6rem; font-size: .84rem; }
  .home-quicklinks a:nth-of-type(odd) { border-left: 0; }
  .page-home .section { padding: 3rem 0; }
  .page-home .section-title { font-size: 1.7rem; }
  .page-home .home-posts .section-header { align-items: flex-start; }
}

@media (max-width: 359.98px) {
  .home-hero h1 { font-size: 2.2rem; }
  .home-quicklinks a { font-size: .78rem; }
}

@media (prefers-reduced-motion: reduce) {
  .home-primary-link,
  .home-secondary-link,
  .home-quicklinks a i,
  .page-home .post-card .post-thumb img { transition: none; }
  .page-home .post-card:hover .post-thumb img { transform: none; }
}
