/* ========================================
   AL-HARAMAIN PESANTREN — DESIGN SYSTEM
   Premium Islamic Landing Page v2.0
   ======================================== */

/* === GOOGLE FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

/* === CSS CUSTOM PROPERTIES === */
:root {
  /* Brand Colors */
  --primary: #064E3B;
  --primary-light: #065F46;
  --primary-dark: #022c22;
  --primary-950: #011d17;
  --primary-rgb: 6, 78, 59;

  --secondary: #D97706;
  --secondary-light: #F59E0B;
  --secondary-dark: #B45309;
  --secondary-rgb: 217, 119, 6;

  /* Neutral Palette */
  --white: #FFFFFF;
  --off-white: #F8FAF9;
  --cream: #F0FDF4;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;

  /* Semantic */
  --text-primary: #0F1A14;
  --text-secondary: #3D5A4C;
  --text-muted: #6B8C7A;
  --text-light: #FFFFFF;
  --text-on-gold: #422006;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-gold: 0 4px 14px rgba(217, 119, 6, 0.3);
  --shadow-green: 0 4px 14px rgba(6, 78, 59, 0.2);

  /* Spacing */
  --section-padding: 100px 0;
  --container-max: 1200px;
  --container-padding: 0 24px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

/* === RESET & BASE === */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

button {
  border: none;
  cursor: pointer;
  font-family: inherit;
  background: transparent;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--container-padding);
}

/* === ISLAMIC ORNAMENT DIVIDER (Reusable) === */
.ornament-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

.ornament-divider::before,
.ornament-divider::after {
  content: '';
  height: 1px;
  width: 60px;
  background: linear-gradient(90deg, transparent, var(--secondary), transparent);
}

.ornament-divider i {
  color: var(--secondary);
  font-size: 1.2rem;
  opacity: 0.7;
}

/* === ISLAMIC GEOMETRIC DECORATIVE PATTERN (CSS Only) === */
.islamic-pattern {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  opacity: 0.03;
  background-image:
    radial-gradient(circle at 25% 25%, var(--secondary) 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, var(--secondary) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, var(--primary) 1px, transparent 1px);
  background-size: 60px 60px, 60px 60px, 30px 30px;
}

/* Arabesque Corner Ornament */
.arabesque-corner {
  position: absolute;
  width: 120px;
  height: 120px;
  pointer-events: none;
  opacity: 0.07;
}

.arabesque-corner svg {
  width: 100%;
  height: 100%;
}

.arabesque-corner.top-left {
  top: 0;
  left: 0;
}

.arabesque-corner.top-right {
  top: 0;
  right: 0;
  transform: scaleX(-1);
}

.arabesque-corner.bottom-left {
  bottom: 0;
  left: 0;
  transform: scaleY(-1);
}

.arabesque-corner.bottom-right {
  bottom: 0;
  right: 0;
  transform: scale(-1);
}

/* === INTERSECTION OBSERVER ANIMATIONS === */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays for grid items */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* === SECTION LABEL (COMMON) === */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--secondary);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--secondary);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
  line-height: 1.15;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.8;
}

/* =============================================
   NAVBAR / HEADER — Glassmorphism
   ============================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 14px 0;
  transition: var(--transition-base);
}

.navbar.scrolled {
  background: rgba(6, 78, 59, 0.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

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

.navbar-brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  object-fit: cover;
  object-position: center top;
}

.navbar-brand-text {
  display: flex;
  flex-direction: column;
}

.navbar-brand-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.navbar-brand-sub {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 400;
  letter-spacing: 0.5px;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar-nav a {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  transition: var(--transition-base);
  position: relative;
}

.navbar-nav a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.navbar-nav a.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.15);
}

.nav-cta {
  background: var(--secondary) !important;
  color: var(--white) !important;
  font-weight: 600 !important;
  padding: 10px 24px !important;
  box-shadow: var(--shadow-gold);
}

.nav-cta:hover {
  background: var(--secondary-light) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.4);
}

/* Hamburger */
.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.navbar-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition-base);
  display: block;
}

