/* ============================================================
   MI Sirojul Huda — Complete Premium Stylesheet
   ============================================================ */

/* ── 1. Google Fonts Import ─────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

/* ── 2. CSS Custom Properties ───────────────────────────── */
:root {
  /* Brand Colors - Islamic Emerald Green & Warm Amber (Option 1) */
  --primary-color:   #0d9488; /* Emerald / Teal 600 */
  --primary-dark:    #0f766e; /* Emerald / Teal 700 */
  --primary-deep:    #115e59; /* Emerald / Teal 800 */
  --accent-color:    #d97706; /* Warm Amber 600 */
  --accent-warm:     #f59e0b; /* Warm Amber 500 */
  --accent-light:    #f0fdfa; /* Soft Teal 50 */

  /* Backgrounds */
  --bg-body:         #f8fafc;
  --bg-light:        #f1f5f9;
  --bg-section-alt:  #f0fdfa; /* Soft Teal background */
  --white:           #ffffff;

  /* Text */
  --text-dark:       #0f172a;
  --text-body:       #334155;
  --text-muted:      #64748b;
  --text-light:      #94a3b8;

  /* Borders & Shadows */
  --border-color:    rgba(15, 23, 42, 0.06);
  --border-radius:   16px;
  --border-radius-sm:10px;
  --border-radius-lg:28px;
  --shadow-xs:       0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm:       0 4px 16px rgba(15, 23, 42, 0.05);
  --shadow-md:       0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg:       0 20px 50px rgba(15, 23, 42, 0.12);
  --shadow-glow:     0 0 25px rgba(217, 119, 6, 0.15);

  /* Transitions */
  --transition:      all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-slow: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);

  /* Spacing */
  --section-padding: 95px 0;
  --container-max:   1240px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Outfit', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  background-color: var(--bg-body);
  color: var(--text-body);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a  { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

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

/* ── 4. Utility ─────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ── 5. Navbar ──────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 16px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 10px 40px rgba(15, 118, 110, 0.06);
  border-radius: 20px;
  padding: 0 0;
  margin: 0 auto 16px;
  width: calc(100% - 48px);
  max-width: var(--container-max);
  transition: var(--transition);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* Logo */
.navbar .logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary-dark);
  white-space: nowrap;
}

.navbar .logo i {
  font-size: 1.6rem;
  color: var(--primary-color);
  background: linear-gradient(135deg, #ccfbf1, #99f6e4);
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.navbar .logo .logo-img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: contain;
  flex-shrink: 0;
  background: var(--white);
  padding: 4px;
  border: 1px solid var(--border-color);
}

.navbar .logo .logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.navbar .logo .logo-text span {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 16px;
  border-radius: var(--border-radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-body);
  transition: var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
  background: rgba(15, 118, 110, 0.08);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary-color);
}

/* Navbar Login Button */
.btn-login {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--white) !important;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(45,106,79,0.25);
  transition: var(--transition);
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45,106,79,0.35);
}

/* Hamburger */
.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 1.4rem;
  color: var(--primary-dark);
  background: var(--bg-section-alt);
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-sm);
  align-items: center;
  justify-content: center;
}

/* ── 6. Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  letter-spacing: 0.02em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--white);
  box-shadow: 0 6px 20px rgba(45,106,79,0.30);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(45,106,79,0.40);
  color: var(--white);
}

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

.btn-outline:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-sm {
  padding: 9px 20px;
  font-size: 0.85rem;
}

/* ── 7. Section Header ──────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 14px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.section-header p {
  margin-top: 20px;
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

/* ── 8. Hero Section ────────────────────────────────────── */
.hero {
  padding: 190px 0 140px;
  background: linear-gradient(135deg, rgba(5, 18, 15, 0.88) 0%, rgba(13, 148, 136, 0.75) 100%),
              url('../../img/depan-sekolah.jpeg') center center / cover no-repeat;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(circle at 50% 50%, black, transparent 90%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black, transparent 90%);
  pointer-events: none;
}

.hero::after {
  display: none;
}

