/* =============================================
   MA MIFTAHUSSALAM WONOSALAM DEMAK
   Design System — Mobile-First Stylesheet v2
   Theme: Pixel Art × Modern Islamic School
   Breakpoints: 390 | 768 | 1024 | 1280
   ============================================= */

/* ─── Google Fonts ─────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Press+Start+2P&display=swap');

/* ─── Motion Preference ─────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .animate-float { animation: none !important; }
}

/* ─── CSS Custom Properties ─────────────────── */
:root {
  /* Color Palette */
  --clr-forest:        #183D32;
  --clr-emerald:       #287653;
  --clr-sage:          #A5B99A;
  --clr-cream:         #F6F0DF;
  --clr-gold:          #DDA64A;
  --clr-white:         #FFFFFF;

  /* Extended */
  --clr-forest-dark:   #0f2620;
  --clr-forest-light:  #1e4d3e;
  --clr-emerald-light: #3a9168;
  --clr-sage-light:    #c8d9c0;
  --clr-cream-dark:    #ede4ce;
  --clr-gold-dark:     #b8872e;

  /* Text */
  --clr-text-primary:   #1a2e26;
  --clr-text-secondary: #4a6355;
  --clr-text-muted:     #7a9487;

  /* Fonts */
  --font-primary: 'Plus Jakarta Sans', sans-serif;
  --font-pixel:   'Press Start 2P', monospace;

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(24,61,50,0.08);
  --shadow-md:   0 4px 12px rgba(24,61,50,0.10);
  --shadow-lg:   0 10px 24px rgba(24,61,50,0.12);
  --shadow-xl:   0 20px 40px rgba(24,61,50,0.15);
  --shadow-gold: 0 4px 20px rgba(221,166,74,0.3);

  /* Transitions */
  --t-fast: 150ms ease;
  --t-base: 250ms ease;
  --t-slow: 400ms ease;

  /* Z-index */
  --z-navbar: 1000;
  --z-modal:  2000;

  /* Navbar Height — mobile first */
  --navbar-h: 60px;

  /* Container padding — mobile */
  --container-pad: 1rem;

  /* Border Radius */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-2xl:  20px;
  --radius-full: 9999px;
}

@media (min-width: 768px) {
  :root {
    --navbar-h:      68px;
    --container-pad: 1.25rem;
  }
}

@media (min-width: 1024px) {
  :root {
    --navbar-h:      72px;
    --container-pad: 1.5rem;
  }
}

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

html {
  scroll-behavior: smooth;
  /* prevent iOS font-size change on orientation */
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  color: var(--clr-text-primary);
  background: var(--clr-white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Prevent body scroll when mobile menu open */
body.menu-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* Touch improvements */
a, button, [role="button"] { -webkit-tap-highlight-color: transparent; }

/* ─── Container ─────────────────────────────── */
.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--container-pad);
  width: 100%;
}

.container-sm {
  max-width: 800px;
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ─── Typography — Mobile First ─────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1.2;
  color: var(--clr-forest);
}

/* Fluid type — comfortable on all screens */
h1 { font-size: clamp(1.625rem, 5vw, 3rem); }
h2 { font-size: clamp(1.375rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.125rem, 3vw, 1.75rem); }
h4 { font-size: clamp(1rem, 2.5vw, 1.375rem); }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p { color: var(--clr-text-secondary); line-height: 1.75; }

.pixel-text {
  font-family: var(--font-pixel);
  font-size: 0.625rem;
  letter-spacing: 0.05em;
}

/* ─── Section ───────────────────────────────── */
section {
  padding-block: 3rem; /* mobile: 48px */
}

@media (min-width: 768px)  { section { padding-block: 4rem; } }
@media (min-width: 1024px) { section { padding-block: 5rem; } }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--clr-emerald);
  background: rgba(40,118,83,0.08);
  border: 1px solid rgba(40,118,83,0.2);
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

.section-label::before { content: '◆'; font-size: 7px; }

.section-title { margin-bottom: 0.75rem; }

.section-subtitle {
  font-size: 1rem;
  color: var(--clr-text-muted);
  line-height: 1.7;
}

@media (min-width: 768px) {
  .section-subtitle { font-size: 1.0625rem; max-width: 600px; }
}

.section-header { margin-bottom: 2rem; }

@media (min-width: 768px) { .section-header { margin-bottom: 3rem; } }

.section-header.centered {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ─── Pixel Decorative ──────────────────────── */
.pixel-badge {
  display: inline-block;
  font-family: var(--font-pixel);
  font-size: 8px;
  padding: 4px 10px;
  background: var(--clr-gold);
  color: var(--clr-forest);
  clip-path: polygon(
    0 4px, 4px 4px, 4px 0,
    calc(100% - 4px) 0, calc(100% - 4px) 4px, 100% 4px,
    100% calc(100% - 4px), calc(100% - 4px) calc(100% - 4px), calc(100% - 4px) 100%,
    4px 100%, 4px calc(100% - 4px), 0 calc(100% - 4px)
  );
}

.pixel-corner-box {
  position: relative;
  border: 2px solid var(--clr-gold);
}

.pixel-corner-box::before,
.pixel-corner-box::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--clr-gold);
}

