/* =====================================================
   RANKS Institute — Main Stylesheet
   ===================================================== */

/* ---------- Design tokens ---------- */
:root {
  --blue: #2B4A9E;
  --blue-dark: #1D3570;
  --blue-tint: #EBF0FA;
  --orange: #F2701D;
  --orange-dark: #D9600F;
  --orange-tint: #FDEEE3;
  --charcoal: #1E222A;
  --text-secondary: #545A68;
  --offwhite: #F7F9FC;
  --white: #FFFFFF;
  --whatsapp: #25D366;
  --whatsapp-dark: #1EBE57;
  --border: #E3E7EF;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 20px rgba(30, 34, 42, 0.08);
  --shadow-hover: 0 10px 28px rgba(30, 34, 42, 0.14);

  --maxw: 1140px;
  --font-heading: "Poppins", "Sora", sans-serif;
  --font-body: "Inter", "Work Sans", sans-serif;

  --header-h: 80px;

  /* Accent used for gradient text / glow (periwinkle-blue, complements brand blue) */
  --accent: #6C7CFA;
  --surface-alt: var(--offwhite);
  --hero-bg-from: var(--blue-tint);
  --hero-bg-to: var(--white);
  --hero-grid-line: rgba(43, 74, 158, 0.08);
  --hero-grid-dot: rgba(43, 74, 158, 0.18);
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(43, 74, 158, 0.15);
  --scrollbar-track: var(--offwhite);
  --page-bg: #FFFFFF;
  --heading-color: #1D3570;

  color-scheme: light;
}

/* ---------- Dark theme ---------- */
[data-theme="dark"] {
  --blue: #5B7CE6;
  --blue-dark: #0B1220;
  --blue-tint: rgba(91, 124, 230, 0.16);
  --orange: #FF8A3D;
  --orange-dark: #F2701D;
  --orange-tint: rgba(255, 138, 61, 0.14);
  --charcoal: #E7ECFA;
  --text-secondary: #9BA6C4;
  --offwhite: #101828;
  --white: #141B2E;
  --border: rgba(255, 255, 255, 0.09);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.45);

  --accent: #8B9BFF;
  --hero-bg-from: #0B1220;
  --hero-bg-to: #131C33;
  --hero-grid-line: rgba(139, 155, 255, 0.10);
  --hero-grid-dot: rgba(139, 155, 255, 0.35);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.14);
  --scrollbar-track: #0B1220;
  --page-bg: #0B1220;
  --heading-color: #F3F5FC;

  color-scheme: dark;
  background: var(--page-bg);
}

body {
  transition: background-color 0.35s ease, color 0.35s ease;
  background: var(--page-bg) !important;
}
.site-header, .cat-card, .testimonial-card, .flip-front, .flip-back,
.mobile-nav, .dropdown-panel, .mobile-action-bar, .founder-photo-placeholder {
  transition: background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--heading-color);
}
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 1024px) {
  .container { padding: 0 24px; }
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blue);
  color: #fff;
  padding: 10px 16px;
  z-index: 999;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 15px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--orange);
  color: #fff;
}
.btn-primary:hover { background: var(--orange-dark); box-shadow: var(--shadow-hover); }
.btn-secondary {
  background: transparent;
  color: var(--blue);
  border: 1.5px solid var(--blue);
}
.btn-secondary:hover { background: var(--blue-tint); }
.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
}
.btn-whatsapp:hover { background: var(--whatsapp-dark); }
.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.6);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.12); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: height 0.2s ease, box-shadow 0.2s ease;
}
.site-header.is-scrolled {
  height: 64px;
  box-shadow: 0 2px 12px rgba(30,34,42,0.06);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.logo-link { display: flex; align-items: center; gap: 10px; }
.logo-link img { height: 48px; transition: height 0.2s ease; }
.site-header.is-scrolled .logo-link img { height: 40px; }

.main-nav { display: none; }
.main-nav ul { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  font-weight: 500;
  font-size: 15px;
  color: var(--charcoal);
  padding: 8px 2px;
  position: relative;
}
.main-nav a:hover { color: var(--blue); }
.has-dropdown { position: relative; }
.has-dropdown > a::after {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-left: 6px;
}
.dropdown-panel {
  position: absolute;
  top: 100%;
  left: -20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  padding: 18px;
  min-width: 560px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.has-dropdown:hover .dropdown-panel,
.has-dropdown:focus-within .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-panel .cat-group h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--orange);
  margin-bottom: 8px;
}
.dropdown-panel .cat-group a {
  display: block;
  font-size: 13.5px;
  padding: 5px 0;
  color: var(--text-secondary);
}
.dropdown-panel .cat-group a:hover { color: var(--blue); }

