/* ================================================================
   MA AL-ISLAM JAMSAREN — MALISKA
   Ultra-Premium Corporate Design System
   Inspired by Apple · McKinsey · Deloitte · Goldman Sachs
   Brand: #004d40 (Forest) · #00695c (Jade) · #c5a560 (Gold)
   ================================================================ */

/* ================================================================
   0. GOOGLE FONTS
   ================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

/* ================================================================
   1. DESIGN TOKENS
   ================================================================ */
:root {
  /* ── Brand ── */
  --c-forest: #004d40;
  --c-forest-deep: #00312a;
  --c-jade: #00695c;
  --c-jade-light: #00897b;
  --c-gold: #c5a560;
  --c-gold-light: #d9bc84;
  --c-gold-pale: #f5eddc;

  /* ── Neutrals ── */
  --c-white: #ffffff;
  --c-snow: #f8faf9;
  --c-frost: #f0f4f2;
  --c-mist: #e4ebe8;
  --c-smoke: #c8d5d0;
  --c-slate: #8fa39c;
  --c-stone: #4a6158;
  --c-ink: #1c2b27;

  /* ── Shadows ── */
  --s-1: 0 1px 2px rgba(0, 0, 0, .04);
  --s-2: 0 2px 8px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .04);
  --s-3: 0 4px 16px rgba(0, 0, 0, .07), 0 1px 4px rgba(0, 0, 0, .04);
  --s-4: 0 8px 32px rgba(0, 0, 0, .09), 0 2px 8px rgba(0, 0, 0, .05);
  --s-5: 0 20px 64px rgba(0, 0, 0, .11), 0 4px 16px rgba(0, 0, 0, .06);
  --s-green: 0 8px 28px rgba(0, 77, 64, .28);
  --s-gold: 0 8px 28px rgba(197, 165, 96, .30);

  /* ── Typography ── */
  --f-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --f-serif: 'Playfair Display', Georgia, serif;

  /* ── Space Scale (8-pt grid) ── */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;
  --sp-10: 128px;

  /* ── Radii ── */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-2xl: 32px;
  --r-pill: 999px;

  /* ── Transitions ── */
  --t-fast: 150ms cubic-bezier(.4, 0, .2, 1);
  --t-base: 260ms cubic-bezier(.4, 0, .2, 1);
  --t-slow: 420ms cubic-bezier(.4, 0, .2, 1);
  --t-spring: 480ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ── Z-Index ── */
  --z-header: 900;
  --z-modal: 1000;
  --z-chat: 1100;
}

/* ================================================================
   2. RESET
   ================================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--f-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--c-stone);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  font-family: var(--f-sans);
}

/* ================================================================
   3. TYPOGRAPHY SCALE
   ================================================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--f-sans);
  font-weight: 700;
  color: var(--c-ink);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* ================================================================
   4. LAYOUT
   ================================================================ */
.container {
  width: min(92%, 1240px);
  margin-inline: auto;
  padding-inline: max(16px, env(safe-area-inset-left));
}

section {
  padding: var(--sp-10) 0;
}

section:nth-of-type(odd) {
  background: var(--c-white);
}

section:nth-of-type(even) {
  background: var(--c-snow);
}

/* ================================================================
   5. SCROLL-REVEAL  (JS adds .is-visible)
   ================================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.22, 1, .36, 1),
    transform .7s cubic-bezier(.22, 1, .36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity .7s cubic-bezier(.22, 1, .36, 1),
    transform .7s cubic-bezier(.22, 1, .36, 1);
}

.reveal-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity .7s cubic-bezier(.22, 1, .36, 1),
    transform .7s cubic-bezier(.22, 1, .36, 1);
}

.reveal-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

[data-delay="1"] {
  transition-delay: .10s;
}

[data-delay="2"] {
  transition-delay: .20s;
}

[data-delay="3"] {
  transition-delay: .30s;
}

[data-delay="4"] {
  transition-delay: .40s;
}

[data-delay="5"] {
  transition-delay: .50s;
}

/* ================================================================
   6. SECTION HEADER COMPONENT
   ================================================================ */
.section-header {
  margin-bottom: 56px;
}

.section-header.centered {
  text-align: center;
}

/* Simple tag — no decorative lines */
.section-eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--c-forest);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 0;
}

.section-title::after {
  display: none;
}

