/* ===================================================
   FRESHER INSTITUTE — PREMIUM STYLESHEET
   =================================================== */

/* ---- CSS Variables & Root ---- */
:root {
  /* === Green Theme === */
  --primary:       #134633;   /* Deep forest green - dominant */
  --primary-mid:   #1A5C44;   /* Midtone green */
  --primary-light: #247A5B;   /* Bright green for hover */
  --primary-dark:  #0C2E21;   /* Very dark green for shadows */
  --primary-ultra: #061711;   /* Near-black green for text */
  --secondary:     #247A5B;   /* Green accent */
  --secondary-light: #3B9D75; /* Light green highlight */
  --detail-gold:   #CF9626;   /* Reserved for tiny detail accents */
  --gold-soft:     rgba(207, 150, 38, 0.12);
  --gold-border:   rgba(207, 150, 38, 0.32);
  --gold-glow:     rgba(207, 150, 38, 0.24);

  /* === Clean Background === */
  --bg-base:       #FAFBFA;
  --bg-base-dark:  #F5F7F5;
  --bg-card:       rgba(255,255,255,0.95); /* White cards */
  --bg-card-hover: rgba(255,255,255,1);
  --bg-section:    rgba(19, 70, 51, 0.03);  /* Faint green wash on alternate sections */

  /* === Borders === */
  --border:        rgba(19, 70, 51, 0.1);
  --border-hover:  rgba(19, 70, 51, 0.25);
  --border-card:   rgba(19, 70, 51, 0.08);

  /* === Typography === */
  --text-primary:  #14241D;
  --text-secondary: #364A40;
  --text-muted:    #6B8075;

  /* === Glass & Navbar === */
  --glass:         rgba(255, 255, 255, 0.95);
  --glass-modal:   rgba(255, 255, 255, 0.98);

  /* === Shadows === */
  --shadow-glow:   0 0 80px rgba(19, 70, 51, 0.1);
  --shadow-card:   0 8px 32px rgba(12, 46, 33, 0.08), 0 2px 8px rgba(0,0,0,0.04);
  --shadow-lift:   0 20px 60px rgba(12, 46, 33, 0.12);

  /* === Radii & Fonts === */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background-color: var(--bg-base);
  background-image: none;
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-user-select: none;
  user-select: none;
}
input, textarea {
  -webkit-user-select: auto;
  user-select: auto;
}
::selection { background: rgba(19, 70, 51, 0.2); color: var(--text-primary); }

/* ---- Background Canvas ---- */
.bg-canvas {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: transparent;
}

/* ===================================================
   GLOBAL INTERACTION FX
   =================================================== */
button { font-family: inherit; }
.btn-primary, .btn-secondary, .portal-btn, .nav-cta, .mobile-nav-cta, .feature-card, .portal-card {
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease, background 0.3s ease, border-color 0.3s ease !important;
}
.btn-primary:active, .btn-secondary:active, .portal-btn:active, .nav-cta:active, .mobile-nav-cta:active, .portal-card:active, .feature-card:active {
  transform: scale(0.96) !important;
}

/* ===================================================
   NAVBAR
   =================================================== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 2rem;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(19,70,51,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 4px 30px rgba(12,46,33,0.3);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center;
  height: 72px; gap: 2rem;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; cursor: pointer;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: -0.02em;
}
.brand-accent { color: var(--secondary); } /* Golden */
.nav-links {
  display: flex; gap: 0.25rem; margin-left: auto;
}
.nav-link {
  padding: 0.5rem 1rem;
  color: var(--text-secondary);
  text-decoration: none; font-size: 0.9rem;
  font-weight: 500; border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}
.nav-link::after {
  content: ''; position: absolute;
  bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--detail-gold));
  border-radius: 2px; transition: width var(--transition);
}
.nav-link:hover { color: var(--text-primary); }
.nav-link:hover::after { width: 60%; }
.nav-cta {
  padding: 0.55rem 1.4rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; border: none; border-radius: 50px;
  font-size: 0.875rem; font-weight: 600; cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(19,70,51,0.3), 0 0 0 1px rgba(207,150,38,0.14) inset;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(19,70,51,0.42), 0 0 22px var(--gold-glow);
}

/* '' Hamburger Menu '' */
.nav-hamburger {
  display: flex;
  flex-direction: column; gap: 5px;
  justify-content: center; align-items: center;
  width: 40px; height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer; margin-left: auto;
  transition: var(--transition);
  flex-shrink: 0;
}
.nav-hamburger:hover { background: var(--bg-card-hover); border-color: var(--border-hover); }
/* '' Hamburger (animates into open-book shape on click) '' */
.hamburger-line {
  display: block;
  width: 20px; height: 2px;
  background: var(--primary);
  border-radius: 3px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: center;
}
/* Line 1 = top page of book — curves up-left */
.nav-hamburger.open .hamburger-line:nth-child(1) {
  width: 22px;
  transform: translateY(7px) rotate(30deg) scaleX(0.85);
  background: var(--primary);
}
/* Line 2 = spine of the book — stays central, thicker */
.nav-hamburger.open .hamburger-line:nth-child(2) {
  width: 16px;
  height: 3px;
  transform: scaleX(1);
  opacity: 1;
  background: var(--detail-gold);
}
/* Line 3 = bottom page of book — curves down-left */
.nav-hamburger.open .hamburger-line:nth-child(3) {
  width: 22px;
  transform: translateY(-7px) rotate(-30deg) scaleX(0.85);
  background: var(--primary);
}

/* '' Mobile Nav Drawer '' */
.mobile-nav-drawer {
  display: flex; flex-direction: column;
  position: fixed; top: 72px; left: 0; right: 0;
  z-index: 999;
  background: rgba(19,70,51,0.96);
  backdrop-filter: blur(20px);
  border-bottom: 2px solid rgba(200,148,26,0.4);
  padding: 1.5rem 1.5rem 2rem;
  transform: translateY(-20px); opacity: 0;
  transition: transform 0.4s cubic-bezier(0.34,1.2,0.64,1), opacity 0.3s ease;
  pointer-events: none;
  box-shadow: 0 30px 60px rgba(12,46,33,0.35);
}
.mobile-nav-drawer.open {
  transform: translateY(0); opacity: 1;
  pointer-events: all;
}
.mobile-nav-links {
  display: flex; flex-direction: column; gap: 0.25rem;
  margin-bottom: 1.5rem;
}
.mobile-nav-link {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  color: rgba(255,245,235,0.85);
  text-decoration: none; font-size: 1rem;
  font-weight: 500; border-radius: var(--radius-md);
  transition: all 0.25s ease;
  border: 1px solid transparent;
}
.mobile-nav-link svg { opacity: 0.7; flex-shrink: 0; transition: opacity 0.25s; }
.mobile-nav-link:hover, .mobile-nav-link:active {
  color: #fff;
  background: rgba(255,255,255,0.12);
  border-color: rgba(200,148,26,0.35);
}
.mobile-nav-link:hover svg { opacity: 1; }
.mobile-nav-cta {
  width: 100%; padding: 1rem;
  background: linear-gradient(135deg, var(--primary), #0C2E21);
  color: #fff; border: none; border-radius: 50px;
  font-size: 1rem; font-weight: 700; cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 6px 24px rgba(19,70,51,0.35), 0 0 0 1px rgba(207,150,38,0.24) inset;
  letter-spacing: 0.02em;
}
.mobile-nav-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(19,70,51,0.45), 0 0 24px var(--gold-glow); }

/* ===================================================
   HERO
   =================================================== */
.hero {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 2rem 80px;
  max-width: 1200px; margin: 0 auto;
  gap: 3rem;
}
.hero-content {
  flex: 1; max-width: 600px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(19,70,51,0.25);
  border: 1px solid rgba(19,70,51,0.3);
  color: var(--primary-light); border-radius: 50px;
  padding: 0.4rem 1rem; font-size: 0.8rem; font-weight: 600;
  margin-bottom: 1.5rem;
  animation: fadeSlideDown 0.6s ease both;
}
.badge-dot {
  width: 6px; height: 6px;
  background: var(--accent-green); border-radius: 50%;
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.4); }
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 900; line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  animation: fadeSlideUp 0.7s ease 0.1s both;
}
/* Keeps "Meets Excellence" pinned together on one line */
.hero-title-nowrap {
  display: inline-block;
  white-space: nowrap;
}
.gradient-text {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--detail-gold) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-text-2 {
  background: linear-gradient(135deg, var(--detail-gold) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  color: var(--text-secondary); font-size: 1.05rem; line-height: 1.8;
  margin-bottom: 2.5rem; max-width: 500px;
  animation: fadeSlideUp 0.7s ease 0.2s both;
}
.hero-actions {
  display: flex; gap: 1rem; flex-wrap: wrap;
  margin-bottom: 3rem;
  animation: fadeSlideUp 0.7s ease 0.3s both;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.9rem 2rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; border: none; border-radius: 50px;
  font-size: 0.95rem; font-weight: 700; cursor: pointer;
  box-shadow: 0 8px 30px rgba(19,70,51,0.36), 0 0 0 1px rgba(207,150,38,0.18) inset;
  transition: var(--transition-spring);
  position: relative; overflow: hidden;
}
.btn-primary::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(207,150,38,0.28), transparent 55%);
  opacity: 0; transition: opacity var(--transition);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(19,70,51,0.42), 0 0 26px var(--gold-glow); }
