/* ===================================================
   SMP Negeri 8 Pamekasan - Main Stylesheet
   Theme: Deep Blue + Gold + Red (Logo Colors)
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Nunito:wght@300;400;600;700;800&display=swap');

:root {
  --blue-deep: #003893;
  --blue-mid: #0052cc;
  --blue-light: #1a6fe8;
  --gold: #f5a623;
  --gold-dark: #d4891a;
  --red: #cc2222;
  --red-light: #e53e3e;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-600: #475569;
  --gray-800: #1e293b;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.1);
  --shadow-md: 0 4px 16px rgba(0,56,147,.15);
  --shadow-lg: 0 8px 32px rgba(0,56,147,.2);
  --radius: 12px;
  --radius-lg: 20px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--gray-50);
  color: var(--gray-800);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ========= TOPBAR ========= */
.topbar {
  background: var(--blue-deep);
  color: rgba(255,255,255,.8);
  font-size: 0.72rem;
  padding: 4px 0;
  border-bottom: 2px solid var(--gold);
}
.topbar-inner {
  width: 100%;
  max-width: 100%;
  padding: 0 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar a { color: rgba(255,255,255,.85); text-decoration: none; }
.topbar a:hover { color: var(--gold); }
.topbar i { margin-right: 6px; color: var(--gold); }

/* ========= HEADER / NAVBAR ========= */
.header {
  background: var(--white);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all .35s ease;
}
/* Navbar ramping saat scroll */
.header.scrolled {
  box-shadow: 0 4px 24px rgba(0,56,147,.18);
}
.navbar {
  width: 100%;
  max-width: 100%;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  transition: height .35s ease;
  gap: 12px;
}
.header.scrolled .navbar {
  height: 54px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  position: relative;
}
/* Logo menonjol ke atas (efek 3D keluar) */
.brand-logo-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
  transform: translateY(0px);
  filter: drop-shadow(0 4px 8px rgba(0,56,147,.25));
}
.header:not(.scrolled) .brand-logo-wrap {
  transform: translateY(-4px);
  filter: drop-shadow(0 8px 12px rgba(0,56,147,.3));
}
.brand-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  transition: all .35s ease;
  border-radius: 50%;
}
.header:not(.scrolled) .brand-logo {
  width: 62px;
  height: 62px;
}
.brand-logo-placeholder {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-mid));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: all .35s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 4px 12px rgba(0,56,147,.3);
}
.header:not(.scrolled) .brand-logo-placeholder {
  width: 64px;
  height: 64px;
  font-size: 1.4rem;
  box-shadow: 0 12px 24px rgba(0,56,147,.4);
}
.brand-text {
  line-height: 1.2;
  transition: all .3s ease;
}
.brand-title {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-deep);
  display: block;
  transition: font-size .3s ease;
}
.header:not(.scrolled) .brand-title {
  font-size: 1.1rem;
}
.brand-sub {
  font-size: 0.68rem;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  transition: all .3s ease;
}
.header.scrolled .brand-sub {
  font-size: 0.62rem;
  opacity: .7;
}
.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0;
  flex-shrink: 0;
}
.nav-menu a {
  display: block;
  padding: 6px 11px;
  color: var(--gray-800);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.87rem;
  border-radius: 7px;
  transition: all .2s;
  position: relative;
  white-space: nowrap;
}
.nav-menu a:hover, .nav-menu a.active {
  color: var(--blue-deep);
  background: rgba(0,56,147,.07);
}
.nav-menu a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--blue-deep);
  font-size: 1.4rem;
}

/* ========= DROPDOWN MENU ========= */
.nav-dropdown { position: relative; }

.nav-dropdown-toggle {
  display: flex !important;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  cursor: pointer;
}

.nav-arrow {
  font-size: .6rem !important;
  transition: transform .25s ease;
  margin-left: 2px;
}

.nav-dropdown.open .nav-arrow { transform: rotate(180deg); }

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,56,147,.18);
  border: 1px solid var(--gray-200);
  min-width: 240px;
  list-style: none;
  overflow: hidden;
  z-index: 999;
  animation: ddFadeIn .2s ease;
}

@keyframes ddFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nav-dropdown.open .nav-dropdown-menu { display: block; }

/* Arrow pointer di atas dropdown */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 20px;
  width: 12px;
  height: 12px;
  background: white;
  border-left: 1px solid var(--gray-200);
  border-top: 1px solid var(--gray-200);
  transform: rotate(45deg);
}