.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
}

.hero-content {
  max-width: 680px;
}

.hero-content h1 {
  font-size: 3.4rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 22px;
}

.hero-content h1 span {
  color: var(--accent-warm);
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.hero-content p {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-actions .btn-primary {
  background: linear-gradient(135deg, var(--accent-color), var(--accent-warm));
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.35);
}

.hero-actions .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(217, 119, 6, 0.45);
  color: #ffffff;
}

.hero-actions .btn-outline {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.hero-actions .btn-outline:hover {
  background: #ffffff;
  color: var(--primary-deep);
  border-color: #ffffff;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.hero-badge i {
  font-size: 1.8rem;
  color: #eab308; /* Gold color */
  text-shadow: 0 2px 10px rgba(234, 179, 8, 0.2);
}

.hero-badge-text strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-dark);
  font-weight: 700;
}

.hero-badge-text span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

@keyframes float {
  0%, 100% { transform: translateY(0);    }
  50%       { transform: translateY(-14px); }
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0);    }
  50%       { transform: translateY(-8px); }
}

/* Placeholder kalau foto belum diupload */
.hero-img-placeholder {
  width: 100%;
  max-width: 480px;
  height: 340px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: white;
  border: 4px solid rgba(110,231,183,0.35);
  box-shadow: 0 20px 60px rgba(4,120,87,0.30);
}

.hero-img-placeholder i {
  font-size: 3.5rem;
  opacity: 0.9;
}

.hero-img-placeholder p {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
}

.hero-img-placeholder span {
  font-size: 0.82rem;
  opacity: 0.75;
  text-align: center;
  line-height: 1.6;
}

.hero-img-placeholder code {
  background: rgba(255,255,255,0.2);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.8rem;
}

@keyframes float {
  0%, 100% { transform: translateY(0);    }
  50%       { transform: translateY(-14px); }
}

/* ── 9. Welcome / Sambutan Section ─────────────────────── */
.welcome-section {
  padding: var(--section-padding);
  background: var(--white);
}

.welcome-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 64px;
  align-items: center;
}

.welcome-img-wrapper {
  position: relative;
}

.welcome-img {
  width: 100%;
  height: 420px;
  object-fit: contain;
  object-position: top center;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  background-color: var(--bg-tint);
}

.welcome-img-wrapper::before {
  content: '';
  position: absolute;
  inset: -12px -12px auto auto;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
  border-radius: 50%;
  opacity: 0.15;
  z-index: -1;
}

.welcome-content h3 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.welcome-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.welcome-text {
  position: relative;
}
.welcome-text p {
  font-size: 1.08rem;
  color: var(--text-body);
  line-height: 1.9;
  font-style: italic;
  border-left: 4px solid var(--primary-color);
  padding-left: 24px;
  background: var(--bg-section-alt);
  padding: 28px 28px 28px 30px;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  position: relative;
  overflow: hidden;
}
.welcome-text p::before {
  content: '\f10d';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: 10px;
  left: 14px;
  font-size: 4rem;
  color: rgba(13, 148, 136, 0.05);
  pointer-events: none;
}

/* ── 10. Keunggulan Cards ───────────────────────────────── */
.keunggulan-section {
  padding: var(--section-padding);
  background: linear-gradient(to bottom, var(--white), var(--bg-section-alt));
}

.keunggulan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.keunggulan-card {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 40px 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--accent-color);
  text-align: center;
  transition: var(--transition);
  position: relative;
}

.keunggulan-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border-top-color: var(--primary-color);
  background: var(--white);
}

.keunggulan-icon {
  font-size: 2.8rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  display: inline-block;
  transition: var(--transition);
}

.keunggulan-card:hover .keunggulan-icon {
  color: var(--accent-color);
  transform: scale(1.1) translateY(-2px);
}

.keunggulan-card h4 {
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
  transition: var(--transition);
}

.keunggulan-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.card {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 36px 28px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--primary-color);
  text-align: center;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border-top-color: var(--accent-color);
  background: var(--white);
}