.btn-primary:hover::before { opacity: 1; }
.btn-primary:active { transform: translateY(-1px); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.9rem 2rem;
  background: rgba(36,122,91,0.2);
  color: var(--secondary-light);
  border: 1.5px solid rgba(36,122,91,0.35);
  border-radius: 50px; font-size: 0.95rem; font-weight: 700; cursor: pointer;
  transition: var(--transition-spring);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover {
  background: rgba(36,122,91,0.15);
  border-color: var(--secondary);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(36,122,91,0.2);
}
.btn-secondary:active { transform: translateY(-1px); }

.hero-stats {
  display: flex; align-items: center; gap: 2rem;
  animation: fadeSlideUp 0.7s ease 0.4s both;
}
.stat-item { text-align: center; }
.stat-number {
  display: block; font-family: var(--font-display);
  font-size: 1.6rem; font-weight: 800;
  background: linear-gradient(135deg, var(--primary-light), var(--detail-gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: 0.75rem; color: var(--text-muted); font-weight: 500; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* Hero Visual */
.hero-visual {
  flex: 1; position: relative;
  min-height: 450px; display: flex;
  align-items: center; justify-content: center;
  animation: fadeSlideUp 0.8s ease 0.2s both;
}
.hero-center-graphic {
  position: relative; width: 200px; height: 200px;
  display: flex; align-items: center; justify-content: center;
}
.hcg-ring {
  position: absolute; border-radius: 50%;
  border: 1.5px solid;
}
.ring-outer {
  inset: 0;
  border-color: rgba(19,70,51,0.2);
  animation: spin 20s linear infinite;
}
.ring-middle {
  inset: 20px;
  border-color: rgba(36,122,91,0.2);
  animation: spin 15s linear infinite reverse;
}
.hcg-core {
  width: 90px; height: 90px;
  background: linear-gradient(135deg, rgba(19,70,51,0.3), rgba(36,122,91,0.1));
  border: 1.5px solid rgba(19,70,51,0.3);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 40px rgba(19,70,51,0.2), inset 0 0 20px rgba(36,122,91,0.05);
  animation: float-core 4s ease-in-out infinite;
}
@keyframes float-core {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes spin { to { transform: rotate(360deg); } }

.floating-card {
  position: absolute;
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  box-shadow: var(--shadow-card);
  animation: float-card 6s ease-in-out infinite;
  min-width: 180px;
}
.card-1 { top: 5%; left: -10%; animation-delay: 0s; }
.card-2 { bottom: 5%; left: -5%; animation-delay: 2s; }
.card-3 { top: 40%; right: -5%; animation-delay: 4s; }
@keyframes float-card {
  0%,100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
}
.fc-icon { font-size: 1.5rem; }
.fc-title { font-size: 0.85rem; font-weight: 700; color: var(--text-primary); }
.fc-sub { font-size: 0.7rem; color: var(--text-muted); }



.scroll-indicator {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text-muted); font-size: 0.75rem;
  animation: fadeSlideUp 1s ease 0.8s both;
}
/* PC scroll mouse indicator */
.scroll-mouse {
  width: 24px; height: 38px;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  display: flex; justify-content: center; padding-top: 6px;
}
.scroll-wheel {
  width: 4px; height: 8px;
  background: rgba(255,255,255,0.4);
  border-radius: 2px;
  animation: scroll-bounce 2s ease-in-out infinite;
}
@keyframes scroll-bounce {
  0%,100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); opacity: 0.3; }
}
/* Mobile swipe-down indicator (replaces mouse on touch devices) */
.scroll-swipe {
  display: none;
  flex-direction: column; align-items: center; gap: 3px;
}
.swipe-chevrons {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.swipe-chevron {
  width: 18px; height: 10px;
  position: relative;
  animation: swipe-fade 1.8s ease-in-out infinite;
}
.swipe-chevron::before,
.swipe-chevron::after {
  content: '';
  position: absolute;
  top: 0;
  width: 10px; height: 2px;
  background: rgba(255,255,255,0.35);
  border-radius: 2px;
}
.swipe-chevron::before { left: 0; transform: rotate(40deg); transform-origin: left center; }
.swipe-chevron::after  { right: 0; transform: rotate(-40deg); transform-origin: right center; }
.swipe-chevron:nth-child(2) { animation-delay: 0.22s; opacity: 0.65; }
.swipe-chevron:nth-child(3) { animation-delay: 0.44s; opacity: 0.35; }
@keyframes swipe-fade {
  0%,100% { opacity: 0.85; transform: translateY(0); }
  50% { opacity: 0.25; transform: translateY(3px); }
}

/* ===================================================
   SECTIONS (ABOUT + PORTAL)
   =================================================== */
.about, .portal {
  position: relative; z-index: 1;
  padding: 6rem 2rem;
}
.section-container { max-width: 1200px; margin: 0 auto; }
.section-badge {
  display: inline-block;
  background: rgba(19,70,51,0.25);
  border: 1px solid rgba(19,70,51,0.3);
  color: var(--primary-light); border-radius: 50px;
  padding: 0.35rem 1rem; font-size: 0.8rem; font-weight: 600;
  margin-bottom: 1rem; letter-spacing: 0.05em; text-transform: uppercase;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800; letter-spacing: -0.02em;
  margin-bottom: 0.75rem; line-height: 1.15;
}
.section-subtitle {
  color: var(--text-secondary); font-size: 1rem;
  margin-bottom: 3rem;
}
/* New Features Custom Grid */
.feature-header {
  margin-bottom: 3rem;
  text-align: left;
}
.fh-divider {
  display: flex; align-items: center; gap: 10px; margin: 1.5rem 0; width: max-content;
}
.fh-line {
  width: 50px; height: 1.5px; background: rgba(19,70,51,0.3);
}

.features-custom-grid {
  display: flex; flex-direction: column; gap: 1.5rem;
  max-width: 1250px; margin: 0 auto;
}
.fc-row {
  display: flex; gap: 1.5rem; justify-content: center;
}
.fc-row-2 {
  max-width: 1050px; 
  margin: 0 auto;
  width: 100%;
}
.fc-card {
  background: var(--bg-card);
  border: 1px solid rgba(19,70,51,0.08);
  border-radius: 16px;
  display: flex; align-items: center; gap: 1.75rem;
  box-shadow: 0 4px 20px rgba(19,70,51,0.04);
  flex: 1; transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-width: 0; /* prevent flex blowout */
  opacity: 0; transform: translateY(30px);
}
.fc-row-2 .fc-card {
  padding: 2.2rem 2rem;
  min-height: 180px;
}
.fc-row-3 .fc-card {
  padding: 1.6rem 1.5rem;
  gap: 1.25rem;
}
.fc-card.visible {
  opacity: 1; transform: translateY(0);
}
.fc-card:hover {
  transform: translateY(-4px); 
  box-shadow: 0 8px 30px rgba(19,70,51,0.1);
}

.fcc-icon-wrap {
  width: 75px; height: 75px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--gold-border);
  box-shadow: 0 10px 24px rgba(19,70,51,0.06), 0 0 18px rgba(207,150,38,0.12);
}
.fcc-content {
  display: flex; flex-direction: column; justify-content: center;
}
.fcc-title {
  font-family: var(--font-display); font-size: 1.25rem;
  font-weight: 800; color: var(--text-primary); margin-bottom: 0.15rem;
  letter-spacing: -0.01em;
}
.fcc-subtitle {
  font-family: var(--font-display); font-size: 1.25rem;
  font-weight: 800; color: var(--detail-gold); margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}
.fcc-dash {
  width: 24px; height: 3.5px; background: linear-gradient(90deg, var(--primary), var(--detail-gold));
  border-radius: 3px; margin-bottom: 1.2rem;
}
.fcc-desc {
  font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6;
}
.fc-row-3 .fcc-icon-wrap {
  width: 60px; height: 60px;
}
.fc-row-3 .fcc-icon-wrap svg {
  transform: scale(0.85);
}
.fc-row-3 .fcc-title, .fc-row-3 .fcc-subtitle {
  font-size: 1.1rem;
}
/* Pricing Section Redesign */
.pricing-section {
  padding: 5rem 1.25rem;
}
.pricing-header {
  text-align: left;
  margin-bottom: 2.5rem;
}
.pricing-title {
  font-family: var(--font-display); font-size: 3rem;
  font-weight: 800; color: var(--text-primary); letter-spacing: -0.02em;
}
.pricing-subtitle {
  color: var(--text-secondary); font-size: 1.1rem; line-height: 1.6;
}

.pricing-grid {
  display: flex; gap: 2rem; justify-content: center;
  margin-bottom: 2rem; flex-wrap: wrap;
}
.pricing-card {
  background: var(--bg-card);
  border: 1px solid rgba(19,70,51,0.08);
  border-radius: 16px;
  padding: 2.5rem;
  flex: 1; min-width: 400px;
  box-shadow: 0 4px 20px rgba(19,70,51,0.04);
  position: relative;
}
.pricing-card.has-ribbon {
  border: 1px solid rgba(19,70,51,0.15);
}
.ribbon-popular {
  position: absolute; top: -10px; right: 2rem;
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  color: white; padding: 0.75rem 1rem 1.25rem;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 85%, 0 100%);
  display: flex; flex-direction: column; align-items: center; gap: 0.25rem;
  font-size: 0.8rem; font-weight: 700; text-align: center; line-height: 1.2;
  box-shadow: 0 10px 24px rgba(19,70,51,0.18), 0 0 0 1px rgba(207,150,38,0.22) inset;
}

.pc-header {
  display: flex; align-items: center; gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.pc-icon-wrap {
  width: 80px; height: 80px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  border: 1px solid var(--gold-border);
  box-shadow: 0 10px 24px rgba(19,70,51,0.06), 0 0 18px rgba(207,150,38,0.12);
}
.pc-title {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 800;
  color: var(--text-primary); margin-bottom: 0.4rem;
}
.pc-desc {
  font-size: 0.95rem; color: var(--text-secondary); line-height: 1.5;
}

.pc-divider {
  height: 1px; background: rgba(19,70,51,0.1);
  margin: 1.5rem 0; width: 100%;
}

.pc-whats-included {
  margin-bottom: 1.5rem;
}
.wi-header {
  display: flex; align-items: center; gap: 0.5rem;
  font-weight: 700; color: var(--primary); margin-bottom: 1.5rem; font-size: 0.95rem;
}
.wi-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.wi-item {
  display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-start;
}
.wi-item h4 {
  font-size: 0.85rem; color: var(--text-primary); font-weight: 700; margin: 0;
}
.wi-item p {
  font-size: 0.8rem; color: var(--text-secondary); line-height: 1.4; margin: 0;
}

.pc-fees {
  background: rgba(19,70,51,0.03);
  border-radius: 12px; padding: 1.5rem; border: 1px solid rgba(19,70,51,0.06);
  margin-bottom: 2rem;
}
.fee-header {
  font-size: 0.85rem; font-weight: 700; color: var(--primary);
  margin-bottom: 1rem;
}
.fee-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; padding: 0; margin: 0; }
.fee-list li {
  display: flex; align-items: center; font-size: 0.95rem; font-weight: 600; color: var(--text-primary);
}
.fee-dots {
  flex: 1; border-bottom: 1px dashed rgba(19,70,51,0.2);
  margin: 0 10px; opacity: 0.5;
}
.fee-amount { color: var(--primary); }

.pc-btn {
  width: 100%; padding: 1rem; border-radius: 50px;
  font-weight: 700; font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.pc-btn-outline {
  background: transparent; border: 1px solid rgba(19,70,51,0.3); color: var(--primary);
}
.pc-btn-outline:hover { background: rgba(19,70,51,0.05); }
.pc-btn-solid {
  background: var(--primary); border: none; color: white;
}
.pc-btn-solid:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 4px 15px rgba(19,70,51,0.2); }

.pricing-banner {
  background: var(--bg-card); border-radius: 12px;
  border: 1px solid rgba(19,70,51,0.08); padding: 1.5rem 2rem;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap;
}
.pb-item {
  display: flex; align-items: center; gap: 1rem;
}
.pb-item strong { font-size: 0.9rem; color: var(--text-primary); display: block; margin-bottom: 0.2rem; }
.pb-item p { font-size: 0.8rem; color: var(--text-secondary); margin: 0; }
.pb-item > span { font-weight: 700; color: var(--primary); font-size: 0.9rem; }

.pricing-disclaimer {
  text-align: center; font-size: 0.85rem; color: var(--text-secondary); margin: 0;
}

/* Portal section */
.portal { background: rgba(255,255,255,0.01); }
.portal-cards {
  display: flex; align-items: stretch;
  gap: 1rem; margin-top: 3rem; flex-wrap: wrap;
}
.portal-card {
  flex: 1; min-width: 300px;
  position: relative; overflow: hidden;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 2.5rem;
  cursor: pointer; transition: var(--transition);
  display: flex; flex-direction: column; gap: 1rem;
}
.portal-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card), 0 0 60px rgba(19,70,51,0.1);
  border-color: rgba(19,70,51,0.4);
}
.student-portal:hover {
  box-shadow: var(--shadow-card), 0 0 60px rgba(36,122,91,0.1);
  border-color: rgba(36,122,91,0.4);
}
.portal-card-glow {
  position: absolute; top: -80px; right: -80px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(19,70,51,0.3), transparent);
  pointer-events: none; border-radius: 50%;
  transition: var(--transition);
}
.student-glow { background: radial-gradient(circle, rgba(36,122,91,0.12), transparent); }
.portal-card:hover .portal-card-glow { transform: scale(1.5); }