.nav-dropdown-menu li a {
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding: 12px 16px !important;
  color: var(--gray-800) !important;
  text-decoration: none;
  transition: background .2s;
  background: transparent !important;
  border-radius: 0 !important;
  border-bottom: 1px solid var(--gray-100);
}

.nav-dropdown-menu li:last-child a { border-bottom: none; }

.nav-dropdown-menu li a:hover {
  background: #f0f4ff !important;
  color: var(--blue-deep) !important;
}

.nav-dropdown-menu li a.active {
  background: #eff6ff !important;
  color: var(--blue-deep) !important;
}

.nav-dropdown-menu li a.active::after { display: none; }

.dd-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  flex-shrink: 0;
}

.dd-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.dd-title {
  font-weight: 700;
  font-size: .88rem;
  line-height: 1;
}

.dd-sub {
  font-size: .72rem;
  color: var(--gray-600);
  font-weight: 400;
}

/* ========= HERO SLIDER ========= */
.hero {
  position: relative;
  height: 560px;
  overflow: hidden;
  background: var(--blue-deep);
}
.hero-slides { width: 100%; height: 100%; }
.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity .8s ease;
}
.slide.active { opacity: 1; }
.slide-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue-mid) 50%, #0a0a4a 100%);
}
.slide-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(245,166,35,.15) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, rgba(204,34,34,.12) 0%, transparent 40%);
}
.slide-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  color: white;
}
.slide-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--blue-deep);
  padding: 4px 16px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}
.slide-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.slide-sub {
  font-size: 1.1rem;
  opacity: .85;
  max-width: 550px;
  margin-bottom: 28px;
}
.slide-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--blue-deep);
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 800;
  text-decoration: none;
  transition: all .3s;
  font-size: 0.9rem;
}
.slide-btn:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245,166,35,.4);
}
.slide-indicator {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: none;
  cursor: pointer;
  transition: all .3s;
  padding: 0;
}
.dot.active { background: var(--gold); width: 24px; border-radius: 4px; }
.slide-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  color: white;
  border: 1px solid rgba(255,255,255,.2);
  width: 44px; height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s;
  z-index: 10;
}
.slide-nav:hover { background: var(--gold); color: var(--blue-deep); border-color: var(--gold); }
.slide-prev { left: 20px; }
.slide-next { right: 20px; }

/* ========= STATS BAR ========= */
.stats-bar {
  background: var(--blue-deep);
  color: white;
  padding: 12px 0;
}
.stats-inner {
  width: 100%;
  padding: 0 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  text-align: center;
  padding: 10px 16px;
  border-right: 1px solid rgba(255,255,255,.15);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  font-size: 0.68rem;
  opacity: .7;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-top: 3px;
}
}

/* ========= SECTION BASE ========= */
.section { padding: 44px 0; }
.section-alt { background: var(--white); padding-bottom: 44px; }
.container { max-width: 1440px; margin: 0 auto; padding: 0 48px; }
.container-full { width: 100%; padding: 0 48px; }
.section-header { text-align: center; margin-bottom: 32px; }
.section-eyebrow {
  display: inline-block;
  color: var(--gold-dark);
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}
.section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--blue-deep);
  line-height: 1.25;
  margin-bottom: 14px;
}
.section-line {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--red));
  margin: 0 auto;
  border-radius: 2px;
}

/* ========= NEWS GRID ========= */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.news-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: all .3s;
}
.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.news-img {
  height: 200px;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.3);
  font-size: 3rem;
  overflow: hidden;
}
.news-img img { width: 100%; height: 100%; object-fit: cover; }
.news-body { padding: 22px; }
.news-cat {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 10px;
  background: #e0e7ff; color: #4338ca; /* fallback untuk kategori baru tanpa warna khusus */
}
.cat-berita { background: #dbeafe; color: var(--blue-mid); }
.cat-pengumuman { background: #fef3c7; color: #b45309; }
.cat-kegiatan { background: #dcfce7; color: #166534; }
.news-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--gray-800);
  margin-bottom: 10px;
  line-height: 1.4;
}
.news-title a { color: inherit; text-decoration: none; }
.news-title a:hover { color: var(--blue-deep); }
.news-meta {
  font-size: 0.78rem;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  gap: 12px;
}
.news-meta i { color: var(--gold-dark); }
.news-excerpt { font-size: 0.88rem; color: var(--gray-600); margin: 10px 0; }

/* ========= AGENDA ========= */
.agenda-list { display: flex; flex-direction: column; gap: 16px; }
.agenda-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: all .3s;
}
.agenda-card:hover { border-color: var(--blue-light); box-shadow: var(--shadow-md); }
.agenda-date {
  background: var(--blue-deep);
  color: white;
  min-width: 60px;
  border-radius: 10px;
  text-align: center;
  padding: 10px 8px;
  flex-shrink: 0;
}
.agenda-day { font-size: 1.6rem; font-weight: 800; line-height: 1; }
.agenda-mon { font-size: 0.7rem; text-transform: uppercase; opacity: .7; }
.agenda-info h4 { font-weight: 700; margin-bottom: 4px; font-size: 0.95rem; }
.agenda-info p { font-size: 0.82rem; color: var(--gray-600); }
.agenda-info .loc { margin-top: 4px; color: var(--gold-dark); font-size: 0.8rem; }