.pixel-corner-box::before { top: -5px; left: -5px; }
.pixel-corner-box::after  { bottom: -5px; right: -5px; }

/* ─── Buttons — touch-friendly ──────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  /* min 44px touch target */
  min-height: 44px;
  padding: 0.6875rem 1.375rem;
  border-radius: var(--radius-lg);
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all var(--t-base);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn-primary {
  background: linear-gradient(135deg, var(--clr-emerald) 0%, var(--clr-forest) 100%);
  color: var(--clr-white);
  box-shadow: 0 4px 14px rgba(40,118,83,0.35);
}

@media (hover: hover) {
  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40,118,83,0.45);
  }
}

.btn-primary:active { transform: scale(0.98); }

.btn-secondary {
  background: transparent;
  color: var(--clr-forest);
  border-color: var(--clr-emerald);
}

@media (hover: hover) {
  .btn-secondary:hover {
    background: var(--clr-emerald);
    color: var(--clr-white);
  }
}

.btn-secondary:active { background: var(--clr-emerald); color: var(--clr-white); }

.btn-gold {
  background: linear-gradient(135deg, var(--clr-gold) 0%, var(--clr-gold-dark) 100%);
  color: var(--clr-forest);
  box-shadow: var(--shadow-gold);
  font-weight: 700;
}

@media (hover: hover) {
  .btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(221,166,74,0.45);
  }
}

.btn-gold:active { transform: scale(0.98); }

.btn-outline-light {
  background: transparent;
  color: var(--clr-white);
  border-color: rgba(255,255,255,0.5);
}

@media (hover: hover) {
  .btn-outline-light:hover {
    background: rgba(255,255,255,0.15);
    border-color: var(--clr-white);
  }
}

.btn-sm {
  min-height: 40px;
  padding: 0.5rem 1.125rem;
  font-size: 0.875rem;
}

.btn-lg {
  min-height: 52px;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  border-radius: var(--radius-xl);
}

@media (min-width: 768px) {
  .btn-lg { font-size: 1.0625rem; }
}

/* ─── Cards ─────────────────────────────────── */
.card {
  background: var(--clr-white);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(165,185,154,0.2);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}

@media (min-width: 768px) { .card { padding: 1.75rem; } }

@media (hover: hover) {
  .card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(40,118,83,0.2);
  }
}

.card-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--clr-forest);
  margin-bottom: 0.625rem;
}

.card-text {
  font-size: 0.875rem;
  color: var(--clr-text-muted);
  line-height: 1.7;
}

/* ─── Grid Utilities — mobile first ─────────── */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

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

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

@media (min-width: 600px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}

@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .grid-4 { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
}

/* ─── Backgrounds ───────────────────────────── */
.bg-forest { background: var(--clr-forest); color: var(--clr-white); }
.bg-cream   { background: var(--clr-cream); }
.bg-sage    { background: rgba(165,185,154,0.12); }
.bg-pattern {
  background-color: var(--clr-cream);
  background-image: radial-gradient(circle at 1px 1px, rgba(40,118,83,0.12) 1px, transparent 0);
  background-size: 24px 24px;
}

/* ─── Animations ────────────────────────────── */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Scroll reveal — disabled on very small screens for performance */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed     { opacity: 1; transform: translateY(0); }
.reveal.delay-1      { transition-delay: 0.08s; }
.reveal.delay-2      { transition-delay: 0.16s; }
.reveal.delay-3      { transition-delay: 0.24s; }
.reveal.delay-4      { transition-delay: 0.32s; }

/* Float only on desktop */
@media (min-width: 1024px) {
  .animate-float { animation: float 5s ease-in-out infinite; }
}

/* ═══════════════════════════════════════════════
   NAVBAR — Mobile First
═══════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-navbar);
  height: var(--navbar-h);
  background: rgba(24,61,50,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background var(--t-base), box-shadow var(--t-base);
  will-change: background;
}

.navbar.scrolled {
  background: rgba(15,38,32,0.98);
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}

.navbar-inner {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--container-pad);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

/* Brand */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  flex-shrink: 0;
  min-height: 44px; /* touch target */
}

.navbar-logo { width: 38px; height: 38px; flex-shrink: 0; }

@media (min-width: 768px) { .navbar-logo { width: 44px; height: 44px; } }

.navbar-name { display: flex; flex-direction: column; }

.navbar-name-main {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--clr-white);
  line-height: 1.2;
}

@media (min-width: 768px) { .navbar-name-main { font-size: 0.875rem; } }