.navbar-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggle.active span:nth-child(2) {
  opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* =============================================
   HERO SECTION — with Background Image
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding-top: 100px;
  padding-bottom: 40px;
}

/* HERO BACKGROUND IMAGE */
.hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.35) contrast(1.15) saturate(0.8);
}

/* Gradient overlays on top of image */
.hero-bg-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background:
    linear-gradient(165deg,
      rgba(1, 29, 23, 0.92) 0%,
      rgba(2, 44, 34, 0.85) 25%,
      rgba(6, 78, 59, 0.75) 50%,
      rgba(6, 95, 70, 0.8) 75%,
      rgba(1, 29, 23, 0.9) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background-image:
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L30 60M0 30L60 30' stroke='%23ffffff' stroke-opacity='0.015' stroke-width='1'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* Floating Islamic geometric shapes */
.hero-float-shape {
  position: absolute;
  border: 1px solid rgba(217, 119, 6, 0.15);
  border-radius: 2px;
  pointer-events: none;
  animation: floatSpin 20s linear infinite;
  z-index: 3;
}

.hero-float-shape:nth-child(1) {
  top: 15%;
  right: 10%;
  width: 100px;
  height: 100px;
  transform: rotate(45deg);
}

.hero-float-shape:nth-child(2) {
  top: 55%;
  left: 5%;
  width: 60px;
  height: 60px;
  transform: rotate(30deg);
  animation-duration: 25s;
  animation-direction: reverse;
}

.hero-float-shape:nth-child(3) {
  bottom: 25%;
  right: 22%;
  width: 40px;
  height: 40px;
  transform: rotate(60deg);
  animation-duration: 15s;
}

/* Additional ornament star shapes */
.hero-ornament-star {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  opacity: 0.08;
}

.hero-ornament-star:nth-child(5) {
  top: 20%;
  left: 8%;
  width: 80px;
  height: 80px;
}

.hero-ornament-star:nth-child(6) {
  bottom: 30%;
  right: 8%;
  width: 60px;
  height: 60px;
}

@keyframes floatSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.hero .container {
  position: relative;
  z-index: 5;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(217, 119, 6, 0.15);
  border: 1px solid rgba(217, 119, 6, 0.3);
  color: var(--secondary-light);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  margin-bottom: 28px;
  animation: fadeInDown 0.8s ease;
}

.hero-badge i {
  font-size: 1rem;
}

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

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.1;
  animation: fadeInUp 0.8s ease 0.2s both;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.3);
}

.hero-title span {
  background: linear-gradient(135deg, var(--secondary-light), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 2.5vw, 1.4rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease 0.35s both;
  letter-spacing: 1px;
}

.hero-description {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.55);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.8;
  animation: fadeInUp 0.8s ease 0.45s both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-cta-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.55s both;
}

/* === BUTTONS (GLOBAL) === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 16px 32px;
  border-radius: var(--radius-full);
  transition: var(--transition-base);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::after {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  color: var(--white);
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(217, 119, 6, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-3px);
}

.btn-green {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  box-shadow: var(--shadow-green);
}

.btn-green:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(6, 78, 59, 0.35);
}

.btn i {
  font-size: 1.15em;
  position: relative;
  z-index: 1;
}

.btn span {
  position: relative;
  z-index: 1;
}

/* === HERO STATS BAR — NOT absolute, flows naturally === */
.hero-stats {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 940px;
  margin: 48px auto 0;
  padding: 0 24px;
  animation: fadeInUp 0.8s ease 0.65s both;
}

.hero-stats-inner {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-xl);
  padding: 28px 36px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  overflow: hidden;
}

.hero-stats-inner::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary), var(--secondary-light), var(--secondary));
}

.stat-item {
  text-align: center;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -12px;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-size: 1.3rem;
  background: rgba(217, 119, 6, 0.15);
  color: var(--secondary-light);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
}

