/* ============================================
REVISI KONSOLIDASI CSS - SDN 01 KARANGLEWAS (PURE CYAN GLASS THEME)
   ============================================ */

/* ===== TIPOGRAFI MODERN & ELEGAN =====
   Heading: Cormorant Garamond (serif elegan)
   Body:    Raleway (sans bersih)
   Heading dibuat tebal (fw-semibold/fw-bold) + line-height rapat,
   paragraf dibuat renggang agar rapi & modern. */
h1, h2, h3, h4, h5, h6,
.display-4, .display-5, .display-6,
.h2, .h3, .h4, .h5,
.fw-bold, .fw-semibold,
.card-title, .section-title-custom,
.navbar-brand span {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.3px;
}
/* Heading besar ekstra elegan */
.display-4, .display-5, .display-6 { font-weight: 600; letter-spacing: 0.5px; }

/* Paragraf lebih renggang & nyaman dibaca */
p, .lead, .text-muted, blockquote, li, td, th, label, .small, small {
  line-height: 1.8;
}
.lead { line-height: 1.85; font-weight: 400; }

/* Navbar brand tetap Raleway tebal (logo text) */
.navbar-brand span { font-family: 'Raleway', sans-serif !important; }
:root {
  --primary-dark: #2D1B36;   /* Emerald gelap — heading/teks aksen */
  --primary-medium: #2D1B36; /* Emerald utama/brand */
  --primary-color: #2D1B36;  /* Emerald utama */
  --secondary-color: #2D1B36;/* Charcoal — sekunder elegan */
  --accent-color: #2D1B36;   /* Charcoal sekunder */
  --light-color: #FFFFFF;    /* Putih bersih — latar */
  --extra-light: #ecfdf5;    /* Emerald sangat muda untuk card subtle */
  --super-light: #d1fae5;
  --background-light: #FFFFFF;/* Latar halaman */
  --dark-color: #2D1B36;     /* Charcoal — teks gelap */
  --transition: all 0.3s ease;
}