.header-actions { display: none; align-items: center; gap: 12px; }
.mobile-header-actions { display: flex; align-items: center; gap: 10px; }

.hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
}
.hamburger span,
.hamburger span::before,
.hamburger span::after {
  content: "";
  display: block;
  width: 22px; height: 2px;
  background: var(--charcoal);
  position: relative;
  transition: 0.2s;
}
.hamburger span::before { position: absolute; top: -7px; }
.hamburger span::after { position: absolute; top: 7px; }

@media (min-width: 1024px) {
  .main-nav { display: block; }
  .header-actions { display: flex; }
  .mobile-header-actions { display: none; }
}

/* Mobile nav overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 200;
  padding: 24px 20px;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.mobile-nav-close { width: 40px; height: 40px; font-size: 24px; }
.mobile-nav ul { display: flex; flex-direction: column; }
.mobile-nav > ul > li { border-bottom: 1px solid var(--border); }
.mobile-nav > ul > li > a, .mobile-accordion-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 4px;
  font-weight: 500;
  font-size: 17px;
  width: 100%;
  text-align: left;
}
.mobile-accordion-panel {
  display: none;
  padding: 0 4px 16px 14px;
}
.mobile-accordion-panel.is-open { display: block; }
.mobile-accordion-panel h4 { font-size: 11px; text-transform: uppercase; color: var(--orange); margin: 12px 0 6px; }
.mobile-accordion-panel a { display: block; padding: 6px 0; font-size: 15px; color: var(--text-secondary); }
.mobile-nav-actions { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 32px 0 24px;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero > .container { width: 100%; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange-tint);
  color: var(--orange-dark);
  font-weight: 500;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero p.lead {
  font-size: 16.5px;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 28px;
}

@media (min-width: 1024px) {
  .hero { padding: 48px 0 32px; }
}

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--blue-dark);
  padding: 22px 0;
}
.trust-strip ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  text-align: center;
}
.trust-strip li {
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.trust-strip i { color: var(--orange); font-size: 16px; }
@media (min-width: 768px) {
  .trust-strip ul { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Section basics ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--offwhite); }
.section-head {
  max-width: 640px;
  margin: 0 auto 40px;
  text-align: center;
}
.section-head .eyebrow {
  color: var(--orange);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 10px;
}
.section-head h2 { font-size: 26px; margin-bottom: 12px; }
.section-head p { color: var(--text-secondary); font-size: 15.5px; }
@media (min-width: 1024px) {
  .section { padding: 96px 0; }
  .section-head h2 { font-size: 32px; }
}

/* ---------- About snapshot ---------- */
.about-snapshot { display: grid; gap: 28px; align-items: center; }
.about-snapshot .copy p { color: var(--text-secondary); margin-bottom: 16px; font-size: 15.5px; }
.about-snapshot .visual {
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  background: var(--offwhite);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-secondary);
  text-align: center;
  padding: 24px;
  overflow: hidden;
}
.about-snapshot .visual.has-photo {
  border-style: solid;
  padding: 0;
}
.about-snapshot .visual.has-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.about-snapshot .visual i { font-size: 32px; color: var(--blue); }
.about-snapshot .visual span { font-size: 13px; }
@media (min-width: 1024px) {
  .about-snapshot { grid-template-columns: 1.1fr 0.9fr; }
}

/* ---------- Why choose grid ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.why-card:hover { box-shadow: none; }
@media (min-width: 768px) {
  .why-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Course categories ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.cat-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 16px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--blue); }
.cat-card .icon-badge {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--blue-tint);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  font-size: 20px;
}
.cat-card h3 { font-size: 15px; margin-bottom: 4px; }
.cat-card p { font-size: 12.5px; color: var(--text-secondary); }
@media (min-width: 768px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(5, 1fr); }
}

/* ---------- Stats ---------- */
.stats-section { background: var(--blue); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-number {
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 600;
  color: #fff;
}
.stat-label { color: #C9D6EE; font-size: 13.5px; margin-top: 6px; }
@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  gap: 16px;
  width: 340px;
  flex-shrink: 0;
}
.t-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
}
.t-body { min-width: 0; }
.stars { color: var(--orange); font-size: 13px; margin-bottom: 8px; letter-spacing: 2px; }
.testimonial-card p.quote {
  font-size: 13.5px;
  color: var(--charcoal);
  font-style: italic;
  margin-bottom: 12px;
  line-height: 1.6;
}
.testimonial-card .author { font-weight: 600; font-size: 13.5px; color: var(--heading-color); }
.testimonial-card .location { font-size: 12px; color: var(--text-secondary); }