/* Mobile responsive for stats */
@media (max-width: 900px) {
  .hero-stats-inner {
    grid-template-columns: repeat(2, 1fr);
    padding: 20px;
    gap: 20px;
  }
  .stat-item:nth-child(2)::after {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-stats-inner {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 16px;
  }
  .stat-item::after {
    display: none; /* hide vertical lines on mobile column */
  }
}

/* =============================================
   ABOUT SECTION
   ============================================= */
.about {
  padding: 100px 0;
  background: var(--off-white);
  position: relative;
  overflow: hidden;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
}

.about-image-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.about-image-frame img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  filter: brightness(1.02) contrast(1.05);
}

.about-image-badge {
  position: absolute;
  bottom: -16px;
  right: -16px;
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  color: var(--white);
  padding: 16px 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-gold);
  z-index: 2;
}

.about-image-badge .badge-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.2;
}

.about-image-badge .badge-sub {
  font-size: 0.75rem;
  opacity: 0.85;
  font-weight: 500;
}

/* Decorative corner accent */
.about-image-wrapper::before {
  content: '';
  position: absolute;
  top: -12px;
  left: -12px;
  width: 80px;
  height: 80px;
  border-top: 4px solid var(--secondary);
  border-left: 4px solid var(--secondary);
  border-radius: 4px 0 0 0;
  z-index: 1;
  opacity: 0.6;
}

/* Decorative bottom right accent */
.about-image-wrapper::after {
  content: '';
  position: absolute;
  bottom: -28px;
  left: 20px;
  width: 60px;
  height: 60px;
  border-bottom: 4px solid var(--primary);
  border-right: 4px solid var(--primary);
  border-radius: 0 0 4px 0;
  z-index: 1;
  opacity: 0.4;
}

.about-content .section-subtitle {
  margin-bottom: 28px;
}

.about-highlight {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  border: 1px solid var(--gray-100);
  transition: var(--transition-base);
}

.about-highlight:hover {
  transform: translateX(8px);
  border-color: var(--secondary);
  box-shadow: var(--shadow-md);
}

.about-highlight-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.about-highlight h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.about-highlight p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* =============================================
   FOUNDER QUOTE SECTION
   ============================================= */
.founder-quote {
  padding: 100px 0;
  background: linear-gradient(165deg, var(--primary-950) 0%, var(--primary-dark) 50%, var(--primary) 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.founder-quote .islamic-pattern {
  opacity: 0.04;
}

.founder-quote .container {
  position: relative;
  z-index: 2;
  max-width: 860px;
}

/* Large decorative quote mark */
.founder-quote-mark {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 7rem;
  line-height: 1;
  color: var(--secondary);
  opacity: 0.2;
  margin-bottom: -32px;
  display: block;
  user-select: none;
}

.founder-quote blockquote {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  font-weight: 400;
  font-style: italic;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.9;
  margin-bottom: 40px;
  position: relative;
  padding: 0 16px;
}

/* Ornamental line under quote */
.founder-quote-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary), var(--secondary-light));
  border-radius: 2px;
  margin: 0 auto 32px;
}

/* Founder photo & info */
.founder-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.founder-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(217, 119, 6, 0.55);
  box-shadow: 0 0 0 8px rgba(217, 119, 6, 0.1), 0 12px 40px rgba(0, 0, 0, 0.35);
}

.founder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.05) contrast(1.05);
}

.founder-names {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.founder-names h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}

.founder-names .founder-title {
  font-size: 0.82rem;
  color: var(--secondary-light);
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 768px) {
  .founder-quote {
    padding: 70px 0;
  }

  .founder-quote blockquote {
    font-size: 1rem;
    line-height: 1.8;
    padding: 0 8px;
  }

  .founder-quote-mark {
    font-size: 5rem;
    margin-bottom: -24px;
  }

  .founder-photo {
    width: 130px;
    height: 130px;
  }
}

