/* =========================================================
   Kannada Guru Landing Page
   Palette taken from the official logo (see KANNADA_GURU_BRAND_IDENTITY.md)
   Primary font: Spline Sans   Secondary font: Google Sans
   ========================================================= */

:root {
  /* Logo colours */
  --navy: #003049;
  --red: #D00000;
  --yellow: #FFBA08;
  --white: #FFFFFF;

  /* Supporting tones built on the logo navy */
  --navy-deep: #00243A;
  --navy-soft: #0B4566;
  --tint: #EEF3F6;
  --line: #D9E3EA;
  --ink: #0F2230;
  --body: #3E5262;
  --muted: #6B7F8E;
  --on-dark: rgba(255, 255, 255, 0.82);

  --red-hover: #B00000;

  --font-primary: "Spline Sans", "Google Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-secondary: "Google Sans", "Spline Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-kannada: "Noto Sans Kannada", sans-serif;

  --container: 1200px;
  --gutter: 24px;
  --section-y: clamp(64px, 8vw, 104px);
  --header-h: 84px;
  --logo-h: 56px;

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(0, 48, 73, 0.06);
  --shadow-md: 0 14px 34px rgba(0, 48, 73, 0.12);
  --shadow-red: 0 10px 26px rgba(208, 0, 0, 0.32);

  --ease: cubic-bezier(.22, .8, .24, 1);
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-secondary);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
address { font-style: normal; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-primary);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 700; }
h2 span { color: var(--red); }
h3 { font-size: 20px; font-weight: 600; line-height: 1.3; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.tint { background: var(--tint); }

.section-head {
  max-width: 760px;
  margin: 0 auto clamp(36px, 5vw, 56px);
  text-align: center;
}

.section-cta {
  display: flex;
  justify-content: center;
  margin-top: clamp(36px, 5vw, 52px);
}

.nowrap { white-space: nowrap; }

.i {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 700;
  border-radius: var(--r-sm);
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 13px 26px;
  border-radius: var(--r-pill);
  border: 2px solid transparent;
  font-family: var(--font-secondary);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .3s, color .3s, border-color .3s;
}

/* Light sweep across the button on hover */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn .i { transition: transform .35s var(--ease); }
.btn:hover .i { transform: rotate(-12deg) scale(1.08); }

.btn-lg { min-height: 58px; padding: 15px 30px; font-size: 17px; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: var(--shadow-red);
}
.btn-primary:hover { background: var(--red-hover); box-shadow: 0 16px 32px rgba(208, 0, 0, 0.38); }

.btn-light {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
.btn-light .i-wa { color: #1FAF54; }
.btn-light:hover { background: var(--yellow); border-color: var(--yellow); color: var(--navy); }
.btn-light:hover .i-wa { color: var(--navy); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 3px solid var(--yellow);
  transition: box-shadow .35s var(--ease), background-color .35s;
}
.site-header.is-scrolled {
  background: rgba(0, 48, 73, 0.97);
  box-shadow: 0 10px 30px rgba(0, 20, 32, 0.28);
  backdrop-filter: saturate(140%) blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 16px;
}

.brand { display: inline-flex; flex: 0 0 auto; }

/* Same logo file and same size in header and footer */
.brand-logo {
  height: var(--logo-h);
  width: auto;
  aspect-ratio: 190 / 85;
}

.header-cta { min-height: 48px; padding: 11px 22px; font-size: 15px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 85% 20%, rgba(11, 69, 102, 0.9), transparent 70%),
    var(--navy);
  color: var(--white);
  /* Hero fills the first screen below the sticky header */
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  padding: clamp(28px, 4vh, 56px) 0 clamp(64px, 9vh, 96px);
}

/* Drifting Kannada vowels (varnamale) behind the hero */
.hero-letters {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(-30px, -2vw, -10px);
  pointer-events: none;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.letters-track {
  display: flex;
  width: max-content;
  gap: clamp(28px, 4vw, 56px);
  font-family: var(--font-kannada);
  font-weight: 700;
  font-size: clamp(120px, 15vw, 220px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 186, 8, 0.16);
  animation: drift 70s linear infinite;
}
@keyframes drift {
  to { transform: translateX(-50%); }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(36px, 5vw, 72px);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px 9px 14px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
}
.dot {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
}
.dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: rgba(208, 0, 0, 0.45);
  animation: ping 1.8s var(--ease) infinite;
}
@keyframes ping {
  0% { transform: scale(.5); opacity: 1; }
  100% { transform: scale(1.9); opacity: 0; }
}

.hero h1 {
  margin-top: 20px;
  color: var(--white);
  font-size: clamp(34px, min(4.4vw, 6.4vh), 56px);
  font-weight: 700;
  line-height: 1.08;
}
.hero h1 .accent {
  display: block;
  margin-top: 6px;
  color: var(--yellow);
}

.hero-sub {
  margin-top: 18px;
  max-width: 58ch;
  font-size: clamp(16.5px, 1.3vw, 18.5px);
  color: var(--on-dark);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}
.hero-ctas .btn { min-width: 190px; }

.hero-media {
  position: relative;
  padding: 30px 30px 0 0;
}

/* Dotted pattern offset behind the hero image */
.hero-dots {
  position: absolute;
  top: 0;
  right: 0;
  width: 62%;
  height: 62%;
  border-radius: var(--r-lg);
  background: radial-gradient(rgba(255, 186, 8, 0.55) 1.6px, transparent 2px) 0 0 / 16px 16px;
  z-index: 0;
}

/* Google rating card over the hero image */
.rating-card {
  position: absolute;
  z-index: 3;
  left: -28px;
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 12px;
  border-radius: 16px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 18px 40px rgba(0, 16, 26, 0.3);
  animation: bob 6s ease-in-out infinite;
  transition: box-shadow .35s var(--ease);
}
.rating-card:hover { box-shadow: 0 22px 48px rgba(0, 16, 26, 0.4); }
.rating-g {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #FFF3D1;
  color: #E0A100;
}
.rating-g .i { width: 22px; height: 22px; }
.rating-text { display: grid; line-height: 1.25; }
.rating-top { display: flex; align-items: center; gap: 8px; }
.rating-top strong {
  font-family: var(--font-primary);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
}
.stars { display: inline-flex; gap: 2px; color: var(--yellow); }
.stars .i { width: 15px; height: 15px; }
.rating-sub { font-size: 13.5px; color: var(--muted); font-weight: 500; }

@keyframes bob {
  50% { transform: translateY(-10px); }
}

/* ---------- Image placeholders ---------- */
.ph {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 20px;
  text-align: center;
  color: var(--muted);
  background:
    repeating-linear-gradient(135deg, rgba(0, 48, 73, 0.045) 0 2px, transparent 2px 14px),
    #E3EBF0;
  border: 1.5px dashed #B9C9D4;
  border-radius: var(--r-md);
  overflow: hidden;
}
.ph-icon { width: 40px; height: 40px; color: #8EA4B3; }
.ph-label { font-size: 14px; font-weight: 500; color: #546B7B; max-width: 26ch; }
.ph-size { font-size: 12px; color: #7D93A2; }

.ph-hero {
  height: clamp(320px, calc(100svh - var(--header-h) - 200px), 580px);
  border-radius: var(--r-lg);
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 14px),
    #0B4566;
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 30px 60px rgba(0, 16, 26, 0.35);
}
.ph-hero .ph-icon { color: rgba(255, 255, 255, 0.55); }
.ph-hero .ph-label { color: rgba(255, 255, 255, 0.85); }
.ph-hero .ph-size { color: rgba(255, 255, 255, 0.6); }

.ph-dark {
  aspect-ratio: 10 / 9;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 14px),
    var(--navy-soft);
  border-color: rgba(255, 255, 255, 0.22);
}
.ph-dark .ph-icon { color: rgba(255, 255, 255, 0.55); }
.ph-dark .ph-label { color: rgba(255, 255, 255, 0.85); }
.ph-dark .ph-size { color: rgba(255, 255, 255, 0.6); }

.ph-card {
  aspect-ratio: 16 / 10;
  border-radius: var(--r-md) var(--r-md) 0 0;
  border-width: 0 0 1.5px;
}


/* ---------- Trust strip ---------- */
.trust {
  position: relative;
  z-index: 2;
  margin-top: -36px;
}
.trust-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--white);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--red);
  overflow: hidden;
}
.trust-list li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px 18px;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  text-align: left;
}
.trust-list li + li { border-left: 1px solid var(--line); }
.trust-list .i { width: 24px; height: 24px; color: var(--red); }
.trust-list .i-star { color: var(--yellow); }
.trust-two { display: grid; line-height: 1.3; }
.trust-two strong { font-weight: 600; }
.trust-two span { font-family: var(--font-secondary); font-size: 14.5px; font-weight: 500; color: var(--muted); }