/* OVERRIDE BOOTSTRAP -> 2 WARNA (Emerald + Charcoal) */
.text-success, .text-primary { color: #2D1B36 !important; }
.bg-success { background-color: #2D1B36 !important; }
.btn-success {
  background-color: #2D1B36 !important;
  border-color: #2D1B36 !important;
  color: #fff !important;
}
.btn-primary {
  background-color: #2D1B36 !important;
  border-color: #2D1B36 !important;
  color: #fff !important;
}
.text-dark, .bg-dark { color: #2D1B36 !important; }
.bg-dark { background-color: #2D1B36 !important; }

[data-bs-theme="dark"] {
  --primary-dark: #2D1B36;
  --primary-medium: #2D1B36;
  --primary-color: #2D1B36;
  --secondary-color: #2D1B36;
  --accent-color: #2D1B36;
  --light-color: #FFFFFF;
  --extra-light: #FAFAFA;
  --super-light: #E0E4E8;
  --background-light: #FAFAFA;
  --dark-color: #2D1B36;
}

/* 2. BASE BODY BACKGROUND - PUTIH GADING */
html, body {
  background: #f8f9fa;
  background-attachment: scroll;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* 3. UNIFIED CONTAINER STYLE - GLASS EFFECT FOR ALL PAGES */
.container.py-5,
#kontak .container,
#fasilitas .container,
#guru .container,
/* #beranda .container, */
#visi-misi .container,
#galeri .container,
#ppdb .container,
#sejarah .container {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  border-radius: 25px;
  padding: 40px !important;
  margin: 30px auto;
  box-shadow:
    0 20px 60px rgba(45, 27, 54, 0.15),
    0 8px 25px rgba(255, 255, 255, 0.4) inset,
    0 1px 0 rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.6);
  position: relative;
  overflow: hidden;
}

/* Lapisan overlay agar teks terbaca jelas */
.hero-section:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.40) 0%,
    rgba(0, 0, 0, 0.22) 100%
  );
  z-index: 1;
  pointer-events: none;
}
/* Prevent hero overlay/background gaps on zoomed-out mobile */
.hero-section,
.hero-section .hero-overlay,
.page-hero,
.page-hero .page-hero-overlay,
.history-header {
  width: 100% !important;
  left: 0 !important;
  right: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Konten hero agar di atas overlay */
.hero-content {
  position: relative;
  z-index: 2;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}
/* 5. STATISTICS SECTION - LIGHT CYAN */
/* .page-section:nth-child(2), */
/* #beranda section.py-5:nth-of-type(2) {
  background: linear-gradient(
    135deg,
    rgba(224, 242, 241, 0.9) 0%,
    rgba(178, 223, 219, 0.7) 50%,
    rgba(128, 203, 196, 0.5) 100%
  );
  padding: 80px 0;
} */

/* 6. UNIFIED CARD STYLES - GRADIENT BRAND (ungu -> hijau) */
.card,
.card.border-0.shadow-sm,
.facility-card {
  background: linear-gradient(135deg, #2D1B36 0%, #10B981 100%);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 18px;
  color: #ffffff;
  box-shadow:
    0 22px 60px rgba(45, 27, 54, 0.35),
    0 8px 25px rgba(16, 185, 129, 0.18);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:hover,
.card.border-0.shadow-sm:hover,
.facility-card:hover {
  background: linear-gradient(135deg, #3a2748 0%, #14c08f 100%);
  transform: translateY(-12px) scale(1.03);
  box-shadow:
    0 38px 80px rgba(45, 27, 54, 0.42),
    0 10px 30px rgba(16, 185, 129, 0.22);
  border-color: rgba(201, 162, 39, 0.65) !important;
}

/* Pastikan teks & elemen di dalam card tetap terbaca di atas ungu */
.card .card-title,
.card h1, .card h2, .card h3, .card h4, .card h5, .card h6,
.card .fw-bold, .card .fw-semibold {
  color: #ffffff !important;
}
.card .text-muted,
.card .text-dark,
.card .text-secondary,
.card .text-secondary-emerald,
.card p,
.card small,
.card span:not(.badge):not(.id-badge) {
  color: rgba(255, 255, 255, 0.82) !important;
}
.card a:not(.btn):not(.dropdown-item) { color: #C9A227 !important; }
.card .text-primary { color: #C9A227 !important; }
.card .list-group-item {
  background: transparent !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: rgba(255, 255, 255, 0.82) !important;
}
.card .border-bottom { border-color: rgba(255, 255, 255, 0.12) !important; }
.card .border-success, .card .border-top { border-color: rgba(255,255,255,0.18) !important; }

/* 7. CARD BODY - TRANSPARENT */
.card-body {
  background: transparent !important;
}

/* 8. CARD HEADERS - CYAN GRADIENTS */
.card-header.bg-primary {
  background: linear-gradient(
    135deg,
    var(--primary-dark),
    var(--primary-color)
  ) !important;
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.card-header.bg-success {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  ) !important;
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.card-header.bg-info {
  background: linear-gradient(
    135deg,
    var(--secondary-color),
    var(--accent-color)
  ) !important;
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.card-header.bg-warning {
  background: linear-gradient(
    135deg,
    var(--accent-color),
    var(--light-color)
  ) !important;
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

/* 9. STATISTICS CARDS - MODERN GLASS */
.stat-modern {
  text-align: center;
  padding: 35px 20px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(25px);
  border-radius: 20px;
  box-shadow:
    0 15px 40px rgba(45, 27, 54, 0.1),
    0 4px 15px rgba(255, 255, 255, 0.3) inset,
    0 1px 0 rgba(255, 255, 255, 0.5);
  transition: all 0.4s ease;
  height: 100%;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.stat-modern:hover {
  transform: translateY(-10px);
  box-shadow:
    0 25px 50px rgba(45, 27, 54, 0.2),
    0 6px 25px rgba(255, 255, 255, 0.4) inset;
  background: rgba(255, 255, 255, 0.92);
}

.stat-icon-modern {
  width: 85px;
  height: 85px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 2.2rem;
  color: white;
  box-shadow:
    0 12px 30px rgba(45, 27, 54, 0.3),
    0 3px 10px rgba(255, 255, 255, 0.3) inset;
  border: 3px solid rgba(255, 255, 255, 0.5);
}

.stat-number-modern {
  font-size: 3.2rem;
  font-weight: 800;
  background: linear-gradient(
    135deg,
    var(--primary-dark),
    var(--primary-color)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
  text-shadow: 0 4px 15px rgba(45, 27, 54, 0.15);
}

/* 10. BUTTONS - CYAN GRADIENT */
.btn-modern {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  color: white;
  padding: 16px 32px;
  border-radius: 50px;
  border: none;
  font-weight: 600;
  transition: all 0.4s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 8px 25px rgba(45, 27, 54, 0.25),
    0 2px 8px rgba(255, 255, 255, 0.3) inset;
  position: relative;
  overflow: hidden;
}

.btn-modern::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
  transition: 0.6s;
}

.btn-modern:hover::before {
  left: 100%;
}

.btn-modern:hover {
  background: linear-gradient(135deg, var(--accent-color), var(--light-color));
  transform: translateY(-4px) scale(1.05);
  box-shadow:
    0 15px 35px rgba(45, 27, 54, 0.35),
    0 4px 15px rgba(255, 255, 255, 0.4) inset;
}

.btn-modern-outline {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  backdrop-filter: blur(10px);
}

.btn-modern-outline:hover {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  color: white;
  border-color: transparent;
}

/* 11. FORM STYLES */
.form-control {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(45, 27, 54, 0.25);
  color: var(--primary-dark);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 12px 18px;
  transition: all 0.3s ease;
}

.form-control:focus {
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(45, 27, 54, 0.2);
  color: var(--primary-dark);
}

#contactForm {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  box-shadow:
    0 15px 45px rgba(45, 27, 54, 0.12),
    0 5px 20px rgba(255, 255, 255, 0.3) inset;
  padding: 35px;
}

/* 12. ICON CONTAINERS */
.icon-container,
.teacher-photo-placeholder,
.teacher-photo-placeholder-sm {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(224, 242, 241, 0.9) 100%
  );
  backdrop-filter: blur(15px);
  border: 2px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    0 10px 30px rgba(45, 27, 54, 0.1),
    0 4px 15px rgba(255, 255, 255, 0.3) inset;
}

/* 13. ALERTS - GLASS EFFECT */
.alert {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 15px;
  box-shadow:
    0 10px 30px rgba(45, 27, 54, 0.08),
    0 4px 15px rgba(255, 255, 255, 0.25) inset;
}

.alert-primary {
  background: rgba(45, 27, 54, 0.12);
  border-color: rgba(45, 27, 54, 0.3);
}

.alert-info {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
}

.alert-warning {
  background: rgba(255, 152, 0, 0.12);
  border-color: rgba(255, 152, 0, 0.3);
}

.alert-success {
  background: rgba(76, 175, 80, 0.12);
  border-color: rgba(76, 175, 80, 0.3);
}

/* 14. NAVBAR - GLASS NAVBAR (Hijau Emerald) */
.navbar {
  background: linear-gradient(
    135deg,
    rgba(45, 27, 54, 0.95),
    rgba(16, 185, 129, 0.92)
  ) !important;
  backdrop-filter: blur(25px);
  box-shadow:
    0 8px 32px rgba(45, 27, 54, 0.25),
    0 1px 0 rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

/* 15. FOOTER - GREEN GRADIENT */
footer.bg-dark {
  background: linear-gradient(
    135deg,
    var(--primary-dark),
    var(--primary-color)
  ) !important;
  color: var(--extra-light);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 -5px 30px rgba(45, 27, 54, 0.2);
}

/* 16. BADGES - CYAN GRADIENTS */
.badge.bg-primary {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  ) !important;
  color: white;
  border: none;
  box-shadow: 0 4px 15px rgba(45, 27, 54, 0.2);
}

.badge.bg-success {
  background: linear-gradient(135deg, #43a047, #66bb6a) !important;
  color: white;
}

.badge.bg-info {
  background: linear-gradient(
    135deg,
    var(--accent-color),
    var(--light-color)
  ) !important;
  color: white;
}

.badge.bg-warning {
  background: linear-gradient(135deg, #2D1B36, #34d399) !important;
  color: #212529;
}

.badge.bg-secondary {
  background: linear-gradient(135deg, #78909c, #90a4ae) !important;
  color: white;
}

/* 17. SECTION ALTERNATING BACKGROUNDS (for index.php) */
.page-section {
  padding: 80px 0;
  position: relative;
}

.page-section:nth-child(odd) {
  background: linear-gradient(
    135deg,
    rgba(224, 242, 241, 0.4) 0%,
    rgba(178, 223, 219, 0.3) 50%,
    rgba(224, 242, 241, 0.4) 100%
  );
}

.page-section:nth-child(even) {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.6) 0%,
    rgba(224, 242, 241, 0.4) 50%,
    rgba(255, 255, 255, 0.6) 100%
  );
}

/* 18. FEATURES CARDS (in beranda.php) */
/* .modern-card.glass-effect {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  box-shadow:
    0 15px 40px rgba(45, 27, 54, 0.12),
    0 4px 20px rgba(255, 255, 255, 0.3) inset;
  transition: all 0.4s ease;
} */

.modern-card.glass-effect:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.95);
  box-shadow:
    0 25px 60px rgba(45, 27, 54, 0.18),
    0 6px 25px rgba(255, 255, 255, 0.4) inset;
}

/* 19. BORDERED BOXES */
.p-3.border.rounded,
.text-center.p-3.border.rounded {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  border-radius: 15px;
  box-shadow:
    0 8px 25px rgba(45, 27, 54, 0.08),
    0 3px 12px rgba(255, 255, 255, 0.25) inset;
  transition: all 0.3s ease;
}

.p-3.border.rounded:hover,
.text-center.p-3.border.rounded:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-5px);
  box-shadow:
    0 15px 40px rgba(45, 27, 54, 0.15),
    0 4px 20px rgba(255, 255, 255, 0.3) inset;
}

/* 20. DARK MODE ADJUSTMENTS */
[data-bs-theme="dark"] body {
  background: linear-gradient(
    135deg,
    #0a1a17 0%,
    #0d1f1c 25%,
    #102521 50%,
    #0d1f1c 75%,
    #0a1a17 100%
  );
}

[data-bs-theme="dark"] .container.py-5,
[data-bs-theme="dark"] .card,
[data-bs-theme="dark"] .modern-card.glass-effect,
[data-bs-theme="dark"] #contactForm {
  background: rgba(13, 31, 28, 0.85);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 8px 25px rgba(0, 0, 0, 0.2) inset;
}

[data-bs-theme="dark"] .card:hover,
[data-bs-theme="dark"] .modern-card.glass-effect:hover {
  background: rgba(18, 38, 35, 0.9);
}

[data-bs-theme="dark"] .form-control {
  background: rgba(13, 31, 28, 0.8);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--super-light);
}

[data-bs-theme="dark"] .alert {
  background: rgba(13, 31, 28, 0.85);
  border-color: rgba(255, 255, 255, 0.12);
}

[data-bs-theme="dark"] .p-3.border.rounded {
  background: rgba(13, 31, 28, 0.8);
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* 21. RESPONSIVE ADJUSTMENTS */
@media (max-width: 992px) {
  .container.py-5 {
    padding: 30px !important;
    margin: 20px 15px;
  }

  .hero-modern {
    padding: 70px 0;
  }

  .stat-modern {
    padding: 25px 15px;
  }

  .stat-number-modern {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  .container.py-5 {
    padding: 25px !important;
    margin: 15px 10px;
    border-radius: 20px;
  }

  .hero-modern {
    padding: 50px 0;
  }

  .page-section {
    padding: 60px 0;
  }

  .stat-number-modern {
    font-size: 2.5rem;
  }

  .btn-modern {
    padding: 14px 28px;
  }

  #contactForm {
    padding: 25px;
  }
}

/* 22. ANIMATIONS */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.container.py-5,
.card,
.modern-card.glass-effect {
  animation: fadeInUp 0.6s ease-out forwards;
}

.page-section {
  animation: fadeInUp 0.8s ease-out forwards;
}

/* 23. UTILITY CLASSES */
.glass-effect-light {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  box-shadow:
    0 20px 60px rgba(45, 27, 54, 0.1),
    0 5px 20px rgba(255, 255, 255, 0.3) inset;
}

.text-primary {
  color: var(--primary-color) !important;
}
.text-secondary {
  color: var(--secondary-color) !important;
}
.text-accent {
  color: var(--accent-color) !important;
}

.bg-primary-light {
  background-color: var(--super-light) !important;
}
.bg-primary-extra-light {
  background-color: var(--extra-light) !important;
}

/* 24. SCROLLBAR STYLING */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--background-light);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  border-radius: 10px;
  border: 3px solid var(--background-light);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--accent-color), var(--light-color));
}

