/* ==========================================================================
   SDS NURANI JAKARTA - MODERN DESIGN SYSTEM
   Palet Warna: Emerald Green, Golden Yellow (sesuai logo resmi), Clean Slate
   ========================================================================== */

:root {
  /* Brand Colors from Official Logo */
  --primary: #065f46;          /* Deep Emerald / Hijau Tua Islami */
  --primary-light: #10b981;    /* Vibrant Emerald */
  --primary-dark: #022c22;     /* Dark Emerald */
  --primary-soft: #ecfdf5;     /* Soft Mint Background */

  --accent: #f59e0b;           /* Bright Amber / Emas Kuning Logo */
  --accent-light: #fbbf24;     /* Light Gold */
  --accent-soft: #fef3c7;      /* Warm Pale Gold */

  /* Neutral Shades */
  --bg-main: #f8fafc;          /* Ultra clean Slate 50 */
  --bg-card: #ffffff;
  --text-main: #0f172a;        /* Slate 900 */
  --text-muted: #475569;       /* Slate 600 */
  --text-light: #94a3b8;       /* Slate 400 */
  --border-color: #e2e8f0;     /* Slate 200 */

  /* Shadows & Glassmorphism */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --glass-bg: rgba(255, 255, 255, 0.88);
  --glass-border: rgba(255, 255, 255, 0.6);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Fonts */
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

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

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

section[id] {
  scroll-margin-top: 82px;
}

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

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

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

ul {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Top Announcement Bar */
.top-bar {
  background: linear-gradient(90deg, #022c22 0%, #065f46 50%, #047857 100%);
  color: #ffffff;
  font-size: 0.85rem;
  padding: 0.5rem 0;
  border-bottom: 2px solid var(--accent);
  overflow: hidden;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  overflow: hidden;
}

.top-bar-marquee {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.top-bar-marquee #topBarAnnouncement {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-bar-badge {
  flex-shrink: 0;
  background: var(--accent);
  color: #000;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.top-bar-contacts {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.8rem;
  color: #d1fae5;
  flex-shrink: 0;
}

.top-bar-contacts span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4.75rem;
  gap: 1.25rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
}

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

.nav-brand-text h1 {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.15;
  letter-spacing: -0.3px;
  white-space: nowrap;
  margin: 0;
}

.nav-brand-text p {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.8px;
  white-space: nowrap;
  margin: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
  position: relative;
  padding: 0.35rem 0;
  white-space: nowrap;
  text-decoration: none;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0%;
  height: 2.5px;
  background: var(--primary-light);
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: var(--radius-full);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-main);
  cursor: pointer;
  padding: 0.25rem;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 4.5rem 0 5rem;
  background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.12), transparent 45%),
              radial-gradient(circle at bottom left, rgba(245, 158, 11, 0.08), transparent 40%),
              #ffffff;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid #a7f3d0;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.hero-tag .dot {
  width: 8px;
  height: 8px;
  background: var(--primary-light);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

.hero-title {
  font-size: 2.85rem;
  font-weight: 800;
  line-height: 1.18;
  color: var(--text-main);
  margin-bottom: 1.25rem;
  letter-spacing: -1px;
}

.hero-title .highlight {
  background: linear-gradient(120deg, var(--primary) 0%, #059669 50%, #047857 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2.25rem;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

@media (max-width: 1024px) {
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.15rem;
  }
}

.stat-item {
  min-width: 0;
}

.stat-item h3 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 0.3rem;
  white-space: nowrap;
}

.stat-item p {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.35;
}

/* Hero Media Showcase */
.hero-visual {
  position: relative;
}

.hero-visual-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 4px solid #ffffff;
}

.hero-visual-card img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.hero-floating-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--accent);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-floating-badge .icon {
  font-size: 1.5rem;
}

.hero-floating-badge h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.hero-floating-badge p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Section Header Component */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem;
}