.section-subtitle {
  font-size: .975rem;
  color: var(--c-slate);
  max-width: 520px;
  line-height: 1.7;
  margin-top: 14px;
}

.section-header.centered .section-subtitle {
  margin-inline: auto;
}

/* Plain bottom border — no gradient */
.rule {
  display: block;
  width: 36px;
  height: 2px;
  background: var(--c-gold);
  margin-top: 18px;
}

.section-header.centered .rule {
  margin-inline: auto;
}

/* ================================================================
   7. HEADER / NAVIGATION
   ================================================================ */
.header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: var(--z-header);
  height: 72px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(200%) blur(20px);
  -webkit-backdrop-filter: saturate(200%) blur(20px);
  border-bottom: 1px solid rgba(0, 77, 64, .09);
  transition: background var(--t-base), box-shadow var(--t-base);
}

.header.scrolled {
  background: rgba(255, 255, 255, .97);
  box-shadow: var(--s-3);
}

/* 3-zone layout: logo | nav (center) | actions */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: var(--sp-6);
}

/* ── Logo ── */
.logo {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  font-size: .88rem;
  font-weight: 800;
  color: var(--c-forest);
  letter-spacing: .05em;
  text-transform: uppercase;
  line-height: 1.3;
  /* right divider separator */
  padding-right: var(--sp-5);
  margin-right: 0;
  border-right: 1px solid var(--c-mist);
  text-decoration: none;
  transition: color var(--t-fast);
  white-space: nowrap;
}

.logo:hover {
  color: var(--c-jade);
}

.logo span {
  font-size: .6rem;
  font-weight: 500;
  letter-spacing: .12em;
  color: var(--c-gold);
  text-transform: uppercase;
  margin-top: 1px;
}

/* ── Nav Links ── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  /* takes remaining space */
  justify-content: center;
  /* centers nav links between logo and hamburger */
}

.nav-links li {
  position: relative;
}

.nav-links>li>a {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 10px 16px;
  font-size: .825rem;
  font-weight: 600;
  color: var(--c-stone);
  border-radius: var(--r-xs);
  letter-spacing: .01em;
  white-space: nowrap;
  transition: color var(--t-fast), background var(--t-fast);
  position: relative;
}

.nav-links>li>a:hover,
.nav-links>li>a.active {
  color: var(--c-forest);
  background: rgba(0, 77, 64, .07);
}

/* animated underline */
.nav-links>li>a::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 16px;
  right: 16px;
  height: 2px;
  border-radius: 1px;
  background: var(--c-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base);
}

.nav-links>li>a:hover::after,
.nav-links>li>a.active::after {
  transform: scaleX(1);
}

/* ── Dropdown ── */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--c-white);
  min-width: 200px;
  border: 1px solid var(--c-mist);
  border-radius: var(--r-md);
  box-shadow: var(--s-4);
  overflow: hidden;
  z-index: 200;
  padding: 4px 0;
}

/* small triangle pointer */
.dropdown-content::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 9px;
  height: 9px;
  background: var(--c-white);
  border-top: 1px solid var(--c-mist);
  border-left: 1px solid var(--c-mist);
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content li {
  margin: 0;
  width: 100%;
}

.dropdown-content a {
  display: block;
  padding: 10px 18px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--c-stone);
  border-radius: 0;
  transition: background var(--t-fast), color var(--t-fast), padding-left var(--t-fast);
}

.dropdown-content a::after {
  display: none;
}

.dropdown-content a:hover {
  background: var(--c-snow);
  color: var(--c-forest);
  padding-left: 24px;
}

/* ── CTA Daftar Button in Navbar ── */
.nav-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 22px;
  background: var(--c-forest);
  color: var(--c-white) !important;
  font-size: .8rem;
  font-weight: 700;
  border-radius: var(--r-pill);
  letter-spacing: .04em;
  transition: background var(--t-base), transform var(--t-fast), box-shadow var(--t-fast);
  white-space: nowrap;
  cursor: pointer;
  border: none;
}

.nav-cta:hover {
  background: var(--c-jade) !important;
  transform: translateY(-1px);
  box-shadow: var(--s-green);
}

.nav-cta::after {
  display: none !important;
}

/* ── Hamburger ── */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--r-sm);
  border: 1px solid var(--c-mist);
  background: transparent;
  flex-shrink: 0;
  transition: background var(--t-fast);
}