/*25. FIX FOR SPECIFIC PAGES */
/* #beranda .container-fluid.p-0 {
  padding: 0 !important;
} */

/* #beranda .hero-modern .container {
  background: transparent;
  box-shadow: none;
  border: none;
  border-radius: 0;
} */

/* 26. TIMELINE STYLES (for sejarah.php) */
.timeline-modern {
  position: relative;
  padding-left: 30px;
}

.timeline-modern::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(
    to bottom,
    var(--primary-color),
    var(--accent-color)
  );
  border-radius: 3px;
}

.timeline-item-modern {
  position: relative;
  margin-bottom: 30px;
  padding-left: 20px;
}

.timeline-date-modern {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 10px;
  box-shadow: 0 5px 15px rgba(45, 27, 54, 0.2);
}

.timeline-content {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 15px;
  padding: 20px;
  box-shadow:
    0 10px 30px rgba(45, 27, 54, 0.1),
    0 3px 15px rgba(255, 255, 255, 0.2) inset;
}

/* 27. GALLERY SPECIFIC */
.card-img-wrapper {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 15px 15px 0 0;
  overflow: hidden;
}

/* 28. HOVER EFFECTS FOR ALL INTERACTIVE ELEMENTS */
.card,
.btn-modern,
.navbar-dark .navbar-nav .nav-link,
.p-3.border.rounded,
.stat-modern {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 29. PAGE SPECIFIC BACKGROUND OVERRIDES */
/* Remove any orange/yellow backgrounds from all pages */
section.py-5,
div.py-5 {
  background: none !important;
}

/* Ensure all sections use cyan theme */
section {
  background: transparent !important;
}

/* 30. FIX FOR INLINE STYLES IN PHP FILES */
/* Override any inline styles that might use orange */
[style*="orange"],
[style*="Orange"],
[style*="ORANGE"],
[style*="#FFA500"],
[style*="#ff9800"],
[style*="#FFC107"],
[style*="#FFB300"] {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  ) !important;
  color: white !important;
  border-color: var(--primary-color) !important;
}