.portal-icon-wrap {
  width: 80px; height: 80px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
}
.teacher-icon {
  background: linear-gradient(135deg, rgba(19,70,51,0.2), rgba(19,70,51,0.3));
  border: 1px solid rgba(19,70,51,0.25); color: var(--primary-light);
}
.student-icon {
  background: linear-gradient(135deg, rgba(36,122,91,0.2), rgba(36,122,91,0.05));
  border: 1px solid rgba(36,122,91,0.25); color: var(--secondary-light);
}
.portal-card-title {
  font-family: var(--font-display); font-size: 1.5rem;
  font-weight: 800; letter-spacing: -0.02em; position: relative; z-index: 1;
}
.portal-card-desc {
  color: var(--text-secondary); font-size: 0.9rem;
  line-height: 1.7; position: relative; z-index: 1;
}
.portal-features {
  list-style: none; display: flex; flex-direction: column; gap: 0.6rem;
  position: relative; z-index: 1; flex: 1;
}
.portal-features li {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.875rem; color: var(--text-secondary);
}
.pf-dot {
  width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}
.student-dot { background: linear-gradient(135deg, var(--secondary), var(--secondary-light)); }
.portal-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.85rem 1.75rem;
  border: none; border-radius: 50px; cursor: pointer;
  font-size: 0.9rem; font-weight: 700;
  transition: var(--transition-spring); align-self: flex-start;
  position: relative; z-index: 1;
}
.teacher-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; box-shadow: 0 8px 25px rgba(19,70,51,0.35);
}
.teacher-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 15px 35px rgba(19,70,51,0.5);
}
.student-btn {
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  color: #fff; box-shadow: 0 8px 25px rgba(36,122,91,0.35);
}
.student-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 15px 35px rgba(36,122,91,0.5);
}
.portal-divider {
  display: flex; align-items: center; justify-content: center;
  min-width: 40px; color: var(--text-muted); font-size: 0.85rem;
  font-weight: 600; position: relative;
}
.portal-divider::before, .portal-divider::after {
  content: ''; position: absolute;
  width: 1px; height: 40%;
  background: var(--border);
}
.portal-divider::before { top: 0; }
.portal-divider::after { bottom: 0; }



/* ===================================================
   MODALS
   =================================================== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.modal-overlay.open {
  opacity: 1; visibility: visible;
}
.modal-container {
  width: 100%; max-width: 560px;
  background: var(--glass-modal);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transform: scale(0.9) translateY(30px);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: var(--shadow-card), 0 0 100px rgba(19,70,51,0.2);
  max-height: 90vh; display: flex; flex-direction: column;
}
.modal-overlay.open .modal-container {
  transform: scale(1) translateY(0);
}
.student-modal-container {
  box-shadow: var(--shadow-card), 0 0 100px rgba(36,122,91,0.2);
}

/* Modal Header */
.modal-header {
  position: relative; overflow: hidden;
  padding: 1.75rem 2rem 1.25rem;
  flex-shrink: 0;
}
.teacher-header { background: linear-gradient(135deg, rgba(19,70,51,0.1), rgba(19,70,51,0.3)); }
.student-header { background: linear-gradient(135deg, rgba(36,122,91,0.15), rgba(36,122,91,0.2)); }
.modal-header-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at top right, rgba(19,70,51,0.3), transparent 60%);
}
.student-header-bg { background: radial-gradient(ellipse at top right, rgba(36,122,91,0.12), transparent 60%); }
.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 36px; height: 36px;
  background: rgba(19,70,51,0.3);
  border: 1px solid var(--border); border-radius: 50%;
  color: var(--text-secondary); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition); z-index: 10;
}
.modal-close:hover { background: rgba(19,70,51,0.1); color: var(--text-primary); transform: rotate(90deg); }
.modal-header-content {
  display: flex; align-items: center; gap: 1rem;
  position: relative; z-index: 1;
}
.modal-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.teacher-modal-icon {
  background: linear-gradient(135deg, rgba(19,70,51,0.3), rgba(19,70,51,0.3));
  border: 1px solid rgba(19,70,51,0.2); color: var(--primary);
}
.student-modal-icon {
  background: linear-gradient(135deg, rgba(36,122,91,0.2), rgba(36,122,91,0.1));
  border: 1px solid rgba(36,122,91,0.3); color: var(--secondary);
}
.modal-title {
  font-family: var(--font-display); font-size: 1.4rem;
  font-weight: 800; letter-spacing: -0.02em; color: var(--text-primary);
}
.modal-subtitle { color: var(--text-secondary); font-size: 0.85rem; margin-top: 2px; }
.progress-bar-wrap {
  height: 3px; background: rgba(19,70,51,0.2);
  border-radius: 3px; margin-top: 1.25rem;
  position: relative; z-index: 1; overflow: hidden;
}
.progress-bar {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  width: 33.33%; transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.student-progress-bar { background: linear-gradient(90deg, var(--secondary), var(--primary-light)); }

/* Modal Body */
.modal-body {
  flex: 1; overflow-y: auto; padding: 1.75rem 2rem 2rem;
  scrollbar-width: thin; scrollbar-color: rgba(19,70,51,0.3) transparent;
}
.modal-body::-webkit-scrollbar { width: 4px; }
.modal-body::-webkit-scrollbar-track { background: transparent; }
.modal-body::-webkit-scrollbar-thumb { background: rgba(19,70,51,0.3); border-radius: 2px; }
/* ===================================================
   STEP INDICATOR
   =================================================== */
.step-indicator {
  display: flex; align-items: center; margin-bottom: 1.75rem;
}
.step-dot {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700;
  background: var(--bg-base);
  border: 1.5px solid var(--border-hover);
  color: var(--text-muted);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default; position: relative; z-index: 1;
}
.step-dot.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-color: var(--primary); color: #fff;
  box-shadow: 0 0 20px rgba(19,70,51,0.2);
}
.step-dot.student-step.active {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  border-color: var(--secondary);
  box-shadow: 0 0 20px rgba(36,122,91,0.2);
  color: #fff;
}
.step-dot.completed {
  background: var(--accent-green); border-color: var(--accent-green); color: #fff;
  box-shadow: 0 0 15px rgba(16,185,129,0.2);
}
.step-line {
  flex: 1; height: 1.5px;
  background: var(--border);
  transition: background 0.4s ease;
}
.step-line.completed { background: linear-gradient(90deg, var(--accent-green), rgba(16,185,129,0.2)); }