.menu-toggle:hover {
  background: var(--c-frost);
}

.menu-toggle .bar {
  width: 20px;
  height: 2px;
  background: var(--c-forest);
  border-radius: 2px;
  transition: var(--t-base);
  display: block;
}

/* ================================================================
   8. HERO SECTION
   ================================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  background: #001c16;
  color: var(--c-white);
  padding: 0 5%;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 15, 0.62);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
}

/* Simple text label — no pill badge, no animation */
.hero-badge {
  display: block;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--c-gold-light);
  margin-bottom: 20px;
  opacity: .85;
}

.hero h1 {
  font-size: clamp(2.8rem, 7.5vw, 5.2rem);
  font-weight: 900;
  color: var(--c-white);
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 22px;
}

.hero h1 em {
  font-style: normal;
  color: var(--c-gold-light);
  font-family: var(--f-serif);
  font-weight: 700;
}

.hero-desc {
  font-size: clamp(.95rem, 1.8vw, 1.1rem);
  color: rgba(255, 255, 255, .78);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.75;
  font-weight: 400;
}

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 32px;
  background: var(--c-gold);
  color: var(--c-forest-deep);
  font-size: .875rem;
  font-weight: 700;
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  letter-spacing: .02em;
  cursor: pointer;
  transition: var(--t-base);
}

.btn-primary:hover {
  background: transparent;
  border-color: rgba(197, 165, 96, .7);
  color: var(--c-gold-light);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 32px;
  background: transparent;
  color: rgba(255, 255, 255, .85);
  font-size: .875rem;
  font-weight: 600;
  border-radius: var(--r-pill);
  border: 1.5px solid rgba(255, 255, 255, .3);
  letter-spacing: .02em;
  cursor: pointer;
  transition: var(--t-base);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .55);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border-radius: var(--r-pill);
  transition: var(--t-base);
  font-weight: 600;
  padding: 13px 32px;
}

.btn-secondary {
  background: var(--c-gold);
  color: var(--c-forest-deep);
  border: 1.5px solid transparent;
  font-size: .875rem;
  letter-spacing: .02em;
}

.btn-secondary:hover {
  background: transparent;
  border-color: rgba(197, 165, 96, .7);
  color: var(--c-gold-light);
}

/* Removed: scroll indicator animation */
.hero-scroll {
  display: none;
}

/* ================================================================
   9. STATS SECTION
   ================================================================ */
#stats {
  background: var(--c-forest) !important;
  padding: 64px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.stat-item {
  background: transparent;
  padding: 48px 32px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, .08);
  transition: background var(--t-base);
}

.stat-item:last-child {
  border-right: none;
}

.stat-item:hover {
  background: rgba(255, 255, 255, .05);
}

.stat-number {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  color: var(--c-white);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}

.stat-number span {
  color: var(--c-gold);
}

.stat-label {
  font-size: .75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .45);
}

/* ================================================================
   10. PROFIL SECTION
   ================================================================ */
.profile-content {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 72px;
  align-items: start;
}

.profile-image {
  position: sticky;
  top: 90px;
}

/* No decorative corners — just clean image */
.profile-image-wrap {
  position: relative;
}

.profile-image img {
  width: 100%;
  border-radius: var(--r-md);
  box-shadow: var(--s-4);
  display: block;
}

.profile-text {}

.profile-text .section-eyebrow {
  justify-content: flex-start;
}

.profile-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--c-forest);
  font-family: var(--f-serif);
  font-weight: 700;
  margin-bottom: var(--sp-4);
}

.profile-text p {
  font-size: .95rem;
  color: var(--c-stone);
  margin-bottom: var(--sp-4);
  text-align: justify;
  line-height: 1.8;
}

.profile-signature {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-top: var(--sp-5);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--c-mist);
}

.sig-bar {
  width: 3px;
  height: 48px;
  background: linear-gradient(180deg, var(--c-forest), var(--c-gold));
  border-radius: 2px;
  flex-shrink: 0;
}

.sig-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-forest);
  font-family: var(--f-serif);
  display: block;
  margin-bottom: 2px;
}

.sig-title {
  font-size: .75rem;
  font-weight: 600;
  color: var(--c-gold);
  text-transform: uppercase;
  letter-spacing: .09em;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1.5px solid var(--c-mist);
  margin-top: var(--sp-6);
}