.navbar-name-sub {
  font-family: var(--font-pixel);
  font-size: 6px;
  color: var(--clr-gold);
  margin-top: 2px;
}

/* Desktop Nav — hidden on mobile */
.navbar-nav {
  display: none;
}

@media (min-width: 1024px) {
  .navbar-nav {
    display: flex;
    align-items: center;
    gap: 0.125rem;
    flex: 1;
    justify-content: center;
  }
}

.nav-link {
  position: relative;
  padding: 0.5rem 0.75rem;
  color: rgba(255,255,255,0.85);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: color var(--t-base), background var(--t-base);
  white-space: nowrap;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--clr-gold);
  border-radius: var(--radius-full);
  transition: width var(--t-base);
}

.nav-link:hover, .nav-link.active { color: var(--clr-white); }
.nav-link:hover::after, .nav-link.active::after { width: 60%; }
.nav-link.active { background: rgba(221,166,74,0.12); }

/* Navbar CTA — hidden below 1024px */
.navbar-cta { display: none; }

@media (min-width: 1024px) { .navbar-cta { display: flex; flex-shrink: 0; } }

/* ─── Hamburger Button ──────────────────────── */
.navbar-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /* 44×44 touch target */
  width: 44px;
  height: 44px;
  cursor: pointer;
  gap: 5px;
  padding: 0.625rem;
  border-radius: var(--radius-md);
  transition: background var(--t-fast);
  flex-shrink: 0;
}

.navbar-toggle:active { background: rgba(255,255,255,0.1); }

.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--clr-white);
  border-radius: var(--radius-full);
  transition: transform var(--t-base), opacity var(--t-base), width var(--t-base);
  transform-origin: center;
}

.navbar-toggle.open .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar-toggle.open .hamburger-line:nth-child(2) { opacity: 0; width: 0; }
.navbar-toggle.open .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 1024px) { .navbar-toggle { display: none; } }

/* ─── Mobile Menu — smooth animated ─────────── */
.navbar-mobile {
  position: fixed;
  top: var(--navbar-h);
  left: 0;
  right: 0;
  background: var(--clr-forest-dark);
  z-index: calc(var(--z-navbar) - 1);
  border-top: 1px solid rgba(165,185,154,0.15);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  /* Animated drawer */
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.35s ease;
}

.navbar-mobile.open {
  max-height: 480px;
  visibility: visible;
}

.navbar-mobile-inner {
  padding: 1rem var(--container-pad) 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  color: rgba(255,255,255,0.85);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius-lg);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  border-left: 3px solid transparent;
  min-height: 48px; /* comfortable touch target */
}

.mobile-nav-link:active,
.mobile-nav-link.active {
  background: rgba(165,185,154,0.1);
  color: var(--clr-white);
  border-left-color: var(--clr-gold);
}

.mobile-nav-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin-block: 0.5rem;
}

.mobile-nav-cta {
  margin-top: 0.5rem;
}

@media (min-width: 1024px) { .navbar-mobile { display: none !important; } }

/* ═══════════════════════════════════════════════
   HERO — Mobile First
═══════════════════════════════════════════════ */
.hero {
  background: linear-gradient(
    160deg,
    var(--clr-forest-dark) 0%,
    var(--clr-forest) 45%,
    var(--clr-forest-light) 75%,
    var(--clr-emerald) 100%
  );
  position: relative;
  overflow: hidden;
  padding-top: var(--navbar-h);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(165,185,154,0.04) 1px, transparent 1px),
    linear-gradient(to right, rgba(165,185,154,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 2rem;
  padding-bottom: 3rem;
  gap: 2rem;
  text-align: center;
}

@media (min-width: 1024px) {
  .hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: calc(100vh - var(--navbar-h));
    padding-block: 4rem;
    text-align: left;
  }
}

/* Hero illustration — mobile: top, desktop: right */
.hero-visual {
  order: -1; /* illustration above text on mobile */
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  position: relative;
}

@media (min-width: 1024px) {
  .hero-visual {
    order: 1;
    position: relative;
  }
}

.hero-illustration {
  width: min(260px, 80vw);
  height: auto;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.35));
}

@media (min-width: 600px) { .hero-illustration { width: min(320px, 70vw); } }
@media (min-width: 1024px) {
  .hero-illustration {
    width: 100%;
    max-width: 460px;
  }
}

.hero-pixel-deco {
  position: absolute;
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--clr-gold);
  opacity: 0.6;
  pointer-events: none;
}

.hero-pixel-deco-1 { top: 10%; right: 5%; }
.hero-pixel-deco-2 { bottom: 20%; left: 5%; }
.hero-pixel-deco-3 { top: 50%; right: 2%; }

/* Hide pixel decos on very small screens */
@media (max-width: 390px) { .hero-pixel-deco { display: none; } }

/* Hero Content */
.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  width: 100%;
}