/* ===================================================
   FORM STEPS
   =================================================== */
.form-step { display: none; animation: stepIn 0.4s ease; }
.form-step.active { display: block; }
@keyframes stepIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}
.step-heading {
  font-family: var(--font-display); font-size: 1.15rem;
  font-weight: 700; margin-bottom: 0.4rem; color: var(--text-primary);
}
.step-desc { color: var(--text-secondary); font-size: 0.85rem; margin-bottom: 1.5rem; }

/* Form Groups */
.form-group { margin-bottom: 1.25rem; }
.float-label { position: relative; }
.form-input {
  width: 100%; padding: 1rem 1rem 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary); font-size: 0.95rem;
  font-family: var(--font-body);
  outline: none; transition: var(--transition);
  appearance: none;
}
.form-input:focus {
  background: var(--bg-base);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(19,70,51,0.3);
}
.float-label .form-label {
  position: absolute; top: 0.85rem; left: 1rem;
  color: var(--text-muted); font-size: 0.875rem;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: left;
}
.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
  transform: translateY(-0.6rem) scale(0.8);
  color: var(--primary);
}
.input-underline {
  height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0); transition: transform 0.3s ease;
  margin-top: -1px;
}
.form-input:focus ~ .input-underline { transform: scaleX(1); }
.student-underline { background: linear-gradient(90deg, var(--secondary), var(--primary-light)); }
.req { color: #f87171; }

.form-label-static {
  display: block; font-size: 0.8rem; font-weight: 600;
  color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 0.06em; margin-bottom: 0.6rem;
}

/* Custom Select */
.custom-select-wrap {
  position: relative;
}
.custom-select {
  width: 100%; padding: 0.85rem 2.5rem 0.85rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary); font-size: 0.9rem;
  font-family: var(--font-body);
  outline: none; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  transition: var(--transition);
}
.custom-select:focus {
  border-color: rgba(36,122,91,0.5);
  box-shadow: 0 0 0 3px rgba(36,122,91,0.1);
}
.custom-select option { background: #0d0a1a; color: var(--text-primary); }
.select-arrow {
  position: absolute; right: 0.9rem; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); pointer-events: none;
  transition: transform var(--transition);
}
.custom-select:focus + .select-arrow { transform: translateY(-50%) rotate(180deg); }
.custom-select.select-animate {
  animation: selectPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes selectPop {
  from { transform: scale(0.98); }
  to { transform: scale(1); }
}

/* Stream Cards */
.hidden-group {
  max-height: 0; overflow: hidden;
  opacity: 0; margin-top: 0;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, margin-top 0.4s ease;
  pointer-events: none;
}
.hidden-group.show {
  max-height: 300px; opacity: 1;
  margin-top: 0; pointer-events: all;
}
.stream-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem;
}
.stream-card {
  padding: 1.25rem; border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  background: rgba(255,255,255,0.03);
  cursor: pointer; text-align: center;
  transition: var(--transition-spring);
}
.stream-card:hover {
  border-color: rgba(36,122,91,0.4);
  background: rgba(36,122,91,0.05);
  transform: translateY(-3px);
}
.stream-card.selected {
  border-color: var(--secondary);
  background: rgba(36,122,91,0.1);
  box-shadow: 0 0 25px rgba(36,122,91,0.15), inset 0 0 15px rgba(36,122,91,0.05);
}
.stream-card-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.stream-card-name {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1rem; margin-bottom: 0.25rem;
}
.stream-card-sub { font-size: 0.7rem; color: var(--text-muted); }

/* Subject Chips */
.subject-grid {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-bottom: 1rem;
}
.subject-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.04);
  border: 1.5px solid var(--border); border-radius: 50px;
  font-size: 0.82rem; font-weight: 600;
  cursor: pointer; transition: var(--transition-spring);
  color: var(--text-secondary); user-select: none;
}
.subject-chip:hover {
  border-color: rgba(19,70,51,0.4);
  color: var(--primary-light);
  background: rgba(19,70,51,0.2);
  transform: translateY(-2px);
}
.subject-chip.selected {
  border-color: var(--primary);
  background: rgba(19,70,51,0.3);
  color: var(--primary-light);
  box-shadow: 0 4px 15px rgba(19,70,51,0.2);
  transform: translateY(-2px);
}
.student-form .subject-chip.selected,
.subject-chip.student-selected {
  border-color: var(--secondary);
  background: rgba(36,122,91,0.12);
  color: var(--secondary-light);
  box-shadow: 0 4px 15px rgba(36,122,91,0.2);
}
.chip-icon { font-size: 0.9rem; }
.custom-chip {
  border-style: dashed;
  border-color: rgba(245,158,11,0.4);
  color: var(--accent);
}
.custom-chip:hover { border-color: var(--accent); background: rgba(245,158,11,0.08); transform: translateY(-2px); }

/* Custom Subject Input */
.custom-subject-wrap { margin-bottom: 1rem; }
.custom-input-wrap {
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease;
}
.custom-input-wrap.show { max-height: 150px; opacity: 1; }
.btn-add-custom {
  padding: 0.5rem 1.25rem;
  background: rgba(245,158,11,0.12);
  border: 1px solid rgba(245,158,11,0.3);
  color: var(--accent); border-radius: 50px;
  font-size: 0.82rem; font-weight: 600; cursor: pointer;
  transition: var(--transition);
}
.btn-add-custom:hover { background: rgba(245,158,11,0.2); border-color: var(--accent); }

/* Time Chips */
.timeslot-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem; margin-bottom: 1.5rem;
}
.time-chip {
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.03);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-size: 0.82rem;
  font-weight: 600; cursor: pointer;
  transition: var(--transition-spring); text-align: center;
  color: var(--text-secondary); user-select: none;
}
.time-chip:hover {
  border-color: rgba(19,70,51,0.35);
  background: rgba(19,70,51,0.06);
  color: var(--primary-light); transform: translateY(-2px);
}
.time-chip.selected {
  border-color: var(--primary);
  background: rgba(19,70,51,0.25);
  color: var(--primary-light);
  box-shadow: 0 4px 15px rgba(19,70,51,0.2);
}
.student-time:hover {
  border-color: rgba(36,122,91,0.35);
  background: rgba(36,122,91,0.06);
  color: var(--secondary-light);
}
.student-time.selected {
  border-color: var(--secondary);
  background: rgba(36,122,91,0.12);
  color: var(--secondary-light);
  box-shadow: 0 4px 15px rgba(36,122,91,0.18);
}

/* Buttons */
.btn-next, .btn-back {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.75rem 1.5rem; border: none;
  border-radius: 50px; font-size: 0.875rem; font-weight: 700;
  cursor: pointer; transition: var(--transition-spring);
}
.btn-next {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; box-shadow: 0 6px 20px rgba(19,70,51,0.3);
  margin-top: 1rem;
}
.btn-next:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(19,70,51,0.45); }
.student-next {
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  box-shadow: 0 6px 20px rgba(36,122,91,0.3);
}
.student-next:hover { box-shadow: 0 10px 30px rgba(36,122,91,0.45); }
.btn-back {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border); color: var(--text-secondary);
}
.btn-back:hover { background: rgba(255,255,255,0.1); color: var(--text-primary); }

.form-nav {
  display: flex; align-items: center; gap: 1rem; margin-top: 1.25rem;
}

