:root {
  --bg: #FAFAF9;
  --bg-alt: #F3F2EE;
  --surface: #FFFFFF;
  --navy: #0F172A;
  --navy-deep: #0B1120;
  --text: #0F172A;
  --muted: #475569;
  --border: #E2E8F0;
  --gold: #B48332;
  --gold-light: #D4A359;
  --gold-soft: #F8F2E6;
  --radius: 16px;
  --radius-lg: 24px;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition: 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

html.dark {
  --bg: #090D16;
  --bg-alt: #0F172A;
  --surface: #131C31;
  --text: #F1F5F9;
  --muted: #94A3B8;
  --border: #1E293B;
  --gold: #D4A359;
  --gold-soft: rgba(180, 131, 50, 0.16);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
html.font-lg { font-size: 18px; }
html.font-xl { font-size: 20px; }
html.high-contrast body { filter: contrast(1.22); }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { display: block; }
.is-hidden { display: none !important; }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 1.5rem; }
.text-accent { color: var(--gold); }
.muted { color: var(--muted); font-size: 0.9rem; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 999;
  background: var(--navy); color: #fff; padding: 0.6rem 1rem; border-radius: 8px; font-size: 0.85rem;
}
.skip-link:focus { top: 1rem; }

.pattern-kawung {
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%230F172A' stroke-width='0.8' stroke-opacity='0.045'%3E%3Ccircle cx='40' cy='20' r='16'/%3E%3Ccircle cx='40' cy='60' r='16'/%3E%3Ccircle cx='20' cy='40' r='16'/%3E%3Ccircle cx='60' cy='40' r='16'/%3E%3Ccircle cx='40' cy='40' r='3' fill='%23B48332' fill-opacity='0.06' stroke='none'/%3E%3C/g%3E%3C/svg%3E");
}
html.dark .pattern-kawung {
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23D4A359' stroke-width='0.8' stroke-opacity='0.06'%3E%3Ccircle cx='40' cy='20' r='16'/%3E%3Ccircle cx='40' cy='60' r='16'/%3E%3Ccircle cx='20' cy='40' r='16'/%3E%3Ccircle cx='60' cy='40' r='16'/%3E%3Ccircle cx='40' cy='40' r='3' fill='%23D4A359' fill-opacity='0.08' stroke='none'/%3E%3C/g%3E%3C/svg%3E");
}

/* HEADER */
.site-header {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid var(--border);
  background: rgba(250, 250, 249, 0.88);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
html.dark .site-header { background: rgba(9, 13, 22, 0.88); }
.header-inner { height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: flex; align-items: center; gap: 0.8rem; }
.brand-icon {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--navy); border: 1px solid rgba(180, 131, 50, 0.45);
  color: var(--gold-light); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.brand-icon svg { width: 22px; height: 22px; }
.brand-title { display: block; font-weight: 800; font-size: 1rem; letter-spacing: -0.02em; line-height: 1.2; }
.brand-sub { display: block; font-size: 0.7rem; color: var(--muted); }

.nav-desktop { display: flex; align-items: center; gap: 1.75rem; }
.nav-link { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.9rem; font-weight: 500; color: var(--muted); transition: color var(--transition); }
.nav-link:hover { color: var(--text); }
.chevron { width: 14px; height: 14px; opacity: 0.65; transition: transform var(--transition); }
.nav-dropdown { position: relative; padding: 0.5rem 0; }
.nav-dropdown:hover .chevron { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute; top: 100%; left: 0; padding-top: 0.5rem; width: 230px;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: all var(--transition);
}
.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0.5rem; box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}
.dropdown-item { display: block; padding: 0.55rem 0.85rem; border-radius: 10px; font-size: 0.87rem; color: var(--muted); }
.dropdown-item:hover { background: var(--bg-alt); color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center; transition: all var(--transition);
}
.icon-btn:hover { background: var(--bg-alt); color: var(--text); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-sun { display: none; color: var(--gold-light); }
html.dark .icon-moon { display: none; }
html.dark .icon-sun { display: block; }
.mobile-toggle { display: none; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.6rem 1.2rem; border-radius: 12px; font-size: 0.88rem; font-weight: 600;
  transition: all var(--transition);
}
.btn svg { width: 16px; height: 16px; }
.btn-lg { padding: 0.85rem 1.65rem; font-size: 0.92rem; }
.btn-full { width: 100%; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
html.dark .btn-primary { background: var(--gold-light); color: var(--navy-deep); }
.btn-outline { border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.btn-outline:hover { border-color: var(--gold); }

/* MOBILE MENU */
.mobile-menu { border-top: 1px solid var(--border); background: var(--bg); padding: 1.25rem 1.5rem; }
.mobile-accordion summary { display: flex; justify-content: space-between; padding: 0.55rem 0; font-weight: 600; font-size: 0.92rem; cursor: pointer; list-style: none; }
.mobile-sub { padding-left: 1rem; border-left: 2px solid var(--gold); margin: 0.25rem 0 0.6rem; display: flex; flex-direction: column; gap: 0.35rem; }
.mobile-link { font-size: 0.88rem; color: var(--muted); padding: 0.3rem 0; display: block; }
.mobile-top-link { font-weight: 600; color: var(--text); padding: 0.55rem 0; }
.mobile-cta { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }

/* HERO */
.hero { padding: 5.5rem 0 6.5rem; }
.hero-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 3.5rem; align-items: center; }
.pill-badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.4rem 1rem; border-radius: 999px; border: 1px solid rgba(180, 131, 50, 0.35);
  background: var(--surface); font-size: 0.78rem; font-weight: 600; margin-bottom: 1.5rem;
}
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.hero-title { font-size: clamp(2.25rem, 4.6vw, 3.6rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 1.35rem; }
.hero-desc { font-size: 1.06rem; color: var(--muted); max-width: 560px; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-visual { position: relative; }
.hero-artwork { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: 0 24px 50px rgba(15, 23, 42, 0.14); }
.hero-artwork svg { width: 100%; height: auto; }
.hero-float-card {
  position: absolute; bottom: -18px; left: 20px; right: 20px; max-width: 300px;
  display: flex; align-items: center; gap: 0.9rem;
  padding: 0.95rem 1.1rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
}
.hero-float-card strong { display: block; font-size: 0.9rem; }
.hero-float-card span { font-size: 0.76rem; color: var(--muted); }

/* STATS */
.stats-strip { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 2.75rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.stat-item { display: block; padding-left: 1.5rem; border-left: 1px solid var(--border); }
.stat-item:first-child { padding-left: 0; border-left: 0; }
.stat-val { display: block; font-size: 2.1rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; transition: color var(--transition); }
.stat-label { display: block; margin-top: 0.35rem; font-size: 0.88rem; font-weight: 500; color: var(--muted); }
.stat-item:hover .stat-val { color: var(--gold); }
.stat-item:hover .stat-label { color: var(--text); }

/* SECTIONS & GRIDS */
.section { padding: 5.5rem 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-surface { background: var(--surface); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 3rem; }
.kicker { font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; color: var(--gold); margin-bottom: 0.55rem; }
.section-title { font-size: clamp(1.75rem, 3vw, 2.35rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.2; }
.section-sub { color: var(--muted); max-width: 600px; margin-top: 0.65rem; font-size: 0.98rem; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* TABS */
.tab-group { display: inline-flex; padding: 0.3rem; border-radius: 14px; background: var(--bg-alt); border: 1px solid var(--border); }
.prodi-tab { padding: 0.45rem 1rem; border-radius: 10px; font-size: 0.86rem; font-weight: 500; color: var(--muted); transition: all var(--transition); }
.prodi-tab.is-active { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06); }

/* CARDS */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-3px); border-color: rgba(180, 131, 50, 0.6); box-shadow: 0 14px 30px rgba(15, 23, 42, 0.07); }

.card-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--gold-soft); color: var(--gold);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.card-icon svg { width: 20px; height: 20px; }

.prodi-card { padding: 1.75rem; display: flex; flex-direction: column; justify-content: space-between; }
.prodi-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.35rem; }
.badge-pill { font-size: 0.72rem; font-weight: 600; padding: 0.25rem 0.7rem; border-radius: 999px; border: 1px solid var(--border); background: var(--bg); color: var(--muted); }
.prodi-level { font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); }
.prodi-card h3 { font-size: 1.22rem; font-weight: 700; margin: 0.3rem 0 0.55rem; }
.prodi-card p { font-size: 0.88rem; color: var(--muted); }
.prodi-foot { margin-top: 1.5rem; padding-top: 1.15rem; border-top: 1px solid var(--border); }
.link-arrow { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.88rem; font-weight: 600; color: var(--text); transition: color var(--transition); }
.link-arrow svg { width: 16px; height: 16px; }
.link-arrow:hover { color: var(--gold); }

.service-card { padding: 1.75rem; display: block; }
.service-card .card-icon { margin-bottom: 1.35rem; }
.service-card h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 0.45rem; }
.service-card p { font-size: 0.88rem; color: var(--muted); }

.news-card { overflow: hidden; display: flex; flex-direction: column; background: var(--bg); }
.news-thumb { display: block; aspect-ratio: 16 / 10; background: var(--navy); overflow: hidden; }
.news-thumb img, .news-thumb svg { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.news-card:hover .news-thumb img { transform: scale(1.04); }
.news-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.news-meta { display: flex; align-items: center; gap: 0.75rem; font-size: 0.76rem; color: var(--muted); margin-bottom: 0.75rem; }
.tag { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 6px; font-size: 0.74rem; font-weight: 600; background: var(--gold-soft); color: var(--gold); }
.news-body h3 { font-size: 1.08rem; font-weight: 700; line-height: 1.35; margin-bottom: 0.6rem; }
.news-body h3 a:hover { color: var(--gold); }
.news-body p { font-size: 0.88rem; color: var(--muted); }

/* FOOTER */
.site-footer { background: var(--navy-deep); color: #CBD5E1; padding: 4.5rem 0 2rem; border-top: 1px solid #1E293B; }
.footer-grid { display: grid; grid-template-columns: 2fr 1.2fr 1fr 1.3fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid #1E293B; }
.footer-white { color: #fff; }
.footer-brand p { font-size: 0.88rem; color: #94A3B8; margin-top: 1rem; }
.footer-note { font-size: 0.76rem !important; color: #64748B !important; }
.site-footer h4 { color: #fff; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; }
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; font-size: 0.88rem; color: #94A3B8; }
.site-footer ul a:hover { color: var(--gold-light); }
.footer-socials { display: flex; gap: 0.65rem; margin-top: 1rem; }
.footer-socials a { width: 36px; height: 36px; border-radius: 10px; border: 1px solid #1E293B; background: #0F172A; display: flex; align-items: center; justify-content: center; color: #94A3B8; }
.footer-socials a svg { width: 16px; height: 16px; }
.footer-socials a:hover { color: var(--gold-light); border-color: var(--gold); }
.footer-bottom { padding-top: 1.75rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: 0.8rem; color: #64748B; }
.footer-bottom a:hover { color: #fff; }

/* MODALS */
.modal {
  position: fixed; inset: 0; z-index: 50; padding: 1.25rem;
  background: rgba(11, 17, 32, 0.65); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
}
.modal-box { width: 100%; max-width: 520px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; box-shadow: 0 24px 50px rgba(0,0,0,0.25); }
.modal-search { padding: 0; overflow: hidden; align-self: flex-start; margin-top: 4rem; max-width: 580px; }
.search-form { display: flex; align-items: center; gap: 0.75rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); }
.search-form svg { width: 20px; height: 20px; color: var(--muted); flex-shrink: 0; }
.search-form input { width: 100%; border: 0; background: transparent; color: var(--text); font-size: 0.92rem; outline: none; }
.esc-btn { font-size: 0.72rem; font-weight: 600; padding: 0.25rem 0.55rem; border-radius: 6px; background: var(--bg-alt); color: var(--muted); }
.search-results { max-height: 280px; overflow-y: auto; padding: 0.65rem; }
.search-result-link { display: flex; justify-content: space-between; align-items: center; padding: 0.7rem 0.9rem; border-radius: 10px; font-size: 0.88rem; }
.search-result-link:hover { background: var(--bg-alt); }
.search-result-link small { color: var(--muted); font-size: 0.76rem; }

.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.modal-head h3 { font-size: 1.25rem; margin-top: 0.5rem; }
.modal-desc { font-size: 0.92rem; color: var(--muted); margin-top: 1rem; }
.modal-extra { margin-top: 1.25rem; padding: 1rem; border-radius: 12px; background: var(--bg-alt); font-size: 0.84rem; color: var(--muted); display: flex; flex-direction: column; gap: 0.4rem; }
.modal-foot { margin-top: 1.5rem; display: flex; justify-content: flex-end; }

/* ACCESSIBILITY WIDGET */
.a11y-wrap { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 40; }
.a11y-fab {
  margin-left: auto; width: 48px; height: 48px; border-radius: 14px;
  background: var(--navy); color: #fff; border: 1px solid #334155;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 25px rgba(15,23,42,0.25);
}
.a11y-fab svg { width: 20px; height: 20px; }
.a11y-panel { width: 250px; margin-bottom: 0.75rem; padding: 1rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: 0 18px 40px rgba(15,23,42,0.18); }
.a11y-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.85rem; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.link-reset { color: var(--gold); font-size: 0.78rem; font-weight: 600; }
.a11y-label { font-size: 0.76rem; color: var(--muted); margin-bottom: 0.45rem; }
.a11y-sizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4rem; margin-bottom: 0.85rem; }
.a11y-sizes button { padding: 0.4rem; border-radius: 8px; border: 1px solid var(--border); font-weight: 600; }
.a11y-contrast { width: 100%; padding: 0.55rem 0.75rem; border-radius: 10px; border: 1px solid var(--border); display: flex; justify-content: space-between; font-size: 0.8rem; font-weight: 600; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .nav-desktop, .btn-sso-desktop { display: none; }
  .mobile-toggle { display: inline-flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .grid-3, .grid-4, .stats-grid, .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-left: 0; padding-left: 0; }
}
@media (max-width: 640px) {
  .hero { padding: 3.5rem 0 4.5rem; }
  .section { padding: 4rem 0; }
  .grid-3, .grid-4, .footer-grid { grid-template-columns: 1fr; }
}