@media (min-width: 1024px) {
  .hero-content {
    align-items: flex-start;
    gap: 1.25rem;
  }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  background: rgba(221,166,74,0.15);
  border: 1px solid rgba(221,166,74,0.3);
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-full);
}

.hero-eyebrow-pixel {
  font-family: var(--font-pixel);
  font-size: 7px;
  color: var(--clr-gold);
  animation: blink 2s step-end infinite;
}

.hero-eyebrow-text {
  font-size: 0.8125rem;
  color: var(--clr-sage);
  font-weight: 500;
}

.hero-title {
  color: var(--clr-white);
  font-size: clamp(1.625rem, 5.5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
}

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

.hero-tagline {
  font-size: clamp(0.9375rem, 2.5vw, 1.125rem);
  color: var(--clr-sage-light);
  font-style: italic;
  font-weight: 500;
  line-height: 1.5;
  max-width: 520px;
}

.hero-desc {
  color: rgba(165,185,154,0.85);
  font-size: 0.9375rem;
  line-height: 1.75;
  max-width: 520px;
}

/* On very small screens, hide description to reduce clutter */
@media (max-width: 389px) { .hero-desc { display: none; } }

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

@media (min-width: 480px) {
  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
  }
}

@media (min-width: 1024px) {
  .hero-actions { justify-content: flex-start; }
}

/* Full-width buttons on mobile */
.hero-actions .btn {
  width: 100%;
}

@media (min-width: 480px) {
  .hero-actions .btn { width: auto; }
}

.hero-stats {
  display: flex;
  gap: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(165,185,154,0.2);
  margin-top: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

@media (min-width: 1024px) { .hero-stats { justify-content: flex-start; } }

.hero-stat { display: flex; flex-direction: column; align-items: center; }

@media (min-width: 1024px) { .hero-stat { align-items: flex-start; } }

.hero-stat-number {
  font-family: var(--font-pixel);
  font-size: 1rem;
  color: var(--clr-gold);
  line-height: 1;
}

@media (min-width: 768px) { .hero-stat-number { font-size: 1.125rem; } }

.hero-stat-label {
  font-size: 0.75rem;
  color: var(--clr-sage);
  margin-top: 0.375rem;
}

/* ═══════════════════════════════════════════════
   SAMBUTAN — Mobile First
═══════════════════════════════════════════════ */
.sambutan {
  background: var(--clr-cream);
  position: relative;
  overflow: hidden;
}

.sambutan::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: repeating-linear-gradient(
    to right,
    var(--clr-gold) 0, var(--clr-gold) 8px,
    var(--clr-emerald) 8px, var(--clr-emerald) 16px
  );
}

.sambutan-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 768px) {
  .sambutan-inner {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 3rem;
    align-items: start;
  }
}

@media (min-width: 1024px) {
  .sambutan-inner { grid-template-columns: 320px 1fr; gap: 4rem; }
}

.sambutan-photo-wrap {
  position: relative;
  max-width: 240px;
  margin-inline: auto;
}

@media (min-width: 768px) { .sambutan-photo-wrap { max-width: none; margin-inline: 0; } }

.sambutan-photo-frame {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--clr-white);
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, var(--clr-sage-light), var(--clr-cream-dark));
}

.sambutan-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  padding: 1.5rem;
  text-align: center;
}

.sambutan-photo-label {
  font-family: var(--font-pixel);
  font-size: 7px;
  color: var(--clr-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.8;
}

.sambutan-badge {
  position: absolute;
  bottom: -12px;
  right: -8px;
  background: linear-gradient(135deg, var(--clr-gold), var(--clr-gold-dark));
  color: var(--clr-forest);
  padding: 0.625rem 1rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-gold);
}

.sambutan-badge-title {
  font-family: var(--font-pixel);
  font-size: 7px;
  display: block;
  opacity: 0.8;
}

.sambutan-badge-name {
  font-size: 0.8125rem;
  font-weight: 700;
  display: block;
  margin-top: 2px;
}

.sambutan-quote {
  font-size: 1.0625rem;
  font-style: italic;
  color: var(--clr-forest);
  line-height: 1.6;
  position: relative;
  padding-left: 1.125rem;
  border-left: 3px solid var(--clr-gold);
  margin-block: 1rem;
}

@media (min-width: 768px) { .sambutan-quote { font-size: 1.125rem; } }

/* ═══════════════════════════════════════════════
   PROFIL GRID — Mobile First
═══════════════════════════════════════════════ */
.profil-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 600px) {
  .profil-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}

@media (min-width: 1024px) {
  .profil-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .profil-card-sejarah { grid-row: span 2; }
}

.profil-card {
  padding: 1.25rem;
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) { .profil-card { padding: 1.75rem; } }

.profil-card-sejarah {
  background: linear-gradient(135deg, var(--clr-forest), var(--clr-forest-light));
  color: var(--clr-white);
}