.tab-button {
  padding: 10px 22px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--c-slate);
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--r-xs) var(--r-xs) 0 0;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: color var(--t-fast), background var(--t-fast);
  position: relative;
}

.tab-button:hover {
  color: var(--c-forest);
  background: var(--c-frost);
}

.tab-button.active {
  color: var(--c-forest);
  background: none;
}

.tab-button.active::after {
  content: '';
  position: absolute;
  bottom: -1.5px;
  left: 0;
  width: 100%;
  height: 2.5px;
  background: var(--c-gold);
  border-radius: 2px 2px 0 0;
}

.tab-content {
  display: none;
  padding: var(--sp-5) 0 0;
  animation: fadeSlideUp .3s ease;
}

.tab-content.active {
  display: block;
}

.tab-content>p {
  font-size: .95rem;
  color: var(--c-stone);
  line-height: 1.8;
}

.tab-content ul {
  padding: 0;
}

.tab-content ul li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--c-frost);
  font-size: .92rem;
  color: var(--c-stone);
  line-height: 1.6;
}

.tab-content ul li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-gold);
  margin-top: 7px;
}

.tab-content ul li:last-child {
  border-bottom: none;
}

/* ================================================================
   11. STRUKTUR ORGANISASI
   ================================================================ */
.org-chart-wrapper {
  overflow-x: auto;
  padding-bottom: var(--sp-7);
  text-align: center;
}

.org-tree,
.org-tree ul,
.org-tree li {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.org-tree {
  display: inline-block;
  white-space: nowrap;
}

.org-tree ul {
  display: flex;
  justify-content: center;
  padding-top: 28px;
}

.org-tree li {
  float: left;
  text-align: center;
  position: relative;
  padding: 28px 14px 0;
  transition: all .4s;
}

/* Connectors */
.org-tree li::before,
.org-tree li::after {
  content: '';
  position: absolute;
  top: 0;
  right: 50%;
  border-top: 1.5px solid var(--c-gold);
  width: 50%;
  height: 28px;
}

.org-tree li::after {
  right: auto;
  left: 50%;
  border-left: 1.5px solid var(--c-gold);
}

.org-tree li:only-child::after,
.org-tree li:only-child::before {
  display: none;
}

.org-tree li:only-child {
  padding-top: 0;
}

.org-tree li:first-child::before,
.org-tree li:last-child::after {
  border: none;
}

.org-tree li:last-child::before {
  border-right: 1.5px solid var(--c-gold);
  border-radius: 0 5px 0 0;
}

.org-tree li:first-child::after {
  border-radius: 5px 0 0 0;
}

.org-tree ul ul::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  border-left: 1.5px solid var(--c-gold);
  width: 0;
  height: 28px;
}

/* Node Card */
.org-node {
  display: inline-block;
  background: var(--c-white);
  border: 1px solid var(--c-mist);
  border-top: 2.5px solid var(--c-forest);
  padding: 18px 16px 16px;
  border-radius: var(--r-md);
  min-width: 160px;
  max-width: 200px;
  box-shadow: var(--s-2);
  position: relative;
  white-space: normal;
  transition: var(--t-base);
}

.org-node:hover {
  transform: translateY(-5px);
  box-shadow: var(--s-4);
  border-top-color: var(--c-gold);
}

.org-role {
  display: block;
  font-size: .62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--c-forest);
  margin-bottom: 5px;
}

.org-name {
  display: block;
  font-size: .82rem;
  font-weight: 500;
  color: var(--c-stone);
  line-height: 1.4;
}

.org-node.komite {
  border-top-color: var(--c-gold);
  border-style: dashed;
}

.org-photo {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 50%;
  margin: 10px auto 0;
  display: block;
  border: 2px solid var(--c-mist);
  box-shadow: var(--s-1);
  background: var(--c-frost);
}

/* ================================================================
   12. FASILITAS CARDS
   ================================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
}

.card {
  background: var(--c-white);
  border: 1px solid var(--c-mist);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--t-base), border-color var(--t-base);
}

/* No left border accent bar — too template-y */
.card-accent {
  display: none;
}

.card:hover {
  box-shadow: var(--s-3);
  border-color: var(--c-smoke);
}

.card-img-wrap {
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform .5s ease;
  display: block;
}

.card:hover .card-img {
  transform: scale(1.03);
}

.card-content {
  padding: 18px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-tag {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-slate);
  margin-bottom: 6px;
}