.btn-submit {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.85rem 2rem; border: none; border-radius: 50px;
  font-size: 0.95rem; font-weight: 700; cursor: pointer;
  position: relative; overflow: hidden;
  transition: var(--transition-spring);
}
.teacher-submit {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; box-shadow: 0 8px 25px rgba(19,70,51,0.4);
}
.teacher-submit:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(19,70,51,0.55); }
.student-submit {
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  color: #fff; box-shadow: 0 8px 25px rgba(36,122,91,0.4);
}
.student-submit:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(36,122,91,0.5); }
.btn-submit::before {
  content: ''; position: absolute; top: -50%; left: -75%;
  width: 50%; height: 200%; background: rgba(255,255,255,0.15);
  transform: skewX(-20deg); transition: left 0.5s ease;
}
.btn-submit:hover::before { left: 125%; }
.btn-submit.loading .btn-submit-text { opacity: 0; }

/* ===================================================
   SUCCESS POPUP
   =================================================== */
.success-overlay {
  position: fixed; inset: 0; z-index: 3000;
  background: rgba(6,23,17,0.85);
  backdrop-filter: blur(16px);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.success-overlay.open { opacity: 1; visibility: visible; }
.success-popup {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  max-width: 440px; width: 100%;
  text-align: center;
  position: relative; overflow: hidden;
  transform: scale(0.8);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 80px rgba(19,70,51,0.3);
}
.success-overlay.open .success-popup { transform: scale(1); }
.success-confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confetti-piece {
  position: absolute; width: 8px; height: 8px; border-radius: 2px;
  animation: confetti-fall linear forwards;
}
@keyframes confetti-fall {
  from { transform: translateY(-20px) rotate(0deg); opacity: 1; }
  to { transform: translateY(500px) rotate(720deg); opacity: 0; }
}
.success-icon-wrap {
  position: relative; width: 90px; height: 90px;
  margin: 0 auto 1.5rem;
  display: flex; align-items: center; justify-content: center;
}
.success-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid; animation: success-ring-expand 1s ease both;
}
.success-ring-1 {
  border-color: rgba(19,70,51,0.4);
  animation-delay: 0.2s;
}
.success-ring-2 {
  border-color: rgba(36,122,91,0.25);
  animation-delay: 0.4s;
  inset: -12px;
}
@keyframes success-ring-expand {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.success-check {
  width: 70px; height: 70px; border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  display: flex; align-items: center; justify-content: center;
  color: #fff; animation: check-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
  box-shadow: 0 0 40px rgba(200,148,26,0.5);
}
@keyframes check-pop {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.success-title {
  font-family: var(--font-display); font-size: 1.75rem;
  font-weight: 800; margin-bottom: 0.75rem;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.success-message { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; }
.success-detail {
  margin: 1rem 0;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 0.75rem 1rem; text-align: left;
  font-size: 0.8rem; color: var(--text-muted); line-height: 1.8;
}
.btn-success-close {
  margin-top: 1.5rem; padding: 0.85rem 2rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; border: none; border-radius: 50px;
  font-size: 0.9rem; font-weight: 700; cursor: pointer;
  transition: var(--transition-spring);
  box-shadow: 0 8px 25px rgba(19,70,51,0.35);
}
.btn-success-close:hover { transform: translateY(-2px); box-shadow: 0 15px 35px rgba(19,70,51,0.5); }

/* ===================================================
   ANIMATIONS
   =================================================== */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===================================================
   RESPONSIVE — TABLET (769px – 1024px)
   =================================================== */
/* =====================================================
   RESPONSIVE SYSTEM
   Breakpoints:
     Tablet  : 769px – 1024px
     Mobile  : ≤ 768px
     SM Mobile: ≤ 480px
     XS Mobile: ≤ 380px
   ===================================================== */

/* '' Testimonials '' */
.testimonials-section { padding: 5rem 1.25rem; }
.testimonials-grid { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }
.test-card {
  background: var(--bg-card); border: 1px solid rgba(19,70,51,0.08);
  border-radius: 16px; padding: 2rem;
  flex: 1; min-width: 260px; max-width: 300px;
  box-shadow: 0 4px 20px rgba(19,70,51,0.04);
  position: relative; overflow: hidden;
}
.test-stars { color: var(--detail-gold); font-size: 1.1rem; margin-bottom: 1rem; letter-spacing: 2px; }
.test-quote { position: absolute; top: 1.5rem; right: 1.5rem; width: 40px; height: 40px; }
.test-text { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 2rem; }
.test-user { display: flex; align-items: center; gap: 1rem; }
.test-user img { width: 45px; height: 45px; border-radius: 50%; object-fit: cover; }
.test-user strong { display: block; font-size: 0.95rem; color: var(--text-primary); }
.test-user span { font-size: 0.8rem; color: var(--text-secondary); }

/* '' CTA Banner '' */
.cta-banner-section { padding: 2rem 1.25rem 4rem; }
.cta-banner-box {
  background: rgba(19,70,51,0.04); border: 1px solid rgba(19,70,51,0.1);
  border-radius: 20px; padding: 3rem 4rem;
  display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap;
}
.cta-left { display: flex; align-items: center; gap: 2rem; flex: 1; min-width: 400px; }
.cta-text h2 {
  font-family: var(--font-display); font-size: 2rem; font-weight: 800;
  color: var(--text-primary); line-height: 1.2; margin-bottom: 0.5rem;
}
.cta-text p { color: var(--text-secondary); font-size: 1rem; line-height: 1.5; margin: 0; }
.cta-right { display: flex; flex-direction: column; align-items: flex-end; gap: 1.5rem; }
.cta-badges { display: flex; gap: 1.5rem; }
.c-badge { display: flex; align-items: center; gap: 0.75rem; }
.cb-icon { width: 40px; height: 40px; border-radius: 50%; background: rgba(19,70,51,0.06); display: flex; align-items: center; justify-content: center; }
.c-badge span { font-size: 0.8rem; line-height: 1.3; color: var(--text-secondary); }
.c-badge strong { color: var(--text-primary); }
.btn-cta-demo {
  background: var(--primary); color: white; padding: 1rem 2rem;
  border-radius: 50px; font-weight: 700; border: none; font-size: 1rem; cursor: pointer; transition: transform 0.2s;
}
.btn-cta-demo:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(19,70,51,0.2); }

/* '' Footer '' */
.site-footer { padding: 4rem 1.25rem 2rem; border-top: 1px solid rgba(19,70,51,0.1); }
.footer-grid { display: grid; grid-template-columns: 2fr 1.5fr 1fr 1.5fr; gap: 3rem; margin-bottom: 3rem; }
.footer-logo { display: flex; align-items: center; margin-bottom: 1.5rem; }
.brand-desc { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 1.5rem; max-width: 90%; }
.academic-partner {
  background: rgba(19,70,51,0.08); color: var(--primary); font-weight: 700; font-size: 0.8rem;
  padding: 0.5rem 1rem; border-radius: 50px; display: inline-block; margin-bottom: 1rem;
}
.founded-text { font-size: 0.8rem; color: var(--text-secondary); max-width: 90%; line-height: 1.5; }
.footer-col h4 { font-size: 1.1rem; color: var(--primary); margin-bottom: 1.5rem; font-weight: 700; }
.contact-list, .links-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1.25rem; }
.contact-list li { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.9rem; color: var(--text-primary); line-height: 1.5; }
.contact-list li svg { flex-shrink: 0; color: var(--detail-gold); margin-top: 2px; }
.links-list li a { text-decoration: none; color: var(--text-primary); font-size: 0.9rem; font-weight: 600; transition: var(--transition); display: inline-block; }
.links-list li a:hover { color: var(--primary); transform: translateX(5px); }
.trust-box { background: var(--bg-card); border: 1px solid rgba(19,70,51,0.08); border-radius: 12px; padding: 1.25rem; margin-top: 1.5rem; }
.trust-top { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.trust-top span { font-size: 0.8rem; line-height: 1.3; color: var(--text-secondary); }
.trust-top strong { color: var(--text-primary); }
.trust-avatars { display: flex; align-items: center; gap: 0.75rem; }
.avatar-imgs { display: flex; align-items: center; }
.avatar-imgs img { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--bg-card); margin-left: -8px; object-fit: cover; }
.avatar-imgs img:first-child { margin-left: 0; }
.avatar-count { width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: white; display: flex; align-items: center; justify-content: center; font-size: 0.65rem; font-weight: 700; border: 2px solid var(--bg-card); margin-left: -8px; }
.happy-fam { font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); }
.footer-bottom { border-top: 1px solid rgba(19,70,51,0.1); padding-top: 2rem; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1rem; }
.fb-icon { color: var(--text-muted); opacity: 0.5; }
.footer-bottom p { font-size: 0.85rem; color: var(--text-secondary); margin: 0; }


/* =====================================================
   TABLET  769px – 1024px
   ===================================================== */