/* ========= VISI MISI ========= */
.visi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.visi-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 2px solid var(--gray-200);
  transition: all .3s;
  position: relative;
  overflow: hidden;
}
.visi-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-deep), var(--gold));
}
.visi-box:hover { border-color: var(--blue-light); box-shadow: var(--shadow-lg); }
.visi-icon {
  width: 52px; height: 52px;
  background: var(--blue-deep);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.4rem;
  margin-bottom: 20px;
}
.visi-box h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  color: var(--blue-deep);
  margin-bottom: 12px;
}
.visi-box p, .visi-box ol {
  color: var(--gray-600);
  font-size: 0.92rem;
  line-height: 1.8;
}
.visi-box ol { padding-left: 18px; }

/* ========= EKSKUL ========= */
.ekskul-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.ekskul-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  border: 1px solid var(--gray-200);
  text-align: center;
  transition: all .3s;
}
.ekskul-card:hover {
  background: var(--blue-deep);
  color: white;
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.ekskul-card:hover .ekskul-sub { color: rgba(255,255,255,.75); }
.ekskul-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.5rem;
  margin: 0 auto 16px;
  transition: all .3s;
}
.ekskul-card:hover .ekskul-icon { background: rgba(255,255,255,.15); }
.ekskul-name { font-weight: 700; margin-bottom: 8px; font-size: 1rem; }
.ekskul-sub { font-size: 0.82rem; color: var(--gray-600); }

/* ========= GURU GRID ========= */
.guru-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.guru-card {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 16px;
  border: 1px solid var(--gray-200);
  transition: all .3s;
}
.guru-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.guru-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 auto 16px;
  overflow: hidden;
}
.guru-avatar img { width: 100%; height: 100%; object-fit: cover; }
.guru-name { font-weight: 700; font-size: 0.95rem; margin-bottom: 4px; }
.guru-jabatan { font-size: 0.8rem; color: var(--blue-mid); font-weight: 600; }
.guru-mapel { font-size: 0.78rem; color: var(--gray-600); margin-top: 2px; }

/* ========= PRESTASI ========= */
.prestasi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.prestasi-card {
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--gray-200);
  transition: all .3s;
}
.prestasi-card:hover { border-color: var(--gold); box-shadow: var(--shadow-md); }
.prestasi-medal {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.medal-kabupaten { background: #fef3c7; }
.medal-provinsi { background: #e0f2fe; }
.medal-nasional { background: #fce7f3; }
.medal-internasional { background: #dcfce7; }
.prestasi-info h4 { font-weight: 700; margin-bottom: 4px; font-size: 0.95rem; }
.prestasi-info p { font-size: 0.82rem; color: var(--gray-600); }
.badge-tingkat {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--blue-deep);
  color: white;
  margin-top: 4px;
}

/* ========= CTA BANNER ========= */
.cta-banner {
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue-mid) 100%);
  padding: 60px 0;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 50%, rgba(245,166,35,.2) 0%, transparent 60%);
}
.cta-content { position: relative; z-index: 1; }
.cta-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 12px;
}
.cta-sub { opacity: .8; margin-bottom: 28px; }
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  transition: all .3s;
  font-size: 0.95rem;
}
.btn-cta-gold { background: var(--gold); color: var(--blue-deep); }
.btn-cta-gold:hover { background: white; transform: translateY(-2px); }
.btn-cta-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,.5);
  margin-left: 12px;
}
.btn-cta-outline:hover { background: rgba(255,255,255,.15); }

/* ========= FOOTER ========= */
.footer {
  background: #001a52;
  color: rgba(255,255,255,.75);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  width: 100%;
}
.footer-brand .brand-title { color: white; margin-bottom: 12px; display: block; }
.footer-brand p { font-size: 0.88rem; line-height: 1.8; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.social-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  transition: all .3s;
  font-size: 0.9rem;
}
.social-btn:hover { background: var(--gold); color: var(--blue-deep); }
.footer-col h4 {
  color: white;
  font-weight: 700;
  margin-bottom: 16px;
  font-size: 0.95rem;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a {
  color: rgba(255,255,255,.65);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color .2s;
}
.footer-links a:hover { color: var(--gold); }
.footer-contact-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
  font-size: 0.88rem;
}
.footer-contact-item i { color: var(--gold); margin-top: 3px; flex-shrink: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 18px 0;
  text-align: center;
  font-size: 0.82rem;
  opacity: .6;
}