.section-pill {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 0.85rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* Sambutan Kepala Sekolah */
.sambutan-section {
  padding: 5rem 0;
  background: #ffffff;
}

.sambutan-wrapper {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 3.5rem;
  align-items: center;
}

.sambutan-photo {
  position: relative;
  text-align: center;
}

.sambutan-image-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 4px solid #ffffff;
  background: var(--primary-soft);
}

.sambutan-image-frame img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.sambutan-badge {
  margin-top: 1rem;
  background: var(--primary);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  display: inline-block;
  font-weight: 700;
  font-size: 0.9rem;
}

.sambutan-content h3 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 1.25rem;
  line-height: 1.3;
}

.sambutan-content p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.sambutan-quote {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-style: italic;
  font-weight: 600;
  color: #78350f;
  margin: 1.5rem 0;
}

/* Profil & Visi Misi Section */
.profil-section {
  padding: 5rem 0;
  background: var(--bg-main);
}

.visi-misi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.visi-card, .misi-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.visi-card:hover, .misi-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-header-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
}

.visi-card .card-header-icon {
  background: var(--primary-soft);
  color: var(--primary);
}

.misi-card .card-header-icon {
  background: var(--accent-soft);
  color: var(--accent);
}

.visi-card h3, .misi-card h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.misi-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.misi-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.misi-list li span.check {
  color: var(--primary-light);
  font-weight: bold;
  font-size: 1.1rem;
}

/* Fasilitas Showcase */
.fasilitas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.fasilitas-item {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  text-align: center;
  transition: all 0.3s ease;
}

.fasilitas-item:hover {
  border-color: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.fasilitas-icon {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
  display: inline-block;
}

.fasilitas-item h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.fasilitas-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* PPDB Banner Section (Praktis, No Form Rumit) */
.ppdb-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #022c22 0%, #065f46 60%, #047857 100%);
  color: #ffffff;
  position: relative;
}

.ppdb-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: center;
}

.ppdb-content .badge {
  background: var(--accent);
  color: #000;
  font-weight: 800;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  display: inline-block;
  margin-bottom: 1.25rem;
  max-width: 100%;
  white-space: normal;
  word-break: break-word;
  line-height: 1.4;
  box-sizing: border-box;
}

.ppdb-content h2 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  color: #ffffff;
  word-break: break-word;
}

.ppdb-content p {
  font-size: 1.05rem;
  color: #d1fae5;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.ppdb-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.step-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.step-number {
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.step-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: #ffffff;
}

.step-card p {
  font-size: 0.8rem;
  color: #a7f3d0;
  line-height: 1.4;
  margin-bottom: 0;
}

.ppdb-cta-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  color: var(--text-main);
  box-shadow: var(--shadow-xl);
  text-align: center;
}

.ppdb-cta-box h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.ppdb-cta-box p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.ppdb-info-list {
  text-align: left;
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.ppdb-info-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-muted);
}

.ppdb-info-item i {
  color: var(--primary);
  font-size: 1.1rem;
}

/* Berita & Agenda Section */
.berita-section {
  padding: 5rem 0;
  background: #ffffff;
}

.berita-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.category-filter {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.45rem 1.15rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

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

/* Galeri Section */
.galeri-section {
  padding: 5rem 0;
  background: var(--bg-main);
}

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

/* Kontak & Lokasi */
.kontak-section {
  padding: 5rem 0;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
}

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

.kontak-info-cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.kontak-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.25rem;
  background: var(--bg-main);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.kontak-card-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.kontak-card-text h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.kontak-card-text p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.map-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  height: 100%;
  min-height: 320px;
}

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

/* Footer */
.footer {
  background: #022c22;
  color: #94a3b8;
  padding: 4.5rem 0 2rem;
  border-top: 4px solid var(--accent);
}

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

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

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