/* ---------- Who these classes are for ---------- */
.who-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.who-intro p {
  margin-top: 20px;
  font-size: 18px;
  max-width: 52ch;
}
.who-intro .who-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 28px;
  padding: 18px 20px;
  border-radius: var(--r-sm);
  background: var(--tint);
  border-left: 4px solid var(--yellow);
  color: var(--ink);
  font-weight: 500;
  font-size: 17px;
}
.who-note .i { color: var(--red); margin-top: 3px; }

.audience {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.audience-item {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 26px 24px;
  border-radius: var(--r-md);
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.audience-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.audience-item p { font-size: 16.5px; }
.audience-item strong { color: var(--ink); font-weight: 700; }

/* Icon badge: soft yellow circle with a halo ring */
.ic {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #FFF3D1;
  color: var(--navy);
  box-shadow: 0 0 0 6px rgba(255, 186, 8, 0.14);
  flex: 0 0 auto;
  transition: background-color .35s, color .35s, box-shadow .45s var(--ease), transform .45s var(--ease);
}
.ic .i { width: 23px; height: 23px; }
.ic-sm { width: 44px; height: 44px; box-shadow: 0 0 0 5px rgba(255, 186, 8, 0.14); }
.ic-sm .i { width: 20px; height: 20px; }
.ic-lg { width: 60px; height: 60px; }
.ic-lg .i { width: 26px; height: 26px; }
.ic-dark {
  background: rgba(255, 186, 8, 0.16);
  color: var(--yellow);
  box-shadow: 0 0 0 6px rgba(255, 186, 8, 0.07);
}

.audience-item:hover .ic,
.course-card:hover .ic,
.mode-card:hover .ic,
.fee-card:hover .ic,
.method-item:hover .ic {
  background: var(--yellow);
  color: var(--navy);
  box-shadow: 0 0 0 10px rgba(255, 186, 8, 0.18);
  transform: scale(1.05);
}

/* ---------- Teaching method ---------- */
.method {
  position: relative;
  background: var(--navy);
  color: var(--on-dark);
  overflow: hidden;
}
.method-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}
.method h2 { color: var(--white); }
.method h2 span { color: var(--yellow); }
.method .lead {
  margin-top: 18px;
  font-size: 18px;
  max-width: 50ch;
}
.method-list {
  display: grid;
  gap: 14px;
  margin-top: 32px;
}
.method-item {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 20px 22px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform .4s var(--ease), background-color .4s, border-color .4s;
}
.method-item:hover {
  transform: translateX(8px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 186, 8, 0.5);
}
.method-item h3 { color: var(--white); font-size: 19px; }
.method-item p { margin-top: 2px; font-size: 16px; }

/* ---------- Courses ---------- */
.course-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.course-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 24px;
  padding: 34px 34px 36px;
  border-radius: var(--r-md);
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s;
}
.course-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--red);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .5s var(--ease);
}
.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.course-card:hover::before { transform: scaleY(1); transform-origin: top; }
.course-glyph {
  position: absolute;
  right: 18px;
  bottom: -38px;
  z-index: -1;
  font-family: var(--font-kannada);
  font-weight: 700;
  font-size: 150px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(0, 48, 73, 0.08);
  transition: -webkit-text-stroke-color .45s, transform .6s var(--ease);
}
.course-card:hover .course-glyph {
  -webkit-text-stroke-color: rgba(208, 0, 0, 0.18);
  transform: translateY(-8px);
}
.course-body { display: grid; gap: 10px; }
.course-body h3 { font-size: 21px; }
.course-body p { font-size: 16.5px; max-width: 46ch; }