@media (max-width: 480px) {
  .founder-quote {
    padding: 56px 0;
  }

  .founder-quote blockquote {
    font-size: 0.92rem;
  }

  .founder-photo {
    width: 110px;
    height: 110px;
  }

  .founder-names h4 {
    font-size: 0.95rem;
  }
}

/* =============================================
   PROGRAMS SECTION
   ============================================= */
.programs {
  padding: var(--section-padding);
  background: var(--white);
  position: relative;
  overflow: hidden;
}

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

.programs .section-subtitle {
  margin: 0 auto;
}

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

.program-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  border: 1px solid var(--gray-200);
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.program-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.program-card:hover::before {
  transform: scaleX(1);
}

.program-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.program-card-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 24px;
  transition: var(--transition-base);
}

.program-card:nth-child(1) .program-card-icon {
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.1), rgba(6, 95, 70, 0.15));
  color: var(--primary);
}

.program-card:nth-child(2) .program-card-icon {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.1), rgba(245, 158, 11, 0.15));
  color: var(--secondary);
}

.program-card:nth-child(3) .program-card-icon {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(99, 102, 241, 0.15));
  color: #3B82F6;
}

.program-card:hover .program-card-icon {
  transform: scale(1.1) rotate(-5deg);
}

.program-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.program-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.program-card-features {
  list-style: none;
}

.program-card-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 6px 0;
}

.program-card-features li i {
  color: var(--primary);
  font-size: 0.9rem;
}

/* =============================================
   KEUNGGULAN (ADVANTAGES) SECTION
   ============================================= */
.advantages {
  padding: var(--section-padding);
  background: var(--primary-950);
  position: relative;
  overflow: hidden;
}

.advantages::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(ellipse at center right, rgba(6, 78, 59, 0.3) 0%, transparent 70%);
  pointer-events: none;
}

.advantages .section-label {
  color: var(--secondary-light);
}

.advantages .section-title {
  color: var(--white);
}

.advantages .section-subtitle {
  color: rgba(255, 255, 255, 0.6);
}

.advantages-header {
  text-align: center;
  margin-bottom: 60px;
}

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

.advantage-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  transition: var(--transition-base);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.advantage-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.05) 0%, transparent 50%);
  opacity: 0;
  transition: var(--transition-base);
  pointer-events: none;
}

.advantage-card:hover {
  border-color: rgba(217, 119, 6, 0.2);
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.06);
}

.advantage-card:hover::after {
  opacity: 1;
}

.advantage-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.advantage-card-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  color: var(--white);
  box-shadow: var(--shadow-gold);
}

.advantage-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
}

.advantage-card h3 span {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
}

.advantage-card p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.75;
  margin-bottom: 20px;
}

.advantage-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.advantage-feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  color: rgba(255, 255, 255, 0.7);
}

.advantage-feature-tag i {
  color: var(--secondary-light);
  font-size: 0.75rem;
}

/* =============================================
   FASILITAS (FACILITIES) SECTION — CSS GRID STRIP
   ============================================= */
.facilities {
  padding: var(--section-padding);
  background: var(--off-white);
  position: relative;
  overflow: hidden;
}

.facilities-header {
  text-align: center;
  margin-bottom: 56px;
}

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

.facility-card {
  position: relative;
  height: 280px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-base);
}

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

.facility-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  filter: brightness(0.95) contrast(1.05);
}

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

.facility-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 20px;
  background: linear-gradient(to top, rgba(1, 29, 23, 0.92) 0%, rgba(1, 29, 23, 0.5) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 65%;
}

.facility-card-overlay i {
  font-size: 1.4rem;
  color: var(--secondary-light);
  margin-bottom: 8px;
}

.facility-card-overlay h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 4px;
}

.facility-card-overlay p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
}

/* =============================================
   GALERI KEGIATAN — Photo Strip Layout
   ============================================= */
.gallery {
  padding: 80px 0 100px;
  background: var(--white);
  overflow: hidden;
}