.footer-brand-text h3 {
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.footer-brand-text p {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: #cbd5e1;
}

.footer-links h4 {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-links h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--accent);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.footer-links a {
  color: #cbd5e1;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: #64748b;
}

/* Floating WhatsApp Widget */
.floating-wa {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  background: #25d366;
  color: #ffffff;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.35);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-wa:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 15px 25px rgba(37, 211, 102, 0.45);
  color: #ffffff;
}

.floating-wa i {
  font-size: 1.5rem;
  line-height: 1;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }
  .hero-buttons, .hero-stats {
    justify-content: center;
  }
  .hero-tag {
    margin-left: auto;
    margin-right: auto;
  }
  .berita-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .galeri-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .fasilitas-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ppdb-wrapper {
    grid-template-columns: 1fr;
  }
  .sambutan-wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .nav-menu {
    gap: 0.85rem;
  }
  .nav-link {
    font-size: 0.86rem;
  }
}

@media (max-width: 960px) {
  .nav-menu {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
}

@media (max-width: 768px) {
  .top-bar-contacts {
    display: none;
  }
  .navbar .container {
    padding: 0.6rem 1.25rem;
  }
  .nav-brand-text h1 {
    font-size: 1.1rem;
  }
  #navPpdbBtn span {
    display: none;
  }
  #navPpdbBtn {
    padding: 0.45rem 0.75rem;
    font-size: 0.95rem;
  }
  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .hero-title {
    font-size: 2.15rem;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .visi-misi-grid {
    grid-template-columns: 1fr;
  }
  .ppdb-steps {
    grid-template-columns: 1fr;
  }
  .ppdb-wrapper {
    grid-template-columns: 1fr !important;
    gap: 2.25rem !important;
  }
  .ppdb-content h2 {
    font-size: 1.85rem;
  }
  .ppdb-cta-box {
    padding: 1.75rem 1.25rem;
  }
  .fasilitas-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .sambutan-content h3 {
    font-size: 1.45rem;
    word-break: break-word;
  }
  .berita-grid {
    grid-template-columns: 1fr;
  }
  .galeri-grid {
    grid-template-columns: 1fr;
  }
  .kontak-wrapper {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .floating-wa span {
    display: none;
  }
  .floating-wa {
    padding: 0.85rem;
    bottom: 1.5rem;
    right: 1.5rem;
    border-radius: 50%;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  .navbar .container {
    padding: 0.6rem 1rem;
  }
  .nav-brand-text h1 {
    font-size: 1.05rem;
  }
  .nav-brand-text p {
    font-size: 0.68rem;
  }
  .nav-logo {
    width: 36px;
    height: 36px;
  }
  #navPpdbBtn span {
    display: none;
  }
  #navPpdbBtn {
    padding: 0.45rem 0.65rem;
    font-size: 0.95rem;
  }
  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    color: var(--primary);
  }
  .hero-title {
    font-size: 1.7rem;
    line-height: 1.25;
  }
  .hero-description {
    font-size: 0.9rem;
  }
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    text-align: center;
  }
  .stat-item h3 {
    font-size: 1.55rem;
  }
  .hero-floating-badge {
    left: 0.75rem;
    bottom: 0.75rem;
    padding: 0.6rem 0.85rem;
  }
  .sambutan-content h3 {
    font-size: 1.28rem;
  }
  .section-title {
    font-size: 1.55rem;
  }
  .section-subtitle {
    font-size: 0.88rem;
  }
  .fasilitas-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }
  .fasilitas-item {
    padding: 1.25rem 1rem;
    width: 100%;
    box-sizing: border-box;
  }
  .ppdb-wrapper {
    grid-template-columns: 1fr !important;
    gap: 1.75rem !important;
  }
  .ppdb-content .badge {
    font-size: 0.76rem;
    padding: 0.35rem 0.75rem;
    white-space: normal;
    word-break: break-word;
    display: inline-block;
  }
  .ppdb-content h2 {
    font-size: 1.45rem;
    line-height: 1.25;
  }
  .ppdb-content p {
    font-size: 0.92rem;
  }
  .step-card {
    padding: 1rem;
    box-sizing: border-box;
    width: 100%;
  }
  .ppdb-cta-box {
    padding: 1.5rem 1rem;
    border-radius: var(--radius-md);
  }
  .ppdb-cta-box h3 {
    font-size: 1.2rem;
  }
  .ppdb-cta-box .btn {
    white-space: normal;
    padding: 0.75rem 0.85rem;
    font-size: 0.88rem;
    line-height: 1.3;
  }
  .testimoni-card {
    padding: 1.25rem;
  }
  .faq-question {
    padding: 0.85rem 1rem;
    font-size: 0.88rem;
  }
  .faq-answer {
    font-size: 0.86rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
}

