/* ══════════════════════════════════════════════════════════════
   SMAN 21 Surabaya — Main Stylesheet
   Design System: Indigo Navy + Silver | DM Serif Display + Plus Jakarta Sans
══════════════════════════════════════════════════════════════ */

/* ── Design Tokens ── */
:root {
  --navy-darkest: #041228;
  --navy-dark: #0a1a36;
  --navy: #19427D;
  --navy-mid: #234E8C;
  --gold: #C9A227;
  --gold-light: rgba(201, 162, 39, 0.12);
  --gold-border: rgba(201, 162, 39, 0.35);
  --bg-primary: #F5F8FD;
  --bg-alt: #EAF0FA;
  --white: #FFFFFF;
  --text-primary: #0A1628;
  --text-secondary: #3A5070;
  --border: #C8D8EE;
  --card-bg: #FFFFFF;
  --stats-bg: #0a1a36;
  --footer-bg: #020b18;
  --cta-bg-start: #19427D;
  --cta-bg-end: #041228;
  --heading-font: 'DM Serif Display', Georgia, serif;
  --body-font: 'Plus Jakarta Sans', system-ui, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-pill: 50px;
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.15);
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-h: 72px;
}

/* ── Reset ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--body-font);
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

button {
  font-family: var(--body-font);
}

::selection {
  background: rgba(201, 162, 39, 0.25);
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(201, 162, 39, 0.3);
  border-radius: 3px;
}

/* ── Layout ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Animations ── */
@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: 0.35
  }
}

@keyframes slide-progress {
  from {
    width: 0%
  }

  to {
    width: 100%
  }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(24px)
  }

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

@keyframes count-up {
  from {
    opacity: 0
  }

  to {
    opacity: 1
  }
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease var(--delay, 0s), transform 0.7s ease var(--delay, 0s);
}

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

/* ═══════════════════════════════════════════
   HEADER / NAVBAR
═══════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.4s, backdrop-filter 0.4s,
    box-shadow 0.4s;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: rgba(10, 22, 40, 0.08);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.nav-logo-img {
  height: 44px;
  width: auto;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
}

.nav-logo-name {
  font-family: var(--heading-font);
  font-size: 20px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.nav-logo-sub {
  font-size: 13px;
  color: rgba(201, 162, 39, 0.75);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Desktop nav links */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-desktop .nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-desktop .nav-links li a,
.nav-desktop .nav-links li>a {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.01em;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}

.site-header.scrolled .nav-desktop .nav-links li a {
  color: var(--text-primary);
}

.nav-desktop .nav-links li a:hover,
.nav-desktop .nav-links li.current-menu-item a {
  color: var(--gold);
  background: rgba(201, 162, 39, 0.08);
}

.nav-desktop .nav-links li.current-menu-item a {
  border-bottom-color: var(--gold);
}

/* Dropdown / Sub-menu */
.nav-desktop .nav-links li {
  position: relative;
}

.nav-desktop .nav-links .menu-item-has-children > a {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-desktop .nav-links .menu-item-has-children > a::after {
  content: '';
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
  transition: transform 0.3s;
  opacity: 0.7;
}

.nav-desktop .nav-links .menu-item-has-children:hover > a::after {
  transform: translateY(1px) rotate(225deg);
}

.nav-desktop .nav-links .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff !important;
  min-width: 240px;
  padding: 12px 0;
  border-radius: var(--radius-md);
  box-shadow: 0 15px 45px rgba(0,0,0,0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 9999;
  margin-top: 10px;
  border: 1px solid rgba(0,0,0,0.05);
}

.nav-desktop .nav-links li:hover > .sub-menu,
.nav-desktop .nav-links li.active > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-desktop .nav-links .sub-menu li {
  width: 100%;
  display: block;
  margin: 0;
}

.nav-desktop .nav-links .sub-menu li a {
  display: block !important;
  padding: 10px 24px !important;
  color: var(--navy-darkest) !important; /* Force dark text */
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  border-radius: 0 !important;
  border-bottom: none !important;
  background: transparent !important;
  text-align: left !important;
  transition: all 0.2s;
}

.nav-desktop .nav-links .sub-menu li a:hover {
  color: var(--gold) !important;
  background: var(--bg-primary) !important;
  padding-left: 28px !important;
}

.nav-desktop .nav-links .sub-menu .current-menu-item > a {
  color: var(--gold) !important;
  font-weight: 600 !important;
}

/* SPMB Button */
.btn-spmb {
  margin-left: 8px;
  background: var(--gold);
  color: rgb(229, 227, 224) !important;
  border: none;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.02em;
  box-shadow: 0 4px 15px rgba(201, 162, 39, 0.3);
  transition: var(--transition);
  cursor: pointer;
  display: inline-block;
}

.btn-spmb:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(201, 162, 39, 0.4);
  color: rgb(229, 227, 224) !important;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}

.site-header.scrolled .nav-hamburger span {
  background: var(--text-primary);
}

.nav-hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  background: #fff;
  padding: 1rem 2rem 1.5rem;
  border-top: 1px solid rgba(201, 162, 39, 0.15);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.mobile-menu.open {
  display: block;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-nav-links li a {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: color 0.2s;
}

.mobile-nav-links li a:hover {
  color: var(--gold);
}

/* Mobile Sub-menu */
.mobile-nav-links .menu-item-has-children > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-nav-links .menu-item-has-children > a::after {
  content: '+';
  font-family: monospace;
  font-size: 18px;
  font-weight: 400;
  transition: transform 0.3s;
  color: var(--gold);
}

.mobile-nav-links .menu-item-has-children.open > a::after {
  content: '−';
}

.mobile-nav-links .sub-menu {
  display: none;
  padding-left: 15px;
  background: #f8fafd;
  border-left: 2px solid var(--gold-light);
  margin: 5px 0 10px 5px;
}

.mobile-nav-links .menu-item-has-children.open > .sub-menu {
  display: block;
}

.mobile-nav-links .sub-menu li a {
  font-size: 14px;
  padding: 10px 15px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  color: var(--text-secondary);
}

.mobile-spmb {
  display: inline-block;
  margin-top: 16px;
}

/* ═══════════════════════════════════════════
   HERO SLIDESHOW
═══════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease, visibility 0s linear 0.9s;
  z-index: 0;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.9s ease, visibility 0s linear 0s;
  z-index: 1;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay-h {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.45) 55%, rgba(0, 0, 0, 0.15) 100%);
}

.hero-overlay-v {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  padding-top: calc(var(--nav-h) + 28px);
}

.hero-text-wrap {
  max-width: 640px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  margin-bottom: 28px;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse-dot 2s infinite;
  flex-shrink: 0;
}

.hero-badge-text {
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.hero-title {
  font-family: var(--heading-font);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.12;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  transition: opacity 0.5s, transform 0.5s;
}

.hero-title.transitioning {
  opacity: 0;
  transform: translateY(16px);
}

.hero-title-accent {
  color: var(--gold);
}

.hero-subtitle {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 480px;
  transition: opacity 0.5s 0.1s;
}

.hero-subtitle.transitioning {
  opacity: 0;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  flex-wrap: wrap;
}

.hero-stat-val {
  font-family: var(--heading-font);
  font-size: 24px;
  font-weight: 700;
  color: var(--gold);
}

.hero-stat-lbl {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Arrows */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  cursor: pointer;
  color: #fff;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.25);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

/* Dots */
.hero-dots {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 20;
}

.hero-dot {
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: all 0.4s;
  padding: 0;
  width: 8px;
}

.hero-dot.active {
  width: 28px;
  background: var(--gold);
}

/* Slide Caption Overlay */
.hero-slide-caption {
  position: absolute;
  bottom: 72px;
  right: 80px;
  background: rgba(7, 22, 40, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: 12px;
  padding: 1rem 1.3rem;
  max-width: 300px;
  z-index: 15;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  pointer-events: none;
}

.hero-slide.active .hero-slide-caption {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.45s;
}

.hero-slide-caption-title {
  font-family: var(--heading-font);
  color: var(--gold);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.3rem;
}

.hero-slide-caption-sub {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  line-height: 1.45;
  margin-bottom: 0.5rem;
}

.hero-slide-caption-num {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(201, 162, 39, 0.6);
}

@media (max-width: 900px) {
  .hero-slide-caption {
    right: 1.5rem;
    max-width: 220px;
    padding: 0.75rem 1rem;
  }

  .hero-slide-caption-title {
    font-size: 0.88rem;
  }

  .hero-slide-caption-sub {
    font-size: 0.76rem;
  }
}

@media (max-width: 600px) {
  .hero-slide-caption {
    bottom: 60px;
    right: 1rem;
    left: 1rem;
    max-width: none;
    padding: 0.6rem 0.9rem;
  }
}

/* Progress */
.hero-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 20;
}

.hero-progress-bar {
  height: 100%;
  background: var(--gold);
  width: 0%;
}

.hero-progress-bar.running {
  animation: slide-progress 5.5s linear forwards;
}

/* ═══════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════ */
.btn-primary {
  display: inline-block;
  background: var(--gold);
  border: none;
  cursor: pointer;
  font-family: var(--body-font);
  font-size: 15px;
  font-weight: 700;
  color: #0A1628;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  transition: var(--transition);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(201, 162, 39, 0.4);
  color: #0A1628;
}

.btn-ghost {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  cursor: pointer;
  font-family: var(--body-font);
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  transition: var(--transition);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.btn-ghost-light {
  display: inline-block;
  background: transparent;
  border: 1.5px solid rgba(240, 237, 232, 0.4);
  cursor: pointer;
  font-family: var(--body-font);
  font-size: 15px;
  font-weight: 500;
  color: #F0EDE8;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  transition: var(--transition);
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.btn-outline {
  display: inline-block;
  background: none;
  border: 1.5px solid var(--gold);
  cursor: pointer;
  font-family: var(--body-font);
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  transition: var(--transition);
  white-space: nowrap;
}

.btn-outline:hover {
  background: var(--gold);
  color: #041228;
}

/* ═══════════════════════════════════════════
   STATS BAR
═══════════════════════════════════════════ */
.stats-bar {
  background: var(--stats-bg);
  padding: 0 2rem;
}

.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.stat-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.stat-number {
  font-family: var(--heading-font);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  color: rgba(240, 237, 232, 0.5);
  margin-top: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════
   SECTION COMMONS
═══════════════════════════════════════════ */
.section-label {
  display: block;
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--heading-font);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 16px auto 0;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════
   PROGRAMS
═══════════════════════════════════════════ */
.section-programs {
  padding: 6rem 2rem;
  background: var(--bg-primary);
}

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

.program-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.program-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
  background: var(--bg-alt);
}

.program-icon {
  font-size: 36px;
  margin-bottom: 16px;
}

.program-title {
  font-family: var(--heading-font);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.program-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.program-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
}

.arrow-icon {
  transition: transform 0.2s;
}

.program-card:hover .arrow-icon {
  transform: translateX(4px);
}

/* ═══════════════════════════════════════════
   WHY SMAN 21
═══════════════════════════════════════════ */
.section-why {
  padding: 6rem 2rem;
  background: var(--bg-alt);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.why-left .section-title {
  margin-bottom: 20px;
}

.why-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 32px;
}

.why-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.why-feature {
  display: flex;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.why-feature:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-sm);
}

.why-feature-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.why-feature-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.why-feature-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.photo-grid-item {
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(201, 162, 39, 0.15);
  background: linear-gradient(135deg, rgba(27, 58, 107, 0.2), rgba(13, 33, 68, 0.4));
}


.photo-grid-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 12px 12px 10px;
  text-align: center;
}

.photo-grid-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0;
  cursor: zoom-in;
  width: 100%;
  height: 100%;
}