.card-content h3 {
  font-size: .975rem;
  font-weight: 700;
  color: var(--c-forest);
  margin-bottom: 6px;
  letter-spacing: -.01em;
}

.card-content p {
  font-size: .875rem;
  color: var(--c-slate);
  flex: 1;
  line-height: 1.6;
}

/* ================================================================
   13. PRESTASI SECTION
   ================================================================ */
.prestasi-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: var(--sp-5);
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}

.prestasi-carousel:active {
  cursor: grabbing;
}

.prestasi-carousel::-webkit-scrollbar {
  display: none;
}

.prestasi-carousel .card {
  min-width: 300px;
  flex: 0 0 auto;
}

@media (min-width: 992px) {
  .prestasi-carousel .card {
    min-width: unset;
    flex: 0 0 calc((100% - 40px) / 3);
  }
}

.prestasi-date {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--c-jade);
  background: rgba(0, 77, 64, .07);
  padding: 3px 12px;
  border-radius: var(--r-pill);
  margin-bottom: var(--sp-2);
  align-self: flex-start;
}

/* ================================================================
   14. MAPS SECTION
   ================================================================ */
.map-container {
  width: 100%;
  height: 460px;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--s-5);
  border: 1px solid var(--c-mist);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ================================================================
   15. CONTACT SECTION
   ================================================================ */
.contact-wrapper {
  display: grid;
  grid-template-columns: 2fr 3fr;
  border-radius: var(--r-2xl);
  overflow: hidden;
  box-shadow: var(--s-5);
  border: 1px solid var(--c-mist);
}

/* Info Panel */
.contact-info {
  background: linear-gradient(155deg, var(--c-forest) 0%, var(--c-forest-deep) 100%);
  padding: 56px 48px;
  position: relative;
  overflow: hidden;
}

/* decorative circle */
.contact-info::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(197, 165, 96, .06);
  border: 1px solid rgba(197, 165, 96, .12);
}

.contact-info::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .03);
}

.contact-info h3,
.contact-form h3 {
  font-family: var(--f-serif);
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: var(--sp-2);
  letter-spacing: -.02em;
}

.contact-info h3 {
  color: var(--c-white);
}

.contact-info h3::after,
.contact-form h3::after {
  display: none;
}

.contact-info>p {
  font-size: .9rem;
  color: rgba(255, 255, 255, .6);
  line-height: 1.75;
  margin-bottom: var(--sp-7);
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
  position: relative;
  z-index: 1;
}

.info-item .icon {
  width: 44px;
  height: 44px;
  background: rgba(197, 165, 96, .12);
  border: 1px solid rgba(197, 165, 96, .22);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: background var(--t-base);
}

.info-item:hover .icon {
  background: rgba(197, 165, 96, .2);
}

.info-item h4 {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--c-gold);
  margin-bottom: 3px;
}

.info-item p {
  font-size: .88rem;
  color: rgba(255, 255, 255, .75);
  line-height: 1.6;
}

/* Form Panel */
.contact-form {
  background: var(--c-white);
  padding: 56px 52px;
}

.contact-form h3 {
  color: var(--c-forest);
  margin-bottom: var(--sp-6);
}

.form-group {
  margin-bottom: var(--sp-4);
}

.form-group label {
  display: block;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--c-forest);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--c-snow);
  border: 1.5px solid var(--c-mist);
  border-radius: var(--r-sm);
  font-family: var(--f-sans);
  font-size: .9rem;
  color: var(--c-ink);
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--c-forest);
  background: var(--c-white);
  box-shadow: 0 0 0 3px rgba(0, 77, 64, .09);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 40px;
  background: linear-gradient(135deg, var(--c-forest) 0%, var(--c-jade) 100%);
  color: var(--c-white);
  font-family: var(--f-sans);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .05em;
  border: none;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: var(--t-base);
  box-shadow: var(--s-green);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0, 77, 64, .38);
  filter: brightness(1.06);
}

/* ================================================================
   16. FOOTER
   ================================================================ */
.footer {
  background: var(--c-ink);
  color: rgba(255, 255, 255, .65);
  padding: var(--sp-9) 0 var(--sp-6);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--c-gold), var(--c-gold-light), var(--c-gold), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: var(--sp-8);
  margin-bottom: var(--sp-8);
}

.footer-brand .logo {
  color: var(--c-white);
  font-size: .95rem;
  margin-bottom: var(--sp-3);
}

