/* =====================================================
   RAMA Tuitions – Premium Landing Page Stylesheet
   ===================================================== */

/* ---------- CSS Custom Properties / Design Tokens ---------- */
:root {
  /* Brand Colors */
  --primary: #27AE60;
  --primary-dark: #1E8449;
  --primary-light: #2ECC71;
  --primary-glow: rgba(39, 174, 96, 0.25);
  --accent: #FFD84D;
  --accent-dark: #F0C929;
  --accent-glow: rgba(255, 216, 77, 0.30);

  /* Backgrounds */
  --bg-mint: #E8F8F1;
  --bg-white: #FFFFFF;
  --bg-light: #F5FBF8;
  --bg-dark: #0D2818;
  --bg-footer: #102A1B;

  /* Text */
  --text-dark: #1C1C1C;
  --text-body: #3D3D3D;
  --text-muted: #6B7280;
  --text-light: #9CA3AF;
  --text-white: #FFFFFF;

  /* Fonts */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', 'Open Sans', sans-serif;
  --font-accent: 'Nunito', sans-serif;

  /* Spacing */
  --section-pad: 100px 0;
  --container-max: 1200px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.10);
  --shadow-xl: 0 16px 60px rgba(0, 0, 0, 0.12);
  --shadow-card: 0 4px 24px rgba(39, 174, 96, 0.08);
  --shadow-card-hover: 0 12px 40px rgba(39, 174, 96, 0.16);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration: 0.35s;
  --duration-slow: 0.6s;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--bg-white);
  line-height: 1.7;
  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: color var(--duration) var(--ease);
}

ul {
  list-style: none;
}

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

/* ---------- Utility ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: var(--bg-mint);
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 16px;
  position: relative;
}

.section-title span {
  color: var(--primary);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
}

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

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

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

.reveal-scale {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), transparent);
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
}

.btn:hover::after {
  opacity: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--text-white);
  box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(39, 174, 96, 0.35);
}

.btn-secondary {
  background: var(--bg-white);
  color: var(--primary-dark);
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-mint);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--text-dark);
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 216, 77, 0.45);
}

/* =====================================================
   NAVIGATION
   ===================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(39, 174, 96, 0.08);
  transition: all var(--duration) var(--ease);
  padding: 12px 0;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  padding: 8px 0;
}

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

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

.nav-logo img {
  height: 44px;
  width: auto;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
}

.nav-logo-text .brand {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.1;
}

.nav-logo-text .tagline {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-style: italic;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-body);
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: width var(--duration) var(--ease);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-cta {
  padding: 10px 24px !important;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
  color: var(--text-white) !important;
  border-radius: var(--radius-full) !important;
  font-weight: 600 !important;
  box-shadow: 0 3px 12px var(--primary-glow);
  transition: all var(--duration) var(--ease) !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(39, 174, 96, 0.3);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-hamburger span {
  width: 26px;
  height: 2.5px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all var(--duration) var(--ease);
}

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

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

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

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--bg-white) 0%, var(--bg-mint) 50%, #d4f0e2 100%);
  padding-top: 80px;
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-bg-shapes .shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.12;
}

.hero-bg-shapes .shape-1 {
  width: 500px;
  height: 500px;
  background: var(--primary);
  top: -150px;
  right: -100px;
  animation: floatSlow 15s ease-in-out infinite;
}

.hero-bg-shapes .shape-2 {
  width: 300px;
  height: 300px;
  background: var(--accent);
  bottom: -80px;
  left: -60px;
  animation: floatSlow 18s ease-in-out infinite reverse;
}

.hero-bg-shapes .shape-3 {
  width: 180px;
  height: 180px;
  background: var(--primary-light);
  top: 30%;
  left: 10%;
  animation: floatSlow 12s ease-in-out infinite 2s;
}

@keyframes floatSlow {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  25% {
    transform: translate(20px, -30px) scale(1.05);
  }

  50% {
    transform: translate(-15px, 20px) scale(0.95);
  }

  75% {
    transform: translate(25px, 10px) scale(1.02);
  }
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(39, 174, 96, 0.1);
  border: 1px solid rgba(39, 174, 96, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--primary-dark);
  margin-bottom: 24px;
  animation: fadeInUp 0.8s var(--ease) 0.2s both;
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.3);
  }
}

.hero-typing-wrapper {
  min-height: 72px;
  margin-bottom: 8px;
}

.hero-typing {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.15;
  animation: fadeInUp 0.8s var(--ease) 0.4s both;
}

.hero-typing .cursor {
  display: inline-block;
  width: 3px;
  height: 0.85em;
  background: var(--primary);
  margin-left: 2px;
  animation: blink 0.8s step-end infinite;
  vertical-align: baseline;
  -webkit-text-fill-color: var(--primary);
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.hero-brand {
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 16px;
  animation: fadeInUp 0.8s var(--ease) 0.6s both;
}

.hero-brand .highlight {
  color: var(--primary);
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 480px;
  margin-bottom: 36px;
  animation: fadeInUp 0.8s var(--ease) 0.8s both;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  animation: fadeInUp 0.8s var(--ease) 1s both;
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-image-wrapper {
  position: relative;
  animation: fadeInUp 0.8s var(--ease) 0.6s both;
}

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

.hero-image-card img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.hero-image-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(39, 174, 96, 0.15) 100%);
  pointer-events: none;
}

/* Floating education icons */
.floating-icons {
  position: absolute;
  inset: -40px;
  pointer-events: none;
}