/* ---------- Fees ---------- */
.fee-grid {
  display: grid;
  gap: 14px;
  max-width: 1000px;
  margin-inline: auto;
}
.fee-row-head,
.fee-card {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 0.8fr;
  align-items: center;
  gap: 16px;
}
.fee-row-head {
  padding: 0 28px 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}
.fee-card {
  padding: 22px 28px;
  border-radius: var(--r-md);
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.fee-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--yellow);
}
.fee-course {
  display: flex;
  align-items: center;
  gap: 16px;
}
.fee-course h3 { font-size: 19px; }
.fee-price strong {
  font-family: var(--font-primary);
  font-size: 26px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: -0.01em;
}
.fee-meta { font-weight: 500; color: var(--ink); }
.fee-k { display: none; }

.fees-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  margin-top: 36px;
}
.fee-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: var(--ink);
}
.fee-note .i { color: var(--red); }

/* ---------- Online / offline ---------- */
.mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.mode-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--white);
  overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.mode-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.mode-card .ph-card { aspect-ratio: 16 / 8; }
.mode-body {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 18px;
  row-gap: 6px;
  padding: 26px 28px 30px;
  flex: 1;
}
.mode-body .ic { grid-row: span 2; }
.mode-body h3 { padding-top: 12px; }

.areas {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px 28px;
  margin-top: 24px;
  padding: 28px 30px;
  border-radius: var(--r-md);
  background: var(--navy);
  color: var(--on-dark);
}
.areas h3 { color: var(--white); }
.areas p { margin-top: 6px; font-size: 16px; max-width: 62ch; }
.area-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 300px;
  justify-content: flex-end;
}
.area-chips li {
  padding: 8px 16px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  font-size: 14.5px;
  font-weight: 500;
  transition: background-color .3s, color .3s, border-color .3s;
}
.area-chips li:hover { background: var(--yellow); border-color: var(--yellow); color: var(--navy); }