@media (min-width: 769px) and (max-width: 1024px) {

  /* Navbar */
  .nav-links { gap: 1.25rem; }
  .nav-link { font-size: 0.82rem; }

  /* Hero */
  .hero { gap: 2rem; padding: 100px 2rem 70px; }
  .hero-title { font-size: clamp(2.4rem, 5vw, 3.2rem); }
  .floating-card.card-3 { right: -15%; }

  /* Features */
  .fc-row-2 { max-width: 100%; }
  .features-custom-grid { max-width: 100%; padding: 0 1rem; }
  .fc-card { padding: 2rem 1.5rem; }

  /* Pricing */
  .pricing-grid { flex-direction: column; gap: 1.5rem; align-items: stretch; }
  .pricing-card { min-width: unset; }
  .wi-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .pricing-banner { flex-wrap: wrap; gap: 1rem; }
  .pb-item { flex: 1 1 45%; }

  /* Testimonials */
  .testimonials-grid { gap: 1rem; }
  .test-card { min-width: 220px; max-width: none; }

  /* CTA Banner */
  .cta-banner-box { padding: 2.5rem; gap: 2rem; }
  .cta-left { min-width: 0; flex: 1; gap: 1.5rem; }
  .cta-right { align-items: flex-start; }
  .cta-badges { flex-wrap: wrap; gap: 1rem; }
  .cta-text h2 { font-size: 1.6rem; }

  /* Portal */
  .portal-card { min-width: 260px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}


/* =====================================================
   MOBILE  ≤ 768px
   ===================================================== */
@media (max-width: 768px) {

/* =====================================================
   MOBILE  ≤ 768px  —  PREMIUM POLISH
   ===================================================== */
@media (max-width: 768px) {

  /* '' Navbar '' */
  .navbar { padding: 0 1rem; }
  .nav-inner {
    height: 60px; gap: 0;
    position: relative;
    justify-content: flex-start;
  }
  .nav-brand { position: static; z-index: 2; }
  .nav-brand .brand-icon { height: 36px !important; width: 46px !important; }
  .brand-name { font-size: 1.2rem; }
  .nav-links { display: none; }
  .nav-cta { display: none !important; }
  .nav-hamburger {
    display: flex; position: absolute; right: 0; margin-left: 0;
    width: 38px; height: 38px;
  }
  .mobile-nav-drawer { display: flex; flex-direction: column; }
  .mobile-nav-drawer { top: 60px; }

  /* '' Hero — Centered, Bold, Mobile-first '' */
  .hero {
    flex-direction: column; text-align: center;
    padding: 85px 1.25rem 50px;
    min-height: auto; gap: 1.5rem;
  }
  .hero-content { max-width: 100%; }
  .hero-badge { font-size: 0.75rem; padding: 0.3rem 0.8rem; }
  .hero-title { font-size: clamp(1.8rem, 7.5vw, 2.4rem); line-height: 1.15; }
  .hero-title-nowrap { white-space: normal; }
  .hero-subtitle {
    max-width: 100%; font-size: 0.9rem;
    margin-bottom: 1.5rem; line-height: 1.6;
  }
  .hero-actions {
    justify-content: center; flex-direction: column; gap: 0.75rem;
  }
  .btn-primary, .btn-secondary {
    width: 100%; justify-content: center;
    padding: 0.9rem 1.5rem; font-size: 0.95rem;
    border-radius: 50px;
  }
  .hero-stats {
    justify-content: center; gap: 1rem;
    background: var(--bg-card);
    padding: 1rem 1.25rem; border-radius: var(--radius-lg);
    border: 1px solid rgba(19,70,51,0.08);
    box-shadow: 0 4px 20px rgba(19,70,51,0.04);
    width: 100%;
  }
  .stat-number { font-size: 1.2rem; }
  .stat-label { font-size: 0.7rem; }
  .stat-divider { height: 28px; }

  /* Hero Visual — show a compact mobile version */
  .hero-visual { min-height: 160px; width: 100%; margin-top: -0.5rem; }
  .floating-card, .card-1, .card-2, .card-3 { display: none; }
  .hero-center-graphic { width: 130px; height: 130px; }
  .hcg-core { width: 60px; height: 60px; }
  .hcg-core svg { width: 36px; height: 36px; }
  .scroll-indicator { display: none !important; }

  /* '' Section Headers '' */
  .section-title { font-size: clamp(1.6rem, 6.5vw, 2.2rem); }
  .section-subtitle { font-size: 0.9rem !important; }
  .section-badge { font-size: 0.7rem !important; padding: 0.2rem 0.8rem !important; }
  .fh-divider { margin: 1rem 0; }

  /* '' About / Features '' */
  .about, .portal { padding: 3rem 1rem; }
  .feature-header { margin-bottom: 1.5rem; }
  .features-custom-grid { max-width: 100%; }
  .fc-row { flex-direction: column; gap: 0.75rem; }
  .fc-row-2, .fc-row-3 { max-width: 100%; }
  .fc-card {
    padding: 1.25rem; gap: 0.75rem;
    align-items: flex-start; flex-direction: row;
    border-radius: var(--radius-md);
  }
  .fcc-icon-wrap { width: 48px; height: 48px; flex-shrink: 0; border-radius: 12px; }
  .fcc-icon-wrap svg { transform: scale(0.75); }
  .fcc-content { flex: 1; }
  .fcc-title { font-size: 1rem; }
  .fcc-subtitle { font-size: 0.85rem; }
  .fcc-desc { font-size: 0.82rem; line-height: 1.5; }

  /* '' Portal Cards '' */
  .portal-cards { flex-direction: column; gap: 1rem; }
  .portal-card { min-width: unset; padding: 1.5rem 1.25rem; }
  .portal-divider { display: none; }
  .portal-btn { width: 100%; justify-content: center; }

  /* '' Pricing — Polished Mobile Layout '' */
  .pricing-section { padding: 3rem 1rem; }
  .pricing-header { margin-bottom: 1.5rem; }
  .pricing-title { font-size: 1.8rem; }
  .pricing-subtitle { font-size: 0.9rem; }
  .pricing-grid { flex-direction: column; gap: 1.25rem; }
  .pricing-card { min-width: unset; padding: 1.5rem 1.25rem; border-radius: 14px; }
  .ribbon-popular { right: 0.75rem; top: -8px; font-size: 0.7rem; padding: 0.5rem 0.75rem 1rem; }
  .pc-header { gap: 1rem; }
  .pc-icon-wrap { width: 60px; height: 60px; }
  .pc-title { font-size: 1.25rem; }
  .pc-desc { font-size: 0.85rem; }
  .pc-divider { margin: 1rem 0; }
  .wi-header { font-size: 0.85rem; margin-bottom: 1rem; }
  .wi-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
  .wi-item h4 { font-size: 0.78rem; }
  .wi-item p { font-size: 0.72rem; }
  .pc-fees { padding: 1rem; margin-bottom: 1.25rem; border-radius: 10px; }
  .fee-header { font-size: 0.8rem; margin-bottom: 0.75rem; }
  .fee-list { gap: 0.5rem; }
  .fee-list li { font-size: 0.85rem; }
  .fee-dots { margin: 0 6px; }
  .pc-btn { font-size: 0.9rem; padding: 0.85rem; border-radius: 50px; }
  .pricing-banner {
    flex-direction: column; gap: 0.75rem;
    padding: 1rem; border-radius: 10px;
  }
  .pb-item { width: 100%; }
  .pricing-disclaimer { font-size: 0.78rem; margin-top: 0.5rem; }

  /* '' Testimonials — Premium Mobile Cards '' */
  .testimonials-section { padding: 3rem 1rem; }
  .testimonials-grid {
    display: flex; flex-direction: column; gap: 0.75rem;
  }
  .test-card {
    max-width: 100%; min-width: unset;
    padding: 1.5rem; border-radius: 14px;
    display: flex; flex-direction: column;
  }
  .test-stars { font-size: 0.95rem; margin-bottom: 0.75rem; }
  .test-quote { width: 30px; height: 30px; top: 1rem; right: 1rem; }
  .test-text { font-size: 0.85rem; margin-bottom: 1rem; line-height: 1.55; }
  .test-user img { width: 38px; height: 38px; }
  .test-user strong { font-size: 0.85rem; }
  .test-user span { font-size: 0.75rem; }

  /* '' CTA Banner — Mobile Optimised '' */
  .cta-banner-section { padding: 1rem 1rem 2.5rem; }
  .cta-banner-box {
    flex-direction: column; padding: 1.5rem 1.25rem;
    gap: 1.25rem; align-items: center; text-align: center;
    border-radius: 16px;
  }
  .cta-left {
    min-width: 0; width: 100%; flex-direction: column;
    align-items: center; gap: 1rem;
  }
  .cta-brand-icon { display: none !important; }
  .cta-text h2 { font-size: 1.35rem; text-align: center; }
  .cta-text p { font-size: 0.85rem; text-align: center; }
  .cta-right { width: 100%; align-items: center; gap: 1rem; }
  .cta-badges { flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
  .c-badge { flex: 0 1 auto; }
  .cb-icon { width: 36px; height: 36px; }
  .c-badge span { font-size: 0.75rem; }
  .btn-cta-demo {
    width: 100%; text-align: center; display: flex;
    justify-content: center; font-size: 0.95rem;
    padding: 0.9rem 1.5rem;
  }

  /* '' Footer — Clean Mobile Grid '' */
  .site-footer { padding: 2.5rem 1rem 1.5rem; }
  .footer-grid {
    grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem;
  }
  .footer-col:first-child { grid-column: 1 / -1; }
  .footer-logo .brand-icon { height: 28px !important; width: 36px !important; }
  .footer-col h4 { margin-bottom: 0.75rem; font-size: 0.95rem; }
  .contact-list, .links-list { gap: 0.75rem; }
  .contact-list li { font-size: 0.82rem; }
  .links-list li a { font-size: 0.82rem; }
  .brand-desc { font-size: 0.82rem; margin-bottom: 1rem; }
  .academic-partner { font-size: 0.72rem; padding: 0.4rem 0.75rem; margin-bottom: 0.5rem; }
  .founded-text { font-size: 0.72rem; }
  .trust-box { padding: 1rem; margin-top: 1rem; }
  .trust-top span { font-size: 0.72rem; }
  .avatar-imgs img { width: 24px; height: 24px; }
  .avatar-count { width: 24px; height: 24px; font-size: 0.55rem; }
  .happy-fam { font-size: 0.72rem; }
  .footer-bottom { padding-top: 1.25rem; gap: 0.5rem; }
  .footer-bottom p { font-size: 0.78rem; }
  .fb-icon { width: 18px; height: 18px; }

  /* '' Modals — Bottom Sheet Style '' */
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal-container {
    max-width: 100%; max-height: 92vh;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    border-bottom: none;
  }
  .modal-container::before {
    content: ''; display: block;
    width: 40px; height: 4px;
    background: rgba(255,255,255,0.15);
    border-radius: 4px; margin: 0.75rem auto -0.5rem; flex-shrink: 0;
  }
  .modal-header { padding: 1.25rem 1.25rem 1rem; }
  .modal-body { padding: 1.25rem 1.25rem 2rem; }
  .modal-title { font-size: 1.15rem; }
  .modal-subtitle { font-size: 0.82rem; }
  .modal-close { top: 0.85rem; right: 0.85rem; }
  .subject-grid { gap: 0.4rem; }
  .subject-chip { font-size: 0.78rem; padding: 0.5rem 0.8rem; }
  .timeslot-grid { grid-template-columns: 1fr; gap: 0.4rem; }
  .time-chip { padding: 0.8rem 1rem; font-size: 0.82rem; }
  .stream-cards { grid-template-columns: 1fr; }
  .form-nav { flex-direction: column-reverse; gap: 0.6rem; }
  .btn-next, .btn-back, .btn-submit {
    width: 100%; justify-content: center;
    padding: 0.85rem 1.5rem; font-size: 0.9rem;
  }
  .success-popup { padding: 2rem 1.25rem; border-radius: var(--radius-xl); }
  .success-title { font-size: 1.3rem; }
}


/* =====================================================
   SMALL MOBILE  ≤ 480px
   ===================================================== */
@media (max-width: 480px) {
  .hero { padding: 78px 0.85rem 40px; }
  .hero-title { font-size: clamp(1.75rem, 8vw, 2.3rem); }
  .hero-subtitle { font-size: 0.85rem; }
  .hero-stats { padding: 0.85rem 1rem; gap: 0.6rem; }
  .stat-number { font-size: 1.05rem; }
  .stat-divider { height: 24px; }
  .hero-visual { min-height: 120px; }
  .hero-center-graphic { width: 100px; height: 100px; }
  .hcg-core { width: 50px; height: 50px; }
  .hcg-core svg { width: 28px; height: 28px; }

  /* Features: icon on top, text below */
  .fc-card { flex-direction: column; align-items: flex-start; padding: 1.15rem; }
  .fcc-icon-wrap { width: 44px; height: 44px; }

  /* Pricing */
  .pricing-title { font-size: 1.5rem; }
  .pricing-card { padding: 1.25rem 1rem; }
  .wi-grid { gap: 0.5rem; }
  .fee-list li { font-size: 0.8rem; }
  .pc-icon-wrap { width: 50px; height: 50px; }
  .pc-title { font-size: 1.1rem; }

  /* Testimonials */
  .test-card { padding: 1.25rem; }
  .test-text { font-size: 0.8rem; }
  .test-user img { width: 34px; height: 34px; }

  /* CTA */
  .cta-banner-box { padding: 1.25rem 1rem; }
  .cta-text h2 { font-size: 1.2rem; }
  .c-badge span { font-size: 0.7rem; }
  .cb-icon { width: 32px; height: 32px; }

  /* Footer: single column */
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-col:first-child { grid-column: auto; }
  .site-footer { padding: 2rem 0.85rem 1.25rem; }

  /* General */
  .brand-name { font-size: 1.1rem; }
  .about, .portal { padding: 2.5rem 0.85rem; }
  .section-title { font-size: clamp(1.4rem, 6vw, 1.8rem); }
  .modal-header { padding: 1rem 0.85rem; }
  .modal-body { padding: 1rem 0.85rem 1.5rem; }
}


/* =====================================================
   XS MOBILE  ≤ 360px
   ===================================================== */
@media (max-width: 360px) {
  .hero-title { font-size: 1.6rem; }
  .hero-subtitle { font-size: 0.8rem; }
  .pricing-title { font-size: 1.35rem; }
  .wi-grid { grid-template-columns: 1fr; }
  .footer-grid { gap: 1.25rem; }
  .cta-text h2 { font-size: 1.1rem; }
  .section-title { font-size: 1.4rem; }
  .btn-cta-demo { font-size: 0.85rem; padding: 0.8rem 0.9rem; }
  .brand-name { font-size: 1rem; }
  .nav-brand .brand-icon { height: 30px !important; width: 38px !important; }
}
}


/* ===================================================
   NEW HERO SECTION
   =================================================== */

/* Entrance animations */
@keyframes hn-fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes hn-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes hn-slide-right {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes hn-float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}
@keyframes hn-float-card {
  0%, 100% { transform: translateY(0px) rotate(-1deg); }
  50%       { transform: translateY(-8px) rotate(1deg); }
}
@keyframes hn-badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(19,70,51,0.22); }
  50%       { box-shadow: 0 0 0 8px rgba(19,70,51,0); }
}