/* ---------- Founder quote ---------- */
.founder-strip {
  background: var(--offwhite);
  border-radius: var(--radius);
  padding: 32px 24px;
  display: grid;
  gap: 24px;
  align-items: center;
}
.founder-photo-placeholder {
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  background: var(--white);
  min-height: 160px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 12.5px;
  text-align: center;
  padding: 16px;
  overflow: hidden;
}
.founder-photo-placeholder.has-photo {
  border-style: solid;
  padding: 0;
  min-height: 220px;
}
.founder-photo-placeholder.has-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.founder-photo-placeholder i { font-size: 30px; color: var(--blue); }
.founder-quote blockquote {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 500;
  color: var(--heading-color);
  line-height: 1.5;
  margin-bottom: 14px;
}
.founder-quote .sig { font-weight: 600; font-size: 14px; }
.founder-quote .sig span { display: block; font-weight: 400; color: var(--text-secondary); font-size: 12.5px; }
@media (min-width: 768px) {
  .founder-strip { grid-template-columns: 220px 1fr; padding: 40px; }
}

/* ---------- Gallery preview ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.gallery-item {
  aspect-ratio: 1;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-sm);
  background: var(--offwhite);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 11px;
  text-align: center;
  padding: 8px;
}
.gallery-item i { font-size: 20px; color: var(--blue); }

/* Real photo tiles (once client images are in place) */
.gallery-photo {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}
.gallery-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-photo:hover img { transform: scale(1.06); }
.gallery-photo-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 8px 10px;
  background: linear-gradient(0deg, rgba(0,0,0,0.6), transparent);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
}
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(6, 1fr); } }