/* ---------- Steps ---------- */
.step-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  counter-reset: none;
}
.step {
  position: relative;
  padding: 34px 30px 32px;
  border-radius: var(--r-md);
  background: var(--white);
  border: 1px solid var(--line);
  text-align: center;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.step-num {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #FFF3D1;
  color: var(--navy);
  font-family: var(--font-primary);
  font-size: 28px;
  font-weight: 700;
  box-shadow: 0 0 0 8px rgba(255, 186, 8, 0.14);
  transition: background-color .35s, color .35s, box-shadow .45s var(--ease);
}
.step:hover .step-num {
  background: var(--yellow);
  color: var(--navy);
  box-shadow: 0 0 0 12px rgba(255, 186, 8, 0.2);
}
.step p { margin-top: 10px; font-size: 16.5px; }

/* ---------- Reviews ---------- */
.reviews { background: var(--navy); }
.reviews h2 { color: var(--white); }
.reviews h2 span { color: var(--yellow); }
.rating-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 9px 18px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--white);
  font-weight: 500;
  transition: background-color .3s, border-color .3s;
}
.rating-line strong { font-family: var(--font-primary); font-size: 19px; }
.rating-line:hover { background: rgba(255, 255, 255, 0.14); border-color: var(--yellow); }
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.review {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 26px;
  margin: 0;
  padding: 34px 30px 28px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform .45s var(--ease), background-color .45s, border-color .45s;
}
.review:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 186, 8, 0.5);
}
.q-mark { width: 40px; height: 40px; color: var(--yellow); }
.review blockquote {
  margin: -8px 0 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--white);
  flex: 1;
}
.review figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--font-primary);
  font-weight: 600;
  color: var(--white);
}
.avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
}

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 14px; max-width: 880px; margin-inline: auto; }
.faq-item {
  border-radius: var(--r-md);
  background: var(--white);
  border: 1px solid var(--line);
  transition: border-color .35s, box-shadow .35s;
}
.faq-item[open] { border-color: var(--navy); box-shadow: var(--shadow-sm); }
.faq-item summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  transition: color .3s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--red); }
.faq-toggle {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--tint);
  flex: 0 0 auto;
  transition: background-color .35s, transform .45s var(--ease);
}
.faq-toggle::before,
.faq-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 2px;
  margin: -1px 0 0 -6.5px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform .45s var(--ease), background-color .35s;
}
.faq-toggle::after { transform: rotate(90deg); }
.faq-item[open] .faq-toggle { background: var(--red); transform: rotate(180deg); }
.faq-item[open] .faq-toggle::before,
.faq-item[open] .faq-toggle::after { background: var(--white); }
.faq-item[open] .faq-toggle::after { transform: rotate(0deg); }
.faq-answer {
  overflow: hidden;
  padding: 0 24px;
}
.faq-answer p { padding-bottom: 22px; font-size: 16.5px; max-width: 64ch; }