.gallery-header {
  text-align: center;
  margin-bottom: 48px;
}

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}

.gallery-item {
  height: 220px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  filter: brightness(0.95) contrast(1.03);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(6, 78, 59, 0.4) 0%, transparent 50%);
  opacity: 0;
  transition: var(--transition-base);
}

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

/* =============================================
   BIAYA (COST) SECTION
   ============================================= */
.biaya {
  padding: var(--section-padding);
  background: var(--off-white);
  position: relative;
  overflow: hidden;
}

.biaya-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.biaya-info h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--primary);
}

.biaya-info p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 24px;
}

.biaya-highlight-box {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  color: var(--white);
}

.biaya-highlight-box h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--secondary-light);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.biaya-highlight-box .price {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
}

.biaya-highlight-box .price-note {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 4px;
}

.biaya-highlight-box ul {
  margin-top: 16px;
}

.biaya-highlight-box ul li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.85);
  padding: 4px 0;
}

.biaya-highlight-box ul li i {
  color: var(--secondary-light);
  font-size: 0.85rem;
}

.biaya-table-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--gray-100);
}

.biaya-table-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  padding: 24px 32px;
  color: var(--white);
}

.biaya-table-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.biaya-table-header p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.biaya-table {
  width: 100%;
  border-collapse: collapse;
}

.biaya-table th {
  text-align: left;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  padding: 16px 28px;
  border-bottom: 2px solid var(--gray-100);
  background: var(--gray-50);
}

.biaya-table td {
  padding: 16px 28px;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.92rem;
  color: var(--text-primary);
}

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

.biaya-table tr:hover td {
  background: var(--cream);
}

.biaya-table .amount {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary);
}

.biaya-table .free-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(6, 78, 59, 0.08);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.biaya-note {
  padding: 20px 28px;
  background: var(--cream);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.biaya-note i {
  color: var(--secondary);
  font-size: 1rem;
  flex-shrink: 0;
}

/* =============================================
   PPDB BANNER / CTA SECTION
   ============================================= */
.ppdb-cta {
  padding: 100px 0;
  background: linear-gradient(165deg, var(--primary-950) 0%, var(--primary-dark) 50%, var(--primary) 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.ppdb-cta .islamic-pattern {
  opacity: 0.04;
}

.ppdb-cta .container {
  position: relative;
  z-index: 2;
}

.ppdb-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(217, 119, 6, 0.15);
  border: 1px solid rgba(217, 119, 6, 0.3);
  color: var(--secondary-light);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
}

.ppdb-cta h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
}

.ppdb-cta h2 span {
  background: linear-gradient(135deg, var(--secondary-light), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ppdb-cta p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.ppdb-cta .hero-cta-group {
  animation: none;
}

.ppdb-info-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.ppdb-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.ppdb-info-item i {
  font-size: 1.2rem;
  color: var(--secondary-light);
}

.ppdb-info-item strong {
  color: var(--white);
  font-weight: 600;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--primary-950);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 60px 0 0;
}

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

.footer-brand img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin-bottom: 16px;
}

.footer-brand h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.footer-brand .footer-yayasan {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}

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

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

.footer-col ul li a:hover {
  color: var(--secondary-light);
  transform: translateX(4px);
}

.footer-col ul li a i {
  font-size: 0.75rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-contact-item i {
  color: var(--secondary-light);
  font-size: 1rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-contact-item p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
}

.footer-contact-item a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact-item a:hover {
  color: var(--secondary-light);
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.05rem;
  transition: var(--transition-base);
}

.footer-social a:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.35);
}

.footer-bottom a {
  color: var(--secondary-light);
}

/* === FLOATING WHATSAPP BUTTON === */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.6rem;
  transition: var(--transition-spring);
  animation: waPulse 2s infinite;
}

.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
}

@keyframes waPulse {
  0% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6); }
  100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
}

/* === BACK TO TOP === */
.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 30px;
  z-index: 998;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition-base);
  box-shadow: var(--shadow-green);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-light);
  transform: translateY(-3px);
}