.card-icon {
  font-size: 2.6rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  display: block;
  transition: var(--transition);
}

.card:hover .card-icon {
  color: var(--accent-color);
  transform: scale(1.1);
}

.card h4 {
  font-size: 1.15rem;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.card p {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── 11. News / Informasi Section ───────────────────────── */
.news-section {
  padding: var(--section-padding);
  background: var(--bg-section-alt);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  margin-bottom: 44px;
}

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

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.news-img-wrapper {
  position: relative;
  overflow: hidden;
}

.news-img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  transition: var(--transition-slow);
}

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

.news-category {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--primary-color);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 2;
}

.news-body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-meta {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 12px;
}

.news-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 18px;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-top: auto;
  transition: var(--transition);
}

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

/* ── 12. Gallery Section ────────────────────────────────── */
.gallery-section {
  padding: var(--section-padding);
  background: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
  margin-bottom: 44px;
}

.gallery-item {
  position: relative;
  cursor: pointer;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
}

.gallery-photo {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: var(--transition-slow);
}

.gallery-item:hover .gallery-photo {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 148, 136, 0.88) 0%, rgba(13, 148, 136, 0.3) 60%, transparent 100%);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 20px;
  color: var(--white);
  transition: var(--transition);
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-overlay h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
}

/* ── 13. Lightbox ───────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  backdrop-filter: blur(6px);
}

.lightbox.active { display: flex; }

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--border-radius);
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
  animation: zoomIn 0.25s ease;
}

@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1);    }
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  font-size: 2.4rem;
  color: var(--white);
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
  transition: var(--transition);
}

.lightbox-close:hover { opacity: 1; transform: rotate(90deg); }

/* ── 14. Footer ─────────────────────────────────────────── */
.footer {
  background: linear-gradient(135deg, #042f2e 0%, #0d9488 100%);
  color: rgba(255,255,255,0.75);
  padding: 70px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 50px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 18px;
}

.footer-logo i {
  font-size: 1.5rem;
  color: var(--accent-color);
}

.footer-desc {
  font-size: 0.92rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
}

.footer-links h4,
.footer-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
}

.footer-links h4::after,
.footer-info h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 3px;
  background: var(--accent-color);
  border-radius: 2px;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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

.footer-info p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.6;
}

.footer-bottom {
  text-align: center;
  padding: 18px 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

/* ── 15. Page-specific: Informasi ───────────────────────── */
.page-hero {
  padding: 70px 0 50px;
  background: linear-gradient(135deg, #f0fdfa, #ccfbf1);
  text-align: center;
}

.page-hero h1 {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text-dark);
}

.page-hero p {
  color: var(--text-muted);
  margin-top: 10px;
  font-size: 1.05rem;
}

.search-filter-bar {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  padding: 22px 28px;
  margin-bottom: 36px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: flex-end;
  border: 1px solid var(--border-color);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 200px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-control {
  padding: 12px 18px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  font-size: 0.94rem;
  font-family: 'Inter', sans-serif;
  color: var(--text-body);
  background: var(--bg-light);
  transition: var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--primary-color);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 50px;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  border: 1.5px solid var(--border-color);
  background: var(--white);
  color: var(--text-body);
  transition: var(--transition);
}

.pagination a:hover {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

.pagination .active,
.pagination span.active {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

/* ── 16. Page-specific: Galeri ──────────────────────────── */
.galeri-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}

/* ── 17. Page-specific: Profil ──────────────────────────── */
.profil-section {
  padding: var(--section-padding);
  background: var(--white);
}

.profil-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 50px;
  align-items: flex-start;
}

.profil-img {
  width: 100%;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  object-fit: cover;
}

.info-list {
  list-style: none;
}

.info-list li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.95rem;
}

.info-list li:last-child { border-bottom: none; }

.info-list li i {
  color: var(--primary-color);
  width: 20px;
  flex-shrink: 0;
  margin-top: 3px;
}

/* ── 18. Page-specific: Kontak ──────────────────────────── */
.kontak-section {
  padding: var(--section-padding);
}

.kontak-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 50px;
}