/* ---------- Final CTA ---------- */
.final { padding-bottom: var(--section-y); }
.final-panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(48px, 6vw, 80px) clamp(24px, 6vw, 80px);
  border-radius: var(--r-lg);
  background:
    radial-gradient(600px 300px at 15% 0%, rgba(11, 69, 102, 0.95), transparent 70%),
    var(--navy);
  text-align: center;
  color: var(--on-dark);
}
.final-panel h2 { color: var(--white); }
.final-panel h2 span { color: var(--yellow); }
.final-panel p {
  max-width: 60ch;
  margin: 18px auto 0;
  font-size: 18px;
}
.final-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}
/* Outlined Kannada word behind the final CTA */
.final-word {
  position: absolute;
  z-index: -1;
  right: -2%;
  bottom: -22%;
  font-family: var(--font-kannada);
  font-weight: 700;
  font-size: clamp(150px, 22vw, 300px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 186, 8, 0.2);
  pointer-events: none;
  white-space: nowrap;
}

/* ---------- Location: details left, map right ---------- */
.location-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 4vw, 56px);
  align-items: stretch;
}
.location-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.nap {
  display: grid;
  width: 100%;
  margin: 26px 0 30px;
}
.nap > li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.nap > li:first-child { padding-top: 4px; }
.nap h3 { font-size: 16px; margin-bottom: 4px; }
.nap address { font-size: 16px; color: var(--body); max-width: 44ch; }
.nap-link {
  font-family: var(--font-primary);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  transition: color .25s;
}
.nap-link:hover { color: var(--red); }
.nap .ic { background: var(--white); }

.hours {
  display: grid;
  gap: 8px;
  max-width: 360px;
  margin-top: 4px;
}
.hours li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 15.5px;
}
.hours strong { font-weight: 700; color: var(--ink); white-space: nowrap; }
.hours .is-closed strong { color: var(--red); }