@media (max-width: 380px) {
  .nav-brand-text h1 {
    font-size: 0.95rem;
  }
  #navPpdbBtn span {
    display: none;
  }
  #navPpdbBtn {
    padding: 0.45rem 0.55rem;
  }
  .hero-stats {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   BERITA & AGENDA SEKOLAH (TWO COLUMN LAYOUT)
   ========================================================================== */
.berita-agenda-layout {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 960px) {
  .berita-agenda-layout {
    grid-template-columns: 1fr;
  }
}

.agenda-wrapper {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 6rem;
}

.agenda-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.agenda-header h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0;
}

.agenda-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.agenda-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 0.95rem;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all 0.25s ease;
}

.agenda-item:hover {
  transform: translateX(4px);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-sm);
}

.agenda-date-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  background: linear-gradient(135deg, var(--primary) 0%, #047857 100%);
  color: #ffffff;
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.25rem;
  line-height: 1.1;
  text-align: center;
  flex-shrink: 0;
}

.agenda-date-box .day {
  font-size: 1.35rem;
  font-weight: 800;
}

.agenda-date-box .month {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.agenda-info {
  flex: 1;
}

.agenda-info h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
  line-height: 1.35;
}

.agenda-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 0.4rem;
}

.agenda-meta {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

/* Berita Pinned Badge */
.badge-pinned {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  color: #000000 !important;
  font-weight: 700 !important;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* Multi-Photo Documentation inside Article Modal */
.article-doc-gallery {
  margin-top: 1.75rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.25rem;
}

.article-doc-gallery h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.article-doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.75rem;
}

.article-doc-thumb {
  aspect-ratio: 4/3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border-color);
  transition: all 0.25s ease;
}

.article-doc-thumb:hover {
  transform: scale(1.03);
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.article-doc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Galeri Count Badge on Cards */
.galeri-count-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  backdrop-filter: blur(6px);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Lightbox Slider Controls */
.lightbox-slider-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all 0.25s ease;
  z-index: 10;
  backdrop-filter: blur(4px);
}

.lightbox-nav-btn:hover {
  background: var(--primary);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

.lightbox-counter {
  font-size: 0.8rem;
  color: var(--text-light);
  background: var(--bg-main);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-weight: 600;
}

/* ==========================================================================
   TESTIMONI WALI MURID (SOCIAL PROOF)
   ========================================================================== */
.testimoni-section {
  padding: 5rem 0;
  background: radial-gradient(circle at top left, rgba(16, 185, 129, 0.08), transparent 40%),
              radial-gradient(circle at bottom right, rgba(245, 158, 11, 0.06), transparent 40%),
              #ffffff;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

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

@media (max-width: 960px) {
  .testimoni-grid {
    grid-template-columns: 1fr;
  }
}

.testimoni-card {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
  position: relative;
}

.testimoni-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.testimoni-stars {
  color: #f59e0b;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  display: flex;
  gap: 0.25rem;
}

.testimoni-text {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-main);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimoni-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

.testimoni-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: contain;
  background: #ffffff;
  border: 2px solid var(--primary-light);
  padding: 2px;
}

.testimoni-author-info h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
}

.testimoni-author-info p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
}

/* ==========================================================================
   FAQ ACCORDION COMPONENT
   ========================================================================== */
.faq-section {
  padding: 5rem 0;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-color);
}