/* ---------- Video block ---------- */
.video-block {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--charcoal);
  aspect-ratio: 16/9;
  cursor: pointer;
}
.video-block img { width: 100%; height: 100%; object-fit: cover; opacity: 0.75; }
.video-block .play-btn {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.video-block .play-btn i {
  width: 64px; height: 64px;
  background: rgba(242,112,29,0.92);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
}
.video-block iframe { width: 100%; height: 100%; border: 0; }
.video-note { font-size: 12.5px; color: var(--text-secondary); margin-top: 10px; text-align: center; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--blue) 0%, var(--blue-dark) 100%);
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
}
.cta-banner h2 { color: #fff; font-size: 24px; margin-bottom: 10px; }
.cta-banner p { color: #C9D6EE; margin-bottom: 24px; font-size: 15px; }
.cta-banner .btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
@media (min-width: 1024px) {
  .cta-banner { padding: 56px 40px; }
  .cta-banner h2 { font-size: 30px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-dark); color: #C9D6EE; padding: 56px 0 24px; }
.footer-grid {
  display: grid;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-col h4 { color: #fff; font-size: 14px; margin-bottom: 14px; }
.footer-col p, .footer-col a { font-size: 13.5px; color: #C9D6EE; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col a:hover { color: #fff; }
.footer-logo img { height: 40px; margin-bottom: 12px; }
.footer-tagline { font-size: 12.5px; color: #8FA3D0; margin-bottom: 16px; }
.social-row { display: flex; gap: 12px; }
.social-row a {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.social-row a:hover { background: rgba(255,255,255,0.1); }
.map-thumb {
  margin-top: 12px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.map-thumb:hover { background: rgba(255,255,255,0.06); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  text-align: center;
  font-size: 12.5px;
  color: #8FA3D0;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr 1.2fr; }
}

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 88px;
  width: 56px; height: 56px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 26px;
  box-shadow: 0 6px 18px rgba(37,211,102,0.4);
  z-index: 90;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.whatsapp-float.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
@media (min-width: 1024px) {
  .whatsapp-float { bottom: 28px; }
}

/* ---------- Sticky mobile bottom bar ---------- */
.mobile-action-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 95;
  background: var(--white);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  box-shadow: 0 -4px 16px rgba(30,34,42,0.08);
  transition: transform 0.2s ease;
}
.mobile-action-bar.is-hidden { transform: translateY(100%); }
.mobile-action-bar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px;
  padding: 10px 0 12px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--charcoal);
}
.mobile-action-bar a:nth-child(2) { color: var(--whatsapp-dark); }
.mobile-action-bar a:nth-child(3) { color: var(--orange-dark); }
.mobile-action-bar i { font-size: 18px; }
@media (min-width: 1024px) {
  .mobile-action-bar { display: none; }
}

/* =====================================================
   3D / Motion enhancements (Tier 1 CSS, Tier 2 GSAP,
   Tier 3 WebGL hero). All respect prefers-reduced-motion.
   ===================================================== */

/* ---------- Hero: dark/light-aware, grid background, particle canvas ---------- */
.hero {
  background: linear-gradient(160deg, var(--hero-bg-from) 0%, var(--hero-bg-to) 100%);
}
.hero-inner {
  display: grid;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}
@media (min-width: 1024px) {
  .hero-inner { grid-template-columns: 1.15fr 0.85fr; }
}

/* Faint dot-grid texture, always present (cheap CSS, no JS needed) */
.hero-bg-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    radial-gradient(var(--hero-grid-dot) 1px, transparent 1px),
    linear-gradient(var(--hero-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--hero-grid-line) 1px, transparent 1px);
  background-size: 28px 28px, 56px 56px, 56px 56px;
  background-position: center;
  pointer-events: none;
}

/* Cursor-reactive spotlight — JS updates --mx/--my (0-100, % position) */
.hero-spotlight {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    circle at var(--mx, 50%) var(--my, 40%),
    var(--hero-grid-dot) 0%,
    transparent 45%
  );
  opacity: 0.9;
  transition: opacity 0.4s ease;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}
[data-theme="dark"] .hero-blob { opacity: 0.45; }
.hero-blob-blue { width: 320px; height: 320px; background: var(--blue); top: -80px; left: -80px; }
.hero-blob-orange { width: 260px; height: 260px; background: var(--orange); right: -60px; bottom: -60px; }

/* ---------- Gradient headline ---------- */
.hero-title {
  font-size: 40px;
  line-height: 1.05;
  margin-bottom: 14px;
}
.hero-title .gradient-text {
  display: inline-block;
  background: linear-gradient(90deg, var(--blue) 0%, var(--accent) 45%, var(--orange) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-shift 6s ease-in-out infinite;
}
@media (min-width: 768px) { .hero-title { font-size: 54px; } }
@media (min-width: 1024px) { .hero-title { font-size: 62px; } }

.hero-tagline {
  font-size: 18px;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 14px;
}

/* ---------- Hero CTA row (pills + icon buttons) ---------- */
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.btn-icon-circle {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--charcoal);
  font-size: 17px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-icon-circle:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-icon-whatsapp { background: var(--whatsapp); color: #fff; border-color: transparent; }

/* ---------- Founder card (glass, 3D tilt) ---------- */
.hero-founder-wrap {
  position: relative;
  max-width: 340px;
  margin: 0 auto;
  perspective: 1200px;
}
.founder-badge-float {
  position: absolute;
  top: -16px;
  right: 12px;
  z-index: 3;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  text-transform: uppercase;
  animation: badge-float 3.5s ease-in-out infinite;
}
.founder-badge-float strong { color: var(--charcoal); font-size: 13px; margin-left: 4px; }

.founder-card {
  position: relative;
  z-index: 2;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-hover);
  transform-style: preserve-3d;
  will-change: transform;
}
.founder-photo {
  position: relative;
  height: 180px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--blue) 0%, var(--accent) 100%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  margin-bottom: 18px;
}
.founder-photo img { width: 100%; height: 100%; object-fit: cover; }
.founder-monogram {
  font-family: var(--font-heading);
  font-size: 64px;
  font-weight: 600;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.02em;
}
.founder-info .founder-role {
  display: block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 600;
  margin-bottom: 4px;
}
.founder-info h3 { font-size: 20px; margin-bottom: 2px; color: var(--charcoal); }
.founder-info p { font-size: 13px; color: var(--text-secondary); }

/* ---------- Scroll indicator ---------- */
.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 2;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.scroll-indicator .scroll-line {
  width: 1px;
  height: 28px;
  background: linear-gradient(180deg, var(--text-secondary), transparent);
  animation: scroll-pulse 1.8s ease-in-out infinite;
}
@media (min-width: 768px) {
  .scroll-indicator { display: flex; }
}

/* ---------- Theme toggle switch ---------- */
.theme-toggle {
  position: relative;
  width: 52px;
  height: 30px;
  border-radius: 999px;
  background: var(--offwhite);
  border: 1px solid var(--border);
  padding: 3px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.theme-toggle .toggle-knob {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  color: var(--orange);
  transition: transform 0.3s cubic-bezier(0.4, 0.2, 0.2, 1);
}
[data-theme="dark"] .theme-toggle .toggle-knob {
  transform: translateX(21px);
  color: var(--accent);
}
.theme-toggle .toggle-knob i { pointer-events: none; }

/* ---------- Keyframes ---------- */
@keyframes float-slow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes badge-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes scroll-pulse {
  0% { opacity: 0.1; transform: scaleY(0.4); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
  100% { opacity: 0.1; transform: scaleY(0.4); transform-origin: top; }
}
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ---------- Glass header on scroll ---------- */
@supports (backdrop-filter: blur(10px)) {
  .site-header.is-scrolled {
    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
  [data-theme="dark"] .site-header.is-scrolled {
    background: rgba(11, 18, 32, 0.6);
  }
}

/* ---------- Flip cards (Why Choose Us) ---------- */
.flip-hint {
  text-align: center;
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-bottom: 18px;
}
.why-card {
  background: transparent;
  border: none;
  padding: 0;
  perspective: 1000px;
  display: block;
  width: 100%;
  min-height: 148px;
}
.flip-inner {
  position: relative;
  width: 100%;
  height: 148px;
  transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-style: preserve-3d;
}
.why-card.is-flipped .flip-inner,
.why-card:hover .flip-inner,
.why-card:focus-visible .flip-inner {
  transform: rotateY(180deg);
}
.flip-front, .flip-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 14px;
  text-align: center;
}
.flip-back {
  transform: rotateY(180deg);
  background: var(--blue);
}
.flip-back p { color: #fff; font-size: 13px; line-height: 1.5; }
.flip-front .icon-badge {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--orange-tint);
  color: var(--orange-dark);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
  font-size: 18px;
}
.flip-front h3 { font-size: 14.5px; color: var(--charcoal); font-weight: 500; }

/* ---------- Tilt-ready cards (JS adds inline transform via GSAP) ---------- */
.cat-card, .testimonial-card {
  transform-style: preserve-3d;
  will-change: transform;
}

/* ---------- Magnetic buttons ---------- */
.btn-primary, .btn-whatsapp {
  will-change: transform;
}

/* ---------- Reduced motion: strip heavy effects ---------- */
@media (prefers-reduced-motion: reduce) {
  .flip-inner { transition: none; }
  html { scroll-behavior: auto; }
  .founder-badge-float,
  .scroll-indicator .scroll-line,
  .hero-title .gradient-text {
    animation: none !important;
  }
  .hero-blob { display: none !important; }
}

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 300;
  background: transparent;
  pointer-events: none;
}
.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--accent), var(--orange));
  transition: width 0.1s linear;
}

/* =====================================================
   Loader, hero text reveal, ticket cards, marquee, process,
   vision/mission, FAQ, admission form, floating buttons
   ===================================================== */

/* ---------- Hero line-mask text reveal ---------- */
.line-mask { display: block; overflow: hidden; }
.hero-line {
  display: block;
  opacity: 0;
  transform: translateY(100%);
}
#hero-sub, #hero-sub2, #hero-ctas, #hero-eyebrow, #founder-card {
  opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
  .hero-line, #hero-sub, #hero-sub2, #hero-ctas, #hero-eyebrow, #founder-card {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---------- Generic scroll reveal (generic reveal system) ---------- */
/* ---------- Scroll reveal: plain CSS transition, driven by one shared
   IntersectionObserver in motion.js (no animation library needed for this) ---------- */
.reveal-init {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal-init.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Section head with search / actions on one row ---------- */
.section-head-row {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}
.section-head-row .eyebrow { color: var(--orange); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; display: block; margin-bottom: 10px; }
.section-head-row h2 { font-size: 26px; }
@media (min-width: 900px) {
  .section-head-row { flex-direction: row; align-items: flex-end; justify-content: space-between; }
}
.course-search-wrap {
  position: relative;
  width: 100%;
  max-width: 320px;
}
.course-search-wrap i {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: var(--text-secondary); font-size: 13px;
}
.course-search-wrap input {
  width: 100%;
  padding: 11px 16px 11px 38px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--charcoal);
  font-size: 13.5px;
  outline: none;
}
.course-search-wrap input:focus { border-color: var(--blue); }

/* ---------- Ticket-style course cards ---------- */
.ticket-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.ticket-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ticket-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.ticket-card.is-hidden { display: none; }
.ticket-body { padding: 22px 22px 28px; }
.ticket-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--orange-dark);
  border: 1px solid var(--orange);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 14px;
}
.ticket-tag-soon { color: var(--text-secondary); border-color: var(--border); }
.ticket-body h3 { font-size: 17px; margin-bottom: 8px; }
.ticket-desc { font-size: 13.5px; color: var(--text-secondary); margin-bottom: 14px; line-height: 1.55; }
.ticket-features { display: flex; flex-direction: column; gap: 6px; }
.ticket-features li { font-size: 12.5px; color: var(--text-secondary); display: flex; align-items: baseline; gap: 8px; }
.ticket-features i { color: var(--blue); font-size: 10px; }