.map-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: #E3EBF0;
  min-height: 460px;
  box-shadow: var(--shadow-sm);
}
.map-wrap iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Footer (structure matches reference) ---------- */
.footer {
  padding: clamp(64px, 7vw, 84px) 0 32px;
  background: var(--navy);
  color: var(--white);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
  align-items: start;
  gap: 48px;
}
.footer-brand p {
  margin-top: 26px;
  max-width: 420px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  line-height: 1.6;
}
.footer-label {
  margin: 0 0 12px;
  color: var(--yellow);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.footer-links {
  display: grid;
  gap: 6px;
  max-width: 400px;
}
.footer-links a {
  display: inline-flex;
  align-items: flex-start;
  gap: 12px;
  padding-block: 9px;
  margin-block: -3px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  line-height: 1.6;
  transition: color .25s;
}
.footer-links a:hover { color: var(--yellow); }
.footer-links .i {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  color: var(--yellow);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.66);
  font-size: 14.5px;
}
.footer-bottom p { text-wrap: balance; }
.profitcast-link {
  position: relative;
  color: rgba(255, 255, 255, 0.85);
  transition: color .25s;
}
.profitcast-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .4s var(--ease);
}
.profitcast-link:hover { color: var(--white); }
.profitcast-link:hover::after { transform: scaleX(1); transform-origin: left center; }