.photo-grid-btn img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.photo-grid-btn:hover img {
  transform: scale(1.07);
}

.photo-grid-zoom {
  position: relative;
  z-index: 1;
  background: rgba(212,175,55,0.88);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.25s, transform 0.25s;
}

.photo-grid-btn:hover .photo-grid-zoom {
  opacity: 1;
  transform: scale(1);
}

/* ── Facility Lightbox ── */
.facility-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0s linear 0.25s;
}

.facility-lightbox.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s, visibility 0s linear 0s;
}

.facility-lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5,15,35,0.94);
  cursor: zoom-out;
}

.facility-lb-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  max-width: 90vw;
}

.facility-lb-inner img {
  max-width: 90vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}

.facility-lb-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 1rem;
}

.facility-lb-caption {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
}

.facility-lb-counter {
  color: rgba(255,255,255,0.45);
  font-size: 0.8rem;
  white-space: nowrap;
}

.facility-lb-close {
  position: fixed;
  top: 1.25rem;
  right: 1.5rem;
  z-index: 2;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}

.facility-lb-close:hover {
  background: rgba(255,255,255,0.2);
}

.facility-lb-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.facility-lb-nav:hover {
  background: rgba(212,175,55,0.3);
  border-color: rgba(212,175,55,0.5);
}

.facility-lb-prev { left: 1.25rem; }
.facility-lb-next { right: 1.25rem; }

/* ═══════════════════════════════════════════
   TESTIMONIALS
═══════════════════════════════════════════ */
.section-testimonials {
  padding: 6rem 2rem;
  background: var(--bg-alt);
}

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

.testi-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  transition: var(--transition);
}

.testi-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.testi-quote-mark {
  color: var(--gold);
  font-size: 32px;
  font-family: Georgia, serif;
  line-height: 1;
  margin-bottom: 16px;
}

.testi-quote {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 20px;
  font-style: italic;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testi-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--heading-font);
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}

.testi-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.testi-role {
  font-size: 12px;
  color: var(--gold);
}

/* ═══════════════════════════════════════════
   NEWS
═══════════════════════════════════════════ */
.section-news {
  padding: 6rem 2rem;
  background: var(--bg-primary);
}

.news-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
}

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

.news-card {
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.news-card-img {
  height: 180px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  position: relative;
  overflow: hidden;
}

.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
}

.news-cat-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--gold);
  color: #041228;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.news-date-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.news-card-body {
  padding: 1.25rem;
}

.news-card-title {
  font-family: var(--heading-font);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.4;
}

.news-card-title a {
  color: inherit;
  transition: color 0.2s;
}

.news-card-title a:hover {
  color: var(--gold);
}

