/* ==========================================================================
   SMA GARUDA CENDEKIA - MOBILE FIRST STYLESHEET
   Design System, Mobile-First Layouts & Responsive Breakpoints
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS VARIABLES / DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  --primary: #1e3a8a;          /* Deep Royal Blue */
  --primary-light: #2563eb;    /* Vibrant Blue */
  --primary-dark: #0f172a;     /* Slate Dark Navy */
  --accent: #f59e0b;           /* Warm Gold / Amber */
  --accent-hover: #d97706;
  --secondary: #0d9488;        /* Teal */
  --secondary-light: #14b8a6;
  --success: #16a34a;
  
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-surface: #f1f5f9;
  
  --text-dark: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #f8fafc;
  
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  
  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   2. MOBILE BASE & RESET
   -------------------------------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  font-family: var(--font-main);
  background-color: var(--bg-main);
  color: var(--text-body);
}

body {
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.25;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

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

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

/* Container: Mobile default width with padding */
.container {
  width: 100%;
  padding-left: 18px;
  padding-right: 18px;
  margin-left: auto;
  margin-right: auto;
}

/* --------------------------------------------------------------------------
   3. MOBILE COMPONENTS: BUTTONS, BADGES, CARDS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px; /* Touch-friendly tap target on mobile */
  padding: 12px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary-light);
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-primary:active, .btn-primary:hover {
  background: var(--primary);
  transform: translateY(-1px);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-accent:active, .btn-accent:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-outline {
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  background: transparent;
}

.btn-outline:active, .btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
}

.btn-outline-primary {
  border: 1.5px solid var(--primary-light);
  color: var(--primary-light);
  background: transparent;
}

.btn-outline-primary:active, .btn-outline-primary:hover {
  background: var(--primary-light);
  color: white;
}

.btn-block {
  width: 100%;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--primary-light);
  background: rgba(37, 99, 235, 0.1);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  border: 1px solid rgba(37, 99, 235, 0.15);
}

.section-header {
  text-align: center;
  margin-bottom: 36px;
}

.section-title {
  font-size: 1.75rem;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

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

/* --------------------------------------------------------------------------
   4. NAVIGATION: MOBILE-FIRST DRAWER & HEADER
   -------------------------------------------------------------------------- */
.topbar {
  display: none; /* Hidden on mobile */
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.82rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(30, 58, 138, 0.25);
}

.brand-text h2 {
  font-size: 1.05rem;
  color: var(--primary);
  line-height: 1.1;
}

.brand-text span {
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.6px;
  font-weight: 600;
  display: block;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-toggle {
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--text-dark);
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.mobile-toggle:focus {
  background: var(--bg-surface);
}

/* Mobile Drawer Menu */
.nav-menu {
  position: fixed;
  top: 68px;
  left: -100%;
  width: 100%;
  height: calc(100vh - 68px);
  background: #ffffff;
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  gap: 8px;
  list-style: none;
  overflow-y: auto;
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-lg);
  z-index: 999;
}

.nav-menu.active {
  left: 0;
}

.nav-link {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-body);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: transparent;
  transition: var(--transition);
}

.nav-link:active, .nav-link.active {
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary-light);
}

.mobile-nav-cta {
  margin-top: 20px;
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* --------------------------------------------------------------------------
   5. PAGE HEADER (SUBPAGE HERO / BREADCRUMB)
   -------------------------------------------------------------------------- */
.page-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  color: white;
  padding: 48px 0 40px 0;
  text-align: center;
}

.page-hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #38bdf8;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.page-hero-title {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 12px;
}

.page-hero-desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 650px;
  margin: 0 auto 18px auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a {
  color: #38bdf8;
}

/* --------------------------------------------------------------------------
   6. HERO SECTION (HOME) - MOBILE FIRST
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 58, 138, 0.9) 100%),
              url('https://images.unsplash.com/photo-1541339907198-e08756dedf3f?q=80&w=1200&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 50px 0 60px 0;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.hero-badge span {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-title {
  font-size: 2.1rem;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero-title span {
  color: #38bdf8;
  display: block;
}

.hero-desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 28px;
  line-height: 1.6;
}

.hero-btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   7. STATS SECTION (MOBILE-FIRST)
   -------------------------------------------------------------------------- */