.footer-brand .logo span {
  color: var(--c-gold);
}

.footer-brand p {
  font-size: .85rem;
  line-height: 1.75;
  max-width: 300px;
  margin-bottom: var(--sp-5);
}

.social-links {
  display: flex;
  gap: var(--sp-2);
  margin-bottom: 0;
}

.social-links a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .6);
  transition: var(--t-base);
}

.social-links a:hover {
  background: var(--c-gold);
  border-color: var(--c-gold);
  color: var(--c-forest-deep);
  transform: translateY(-3px);
}

.footer-col h5 {
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--c-white);
  margin-bottom: var(--sp-4);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul a {
  font-size: .85rem;
  color: rgba(255, 255, 255, .5);
  transition: color var(--t-fast), padding-left var(--t-fast);
}

.footer-col ul a:hover {
  color: var(--c-gold-light);
  padding-left: 4px;
}

.footer-bottom {
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(255, 255, 255, .07);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: .78rem;
  opacity: .4;
}

/* ================================================================
   17. MODAL — PPDB FORM
   ================================================================ */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: rgba(0, 20, 16, .6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow-y: auto;
  animation: fadeIn .3s ease;
}

.modal-content {
  background: var(--c-white);
  margin: 5% auto;
  padding: 48px;
  border-radius: var(--r-2xl);
  width: 90%;
  max-width: 680px;
  box-shadow: var(--s-5);
  position: relative;
  animation: fadeSlideDown .35s ease;
  border-top: 3px solid var(--c-gold);
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--c-slate);
  cursor: pointer;
  line-height: 1;
  transition: color var(--t-fast);
  background: none;
  border: none;
}

.close-btn:hover {
  color: var(--c-forest);
}

.modal-header {
  text-align: center;
  margin-bottom: var(--sp-6);
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--c-mist);
}

.modal-header h2 {
  font-size: 1.55rem;
  color: var(--c-forest);
  font-family: var(--f-serif);
  margin-bottom: 6px;
}

.modal-header p {
  font-size: .87rem;
  color: var(--c-slate);
}

.ppdb-form .form-row {
  display: flex;
  gap: var(--sp-4);
}

.ppdb-form .half {
  flex: 1;
}

/* ================================================================
   18. LIVE CHAT WIDGET
   ================================================================ */
.contact-widget {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: var(--z-chat);
  font-family: var(--f-sans);
}

.contact-fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-forest), var(--c-jade));
  color: var(--c-white);
  border: none;
  box-shadow: var(--s-green);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--t-spring);
  outline: none;
}

.contact-fab:hover {
  transform: scale(1.12) rotate(8deg);
  box-shadow: 0 12px 32px rgba(0, 77, 64, .42);
}

.contact-popup {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 340px;
  height: 440px;
  background: var(--c-white);
  border-radius: var(--r-xl);
  box-shadow: var(--s-5);
  border: 1px solid var(--c-mist);
  overflow: hidden;
  transform: scale(.85) translateY(12px);
  transform-origin: bottom right;
  transition: transform .32s cubic-bezier(0.34, 1.56, 0.64, 1), opacity .25s ease, visibility .25s ease;
  opacity: 0;
  visibility: hidden;
  display: flex;
  flex-direction: column;
}

.contact-popup.active {
  transform: scale(1) translateY(0);
  opacity: 1;
  visibility: visible;
}