.news-card-excerpt {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════
   CTA BANNER
═══════════════════════════════════════════ */
.section-cta {
  padding: 5rem 2rem;
  background: linear-gradient(135deg, #19427D 0%, #041228 100%);
  position: relative;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 50%, rgba(212, 175, 55, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.cta-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.cta-inner .section-label {
  margin-bottom: 16px;
}

.cta-title {
  font-family: var(--heading-font);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: #F0EDE8;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.cta-desc {
  font-size: 16px;
  color: rgba(240, 237, 232, 0.7);
  line-height: 1.75;
  margin-bottom: 36px;
}

.cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-buttons .btn-primary {
  box-shadow: 0 8px 32px rgba(212, 175, 55, 0.3);
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.site-footer {
  background: var(--footer-bg);
  padding: 4rem 2rem 2rem;
  border-top: 1px solid rgba(201, 162, 39, 0.1);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {}

.footer-logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-logo-img {
  height: 40px;
  width: auto;
}

.footer-logo-name {
  font-family: var(--heading-font);
  font-size: 16px;
  font-weight: 700;
  color: var(--gold);
}

.footer-logo-sub {
  font-size: 11px;
  color: rgba(201, 162, 39, 0.6);
}

.footer-tagline {
  font-size: 13px;
  color: rgba(240, 237, 232, 0.5);
  line-height: 1.75;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.footer-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(201, 162, 39, 0.25);
  color: rgba(240, 237, 232, 0.7);
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
  text-decoration: none;
}

.footer-social-btn:hover {
  background: var(--gold);
  color: var(--navy-darkest);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.footer-col-title {
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer-links li,
.footer-links li a {
  font-size: 13px;
  color: rgba(240, 237, 232, 0.55);
  margin-bottom: 10px;
  transition: color 0.2s;
  cursor: pointer;
}

.footer-links li a:hover,
.footer-links li:hover {
  color: var(--gold);
}

.footer-contact li {
  cursor: default;
}

.footer-contact li:hover {
  color: rgba(240, 237, 232, 0.55);
}

.footer-contact li a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: rgba(240, 237, 232, 0.35);
}

/* ═══════════════════════════════════════════
   PAGE HERO (Inner Pages)
═══════════════════════════════════════════ */
.page-hero {
  background: linear-gradient(135deg, #041228 0%, #0a1a36 45%, #19427D 100%);
  padding: 9rem 2rem 5rem;
  position: relative;
  overflow: hidden;
}

.page-hero-glow {
  position: absolute;
  top: 20%;
  right: 10%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.page-hero-label {
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 16px;
}

.page-hero-title {
  font-family: var(--heading-font);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: #F0EDE8;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  max-width: 640px;
  line-height: 1.15;
}

.page-hero-subtitle {
  font-size: 16px;
  color: rgba(240, 237, 232, 0.65);
  max-width: 500px;
  line-height: 1.75;
}

/* ═══════════════════════════════════════════
   ABOUT PAGE
═══════════════════════════════════════════ */
.section-vision-mission {
  padding: 5rem 2rem;
  background: var(--bg-alt);
}

.vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.vm-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  transition: var(--transition);
}

.vm-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
}

.vm-icon {
  font-size: 36px;
  margin-bottom: 16px;
}

.vm-title {
  font-family: var(--heading-font);
  font-size: 24px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 16px;
}

.vm-body {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.section-principal {
  padding: 5rem 2rem;
  background: linear-gradient(135deg, #071628 0%, #0d2244 45%, #071628 100%);
  position: relative;
  overflow: hidden;
}

.principal-glow-orb {
  position: absolute;
  top: -120px;
  right: -120px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(212,175,55,0.08) 0%, transparent 65%);
  pointer-events: none;
}

.principal-wrap {
  max-width: 1040px;
  margin: 0 auto;
}

.principal-card {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
}

.principal-photo {
  flex-shrink: 0;
  width: 120px;
  height: 150px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.principal-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.principal-content {
  flex: 1;
}

.principal-quote-mark {
  color: var(--gold);
  font-size: 40px;
  font-family: Georgia;
  line-height: 1;
  margin-bottom: 16px;
}

.principal-quote {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 20px;
}

.principal-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.principal-role {
  font-size: 12px;
  color: var(--gold);
}

.section-timeline {
  padding: 5rem 2rem;
  background: var(--bg-alt);
}

.timeline-wrap {
  max-width: 900px;
  margin: 0 auto;
}

.timeline-list {
  position: relative;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, rgba(201, 162, 39, 0.44), rgba(201, 162, 39, 0.22));
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
  align-items: flex-start;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-content {
  flex: 1;
  text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
  text-align: left;
}

.timeline-card-inner {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  display: inline-block;
  max-width: 320px;
  text-align: left;
  transition: var(--transition);
}

.timeline-card-inner:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-sm);
}

.timeline-year {
  font-family: var(--heading-font);
  font-size: 13px;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}

.timeline-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.timeline-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.timeline-dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 1;
  font-size: 11px;
  font-weight: 700;
  color: #041228;
  align-self: flex-start;
  margin-top: 10px;
}

.timeline-spacer {
  flex: 1;
}

/* ═══════════════════════════════════════════
   PROGRAMS PAGE
═══════════════════════════════════════════ */
.section-program-tabs {
  padding: 4rem 2rem;
  background: var(--bg-alt);
}

.program-tab-nav {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.program-tab-btn {
  background: transparent;
  border: 2px solid var(--border);
  cursor: pointer;
  font-family: var(--body-font);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  padding: 12px 32px;
  border-radius: var(--radius-pill);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.program-tab-btn.active,
.program-tab-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #041228;
}

.program-tab-content {
  display: none;
}

.program-tab-content.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.prog-full-label {
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 8px;
}

.prog-heading {
  font-family: var(--heading-font);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.prog-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 28px;
}

.prog-section-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.prog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.prog-tag {
  font-size: 13px;
  color: var(--gold);
  background: rgba(201, 162, 39, 0.1);
  border: 1px solid rgba(201, 162, 39, 0.25);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
}

.prog-prospects {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prog-prospect {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

.prog-prospect-check {
  color: var(--gold);
}

.prog-achievements-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.prog-achievement-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.prog-achievement-item:last-child {
  border-bottom: none;
}

.prog-achievement-icon {
  color: var(--gold);
  font-size: 18px;
  flex-shrink: 0;
}

.prog-achievement-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.prog-photo-placeholder {
  aspect-ratio: 16/9;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(27, 58, 107, 0.3), rgba(13, 33, 68, 0.6));
  border: 1px solid rgba(201, 162, 39, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 11px;
  font-family: monospace;
  text-align: center;
}

.section-extracurricular {
  padding: 5rem 2rem;
  background: var(--bg-primary);
}

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

.extra-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.extra-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.extra-icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.extra-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

/* ═══════════════════════════════════════════
   ADMISSIONS PAGE
═══════════════════════════════════════════ */
.section-steps {
  padding: 5rem 2rem;
  background: var(--bg-alt);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  position: relative;
}

.steps-line {
  position: absolute;
  top: 36px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(to right, rgba(201, 162, 39, 0.44), rgba(201, 162, 39, 0.22));
  z-index: 0;
}

.step-item {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-num {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-family: var(--heading-font);
  font-size: 20px;
  font-weight: 700;
  color: #041228;
  box-shadow: 0 8px 24px rgba(201, 162, 39, 0.3);
}

.step-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.step-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.section-schedule-req {
  padding: 5rem 2rem;
  background: var(--bg-primary);
}

.schedule-req-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.info-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.info-card-label {
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 20px;
}

.schedule-item {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.schedule-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 7px;
  flex-shrink: 0;
}

.schedule-date {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.schedule-event {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.req-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.req-item:last-child {
  border-bottom: none;
}

.req-check {
  color: var(--gold);
  flex-shrink: 0;
  font-size: 16px;
}

.req-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── Jadwal single (tanpa persyaratan) ── */
.schedule-single {
  max-width: 560px;
  margin: 0 auto;
}

/* ── Informasi SPMB — gallery gambar ── */
.section-spmb-info {
  padding: 5rem 2rem;
  background: var(--bg-primary);
}

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

.spmb-info-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.spmb-info-btn {
  position: relative;
  display: block;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  cursor: zoom-in;
  background: none;
  padding: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.spmb-info-btn:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.spmb-info-btn img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}

.spmb-info-btn:hover img {
  transform: scale(1.04);
}

.spmb-info-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7,22,40,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s;
}

.spmb-info-btn:hover .spmb-info-overlay {
  opacity: 1;
}

.spmb-info-zoom {
  font-size: 0.85rem;
  color: #fff;
  background: rgba(212,175,55,0.9);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-weight: 600;
}

.spmb-info-title {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-align: center;
  font-weight: 500;
}

/* ── Lightbox ── */
.spmb-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0s linear 0.25s;
}

.spmb-lightbox.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s, visibility 0s linear 0s;
}

.spmb-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5,15,35,0.94);
  cursor: zoom-out;
}

.spmb-lightbox-inner {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.spmb-lightbox-inner img {
  max-width: 90vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}

.spmb-lightbox-caption {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  text-align: center;
}

.spmb-lightbox-close {
  position: fixed;
  top: 1.25rem;
  right: 1.5rem;
  z-index: 2;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}

.spmb-lightbox-close:hover {
  background: rgba(255,255,255,0.2);
}

.spmb-lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spmb-lightbox-nav:hover {
  background: rgba(212,175,55,0.3);
  border-color: rgba(212,175,55,0.5);
}

.spmb-lb-prev { left: 1.25rem; }
.spmb-lb-next { right: 1.25rem; }

.spmb-lightbox-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 1rem;
}

.spmb-lightbox-counter {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  white-space: nowrap;
}

@media (max-width: 768px) {
  .spmb-info-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .spmb-info-grid {
    grid-template-columns: 1fr;
  }
}

.section-faq {
  padding: 5rem 2rem 6rem;
  background: var(--bg-alt);
}

.faq-wrap {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.25s;
  cursor: pointer;
}

.faq-item.open {
  border-color: var(--gold);
}

.faq-question {
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-q-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  padding-right: 1rem;
}

.faq-toggle {
  color: var(--gold);
  font-size: 18px;
  transition: transform 0.25s;
  flex-shrink: 0;
}

.faq-item.open .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 1.5rem 1.25rem;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
}
.faq-answer p { margin: 0 0 0.5rem; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer .vm-text-list { margin: 0.25rem 0 0.5rem 1.1rem; }

.faq-item.open .faq-answer {
  display: block;
}

.faq-cta {
  margin-top: 3rem;
  text-align: center;
  padding: 2.5rem;
  background: linear-gradient(135deg, #19427D, #041228);
  border-radius: var(--radius-lg);
}

.faq-cta-title {
  font-family: var(--heading-font);
  font-size: 22px;
  font-weight: 700;
  color: #F0EDE8;
  margin-bottom: 12px;
}

.faq-cta-desc {
  font-size: 14px;
  color: rgba(240, 237, 232, 0.7);
  margin-bottom: 24px;
}

/* ═══════════════════════════════════════════
   NEWS PAGE
═══════════════════════════════════════════ */
.section-news-featured {
  padding: 4rem 2rem 2rem;
  background: var(--bg-alt);
}

.featured-news {
  background: linear-gradient(135deg, #19427D, #041228);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.featured-news-content {
  padding: 3rem;
}

.featured-badge {
  display: inline-block;
  background: var(--gold);
  color: #041228;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.featured-title {
  font-family: var(--heading-font);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  color: #F0EDE8;
  margin-bottom: 12px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.featured-excerpt {
  font-size: 14px;
  color: rgba(240, 237, 232, 0.7);
  line-height: 1.75;
  margin-bottom: 20px;
}

.featured-date {
  font-size: 12px;
  color: rgba(201, 162, 39, 0.7);
}

.featured-news-img {
  position: relative;
  background: rgba(0, 0, 0, 0.3);
  overflow: hidden;
  min-height: 300px;
}

/* Slide */
.feat-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.feat-slide.active {
  opacity: 1;
  position: relative;
}

.feat-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 300px;
}

/* No-image fallback */
.feat-no-img {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  min-height: 300px;
  color: rgba(201, 162, 39, 0.3);
}

/* Prev / Next buttons */
.feat-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(201, 162, 39, 0.35);
  color: var(--gold);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: background 0.2s;
}

.feat-nav:hover {
  background: rgba(201, 162, 39, 0.3);
}

.feat-prev {
  left: 10px;
}

.feat-next {
  right: 10px;
}

/* Dots */
.feat-slider-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
}

.feat-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.feat-dot.active {
  background: var(--gold);
  transform: scale(1.3);
}

/* Counter badge */
.feat-counter {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(201, 162, 39, 0.3);
  color: var(--gold);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  z-index: 5;
}

.section-news-grid {
  padding: 3rem 2rem 5rem;
  background: var(--bg-primary);
}

.news-filter {
  display: flex;
  gap: 8px;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: 1.5px solid var(--border);
  cursor: pointer;
  font-family: var(--body-font);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #041228;
}

.filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.1);
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  padding: 1px 5px;
  border-radius: 20px;
  margin-left: 4px;
}

.filter-btn.active .filter-count {
  background: rgba(0, 0, 0, 0.2);
}

.featured-readmore {
  display: inline-block;
  margin-top: 1rem;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 162, 39, 0.4);
  padding-bottom: 2px;
  transition: opacity 0.2s;
}

.featured-readmore:hover {
  opacity: 0.75;
}

/* ═══════════════════════════════════════════
   CONTACT PAGE
═══════════════════════════════════════════ */
.section-contact {
  padding: 5rem 2rem 6rem;
  background: var(--bg-alt);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
}

.contact-info-label {
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 24px;
}

.contact-info-card {
  display: flex;
  gap: 16px;
  padding: 1.25rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  transition: var(--transition);
}

.contact-info-card:hover {
  border-color: var(--gold);
}

.contact-info-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.contact-info-label-sm {
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 4px;
}

.contact-info-val {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  white-space: pre-line;
}

.contact-map {
  height: 200px;
  border-radius: 16px;
  overflow: hidden;
  margin-top: 20px;
  border: 1px solid rgba(201, 162, 39, 0.15);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.contact-form-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
}

.contact-form-title {
  font-family: var(--heading-font);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.contact-form-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.6;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  font-family: var(--body-font);
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--gold);
}

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

.form-select {
  cursor: pointer;
}

.btn-submit {
  width: 100%;
  background: var(--gold);
  border: none;
  cursor: pointer;
  font-family: var(--body-font);
  font-size: 15px;
  font-weight: 700;
  color: #0A1628;
  padding: 14px;
  border-radius: 12px;
  transition: var(--transition);
  box-shadow: 0 6px 20px rgba(201, 162, 39, 0.25);
}

.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(201, 162, 39, 0.35);
}

.form-success {
  text-align: center;
  padding: 3rem 0;
}

.form-success-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.form-success-title {
  font-family: var(--heading-font);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-success-msg {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* ═══════════════════════════════════════════
   SINGLE POST
═══════════════════════════════════════════ */
/* ── Single Article Hero ── */
.single-hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy-darkest) 0%, var(--navy) 100%);
  padding: 5rem 2rem 4rem;
  overflow: hidden;
}

.single-hero.has-thumb {
  min-height: 480px;
  display: flex;
  align-items: flex-end;
}

.single-hero-bg {
  position: absolute;
  inset: 0;
}

.single-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 22, 40, 0.92) 0%, rgba(7, 22, 40, 0.6) 50%, rgba(7, 22, 40, 0.3) 100%);
}

.single-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
}

.single-hero-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.single-cat-badge {
  background: var(--gold);
  color: #041228;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.single-date-badge {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}

.single-hero-title {
  font-family: var(--heading-font);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.single-hero-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.single-author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold);
  color: #041228;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
}

.single-author-name {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

/* ── Single Article Body ── */
.single-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

.single-article {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.85;
}

/* ── Post Nav ── */
.single-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 3rem 0 2rem;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}

.post-nav-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: border-color 0.2s, background 0.2s;
  color: inherit;
  text-decoration: none;
}

.post-nav-item:hover {
  border-color: var(--gold);
  background: var(--gold-light);
}

.post-nav-next {
  text-align: right;
}

.post-nav-dir {
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.post-nav-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

.single-back-wrap {
  margin-top: 1rem;
}

/* ── Legacy fallback (kept for compat) ── */
.single-post {
  padding: 5rem 2rem;
  background: var(--bg-primary);
}

.single-inner {
  max-width: 800px;
  margin: 0 auto;
}

.single-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 600;
  margin-top: 2rem;
  transition: gap 0.2s;
}