.floating-icon {
  position: absolute;
  font-size: 2rem;
  animation: floatIcon 6s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.floating-icon:nth-child(1) {
  top: -10px;
  left: 10%;
  animation-delay: 0s;
}

.floating-icon:nth-child(2) {
  top: 15%;
  right: -20px;
  animation-delay: 1s;
}

.floating-icon:nth-child(3) {
  bottom: 10%;
  left: -20px;
  animation-delay: 2s;
}

.floating-icon:nth-child(4) {
  bottom: -10px;
  right: 15%;
  animation-delay: 3s;
}

.floating-icon:nth-child(5) {
  top: 50%;
  left: -30px;
  animation-delay: 1.5s;
}

@keyframes floatIcon {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  33% {
    transform: translateY(-15px) rotate(5deg);
  }

  66% {
    transform: translateY(10px) rotate(-3deg);
  }
}

/* =====================================================
   TRUST / STATS SECTION
   ===================================================== */
.trust {
  padding: 80px 0;
  background: var(--bg-white);
  position: relative;
}

.trust::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-glow), transparent);
}

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

.stat-card {
  text-align: center;
  padding: 40px 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-white);
  border: 1px solid rgba(39, 174, 96, 0.1);
  transition: all var(--duration) var(--ease);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 0 0 4px 4px;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(39, 174, 96, 0.2);
}

.stat-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1;
  margin-bottom: 8px;
}

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

/* =====================================================
   ABOUT SECTION
   ===================================================== */
.about {
  padding: var(--section-pad);
  background: var(--bg-mint);
  position: relative;
}

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

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

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

.about-image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.about-image-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 160px;
  height: 160px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0.5;
}

.experience-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-md);
}

.experience-badge .number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.experience-badge .text {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  line-height: 1.3;
}

.about-content .section-tag {
  margin-bottom: 16px;
}

.about-points {
  margin-top: 32px;
  display: grid;
  gap: 16px;
}

.about-point {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 20px;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(39, 174, 96, 0.08);
  transition: all var(--duration) var(--ease);
}

.about-point:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(39, 174, 96, 0.2);
}

.about-point .icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: var(--bg-mint);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 1.1rem;
}

.about-point .text h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.about-point .text p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* =====================================================
   PROGRAMS / SERVICES
   ===================================================== */
.programs {
  padding: var(--section-pad);
  background: var(--bg-white);
}

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

.program-card {
  background: var(--bg-white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: all var(--duration) var(--ease);
  position: relative;
  overflow: hidden;
  cursor: default;
}

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

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

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

.program-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--bg-mint), #CCF0DC);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  transition: all var(--duration) var(--ease);
}

.program-card:hover .program-icon {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  transform: scale(1.1) rotate(5deg);
}

.program-card:hover .program-icon span {
  filter: brightness(10);
}

.program-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-dark);
}

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

/* =====================================================
   LEARNING APPROACH / STEPS
   ===================================================== */
.approach {
  padding: var(--section-pad);
  background: linear-gradient(160deg, var(--bg-dark) 0%, #143822 100%);
  color: var(--text-white);
  position: relative;
  overflow: hidden;
}

.approach::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(39, 174, 96, 0.08);
  top: -200px;
  right: -200px;
}

.approach .section-tag {
  background: rgba(39, 174, 96, 0.15);
  color: var(--primary-light);
}

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

.approach .section-subtitle {
  color: rgba(255, 255, 255, 0.65);
}

.steps-container {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 60px;
  flex-wrap: wrap;
}

.steps-line {
  position: absolute;
  top: 40px;
  left: 40px;
  right: 40px;
  height: 3px;
  background: rgba(39, 174, 96, 0.2);
  z-index: 0;
}