.profil-card-sejarah h3, .profil-card-sejarah p { color: inherit; }
.profil-card-sejarah p { color: rgba(255,255,255,0.82); }

.profil-card-visi {
  background: var(--clr-white);
  border: 2px solid var(--clr-gold);
  box-shadow: var(--shadow-sm);
}

.profil-card-misi {
  background: linear-gradient(135deg, rgba(40,118,83,0.05), rgba(165,185,154,0.1));
  border: 2px solid rgba(40,118,83,0.15);
}

.profil-card-identitas {
  background: linear-gradient(135deg, var(--clr-gold), var(--clr-gold-dark));
  color: var(--clr-forest);
}

/* ═══════════════════════════════════════════════
   PROGRAM AKADEMIK — Mobile First
═══════════════════════════════════════════════ */
.program-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 600px) { .program-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; } }
@media (min-width: 1024px) { .program-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }

.program-card {
  background: var(--clr-white);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(165,185,154,0.25);
  transition: transform var(--t-base), box-shadow var(--t-base);
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) { .program-card { padding: 1.75rem; } }

.program-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--clr-emerald), var(--clr-gold));
  transform: scaleX(0);
  transition: transform var(--t-base);
  transform-origin: left;
}

@media (hover: hover) {
  .program-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
  .program-card:hover::before { transform: scaleX(1); }
}

.program-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 1rem;
}

/* ═══════════════════════════════════════════════
   PRESTASI — Mobile First
═══════════════════════════════════════════════ */
.prestasi {
  background: var(--clr-forest);
  color: var(--clr-white);
  position: relative;
  overflow: hidden;
}

.prestasi::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(221,166,74,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(40,118,83,0.15) 0%, transparent 50%);
  pointer-events: none;
}

.prestasi .section-title, .prestasi h3 { color: var(--clr-white); }
.prestasi .section-subtitle { color: var(--clr-sage); }

.prestasi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.875rem;
  position: relative;
}

@media (min-width: 768px) {
  .prestasi-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
}

.prestasi-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  padding: 1.25rem 1rem;
  text-align: center;
  transition: background var(--t-base), border-color var(--t-base);
}

@media (min-width: 768px) { .prestasi-card { padding: 2rem 1.5rem; } }

@media (hover: hover) {
  .prestasi-card:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(221,166,74,0.4);
  }
}

.prestasi-number {
  font-family: var(--font-pixel);
  font-size: 1rem;
  color: var(--clr-gold);
  display: block;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) { .prestasi-number { font-size: 1.25rem; } }

.prestasi-label {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.8);
}

/* ═══════════════════════════════════════════════
   BERITA — Mobile First
═══════════════════════════════════════════════ */
.berita-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 600px) { .berita-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .berita-grid { grid-template-columns: repeat(3, 1fr); } }

.berita-card {
  background: var(--clr-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(165,185,154,0.2);
  transition: transform var(--t-base), box-shadow var(--t-base);
  display: flex;
  flex-direction: column;
}

@media (hover: hover) {
  .berita-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
}

.berita-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.berita-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}

@media (hover: hover) {
  .berita-card:hover .berita-thumb img { transform: scale(1.05); }
}

.berita-dummy-badge {
  position: absolute;
  top: 0.625rem;
  left: 0.625rem;
  background: var(--clr-gold);
  color: var(--clr-forest);
  font-family: var(--font-pixel);
  font-size: 7px;
  padding: 3px 7px;
  border-radius: var(--radius-sm);
}

.berita-body {
  padding: 1.125rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.berita-meta {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.625rem;
  flex-wrap: wrap;
}

.berita-category {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--clr-emerald);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.berita-date { font-size: 0.75rem; color: var(--clr-text-muted); }

.berita-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--clr-forest);
  line-height: 1.4;
  margin-bottom: 0.625rem;
  transition: color var(--t-fast);
}

@media (hover: hover) {
  .berita-card:hover .berita-title { color: var(--clr-emerald); }
}

.berita-excerpt {
  font-size: 0.8125rem;
  color: var(--clr-text-muted);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 0.875rem;
}

.berita-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--clr-emerald);
  transition: gap var(--t-fast);
  min-height: 36px; /* adequate touch area */
}

@media (hover: hover) { .berita-read-more:hover { gap: 0.625rem; } }

/* ═══════════════════════════════════════════════
   GALERI PREVIEW — Mobile First
═══════════════════════════════════════════════ */
.galeri-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto;
  gap: 0.625rem;
}

@media (min-width: 600px) {
  .galeri-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 200px);
    gap: 0.75rem;
  }

  .galeri-item:first-child { grid-row: span 2; }
}

@media (min-width: 1024px) {
  .galeri-grid {
    grid-template-rows: repeat(2, 240px);
    gap: 0.875rem;
  }
}