.ticket-tear {
  position: relative;
  height: 1px;
  margin: 0 18px;
  border-top: 2px dashed var(--border);
}
.ticket-tear::before, .ticket-tear::after {
  content: '';
  position: absolute;
  top: -11px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--offwhite);
  border: 1px solid var(--border);
}
.ticket-tear::before { left: -29px; }
.ticket-tear::after { right: -29px; }

.ticket-footer {
  padding: 18px 22px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ticket-duration { display: block; font-size: 10px; letter-spacing: 0.08em; color: var(--text-secondary); margin-bottom: 4px; }
.ticket-price { font-size: 15px; }
.ticket-price strong { color: var(--heading-color); }
.ticket-price s { color: var(--text-secondary); font-size: 12px; margin-left: 4px; }
.btn-whatsapp-sm {
  background: var(--whatsapp);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 999px;
  flex-shrink: 0;
}
.btn-whatsapp-sm:hover { background: var(--whatsapp-dark); }
.ticket-footer { flex-wrap: wrap; }
.ticket-extra { display: none; }
.btn-knowmore {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--blue);
  border: 1px solid var(--border);
  padding: 9px 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-knowmore:hover { border-color: var(--blue); background: var(--blue-tint); }
.btn-knowmore i { font-size: 10px; transition: transform 0.2s ease; }
.btn-knowmore:hover i { transform: translateX(2px); }
.ticket-empty { text-align: center; color: var(--text-secondary); margin-top: 24px; display: none; }
.ticket-empty[hidden] { display: none; }
@media (min-width: 700px) {
  .ticket-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .ticket-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- How It Works: process steps ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 20px;
  position: relative;
}
.process-line-track { display: none; }
.process-step {
  position: relative;
  cursor: pointer;
  padding: 16px;
  margin: -16px;
  border-radius: var(--radius);
  transition: background-color 0.2s ease;
}
.process-step:hover, .process-step:focus-visible { background: var(--offwhite); }
.process-num {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 14px;
  color: var(--heading-color);
  transition: transform 0.3s cubic-bezier(0.4, 0.2, 0.2, 1);
}
.process-step.is-open .process-num { transform: scale(1.12); box-shadow: var(--shadow); border-color: var(--orange); }
.process-step h3 { font-size: 15.5px; margin-bottom: 4px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.process-step p { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.process-plus { font-size: 10px; color: var(--text-secondary); transition: transform 0.3s ease; flex-shrink: 0; }
.process-step.is-open .process-plus { transform: rotate(135deg); color: var(--orange); }
.process-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0.2, 0.2, 1);
}
.process-detail p { font-size: 12.5px; color: var(--text-secondary); padding-top: 10px; border-top: 1px dashed var(--border); margin-top: 10px; }
@media (min-width: 700px) {
  .process-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .process-grid { grid-template-columns: repeat(6, 1fr); }
  .process-line-track {
    display: block;
    position: absolute;
    top: 37px; left: 0; right: 0;
    height: 2px;
    background: var(--border);
    z-index: 0;
  }
  .process-line-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--blue), var(--orange));
  }
  .process-step { z-index: 1; }

  /* Headline + description reveal in sequence as the progress line reaches
     each step, instead of all appearing at once. Numbers stay always visible. */
  .process-step h3 {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }
  .process-step p {
    opacity: 0;
    transition: opacity 0.4s ease 0.15s;
  }
  .process-step.is-revealed h3 { opacity: 1; transform: none; }
  .process-step.is-revealed p { opacity: 1; }
}
@media (min-width: 1024px) and (prefers-reduced-motion: reduce) {
  .process-step h3, .process-step p { opacity: 1 !important; transform: none !important; }
}