/* '' Section wrapper '' */
.hero-new {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 2rem 80px;
  overflow: hidden;
}

/* Dot overlay */
.hero-new-bg-dots {
  position: absolute; top: 0; right: 0;
  width: 55%; height: 100%;
  background-image: radial-gradient(rgba(19,70,51,0.08) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  z-index: 0; pointer-events: none;
  animation: hn-fade-in 1.5s ease forwards;
}

/* '' Main two-column container '' */
.hero-new-container {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 3rem; position: relative; z-index: 1; width: 100%;
}

/* '' Left column '' */
.hn-left {
  flex: 1; max-width: 560px;
  display: flex; flex-direction: column; gap: 0;
}

/* Badge */
.hn-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--gold-soft), rgba(19,70,51,0.06)); color: var(--primary);
  padding: 6px 16px; border-radius: 50px;
  font-size: 0.78rem; font-weight: 700;
  font-family: var(--font-display); letter-spacing: 0.8px;
  margin-bottom: 1.25rem;
  border: 1px solid var(--gold-border);
  animation: hn-fade-up 0.6s ease forwards,
             hn-badge-pulse 2.5s ease 1s infinite;
  opacity: 0; width: fit-content;
}

/* Title */
.hn-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4.5vw, 4rem);
  font-weight: 900; line-height: 1.1;
  letter-spacing: 0; margin-bottom: 1.1rem;
  color: var(--primary-ultra, #061711);
  animation: hn-fade-up 0.7s ease 0.15s forwards;
  opacity: 0;
}
.hn-title-line {
  display: block;
}
.hn-title-line-tight {
  display: inline-flex;
  align-items: baseline;
  gap: 0.2em;
  flex-wrap: wrap;
}
.hn-emphasis {
  background: linear-gradient(135deg, var(--primary) 0%, var(--detail-gold) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Subtitle */
.hn-subtitle {
  color: var(--text-secondary); font-size: 1rem; line-height: 1.7;
  margin-bottom: 1.75rem; max-width: 480px; font-weight: 500;
  animation: hn-fade-up 0.7s ease 0.3s forwards;
  opacity: 0;
}

/* Buttons */
.hn-actions {
  display: flex; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap;
  animation: hn-fade-up 0.7s ease 0.45s forwards;
  opacity: 0;
}
.hn-btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: #134633; color: #fff;
  padding: 14px 28px; border-radius: 50px;
  font-size: 0.95rem; font-weight: 700; cursor: pointer;
  border: none; transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(19,70,51,0.3), 0 0 0 1px rgba(207,150,38,0.18) inset;
}
.hn-btn-primary:hover {
  background: #1a6348; transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(19,70,51,0.38), 0 0 22px var(--gold-glow);
}
.hn-btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: rgba(255,255,255,0.5); color: #134633;
  padding: 14px 28px; border-radius: 50px;
  font-size: 0.95rem; font-weight: 700; cursor: pointer;
  border: 2px solid rgba(19,70,51,0.35); transition: all 0.3s ease;
}
.hn-btn-secondary:hover {
  border-color: var(--primary); background: rgba(19,70,51,0.06);
  transform: translateY(-2px);
}