.galeri-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  background: var(--clr-sage);
  aspect-ratio: 1;
}

@media (min-width: 600px) { .galeri-item { aspect-ratio: auto; } }

.galeri-item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }

@media (hover: hover) { .galeri-item:hover img { transform: scale(1.08); } }

.galeri-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(24,61,50,0.75), transparent);
  opacity: 0;
  transition: opacity var(--t-base);
  display: flex;
  align-items: flex-end;
  padding: 0.875rem;
}

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

@media (hover: hover) { .galeri-item:hover .galeri-overlay { opacity: 1; } }

.galeri-overlay-text { color: var(--clr-white); font-size: 0.8125rem; font-weight: 600; }

/* ═══════════════════════════════════════════════
   CTA SECTION — Mobile First
═══════════════════════════════════════════════ */
.cta-section {
  background: linear-gradient(135deg, var(--clr-emerald) 0%, var(--clr-forest) 55%, var(--clr-forest-dark) 100%);
  color: var(--clr-white);
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-block: 3.5rem;
}

@media (min-width: 768px) { .cta-section { padding-block: 5rem; } }

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 30% 70%, rgba(221,166,74,0.12) 0%, transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(165,185,154,0.08) 0%, transparent 50%);
  pointer-events: none;
}

.cta-section h2 { color: var(--clr-white); }
.cta-section p  { color: rgba(255,255,255,0.82); }

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  justify-content: center;
  margin-top: 2rem;
  align-items: stretch;
}

.cta-actions .btn { width: 100%; }

@media (min-width: 480px) {
  .cta-actions { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .cta-actions .btn { width: auto; }
}

/* ═══════════════════════════════════════════════
   FOOTER — Mobile First
═══════════════════════════════════════════════ */
.footer {
  background: var(--clr-forest-dark);
  color: rgba(255,255,255,0.8);
  padding-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

@media (min-width: 600px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; }
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-brand-logo { width: 36px; height: 36px; flex-shrink: 0; }
.footer-brand-name { font-weight: 700; color: var(--clr-white); line-height: 1.3; font-size: 0.875rem; }

.footer-desc {
  font-size: 0.8125rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.25rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.65);
}

.footer-contact-icon { flex-shrink: 0; margin-top: 2px; color: var(--clr-gold); }

.footer-heading {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: 1rem;
  padding-bottom: 0.625rem;
  position: relative;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 20px; height: 2px;
  background: var(--clr-gold);
}

.footer-nav { display: flex; flex-direction: column; gap: 0.625rem; }

.footer-nav-link {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--t-fast);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 36px;
}

.footer-nav-link::before { content: '▸'; color: var(--clr-gold); font-size: 10px; }

@media (hover: hover) { .footer-nav-link:hover { color: var(--clr-white); } }

.footer-social { display: flex; gap: 0.625rem; margin-top: 1rem; flex-wrap: wrap; }

.footer-social-link {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: background var(--t-fast), color var(--t-fast);
  border: 1px solid rgba(255,255,255,0.1);
}

.footer-social-link:active {
  background: var(--clr-gold);
  color: var(--clr-forest);
}

@media (hover: hover) {
  .footer-social-link:hover {
    background: var(--clr-gold);
    color: var(--clr-forest);
    transform: translateY(-2px);
  }
}

.footer-bottom {
  padding-block: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

.footer-copyright { font-size: 0.75rem; color: rgba(255,255,255,0.4); }
.footer-pixel-credit { font-family: var(--font-pixel); font-size: 7px; color: var(--clr-gold); opacity: 0.5; }

/* ═══════════════════════════════════════════════
   PAGE HEADER BANNER — Mobile First
═══════════════════════════════════════════════ */
.page-header {
  background: linear-gradient(135deg, var(--clr-forest-dark) 0%, var(--clr-forest) 60%, var(--clr-emerald) 100%);
  padding-top: calc(var(--navbar-h) + 2rem);
  padding-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
  color: var(--clr-white);
}

@media (min-width: 768px) {
  .page-header {
    padding-top: calc(var(--navbar-h) + 3rem);
    padding-bottom: 3.5rem;
  }
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(165,185,154,0.04) 1px, transparent 1px),
    linear-gradient(to right, rgba(165,185,154,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.page-header-content { position: relative; z-index: 1; }
.page-header h1 { color: var(--clr-white); margin-bottom: 0.625rem; }
.page-header p  { color: rgba(165,185,154,0.9); font-size: 0.9375rem; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.875rem;
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--clr-gold); }
.breadcrumb-sep { font-size: 10px; }

/* ═══════════════════════════════════════════════
   GALERI PAGE — Mobile First
═══════════════════════════════════════════════ */
.galeri-filter {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  justify-content: center;
}

.filter-btn {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  border: 2px solid var(--clr-emerald);
  color: var(--clr-emerald);
  background: transparent;
  cursor: pointer;
  transition: all var(--t-fast);
  min-height: 40px;
  touch-action: manipulation;
}

.filter-btn:active,
.filter-btn.active { background: var(--clr-emerald); color: var(--clr-white); }

@media (hover: hover) {
  .filter-btn:hover { background: var(--clr-emerald); color: var(--clr-white); }
}

.galeri-full-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.625rem;
}

@media (min-width: 600px) { .galeri-full-grid { grid-template-columns: repeat(3, 1fr); gap: 0.875rem; } }
@media (min-width: 900px) { .galeri-full-grid { gap: 1rem; } }

.galeri-full-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: var(--clr-sage-light);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.galeri-full-item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }

@media (hover: hover) { .galeri-full-item:hover img { transform: scale(1.06); } }

.galeri-full-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(24,61,50,0.8) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--t-base);
  display: flex;
  align-items: flex-end;
  padding: 0.875rem;
}

.galeri-full-item:active .galeri-full-overlay { opacity: 1; }

@media (hover: hover) { .galeri-full-item:hover .galeri-full-overlay { opacity: 1; } }

.galeri-full-caption { color: var(--clr-white); font-size: 0.8125rem; font-weight: 600; }

/* ═══════════════════════════════════════════════
   LIGHTBOX — Touch Optimized
═══════════════════════════════════════════════ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: rgba(0,0,0,0.95);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lightbox.active { display: flex; }

.lightbox-inner {
  position: relative;
  max-width: 900px;
  width: 100%;
}

.lightbox-img {
  width: 100%;
  height: auto;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
}

.lightbox-close {
  position: absolute;
  top: -48px;
  right: 0;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-white);
  font-size: 1.125rem;
  cursor: pointer;
  touch-action: manipulation;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-white);
  cursor: pointer;
  transition: background var(--t-fast);
  font-size: 1.25rem;
  touch-action: manipulation;
}

.lightbox-nav:active { background: rgba(255,255,255,0.25); }

/* On very small screens, put nav buttons at bottom */
@media (max-width: 480px) {
  .lightbox-prev, .lightbox-next {
    top: auto;
    bottom: -52px;
    transform: none;
  }
  .lightbox-prev { left: calc(50% - 52px); }
  .lightbox-next { right: calc(50% - 52px); }
}

@media (min-width: 481px) {
  .lightbox-prev { left: -56px; }
  .lightbox-next { right: -56px; }
}

.lightbox-caption {
  text-align: center;
  color: rgba(255,255,255,0.8);
  font-size: 0.875rem;
  margin-top: 0.875rem;
}

.lightbox-counter {
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-family: var(--font-pixel);
  font-size: 8px;
  margin-top: 0.375rem;
}

/* ═══════════════════════════════════════════════
   KONTAK PAGE — Mobile First
═══════════════════════════════════════════════ */
.kontak-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .kontak-grid { grid-template-columns: 1fr 1.5fr; gap: 2.5rem; align-items: start; }
}

.kontak-info-card {
  background: var(--clr-forest);
  color: var(--clr-white);
  border-radius: var(--radius-2xl);
  padding: 1.5rem;
}

@media (min-width: 768px) { .kontak-info-card { padding: 2.5rem; } }

.kontak-info-card h3 { color: var(--clr-white); margin-bottom: 1.5rem; }

.kontak-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.kontak-item:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.kontak-icon {
  width: 40px;
  height: 40px;
  background: rgba(221,166,74,0.15);
  border: 1px solid rgba(221,166,74,0.3);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--clr-gold);
}

.kontak-label {
  font-family: var(--font-pixel);
  font-size: 7px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
  display: block;
}

.kontak-value { color: var(--clr-white); font-weight: 500; font-size: 0.9375rem; }

.kontak-placeholder-note {
  font-family: var(--font-pixel);
  font-size: 7px;
  color: var(--clr-gold);
  display: block;
  margin-top: 0.25rem;
}