.kontak-info-card {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--border-radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.kontak-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
  align-items: flex-start;
}

.kontak-info-item i {
  font-size: 1.25rem;
  color: var(--primary-color);
  background: rgba(13, 148, 136, 0.08);
  width: 44px;
  height: 44px;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.kontak-info-item:hover i {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
}

.contact-form {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--border-radius);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.map-container {
  height: 310px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  margin-top: 24px;
  transition: var(--transition);
}

.map-container:hover {
  box-shadow: var(--shadow-md), var(--shadow-glow);
  transform: translateY(-2px);
}

/* ── 19. Login Page ─────────────────────────────────────── */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0fdfa, #ccfbf1);
  padding: 40px 20px;
}

.login-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 52px 46px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
}

.login-logo {
  text-align: center;
  margin-bottom: 32px;
}

.login-logo i {
  font-size: 2.5rem;
  color: var(--primary-color);
}

.login-logo h2 {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-top: 10px;
}

/* ── 20. Alert Messages ─────────────────────────────────── */
.alert {
  padding: 14px 20px;
  border-radius: var(--border-radius-sm);
  margin-bottom: 20px;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-success {
  background: #ccfbf1;
  color: #0f766e;
  border: 1px solid #5eead4;
}

.alert-danger {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.alert-info {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fcd34d;
}

/* ── 21. Badge / Tag ────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-berita     { background: #ccfbf1; color: #0f766e; }
.badge-pengumuman { background: #fef3c7; color: #92400e; }
.badge-kegiatan   { background: #fef3c7; color: #b45309; }

/* ── 22. Detail Informasi ───────────────────────────────── */
.detail-header {
  background: linear-gradient(135deg, #f0fdfa, #ccfbf1);
  padding: 60px 0 40px;
}

.detail-body {
  padding: 50px 0;
}

.detail-content {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 44px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  max-width: 820px;
  margin: 0 auto;
  line-height: 1.85;
  font-size: 1rem;
  color: var(--text-body);
}

.detail-content img {
  width: 100%;
  border-radius: var(--border-radius);
  margin: 28px 0;
  box-shadow: var(--shadow-md);
}

.detail-content h1,
.detail-content h2,
.detail-content h3 {
  margin: 28px 0 14px;
  color: var(--text-dark);
}

.detail-content p { margin-bottom: 16px; }

/* ── 23. Back Button ────────────────────────────────────── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 20px;
  transition: var(--transition);
}

.back-link:hover {
  color: var(--primary-dark);
  gap: 12px;
}

/* ── 24. Scroll to Top (optional) ───────────────────────── */
.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  z-index: 999;
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.scroll-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* ── 25. Focus / Accessibility ──────────────────────────── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 3px;
}

/* ── 26. Responsive ─────────────────────────────────────── */

/* Tablet & Small Desktop (1024px) */
@media (max-width: 1024px) {
  .welcome-grid  { grid-template-columns: 1fr; }
  .welcome-img   { height: 320px; object-position: top center; }
  .kontak-grid   { grid-template-columns: 1fr; }
  .footer-grid   { grid-template-columns: 1fr 1fr; }
  .profil-grid   { grid-template-columns: 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  .visimisi-grid { grid-template-columns: 1fr; }
  
  .hero .container { gap: 40px; }
  .hero-content h1 { font-size: 2.6rem; }
  
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Mobile Landscape & Tablet Portrait (768px) */
@media (max-width: 768px) {
  :root { --section-padding: 60px 0; }

  /* Hero */
  .hero { padding: 140px 0 90px; }
  .hero .container { 
    align-items: center;
    text-align: center; 
  }
  .hero-content h1 { font-size: 2.2rem; }
  .hero-content p { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }

  /* Section Headers */
  .section-header h2 { font-size: 1.8rem; }
  .section-header p { font-size: 0.95rem; }

  /* Grids */
  .news-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .keunggulan-grid { grid-template-columns: 1fr; }

  /* Navbar Mobile */
  .navbar {
    top: 0;
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(18px);
    padding: 20px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
  }

  .nav-menu.active { display: flex; }
  .nav-link { 
    width: 100%; 
    padding: 12px 16px;
    border-radius: var(--border-radius-sm);
  }
  .menu-toggle { display: flex; }

  /* Forms & Cards */
  .login-card { padding: 36px 28px; }
  .detail-main { padding: 28px 20px; }
  .contact-form { padding: 28px 20px; }
  .kontak-info-card { padding: 24px; }
  .sidebar-box { padding: 20px; }
  
  /* Page Hero */
  .profile-page-hero { padding: 60px 0 40px; }
  .profile-page-hero h1 { font-size: 1.9rem; }
  
  /* Detail */
  .detail-title { font-size: 1.6rem; }
  .detail-meta { flex-direction: column; gap: 8px; }
  
  /* Buttons */
  .btn { padding: 11px 22px; font-size: 0.9rem; }
  .btn-sm { padding: 8px 16px; font-size: 0.85rem; }
}

/* Mobile Portrait (480px) */
@media (max-width: 480px) {
  .container { padding-left: 16px; padding-right: 16px; }
  
  /* Hero */
  .hero { padding: 110px 0 60px; }
  .hero-content h1 { font-size: 1.8rem; line-height: 1.2; }
  .hero-content p { font-size: 0.95rem; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  
  /* Section Headers */
  .section-header h2 { font-size: 1.5rem; }
  .section-header { margin-bottom: 40px; }
  
  /* Grids */
  .gallery-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  
  /* Navbar */
  .navbar .logo { font-size: 0.95rem; }
  .navbar .logo i { width: 38px; height: 38px; font-size: 1.4rem; }
  .navbar .logo .logo-img { width: 38px; height: 38px; padding: 3px; border-radius: 8px; }
  .navbar .container { height: 64px; }
  .nav-menu { top: 64px; }
  
  /* Cards */
  .card { padding: 28px 20px; }
  .news-card { margin-bottom: 20px; }
  .welcome-img { height: auto; max-height: 380px; object-position: top center; }
  
  /* Forms */
  .form-control { font-size: 16px; } /* Prevent zoom on iOS */
  .search-filter-bar { padding: 16px; flex-direction: column; }
  .search-filter-bar .form-group { width: 100%; min-width: auto; }
  
  /* Footer */
  .footer { padding: 50px 0 0; }
  .footer-grid { gap: 24px; }
  .footer-bottom { font-size: 0.8rem; padding: 14px 0; }
  
  /* Detail Page */
  .detail-main { padding: 20px 16px; }
  .detail-title { font-size: 1.4rem; }
  .detail-content { font-size: 0.95rem; }
  
  /* Pagination */
  .pagination { gap: 6px; }
  .pagination a, .pagination span { width: 36px; height: 36px; font-size: 0.85rem; }
  
  /* Scroll to Top */
  .scroll-top { 
    width: 40px; 
    height: 40px; 
    bottom: 20px; 
    right: 20px;
    font-size: 1rem;
  }
  
  /* Profile Page */
  .profile-page-hero h1 { font-size: 1.6rem; }
  .profile-page-hero p { font-size: 0.9rem; }
  
  /* Kontak */
  .kontak-info-item { flex-direction: column; text-align: center; }
  .kontak-info-item i { margin: 0 auto; }
  
  /* Visi Misi */
  .visi-card, .misi-card { padding: 24px 20px; }
  
  /* Welcome Section */
  .welcome-content h3 { font-size: 0.8rem; }
  .welcome-title { font-size: 1.6rem; }
  .welcome-text p { font-size: 0.95rem; padding: 16px; }
}

/* ── Extra Variables ────────────────────────────────────── */
:root {
  --bg-tint: rgba(45, 106, 79, 0.08);
  --danger:  #dc3545;
  --border-color-solid: #e5e7eb;
}

/* ── Page Hero (Profil, Informasi, Galeri, Kontak) ──────── */
.profile-page-hero {
  padding: 140px 0 75px;
  background-image: 
    radial-gradient(at 0% 0%, rgba(217, 119, 6, 0.2) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(13, 148, 136, 0.2) 0px, transparent 50%),
    linear-gradient(135deg, var(--primary-deep) 0%, var(--primary-dark) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.profile-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.01) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(circle at 50% 50%, black, transparent 90%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black, transparent 90%);
  pointer-events: none;
}

.profile-page-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}

.profile-page-hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.78);
  max-width: 580px;
  margin: 0 auto;
}

/* ── History Card (Profil) ──────────────────────────────── */
.history-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 44px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  max-width: 860px;
  margin: 0 auto;
  line-height: 1.85;
  color: var(--text-body);
}

.history-card p {
  margin-bottom: 16px;
  font-size: 1rem;
}

/* ── Visi Misi Grid ─────────────────────────────────────── */
.visimisi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.visi-card,
.misi-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 38px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  height: 100%;
}