.single-back:hover {
  gap: 12px;
}

/* ═══════════════════════════════════════════
   INDEX / BLOG FALLBACK
═══════════════════════════════════════════ */
.section-blog {
  padding: 5rem 2rem;
  background: var(--bg-primary);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

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

  .why-grid {
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-h: 64px;
  }

  /* Nav */
  .nav-desktop {
    display: none !important;
  }

  .nav-hamburger {
    display: flex !important;
  }

  /* Hero */
  .hero-title {
    font-size: clamp(2rem, 7vw, 3rem);
  }

  .hero-cta .btn-ghost {
    display: none;
  }

  .hero-prev {
    left: 12px;
  }

  .hero-next {
    right: 12px;
  }

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

  /* Grids */
  .programs-grid,
  .testimonials-grid,
  .news-grid,
  .blog-grid,
  .vm-grid,
  .featured-news {
    grid-template-columns: 1fr;
  }

  .why-grid,
  .contact-grid,
  .schedule-req-grid,
  .program-tab-content.active {
    grid-template-columns: 1fr;
  }

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

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

  .steps-line {
    display: none;
  }

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

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

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

  /* News header */
  .news-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  /* Principal card */
  .principal-card {
    flex-direction: column;
  }

  /* Timeline */
  .timeline-line {
    display: none;
  }

  .timeline-item {
    flex-direction: column !important;
  }

  .timeline-content {
    text-align: left !important;
  }

  .timeline-spacer {
    display: none;
  }

  .timeline-dot {
    margin: 0;
  }

  /* Form row */
  .form-row {
    grid-template-columns: 1fr;
  }

  /* Featured news */
  .featured-news-content {
    padding: 2rem;
  }

  .featured-news-img {
    min-height: 200px;
  }

  /* Section hero */
  .page-hero {
    padding: 7rem 2rem 3rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .section-programs,
  .section-why,
  .section-testimonials,
  .section-news,
  .section-cta,
  .section-vision-mission,
  .section-principal,
  .section-timeline,
  .section-steps,
  .section-schedule-req,
  .section-faq,
  .section-contact,
  .section-blog,
  .single-post {
    padding: 3rem 1rem;
  }

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

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

  .hero-stats {
    gap: 20px;
  }

  .hero-badge-text {
    font-size: 10px;
  }

  .footer-inner {
    padding: 0;
  }
}

/* ── Gutenberg / WordPress content blocks ── */
.wp-content.entry-content,
.page-content-inner .wp-content {
  color: var(--text-primary);
  line-height: 1.8;
  font-size: 1rem;
}

.wp-content.entry-content h1,
.wp-content.entry-content h2,
.wp-content.entry-content h3,
.wp-content.entry-content h4,
.wp-content.entry-content h5,
.wp-content.entry-content h6 {
  color: var(--navy-primary);
  font-family: 'DM Serif Display', serif;
  margin: 1.5rem 0 0.75rem;
  line-height: 1.3;
}

.wp-content.entry-content h2 {
  font-size: 1.75rem;
}

.wp-content.entry-content h3 {
  font-size: 1.4rem;
}

.wp-content.entry-content h4 {
  font-size: 1.15rem;
}

.wp-content.entry-content p {
  margin: 0 0 1rem;
}

.wp-content.entry-content ul,
.wp-content.entry-content ol {
  padding-left: 1.5rem;
  margin: 0 0 1rem;
}

.wp-content.entry-content li {
  margin-bottom: 0.4rem;
}

.wp-content.entry-content a {
  color: var(--gold);
  text-decoration: underline;
}

.wp-content.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.wp-content.entry-content blockquote {
  border-left: 4px solid var(--gold);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: rgba(201, 162, 39, 0.06);
  border-radius: 0 8px 8px 0;
  color: var(--text-secondary);
  font-style: italic;
}

.wp-content.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.wp-content.entry-content table th {
  background: var(--navy-primary);
  color: #fff;
  padding: 0.6rem 1rem;
  text-align: left;
}

.wp-content.entry-content table td {
  padding: 0.55rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.wp-content.entry-content table tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.02);
}

.wp-content.entry-content .wp-block-image {
  margin: 1.5rem 0;
}

.wp-content.entry-content .wp-block-columns {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

.wp-content.entry-content .wp-block-column {
  flex: 1;
  min-width: 200px;
}

.wp-content.entry-content .wp-block-separator {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 2rem 0;
}

.wp-content.entry-content .wp-block-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

/* ── Sub-pages grid ── */
.subpages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.subpage-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.2s, border-color 0.2s;
}

.subpage-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}

.subpage-card-img img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.subpage-card-title {
  padding: 1rem;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
}

/* ── Page content wrap ── */
.page-content-wrap {
  padding: 4rem 2rem 5rem;
  background: var(--bg-primary);
}

.page-content-inner {
  max-width: 860px;
  margin: 0 auto;
}

/* ════════════════════════════════════════════
   HALAMAN TENTANG — custom components
════════════════════════════════════════════ */

/* ── Tentang Stats Bar ── */
.tentang-stats {
  padding: 3rem 2rem;
  background: var(--bg-alt);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tentang-stats-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.tentang-stat-card {
  flex: 0 1 220px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 1.6rem 1.2rem;
  text-align: center;
  transition: transform 0.25s, border-color 0.25s;
}

.tentang-stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 162, 39, 0.4);
}

.tentang-stat-value {
  font-family: 'DM Serif Display', serif;
  font-size: 2.4rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.tentang-stat-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.tentang-stat-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ── Vision Mission section ── */
.section-vision-mission {
  padding: 5rem 2rem;
  background: var(--bg-primary);
}

.vm-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.vm-card-full {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 2rem 2rem 2.2rem;
  transition: border-color 0.25s;
}

.vm-card-full:hover {
  border-color: rgba(201, 162, 39, 0.3);
}

.vm-card-misi {
  background: linear-gradient(135deg, rgba(27, 58, 107, 0.25) 0%, rgba(13, 33, 68, 0.35) 100%);
}

.vm-card-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.4rem;
}

.vm-card-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.vm-card-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.25rem;
  color: var(--text-primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.vm-slekoor-badge {
  display: inline-block;
  background: var(--gold);
  color: #041228;
  font-size: 0.7rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0.2em 0.6em;
  border-radius: 4px;
}

.vm-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: vm-counter;
}

.vm-list-item {
  counter-increment: vm-counter;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.vm-list-item:last-child {
  border-bottom: none;
}

.vm-list-item::before {
  content: counter(vm-counter);
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: rgba(201, 162, 39, 0.15);
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--gold);
  margin-top: 2px;
}

.vm-fallback {
  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 1.75;
  margin: 0;
}
.vm-fallback p { margin: 0 0 0.5rem; }
.vm-fallback p:last-child { margin-bottom: 0; }
.vm-text-list {
  margin: 0.25rem 0 0.5rem 1.25rem;
  padding: 0;
  list-style: disc;
}
.vm-text-list li { margin-bottom: 0.35rem; }

/* SLEKOOR rows */
.vm-slekoor-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.vm-slekoor-row {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  transition: background 0.2s;
}

.vm-slekoor-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.vm-slekoor-letter {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--gold);
  color: #041228;
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vm-slekoor-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  padding-top: 6px;
}

.vm-slekoor-text strong {
  color: var(--gold);
  font-weight: 700;
}

/* Tujuan Pendidikan */
.vm-tujuan-section {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 2rem 2rem 2.5rem;
}

.vm-tujuan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.8rem;
}

.vm-tujuan-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  transition: border-color 0.2s, background 0.2s;
}

.vm-tujuan-item:hover {
  background: rgba(201, 162, 39, 0.06);
  border-color: rgba(201, 162, 39, 0.2);
}

.vm-tujuan-num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: rgba(201, 162, 39, 0.15);
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.vm-tujuan-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ── Principal Card v2 ── */
.principal-card-v2 {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 0;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(212,175,55,0.18);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04);
}

.principal-card-v2-photo {
  position: relative;
  background: linear-gradient(160deg, #19427D 0%, #0a1a36 100%);
  min-height: 540px;
  overflow: hidden;
}

.principal-card-v2-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.6s ease;
}

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

.principal-card-v2-photo.no-photo {
  background: linear-gradient(160deg, rgba(27, 58, 107, 0.8), rgba(13, 33, 68, 1));
}

.principal-card-v2-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 60%, rgba(7,22,40,0.4) 100%);
  pointer-events: none;
}

.principal-card-v2-name-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3rem 1.5rem 1.5rem;
  background: linear-gradient(to top, rgba(5,15,35,0.97) 0%, rgba(5,15,35,0.6) 60%, transparent 100%);
}

.principal-card-v2-name-badge .principal-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.principal-card-v2-name-badge .principal-role {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 3px;
}

.principal-card-v2-body {
  padding: 3rem 3rem 2.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.principal-body-top {
  margin-bottom: 1.5rem;
}

.principal-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.principal-heading {
  font-family: var(--heading-font);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
}

.principal-divider {
  width: 48px;
  height: 3px;
  background: linear-gradient(to right, var(--gold), transparent);
  border-radius: 2px;
  margin-bottom: 1.75rem;
}

.principal-card-v2-body .principal-quote-mark {
  font-family: 'DM Serif Display', serif;
  font-size: 6rem;
  line-height: 0.5;
  color: var(--gold);
  opacity: 0.25;
  margin-bottom: 1rem;
  display: block;
}

.principal-speech {
  color: rgba(255,255,255,0.72);
  font-size: 0.94rem;
  line-height: 1.9;
  flex: 1;
}

.principal-speech p {
  margin: 0 0 1rem;
}

.principal-speech p:last-child {
  margin-bottom: 0;
}

.principal-speech p strong {
  color: #fff;
  font-weight: 600;
}

.principal-sig {
  margin-top: 2rem;
  padding-top: 1.5rem;
}

.principal-sig-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, rgba(212,175,55,0.35), transparent);
  margin-bottom: 1rem;
}

.principal-sig-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.principal-sig-role {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  margin-top: 3px;
}

/* ── Sejarah Steps ── */
.sejarah-steps {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  padding-left: 2rem;
}