/* =============================================
   RESPONSIVE — MOBILE FIRST OPTIMIZATION
   ============================================= */

/* Tablet */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image-frame img {
    height: 350px;
  }

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

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

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

  .biaya-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .gallery-strip {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Mobile Large */
@media (max-width: 768px) {
  :root {
    --section-padding: 64px 0;
    --container-padding: 0 20px;
  }

  /* Navbar Mobile */
  .navbar-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    background: rgba(1, 29, 23, 0.85); /* Changed from solid color for glassmorphism */
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    -webkit-backface-visibility: hidden;
    flex-direction: column;
    padding: 100px 32px 40px;
    gap: 8px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    align-items: stretch;
    z-index: 999;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
  }

  .navbar-nav.open {
    right: 0;
  }

  .navbar-nav a {
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  /* Add touch interactions for mobile */
  .program-card:active {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
  }
  .advantage-card:active {
    border-color: rgba(217, 119, 6, 0.2);
    background: rgba(255, 255, 255, 0.06);
  }
  .facility-card:active img {
    transform: scale(1.05);
  }
  .btn:active {
    transform: scale(0.96);
  }

  .navbar-toggle {
    display: flex;
  }

  /* Hero Mobile */
  .hero {
    min-height: 100vh;
    min-height: 100dvh;
    padding-top: 90px;
    padding-bottom: 32px;
  }

  .hero .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-title {
    font-size: clamp(1.8rem, 7vw, 2.6rem);
  }

  .hero-tagline {
    font-size: 0.95rem;
    margin-bottom: 16px;
  }

  .hero-description {
    font-size: 0.9rem;
    margin-bottom: 28px;
    padding: 0 8px;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
    padding: 0 8px;
    gap: 12px;
  }

  .hero-float-shape { display: none; }
  .hero-ornament-star { display: none; }

  /* Stats Bar Mobile */
  .hero-stats {
    margin-top: 32px;
    padding: 0 8px;
  }

  .hero-stats-inner {
    grid-template-columns: repeat(2, 1fr);
    padding: 20px 16px;
    gap: 16px;
  }

  .stat-item:nth-child(2)::after {
    display: none;
  }

  .stat-number {
    font-size: 1.15rem;
  }

  .stat-label {
    font-size: 0.72rem;
  }

  .stat-icon {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
    margin-bottom: 8px;
  }

  /* About */
  .about {
    padding: 80px 0;
  }

  .about-image-wrapper::before, .about-image-wrapper::after { display: none; }

  .about-image-badge {
    right: 12px;
    bottom: -12px;
  }

  /* Programs */
  .programs-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Advantages */
  .advantages-grid {
    grid-template-columns: 1fr;
  }

  /* Facilities */
  .facilities-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .facility-card {
    height: 220px;
  }

  /* Gallery */
  .gallery-strip {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .gallery-item {
    height: 150px;
  }

  /* Biaya */
  .biaya-table th,
  .biaya-table td {
    padding: 14px 18px;
    font-size: 0.85rem;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .ppdb-info-row {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

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

/* Mobile Small */
@media (max-width: 480px) {
  :root {
    --container-padding: 0 16px;
  }

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

  .hero-badge {
    font-size: 0.68rem;
    padding: 8px 16px;
    letter-spacing: 1px;
  }

  .hero-tagline {
    font-size: 0.88rem;
  }

  .hero-description {
    font-size: 0.85rem;
    line-height: 1.7;
  }

  .hero-stats-inner {
    padding: 18px 14px;
    gap: 14px;
    border-radius: var(--radius-lg);
  }

  .stat-number {
    font-size: 1rem;
  }

  .stat-label {
    font-size: 0.68rem;
  }

  .stat-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
    margin-bottom: 6px;
  }

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

  .about-image-frame img {
    height: 240px;
  }

  .program-card {
    padding: 28px 20px;
  }

  .advantage-card {
    padding: 24px 18px;
  }

  .advantage-card-icon {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }

  .facilities-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .facility-card {
    height: 170px;
  }

  .gallery-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
  }

  .gallery-item {
    height: 130px;
  }

  .biaya-table-header {
    padding: 18px 20px;
  }

  .biaya-table th,
  .biaya-table td {
    padding: 12px 16px;
    font-size: 0.82rem;
  }

  .biaya-highlight-box .price {
    font-size: 1.6rem;
  }

  .ppdb-cta {
    padding: 70px 0;
  }

  .ppdb-cta h2 {
    font-size: 1.5rem;
    line-height: 1.3;
  }

  .wa-float {
    width: 52px;
    height: 52px;
    font-size: 1.3rem;
    bottom: 18px;
    right: 18px;
  }

  .back-to-top {
    bottom: 80px;
    right: 20px;
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .btn {
    padding: 14px 24px;
    font-size: 0.88rem;
  }

  .ornament-divider::before,
  .ornament-divider::after {
    width: 40px;
  }
}

/* Overlay for mobile menu */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-base);
}

.nav-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* === SCROLL PROGRESS BAR === */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  z-index: 1001;
  transition: width 0.1s linear;
  width: 0%;
}

/* === PRELOADER === */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-950);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-inner {
  text-align: center;
}