.visi-card { border-top: 4px solid var(--primary-color); }
.misi-card { border-top: 4px solid var(--accent-color); }

.visi-card h3,
.misi-card h3 {
  font-size: 1.25rem;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.visi-card h3 i { color: var(--primary-color); }
.misi-card h3 i { color: var(--accent-color); }

.visi-text {
  font-size: 1.05rem;
  color: var(--text-body);
  font-style: italic;
  line-height: 1.8;
  border-left: 4px solid var(--primary-color);
  padding-left: 18px;
  background: var(--bg-light);
  padding: 18px 18px 18px 22px;
  border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
}

.misi-list {
  list-style: none;
  padding: 0;
}

.misi-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.96rem;
  color: var(--text-body);
}

.misi-list li:last-child { border-bottom: none; }

.misi-list li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--accent-color);
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 3px;
}

.facility-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.facility-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.facility-icon-area {
  height: 180px;
  background-color: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--primary-color);
  transition: var(--transition);
}

.facility-card:hover .facility-icon-area {
  background-color: var(--primary-color);
  color: var(--white);
}

.facility-body {
  padding: 25px;
  flex-grow: 1;
}

.facility-body h4 {
  color: var(--primary-color);
  margin-bottom: 10px;
  font-size: 1.15rem;
  transition: var(--transition);
}