/* ---------- Testimonial marquee ---------- */
.marquee-wrap {
  overflow: hidden;
  margin-top: 8px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track {
  display: flex;
  gap: 20px;
  width: max-content;
  padding: 4px 20px;
}
@media (prefers-reduced-motion: reduce) {
  .marquee-wrap { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
}

/* ---------- Vision / Mission ---------- */
.vision-mission-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 28px;
}
.vm-card {
  background: var(--offwhite);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.vm-label { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; margin-bottom: 8px; }
.vm-card p:not(.vm-label) { font-size: 13.5px; color: var(--text-secondary); line-height: 1.6; }
@media (min-width: 700px) {
  .vision-mission-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- FAQ accordion ---------- */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 14.5px;
  color: var(--heading-color);
}
.faq-trigger i { transition: transform 0.3s ease; color: var(--text-secondary); font-size: 12px; flex-shrink: 0; }
.faq-item.is-open .faq-trigger i { transform: rotate(180deg); }
.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0.2, 0.2, 1);
}
.faq-panel p { padding: 0 20px 18px; font-size: 13.5px; color: var(--text-secondary); line-height: 1.6; }

/* ---------- Admission form + map ---------- */
.admission-grid {
  display: grid;
  gap: 40px;
}
.admission-contact-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.admission-contact-list li { font-size: 13.5px; color: var(--text-secondary); display: flex; align-items: flex-start; gap: 10px; line-height: 1.5; }
.admission-contact-list i { color: var(--blue); margin-top: 2px; flex-shrink: 0; width: 14px; }
.admission-contact-list a { color: var(--charcoal); }
.map-embed-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4/3;
}
.map-embed-wrap iframe { width: 100%; height: 100%; border: 0; }