.sejarah-steps::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), rgba(201, 162, 39, 0.1));
  border-radius: 2px;
}

.sejarah-step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  position: relative;
}

.sejarah-step-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--bg-card);
  border: 2px solid rgba(201, 162, 39, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  position: relative;
  z-index: 1;
  transition: border-color 0.25s, background 0.25s;
}

.sejarah-step:hover .sejarah-step-icon {
  border-color: var(--gold);
  background: rgba(201, 162, 39, 0.1);
}

.sejarah-step-body {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 1.4rem 1.6rem;
  flex: 1;
  transition: border-color 0.25s;
}

.sejarah-step:hover .sejarah-step-body {
  border-color: rgba(201, 162, 39, 0.25);
}

.sejarah-step-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem;
  color: var(--text-primary);
  margin: 0 0 0.8rem;
  line-height: 1.35;
}

.sejarah-step-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.sejarah-step-list li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  padding-left: 1.2rem;
  position: relative;
}

.sejarah-step-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

.sejarah-step-desc {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  margin: 0.5rem 0 0;
  font-style: italic;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 0.7rem;
}

/* ── Tentang Related ── */
.tentang-related {
  padding: 5rem 2rem;
  background: var(--bg-alt);
}

/* ── Responsive: Tentang ── */
@media (max-width: 900px) {
  .tentang-stats-grid {
    gap: 1rem;
  }
  .tentang-stat-card {
    flex: 0 1 calc(50% - 0.5rem);
  }

  .vm-two-col {
    grid-template-columns: 1fr;
  }

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

  .principal-card-v2-photo {
    min-height: 360px;
  }

  .principal-card-v2-photo::after {
    background: linear-gradient(to bottom, transparent 50%, rgba(7,22,40,0.5) 100%);
  }

  .sejarah-steps {
    padding-left: 0.5rem;
  }

  .sejarah-steps::before {
    left: 24px;
  }
}

@media (max-width: 600px) {
  .tentang-stats-grid {
    gap: 0.75rem;
  }
  .tentang-stat-card {
    flex: 0 1 calc(50% - 0.375rem);
  }

  .vm-tujuan-grid {
    grid-template-columns: 1fr;
  }

  .vm-card-full {
    padding: 1.5rem 1.25rem;
  }

  .principal-card-v2-body {
    padding: 2rem 1.5rem 1.75rem;
  }

  .sejarah-step-body {
    padding: 1.1rem 1.2rem;
  }

  .sejarah-steps::before {
    display: none;
  }
}

/* ════════════════════════════════════════════
   HALAMAN GURU & KARYAWAN
════════════════════════════════════════════ */

/* ── Sticky section nav ── */
.staff-section-nav {
  position: sticky;
  top: 68px;
  /* below the site header */
  z-index: 90;
  background: rgba(7, 22, 40, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(201, 162, 39, 0.15);
  overflow-x: auto;
  scrollbar-width: none;
}

.staff-section-nav::-webkit-scrollbar {
  display: none;
}

.staff-nav-inner {
  display: flex;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.staff-nav-link {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem 1.1rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.staff-nav-link:hover,
.staff-nav-link.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.staff-nav-icon {
  font-size: 1rem;
}

.staff-nav-count {
  background: rgba(201, 162, 39, 0.15);
  color: var(--gold);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 20px;
  letter-spacing: 0.03em;
}

/* ── Main layout ── */
.staff-main {
  background: var(--bg-primary);
}

.staff-section {
  padding: 4.5rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.staff-section:last-child {
  border-bottom: none;
}

.staff-section:nth-child(even) {
  background: var(--bg-alt);
}

/* ── Section header ── */
.staff-section-header {
  margin-bottom: 2.5rem;
}

.staff-section-title-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.staff-section-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.staff-section-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.6rem;
  color: var(--text-primary);
  margin: 0;
}

.staff-section-badge {
  background: rgba(201, 162, 39, 0.12);
  color: var(--gold);
  border: 1px solid rgba(201, 162, 39, 0.25);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.25em 0.75em;
  border-radius: 20px;
}

/* ── Card grid ── */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

/* ── Individual card ── */
.staff-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s, box-shadow 0.3s;
  cursor: default;
}

.staff-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 162, 39, 0.35);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

/* Photo area — 3:4 aspect ratio */
.staff-card-photo {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(160deg, #19427D 0%, #041228 100%);
}

.staff-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.4s ease;
}

.staff-card:hover .staff-card-photo img {
  transform: scale(1.05);
}

/* Placeholder initials */
.staff-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #19427D, #0a1a36);
}

.staff-photo-placeholder span {
  font-family: 'DM Serif Display', serif;
  font-size: 2.5rem;
  color: rgba(201, 162, 39, 0.5);
  user-select: none;
}

.staff-card-photo.staff-no-photo {
  background: linear-gradient(135deg, #19427D, #0a1a36);
}

/* Overlay — shows detail chips on hover */
.staff-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(7, 22, 40, 0.92) 0%,
      rgba(7, 22, 40, 0.55) 45%,
      rgba(7, 22, 40, 0) 70%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.3rem;
  padding: 1rem 0.75rem 0.5rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}

.staff-card:hover .staff-card-overlay {
  opacity: 1;
  transform: translateY(0);
}

.staff-detail-chip {
  display: inline-block;
  background: rgba(201, 162, 39, 0.2);
  border: 1px solid rgba(201, 162, 39, 0.35);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.2em 0.55em;
  border-radius: 4px;
  width: fit-content;
  backdrop-filter: blur(4px);
}

/* Info strip below photo */
.staff-card-info {
  padding: 0.9rem 0.85rem 1rem;
}

.staff-card-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 0.3rem;
}

.staff-card-role {
  font-size: 0.72rem;
  color: var(--gold);
  font-weight: 500;
  line-height: 1.3;
}

.staff-card-extra {
  font-size: 0.68rem;
  color: var(--text-secondary);
  margin-top: 0.2rem;
  line-height: 1.3;
}

/* ── Responsive ── */
@media (max-width: 1200px) {
  .staff-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 900px) {
  .staff-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .staff-section {
    padding: 3.5rem 1.5rem;
  }

  .staff-nav-text {
    display: none;
  }

  .staff-nav-link {
    padding: 0.8rem;
    gap: 0.3rem;
  }
}

@media (max-width: 600px) {
  .staff-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.9rem;
  }

  .staff-section {
    padding: 2.5rem 1rem;
  }

  .staff-section-title {
    font-size: 1.25rem;
  }

  .staff-section-nav {
    top: 60px;
  }
}

/* ════════════════════════════════════════════
   HALAMAN PRESTASI
════════════════════════════════════════════ */

/* ── Stats strip ── */
.prestasi-stats-strip {
  display: flex;
  justify-content: center;
  gap: 0;
  background: var(--bg-alt);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  flex-wrap: wrap;
}

.prestasi-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 1.4rem 2.5rem;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  flex: 1;
  min-width: 140px;
}

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

.prestasi-stat-num {
  font-family: 'DM Serif Display', serif;
  font-size: 2.2rem;
  color: var(--gold);
  line-height: 1;
}

.prestasi-stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-secondary);
  text-align: center;
}

/* ── Tab filter ── */
.prestasi-tabs {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.8rem 2rem 0;
  flex-wrap: wrap;
  background: var(--bg-primary);
}

.prestasi-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  background: transparent;
  color: var(--text-secondary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.prestasi-tab:hover {
  border-color: rgba(201, 162, 39, 0.4);
  color: var(--text-primary);
}

.prestasi-tab.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #041228;
}

.prestasi-tab.active .prestasi-tab-count {
  background: rgba(7, 22, 40, 0.2);
  color: #041228;
}

.prestasi-tab-count {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  font-size: 0.7rem;
  padding: 1px 7px;
  color: var(--text-secondary);
}

/* ── Gallery section ── */
.prestasi-gallery-section {
  padding: 2.5rem 2rem 5rem;
  background: var(--bg-primary);
}

/* ── Masonry grid ── */
.prestasi-masonry {
  columns: 5;
  column-gap: 1rem;
}

@media (max-width: 1100px) {
  .prestasi-masonry {
    columns: 4;
  }
}

@media (max-width: 800px) {
  .prestasi-masonry {
    columns: 3;
  }
}

@media (max-width: 500px) {
  .prestasi-masonry {
    columns: 2;
  }
}

.prestasi-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  cursor: pointer;
}

.prestasi-item-inner {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.prestasi-item:hover .prestasi-item-inner {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5);
  border-color: rgba(201, 162, 39, 0.4);
}

.prestasi-item-inner img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.4s ease;
}

.prestasi-item:hover .prestasi-item-inner img {
  transform: scale(1.04);
}

/* Overlay on hover */
.prestasi-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(7, 22, 40, 0.85) 0%,
      rgba(7, 22, 40, 0.3) 50%,
      rgba(7, 22, 40, 0) 75%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.prestasi-item:hover .prestasi-item-overlay {
  opacity: 1;
}

.prestasi-zoom-icon {
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1;
  transform: scale(0.7);
  transition: transform 0.3s;
}

.prestasi-item:hover .prestasi-zoom-icon {
  transform: scale(1);
}

.prestasi-item-cat {
  position: absolute;
  bottom: 0.6rem;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  padding: 0 0.5rem;
  transform: translateY(6px);
  transition: transform 0.3s;
}

.prestasi-item:hover .prestasi-item-cat {
  transform: translateY(0);
}

/* ── Lightbox ── */
.prestasi-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(4, 12, 24, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.prestasi-lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lb-img-wrap {
  max-width: 88vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-img-wrap img {
  max-width: 100%;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.8);
  display: block;
  transition: opacity 0.2s;
}

.lb-close {
  position: fixed;
  top: 1.2rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10001;
}

.lb-close:hover {
  background: rgba(201, 162, 39, 0.3);
}

.lb-prev,
.lb-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  z-index: 10001;
  line-height: 1;
}

.lb-prev {
  left: 1.2rem;
}

.lb-next {
  right: 1.2rem;
}

.lb-prev:hover {
  background: rgba(201, 162, 39, 0.25);
  transform: translateY(-50%) scale(1.1);
}

.lb-next:hover {
  background: rgba(201, 162, 39, 0.25);
  transform: translateY(-50%) scale(1.1);
}