/* Features */
.hn-features {
  display: flex; gap: 1.5rem; margin-bottom: 2rem;
  animation: hn-fade-up 0.7s ease 0.6s forwards;
  opacity: 0;
}
.hn-feat {
  display: flex; flex-direction: column; align-items: flex-start; gap: 5px;
  flex: 1;
}
.hnf-icon {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(19,70,51,0.1), rgba(207,150,38,0.12));
  display: flex; align-items: center; justify-content: center;
  color: #134633; margin-bottom: 6px;
  border: 1px solid rgba(207,150,38,0.22);
  transition: background 0.3s, transform 0.3s;
}
.hn-feat:hover .hnf-icon { background: rgba(19,70,51,0.18); transform: scale(1.1); }
.hnf-title { font-size: 0.82rem; font-weight: 700; color: #071a13; }
.hnf-desc  { font-size: 0.73rem; color: #2b5a45; line-height: 1.4; }

/* Trust banner */
.hn-trust {
  display: flex; align-items: center; gap: 1rem;
  animation: hn-fade-up 0.7s ease 0.75s forwards;
  opacity: 0;
}
.hnt-avatars { display: flex; align-items: center; }
.hnt-avatars img {
  width: 38px; height: 38px; border-radius: 50%;
  border: 2px solid rgba(217,196,174,0.9); margin-left: -10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15); object-fit: cover;
}
.hnt-avatars img:first-child { margin-left: 0; }
.hnt-text { display: flex; flex-direction: column; gap: 2px; }
.hnt-top  { font-size: 0.85rem; font-weight: 700; color: #061711; }
.hnt-bot  { font-size: 0.8rem; color: var(--text-secondary); display: flex; align-items: center; gap: 5px; }
.stars    { color: var(--detail-gold); font-size: 0.85rem; }

/* '' Right visual '' */
.hn-visual {
  flex: 1; position: relative; max-width: 560px;
  display: flex; justify-content: flex-end; align-items: center;
  min-height: 500px;
  animation: hn-slide-right 0.9s ease 0.3s forwards;
  opacity: 0;
}
.hnv-bg-swoosh {
  position: absolute; bottom: -12%; right: -8%;
  width: 78%; height: 62%;
  background: linear-gradient(135deg, #134633 0%, #0C2E21 100%);
  border-radius: 50% 50% 0 60%;
  z-index: 0;
}
.hnv-image-wrapper {
  position: relative; z-index: 1;
  width: 88%; max-width: 460px;
  aspect-ratio: 3/4;
  border-radius: 50% 50% 10% 50% / 60% 60% 10% 60%;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0,0,0,0.22);
  border: 5px solid rgba(255,255,255,0.75);
}
.hnv-photo {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center top; display: block;
}
.hnv-testimonial {
  position: absolute; bottom: 6%; left: -12%;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  padding: 18px 22px; border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.14);
  max-width: 300px; z-index: 2;
  display: flex; gap: 12px; align-items: flex-start;
  border-left: 4px solid var(--primary);
  animation: hn-float-card 7s ease-in-out 1s infinite;
}
.hntc-quote {
  font-family: Georgia, serif; font-size: 3.5rem;
  color: var(--detail-gold); line-height: 0.6; margin-top: 8px; flex-shrink: 0;
}
.hntc-content p {
  font-size: 0.85rem; color: #334155; line-height: 1.6;
  margin: 0 0 8px; font-weight: 500;
}
.hntc-author { font-size: 0.82rem; font-weight: 700; color: var(--primary); }

/* ======================================
   TABLET  ≤ 1024px
   ====================================== */
@media (max-width: 1024px) {
  .hero-new-container {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .hn-left  { max-width: 100%; align-items: center; text-align: center; }
  .hn-badge { align-self: center; }
  .hn-subtitle { max-width: 100%; }
  .hn-actions { justify-content: center; }
  .hn-features { justify-content: center; }
  .hn-trust { justify-content: center; }
  .hn-visual {
    justify-content: center; width: 100%; max-width: 100%;
    min-height: 380px; margin: 0 auto;
  }
  .hnv-image-wrapper { width: 65%; max-width: 360px; }
  .hnv-testimonial {
    left: 50%; transform: translateX(-50%);
    bottom: -90px; width: 90%; max-width: 360px;
    animation: hn-float-card 7s ease-in-out 1s infinite;
  }
  .hnv-bg-swoosh { right: -5%; bottom: -8%; width: 88%; }
  .hero-new { padding: 110px 2rem 120px; }
}

/* ======================================
   MOBILE  ≤ 768px
   Reorder: badge > title > subtitle >
            buttons > IMAGE > features > trust
   ====================================== */
@media (max-width: 768px) {
  .hero-new {
    padding: 90px 1.25rem 60px;
    align-items: flex-start;
  }
  .hero-new-container {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  /* Make .hn-left "transparent" so its children
     become flex children of hero-new-container */
  .hn-left {
    display: contents;
  }

  /* Assign explicit order to ALL direct + promoted children */
  .hn-badge    { order: 1; margin-bottom: 1rem;
                 animation: hn-fade-up 0.5s ease 0s forwards; }
  .hn-title    { order: 2; margin-bottom: 0.9rem; text-align: left;
                 animation: hn-fade-up 0.5s ease 0.1s forwards; }
  .hn-subtitle { order: 3; margin-bottom: 1.25rem; text-align: left;
                 animation: hn-fade-up 0.5s ease 0.2s forwards; }
  .hn-actions  { order: 4; flex-direction: column; width: 100%; gap: 0.75rem;
                 margin-bottom: 1.5rem;
                 animation: hn-fade-up 0.5s ease 0.3s forwards; }
  .hn-visual   { order: 5; width: 100%; min-height: 300px;
                 justify-content: center; margin-bottom: 1.5rem;
                 animation: hn-slide-right 0.6s ease 0.35s forwards; }
  .hn-features { order: 6; width: 100%;
                 flex-direction: row; justify-content: space-between;
                 gap: 0.75rem; flex-wrap: nowrap; margin-bottom: 1.5rem;
                 animation: hn-fade-up 0.5s ease 0.45s forwards; }
  .hn-trust    { order: 7; justify-content: flex-start;
                 animation: hn-fade-up 0.5s ease 0.55s forwards; }

  /* Button tweaks */
  .hn-btn-primary, .hn-btn-secondary {
    width: 100%; justify-content: center; padding: 13px 20px;
  }

  /* Feature cards: vertical, centered */
  .hn-feat { align-items: center; text-align: center; flex: 1; }
  .hnf-icon { width: 38px; height: 38px; }
  .hnf-title { font-size: 0.75rem; }
  .hnf-desc  { font-size: 0.68rem; }

  /* Image: round blob, smaller */
  .hnv-image-wrapper {
    width: 78%; max-width: 300px; aspect-ratio: 4/5;
    margin: 0 auto;
    border-radius: 50% 50% 15% 50% / 55% 55% 15% 55%;
  }
  .hnv-bg-swoosh {
    width: 70%; height: 55%; right: 5%; bottom: -5%;
    border-radius: 40% 60% 0 60%;
  }
  /* Hide testimonial on mobile to avoid overlap */
  .hnv-testimonial { display: none; }

  /* Dots behind content on mobile */
  .hero-new-bg-dots { width: 100%; opacity: 0.4; }
}

/* ======================================
   SMALL MOBILE  ≤ 480px
   ====================================== */
@media (max-width: 480px) {
  .hero-new { padding: 80px 1rem 50px; }
  .hn-title { font-size: clamp(1.9rem, 8vw, 2.4rem); }
  .hnv-image-wrapper { width: 85%; }
  .hn-features { gap: 0.5rem; }
  .hnf-title { font-size: 0.7rem; }
  .hnf-desc  { display: none; }
}


  /* About Us Section Responsiveness */
  @media (max-width: 968px) {
    .about-section .section-container {
      grid-template-columns: 1fr !important;
      gap: 3rem !important;
    }
  }
  @media (max-width: 768px) {
    .about-section h2 {
      font-size: 2.2rem !important;
    }
    .about-stats {
      flex-direction: column !important;
      gap: 1.5rem !important;
    }
    .about-stats > div:nth-child(2) {
      width: 100% !important;
      height: 1px !important;
    }
  }


  /* New About Us Section Responsiveness */
  @media (max-width: 968px) {
    .about-top-grid {
      grid-template-columns: 1fr !important;
      gap: 3rem !important;
    }
    .features-white-card, .stats-green-banner {
      grid-template-columns: repeat(2, 1fr) !important;
    }
  }
  @media (max-width: 768px) {
    .about-left-content h2 {
      font-size: 2.5rem !important;
    }
    .features-white-card, .stats-green-banner {
      grid-template-columns: 1fr !important;
      gap: 1.5rem !important;
      padding: 1.5rem !important;
    }
    .feature-col {
      text-align: left !important;
      align-items: flex-start !important;
      flex-direction: row !important;
      gap: 1rem !important;
    }
    .feature-col > div:first-child {
      flex-shrink: 0;
      margin-bottom: 0 !important;
    }
    .stats-green-banner {
      justify-content: center;
    }
  }


/* New Animations for About Us section */
.feature-tile-anim {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 1.5rem;
  border-radius: 16px;
}
.feature-tile-anim:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(19, 70, 51, 0.08);
  background: white;
}

.stat-icon-anim {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.stats-green-banner > div:hover .stat-icon-anim {
  transform: scale(1.15) rotate(5deg);
  border-style: solid !important;
  background: rgba(255, 255, 255, 0.1);
}