.facility-card:hover .facility-body h4 {
  color: var(--primary-light);
}

.facility-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ── Pagination: page-item alias ───────────────────────── */
.page-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--border-radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  border: 1.5px solid var(--border-color);
  background: var(--white);
  color: var(--text-body);
  transition: var(--transition);
}

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

/* ── Detail Page Layout ─────────────────────────────────── */
.detail-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  align-items: start;
}

.detail-main {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 44px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.badge-primary {
  background: rgba(45,106,79,0.12);
  color: var(--primary-color);
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 14px;
}

.detail-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 16px;
}

.detail-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.87rem;
  color: var(--text-light);
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.detail-img-wrapper {
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-bottom: 32px;
}

.detail-img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  display: block;
}

.detail-content {
  font-size: 1.02rem;
  color: var(--text-body);
  line-height: 1.9;
}

.detail-content p { margin-bottom: 18px; }

/* ── Sidebar ────────────────────────────────────────────── */
.detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-box {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.sidebar-box h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent-color);
}

.recent-list { list-style: none; }

.recent-item {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  align-items: flex-start;
}

.recent-item:last-child { border-bottom: none; }

.recent-item-img {
  width: 64px;
  height: 52px;
  object-fit: cover;
  border-radius: var(--border-radius-sm);
  flex-shrink: 0;
}

.recent-item-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.4;
  display: block;
  margin-bottom: 5px;
  transition: var(--transition);
}

.recent-item-title:hover { color: var(--primary-color); }

.recent-item-date {
  font-size: 0.78rem;
  color: var(--text-light);
}

/* ── Detail Sidebar ─────────────────────────────────────── */
.detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-box {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.sidebar-box h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-color);
}

.recent-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.recent-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  align-items: flex-start;
}

.recent-item:last-child {
  border-bottom: none;
}