.lb-caption {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(7, 22, 40, 0.8);
  border: 1px solid rgba(201, 162, 39, 0.25);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.4rem 1.2rem;
  border-radius: 20px;
  backdrop-filter: blur(8px);
  white-space: nowrap;
}

@media (max-width: 600px) {
  .prestasi-stats-strip {
    gap: 0;
  }

  .prestasi-stat-item {
    padding: 1rem 1.2rem;
    min-width: 100px;
  }

  .prestasi-stat-num {
    font-size: 1.7rem;
  }

  .lb-prev {
    left: 0.4rem;
  }

  .lb-next {
    right: 0.4rem;
  }
}

/* ── Lightbox: meta line ── */
.lb-meta {
  position: fixed;
  bottom: 3.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.7rem;
  white-space: nowrap;
  letter-spacing: 0.05em;
}

/* ── Prestasi: no-photo placeholder ── */
.prestasi-no-photo {
  width: 100%;
  height: 220px;
  background: rgba(13, 33, 68, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.prestasi-item-title {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2px;
}

.prestasi-item-badge {
  display: inline-block;
  background: var(--gold);
  color: #041228;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  margin-top: 4px;
}

/* ══════════════════════════════════════════════════════════════
   GALERI PAGE
══════════════════════════════════════════════════════════════ */

/* Stats strip */
.galeri-stats-strip {
  background: var(--stats-bg);
  border-bottom: 1px solid rgba(201, 162, 39, 0.15);
  padding: 0;
}

.galeri-stats-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  overflow-x: auto;
}

.galeri-stat-item {
  flex: 1 1 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 1.5rem;
  border-right: 1px solid rgba(201, 162, 39, 0.1);
  min-width: 110px;
  cursor: pointer;
  transition: background 0.2s;
  user-select: none;
}

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

.galeri-stat-item[data-group]:hover {
  background: rgba(201, 162, 39, 0.08);
}

.galeri-stat-item.active {
  background: rgba(201, 162, 39, 0.13);
  box-shadow: inset 0 -3px 0 var(--gold);
}

.galeri-stat-item.active .galeri-stat-label {
  color: var(--gold);
}

.galeri-stat-num {
  font-family: var(--heading-font);
  font-size: 2rem;
  color: var(--gold);
  line-height: 1;
}

.galeri-stat-label {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
  text-align: center;
}

/* Gallery grid */
.galeri-section {
  padding: 3rem 0 5rem;
}

.galeri-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

/* Item */
.galeri-item {
  cursor: pointer;
}

.galeri-item-inner {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--navy-dark);
  aspect-ratio: 4/3;
}

.galeri-item-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.galeri-item:hover .galeri-item-inner img {
  transform: scale(1.06);
}

.galeri-no-photo {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: rgba(13, 33, 68, 0.6);
}

/* Overlay */
.galeri-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 22, 40, 0.88) 0%, rgba(7, 22, 40, 0.2) 55%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 1rem;
  gap: 4px;
}

.galeri-item:hover .galeri-item-overlay {
  opacity: 1;
}

.galeri-zoom-icon {
  font-size: 1.5rem;
  color: var(--gold);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.9;
}

.galeri-item-info {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.galeri-item-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}

.galeri-item-date {
  font-size: 0.65rem;
  color: var(--gold);
}

.galeri-item-kat {
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

@media (max-width: 768px) {
  .galeri-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.6rem;
  }

  .galeri-stat-item {
    padding: 1rem;
    min-width: 90px;
  }

  .galeri-stat-num {
    font-size: 1.5rem;
  }
}

/* ══════════════════════════════════════════════════════════════
   EKSKUL PAGE
══════════════════════════════════════════════════════════════ */

/* Stats strip */
.ekskul-stats-strip {
  background: var(--stats-bg);
  border-bottom: 1px solid rgba(201, 162, 39, 0.15);
}

.ekskul-stats-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
}

.ekskul-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.4rem 2rem;
  border-right: 1px solid rgba(201, 162, 39, 0.1);
  min-width: 120px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  user-select: none;
}

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

.ekskul-stat-item:hover {
  background: rgba(201, 162, 39, 0.08);
}

.ekskul-stat-item.active {
  background: rgba(201, 162, 39, 0.13);
  box-shadow: inset 0 -3px 0 var(--gold);
}

.ekskul-stat-item.active .ekskul-stat-num,
.ekskul-stat-item.active .ekskul-stat-label {
  color: var(--gold);
}

.ekskul-stat-icon {
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.ekskul-stat-num {
  font-family: var(--heading-font);
  font-size: 1.8rem;
  color: var(--gold);
  line-height: 1;
}

.ekskul-stat-label {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-top: 3px;
  text-align: center;
}


/* Section */
.ekskul-section {
  padding: 3rem 0 5rem;
}

.ekskul-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Card */
.ekskul-card {
  background: rgba(27, 58, 107, 0.25);
  border: 1px solid rgba(201, 162, 39, 0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.ekskul-card:hover {
  transform: translateY(-5px);
  border-color: rgba(201, 162, 39, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

/* Card photo */
.ekskul-card-photo {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: pointer;
  background: var(--navy-dark);
}

.ekskul-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.ekskul-card:hover .ekskul-card-photo img {
  transform: scale(1.05);
}

.ekskul-no-photo {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}

.ekskul-card-kat {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(7, 22, 40, 0.82);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(201, 162, 39, 0.3);
  color: var(--gold);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: 20px;
}

.ekskul-photo-count {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(7, 22, 40, 0.75);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 20px;
}

/* Card body */
.ekskul-card-body {
  padding: 1.2rem 1.3rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.ekskul-card-name {
  font-family: var(--heading-font);
  font-size: 1.15rem;
  color: var(--white);
  margin: 0;
  line-height: 1.25;
}

.ekskul-card-desc {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.55;
  margin: 0;
}

.ekskul-card-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid rgba(201, 162, 39, 0.1);
}

.ekskul-meta-item {
  font-size: 0.73rem;
  color: rgba(255, 255, 255, 0.5);
  display: block;
}

.ekskul-btn-detail {
  background: none;
  border: 1px solid rgba(201, 162, 39, 0.35);
  color: var(--gold);
  font-family: var(--body-font);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 20px;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.2s, color 0.2s;
  align-self: flex-start;
}

.ekskul-btn-detail:hover {
  background: var(--gold);
  color: #041228;
}

/* ── Modal ── */
.ekskul-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.ekskul-modal.active {
  display: flex;
}

.ekskul-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 11, 22, 0.92);
  backdrop-filter: blur(10px);
}

/* Close button — floats outside the box, top-right of screen */
.ekskul-modal-close {
  position: fixed;
  top: 18px;
  right: 22px;
  background: rgba(13, 33, 68, 0.9);
  border: 1px solid rgba(201, 162, 39, 0.35);
  color: rgba(255, 255, 255, 0.85);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.ekskul-modal-close:hover {
  background: var(--gold);
  color: #041228;
  transform: rotate(90deg);
}

/* Modal box */
.ekskul-modal-box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  height: min(92vh, 700px);
  display: grid;
  grid-template-columns: 68% 32%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(201, 162, 39, 0.2);
  animation: modalIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.88) translateY(24px);
  }

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

/* ── Gallery side (left) ── */
.ekskul-modal-gallery {
  background: #030c1a;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* Main photo fills the left panel */
.ekskul-modal-main-photo {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 0;
}

.ekskul-modal-main-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: opacity 0.4s ease;
}

.ekskul-modal-main-photo img.fade-out {
  opacity: 0;
}

/* Photo counter badge */
.ekskul-modal-counter {
  position: absolute;
  bottom: 72px;
  right: 12px;
  background: rgba(7, 22, 40, 0.75);
  border: 1px solid rgba(201, 162, 39, 0.25);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.06em;
}

/* Thumbnail strip */
.ekskul-modal-thumbs {
  display: flex;
  gap: 5px;
  padding: 8px 10px;
  background: rgba(4, 11, 22, 0.85);
  border-top: 1px solid rgba(201, 162, 39, 0.1);
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 162, 39, 0.3) transparent;
  flex-shrink: 0;
}

.ekskul-modal-thumbs img {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.45;
  border: 2px solid transparent;
  flex-shrink: 0;
  transition: opacity 0.2s, border-color 0.2s, transform 0.2s;
}

.ekskul-modal-thumbs img:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}

.ekskul-modal-thumbs img.active {
  opacity: 1;
  border-color: var(--gold);
  transform: translateY(-2px);
}

/* No photo state */
.ekskul-modal-no-photo {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  background: linear-gradient(135deg, #041228 0%, #0a1a36 100%);
}

/* ── Info side (right) ── */
.ekskul-modal-info {
  background: linear-gradient(160deg, #0c1f42 0%, #041228 100%);
  border-left: 1px solid rgba(201, 162, 39, 0.12);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 162, 39, 0.2) transparent;
  position: relative;
}

/* Gold accent line at top of info */
.ekskul-modal-info::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), rgba(201, 162, 39, 0.2));
  flex-shrink: 0;
}

.ekskul-modal-info-inner {
  padding: 1.4rem 1.4rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

/* Category pill */
.ekskul-modal-kat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(201, 162, 39, 0.12);
  border: 1px solid rgba(201, 162, 39, 0.3);
  color: var(--gold);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 4px 12px;
  border-radius: 20px;
  width: fit-content;
}

/* Title */
.ekskul-modal-title {
  font-family: var(--heading-font);
  font-size: 1.5rem;
  color: var(--white);
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

/* Divider */
.ekskul-modal-divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(201, 162, 39, 0.3), transparent);
  flex-shrink: 0;
}

/* Description */
.ekskul-modal-desc {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  margin: 0;
}

/* Meta cards (jadwal, pembina) */
.ekskul-modal-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}

.ekskul-modal-meta-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(27, 58, 107, 0.3);
  border: 1px solid rgba(201, 162, 39, 0.1);
  border-radius: 10px;
  padding: 10px 14px;
}

.ekskul-modal-meta-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.ekskul-modal-meta-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.ekskul-modal-meta-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(201, 162, 39, 0.65);
}

.ekskul-modal-meta-val {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
}

/* No-info placeholder */
.ekskul-modal-placeholder {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.8rem;
  font-style: italic;
  text-align: center;
  padding: 1rem 0;
}

