/* ===== Variables — Tema Merah SD, Colorful & Playful ===== */
:root {
  --primary: #dc2626;
  --primary-dark: #b91c1c;
  --primary-light: #ef4444;
  --accent-yellow: #fbbf24;
  --accent-blue: #38bdf8;
  --accent-green: #4ade80;
  --accent-purple: #a78bfa;
  --accent-orange: #fb923c;
  --dark: #1e1b2e;
  --dark-soft: #2d2a3e;
  --text: #374151;
  --text-light: #6b7280;
  --bg: #fff9f5;
  --bg-alt: #fff0eb;
  --white: #ffffff;
  --shadow: 0 4px 24px rgba(220, 38, 38, 0.08);
  --shadow-lg: 0 20px 60px rgba(220, 38, 38, 0.12);
  --shadow-colorful: 0 8px 32px rgba(251, 191, 36, 0.25);
  --radius: 20px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-heading: 'Fredoka', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1140px, 92%);
  margin-inline: auto;
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  padding: 0.65rem 0;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--dark);
  font-weight: 700;
  font-family: var(--font-heading);
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--primary), var(--accent-orange));
  color: var(--white);
  font-weight: 800;
  font-size: 0.9rem;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.4);
  transform: rotate(-3deg);
}

.logo-text {
  font-size: 0.95rem;
  line-height: 1.2;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-wrap: wrap;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.85rem;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 100px;
  transition: all var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: rgba(220, 38, 38, 0.08);
}

.nav-cbt {
  background: linear-gradient(135deg, var(--accent-yellow), var(--accent-orange)) !important;
  color: var(--dark) !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 16px rgba(251, 191, 36, 0.4);
}

.nav-cbt:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(251, 191, 36, 0.5);
  color: var(--dark) !important;
}

.nav-cta {
  background: var(--primary) !important;
  color: var(--white) !important;
  margin-left: 0.25rem;
}

.nav-cta:hover {
  background: var(--primary-dark) !important;
  color: var(--white) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.35);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(220, 38, 38, 0.92) 0%, rgba(185, 28, 28, 0.88) 40%, rgba(251, 191, 36, 0.8) 100%),
    url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Ccircle cx='20' cy='20' r='3'/%3E%3C/g%3E%3C/svg%3E");
  z-index: -2;
}

.hero-bg::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--bg), transparent);
}

.hero-blobs {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  opacity: 0.35;
  animation: floatBlob 8s ease-in-out infinite;
}

.blob-1 { width: 200px; height: 200px; background: var(--accent-yellow); top: 10%; left: 5%; animation-delay: 0s; }
.blob-2 { width: 150px; height: 150px; background: var(--accent-blue); top: 60%; right: 10%; animation-delay: 2s; }
.blob-3 { width: 120px; height: 120px; background: var(--accent-green); bottom: 20%; left: 20%; animation-delay: 4s; }
.blob-4 { width: 100px; height: 100px; background: var(--accent-purple); top: 30%; right: 25%; animation-delay: 1s; }

@keyframes floatBlob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -20px) scale(1.1); }
}

.hero-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-stars span {
  position: absolute;
  font-size: 2rem;
  opacity: 0.6;
  animation: twinkle 3s ease-in-out infinite;
}

.hero-stars span:nth-child(1) { top: 15%; right: 15%; animation-delay: 0s; }
.hero-stars span:nth-child(2) { top: 40%; left: 8%; animation-delay: 0.5s; font-size: 1.5rem; }
.hero-stars span:nth-child(3) { bottom: 30%; right: 20%; animation-delay: 1s; }
.hero-stars span:nth-child(4) { top: 25%; left: 25%; animation-delay: 1.5s; font-size: 1.75rem; }

@keyframes twinkle {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.15); }
}

.hero-content {
  color: var(--white);
  max-width: 720px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  padding: 0.45rem 1.1rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.hero h1 .highlight {
  color: var(--accent-yellow);
  text-shadow: 0 2px 20px rgba(251, 191, 36, 0.5);
  display: inline-block;
  transform: rotate(-1deg);
}

.hero-desc {
  font-size: 1.1rem;
  opacity: 0.95;
  max-width: 560px;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 100px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--white);
  color: var(--primary-dark);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-colorful);
  color: var(--primary-dark);
}

.btn-cbt {
  background: linear-gradient(135deg, var(--accent-yellow), var(--accent-orange));
  color: var(--dark);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 6px 24px rgba(251, 191, 36, 0.45);
}