.recent-item-img {
  width: 60px;
  height: 60px;
  border-radius: var(--border-radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.recent-item-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.4;
  display: block;
  margin-bottom: 4px;
  transition: var(--transition);
}

.recent-item-title:hover {
  color: var(--primary-color);
}

.recent-item-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── Detail Content Styling ─────────────────────────────── */
.detail-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 16px;
}

.detail-meta {
  display: flex;
  gap: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.detail-img-wrapper {
  margin-bottom: 32px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

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

.detail-content {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--text-body);
}

.detail-content p {
  margin-bottom: 18px;
}

.detail-content p:last-child {
  margin-bottom: 0;
}


/* ============================================================
   COUNTER STATISTIK
   ============================================================ */
.counter-section {
  background: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary-dark) 50%, var(--primary-color) 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.counter-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217,119,6,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.counter-section::after {
  content: '';
  position: absolute;
  bottom: -40%;
  right: -5%;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13,148,136,0.1) 0%, transparent 70%);
  pointer-events: none;
}

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

.counter-item {
  text-align: center;
  color: var(--white);
  padding: 35px 24px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.counter-item:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.25);
  border-color: rgba(255, 255, 255, 0.15);
}

.counter-icon {
  font-size: 2.6rem;
  color: var(--accent-color);
  margin-bottom: 16px;
  text-shadow: 0 4px 15px rgba(217, 119, 6, 0.3);
  transition: var(--transition);
}

.counter-item:hover .counter-icon {
  transform: scale(1.1);
  color: var(--white);
}

.counter-number {
  font-family: 'Outfit', sans-serif;
  font-size: 3.4rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 10px;
  text-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.counter-label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* Counter Responsive */
@media (max-width: 1024px) {
  .counter-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 768px) {
  .counter-number { font-size: 2.6rem; }
  .counter-item { padding: 25px 16px; }
}

@media (max-width: 480px) {
  .counter-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .counter-number { font-size: 2.2rem; }
  .counter-icon { font-size: 2rem; }
  .counter-section { padding: 60px 0; }
}

/* ============================================================
   DARK MODE TOGGLE BUTTON
   ============================================================ */
.dark-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--border-color);
  background: var(--bg-light);
  color: var(--text-body);
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
  margin-left: 8px;
}

.dark-toggle:hover {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
  transform: rotate(20deg);
}

/* ============================================================
   DARK MODE VARIABLES & OVERRIDES
   ============================================================ */
[data-theme="dark"] {
  --bg-body:        #050c0a;
  --bg-light:       #0a1713;
  --bg-section-alt: #0f221c;
  --white:          #0a1713;
  --text-dark:      #f0fdfa;
  --text-body:      #cbdcd8;
  --text-muted:     #7ea097;
  --text-light:     #4d6e64;
  --border-color:   rgba(20, 184, 166, 0.08);
  --bg-tint:        rgba(13, 148, 136, 0.15);
}

[data-theme="dark"] body {
  background-color: var(--bg-body);
  color: var(--text-body);
}

/* Navbar dark */
[data-theme="dark"] .navbar {
  background: rgba(11, 15, 25, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
}

[data-theme="dark"] .nav-link {
  color: var(--text-body);
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
  background: rgba(13, 148, 136, 0.12);
  color: var(--accent-color);
}

[data-theme="dark"] .navbar .logo {
  color: #ccfbf1;
}

[data-theme="dark"] .navbar .logo i {
  background: rgba(13, 148, 136, 0.15);
}

/* Hero dark */
[data-theme="dark"] .hero {
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.85) 0%, rgba(17, 94, 89, 0.70) 100%),
              url('../../img/depan-sekolah.jpeg') center center / cover no-repeat;
}

[data-theme="dark"] .hero-content h1 {
  color: #ccfbf1;
}