/* ── Responsive ── */
@media (max-width: 700px) {
  .ekskul-modal {
    padding: 0;
    align-items: flex-end;
  }

  .ekskul-modal-box {
    grid-template-columns: 1fr;
    grid-template-rows: 52vw 1fr;
    height: 92vh;
    border-radius: 20px 20px 0 0;
    max-width: 100%;
    animation: modalInMobile 0.35s cubic-bezier(0.34, 1.2, 0.64, 1);
  }

  @keyframes modalInMobile {
    from {
      transform: translateY(100%);
    }

    to {
      transform: translateY(0);
    }
  }

  .ekskul-modal-gallery {
    border-radius: 20px 20px 0 0;
  }

  .ekskul-modal-close {
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
  }

  .ekskul-modal-title {
    font-size: 1.5rem;
  }

  .ekskul-modal-info-inner {
    padding: 1.4rem 1.4rem 1.2rem;
  }

  .ekskul-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
  }

  .ekskul-stat-item {
    padding: 1rem;
    min-width: 90px;
  }
}


/* ══════════════════════════════════════════════════════════════
   GALERI PAGE — redesign (album-based)
══════════════════════════════════════════════════════════════ */

.galeri-album-count {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(7, 22, 40, 0.78);
  border: 1px solid rgba(201, 162, 39, 0.35);
  color: var(--gold);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.galeri-zoom-circle {
  width: 44px;
  height: 44px;
  background: rgba(201, 162, 39, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #041228;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
}

.galeri-item:hover .galeri-zoom-circle {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.galeri-stat-icon {
  font-size: 1.4rem;
  margin-bottom: 2px;
}

/* Album Lightbox */
.galeri-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.galeri-lightbox.active {
  display: flex;
}

.glb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 14, 24, 0.94);
  backdrop-filter: blur(6px);
}

.glb-box {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 60% 40%;
  max-width: 1020px;
  width: 100%;
  height: min(88vh, 620px);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(201, 162, 39, 0.2);
  animation: modalIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.glb-viewer {
  background: #030c1a;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.glb-main-wrap {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 0;
}

.glb-main-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: opacity 0.35s ease;
}

.glb-main-wrap img.fade-out {
  opacity: 0;
}

.glb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(7, 22, 40, 0.6);
  border: 1px solid rgba(201, 162, 39, 0.3);
  color: var(--gold);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 2;
}

.glb-nav:hover {
  background: rgba(201, 162, 39, 0.25);
}

.glb-prev {
  left: 10px;
}

.glb-next {
  right: 10px;
}

.glb-photo-counter {
  position: absolute;
  bottom: 8px;
  right: 10px;
  background: rgba(7, 22, 40, 0.7);
  border: 1px solid rgba(201, 162, 39, 0.2);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.62rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
}

.glb-thumbs {
  display: flex;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(7, 22, 40, 0.6);
  overflow-x: auto;
  scrollbar-width: none;
}

.glb-thumbs::-webkit-scrollbar {
  display: none;
}

.glb-thumbs img {
  width: 56px;
  height: 42px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.55;
  flex-shrink: 0;
  transition: opacity 0.2s, border-color 0.2s;
}

.glb-thumbs img:hover {
  opacity: 0.85;
}

.glb-thumbs img.active {
  opacity: 1;
  border-color: var(--gold);
}

.glb-info {
  background: linear-gradient(160deg, #0c1f42 0%, #041228 100%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.glb-info::before {
  content: '';
  height: 3px;
  background: linear-gradient(90deg, var(--gold), rgba(201, 162, 39, 0.1));
  flex-shrink: 0;
}

.glb-info-inner {
  flex: 1;
  overflow-y: auto;
  padding: 1.8rem 1.8rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 162, 39, 0.3) transparent;
}

.glb-kat {
  display: inline-flex;
  align-items: center;
  background: rgba(201, 162, 39, 0.12);
  border: 1px solid rgba(201, 162, 39, 0.3);
  color: var(--gold);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 20px;
  width: fit-content;
}

.glb-title {
  font-family: var(--heading-font);
  font-size: 1.6rem;
  color: var(--white);
  line-height: 1.2;
  margin: 0;
}

.glb-divider {
  height: 1px;
  background: rgba(201, 162, 39, 0.15);
}

.glb-caption {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
  margin: 0;
}

.glb-date {
  font-size: 0.78rem;
  color: var(--gold);
  opacity: 0.8;
}

.glb-album-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 1rem;
}

.glb-album-btn {
  background: rgba(201, 162, 39, 0.08);
  border: 1px solid rgba(201, 162, 39, 0.2);
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--body-font);
  font-size: 0.75rem;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s, color 0.2s;
}

.glb-album-btn:hover {
  background: rgba(201, 162, 39, 0.18);
  color: var(--white);
}

.glb-close {
  position: fixed;
  top: 18px;
  right: 22px;
  width: 40px;
  height: 40px;
  background: rgba(7, 22, 40, 0.8);
  border: 1px solid rgba(201, 162, 39, 0.3);
  color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  z-index: 1201;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}

.glb-close:hover {
  background: var(--gold);
  color: #041228;
  transform: rotate(90deg);
}

@media (max-width: 700px) {
  .galeri-lightbox {
    padding: 0;
    align-items: flex-end;
  }

  .glb-box {
    grid-template-columns: 1fr;
    grid-template-rows: 55vw 1fr;
    height: 92vh;
    border-radius: 20px 20px 0 0;
    max-width: 100%;
  }

  .glb-close {
    top: 12px;
    right: 12px;
  }
}


/* ══════════════════════════════════════════════════════════════
   SARANA & PRASARANA PAGE
══════════════════════════════════════════════════════════════ */

.sarpras-stats-strip {
  background: var(--stats-bg, rgba(7, 22, 40, 0.95));
  border-bottom: 1px solid rgba(201, 162, 39, 0.15);
}

.sarpras-stats-inner {
  display: flex;
  flex-wrap: wrap;
  overflow-x: auto;
}

.sarpras-stat-item {
  flex: 1 1 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.4rem 1.2rem;
  border-right: 1px solid rgba(201, 162, 39, 0.1);
  min-width: 110px;
  gap: 2px;
}

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

.sarpras-stat-icon {
  font-size: 1.4rem;
}

.sarpras-stat-num {
  font-family: var(--heading-font);
  font-size: 1.9rem;
  color: var(--gold);
  line-height: 1;
}

.sarpras-stat-label {
  font-size: 0.67rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  text-align: center;
}

.sarpras-tabs {
  background: var(--navy-darkest);
  border-bottom: 1px solid rgba(201, 162, 39, 0.12);
  position: sticky;
  top: 72px;
  z-index: 50;
}

.sarpras-tabs-inner {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
}

.sarpras-tabs-inner::-webkit-scrollbar {
  display: none;
}

.sarpras-tab {
  flex-shrink: 0;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--body-font);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 1rem 1.4rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sarpras-tab:hover {
  color: var(--white);
}

.sarpras-tab.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.sarpras-tab-count {
  background: rgba(201, 162, 39, 0.15);
  color: var(--gold);
  font-size: 0.62rem;
  padding: 1px 6px;
  border-radius: 20px;
}

.sarpras-tab.active .sarpras-tab-count {
  background: var(--gold);
  color: #041228;
}

.sarpras-section {
  padding: 3rem 0 5rem;
}

.sarpras-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.4rem;
}

.sarpras-card {
  background: var(--navy-dark);
  border: 1px solid rgba(201, 162, 39, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.sarpras-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(201, 162, 39, 0.3);
}

.sarpras-card-photo {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  cursor: pointer;
  background: #030c1a;
}

.sarpras-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s;
}

.sarpras-card:hover .sarpras-card-photo img {
  transform: scale(1.05);
}

.sarpras-no-photo {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.sarpras-card-kat-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(7, 22, 40, 0.82);
  border: 1px solid rgba(201, 162, 39, 0.3);
  color: var(--gold);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 20px;
}

.sarpras-photo-count {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(7, 22, 40, 0.78);
  border: 1px solid rgba(201, 162, 39, 0.3);
  color: var(--gold);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.sarpras-card-body {
  padding: 1.1rem 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.sarpras-card-name {
  font-family: var(--heading-font);
  font-size: 1.05rem;
  color: var(--white);
  margin: 0;
  line-height: 1.3;
}

.sarpras-card-desc {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.5;
  margin: 0;
}

.sarpras-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 2px;
}

.sarpras-meta-item {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.6);
}

.sarpras-kondisi-badge {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.kondisi-baik {
  background: rgba(46, 204, 113, 0.15);
  color: #2ecc71;
  border: 1px solid rgba(46, 204, 113, 0.3);
}

.kondisi-cukup {
  background: rgba(243, 156, 18, 0.15);
  color: #f39c12;
  border: 1px solid rgba(243, 156, 18, 0.3);
}

.kondisi-rusak {
  background: rgba(231, 76, 60, 0.15);
  color: #e74c3c;
  border: 1px solid rgba(231, 76, 60, 0.3);
}

.kondisi-na {
  background: rgba(149, 165, 166, 0.1);
  color: #95a5a6;
  border: 1px solid rgba(149, 165, 166, 0.2);
}

.sarpras-btn-detail {
  margin-top: auto;
  background: none;
  border: 1px solid rgba(201, 162, 39, 0.3);
  color: var(--gold);
  font-family: var(--body-font);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  align-self: flex-start;
}

.sarpras-btn-detail:hover {
  background: var(--gold);
  color: #041228;
}

/* Sarpras modal */
.sarpras-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.sarpras-modal.active {
  display: flex;
}

.sarpras-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 14, 24, 0.92);
  backdrop-filter: blur(6px);
}

.sarpras-modal-close {
  position: fixed;
  top: 18px;
  right: 22px;
  width: 40px;
  height: 40px;
  background: rgba(7, 22, 40, 0.8);
  border: 1px solid rgba(201, 162, 39, 0.3);
  color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  z-index: 1201;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}

.sarpras-modal-close:hover {
  background: var(--gold);
  color: #041228;
  transform: rotate(90deg);
}

.sarpras-modal-box {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 58% 42%;
  max-width: 1000px;
  width: 100%;
  height: min(88vh, 600px);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(201, 162, 39, 0.2);
  animation: modalIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.sarpras-modal-gallery {
  background: #030c1a;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sarpras-modal-main-photo {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 0;
}

.sarpras-modal-main-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: opacity 0.4s;
}