.admission-form {
  background: var(--offwhite);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.admission-form h3 { font-size: 19px; margin-bottom: 6px; }
.form-note { font-size: 13px; color: var(--text-secondary); margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 16px; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: var(--text-secondary); margin-bottom: 6px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 14px;
  color: var(--charcoal);
  background: var(--white);
  outline: none;
  font-family: inherit;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--blue); }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.form-privacy-note { font-size: 11.5px; color: var(--text-secondary); margin-top: 14px; line-height: 1.5; }
@media (min-width: 640px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .admission-grid { grid-template-columns: 1.05fr 0.95fr; }
}

/* ---------- Floating buttons: call + back-to-top ---------- */
.call-float {
  position: fixed;
  right: 20px;
  bottom: 152px;
  width: 52px; height: 52px;
  background: var(--blue);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 19px;
  box-shadow: 0 6px 18px rgba(43,74,158,0.35);
  z-index: 90;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
}
.call-float.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.call-float:hover { background: var(--blue-dark); }

.back-to-top {
  position: fixed;
  left: 20px;
  bottom: 28px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--charcoal);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  z-index: 90;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: var(--shadow);
}
.back-to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
@media (min-width: 1024px) {
  .call-float { bottom: 92px; }
}
@media (max-width: 1023px) {
  .call-float, .back-to-top { bottom: 84px; }
  .back-to-top { left: 16px; }
  .call-float { right: 16px; }
}

/* =====================================================
   Shared components for inner pages (About, Courses, Gallery,
   Testimonials, Contact, Course detail template)
   ===================================================== */