/* ============================================
   TAMBAHKAN DI BAGIAN PALING BAWAH style.css
   UNTUK MEMAKSA HERO BACKGROUND MUNCUL
   ============================================ */

/* MATIKAN OVERLAY GELAP DARI CSS UTAMA */
.hero-section::before {
  display: none !important;
}



/* Pastikan container transparan total */
.hero-section .container,
#beranda .hero-section .container,
.hero-modern .container {
  background: transparent !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
  border: none !important;
}

/* ============================================
   BACK TO TOP BUTTON STYLE
   ============================================ */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999; /* Agar selalu di atas elemen lain */
  display: none; /* Sembunyikan default, JS yang akan memunculkannya */
  width: 50px;
  height: 50px;
  border-radius: 50%;
  /* Gunakan gradient tema Anda */
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  color: white;
  border: none;
  box-shadow: 0 4px 15px rgba(45, 27, 54, 0.3);
  transition: all 0.3s ease;
  /* Flexbox untuk tengahin icon */
  display: none; /* Pastikan tetap hidden di awal */
  align-items: center;
  justify-content: center;
}

/* Tampilkan flex saat aktif (di-override oleh JS display: block biasanya, 
   tapi kita butuh !important atau penyesuaian JS jika ingin flex) 
   Solusi aman: Biarkan JS atur display, kita atur styling content */