/* Cards dark */
[data-theme="dark"] .card,
[data-theme="dark"] .news-card,
[data-theme="dark"] .gallery-item,
[data-theme="dark"] .kontak-info-card,
[data-theme="dark"] .contact-form,
[data-theme="dark"] .sidebar-box,
[data-theme="dark"] .detail-main,
[data-theme="dark"] .visi-card,
[data-theme="dark"] .misi-card,
[data-theme="dark"] .history-card,
[data-theme="dark"] .facility-card {
  background: #111827;
  border-color: rgba(255,255,255,0.08);
}

[data-theme="dark"] .news-title,
[data-theme="dark"] .card h4,
[data-theme="dark"] .keunggulan-card h4,
[data-theme="dark"] .facility-body h4 {
  color: #ccfbf1;
}

[data-theme="dark"] .keunggulan-card:hover h4,
[data-theme="dark"] .facility-card:hover .facility-body h4 {
  color: #ffffff;
}

/* Welcome section dark */
[data-theme="dark"] .welcome-section {
  background: var(--bg-light);
}

[data-theme="dark"] .welcome-text p {
  background: #0f172a;
  color: var(--text-body);
}

/* Section backgrounds dark */
[data-theme="dark"] .news-section {
  background: var(--bg-body);
}

[data-theme="dark"] .gallery-section {
  background: var(--bg-light);
}

/* Form controls dark */
[data-theme="dark"] .form-control {
  background: #06120e;
  border-color: rgba(20, 184, 166, 0.15);
  color: #ccfbf1;
}

[data-theme="dark"] .form-control:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.2);
}

/* Footer dark */
[data-theme="dark"] .footer {
  background: linear-gradient(135deg, #030a16 0%, #09111e) 100%;
}

/* Page hero dark */
[data-theme="dark"] .profile-page-hero {
  background: linear-gradient(135deg, #022c22 0%, #0f766e 100%);
}

/* Section header dark */
[data-theme="dark"] .section-header h2 {
  color: #ccfbf1;
}

/* Dark toggle icon */
[data-theme="dark"] .dark-toggle {
  background: rgba(13, 148, 136, 0.1);
  border-color: rgba(13, 148, 136, 0.3);
  color: var(--accent-color);
}

/* Mobile nav dark */
[data-theme="dark"] .nav-menu {
  background: rgba(5, 12, 10, 0.98);
}

/* Profil page dark */
[data-theme="dark"] .profil-section {
  background: var(--bg-light);
}

[data-theme="dark"] .info-list li {
  border-bottom-color: var(--border-color);
  color: var(--text-body);
}

/* ============================================================
   CAPSULE TABS & MODERN SEARCH
   ============================================================ */
.category-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.category-tab {
  padding: 10px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 999px;
  background: var(--bg-light);
  color: var(--text-muted);
  border: 1.5px solid var(--border-color);
  transition: var(--transition);
  cursor: pointer;
}

.category-tab:hover {
  background: var(--bg-section-alt);
  color: var(--primary-color);
  border-color: var(--accent-color);
}

.category-tab.active {
  background: var(--primary-color);
  color: var(--white) !important;
  border-color: var(--primary-color);
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.2);
}

.search-form-group {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 420px;
}

.search-input-wrapper {
  position: relative;
  flex-grow: 1;
}

.search-input-wrapper .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 0.95rem;
  pointer-events: none;
}

.form-control-search {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background: var(--bg-light);
  outline: none;
  transition: var(--transition);
}

.form-control-search:focus {
  border-color: var(--primary-color);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.search-btn {
  padding: 12px 24px !important;
  font-size: 0.9rem !important;
  border-radius: var(--border-radius) !important;
  box-shadow: none !important;
}

[data-theme="dark"] .category-tab {
  background: var(--bg-light);
  border-color: var(--border-color);
  color: var(--text-muted);
}

[data-theme="dark"] .category-tab:hover {
  background: var(--bg-section-alt);
  color: var(--accent-color);
}

[data-theme="dark"] .category-tab.active {
  background: var(--primary-color);
  color: var(--white) !important;
  border-color: var(--primary-color);
}

[data-theme="dark"] .form-control-search {
  background: #06120e;
  border-color: rgba(20, 184, 166, 0.15);
  color: #ccfbf1;
}