.btn-cbt:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 32px rgba(251, 191, 36, 0.55);
  color: var(--dark);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--white);
  color: var(--white);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-line {
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.7), transparent);
  border-radius: 2px;
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(0.8); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ===== Stats ===== */
.stats {
  margin-top: -60px;
  position: relative;
  z-index: 10;
  padding-bottom: 2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.stat-card {
  background: var(--white);
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-lg);
  border: 3px solid transparent;
  transition: transform var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
}

.stat-card-1::before { background: var(--primary); }
.stat-card-2::before { background: var(--accent-yellow); }
.stat-card-3::before { background: var(--accent-blue); }
.stat-card-4::before { background: var(--accent-green); }

.stat-card:hover {
  transform: translateY(-6px) rotate(-1deg);
}

.stat-emoji {
  display: block;
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--accent-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.stat-label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 600;
}

/* ===== Sections ===== */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.section-tag {
  display: inline-block;
  padding: 0.4rem 1.1rem;
  background: rgba(220, 38, 38, 0.1);
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 100px;
  margin-bottom: 1rem;
  border: 2px dashed rgba(220, 38, 38, 0.2);
}

.section-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.05rem;
}

.section-action {
  text-align: center;
  margin-top: 2.5rem;
}

/* ===== Profile ===== */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.profile-content p {
  margin-bottom: 1rem;
  color: var(--text);
  font-size: 1.02rem;
}

.profile-list {
  list-style: none;
  margin-top: 1.5rem;
}

.profile-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 0;
  font-weight: 600;
  color: var(--dark-soft);
}

.profile-list svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.profile-info-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 3px solid rgba(220, 38, 38, 0.1);
}

.profile-info-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px dashed rgba(220, 38, 38, 0.15);
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 0.5rem;
}

.info-item dt {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.info-item dd {
  font-weight: 600;
  color: var(--dark-soft);
  font-size: 0.95rem;
}

/* ===== Vision Mission ===== */
.vision-mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.vm-card {
  background: var(--white);
  padding: 2.25rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.vm-card:hover {
  transform: translateY(-6px) rotate(0.5deg);
}

.vm-vision {
  border-top: 5px solid var(--primary);
}

.vm-mission {
  border-top: 5px solid var(--accent-yellow);
}

.vm-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  margin-bottom: 1.25rem;
}

.vm-vision .vm-icon {
  background: rgba(220, 38, 38, 0.12);
  color: var(--primary);
}

.vm-mission .vm-icon {
  background: rgba(251, 191, 36, 0.2);
  color: var(--accent-orange);
}

.vm-icon svg {
  width: 28px;
  height: 28px;
}

.vm-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
}

.vm-card p {
  color: var(--text);
  line-height: 1.8;
}

.vm-card ul {
  list-style: none;
}

.vm-card ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.65rem;
  color: var(--text);
  line-height: 1.7;
}

.vm-card ul li::before {
  content: '★';
  position: absolute;
  left: 0;
  color: var(--accent-yellow);
  font-size: 0.85rem;
}

/* ===== Program ===== */
.program-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.program-card {
  background: var(--white);
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: all var(--transition);
  border: 3px solid transparent;
}

.program-card:hover {
  transform: translateY(-8px) rotate(-1deg);
  box-shadow: var(--shadow-lg);
  border-color: rgba(220, 38, 38, 0.15);
}

.program-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  color: var(--accent);
  border-radius: 16px;
  margin-bottom: 1.25rem;
}

.program-icon svg {
  width: 28px;
  height: 28px;
}

.program-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.6rem;
}

.program-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.65;
}

/* ===== News / Berita ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.news-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 3px solid transparent;
  transition: all var(--transition);
}

.news-card:hover {
  transform: translateY(-6px);
  border-color: var(--card-accent, var(--primary));
  box-shadow: 0 12px 40px rgba(220, 38, 38, 0.15);
}

.news-card-link {
  display: block;
  color: inherit;
}

.news-card-link:hover {
  color: inherit;
}

.news-thumb {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-alt);
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.news-card:hover .news-thumb img {
  transform: scale(1.05);
}

.news-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, rgba(220,38,38,0.1), rgba(251,191,36,0.15));
}

.news-body {
  padding: 1.5rem;
}

.news-body time {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.news-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0.5rem 0 0.6rem;
  line-height: 1.4;
}

.news-body p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

.news-read-more {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
}

/* ===== Gallery ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.gallery-grid-home {
  grid-template-columns: repeat(3, 1fr);
}

.gallery-item {
  position: relative;
  border: none;
  padding: 0;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: var(--bg-alt);
  transition: transform var(--transition);
}

.gallery-item:hover {
  transform: scale(1.03) rotate(1deg);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(220, 38, 38, 0.75), transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay span {
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  border: 2px solid rgba(220, 38, 38, 0.2);
  background: var(--white);
  border-radius: 100px;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(30, 27, 46, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  text-align: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  margin: 0 auto;
}

.lightbox-caption {
  color: var(--white);
  margin-top: 1rem;
  font-family: var(--font-heading);
}

.lightbox-caption h4 {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.lightbox-caption p {
  font-size: 0.9rem;
  opacity: 0.8;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  border: none;
  background: var(--primary);
  color: var(--white);
  font-size: 1.5rem;
  border-radius: 50%;
  cursor: pointer;
  transition: transform var(--transition);
}

.lightbox-close:hover {
  transform: scale(1.1) rotate(90deg);
}

/* ===== Page Header (subpages) ===== */
.page-hero {
  padding: 140px 0 60px;
  background: linear-gradient(135deg, var(--primary), var(--accent-orange));
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '✨';
  position: absolute;
  font-size: 4rem;
  opacity: 0.2;
  top: 20%;
  left: 10%;
}