.faq-wrapper {
  max-width: 840px;
  margin: 0 auto;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.25s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.faq-item.active {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(6, 95, 70, 0.08);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  text-align: left;
  transition: color 0.2s ease;
  font-family: inherit;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-icon {
  font-size: 0.9rem;
  color: var(--primary);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.3s ease;
  padding: 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.faq-item.active .faq-answer {
  max-height: 350px;
  padding: 0 1.5rem 1.25rem 1.5rem;
}

/* ==========================================================================
   ADMIN PORTAL SECURITY ALERT & MULTI-IMAGE STYLES
   ========================================================================== */
.security-alert-box {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-left: 5px solid #ef4444;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 2px 4px rgba(239, 68, 68, 0.08);
}

.security-alert-text h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #b91c1c;
  margin: 0 0 0.25rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.security-alert-text p {
  font-size: 0.84rem;
  color: #7f1d1d;
  margin: 0;
}

.multi-img-list {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.multi-img-thumb {
  position: relative;
  width: 84px;
  height: 64px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.multi-img-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.multi-img-thumb .btn-remove-thumb {
  position: absolute;
  top: 3px;
  right: 3px;
  background: rgba(239, 68, 68, 0.9);
  color: #fff;
  border: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

/* ==========================================================================
   FITUR INTERAKTIF & VISUAL MODERN (Scroll Reveal, PPDB Calc, Search, Lightbox)
   ========================================================================== */

/* 1. Scroll Reveal Animation & Micro-Interactions */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

/* 2. Hero Animated Counter */
.stat-counter {
  font-variant-numeric: tabular-nums;
  transition: color 0.3s ease;
}

/* 3. PPDB Interactive Cost Calculator */
.ppdb-calc-wrapper {
  margin-top: 3.5rem;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  position: relative;
}

.ppdb-calc-header {
  padding: 2.25rem 2.5rem 1.75rem 2.5rem;
  background: linear-gradient(135deg, #022c22 0%, #065f46 100%);
  color: #ffffff;
  position: relative;
}

.ppdb-calc-header .calc-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(245, 158, 11, 0.25);
  color: #fbbf24;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
  border: 1px solid rgba(245, 158, 11, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ppdb-calc-header h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.ppdb-calc-header p {
  color: #d1fae5;
  font-size: 0.92rem;
  line-height: 1.6;
  max-width: 820px;
  margin: 0;
}

.ppdb-calc-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 2rem;
  padding: 2rem 2.5rem 2.5rem 2.5rem;
  background: #fafbfc;
}

.calc-group-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.calc-group-title i {
  color: var(--primary-light);
}

.calc-option-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.95rem 1.15rem;
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 0.65rem;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.calc-option-item:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-sm);
  background: #fdfefe;
}

.calc-option-item input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--primary);
  margin-top: 0.2rem;
  cursor: pointer;
  flex-shrink: 0;
}

.calc-option-item .option-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.calc-option-item .option-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-main);
  line-height: 1.4;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag-wajib {
  font-size: 0.68rem;
  background: #fee2e2;
  color: #dc2626;
  padding: 1px 7px;
  border-radius: var(--radius-full);
  font-weight: 800;
  text-transform: uppercase;
}

.calc-option-item .option-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  line-height: 1.45;
}

.calc-option-item .option-price {
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--primary);
  white-space: nowrap;
  margin-left: 0.5rem;
  align-self: center;
}

/* Gelombang Selector */
.calc-promo-selector {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.promo-radio {
  display: block;
  cursor: pointer;
}

.promo-radio input[type="radio"] {
  display: none;
}

.promo-radio .radio-box {
  display: flex;
  flex-direction: column;
  padding: 0.8rem 1.15rem;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  background: #ffffff;
  transition: all 0.2s ease;
}

.promo-radio input[type="radio"]:checked + .radio-box {
  border-color: var(--accent);
  background: #fffbeb;
  box-shadow: 0 0 0 1px var(--accent);
}

.radio-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.radio-title i {
  color: var(--accent);
}

.radio-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.radio-desc strong {
  color: #b45309;
}

/* Calculator Summary Box */
.calc-summary-card {
  background: #ffffff;
  border: 1.5px solid #d1fae5;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 100px;
}

.calc-summary-card h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.summary-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.summary-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.85rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
}