.chat-header {
  background: linear-gradient(135deg, var(--c-forest), var(--c-jade));
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-info h4 {
  color: var(--c-white);
  font-size: .92rem;
  font-weight: 700;
  margin: 0;
}

.status-dot {
  width: 7px;
  height: 7px;
  background: #25d366;
  border-radius: 50%;
  display: inline-block;
  margin-top: 3px;
  box-shadow: 0 0 8px rgba(37, 211, 102, .7);
  animation: pulse-dot 2.2s ease infinite;
}

.close-popup {
  background: none;
  border: none;
  color: rgba(255, 255, 255, .7);
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
  transition: color var(--t-fast);
}

.close-popup:hover {
  color: var(--c-white);
}

.chat-body {
  flex: 1;
  padding: 16px;
  background: var(--c-snow);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.message {
  max-width: 82%;
  padding: 9px 13px;
  border-radius: var(--r-md);
  font-size: .855rem;
  line-height: 1.5;
}

.message.incoming {
  background: var(--c-white);
  color: var(--c-ink);
  align-self: flex-start;
  border-bottom-left-radius: var(--r-xs);
  box-shadow: var(--s-1);
}

.message.outgoing {
  background: #dcf8c6;
  color: var(--c-ink);
  align-self: flex-end;
  border-bottom-right-radius: var(--r-xs);
  box-shadow: var(--s-1);
}

.message .time {
  display: block;
  font-size: .64rem;
  color: var(--c-slate);
  margin-top: 3px;
  text-align: right;
}

.chat-footer {
  padding: 10px 12px;
  background: var(--c-white);
  border-top: 1px solid var(--c-mist);
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-footer input {
  flex: 1;
  padding: 8px 13px;
  border: 1.5px solid var(--c-mist);
  border-radius: var(--r-pill);
  font-family: var(--f-sans);
  font-size: .855rem;
  outline: none;
  background: var(--c-snow);
  transition: var(--t-fast);
}

.chat-footer input:focus {
  border-color: var(--c-forest);
  background: var(--c-white);
}

.chat-footer button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-forest), var(--c-jade));
  color: var(--c-white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--t-fast);
}

.chat-footer button:hover {
  transform: scale(1.08);
  filter: brightness(1.1);
}

/* ================================================================
   19. KEYFRAMES
   ================================================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================================================================
   20. RESPONSIVE
   ================================================================ */

/* ─── Tablet ≤ 1024px ─── */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* ─── Tablet ≤ 900px ─── */
@media (max-width: 900px) {
  .profile-content {
    grid-template-columns: 1fr;
    gap: var(--sp-7);
  }

  .profile-image {
    position: static;
    max-width: 340px;
    margin: 0 auto;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .contact-info {
    padding: 44px 36px;
  }

  .contact-form {
    padding: 44px 36px;
  }
}

/* ─── Mobile ≤ 768px ─── */
@media (max-width: 768px) {
  section {
    padding: var(--sp-8) 0;
  }

  .header {
    height: 62px;
  }

  .navbar {
    gap: var(--sp-3);
  }

  /* hide divider on mobile */
  .logo {
    border-right: none;
    padding-right: 0;
    font-size: .8rem;
  }

  .nav-links {
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    background: var(--c-white);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    flex: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s cubic-bezier(.4, 0, .2, 1);
    box-shadow: var(--s-4);
    border-top: 1px solid var(--c-mist);
    border-radius: 0 0 var(--r-lg) var(--r-lg);
    z-index: 50;
  }

  .nav-links.active {
    max-height: 560px;
  }

  .nav-links li {
    margin: 0;
  }

  .nav-links>li>a {
    padding: 13px 20px;
    border-radius: 0;
    border-bottom: 1px solid var(--c-frost);
    font-size: .9rem;
    justify-content: flex-start;
  }

  .nav-links>li>a::after {
    display: none;
  }

  /* hide desktop CTA on mobile */
  .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .dropdown-content {
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: var(--c-snow);
    opacity: 1;
    transform: none;
    padding: 0;
    overflow: visible;
  }

  .dropdown-content::before {
    display: none;
  }

  .dropdown-content a {
    padding-left: 36px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero h1 {
    font-size: 2.6rem;
  }

  .map-container {
    height: 340px;
  }

  .contact-info {
    padding: 36px 28px;
  }

  .contact-form {
    padding: 36px 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ─── Small Mobile ≤ 480px ─── */
@media (max-width: 480px) {
  section {
    padding: var(--sp-7) 0;
  }

  .hero h1 {
    font-size: 2.1rem;
    letter-spacing: -.03em;
  }

  .hero-desc {
    font-size: .9rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat-item {
    padding: var(--sp-5) var(--sp-4);
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .tabs {
    flex-wrap: wrap;
  }

  .tab-button {
    flex: 1 1 auto;
    text-align: center;
    font-size: .78rem;
    padding: 9px 12px;
  }

  .modal-content {
    margin: 5% auto;
    padding: 28px 20px;
    width: 94%;
  }

  .ppdb-form .form-row {
    flex-direction: column;
    gap: 0;
  }

  .contact-widget {
    bottom: 16px;
    right: 16px;
  }

  .contact-fab {
    width: 50px;
    height: 50px;
  }

  .contact-popup {
    width: 290px;
  }
}