/* ========= INNER PAGE ========= */
.page-hero {
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-mid));
  color: white;
  padding: 52px 0 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(245,166,35,.15) 0%, transparent 50%);
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero-content { width: 100%; padding: 0 40px; }
.page-hero h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 8px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.85rem;
  opacity: .75;
  margin-top: 8px;
}
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb i { font-size: 0.65rem; }

/* ========= BERITA DETAIL ========= */
.berita-detail-content {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}
.berita-detail-content h2,h3 { color: var(--blue-deep); margin: 20px 0 10px; }
.berita-detail-content p { margin-bottom: 14px; }
.berita-detail-content img { max-width: 100%; border-radius: 8px; }

/* ========= GENERAL BUTTONS ========= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 0.88rem;
  transition: all .25s;
  font-family: 'Nunito', sans-serif;
}
.btn-primary { background: var(--blue-deep); color: white; }
.btn-primary:hover { background: var(--blue-mid); }
.btn-gold { background: var(--gold); color: var(--blue-deep); }
.btn-gold:hover { background: var(--gold-dark); }
.btn-outline { background: transparent; border: 2px solid var(--blue-deep); color: var(--blue-deep); }
.btn-outline:hover { background: var(--blue-deep); color: white; }
.btn-sm { padding: 6px 14px; font-size: 0.8rem; }

/* ========= SEARCH ========= */
.search-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 32px;
}
.search-bar input {
  flex: 1;
  padding: 12px 18px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  transition: border .2s;
}
.search-bar input:focus { outline: none; border-color: var(--blue-light); }
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.filter-tab {
  padding: 7px 18px;
  border-radius: 50px;
  border: 2px solid var(--gray-200);
  background: var(--white);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.82rem;
  transition: all .2s;
  font-family: 'Nunito', sans-serif;
}
.filter-tab.active, .filter-tab:hover {
  background: var(--blue-deep);
  border-color: var(--blue-deep);
  color: white;
}

/* ========= PAGINATION ========= */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 40px; }
.page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  border: 2px solid var(--gray-200);
  color: var(--gray-800);
  transition: all .2s;
}
.page-link:hover, .page-link.active {
  background: var(--blue-deep);
  border-color: var(--blue-deep);
  color: white;
}

/* ========= RESPONSIVE ========= */
@media (max-width: 1024px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .guru-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .container { padding: 0 32px; }
  .container-full { padding: 0 32px; }
  .topbar-inner { padding: 0 32px; }
  .navbar { padding: 0 32px; }
  .stats-inner { padding: 0 32px; }
}
@media (max-width: 768px) {
  .hero { height: 460px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); padding: 0 20px; }
  .stat-item:nth-child(2) { border-right: none; }
  .news-grid { grid-template-columns: 1fr; }
  .visi-grid { grid-template-columns: 1fr; }
  .ekskul-grid { grid-template-columns: repeat(2, 1fr); }
  .guru-grid { grid-template-columns: repeat(2, 1fr); }
  .prestasi-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-menu { display: none; flex-direction: column; position: absolute; top: 88px; left: 0; right: 0; background: white; padding: 16px; box-shadow: var(--shadow-md); gap: 4px; z-index: 999; }
  .nav-menu.open { display: flex; }
  .nav-toggle { display: block; }
  /* Dropdown mobile */
  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--blue-light);
    border-radius: 0;
    margin: 4px 0 4px 12px;
    animation: none;
  }
  .nav-dropdown-menu::before { display: none; }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
  .slide-title { font-size: 1.5rem; }
  .slide-nav { display: none; }
  .container { padding: 0 20px; }
  .container-full { padding: 0 20px; }
  .topbar-inner { padding: 0 20px; }
  .navbar { padding: 0 20px; }
}
@media (max-width: 480px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .ekskul-grid { grid-template-columns: 1fr; }
  .guru-grid { grid-template-columns: repeat(2, 1fr); }
  .btn-cta-outline { margin-left: 0; margin-top: 10px; }
  .container { padding: 0 16px; }
  .container-full { padding: 0 16px; }
  .topbar-inner { padding: 0 16px; }
  .navbar { padding: 0 16px; }
}