.summary-row.discount-row {
  color: #b45309;
  font-weight: 700;
}

.summary-divider {
  height: 1px;
  background: var(--border-color);
  margin: 1.2rem 0;
}

.summary-row.total-row {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
}

.total-amount {
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.cicilan-badge {
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px dashed var(--primary-light);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  font-size: 0.78rem;
  line-height: 1.45;
  margin-top: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.btn-calc-wa {
  margin-top: 1.25rem;
  padding: 0.95rem 1.25rem;
  font-weight: 800;
  font-size: 0.95rem;
  background: #15803d;
  border-color: #15803d;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px rgba(21, 128, 61, 0.35);
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-calc-wa:hover {
  background: #166534;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(21, 128, 61, 0.45);
}

.calc-disclaimer {
  font-size: 0.72rem;
  color: var(--text-light);
  margin-top: 0.85rem;
  line-height: 1.45;
  text-align: center;
}

/* 4. Realtime Search Bar Berita */
.berita-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 270px;
  max-width: 340px;
}

.berita-search-wrap .search-icon {
  position: absolute;
  left: 1rem;
  color: var(--text-light);
  font-size: 0.85rem;
  pointer-events: none;
}

.berita-search-wrap input {
  width: 100%;
  padding: 0.55rem 2.25rem 0.55rem 2.4rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  font-size: 0.85rem;
  background: #ffffff;
  outline: none;
  transition: all 0.2s ease;
}

.berita-search-wrap input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(6, 95, 70, 0.12);
}

.search-clear-btn {
  position: absolute;
  right: 0.75rem;
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 4px;
  font-size: 0.8rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-clear-btn:hover {
  color: var(--danger);
}

/* 5. Instant FAQ Search */
.faq-search-wrapper {
  position: relative;
  max-width: 620px;
  margin: 0 auto 2.5rem auto;
  display: flex;
  align-items: center;
}

.faq-search-icon {
  position: absolute;
  left: 1.25rem;
  color: var(--text-light);
  font-size: 1rem;
  pointer-events: none;
}

.faq-search-wrapper input {
  width: 100%;
  padding: 0.95rem 3rem 0.95rem 3.1rem;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  outline: none;
  transition: all 0.25s ease;
}

.faq-search-wrapper input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(6, 95, 70, 0.12);
}

.faq-search-clear {
  position: absolute;
  right: 1.15rem;
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 6px;
  font-size: 0.9rem;
  border-radius: 50%;
}

.faq-search-clear:hover {
  color: var(--danger);
}

/* 6. Lightbox Thumbnails & Action Button */
.lightbox-action-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.lightbox-action-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.08);
}

.lightbox-thumbnails-wrapper {
  padding: 0.75rem 1rem 1rem 1rem;
  background: rgba(15, 23, 42, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  overflow-x: auto;
  scrollbar-width: thin;
}

.lightbox-thumbnails {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  align-items: center;
}

.lightbox-thumb {
  width: 60px;
  height: 44px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.6;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.lightbox-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lightbox-thumb:hover {
  opacity: 0.9;
}

.lightbox-thumb.active {
  border-color: var(--accent);
  opacity: 1;
  transform: scale(1.05);
}

#lightboxImg.is-zoomed {
  transform: scale(1.4);
  cursor: zoom-out;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Responsiveness for PPDB Calculator & Controls */
@media (max-width: 900px) {
  .ppdb-calc-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
  }
  .ppdb-calc-header {
    padding: 1.75rem 1.5rem 1.25rem 1.5rem;
  }
  .berita-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .berita-search-wrap {
    min-width: 100%;
    max-width: 100%;
  }
}