.steps-line-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 4px;
  transition: width 1.5s var(--ease);
}

.step-card {
  flex: 1;
  min-width: 180px;
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 10px;
}

.step-number {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-white);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 4px 20px rgba(39, 174, 96, 0.3);
  transition: all var(--duration) var(--ease);
  position: relative;
}

.step-number::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(39, 174, 96, 0.25);
}

.step-card:hover .step-number {
  transform: scale(1.15);
  box-shadow: 0 8px 30px rgba(39, 174, 96, 0.5);
}

.step-card h4 {
  font-size: 1.05rem;
  color: var(--text-white);
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
}

/* =====================================================
   GALLERY SECTION
   ===================================================== */
.gallery {
  padding: var(--section-pad);
  background: var(--bg-light);
}

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

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(13, 40, 24, 0.75) 100%);
  display: flex;
  align-items: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
}

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

.gallery-overlay span {
  color: var(--text-white);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
}

/* =====================================================
   REVIEWS SECTION
   ===================================================== */
.reviews {
  padding: var(--section-pad);
  background: var(--bg-white);
  overflow: hidden;
}

.reviews-slider-wrapper {
  position: relative;
  max-width: 100%;
  overflow: hidden;
}

.reviews-track {
  display: flex;
  gap: 24px;
  transition: transform 0.6s var(--ease);
  padding: 20px 0;
}

.review-card {
  min-width: 340px;
  max-width: 400px;
  flex-shrink: 0;
  background: var(--bg-white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all var(--duration) var(--ease);
  position: relative;
}

.review-card::before {
  content: '"';
  position: absolute;
  top: 16px;
  right: 24px;
  font-family: Georgia, serif;
  font-size: 5rem;
  line-height: 1;
  color: var(--bg-mint);
  pointer-events: none;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(39, 174, 96, 0.15);
}

.review-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 16px;
}

.review-stars span {
  color: var(--accent);
  font-size: 1.1rem;
}

.review-text {
  font-family: var(--font-accent);
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 20px;
  font-style: italic;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
}

.review-author-info h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
}

.review-author-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.review-google {
  margin-left: auto;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 4px;
}

.reviews-controls {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}

.reviews-controls button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(39, 174, 96, 0.2);
  background: var(--bg-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--primary);
  transition: all var(--duration) var(--ease);
}

.reviews-controls button:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--text-white);
  transform: scale(1.1);
}

.reviews-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reviews-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(39, 174, 96, 0.2);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.reviews-dots .dot.active {
  background: var(--primary);
  width: 28px;
  border-radius: 6px;
}

/* =====================================================
   LOCATION SECTION
   ===================================================== */
.location {
  padding: var(--section-pad);
  background: var(--bg-mint);
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.location-map {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 420px;
}

.location-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.location-info {
  padding-top: 20px;
}

.location-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  padding: 20px;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(39, 174, 96, 0.08);
  transition: all var(--duration) var(--ease);
}

.location-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.location-item .icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--bg-mint);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.location-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

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

.location-buttons {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

/* =====================================================
   CTA SECTION
   ===================================================== */
.cta {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 60%, #145e30 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cta-shapes .cta-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  animation: floatSlow 12s ease-in-out infinite;
}

.cta-shapes .cta-shape:nth-child(1) {
  width: 300px;
  height: 300px;
  top: -100px;
  left: -80px;
  animation-delay: 0s;
}

.cta-shapes .cta-shape:nth-child(2) {
  width: 200px;
  height: 200px;
  bottom: -60px;
  right: -40px;
  animation-delay: 3s;
}

.cta-shapes .cta-shape:nth-child(3) {
  width: 120px;
  height: 120px;
  top: 20%;
  right: 15%;
  animation-delay: 6s;
}

.cta-shapes .cta-shape:nth-child(4) {
  width: 80px;
  height: 80px;
  bottom: 30%;
  left: 10%;
  animation-delay: 4s;
  background: rgba(255, 216, 77, 0.08);
}

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

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

.cta-content p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.8;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cta .btn-accent {
  font-size: 1.05rem;
  padding: 16px 36px;
}

.cta .btn-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--text-white);
  font-size: 1.05rem;
  padding: 16px 36px;
}

.cta .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  background: var(--bg-footer);
  padding: 80px 0 0;
  color: rgba(255, 255, 255, 0.7);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand .brand-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 8px;
}

.footer-brand .tagline {
  font-style: italic;
  font-size: 0.9rem;
  color: var(--primary-light);
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--duration) var(--ease);
}