.stats-section {
  margin-top: -30px;
  position: relative;
  z-index: 10;
  padding-bottom: 40px;
}

.stats-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 24px 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  border: 1px solid var(--border-color);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   8. COMMON CONTENT SECTIONS & GRIDS (MOBILE-FIRST)
   -------------------------------------------------------------------------- */
.section {
  padding: 50px 0;
}

.section-bg {
  background: var(--bg-surface);
}

.grid-1 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

/* Card components */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.5rem;
}

.icon-blue { background: #dbeafe; color: #2563eb; }
.icon-emerald { background: #d1fae5; color: #059669; }
.icon-amber { background: #fef3c7; color: #d97706; }
.icon-purple { background: #ede9fe; color: #7c3aed; }
.icon-rose { background: #ffe4e6; color: #e11d48; }

.card-title {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Timeline / History Component */
.timeline {
  position: relative;
  padding-left: 24px;
  border-left: 2px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: 30px 0;
}

.timeline-item {
  position: relative;
}

.timeline-dot {
  position: absolute;
  left: -31px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary-light);
  border: 3px solid white;
  box-shadow: 0 0 0 2px var(--primary-light);
}

.timeline-year {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary-light);
  margin-bottom: 4px;
}

.timeline-title {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.timeline-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Teachers / Staff Cards */
.staff-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.staff-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: top center;
}

/* Welcome Principal Image Card */
.welcome-img-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 440px;
  background: var(--bg-surface);
}

.welcome-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}

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

.staff-info {
  padding: 20px 16px;
}

.staff-name {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.staff-role {
  font-size: 0.82rem;
  color: var(--primary-light);
  font-weight: 600;
  margin-bottom: 8px;
}

.staff-edu {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Facility Image Card */
.facility-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 240px;
}

.facility-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.facility-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(15, 23, 42, 0.95) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  color: white;
}

.facility-overlay h4 {
  color: white;
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.facility-overlay p {
  font-size: 0.8rem;
  opacity: 0.85;
}

/* Pills & Badges */
.pills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill-item {
  background: white;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-body);
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Pricing / PPDB Fee Table (Mobile Scrollable) */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 20px 0;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.data-table {
  width: 100%;
  min-width: 550px;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.data-table th {
  background: var(--bg-surface);
  color: var(--text-dark);
  font-weight: 700;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
}

.data-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-body);
}

.data-table tr:last-child td {
  border-bottom: none;
}

/* Accordion FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: white;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.faq-header {
  padding: 16px 20px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  user-select: none;
}

.faq-header i {
  transition: transform 0.3s ease;
}

.faq-body {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

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

.faq-item.active .faq-body {
  padding: 0 20px 18px 20px;
  max-height: 250px;
}

/* Forms */
.form-card {
  background: white;
  padding: 26px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

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

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.form-control {
  width: 100%;
  min-height: 48px; /* Touch target */
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  background: white;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Tab filter buttons */
.tab-buttons {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 24px;
  -webkit-overflow-scrolling: touch;
}

.tab-btn {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: white;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  color: var(--text-body);
}

.tab-btn.active {
  background: var(--primary-light);
  color: white;
  border-color: var(--primary-light);
}

/* --------------------------------------------------------------------------
   9. CALL TO ACTION & FOOTER (MOBILE-FIRST)
   -------------------------------------------------------------------------- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 50px 0;
  text-align: center;
}

.cta-banner h2 {
  color: white;
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.cta-banner p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 24px;
}

.footer {
  background: #090d16;
  color: #94a3b8;
  padding: 50px 0 24px 0;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #38bdf8;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  font-size: 0.82rem;
}

/* Modal PPDB */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: var(--radius-md);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px 20px;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: modalScale 0.25s ease;
}

@keyframes modalScale {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #64748b;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   10. MEDIA QUERIES (MOBILE FIRST PROGRESSIVE ENHANCEMENT)
   -------------------------------------------------------------------------- */

/* Small Tablets / Large Phones: 640px and above */
@media (min-width: 640px) {
  .container {
    max-width: 640px;
    padding-left: 24px;
    padding-right: 24px;
  }

  .hero-btns {
    flex-direction: row;
    justify-content: center;
  }

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

  .grid-2-sm {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

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

/* Tablets & Small Laptops: 768px and above */
@media (min-width: 768px) {
  .container {
    max-width: 768px;
  }

  .section {
    padding: 70px 0;
  }

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

  .topbar {
    display: block;
  }

  .topbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .topbar-info {
    display: flex;
    align-items: center;
    gap: 20px;
  }

  .topbar-item {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  /* Desktop Navbar display */
  .mobile-toggle {
    display: none;
  }

  .nav-menu {
    position: static;
    height: auto;
    width: auto;
    flex-direction: row;
    background: transparent;
    padding: 0;
    box-shadow: none;
    gap: 16px;
  }

  .nav-link {
    font-size: 0.92rem;
    padding: 6px 10px;
  }

  .nav-link:active, .nav-link.active {
    background: transparent;
    color: var(--primary-light);
    font-weight: 700;
  }

  .mobile-nav-cta {
    display: none;
  }

  .grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

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

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

  .page-hero {
    padding: 64px 0 50px 0;
  }

  .page-hero-title {
    font-size: 2.5rem;
  }
}

/* Desktops: 1024px and above */
@media (min-width: 1024px) {
  .container {
    max-width: 1120px;
  }

  .section {
    padding: 90px 0;
  }

  .hero {
    padding: 85px 0 95px 0;
  }

  .hero-title {
    font-size: 3.2rem;
  }

  .stats-card {
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    padding: 36px 40px;
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }

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

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

/* Large Desktops: 1280px and above */
@media (min-width: 1280px) {
  .container {
    max-width: 1240px;
  }
}

/* --------------------------------------------------------------------------
   13. BERITA, ARTIKEL & AGENDA SEKOLAH
   -------------------------------------------------------------------------- */
.search-filter-section {
  background: white;
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.search-box-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 4px 6px 4px 14px;
  transition: var(--transition);
}

.search-box-wrapper:focus-within {
  border-color: var(--primary-light);
  background: white;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.search-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  width: 20px;
  height: 20px;
  margin-right: 8px;
  flex-shrink: 0;
}

.search-icon-box svg,
.search-icon-box i {
  width: 18px;
  height: 18px;
  display: block;
}

.search-input {
  width: 100%;
  padding: 8px 6px;
  border: none;
  background: transparent;
  font-family: var(--font-main);
  font-size: 0.92rem;
  outline: none;
  color: var(--text-dark);
}

.search-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: white;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition);
}

.search-submit-btn:hover {
  background: var(--primary-light);
  transform: scale(1.05);
}

.search-submit-btn svg,
.search-submit-btn i {
  width: 16px;
  height: 16px;
  display: block;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-pill {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: white;
  color: var(--text-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.filter-pill:hover,
.filter-pill.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Featured / Headline Article */
.featured-article {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

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

.featured-img-wrap {
  position: relative;
  width: 100%;
  height: 260px;
  overflow: hidden;
}

.featured-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured-article:hover .featured-img-wrap img {
  transform: scale(1.04);
}

.featured-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.news-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-prestasi {
  background: #fef3c7;
  color: #b45309;
}

.badge-akademik {
  background: #dbeafe;
  color: #1d4ed8;
}

.badge-kegiatan {
  background: #d1fae5;
  color: #047857;
}

.badge-pengumuman {
  background: #ede9fe;
  color: #6d28d9;
}

/* Standard News Cards */
.news-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.news-card-img {
  position: relative;
  width: 100%;
  height: 190px;
  overflow: hidden;
}

.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.news-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.news-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.news-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.news-desc {
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 18px;
  flex-grow: 1;
}

.news-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  margin-top: auto;
}

.btn-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary-light);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: gap 0.2s ease, color 0.2s ease;
}

.btn-read-more:hover {
  color: var(--primary);
  gap: 10px;
}

/* Agenda / Kalender List */
.agenda-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.agenda-item {
  background: white;
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-xs);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
}

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

.agenda-date-box {
  min-width: 60px;
  height: 64px;
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
}

.agenda-date-box .day {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.agenda-date-box .month {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 2px;
}

.agenda-info {
  flex-grow: 1;
}

.agenda-info h4 {
  font-size: 0.98rem;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.agenda-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* News Article Modal */
.article-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.article-modal.active {
  display: flex;
  opacity: 1;
}

.article-modal-dialog {
  background: white;
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  border-radius: var(--radius-md);
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
  from {
    transform: translateY(30px) scale(0.97);
  }
  to {
    transform: translateY(0) scale(1);
  }
}

.article-modal-header {
  position: relative;
}

.article-modal-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.btn-close-modal {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(15, 23, 42, 0.75);
  color: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.btn-close-modal:hover {
  background: rgba(15, 23, 42, 0.95);
  transform: scale(1.1);
}

.article-modal-body {
  padding: 28px 24px;
}

.article-modal-body h2 {
  font-size: 1.5rem;
  color: var(--text-dark);
  line-height: 1.35;
  margin: 12px 0 16px 0;
}

.article-modal-body p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-body);
  margin-bottom: 16px;
}

/* Responsive adjustments for News */
@media (min-width: 768px) {
  .search-filter-section {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .search-box-wrapper {
    max-width: 320px;
  }

  .featured-article {
    flex-direction: row;
  }

  .featured-img-wrap {
    width: 50%;
    height: auto;
    min-height: 320px;
  }

  .featured-content {
    width: 50%;
    padding: 36px;
    justify-content: center;
  }

  .featured-content h3 {
    font-size: 1.5rem;
  }

  .article-modal-img {
    height: 340px;
  }

  .article-modal-body {
    padding: 36px;
  }

  .article-modal-body h2 {
    font-size: 1.75rem;
  }
}

/* --------------------------------------------------------------------------
   14. GALERI FOTO & LIGHTBOX MODAL
   -------------------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

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

.gallery-grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 640px) {
  .gallery-grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

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

.gallery-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: #0f172a;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.2) 0%, rgba(15, 23, 42, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  color: white;
  transition: opacity 0.3s ease;
}

.gallery-top-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gallery-tag {
  background: rgba(30, 58, 138, 0.85);
  backdrop-filter: blur(4px);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.gallery-zoom-icon {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: transform 0.2s, background 0.2s;
}

.gallery-card:hover .gallery-zoom-icon {
  background: var(--accent);
  color: var(--text-dark);
  transform: scale(1.1);
}

.gallery-info h4 {
  color: white;
  font-size: 1.05rem;
  margin-bottom: 4px;
  font-weight: 700;
}

.gallery-info p {
  color: #cbd5e1;
  font-size: 0.82rem;
  line-height: 1.4;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(8px);
  z-index: 2100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox-modal.active {
  display: flex;
  opacity: 1;
}

.lightbox-dialog {
  position: relative;
  max-width: 920px;
  width: 100%;
  background: #0f172a;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-image-wrap {
  width: 100%;
  max-height: 65vh;
  background: black;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lightbox-image-wrap img {
  width: 100%;
  height: 100%;
  max-height: 65vh;
  object-fit: contain;
}

.lightbox-caption-bar {
  padding: 18px 24px;
  background: #1e293b;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.lightbox-caption-text h3 {
  font-size: 1.2rem;
  color: white;
  margin-bottom: 4px;
}

.lightbox-caption-text p {
  font-size: 0.85rem;
  color: #94a3b8;
}

.lightbox-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(15, 23, 42, 0.7);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}

.lightbox-close-btn:hover {
  background: rgba(239, 68, 68, 0.9);
  transform: scale(1.1);
}