/* ---------- Floating Call & WhatsApp ---------- */
.float-btn {
  position: fixed;
  bottom: 28px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: var(--white);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  animation: floatIn .7s var(--ease) 1s backwards;
  transition: transform .35s var(--ease), bottom .35s var(--ease);
}
.float-btn .i { position: relative; z-index: 1; width: 26px; height: 26px; }
.float-btn::before,
.float-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  z-index: -1;
  animation: ring 2.4s ease-out infinite;
}
.float-btn::after { animation-delay: 1.2s; }
.float-call { left: 24px; background: var(--red); }
.float-call .i { animation: shake 3s ease-in-out infinite; }
.float-wa { right: 24px; background: #25D366; }
.float-btn:hover { transform: scale(1.1); }

@keyframes ring {
  0% { transform: scale(1); opacity: .55; }
  100% { transform: scale(1.75); opacity: 0; }
}
@keyframes floatIn {
  from { opacity: 0; transform: translateY(30px) scale(.6); }
  to { opacity: 1; transform: none; }
}
@keyframes shake {
  0%, 70%, 100% { transform: rotate(0); }
  74% { transform: rotate(-16deg); }
  78% { transform: rotate(14deg); }
  82% { transform: rotate(-12deg); }
  86% { transform: rotate(10deg); }
  90% { transform: rotate(0); }
}

.float-tip {
  position: absolute;
  bottom: 50%;
  transform: translateY(50%);
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: var(--navy);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .35s var(--ease);
}
.float-call .float-tip { left: calc(100% + 12px); transform: translate(-8px, 50%); }
.float-wa .float-tip { right: calc(100% + 12px); transform: translate(8px, 50%); }
.float-btn:hover .float-tip { opacity: 1; transform: translate(0, 50%); }

/* ---------- Mobile sticky CTA ---------- */
.mobile-cta { display: none; }

/* ---------- Motion: page load + scroll reveal ---------- */
.load-in {
  opacity: 0;
  transform: translateY(24px);
  animation: rise .9s var(--ease) forwards;
  animation-delay: calc(var(--d, 0) * 110ms + 120ms);
}
@keyframes rise { to { opacity: 1; transform: none; } }

.js .reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .85s var(--ease), transform .85s var(--ease);
  transition-delay: calc(var(--d, 0) * 100ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   Tablet (768px to 1023px)
   ========================================================= */
@media (max-width: 1023px) {
  :root { --header-h: 76px; --logo-h: 52px; }

  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-content { max-width: 720px; }
  .hero-media { max-width: none; }
  .ph-hero { height: clamp(220px, 26vh, 360px); }
  .rating-card { left: 16px; bottom: 16px; }

  .trust-list { grid-template-columns: repeat(2, 1fr); }
  .trust-list li:nth-child(3) { border-left: 0; }
  .trust-list li:nth-child(n+3) { border-top: 1px solid var(--line); }

  .who-grid { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: 1fr; }
  .method-media { order: 2; }
  .ph-dark { aspect-ratio: 16 / 9; }

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

  .areas { grid-template-columns: auto minmax(0, 1fr); }
  .area-chips { grid-column: 1 / -1; justify-content: flex-start; max-width: none; }

  .review-grid { gap: 16px; }
  .review { padding: 28px 22px 22px; }
  .review blockquote { font-size: 16px; }


  .location-grid { grid-template-columns: 1fr; }
  .map-wrap { min-height: 380px; }
}

/* =========================================================
   Mobile (below 768px)
   ========================================================= */
@media (max-width: 767px) {
  :root { --gutter: 16px; --header-h: 72px; --logo-h: 50px; }

  body { font-size: 16px; }
  .footer { padding-bottom: calc(32px + 86px + env(safe-area-inset-bottom)); }

  /* Header: logo centred and sticky */
  .site-header { border-bottom-width: 3px; }
  .header-inner { justify-content: center; }
  .header-cta { display: none; }

  /* Hero: mirrors the reference mobile layout */
  /* Hero fills the screen between the sticky header and the sticky CTA bar */
  .hero {
    align-items: stretch;
    min-height: calc(100vh - var(--header-h) - 80px);
    min-height: calc(100svh - var(--header-h) - 80px);
    padding: 22px 0 0;
    background: var(--navy);
  }
  .hero-grid { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .hero-content { padding-bottom: 18px; }
  .badge { font-size: 13.5px; padding: 7px 14px 7px 11px; }
  .hero h1 { margin-top: 16px; font-size: 29px; line-height: 1.14; }
  .hero h1 .accent { margin-top: 4px; }
  .hero-sub { margin-top: 12px; font-size: 15.5px; line-height: 1.55; }

  .hero-ctas { flex-wrap: nowrap; gap: 10px; margin-top: 20px; }
  .hero-ctas .btn {
    flex: 1 1 0;
    min-width: 0;
    min-height: 52px;
    padding: 12px 14px;
    font-size: 15.5px;
  }


  /* Image fills the rest of the screen and fades up into the navy */
  .hero-media {
    flex: 1 1 auto;
    display: flex;
    min-height: 140px;
    margin-inline: calc(var(--gutter) * -1);
    padding: 0;
  }
  .hero-media::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 55%;
    z-index: 2;
    background: linear-gradient(var(--navy), transparent);
    pointer-events: none;
  }
  .ph-hero {
    flex: 1;
    height: auto;
    border-radius: 0;
    border-width: 0;
    box-shadow: none;
    padding-top: 40px;
  }
  .hero-dots { display: none; }
  /* Centred so it sits between the two floating buttons */
  .rating-card {
    left: 50%;
    right: auto;
    bottom: 14px;
    transform: translateX(-50%);
    white-space: nowrap;
    padding: 8px 14px 8px 8px;
    gap: 10px;
    border-radius: 14px;
    animation: none;
  }
  .rating-g { width: 36px; height: 36px; border-radius: 10px; }
  .rating-top strong { font-size: 18px; }
  .stars .i { width: 13px; height: 13px; }
  .rating-sub { font-size: 12.5px; }
  .hero-letters { bottom: 0; top: auto; }
  .letters-track { font-size: 110px; }

  .trust { margin-top: 0; padding: 20px 0 0; }
  .trust-list { border-radius: var(--r-sm); }
  .trust-list li {
    flex-direction: column;
    gap: 8px;
    padding: 18px 10px;
    font-size: 14.5px;
    text-align: center;
    line-height: 1.3;
  }

  h2 { font-size: 28px; }
  .section-head { margin-bottom: 30px; }

  .who-intro p { font-size: 16.5px; }
  .audience { grid-template-columns: 1fr; gap: 12px; }
  .audience-item { flex-direction: row; align-items: center; padding: 18px; gap: 16px; }
  .audience-item p { font-size: 15.5px; }
  .audience-item .ic { width: 46px; height: 46px; }

  .method-item { padding: 16px 18px; }
  .method-item:hover { transform: none; }

  .course-grid { grid-template-columns: 1fr; gap: 14px; }
  .course-card { gap: 18px; padding: 24px 20px 26px; }
  .course-card .ic-lg { width: 50px; height: 50px; }
  .course-body h3 { font-size: 19px; }
  .course-body p { font-size: 15.5px; }
  .course-glyph { font-size: 120px; bottom: -30px; }

  /* Fees: table becomes stacked cards */
  .fee-row-head { display: none; }
  .fee-card {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 12px;
    padding: 20px;
  }
  .fee-course { grid-column: 1 / -1; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
  .fee-price { grid-column: 1 / -1; }
  .fee-k {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
  }
  .fee-price strong { font-size: 28px; }
  .fees-foot .btn { width: 100%; }
  .section-cta .btn,
  .final-ctas .btn { width: 100%; }

  .mode-grid { grid-template-columns: 1fr; gap: 18px; }
  .mode-body { padding: 22px 20px 24px; column-gap: 14px; }
  .mode-body .ic { width: 46px; height: 46px; }
  .areas { grid-template-columns: 1fr; padding: 24px 20px; gap: 16px; }

  .step-list { grid-template-columns: 1fr; gap: 14px; }
  .step {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 18px;
    text-align: left;
    padding: 22px 20px;
  }
  .step-num { grid-row: span 2; width: 54px; height: 54px; margin: 0; font-size: 24px; }
  .step p { margin-top: 4px; }

  .review-grid { grid-template-columns: 1fr; }
  .review { padding: 26px 22px 22px; }
  .review blockquote { font-size: 16.5px; }

  .faq-item summary { padding: 18px; font-size: 16.5px; }
  .faq-answer { padding: 0 18px; }
  .faq-answer p { font-size: 15.5px; padding-bottom: 18px; }

  .final-panel { border-radius: var(--r-md); }
  .final-panel p { font-size: 16.5px; }
  .final-word { font-size: 120px; bottom: -14%; }

  .map-wrap { min-height: 340px; border-radius: var(--r-md); }
  .location-info .btn { width: 100%; }
  .nap-link { font-size: 18px; }

  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; margin-top: 40px; }

  /* Floating buttons sit above the sticky CTA bar */
  .float-btn { bottom: 98px; width: 54px; height: 54px; }
  .float-call { left: 16px; }
  .float-wa { right: 16px; }
  .float-tip { display: none; }

  .mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 95;
    display: block;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    box-shadow: 0 -8px 24px rgba(0, 48, 73, 0.12);
    animation: barUp .6s var(--ease) .6s both;
  }
  .mobile-cta .btn { min-height: 56px; font-size: 16.5px; }

  @keyframes barUp {
    from { transform: translateY(100%); }
    to { transform: none; }
  }

  /* Hover lifts are for pointer devices */
  .audience-item:hover,
  .course-card:hover,
  .mode-card:hover,
  .step:hover,
  .review:hover,
  .fee-card:hover { transform: none; }
}

/* Shorter phones: tighten the hero so it still fits one screen */
@media (max-width: 767px) and (max-height: 780px) {
  .hero { padding-top: 18px; }
  .badge { font-size: 13px; }
  .hero h1 { margin-top: 14px; font-size: 27px; }
  .hero-sub { margin-top: 10px; font-size: 15px; line-height: 1.5; }
  .hero-ctas { margin-top: 18px; }
  .hero-media { min-height: 120px; }
  .ph-hero { padding-top: 24px; }
  .ph-hero .ph-size { display: none; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 25px; }
  .btn-lg { font-size: 16px; padding-inline: 20px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .load-in,
  .js .reveal { opacity: 1; transform: none; }
}