.footer-social a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.9rem;
  transition: all var(--duration) var(--ease);
}

.footer-links a:hover {
  color: var(--primary-light);
  padding-left: 6px;
}

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

.footer-contact-item .icon {
  font-size: 1.1rem;
  min-width: 20px;
  padding-top: 2px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

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

.footer-bottom a:hover {
  text-decoration: underline;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-desc {
    margin: 0 auto 36px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image-card img {
    height: 400px;
  }

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

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

  .about-image img {
    height: 360px;
  }

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

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

  .location-grid {
    grid-template-columns: 1fr;
  }

  .location-map {
    height: 320px;
  }

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

@media (max-width: 768px) {
  :root {
    --section-pad: 60px 0;
  }

  body {
    overflow-x: hidden;
  }

  .container {
    padding: 0 20px;
  }

  /* --- Navbar --- */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-white);
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    gap: 24px;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
    transition: right var(--duration) var(--ease);
    z-index: 1000;
  }

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

  .nav-hamburger {
    display: flex;
  }

  .nav-logo img {
    height: 36px;
  }

  .nav-logo-text .brand {
    font-size: 1.05rem;
  }

  .nav-logo-text .tagline {
    font-size: 0.6rem;
  }

  /* --- Hero --- */
  .hero {
    min-height: auto;
    padding: 110px 0 50px;
  }

  .hero-typing {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

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

  .hero-typing-wrapper {
    min-height: 44px;
  }

  .hero-desc {
    font-size: 1rem;
    margin-bottom: 28px;
  }

  .hero-image-card img {
    height: 260px;
  }

  .hero-badge {
    font-size: 0.8rem;
    padding: 6px 14px;
  }

  .floating-icons {
    inset: -20px;
  }

  .floating-icon {
    font-size: 1.4rem;
  }

  /* --- Trust / Stats --- */
  .trust {
    padding: 50px 0;
  }

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

  .stat-card {
    padding: 24px 14px;
  }

  .stat-icon {
    font-size: 2rem;
  }

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

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

  /* --- About --- */
  .about-image img {
    height: 280px;
  }

  .about-image-accent {
    width: 100px;
    height: 100px;
    bottom: -12px;
    right: -12px;
  }

  .experience-badge {
    padding: 10px 16px;
    bottom: 14px;
    left: 14px;
  }

  .experience-badge .number {
    font-size: 1.5rem;
  }

  .experience-badge .text {
    font-size: 0.7rem;
  }

  .about-point {
    padding: 12px 14px;
  }

  .about-point .icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    font-size: 1rem;
  }

  .about-point .text h4 {
    font-size: 0.88rem;
  }

  .about-point .text p {
    font-size: 0.8rem;
  }

  /* --- Section Headers (global) --- */
  .section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .section-subtitle {
    font-size: 0.95rem;
  }

  .section-header {
    margin-bottom: 40px;
  }

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

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

  .program-icon {
    width: 60px;
    height: 60px;
    font-size: 1.6rem;
  }

  /* --- Steps / Approach --- */
  .approach {
    padding: 60px 0;
  }

  .steps-container {
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin-top: 40px;
  }

  .steps-line {
    display: none;
  }

  .step-card {
    max-width: 100%;
    width: 100%;
    padding: 0;
  }

  .step-number {
    width: 64px;
    height: 64px;
    font-size: 1.2rem;
  }

  .step-number::after {
    inset: -4px;
  }

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

  .gallery-overlay {
    padding: 14px;
  }

  .gallery-overlay span {
    font-size: 0.8rem;
  }

  /* --- Reviews / Testimonials --- */
  .reviews {
    overflow: hidden;
  }

  .reviews-slider-wrapper {
    overflow: hidden;
    margin: 0 -20px;
    padding: 0 20px;
  }

  .reviews-track {
    gap: 16px;
    padding: 16px 0;
  }

  .review-card {
    min-width: calc(100vw - 72px);
    max-width: calc(100vw - 72px);
    padding: 24px 20px;
  }

  .review-card::before {
    font-size: 3.5rem;
    top: 10px;
    right: 16px;
  }

  .review-text {
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 16px;
  }

  .review-stars span {
    font-size: 0.95rem;
  }

  .review-avatar {
    width: 38px;
    height: 38px;
    font-size: 0.85rem;
  }

  .review-author-info h5 {
    font-size: 0.85rem;
  }

  .review-author-info span {
    font-size: 0.72rem;
  }

  .review-google {
    font-size: 0.72rem;
  }

  .reviews-controls {
    margin-top: 28px;
    gap: 12px;
  }

  .reviews-controls button {
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }

  .reviews-dots .dot {
    width: 8px;
    height: 8px;
  }

  .reviews-dots .dot.active {
    width: 22px;
  }

  /* --- Location --- */
  .location-map {
    height: 260px;
  }

  .location-item {
    padding: 14px;
    gap: 12px;
  }

  .location-item .icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    font-size: 1.1rem;
  }

  .location-item h4 {
    font-size: 0.88rem;
  }

  .location-item p {
    font-size: 0.82rem;
  }

  .location-buttons {
    flex-direction: column;
    gap: 10px;
  }

  /* --- CTA --- */
  .cta {
    padding: 60px 0;
  }

  .cta-content h2 {
    font-size: clamp(1.4rem, 6vw, 2rem);
  }

  .cta-content p {
    font-size: 0.95rem;
    margin-bottom: 28px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .cta .btn-accent,
  .cta .btn-secondary {
    font-size: 0.95rem;
    padding: 14px 28px;
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  /* --- Footer --- */
  .footer {
    padding: 50px 0 0;
  }

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

  .footer-brand .brand-name {
    font-size: 1.3rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    padding: 20px 0;
  }

  /* --- Back to Top (mobile positioning) --- */
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
  }
}

/* --- Extra small devices (phones in portrait) --- */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  /* Hero */
  .hero {
    padding: 100px 0 40px;
  }

  .hero-typing {
    font-size: clamp(1.3rem, 5.5vw, 1.6rem);
  }

  .hero-brand {
    font-size: clamp(1.5rem, 6.5vw, 2rem);
  }

  .hero-typing-wrapper {
    min-height: 38px;
  }

  .hero-desc {
    font-size: 0.9rem;
  }

  .hero-image-card img {
    height: 200px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  /* Stats */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .stat-card {
    padding: 20px 10px;
  }

  .stat-icon {
    font-size: 1.6rem;
    margin-bottom: 8px;
  }

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

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

  /* About */
  .about-image img {
    height: 220px;
  }

  .about-image-accent {
    width: 80px;
    height: 80px;
    bottom: -10px;
    right: -10px;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* Reviews */
  .review-card {
    min-width: calc(100vw - 56px);
    max-width: calc(100vw - 56px);
    padding: 20px 16px;
  }

  .review-text {
    font-size: 0.85rem;
    line-height: 1.65;
  }

  .review-card::before {
    font-size: 3rem;
    top: 8px;
    right: 12px;
  }

  .review-author {
    gap: 8px;
  }

  .review-avatar {
    width: 34px;
    height: 34px;
    font-size: 0.75rem;
  }

  .review-author-info h5 {
    font-size: 0.8rem;
  }

  /* Location */
  .location-map {
    height: 220px;
  }

  .location-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  /* Section headers */
  .section-title {
    font-size: clamp(1.3rem, 5vw, 1.7rem);
  }

  .section-subtitle {
    font-size: 0.88rem;
  }

  .section-tag {
    font-size: 0.78rem;
    padding: 4px 12px;
  }

  .section-header {
    margin-bottom: 32px;
  }

  /* CTA */
  .cta-content h2 {
    font-size: clamp(1.2rem, 5.5vw, 1.6rem);
  }

  .cta-content p {
    font-size: 0.88rem;
  }

  /* Footer */
  .footer-contact-item p {
    font-size: 0.82rem;
  }

  /* BTN global fix */
  .btn {
    font-size: 0.9rem;
    padding: 12px 22px;
  }
}

/* --- Very narrow screens (320px) --- */
@media (max-width: 360px) {
  .container {
    padding: 0 12px;
  }

  .hero-typing {
    font-size: 1.2rem;
  }

  .hero-brand {
    font-size: 1.4rem;
  }

  .review-card {
    min-width: calc(100vw - 48px);
    max-width: calc(100vw - 48px);
    padding: 18px 14px;
  }

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

  .stat-icon {
    font-size: 1.4rem;
  }

  .nav-logo-text .brand {
    font-size: 0.95rem;
  }

  .nav-logo-text .tagline {
    display: none;
  }

  .nav-logo img {
    height: 32px;
  }
}

/* ---------- Parallax helpers (JS controlled) ---------- */
[data-parallax] {
  will-change: transform;
}

/* ---------- Loading Animation ---------- */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--bg-white);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}

.page-loader.loaded {
  opacity: 0;
  visibility: hidden;
}

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--bg-mint);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.loader-text {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-dark);
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--text-white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 20px var(--primary-glow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--duration) var(--ease);
  z-index: 999;
}

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

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(39, 174, 96, 0.4);
}