#backToTop i {
  font-size: 1.2rem;
  margin-top: -2px; /* Sedikit adjustment vertikal */
}

#backToTop:hover {
  transform: translateY(-5px);
  background: linear-gradient(135deg, var(--accent-color), var(--light-color));
  box-shadow: 0 6px 20px rgba(45, 27, 54, 0.4);
}

/* ============================================
   KUSTOMISASI JARAK MENU HEADER
   ============================================ */
@media (min-width: 992px) {
  /* Memberikan jarak ekstra ke kiri dan kanan setiap item menu di layar besar (Desktop) */
  .navbar-nav .nav-item {
    margin: 0 25px; /* Ubah angka 12px menjadi lebih besar (misal 20px) jika ingin lebih renggang lagi */
  }

  /* Memperbesar sedikit ukuran font menu agar lebih proporsional dengan jaraknya (Opsional) */
  .navbar-nav .nav-link {
    font-size: 1.05rem;
    font-weight: 500;
  }
}

/* ===== OVERRIDE BOOTSTRAP -> HIJAU EMERALD THEME ===== */
.btn-primary {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active,
.btn-primary:active:focus {
  background-color: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
  box-shadow: 0 0 0 0.25rem rgba(45, 27, 54, 0.25) !important;
}
.btn-outline-primary {
  color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}
.btn-outline-primary:hover, .btn-outline-primary:focus, .btn-outline-primary:active {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: #ffffff !important;
}
.bg-primary { background-color: var(--primary-color) !important; }
.text-success { color: var(--primary-color) !important; }

/* override emas -> hijau cerah (100% tema hijau) */
.text-accent-emerald { color: #2D1B36 !important; }

/* ===== BERANDA: CARD-BASED MODERN (aksen emas/putih) ===== */
.beranda-card {
  background: linear-gradient(135deg, #2D1B36 0%, #10B981 100%);
  border-radius: 22px;
  box-shadow: 0 22px 60px rgba(45, 27, 54, 0.35), 0 8px 25px rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.beranda-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 38px 80px rgba(45, 27, 54, 0.42), 0 10px 30px rgba(16, 185, 129, 0.22);
  border-color: rgba(201, 162, 39, 0.65);
}
.beranda-stat {
  background: linear-gradient(135deg, #2D1B36 0%, #10B981 100%);
  border-radius: 20px;
  padding: 2rem 1.25rem;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 22px 60px rgba(45, 27, 54, 0.35), 0 8px 25px rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-top: 4px solid #C9A227;
  transition: transform .3s ease, box-shadow .3s ease;
  height: 100%;
}
.beranda-stat:hover { transform: translateY(-10px); box-shadow: 0 36px 75px rgba(45, 27, 54, 0.42), 0 10px 30px rgba(16, 185, 129, 0.22); border-color: rgba(201, 162, 39, 0.65); }
.beranda-stat .ic {
  width: 72px; height: 72px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary-color), #2D1B36);
  color: #fff; font-size: 1.8rem;
  box-shadow: 0 10px 24px rgba(5,150,105,0.28);
}
.beranda-stat .num {
  font-size: 2.4rem; font-weight: 800; color: #2D1B36;
  line-height: 1; margin-bottom: .35rem;
}
.beranda-stat .lbl { color: #2D1B36; font-weight: 600; font-size: .9rem; }

.beranda-prog {
  background:linear-gradient(135deg, #2D1B36 0%, #10B981 100%); border-radius:20px; padding:2rem 1.5rem; height:100%;
  text-align:center; color:#ffffff; box-shadow:0 22px 60px rgba(45, 27, 54, 0.35), 0 8px 25px rgba(16, 185, 129, 0.18);
  border:1px solid rgba(255, 255, 255, 0.18);
  transition: transform .3s ease, box-shadow .3s ease;
}
.beranda-prog:hover { transform: translateY(-10px); box-shadow:0 36px 75px rgba(45, 27, 54, 0.42), 0 10px 30px rgba(16, 185, 129, 0.22); border-color: rgba(201, 162, 39, 0.65); }
.beranda-prog .pic {
  width:84px; height:84px; border-radius:50%;
  display:inline-flex; align-items:center; justify-content:center;
  background: linear-gradient(135deg, #e5e7eb, #cbd5e1);
  color:#2D1B36; font-size:1.8rem; margin-bottom:1rem;
  box-shadow:0 8px 20px rgba(245,158,11,0.25);
}
.beranda-prog h5 { font-weight:700; color:#2D1B36; }
.beranda-prog p { color:#2D1B36; font-size:.875rem; }

/* Aksen garis emas di bawah judul section */
.title-rule {
  height:4px; width:64px; border-radius:4px;
  background: linear-gradient(90deg, var(--primary-color), #2D1B36);
  margin: 0 auto;
}
/* CTA PPDB kartu emas-hijau */
.cta-ppdb {
  background: linear-gradient(135deg, #2D1B36 0%, #10B981 100%);
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(45, 27, 54, 0.32), 0 10px 30px rgba(16, 185, 129, 0.22);
}

/* Footer gradient (ungu -> hijau) */
.site-footer {
  background: linear-gradient(135deg, #2D1B36 0%, #10B981 100%) !important;
}

/* Teks dalam card beranda-prog harus terang (card sudah gradient gelap) */
.beranda-prog h5,
.beranda-prog p,
.beranda-prog .lbl { color: #ffffff !important; }

/* ===== KONSISTENSI 2 WARNA: heading section -> CHARCOAL ===== */
/* Judul utama section di halaman konten jadi charcoal (elegan),
   ikon/aksen tetap hijau via text-success di tempat lain. */
.pages-heading, 
.container .text-center h2.text-success,
.container h2.text-success,
.container h1.text-success {
  color: #2D1B36 !important;
}
/* Blockquote footer / label kecil tetap hijau sebagai aksen */
.blockquote-footer.text-success,
p.text-success.small,
small.text-success { color: var(--primary-color) !important; }

/* Card VISI (dua panel) - gradient ungu->hijau */
.visi-left {
  background: linear-gradient(135deg, #2D1B36 0%, #10B981 100%) !important;
}
.visi-right {
  background: linear-gradient(135deg, #2D1B36 0%, #10B981 100%) !important;
}

/* Card visi & misi (hover-card) - gradient ungu->hijau.
   Ditaruh di akhir agar menang atas blok .card dark-mode dari template lama. */
.hover-card {
  background: linear-gradient(135deg, #2D1B36 0%, #10B981 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
}
[data-bs-theme="dark"] .hover-card {
  background: linear-gradient(135deg, #2D1B36 0%, #10B981 100%) !important;
  color: #ffffff !important;
}
.hover-card .card-body,
.hover-card p,
.hover-card small { color: rgba(255, 255, 255, 0.85) !important; }
.hover-card .card-title { color: #ffffff !important; }

/* Hover-lift kartu (sama seperti di halaman Galeri / Berita) */
.transform-hover { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.transform-hover:hover { transform: translateY(-5px); box-shadow: 0 1rem 2rem rgba(0,0,0,.15) !important; }

/* =====================================================
   HALAMAN EKSTRAKURIKULER — 2 LAYOUT
   (1) Pembiasaan : grid kartu putih (gaya Galeri/Berita)
   (2) Ekstrakurikuler : grid kartu putih (gaya Galeri/Berita)
===================================================== */
.ekstra-galeri-card {
    background: #fff;
    border: 1px solid rgba(45, 27, 54, 0.08);
}
.ekstra-galeri-card .ekstra-photo {
    height: 260px;
    width: 100%;
    object-fit: cover;
}
.ekstra-galeri-card .ekstra-photo-fallback {
    height: 200px;
    background: linear-gradient(135deg, #2D1B36 0%, #10B981 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.ekstra-galeri-card .ekstra-photo-fallback i {
    font-size: 3rem;
    color: #fff;
}
.ekstra-galeri-card .card-title { color: #2D1B36; }
.ekstra-galeri-card .card-text { color: #475569; }

/* Foto di dalam kartu gradient (bagian teratas replika beranda) */
.beranda-prog .ekstra-card-img {
    border-radius: 14px;
    overflow: hidden;
    height: 160px;
}
.beranda-prog .ekstra-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.beranda-prog h5 { margin-top: .25rem; }

/* =========================================
   TOMBOL WHATSAPP MENGAPUNG PERMANEN
========================================= */
.wa-float {
    position: fixed !important;
    bottom: 90px !important; /* Posisi statis di atas Back to Top (yang berada di 30px) */
    right: 30px !important;
    width: 55px;
    height: 55px;
    background-color: #25d366; 
    color: #FFF !important;
    border-radius: 50%;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 9999 !important; /* Memastikan selalu di lapisan terdepan */
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.wa-float:hover {
    background-color: #128C7E;
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

@media (max-width: 767.98px) {
    .wa-float {
        bottom: 85px !important;
        right: 20px !important;
        width: 50px;
        height: 50px;
        font-size: 26px;
    }
}