.preloader-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--secondary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.preloader-text {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* === SECTION ORNAMENTAL BORDER TOP (between sections) === */
.section-border-ornament {
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--secondary) 15%,
    var(--primary) 35%,
    var(--secondary) 50%,
    var(--primary) 65%,
    var(--secondary) 85%,
    transparent 100%);
  opacity: 0.15;
}

/* === HERO SLIDER === */
.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 100px;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.poster-bg img {
  filter: none !important;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-slider-indicators {
  display: none !important;
}

@media (max-width: 768px) {
  .hero-slider-indicators {
    top: 90px;
  }
}

.hero-slider-indicators .indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: var(--transition-base);
  padding: 0;
}

.hero-slider-indicators .indicator.active {
  background: var(--secondary);
  transform: scale(1.3);
}

/* === EKSKUL GRID === */
.advantage-card.full-width {
  grid-column: 1 / -1;
}

.ekskul-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
}

@media (max-width: 900px) {
  .ekskul-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .ekskul-grid {
    grid-template-columns: 1fr;
  }
  .ekskul-card {
    padding: 18px !important;
  }
  .ekskul-icon {
    width: 50px !important;
    height: 50px !important;
    font-size: 1.8rem !important;
    margin-bottom: 8px !important;
  }
  .ekskul-card h4 {
    font-size: 0.9rem !important;
  }
}

.ekskul-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition-base);
}

.ekskul-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(217, 119, 6, 0.3);
}

.ekskul-icon {
  font-size: 2.2rem;
  color: var(--secondary-light);
  margin-bottom: 12px;
  background: rgba(217, 119, 6, 0.1);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.ekskul-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin: 0;
}

/* =============================================
   LOCATION SECTION — Google Maps Embed
   ============================================= */
.location {
  padding: var(--section-padding);
  background: var(--off-white);
  position: relative;
}

.location-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: start;
}

.location-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: relative;
}

.location-map iframe {
  display: block;
  width: 100%;
  min-height: 450px;
}

.location-info-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-100);
}

.location-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-100);
}

.location-info-item:last-of-type {
  border-bottom: none;
}

.location-info-item i {
  font-size: 1.4rem;
  color: var(--primary);
  background: var(--cream);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.location-info-item h4 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.location-info-item p {
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.6;
}

.location-info-item a {
  color: var(--primary);
  font-weight: 500;
}

.location-info-item a:hover {
  color: var(--secondary);
}

@media (max-width: 768px) {
  .location-wrapper {
    grid-template-columns: 1fr;
  }

  .location-map iframe {
    min-height: 300px;
  }

  .location-info-card {
    padding: 24px;
  }
}