.maps-placeholder {
  background: var(--clr-sage-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  border: 2px dashed var(--clr-sage);
}

@media (min-width: 768px) { .maps-placeholder { height: 340px; } }

/* ═══════════════════════════════════════════════
   PROFIL PAGE — Mobile First
═══════════════════════════════════════════════ */
.profil-sejarah {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 900px) {
  .profil-sejarah { grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
}

.profil-identitas-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.profil-identitas-table tr:nth-child(even) { background: rgba(165,185,154,0.08); }
.profil-identitas-table tr:first-child td  { border-top: none; }

.profil-identitas-table td {
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  border-top: 1px solid rgba(165,185,154,0.2);
  vertical-align: top;
  line-height: 1.5;
}

@media (min-width: 768px) { .profil-identitas-table td { padding: 0.875rem 1.25rem; font-size: 0.875rem; } }

.profil-identitas-table td:first-child {
  font-weight: 600;
  color: var(--clr-forest);
  width: 42%;
}

.profil-identitas-table td:last-child { color: var(--clr-text-secondary); }

/* ═══════════════════════════════════════════════
   AKADEMIK PAGE — Mobile First
═══════════════════════════════════════════════ */
.akademik-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 2rem;
  border-bottom: 2px solid rgba(165,185,154,0.2);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.akademik-tabs::-webkit-scrollbar { display: none; }

.tab-btn {
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--clr-text-muted);
  border-bottom: 3px solid transparent;
  transition: color var(--t-fast), border-color var(--t-fast);
  white-space: nowrap;
  cursor: pointer;
  background: none;
  border-radius: 0;
  margin-bottom: -2px;
  font-family: var(--font-primary);
  min-height: 44px; /* touch target */
  flex-shrink: 0;
}

@media (min-width: 768px) { .tab-btn { padding: 0.75rem 1.5rem; } }

.tab-btn:active, .tab-btn.active { color: var(--clr-emerald); border-bottom-color: var(--clr-emerald); }

@media (hover: hover) { .tab-btn:hover { color: var(--clr-emerald); } }

.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.3s ease; }

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

@media (min-width: 480px) { .ekskul-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .ekskul-grid { grid-template-columns: repeat(3, 1fr); } }

.ekskul-card {
  background: var(--clr-white);
  border: 1px solid rgba(165,185,154,0.25);
  border-radius: var(--radius-xl);
  padding: 0.875rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  min-height: 60px;
}

@media (hover: hover) {
  .ekskul-card:hover {
    border-color: var(--clr-emerald);
    box-shadow: var(--shadow-sm);
  }
}

/* ═══════════════════════════════════════════════
   BERITA PAGE — Mobile First
═══════════════════════════════════════════════ */
.berita-page-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 900px) {
  .berita-page-grid { grid-template-columns: 2fr 1fr; gap: 2.5rem; }
}

.berita-list { display: flex; flex-direction: column; gap: 1.25rem; }

.berita-list-card {
  background: var(--clr-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(165,185,154,0.2);
  transition: box-shadow var(--t-base);
}

@media (min-width: 600px) {
  .berita-list-card { display: grid; grid-template-columns: 200px 1fr; }
}

@media (min-width: 768px) {
  .berita-list-card { grid-template-columns: 240px 1fr; }
}

@media (hover: hover) {
  .berita-list-card:hover { box-shadow: var(--shadow-lg); }
}

.berita-list-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  flex-shrink: 0;
}

@media (min-width: 600px) { .berita-list-thumb { aspect-ratio: auto; } }

.berita-list-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}

@media (hover: hover) {
  .berita-list-card:hover .berita-list-thumb img { transform: scale(1.05); }
}

.berita-list-body { padding: 1.125rem; display: flex; flex-direction: column; }

.berita-sidebar-widget {
  background: var(--clr-white);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(165,185,154,0.2);
  margin-bottom: 1.25rem;
}

.berita-detail-content h2, .berita-detail-content h3 { margin-top: 2rem; margin-bottom: 0.875rem; }
.berita-detail-content p { margin-bottom: 1.125rem; line-height: 1.8; }

/* ═══════════════════════════════════════════════
   PLACEHOLDER STYLES
═══════════════════════════════════════════════ */
.img-placeholder {
  background: linear-gradient(135deg, var(--clr-sage-light), var(--clr-cream-dark));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.75rem;
  padding: 1.5rem;
  width: 100%;
  height: 100%;
  min-height: 160px;
}

.img-placeholder-label {
  font-family: var(--font-pixel);
  font-size: 7px;
  color: var(--clr-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  max-width: 140px;
  line-height: 1.8;
}

/* ═══════════════════════════════════════════════
   UTILITIES
═══════════════════════════════════════════════ */
.text-center    { text-align: center; }
.text-gold      { color: var(--clr-gold); }
.text-emerald   { color: var(--clr-emerald); }
.text-muted     { color: var(--clr-text-muted); }
.mt-2           { margin-top: 0.5rem; }
.mt-4           { margin-top: 1rem; }
.mt-6           { margin-top: 1.5rem; }
.mt-8           { margin-top: 2rem; }
.mb-4           { margin-bottom: 1rem; }
.mb-6           { margin-bottom: 1.5rem; }
.mb-8           { margin-bottom: 2rem; }

/* Visually hidden for screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* ═══════════════════════════════════════════════
   SCROLLBAR
═══════════════════════════════════════════════ */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--clr-cream); }
::-webkit-scrollbar-thumb { background: var(--clr-sage); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--clr-emerald); }

::selection { background: rgba(40,118,83,0.2); color: var(--clr-forest); }

/* ═══════════════════════════════════════════════
   FOCUS STYLES — Accessibility
═══════════════════════════════════════════════ */
:focus-visible {
  outline: 2px solid var(--clr-gold);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
