/*
Theme Name: HAFAS
Theme URI: https://stit-hafas.ac.id/
Author: STIT Hamzah Fansuri
Description: Tema khusus STIT Hamzah Fansuri Kota Subulussalam. Hijau-emas bernuansa islami, beranda terisi otomatis dari postingan, pengaturan lewat Tampilan > Sesuaikan.
Version: 1.15.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: hafas
*/

:root {
  --green-950: #05201a;
  --green-900: #0a3327;
  --green-700: #0f5a43;
  --green-500: #1c8a66;
  --gold-600: #b98a2c;
  --gold-400: #d9b25a;
  --gold-200: #f3dfa6;

  --bg: #faf7ee;
  --bg-alt: #f2ecdc;
  --card: #ffffff;
  --ink: #13251e;
  --muted: #5a6b63;
  --line: rgba(15, 90, 67, .14);
  --accent: var(--green-700);
  --accent-2: var(--gold-600);
  --shadow: 0 18px 40px -22px rgba(5, 32, 26, .35);

  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72' fill='none' stroke='%23d9b25a' stroke-width='1'%3E%3Cpath d='M36 12 60 36 36 60 12 36Z'/%3E%3Cpath d='M19 19H53V53H19Z'/%3E%3Ccircle cx='36' cy='36' r='7'/%3E%3Cpath d='M0 36H12M60 36H72M36 0V12M36 60V72'/%3E%3C/svg%3E");
  --radius: 22px;
  --wrap: 1160px;
}
:root[data-theme="dark"] {
  --bg: #061b15;
  --bg-alt: #082219;
  --card: #0c2c22;
  --ink: #eef4ee;
  --muted: #a5b8ae;
  --line: rgba(217, 178, 90, .18);
  --accent: #4fc79c;
  --accent-2: var(--gold-400);
  --shadow: 0 18px 40px -22px rgba(0, 0, 0, .7);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: "El Messiri", "Plus Jakarta Sans", sans-serif; line-height: 1.12; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold-400); color: #1b1503; padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 3px; border-radius: 6px; }