.sarpras-modal-main-photo img.fade-out {
  opacity: 0;
}

.sarpras-modal-no-photo {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.sarpras-modal-counter {
  position: absolute;
  bottom: 72px;
  right: 12px;
  background: rgba(7, 22, 40, 0.75);
  border: 1px solid rgba(201, 162, 39, 0.25);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.62rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}

.sarpras-modal-thumbs {
  display: flex;
  gap: 6px;
  padding: 8px 10px;
  background: rgba(7, 22, 40, 0.5);
  overflow-x: auto;
  scrollbar-width: none;
}

.sarpras-modal-thumbs::-webkit-scrollbar {
  display: none;
}

.sarpras-modal-thumbs img {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid transparent;
  opacity: 0.5;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.2s, border-color 0.2s;
}

.sarpras-modal-thumbs img:hover {
  opacity: 0.8;
}

.sarpras-modal-thumbs img.active {
  opacity: 1;
  border-color: var(--gold);
}

.sarpras-modal-info {
  background: linear-gradient(160deg, #0c1f42 0%, #041228 100%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sarpras-modal-info::before {
  content: '';
  height: 3px;
  background: linear-gradient(90deg, var(--gold), rgba(201, 162, 39, 0.1));
  flex-shrink: 0;
}

.sarpras-modal-info-inner {
  flex: 1;
  overflow-y: auto;
  padding: 1.8rem 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 162, 39, 0.3) transparent;
}

.sarpras-modal-kat {
  display: inline-flex;
  background: rgba(201, 162, 39, 0.12);
  border: 1px solid rgba(201, 162, 39, 0.3);
  color: var(--gold);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 20px;
  width: fit-content;
}

.sarpras-modal-title {
  font-family: var(--heading-font);
  font-size: 1.8rem;
  color: var(--white);
  line-height: 1.2;
  margin: 0;
}

.sarpras-modal-divider {
  height: 1px;
  background: rgba(201, 162, 39, 0.15);
}

.sarpras-modal-desc {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin: 0;
}

.sarpras-modal-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sarpras-modal-meta-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(27, 58, 107, 0.3);
  border: 1px solid rgba(201, 162, 39, 0.1);
  border-radius: 10px;
  padding: 10px 14px;
}

.sarpras-modal-meta-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.sarpras-modal-meta-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sarpras-modal-meta-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.4);
}

.sarpras-modal-meta-val {
  font-size: 0.82rem;
  color: var(--white);
  font-weight: 600;
}

@media (max-width: 700px) {
  .sarpras-modal {
    padding: 0;
    align-items: flex-end;
  }

  .sarpras-modal-box {
    grid-template-columns: 1fr;
    grid-template-rows: 52vw 1fr;
    height: 92vh;
    border-radius: 20px 20px 0 0;
    max-width: 100%;
  }

  .sarpras-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
  }

  .sarpras-stat-item {
    padding: 1rem;
    min-width: 90px;
  }
}


/* ══════════════════════════════════════════════════════════════
   STRUKTUR ORGANISASI PAGE
══════════════════════════════════════════════════════════════ */

.org-section {
  padding: 3rem 0 6rem;
}

.org-tree {
  position: relative;
}

/* Spine tunggal dari atas ke bawah */
.org-tree::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(212,175,55,0.45) 3%,
    rgba(212,175,55,0.35) 85%,
    rgba(212,175,55,0.1) 97%,
    transparent
  );
  pointer-events: none;
  z-index: 0;
}

.org-level {
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}

.org-level-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 0.5rem 0;
  position: relative;
  z-index: 2;
}

.org-level-line {
  flex: 1;
  height: 1px;
  background: rgba(201, 162, 39, 0.2);
}

.org-level-text {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(201, 162, 39, 0.85);
  white-space: nowrap;
  padding: 0.25rem 1.1rem;
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: 20px;
  background: var(--bg-primary);
  position: relative;
  z-index: 2;
}

.org-cards-top {
  display: flex;
  justify-content: center;
}

.org-card-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: linear-gradient(160deg, #19427D 0%, #0a1a36 100%);
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: 24px;
  padding: 2.5rem 3rem;
  max-width: 320px;
  width: 100%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 2;
}

.org-card-photo-wrap {
  position: relative;
  margin-bottom: 1.2rem;
}

.org-card-top .org-card-photo-wrap {
  margin-bottom: 1.5rem;
}

.org-card-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(201, 162, 39, 0.5);
  display: block;
}

.org-card-top .org-card-photo {
  width: 120px;
  height: 120px;
}

.org-card-photo-ring {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 39, 0.25);
  pointer-events: none;
}

.org-card-initials {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  border: 3px solid rgba(201, 162, 39, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--heading-font);
  font-size: 2.5rem;
  color: var(--gold);
}

.org-card-top .org-card-initials {
  width: 120px;
  height: 120px;
  font-size: 3rem;
}

.org-card-jabatan {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 4px;
}

.org-card-top .org-card-jabatan {
  font-size: 0.78rem;
  margin-bottom: 8px;
}

.org-card-name {
  font-family: var(--heading-font);
  font-size: 1.1rem;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 4px;
}

.org-card-top .org-card-name {
  font-size: 1.35rem;
}

.org-card-nip {
  font-size: 0.58rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.org-card-ket {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 6px;
}

.org-card-divisi {
  font-size: 0.67rem;
  color: rgba(201, 162, 39, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

/* ── Org groups: layout org chart dengan garis hierarki ── */
.org-groups {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* Baris horizontal yang menghubungkan semua grup */
.org-groups-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  width: 100%;
}

/* Garis horizontal yang melintas di atas semua grup */
.org-groups-row::before {
  content: '';
  position: absolute;
  top: 0;
  left: calc(50% / var(--group-count, 1));
  right: calc(50% / var(--group-count, 1));
  height: 2px;
  background: linear-gradient(to right, transparent, rgba(212,175,55,0.4) 15%, rgba(212,175,55,0.4) 85%, transparent);
}

.org-group {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 0 0.75rem 1.5rem;
  position: relative;
}

/* Garis vertikal turun dari horizontal connector ke label grup */
.org-group::before {
  content: '';
  display: block;
  width: 2px;
  height: 24px;
  background: rgba(212,175,55,0.35);
  flex-shrink: 0;
}

.org-group-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--bg-primary);
  border: 1px solid rgba(212,175,55,0.3);
  padding: 0.35rem 1rem;
  border-radius: 20px;
  white-space: nowrap;
  position: relative;
  z-index: 2;
}

.org-groups-1 .org-groups-row::before,
.org-groups-1 .org-group::before {
  display: none;
}

.org-cards-grid {
  display: grid;
  gap: 1rem;
  justify-content: center;
  width: 100%;
  position: relative;
  z-index: 2;
  background: var(--bg-primary);
}

/* Free-standing (no group wrapper) — fixed max widths */
.org-level > .org-cols-1,
.org-level > div > .org-cols-1 {
  grid-template-columns: minmax(200px, 280px);
}
.org-level > .org-cols-2,
.org-level > div > .org-cols-2 {
  grid-template-columns: repeat(2, minmax(180px, 260px));
}
.org-level > .org-cols-3,
.org-level > div > .org-cols-3 {
  grid-template-columns: repeat(3, minmax(160px, 240px));
}
.org-level > .org-cols-4,
.org-level > div > .org-cols-4 {
  grid-template-columns: repeat(4, minmax(150px, 220px));
}

/* Default (fallback) */
.org-cols-1 { grid-template-columns: minmax(160px, 220px); }
.org-cols-2 { grid-template-columns: repeat(2, minmax(140px, 200px)); }
.org-cols-3 { grid-template-columns: repeat(2, minmax(130px, 180px)); }
.org-cols-4 { grid-template-columns: repeat(2, minmax(120px, 170px)); }

/* Cards inside a group — fill group width, max 2 columns */
.org-group .org-cards-grid {
  width: 100%;
  justify-items: center;
  background: var(--bg-primary);
  position: relative;
  z-index: 2;
}
.org-group .org-cols-1 {
  grid-template-columns: minmax(150px, 220px);
}
.org-group .org-cols-2 {
  grid-template-columns: repeat(2, minmax(140px, 1fr));
}
.org-group .org-cols-3,
.org-group .org-cols-4 {
  grid-template-columns: repeat(2, minmax(140px, 1fr));
}

.org-card-level-2,
.org-card-level-3,
.org-card-level-4,
.org-card-level-5 {
  background: var(--navy-dark);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
  isolation: isolate;
}

.org-card-level-2 {
  border: 1px solid rgba(201, 162, 39, 0.35);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.org-card-level-3,
.org-card-level-4,
.org-card-level-5 {
  border: 1px solid rgba(201, 162, 39, 0.1);
}

.org-card-level-2:hover,
.org-card-level-3:hover,
.org-card-level-4:hover,
.org-card-level-5:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  border-color: rgba(201, 162, 39, 0.35);
}

.org-card-level-3 .org-card-photo,
.org-card-level-4 .org-card-photo,
.org-card-level-5 .org-card-photo {
  width: 80px;
  height: 80px;
}

.org-card-level-3 .org-card-initials,
.org-card-level-4 .org-card-initials,
.org-card-level-5 .org-card-initials {
  width: 80px;
  height: 80px;
  font-size: 2rem;
}

/* Dalam grup: foto lebih kecil agar muat */
.org-group .org-card-level-2 .org-card-photo,
.org-group .org-card-level-2 .org-card-initials {
  width: 80px;
  height: 80px;
}

.org-group .org-card-level-2 .org-card-initials {
  font-size: 2rem;
}

.org-group .org-card-level-2 .org-card-name {
  font-size: 0.95rem;
}


@media (max-width: 900px) {
  .org-groups-row {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .org-group {
    flex: 1 1 200px;
    border-top: 1px solid rgba(212,175,55,0.15);
    padding: 1rem 0.5rem;
  }

  .org-group:first-child {
    border-top: none;
  }

  .org-groups-row::before {
    display: none;
  }

}

@media (max-width: 600px) {

  .org-cols-4,
  .org-cols-3,
  .org-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .org-cols-1 {
    grid-template-columns: 1fr;
  }

  .org-card-top {
    padding: 1.8rem 1.5rem;
  }
}