/* ---------- Page hero (lighter version of the home hero, no 3D layers) ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--hero-bg-from) 0%, var(--hero-bg-to) 100%);
  padding: 48px 0 40px;
  position: relative;
  overflow: hidden;
}
.page-hero .hero-bg-grid { position: absolute; inset: 0; z-index: 0; }
.page-hero .container { position: relative; z-index: 1; }
.breadcrumb { font-size: 12.5px; color: var(--text-secondary); margin-bottom: 14px; }
.breadcrumb a { color: var(--blue); }
.breadcrumb i { font-size: 9px; margin: 0 6px; }
.page-hero h1 { font-size: 30px; margin-bottom: 10px; }
.page-hero p.lead { font-size: 15.5px; color: var(--text-secondary); max-width: 620px; }
@media (min-width: 768px) {
  .page-hero h1 { font-size: 40px; }
}

/* ---------- Filter tabs (Courses category filter, Gallery category filter) ---------- */
.filter-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 32px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.filter-tabs::-webkit-scrollbar { display: none; }
.filter-tab {
  flex-shrink: 0;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.filter-tab:hover { border-color: var(--blue); color: var(--blue); }
.filter-tab.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ---------- Simple content sections (About page body copy, etc.) ---------- */
.prose { max-width: 720px; }
.prose p { color: var(--text-secondary); margin-bottom: 16px; font-size: 15.5px; line-height: 1.7; }
.prose h2 { font-size: 24px; margin: 32px 0 14px; }
.prose ul { margin: 0 0 16px 0; padding-left: 0; list-style: none; }
.prose ul li { color: var(--text-secondary); font-size: 15px; margin-bottom: 10px; padding-left: 26px; position: relative; }
.prose ul li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--orange);
  position: absolute;
  left: 0; top: 2px;
  font-size: 12px;
}

/* ---------- Founder full section (About page) ---------- */
.founder-section-grid {
  display: grid;
  gap: 32px;
}
.founder-portrait-wrap { position: relative; }
.founder-portrait {
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--blue), var(--accent));
  aspect-ratio: 4/5;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  position: relative;
}
.founder-portrait img { width: 100%; height: 100%; object-fit: cover; }
.founder-portrait .founder-monogram { font-size: 88px; color: rgba(255,255,255,0.3); }
.founder-portrait-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px;
  background: linear-gradient(0deg, rgba(0,0,0,0.55), transparent);
  color: #fff;
}
.founder-portrait-caption h3 { color: #fff; font-size: 19px; margin-bottom: 2px; }
.founder-portrait-caption p { color: rgba(255,255,255,0.75); font-size: 13px; }
.founder-section-copy .eyebrow { color: var(--orange); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; display: block; margin-bottom: 10px; }
.founder-section-copy h2 { font-size: 26px; margin-bottom: 18px; }
@media (min-width: 900px) {
  .founder-section-grid { grid-template-columns: 0.85fr 1.15fr; align-items: start; }
}

/* ---------- Course detail layout ---------- */
.course-detail-grid {
  display: grid;
  gap: 32px;
}
.course-fee-card {
  background: var(--offwhite);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.course-fee-card .fee-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.course-fee-card .fee-row strong { font-size: 26px; color: var(--heading-color); }
.course-fee-card .fee-row s { color: var(--text-secondary); font-size: 15px; }
.course-fee-card .fee-duration { font-size: 12.5px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 18px; }
.course-fee-card .btn { width: 100%; margin-bottom: 10px; justify-content: center; }
@media (min-width: 900px) {
  .course-detail-grid { grid-template-columns: 1.15fr 0.85fr; }
  .course-fee-card { position: sticky; top: 100px; }
}

.checklist-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.checklist-grid li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--text-secondary); }
.checklist-grid i { color: var(--blue); margin-top: 3px; flex-shrink: 0; }
@media (min-width: 700px) {
  .checklist-grid { grid-template-columns: 1fr 1fr; }
}

.mini-course-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mini-course-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.mini-course-card h4 { font-size: 14.5px; margin-bottom: 6px; }
.mini-course-card .price { font-size: 13px; color: var(--text-secondary); }
.mini-course-card .price strong { color: var(--heading-color); }

.who-should-join-list { display: flex; flex-direction: column; gap: 10px; }
.who-should-join-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text-secondary); }
.who-should-join-list i { color: var(--orange); margin-top: 3px; }

/* ---------- Feedback / general form (reuses admission-form look) ---------- */
.simple-form { background: var(--offwhite); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }

/* ---------- Full testimonials grid (Testimonials page) ---------- */
.testimonials-full-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 700px) {
  .testimonials-full-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .testimonials-full-grid { grid-template-columns: 1fr 1fr 1fr; }
}

/* ---------- Utility ---------- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