/* ---------- progress + nav ---------- */
.progress { position: fixed; inset: 0 auto auto 0; height: 3px; width: 0; z-index: 60; background: linear-gradient(90deg, var(--green-500), var(--gold-400)); }
.nav {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  z-index: 50; width: min(1140px, 100% - 24px);
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px 8px 14px;
  background: rgba(7, 40, 31, .78);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(217, 178, 90, .28);
  border-radius: 999px;
  box-shadow: 0 14px 34px -18px rgba(0, 0, 0, .6);
  color: #eef4ee;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: "El Messiri", sans-serif; font-weight: 700; font-size: 1.1rem; white-space: nowrap; }
.brand img { width: 36px; height: 36px; }
.nav-menu { display: flex; gap: 2px; margin-left: auto; }
.nav-menu a { padding: 8px 14px; border-radius: 999px; font-size: .92rem; font-weight: 500; color: rgba(238, 244, 238, .82); transition: background .2s, color .2s; }
.nav-menu a:hover, .nav-menu a.active { background: rgba(217, 178, 90, .16); color: #fff; }
.icon-btn { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(217, 178, 90, .28); background: rgba(255, 255, 255, .06); color: var(--gold-200); cursor: pointer; }
.icon-btn svg { width: 18px; height: 18px; }
.menu-btn { display: none; }
:root[data-theme="dark"] .i-moon, :root:not([data-theme="dark"]) .i-sun { display: none; }

.btn { display: inline-flex; align-items: center; gap: 9px; padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: .95rem; border: 1px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; }
.btn-gold { background: linear-gradient(135deg, var(--gold-200), var(--gold-400) 55%, var(--gold-600)); color: #201703; box-shadow: 0 12px 26px -12px rgba(217, 178, 90, .7); }
.btn-ghost { border-color: rgba(243, 223, 166, .4); color: #f6f1e0; background: rgba(255, 255, 255, .05); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.btn-line { border-color: var(--line); color: var(--accent); background: transparent; }
.btn-line:hover { background: var(--card); }
.nav .btn { padding: 10px 18px; font-size: .9rem; }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate; color: #f3f6f1;
  padding: 150px 0 150px;
  background:
    radial-gradient(60% 55% at 85% 20%, rgba(217, 178, 90, .30), transparent 70%),
    radial-gradient(50% 60% at 5% 90%, rgba(28, 138, 102, .45), transparent 70%),
    linear-gradient(160deg, var(--green-950), var(--green-900) 55%, #0c4433);
}
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--pattern); opacity: .13; -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent); mask-image: linear-gradient(180deg, #000 30%, transparent); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.basmalah { font-family: "Amiri", serif; font-size: 1.7rem; color: var(--gold-200); line-height: 1.6; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); }
.eyebrow::before { content: ""; width: 9px; height: 9px; background: currentColor; transform: rotate(45deg); }
.hero .eyebrow { color: var(--gold-400); margin-top: 6px; }
.hero h1 { font-size: clamp(2.7rem, 6.4vw, 5.1rem); font-weight: 700; margin: 18px 0 20px; }
.grad { background: linear-gradient(100deg, var(--gold-200), var(--gold-400) 45%, #7fd9b4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.08rem; color: rgba(243, 246, 241, .8); max-width: 34rem; }
.typed-line { margin-top: 16px; font-weight: 600; font-size: 1.08rem; min-height: 1.7em; }
.typed { color: var(--gold-200); border-right: 2px solid var(--gold-400); padding-right: 3px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.arch-stage { position: relative; width: min(400px, 100%); margin-inline: auto; }
.arch { position: relative; aspect-ratio: 4 / 5; border-radius: 999px 999px 26px 26px; overflow: hidden; border: 1px solid rgba(243, 223, 166, .5); box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .75); }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(5, 32, 26, .7)); }
.arch-ring { position: absolute; inset: -16px; border-radius: 999px 999px 40px 40px; border: 1px solid rgba(217, 178, 90, .35); pointer-events: none; }
.badge { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 18px; background: rgba(8, 44, 34, .8); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid rgba(217, 178, 90, .35); font-size: .84rem; font-weight: 600; line-height: 1.3; box-shadow: 0 16px 30px -16px rgba(0, 0, 0, .7); animation: float 6s ease-in-out infinite; }
.badge small { display: block; font-weight: 500; color: rgba(243, 246, 241, .7); font-size: .74rem; }
.badge b { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(135deg, var(--gold-200), var(--gold-600)); color: #201703; font-family: "El Messiri", sans-serif; font-size: .9rem; }
.badge-1 { top: 16%; left: -70px; }
.badge-2 { top: 50%; right: -64px; animation-delay: -2s; }
.badge-3 { bottom: 7%; left: -40px; animation-delay: -4s; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- quick access ---------- */
.quick { position: relative; z-index: 2; margin-top: -78px; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.quick a { display: flex; align-items: center; gap: 14px; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .25s, border-color .25s; }
.quick a:hover { transform: translateY(-5px); border-color: var(--gold-400); }
.quick .ico { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(135deg, var(--green-700), var(--green-500)); color: var(--gold-200); }
.quick .ico svg { width: 22px; height: 22px; }
.quick strong { display: block; font-size: 1rem; }
.quick span { font-size: .84rem; color: var(--muted); }

/* ---------- sections ---------- */
section { padding: 92px 0; }
.head { max-width: 42rem; margin-bottom: 44px; }
.head h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 12px 0 14px; }
.head p { color: var(--muted); }
.head.center { margin-inline: auto; text-align: center; }

.marquee { padding: 34px 0 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: slide 38s linear infinite; }
.marquee span { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: .88rem; font-weight: 500; color: var(--muted); white-space: nowrap; }
.marquee span::before { content: "✦"; color: var(--accent-2); margin-right: 9px; }
@keyframes slide { to { transform: translateX(-50%); } }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-grid p + p { margin-top: 14px; }
.about-grid p { color: var(--muted); }
.ayat { margin-top: 26px; padding: 22px 24px; border-radius: var(--radius); background: var(--bg-alt); border: 1px solid var(--line); }
.ayat .ar { font-family: "Amiri", serif; font-size: 1.6rem; line-height: 2; direction: rtl; text-align: right; color: var(--accent); }
.ayat p { font-size: .92rem; margin-top: 8px; }
.ayat cite { font-style: normal; font-weight: 600; color: var(--accent-2); }
.stats { display: grid; gap: 16px; }
.stat { display: flex; align-items: baseline; gap: 20px; padding: 24px 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.stat b { font-family: "El Messiri", sans-serif; font-size: 3rem; line-height: 1; min-width: 2.6ch; color: var(--accent); font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: .95rem; }
.stat strong { display: block; color: var(--ink); font-size: 1.02rem; }

.alt { background: var(--bg-alt); }
.prodi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.prodi { position: relative; overflow: hidden; padding: 34px; border-radius: 28px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .25s, border-color .25s; }
.prodi:hover { transform: translateY(-6px); border-color: var(--gold-400); }
.prodi::after { content: ""; position: absolute; right: -40px; top: -40px; width: 200px; height: 200px; background: var(--pattern); opacity: .35; -webkit-mask-image: radial-gradient(circle, #000 20%, transparent 70%); mask-image: radial-gradient(circle, #000 20%, transparent 70%); }
.prodi .tag { display: inline-block; padding: 5px 13px; border-radius: 999px; background: rgba(217, 178, 90, .18); color: var(--accent-2); font-size: .76rem; font-weight: 700; letter-spacing: .08em; }
.prodi h3 { font-size: 1.7rem; margin: 16px 0 10px; }
.prodi p { color: var(--muted); }
.prodi ul { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.prodi li a { display: inline-flex; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: .88rem; font-weight: 600; color: var(--accent); }
.prodi li a:hover { background: var(--bg-alt); }

.syair { position: relative; isolation: isolate; text-align: center; color: #f3f6f1; background: linear-gradient(150deg, var(--green-950), var(--green-900) 60%, #0e4a38); }
.syair::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--pattern); opacity: .12; }
.syair .eyebrow { color: var(--gold-400); }
.syair blockquote { margin: 26px auto 0; max-width: 46rem; font-family: "El Messiri", sans-serif; font-size: clamp(1.4rem, 3vw, 2.1rem); line-height: 1.55; }
.syair blockquote em { font-style: normal; color: var(--gold-200); }
.syair footer { margin-top: 22px; color: rgba(243, 246, 241, .7); font-size: .95rem; }

.news-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; }
.news-main { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 440px; padding: 30px; border-radius: 28px; overflow: hidden; color: #fff; box-shadow: var(--shadow); }
.news-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s; }
.news-main::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5, 32, 26, .05) 25%, rgba(5, 32, 26, .93)); }
.news-main:hover img { transform: scale(1.05); }
.news-main h3 { font-size: 1.65rem; margin-top: 10px; }
.date { font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-2); }
.news-main .date { color: var(--gold-200); }
.news-list { display: grid; gap: 16px; }
.news-item { display: grid; grid-template-columns: 118px 1fr; gap: 16px; align-items: center; padding: 12px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); transition: transform .25s, border-color .25s; }
.news-item:hover { transform: translateX(6px); border-color: var(--gold-400); }
.news-item img { width: 118px; height: 92px; object-fit: cover; border-radius: 13px; }
.news-item h3 { font-family: "Plus Jakarta Sans", sans-serif; font-size: .98rem; font-weight: 600; line-height: 1.4; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.more { margin-top: 30px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.step { position: relative; padding: 28px 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); counter-increment: s; }
.step::before { content: counter(s, decimal-leading-zero); display: block; font-family: "El Messiri", sans-serif; font-size: 2.3rem; line-height: 1; color: var(--accent-2); margin-bottom: 14px; }
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .93rem; }
.pmb-cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.pmb-cta .btn-ghost { color: var(--accent); border-color: var(--line); background: var(--card); }

.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; align-items: stretch; }
.contact-card { padding: 34px; border-radius: 28px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.contact-card h2 { font-size: 2rem; margin: 12px 0 22px; }
.contact-card dl { margin: 0; display: grid; gap: 18px; }
.contact-card dt { font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); }
.contact-card dd { margin: 3px 0 0; font-weight: 500; }
.contact-card dd a:hover { color: var(--accent); text-decoration: underline; }
.map { min-height: 380px; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

.site-footer { background: var(--green-950); color: rgba(243, 246, 241, .75); padding: 56px 0 28px; position: relative; isolation: isolate; }
.site-footer::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--pattern); opacity: .07; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer .brand { color: #fff; font-size: 1.3rem; margin-bottom: 14px; }
.site-footer h3 { font-size: 1.05rem; color: var(--gold-200); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: .93rem; }
.site-footer a:hover { color: var(--gold-200); }
.copy { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(217, 178, 90, .2); font-size: .86rem; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }

.wa { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #1faa59; color: #fff; box-shadow: 0 14px 28px -10px rgba(31, 170, 89, .8); }
.wa svg { width: 28px; height: 28px; }

/* ---------- reveal (isi tetap tampil tanpa JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .badge-1 { left: -20px; } .badge-2 { right: -16px; } .badge-3 { left: -10px; }
}
@media (max-width: 1100px) {
  .menu-btn { display: grid; }
  .nav-menu { position: absolute; top: calc(100% + 10px); left: 0; right: 0; flex-direction: column; gap: 2px; padding: 10px; background: rgba(7, 40, 31, .97); border: 1px solid rgba(217, 178, 90, .28); border-radius: 22px; display: none; }
  .nav.open .nav-menu { display: flex; }
  .nav-menu a { padding: 12px 16px; }
  .nav .theme { margin-left: auto; }
  .hero { padding: 124px 0 130px; }
  .hero-grid, .about-grid, .news-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .arch-stage { width: min(320px, 78%); }
  .quick-grid, .steps { grid-template-columns: 1fr 1fr; }
  .prodi-grid, .foot-grid { grid-template-columns: 1fr; }
  section { padding: 68px 0; }
}
@media (max-width: 560px) {
  .nav .btn { display: none; }
  .quick-grid, .steps { grid-template-columns: 1fr; }
  .badge { font-size: .76rem; padding: 8px 12px 8px 8px; }
  .badge b { width: 32px; height: 32px; }
  .news-main { min-height: 360px; padding: 22px; }
  .news-item { grid-template-columns: 92px 1fr; }
  .news-item img { width: 92px; height: 78px; }
  .stat b { font-size: 2.4rem; }
  .prodi, .contact-card { padding: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .badge, .marquee-track { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .quick a:hover, .prodi:hover, .news-item:hover { transform: none; }
}

/* ================= Tambahan untuk WordPress ================= */

.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.admin-bar .nav { top: 48px; }
@media (max-width: 782px) { body.admin-bar .nav { top: 62px; } }
.basmalah { text-align: left; margin-bottom: 4px; }
.head-tight { margin-bottom: 20px; }
.about-more { margin-top: 24px; }

/* ---------- menu utama + dropdown ---------- */
.nav-main { margin-left: auto; }
.nav-menu, .nav-menu ul { list-style: none; margin: 0; padding: 0; }
.nav-menu { margin-left: 0; }
.nav-menu li { position: relative; }
.nav-menu a { display: block; }
.nav-menu .current-menu-item > a, .nav-menu .current-menu-ancestor > a { background: rgba(217, 178, 90, .16); color: #fff; }
.nav-menu .menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); opacity: .7; }
.nav-menu .sub-menu { position: absolute; top: calc(100% + 10px); left: 0; z-index: 5; min-width: 250px; padding: 8px; background: rgba(7, 40, 31, .97); border: 1px solid rgba(217, 178, 90, .28); border-radius: 18px; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .7); display: none; }
.nav-menu .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-menu li:hover > .sub-menu, .nav-menu li:focus-within > .sub-menu { display: block; }
.nav-menu .sub-menu a { border-radius: 12px; padding: 9px 14px; white-space: normal; }
.nav-menu .sub-menu .sub-menu { top: -8px; left: calc(100% + 4px); }
.nav-menu .sub-menu .sub-menu::before { top: 0; bottom: 0; left: -12px; right: auto; width: 12px; height: auto; }
.nav-menu .sub-menu .menu-item-has-children > a::after { transform: translateY(-1px) rotate(-45deg); float: right; margin-top: 9px; }

@media (max-width: 1100px) {
  .nav-menu { max-height: calc(100vh - 120px); overflow-y: auto; }
  .nav-menu .sub-menu, .nav-menu .sub-menu .sub-menu { position: static; display: block; min-width: 0; padding: 0 0 4px 14px; background: none; border: 0; border-radius: 0; box-shadow: none; }
  .nav-menu .sub-menu::before { display: none; }
  .nav-menu .sub-menu a { padding: 9px 16px; font-size: .88rem; }
  .nav-menu .menu-item-has-children > a::after { display: none; }
}

/* ---------- gambar pengganti bila postingan tanpa gambar ---------- */
.thumb-empty { display: block; background: linear-gradient(135deg, var(--green-900), var(--green-700)); position: relative; overflow: hidden; }
.thumb-empty::after { content: ""; position: absolute; inset: 0; background: var(--pattern); opacity: .3; }
.news-main .thumb-empty { position: absolute; inset: 0; z-index: -2; }
.news-item .thumb-empty { width: 118px; height: 92px; border-radius: 13px; }

/* ---------- kepala halaman dalam ---------- */
.page-head { position: relative; isolation: isolate; color: #f3f6f1; padding: 150px 0 64px; background: radial-gradient(55% 80% at 90% 0%, rgba(217, 178, 90, .26), transparent 70%), linear-gradient(160deg, var(--green-950), var(--green-900) 60%, #0c4433); }
.page-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--pattern); opacity: .12; }
.page-head .eyebrow { color: var(--gold-400); }
.page-head h1 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); margin-top: 12px; overflow-wrap: anywhere; }
.narrow { width: min(800px, 100% - 40px); }
.post-cats { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.post-cats a { padding: 5px 13px; border-radius: 999px; border: 1px solid rgba(243, 223, 166, .35); font-size: .8rem; font-weight: 600; color: var(--gold-200); }
.post-cats a:hover { background: rgba(255, 255, 255, .08); }

/* ---------- isi tulisan ---------- */
.entry { padding: 56px 0 84px; }
.entry-cover { margin: 0 0 36px; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
.entry-cover img { width: 100%; height: auto; }
.prose { font-size: 1.06rem; line-height: 1.8; overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.15em; }
.prose h2, .prose h3, .prose h4 { margin-top: 1.8em; line-height: 1.25; }
.prose h2 { font-size: 1.7rem; } .prose h3 { font-size: 1.35rem; } .prose h4 { font-size: 1.15rem; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose img { height: auto; border-radius: 14px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .4em; }
/* Teks isi rata kiri-kanan di laptop/komputer (HP dan tablet tetap rata kiri);
   paragraf yang sengaja diratakan tengah/kanan dan isi tabel tetap dihormati. */
@media (min-width: 1024px) {
  .prose p:not([class*="has-text-align"]):not([style*="text-align"]), .prose li, .prose blockquote { text-align: justify; text-justify: inter-word; hyphens: auto; -webkit-hyphens: auto; }
  .prose :is(td, th) p:not([class*="has-text-align"]):not([style*="text-align"]), .prose :is(td, th) li { text-align: inherit; hyphens: manual; }
}
.prose blockquote { margin-inline: 0; padding: 18px 24px; border-left: 4px solid var(--gold-400); background: var(--bg-alt); border-radius: 0 16px 16px 0; }
.prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { padding: 9px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose iframe, .prose video { max-width: 100%; }
.prose .aligncenter { display: block; margin-inline: auto; }
.prose .alignleft { float: left; margin: 6px 24px 12px 0; }
.prose .alignright { float: right; margin: 6px 0 12px 24px; }
.prose .wp-caption { max-width: 100%; }
.prose .wp-caption-text, .prose figcaption { font-size: .86rem; color: var(--muted); text-align: center; margin-top: 8px; }
.prose::after { content: ""; display: block; clear: both; }

/* ---------- kartu + arsip ---------- */
.listing { padding: 64px 0 92px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s, border-color .25s; }
.card:hover { transform: translateY(-5px); border-color: var(--gold-400); }
.card-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-alt); }
.card-img img, .card-img .thumb-empty { width: 100%; height: 100%; object-fit: cover; }
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 24px; }
.card-body strong { font-size: 1.04rem; line-height: 1.4; }
.card-text { font-size: .9rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.related { padding: 72px 0; }
.related .more-link { margin-top: 30px; text-align: center; }
.empty { max-width: 34rem; display: grid; gap: 18px; color: var(--muted); }

.pagination { margin-top: 44px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pagination .page-numbers { min-width: 44px; padding: 10px 16px; text-align: center; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-weight: 600; font-size: .92rem; }
.pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.pagination a.page-numbers:hover { border-color: var(--gold-400); }

/* ---------- pengumuman ---------- */
.notices { padding-top: 0; }
.notice-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.notice-list a { display: grid; grid-template-columns: 74px 1fr; gap: 18px; align-items: center; padding: 16px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); height: 100%; }
.notice-list a:hover { border-color: var(--gold-400); }
.notice-date { display: grid; place-items: center; padding: 10px 6px; border-radius: 14px; background: linear-gradient(135deg, var(--green-700), var(--green-500)); color: var(--gold-200); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.notice-date b { font-family: "El Messiri", sans-serif; font-size: 1.7rem; line-height: 1; color: #fff; }
.notice-list strong { display: block; line-height: 1.4; margin-bottom: 4px; }
.notice-list a > span:last-child { font-size: .88rem; color: var(--muted); }

/* ---------- form cari ---------- */
.search-form { display: flex; gap: 8px; max-width: 420px; }
.search-form label { flex: 1; }
.search-field { width: 100%; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; }
.search-submit { padding: 12px 20px; border-radius: 999px; border: 0; background: var(--accent); color: var(--bg); font: inherit; font-weight: 600; cursor: pointer; }
.site-footer .search-form { margin-top: 20px; }
.site-footer .search-field { background: rgba(255, 255, 255, .06); border-color: rgba(217, 178, 90, .25); color: #fff; }
.site-footer .search-field::placeholder { color: rgba(243, 246, 241, .5); }
.site-footer .search-submit { background: var(--gold-400); color: #201703; }

@media (max-width: 1100px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .notice-list { grid-template-columns: 1fr; }
  .page-head { padding: 124px 0 48px; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .news-item .thumb-empty { width: 92px; height: 78px; }
  .prose .alignleft, .prose .alignright { float: none; margin: 0 0 12px; }
}

/* menu utama: satu baris, panah di samping teks */
.nav-menu > li > a { white-space: nowrap; padding: 8px 12px; font-size: .9rem; }
@media (max-width: 1100px) { .nav-menu > li > a { white-space: normal; padding: 12px 16px; font-size: .95rem; } }
/* footer: nama kampus panjang boleh turun baris agar tidak melebar di HP */
.site-footer .brand { white-space: normal; align-items: flex-start; line-height: 1.3; }
.foot-grid > * { min-width: 0; }
/* ================= v1.1: pimpinan, akreditasi, PMB, kampus, dosen ================= */

/* ---------- pimpinan ---------- */
.leader { padding-top: 0; }
.leader-grid { display: grid; grid-template-columns: 320px 1fr; gap: 56px; align-items: center; }
.leader-photo { margin: 0; position: relative; border-radius: 999px 999px 26px 26px; overflow: hidden; background: linear-gradient(170deg, #fbf3d9, #ecd9a0); border: 1px solid rgba(185, 138, 44, .45); box-shadow: var(--shadow); }
.leader-photo::before { content: ""; position: absolute; inset: 0; background: var(--pattern); opacity: .35; }
.leader-photo img { position: relative; width: 100%; height: auto; mix-blend-mode: multiply; }
.leader h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin: 12px 0 6px; }
.leader-role { color: var(--accent-2); font-weight: 600; }
.leader-message { margin-top: 20px; color: var(--muted); max-width: 44rem; }
.leader-message p + p { margin-top: 14px; }
.leader-links { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; }
.leader-compact { grid-template-columns: 240px 1fr; max-width: 820px; }

/* ---------- lencana akreditasi ---------- */
.akred { display: flex; align-items: center; gap: 16px; margin-top: 20px; padding: 14px 16px; border-radius: 18px; background: var(--bg-alt); border: 1px solid var(--line); position: relative; z-index: 1; }
.akred-rank { flex: none; display: grid; place-items: center; min-width: 86px; padding: 10px 14px; border-radius: 14px; background: linear-gradient(135deg, var(--gold-200), var(--gold-400) 55%, var(--gold-600)); color: #201703; font-family: "El Messiri", sans-serif; font-weight: 700; font-size: 1.45rem; line-height: 1.1; }
.akred-rank small { font-family: "Plus Jakarta Sans", sans-serif; font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.akred-meta { display: grid; gap: 2px; font-size: .9rem; color: var(--muted); }
.akred-meta strong { color: var(--ink); }
.akred-meta small { font-size: .76rem; overflow-wrap: anywhere; }
.akred-meta a { color: var(--accent); font-weight: 600; text-decoration: underline; }
.prodi ul { position: relative; z-index: 1; }

/* ---------- kehidupan kampus ---------- */
.campus-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.chip-box { padding: 30px; border-radius: 28px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.chip-box h3 { font-size: 1.35rem; margin-bottom: 18px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 9px 16px; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--line); font-size: .92rem; font-weight: 500; }
.chips li::before { content: "✦"; color: var(--accent-2); margin-right: 8px; }

/* ---------- PMB ---------- */
.waves { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.wave { display: grid; gap: 8px; padding: 26px 28px; border-radius: var(--radius); color: #f3f6f1; background: linear-gradient(150deg, var(--green-900), var(--green-700)); border: 1px solid rgba(217, 178, 90, .3); position: relative; overflow: hidden; }
.wave::after { content: ""; position: absolute; right: -30px; top: -30px; width: 170px; height: 170px; background: var(--pattern); opacity: .3; }
.wave .tag { justify-self: start; padding: 5px 13px; border-radius: 999px; background: rgba(217, 178, 90, .2); color: var(--gold-200); font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.wave strong { font-family: "El Messiri", sans-serif; font-size: 1.5rem; line-height: 1.25; }
.wave > span:last-child { color: rgba(243, 246, 241, .8); font-size: .95rem; }
.pmb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.panel { padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); min-width: 0; }
.panel-wide { grid-column: 1 / -1; }
.panel h3 { font-size: 1.3rem; margin-bottom: 16px; }
.table-wrap { overflow-x: auto; }
.fee-table { width: 100%; border-collapse: collapse; font-size: .95rem; font-variant-numeric: tabular-nums; }
.fee-table th, .fee-table td { padding: 12px 14px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.fee-table th:first-child { text-align: left; }
.fee-table thead th { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-2); }
.fee-table tbody th { font-weight: 600; }
.fee-table tbody tr:last-child > * { border-bottom: 0; }
.note { margin-top: 14px; font-size: .86rem; color: var(--muted); }
.rows, .ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rows li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.rows li:last-child { padding-bottom: 0; border-bottom: 0; }
.rows span { color: var(--muted); }
.rows a { color: var(--accent); font-weight: 600; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 10px; height: 10px; background: var(--accent-2); transform: rotate(45deg); border-radius: 2px; }

/* ---------- footer: media sosial ---------- */
.socials { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.socials a { padding: 7px 15px; border-radius: 999px; border: 1px solid rgba(217, 178, 90, .3); font-size: .86rem; font-weight: 600; color: var(--gold-200); }
.socials a:hover { background: rgba(255, 255, 255, .08); }

/* ---------- direktori dosen ---------- */
.dosen-group + .dosen-group { margin-top: 72px; }
.senat-intro { margin-top: 0; }
.prose + .senat-intro { margin-top: 1.15em; }
.senat-members { margin-top: 56px; }
.senat-members h2 { font-size: 1.7rem; margin-bottom: 26px; }
.senat-members .dosen-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
@media (max-width: 600px) { .senat-members .dosen-grid { grid-template-columns: 1fr 1fr; gap: 16px; } }
.senat-source { margin-top: 40px; font-size: .9rem; color: var(--muted); }
.senat-source a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.dosen-group .head { margin-bottom: 30px; }
.dosen-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 22px; }
.dosen { text-align: center; }
.dosen-photo { display: block; aspect-ratio: 4 / 5; border-radius: 999px 999px 20px 20px; overflow: hidden; background: linear-gradient(160deg, var(--green-700), var(--green-950)); border: 1px solid var(--line); box-shadow: var(--shadow); }
.dosen-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.dosen-initial { display: grid; place-items: center; width: 100%; height: 100%; font-family: "El Messiri", sans-serif; font-size: 4rem; color: var(--gold-200); }
.dosen h3 { font-family: "Plus Jakarta Sans", sans-serif; font-size: 1rem; font-weight: 600; line-height: 1.35; margin-top: 14px; }
.dosen p { font-size: .86rem; color: var(--muted); margin-top: 4px; }

@media (max-width: 1100px) {
  .leader-grid, .leader-compact { grid-template-columns: 1fr; gap: 28px; }
  .leader-photo { width: min(260px, 70%); }
  .campus-grid, .pmb-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .waves { grid-template-columns: 1fr; }
  .panel, .chip-box { padding: 22px; }
  .akred { flex-direction: column; align-items: flex-start; }
  .dosen-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
}
@media (max-width: 560px) {
  .fee-table { font-size: .84rem; }
  .fee-table th, .fee-table td { padding: 10px 7px; }
  .fee-table thead th { font-size: .68rem; }
}

/* lencana akreditasi institusi di kolom angka */
.stats .akred { margin-top: 0; padding: 20px 24px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }

/* ================= v1.2: halaman prodi ================= */
.prodi-strip { margin-bottom: 36px; display: grid; gap: 4px; }
.prodi-strip .akred { margin-top: 0; }
.prodi-strip .leader-links { margin-top: 16px; }
.prodi li a.is-main { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.prose table.kurikulum { display: table; width: 100%; }
.prose table.kurikulum th { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-2); background: var(--bg-alt); }
.prose table.kurikulum td:first-child, .prose table.kurikulum th:first-child { width: 3.2em; text-align: center; color: var(--muted); }
.prose table.kurikulum td:last-child, .prose table.kurikulum th:last-child { width: 4.5em; text-align: center; font-variant-numeric: tabular-nums; }
.prose table.kurikulum tr:last-child td { background: var(--bg-alt); }
.prose blockquote p { font-family: "El Messiri", sans-serif; font-size: 1.3rem; line-height: 1.5; color: var(--ink); }
.brand { flex: none; }

/* ================= v1.3: agenda, prestasi, galeri, dokumen ================= */
.head-spaced { margin-top: 72px; }
.notice-list.is-past { opacity: .75; }
.notices + .notices { padding-top: 0; }
.notices .more { margin-top: 26px; }

/* ---------- galeri ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; gap: 14px; }
.gallery a { position: relative; display: block; overflow: hidden; border-radius: 20px; background: var(--bg-alt); }
.gallery a:nth-child(1), .gallery a:nth-child(6) { grid-column: span 2; grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gallery a:hover img, .gallery a:focus-visible img { transform: scale(1.06); }
.gallery span { position: absolute; inset: auto 0 0 0; padding: 40px 16px 14px; color: #fff; font-size: .86rem; font-weight: 600; line-height: 1.35; background: linear-gradient(180deg, transparent, rgba(5, 32, 26, .9)); opacity: 0; transition: opacity .3s; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.gallery a:hover span, .gallery a:focus-visible span { opacity: 1; }

/* ---------- dokumen ---------- */
.doc-group + .doc-group { margin-top: 64px; }
.doc-group .head { margin-bottom: 26px; }
.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.doc-list li { display: flex; align-items: center; gap: 18px; padding: 18px 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.doc-type { flex: none; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px; background: linear-gradient(135deg, var(--green-700), var(--green-500)); color: var(--gold-200); font-size: .74rem; font-weight: 700; letter-spacing: .06em; }
.doc-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.doc-text strong { line-height: 1.4; }
.doc-text span { font-size: .9rem; color: var(--muted); }

/* ---------- footer: tautan cepat ---------- */
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }

@media (max-width: 1100px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .gallery span { opacity: 1; }
}
@media (max-width: 560px) {
  .gallery { grid-auto-rows: 130px; gap: 10px; }
  .gallery span { display: none; }
  .doc-list li { flex-wrap: wrap; }
  .doc-list .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .gallery a:hover img { transform: none; } }
.notice-date { white-space: nowrap; font-size: .66rem; letter-spacing: .04em; }

/* ---------- v1.3.1: halaman prestasi ---------- */
.more { display: flex; flex-wrap: wrap; gap: 10px; }
.prose table.prestasi td:first-child, .prose table.prestasi th:first-child { width: 4.6em; }
.prose table.prestasi td:last-child, .prose table.prestasi th:last-child { width: auto; text-align: left; white-space: nowrap; }
.prose table.prestasi tr:last-child td { background: none; }
@media (max-width: 560px) { .prose table.prestasi { display: block; font-size: .88rem; } .prose table.prestasi td:last-child { white-space: normal; } }
/* ---------- v1.3.2: wakil ketua ---------- */
.deputies { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.deputies li { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.deputy-photo { flex: none; width: 76px; height: 76px; border-radius: 50%; overflow: hidden; background: linear-gradient(160deg, var(--green-700), var(--green-950)); border: 2px solid var(--gold-400); }
.deputy-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.deputy-photo .dosen-initial { font-size: 1.8rem; }
.deputies li > span:last-child { display: grid; gap: 3px; font-size: .86rem; line-height: 1.4; color: var(--muted); min-width: 0; }
.deputies strong { font-size: 1rem; color: var(--ink); }
@media (max-width: 1100px) { .deputies { grid-template-columns: 1fr; margin-top: 32px; } }
/* ================= v1.4: sorotan prestasi, menu induk ================= */
.nav-menu a[href="#"] { cursor: default; }
.awards { list-style: none; margin: 0 0 30px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.awards li { display: grid; align-content: start; gap: 8px; padding: 26px 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.awards li::after { content: ""; position: absolute; right: -34px; top: -34px; width: 150px; height: 150px; background: var(--pattern); opacity: .3; -webkit-mask-image: radial-gradient(circle, #000 20%, transparent 70%); mask-image: radial-gradient(circle, #000 20%, transparent 70%); }
.award-rank { justify-self: start; padding: 6px 16px; border-radius: 999px; background: linear-gradient(135deg, var(--gold-200), var(--gold-400) 55%, var(--gold-600)); color: #201703; font-family: "El Messiri", sans-serif; font-weight: 700; font-size: 1.1rem; line-height: 1.3; position: relative; z-index: 1; }
.awards strong { font-size: 1rem; line-height: 1.4; margin-top: 6px; }
.awards li > span:last-child { font-size: .9rem; color: var(--muted); }
@media (max-width: 1100px) { .awards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .awards { grid-template-columns: 1fr; } .awards li { padding: 20px; } }
/* panah submenu tingkat dua sejajar dengan teksnya */
.nav-menu .sub-menu .menu-item-has-children > a { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nav-menu .sub-menu .menu-item-has-children > a::after { float: none; margin: 0; flex: none; transform: rotate(-45deg); }
/* ================= v1.5: video, tanya-jawab PMB ================= */
.video-section { position: relative; isolation: isolate; color: #f3f6f1; background: linear-gradient(150deg, var(--green-950), var(--green-900) 60%, #0e4a38); }
.video-section::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--pattern); opacity: .1; }
.video-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.video-section .eyebrow { color: var(--gold-400); }
.video-section h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 12px 0 14px; }
.video-section p { color: rgba(243, 246, 241, .8); }
.video-more { margin-top: 26px; }
.video { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 1px solid rgba(243, 223, 166, .45); border-radius: 26px; overflow: hidden; background: #000; box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .75); }
.video img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s, opacity .3s; opacity: .85; }
.video:hover img, .video:focus-visible img { transform: scale(1.04); opacity: 1; }
.video-play { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-200), var(--gold-400) 55%, var(--gold-600)); box-shadow: 0 16px 34px -10px rgba(0, 0, 0, .7); transition: transform .25s; }
.video-play::after { content: ""; position: absolute; left: 50%; top: 50%; margin: -15px 0 0 -9px; border-style: solid; border-width: 15px 0 15px 25px; border-color: transparent transparent transparent #201703; }
.video:hover .video-play { transform: scale(1.08); }

.faq { margin-top: 18px; padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.faq h3 { font-size: 1.3rem; margin-bottom: 10px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--bg-alt); color: var(--accent-2); font-size: 1.2rem; font-weight: 500; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 44px 18px 0; color: var(--muted); }
.pmb-cta { margin-top: 28px; }

@media (max-width: 1100px) { .video-grid { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 560px) { .faq { padding: 20px; } .faq details p { padding-right: 0; } .video-play { width: 64px; height: 64px; margin: -32px 0 0 -32px; } .video { border-radius: 18px; } }
@media (prefers-reduced-motion: reduce) { .video:hover img, .video:hover .video-play { transform: none; } }
/* ================= v1.6: tata letak lebih rapat dan lebih lebar ================= */
:root { --wrap: 1400px; }
.nav { width: min(1320px, 100% - 24px); }

section { padding: 58px 0; }
.head { margin-bottom: 26px; }
.head h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin: 8px 0 10px; }
.hero { padding: 128px 0 122px; }
.marquee { padding-top: 22px; }
.about-grid, .hero-grid, .leader-grid, .video-grid { gap: 48px; }
.deputies { margin-top: 30px; }
.prodi { padding: 28px; }
.syair blockquote { margin-top: 18px; }
.news-main { min-height: 400px; }
.more { margin-top: 22px; }
.notices .more { margin-top: 18px; }
.gallery { grid-auto-rows: 180px; }
.awards { margin-bottom: 22px; }
.map, .map iframe { min-height: 330px; }
.site-footer { padding: 44px 0 24px; }
.copy { margin-top: 30px; }

/* pengumuman dan agenda berdampingan */
.info-grid.is-split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.info-grid.is-split .notice-list { grid-template-columns: 1fr; }

/* ornamen di tepi kiri dan kanan pada layar lebar */
@media (min-width: 1560px) {
  body::before, body::after { content: ""; position: fixed; top: 0; bottom: 0; width: calc((100vw - var(--wrap)) / 2 - 28px); background: var(--pattern); opacity: .09; pointer-events: none; z-index: 1; }
  body::before { left: 0; -webkit-mask-image: linear-gradient(90deg, #000 20%, transparent); mask-image: linear-gradient(90deg, #000 20%, transparent); }
  body::after { right: 0; -webkit-mask-image: linear-gradient(270deg, #000 20%, transparent); mask-image: linear-gradient(270deg, #000 20%, transparent); }
}

@media (max-width: 1100px) {
  section { padding: 46px 0; }
  .hero { padding: 118px 0 118px; }
  .info-grid.is-split { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 560px) {
  section { padding: 40px 0; }
  .head { margin-bottom: 20px; }
}
/* ================= v1.7: rel tepi kanan (akses cepat, penunjuk bagian) ================= */
.rail, .dots { display: none; }
@media (min-width: 1560px) and (min-height: 600px) {
  .rail { display: flex; flex-direction: column; align-items: center; gap: 10px; position: fixed; z-index: 30; }
  .rail-right { right: 22px; bottom: 22px; }
  .rail a { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(7, 40, 31, .88); border: 1px solid rgba(217, 178, 90, .45); color: var(--gold-200); box-shadow: 0 12px 24px -14px rgba(0, 0, 0, .7); transition: transform .2s, background .2s, color .2s; }
  .rail a svg { width: 20px; height: 20px; }
  .rail a:hover, .rail a:focus-visible { transform: scale(1.1); background: var(--gold-400); color: #201703; }
  .rail a.is-gold { background: linear-gradient(135deg, var(--gold-200), var(--gold-400) 55%, var(--gold-600)); color: #201703; border-color: transparent; }
  .rail a.is-wa { background: #1faa59; color: #fff; border-color: transparent; width: 54px; height: 54px; }
  .rail a.is-wa svg { width: 26px; height: 26px; }
  .wa { display: none; }

  /* keterangan saat disorot */
  .rail a::after, .dots a::after { content: attr(data-tip); position: absolute; top: 50%; transform: translateY(-50%); padding: 6px 12px; border-radius: 999px; background: rgba(7, 40, 31, .95); color: #f3f6f1; font-size: .78rem; font-weight: 600; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s; }
  .rail-right a::after, .dots a::after { right: calc(100% + 10px); }
  .rail a:hover::after, .rail a:focus-visible::after, .dots a:hover::after, .dots a:focus-visible::after { opacity: 1; }

  .dots { display: flex; flex-direction: column; gap: 13px; position: fixed; right: 40px; top: 45%; transform: translateY(-50%); z-index: 30; }
  .dots a { position: relative; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--gold-600); background: rgba(250, 247, 238, .5); transition: transform .2s, background .2s; }
  .dots a:hover, .dots a.active { background: var(--gold-400); border-color: var(--gold-400); transform: scale(1.4); }
}
@media (min-width: 1560px) and (max-height: 780px) { .dots { display: none; } }
/* ---------- v1.9: akses cepat menyesuaikan jumlah layanan ---------- */
@media (min-width: 1101px) { .quick-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } .quick a { padding: 18px; gap: 12px; } }
/* ================= v1.10: slide foto hero, sambutan rata kiri-kanan ================= */
.arch img { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.arch img.is-active { opacity: 1; }
.arch-dots { position: absolute; left: 50%; bottom: 14px; z-index: 2; transform: translateX(-50%); display: flex; gap: 8px; }
.arch-dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 1px solid var(--gold-200); background: transparent; cursor: pointer; }
.arch-dots button.is-active { background: var(--gold-200); }
@media (min-width: 1024px) { .leader-message p { text-align: justify; hyphens: auto; -webkit-hyphens: auto; } }

/* ---------- v1.10.1: bingkai slide hero lebih lebar, terutama di HP ---------- */
.arch-stage { width: min(460px, 100%); }
@media (max-width: 1100px) { .arch-stage { width: min(520px, 100%); } }
@media (max-width: 560px) {
  .arch-stage { width: 100%; }
  .arch { aspect-ratio: 1 / 1.08; }
  .arch-ring { inset: -10px; }
  .badge-1 { left: 8px; } .badge-2 { right: 8px; } .badge-3 { left: 12px; }
}
/* di HP label tidak menutupi bagian tengah foto: PAI di atas, MPI di bawah, label ketiga disembunyikan */
@media (max-width: 560px) {
  .badge-1 { top: 9%; }
  .badge-2 { top: auto; bottom: 34px; right: 8px; }
  .badge-3 { display: none; }
}

/* ---------- v1.11: slide hero dengan efek zoom out sampai foto terlihat utuh ---------- */
.arch { background: var(--green-950); }
.arch::before { content: ""; position: absolute; inset: -30px; background-image: var(--slide-bg, none); background-size: cover; background-position: center; filter: blur(22px) brightness(.55); }
.js .arch img { object-fit: contain; transform: scale(var(--zoom, 1)); transition: opacity 1.2s ease, transform 0s linear 1.2s; }
.js .arch img.is-active { transform: scale(1); transition: opacity 1.2s ease, transform 5s cubic-bezier(.3, .1, .3, 1); }
@media (prefers-reduced-motion: reduce) {
  .js .arch img, .js .arch img.is-active { object-fit: cover; transform: none; transition: opacity .3s; }
}

/* ---------- v1.12: lencana lulusan per angkatan, berganti otomatis ---------- */
.badge-3 { min-width: 214px; }
.badge-slide { display: none; align-items: center; gap: 10px; }
.badge-slide.is-on { display: flex; animation: badge-in .5s ease; }
.badge-slide b { min-width: 38px; padding: 0 6px; }
@keyframes badge-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .badge-slide.is-on { animation: none; } }

/* ================= v1.13: jadwal sholat ================= */
.sholat { padding: 34px 0 30px; background: linear-gradient(100deg, rgba(28, 138, 102, .16), rgba(217, 178, 90, .10)); border-block: 1px solid var(--line); }
.sholat-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 28px; margin-bottom: 20px; }
.sholat-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--accent); }
.sholat-head p { font-size: .88rem; color: var(--muted); margin-top: 2px; }
.sholat-cari { position: relative; width: min(320px, 100%); }
.sholat-cari input { width: 100%; padding: 11px 44px 11px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: .92rem; }
.sholat-cari input:focus { outline: none; border-color: var(--gold-400); box-shadow: 0 0 0 3px rgba(217, 178, 90, .25); }
.sholat-cari svg { position: absolute; right: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--accent); pointer-events: none; }
.sholat-hasil { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; list-style: none; margin: 0; padding: 6px; max-height: 260px; overflow-y: auto; border-radius: 14px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.sholat-hasil button { width: 100%; padding: 9px 12px; border: 0; border-radius: 10px; background: none; color: var(--ink); font: inherit; font-size: .9rem; text-align: left; cursor: pointer; }
.sholat-hasil button:hover, .sholat-hasil button:focus-visible { background: var(--bg-alt); }
.sholat-hasil .kosong { padding: 9px 12px; font-size: .88rem; color: var(--muted); }
.sholat-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
.sholat-grid li { display: grid; gap: 4px; justify-items: center; padding: 16px 8px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); text-align: center; transition: transform .2s, border-color .2s; }
.sholat-grid span { font-size: .86rem; color: var(--muted); }
.sholat-grid b { font-size: 1.25rem; font-variant-numeric: tabular-nums; color: var(--accent); }
.sholat-grid li.is-next { border-color: var(--gold-400); background: linear-gradient(160deg, var(--green-700), var(--green-900)); transform: translateY(-3px); }
.sholat-grid li.is-next span { color: var(--gold-200); }
.sholat-grid li.is-next b { color: #fff; }
.sholat-more { margin-top: 14px; text-align: center; font-size: .82rem; color: var(--muted); }
.sholat-more a { color: var(--accent); font-weight: 600; text-decoration: underline; }
.sholat.is-loading .sholat-grid { opacity: .5; }
@media (max-width: 1100px) { .sholat-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) {
  .sholat { padding: 26px 0 22px; }
  .sholat-grid { gap: 8px; }
  .sholat-grid li { padding: 12px 4px; border-radius: 12px; }
  .sholat-grid span { font-size: .76rem; }
  .sholat-grid b { font-size: 1.02rem; }
}

/* ---------- v1.13.2: judul hero lebih panjang ("Kampus Masa Depan, Berbasis Kearifan Lokal") ---------- */
.hero h1 { font-size: clamp(2.2rem, 4.2vw, 3.8rem); text-wrap: balance; }