.page-hero::after {
  content: '📚';
  position: absolute;
  font-size: 3rem;
  opacity: 0.2;
  bottom: 20%;
  right: 10%;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 0.5rem;
}

.page-hero p {
  opacity: 0.9;
  font-size: 1.05rem;
}

.breadcrumb {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
}

.breadcrumb a:hover {
  color: var(--white);
}

.breadcrumb span {
  opacity: 0.6;
}

/* ===== Article Detail ===== */
.article-wrap {
  max-width: 780px;
  margin: 0 auto;
}

.article-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
}

.article-featured {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-lg);
}

.article-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text);
}

.article-content h2,
.article-content h3 {
  color: var(--dark);
  margin: 1.5rem 0 0.75rem;
}

.article-content p {
  margin-bottom: 1rem;
}

.article-content img {
  border-radius: var(--radius);
  margin: 1rem 0;
}

.article-content ul,
.article-content ol {
  margin: 1rem 0 1rem 1.5rem;
}

/* ===== Pagination ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 0.75rem;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  background: var(--white);
  color: var(--text);
  border: 2px solid rgba(220, 38, 38, 0.15);
  transition: all var(--transition);
}

.page-link:hover,
.page-link.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.page-link.disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* ===== Empty State ===== */
.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 3px dashed rgba(220, 38, 38, 0.15);
}

.empty-emoji {
  display: block;
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.empty-state p {
  color: var(--text-light);
  font-size: 1.05rem;
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: stretch;
}

.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform var(--transition);
  border: 2px solid transparent;
}

.contact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(220, 38, 38, 0.1);
}

.contact-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(220, 38, 38, 0.1);
  color: var(--primary);
  border-radius: 12px;
  margin-bottom: 0.85rem;
}

.contact-icon svg {
  width: 22px;
  height: 22px;
}

.contact-card h4 {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.contact-card p {
  font-size: 0.92rem;
  color: var(--dark-soft);
  font-weight: 600;
  line-height: 1.6;
}

.contact-card a {
  color: var(--dark-soft);
  word-break: break-word;
}

.contact-card a:hover {
  color: var(--primary);
}

.contact-map {
  min-height: 320px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--bg-alt);
  border: 3px solid rgba(220, 38, 38, 0.1);
}

.contact-map iframe {
  display: block;
}

/* ===== Footer ===== */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-brand .logo-icon {
  width: 48px;
  height: 48px;
  font-size: 0.9rem;
}

.footer-brand strong {
  display: block;
  color: var(--white);
  font-size: 0.95rem;
  font-family: var(--font-heading);
}

.footer-brand p {
  font-size: 0.82rem;
  margin-top: 0.15rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--accent-yellow);
}

.footer-copy {
  font-size: 0.85rem;
  width: 100%;
  text-align: center;
  margin-top: 0.5rem;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .program-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-grid, .vision-mission-grid, .contact-grid { grid-template-columns: 1fr; }
  .contact-map { min-height: 280px; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(300px, 85vw);
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 5rem 1.5rem 2rem;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.1);
    transition: right var(--transition);
    gap: 0.25rem;
  }

  .nav-menu.open { right: 0; }

  .nav-link {
    padding: 0.85rem 1rem;
    font-size: 1rem;
  }

  .nav-cta, .nav-cbt {
    margin-left: 0;
    margin-top: 0.5rem;
    text-align: center;
    justify-content: center;
  }

  .nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  .hero-scroll { display: none; }
  .info-item { grid-template-columns: 1fr; gap: 0.15rem; }
  .contact-cards { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-brand { flex-direction: column; }
  .footer-links { justify-content: center; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .stat-card { padding: 1.25rem 1rem; }
  .stat-number { font-size: 1.75rem; }
  .program-grid, .news-grid, .gallery-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; }
}

/* ===== Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
