/* ===== Tokens (from Figma) ===== */
:root {
  --yellow: #f8cc1b;
  --yellow-text: #f4c430;
  --hero-bg: #fff7d7;
  --page-bg: #f9fafb;
  --footer-bg: #fdf8e4;
  --border: #e8edea;
  --black: #000;
  --white: #fff;
  --font: "Inter", system-ui, sans-serif;
  --font-alt: "Poppins", "Inter", sans-serif;
  --container: 1160px;
  --header-h: 73px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--black);
  background: var(--page-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 40px);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--yellow);
  color: var(--white);
  border: 0;
  cursor: pointer;
  font-weight: 600;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn:hover { background: #f0c00b; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(248, 204, 27, .35); }
.btn:focus-visible { outline: 3px solid var(--black); outline-offset: 3px; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 20px;
  z-index: 50;
  margin-top: 50px;
  padding: 0 20px; /* keeps the bar off the screen edges and lined up with the page content */
}
.nav {
  position: relative;
  display: flex;
  align-items: center;
  height: var(--header-h);
  background: var(--white);
  border-radius: 50px;
  padding: 0 0 0 40px;
  max-width: var(--container);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: box-shadow .3s ease;
}
.site-header.scrolled .nav { box-shadow: 0 6px 24px rgba(0, 0, 0, .08); }

.brand { display: flex; align-items: flex-start; gap: 5px; height: 53px; flex-shrink: 0; }
.brand img { width: 42px; height: 53px; }
.brand-text { display: flex; flex-direction: column; padding-top: 10px; line-height: normal; }
.brand-text strong { font-size: 21px; font-weight: 700; line-height: 25px; }
.brand-text span { font-size: 17px; font-weight: 500; margin-left: 18px; line-height: 20px; margin-top: -3px; }

.nav-links { display: flex; gap: 34px; margin-left: auto; }
.nav-links a { font-size: 17px; position: relative; padding: 4px 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--yellow); transform: scaleX(0); transition: transform .25s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-cta-mobile { display: none; }

.nav-cta {
  margin-left: 0;
  width: 185px; height: 73px;
  display: flex; align-items: center; justify-content: center;
  background: var(--yellow); color: var(--white);
  border-radius: 50px; font-size: 18px; font-weight: 600;
  transition: background-color .2s ease;
}
.nav-cta:hover { background: #f0c00b; }
.menu-btn { display: none; background: none; border: 0; padding: 0; cursor: pointer; margin-left: auto; }
.menu-btn img { width: 40px; height: 40px; }

/* ===== Hero ===== */
.hero {
  background: var(--hero-bg);
  margin-top: calc(-50px - var(--header-h));
  padding: 167px 0 86px;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 675px) 405px;
  justify-content: space-between;
  align-items: start;
}
.hero-text { padding-top: 40px; }
.hero h1 {
  font-size: 53px; line-height: 78px; font-weight: 800;
  max-width: 625px;
}
.hero h1 .accent { color: var(--yellow-text); }
.hero-text p {
  margin-top: 22px;
  font-size: 20px; line-height: 33px; font-weight: 300;
}
.btn-hero {
  margin-top: 10px;
  width: 166px; height: 62px;
  border-radius: 11px;
  font-family: var(--font-alt); font-size: 16px; line-height: 22.4px;
}
.hero-visual { position: relative; width: 405px; height: 428px; }
.hero-card {
  position: absolute; left: 0; bottom: 0;
  width: 405px; height: 308px;
  background: var(--yellow); border-radius: 31px;
}
.hero-photo {
  position: absolute; right: 0; top: 0;
  width: 382px; height: 428px; overflow: hidden;
}
.hero-photo img {
  position: absolute; top: 0; left: -5.71%;
  width: 112%; height: 100%; max-width: none;
}

/* ===== Section basics ===== */
.section-title {
  font-size: 24px; font-weight: 600; line-height: normal;
  text-align: center;
}
.section-title.left { text-align: left; }

/* ===== Courses ===== */
.courses { padding: 81px 0 50px; }
.course-list {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, 344px);
  justify-content: space-between;
  gap: 24px;
}
.course-card {
  width: 344px; min-height: 409px; padding-bottom: 16px;
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.course-card:hover { transform: translateY(-6px); box-shadow: 0 14px 30px rgba(0, 0, 0, .08); }
.course-banner {
  position: relative;
  height: 207px; flex-shrink: 0;
  background: var(--yellow);
  border-radius: 15px 15px 0 0;
  overflow: hidden;
}
.course-banner .deco { position: absolute; max-width: none; height: auto; pointer-events: none; }
.crop { position: absolute; overflow: hidden; }
.crop img { position: absolute; max-width: none; }
.crop-maths { left: 141px; top: 17px; width: 204px; height: 190px; }
.crop-maths img { left: -34.7%; top: -21.43%; width: 169.59%; height: 121.43%; }
.crop-tamil { left: 41px; top: 23px; width: 264px; height: 184px; }
.crop-tamil img { left: -14.6%; top: -17.02%; width: 133.33%; height: 127.32%; }
.course-photo-science { position: absolute; left: 0; top: 20px; width: 344px; height: 187px; object-fit: cover; max-width: none; }
.crop-deco { overflow: hidden; }
.crop-deco img { position: absolute; left: 0; top: -35.19%; width: 100%; height: 184.89%; max-width: none; }

.course-body { padding: 15px 15px 0; display: flex; flex-direction: column; flex: 1; }
.course-boards {
  align-self: flex-start; margin-bottom: 6px; padding: 3px 10px; border-radius: 50px;
  background: var(--hero-bg); border: 1px solid #f3dd7a; font-size: 12px; font-weight: 600; color: #6b5200;
}
.course-body h3 { font-size: 24px; font-weight: 600; line-height: normal; min-height: 58px; max-width: 271px; }
.course-body h3[lang="ta"] { max-width: 299px; }
.course-body p { margin-top: 10px; font-size: 13px; line-height: normal; max-width: 314px; }
.btn-small {
  align-self: center;
  margin-top: auto;
  margin-bottom: 11px;
  padding: 8px 46px;
  border-radius: 5px;
  font-size: 15px; line-height: normal;
}

/* ===== Why ===== */
.why { padding: 90px 0 62px; }
.why-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 468px 637px;
  justify-content: space-between;
  align-items: center;
}
.why-logo { width: 468px; height: 468px; border-radius: 30px; margin-left: 2px; }
.why-list { display: flex; flex-direction: column; gap: 25px; }
.why-item {
  display: flex; align-items: center; gap: 9px;
  min-height: 60px;
  padding: 4px 10px 4px 20px;
  background: var(--white);
  border-radius: 10px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.why-item:hover { transform: translateX(6px); box-shadow: 0 6px 18px rgba(0, 0, 0, .06); }
.why-item img { width: 35px; height: 35px; object-fit: contain; flex-shrink: 0; }
.why-item p { font-size: 18px; line-height: 26px; padding-left: 0; }
.why-item strong { font-weight: 600; }

/* ===== About ===== */
.about { padding: 80px 0 30px; }
.about-text {
  margin-top: 30px;
  font-size: 20px; line-height: 33px;
  text-align: center;
}

/* ===== Testimonials ===== */
.testimonials { padding: 100px 0 80px; }
.testimonial-list {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, 350px);
  justify-content: space-between;
  gap: 40px;
  padding: 0 0 9px 9px;
}
.testimonial {
  height: 218px;
  background: var(--white);
  border-radius: 10px;
  box-shadow: -9px 9px 0 0 var(--yellow);
  padding: 16px 12px;
  display: flex; flex-direction: column;
  font-weight: 500; font-size: 16px; line-height: normal;
  transition: transform .2s ease, box-shadow .2s ease;
}
.testimonial:hover { transform: translate(3px, -3px); box-shadow: -12px 12px 0 0 var(--yellow); }
.testimonial blockquote { flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 1px; }
.testimonial figcaption { font-weight: 500; }
.testimonial figcaption a:hover { text-decoration: underline; }

/* ===== Contact ===== */
.contact { padding: 50px 0 50px; }
.contact-inner { max-width: calc(1138px + 40px); }
.contact-sub {
  margin-top: 25px; text-align: center;
  font-size: 15px; font-weight: 500; color: rgba(0, 0, 0, .71);
}
.contact-form {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 50px;
  row-gap: 30px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field-full { grid-column: 1 / -1; }
.field label { font-family: var(--font-alt); font-size: 16px; line-height: 24px; }
.field input, .field textarea {
  width: 100%;
  height: 52px;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  font-family: var(--font-alt); font-size: 16px;
  padding: 0 14px;
  color: var(--black);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { height: 100px; padding: 12px 14px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(248, 204, 27, .25); }
.field input::placeholder { color: rgba(0, 0, 0, .45); }
.field input.invalid { border-color: #e5484d; }

.phone-input { position: relative; }
.phone-input input { height: 53px; padding-left: 87px; }
.phone-prefix {
  position: absolute; left: 2px; top: 2px;
  width: 72px; height: 49px;
  display: flex; align-items: center; gap: 5px; padding-left: 6px;
  background: #ececec; border-radius: 6px 0 0 6px;
  font-family: var(--font-alt); font-size: 13px;
}
.phone-prefix img { width: 25px; height: 25px; }

.form-actions { display: flex; align-items: center; gap: 20px; margin-top: -1px; }
.btn-send {
  width: 166px; height: 62px;
  border-radius: 26px;
  font-family: var(--font-alt); font-size: 16px; line-height: 22.4px;
}
.form-status { font-size: 15px; font-weight: 500; }
.form-status.error { color: #c62828; }
.form-status.ok { color: #2e7d32; }

/* ===== Footer ===== */
.footer { background: var(--footer-bg); margin-top: 50px; padding: 40px 0 30px; }
.footer-top {
  display: grid;
  grid-template-columns: 448px 145px 90px 228px;
  justify-content: space-between;
  column-gap: 40px;
  max-width: calc(1149px + 40px);
  padding-left: 31px;
}
.footer-about p { margin-top: 15px; font-size: 14px; line-height: 29px; }
.socials { display: flex; gap: 25px; margin-top: 11px; padding-left: 12px; }
.socials a { transition: transform .2s ease; }
.socials a:hover { transform: translateY(-3px); }
.socials img { width: 30px; height: 30px; }
.footer-col { padding-top: 24px; }
.footer-col h4 { font-size: 16px; font-weight: 600; line-height: 29px; }
.footer-col ul { margin-top: 15px; display: flex; flex-direction: column; gap: 10px; }
.footer-col li { font-size: 14px; line-height: 29px; white-space: nowrap; }
.footer-col a:hover { text-decoration: underline; }
.footer-contact li { display: flex; gap: 10px; white-space: normal; align-items: flex-start; line-height: 22px; }
.footer-contact li:first-child { line-height: 18px; }
.footer-contact li img { width: 23px; height: 23px; flex-shrink: 0; }
.footer-contact ul { gap: 6px; }

.footer-bottom {
  margin-top: 20px;
  max-width: 1240px;
  border-top: 1px solid #000;
  padding-top: 15px;
  text-align: center;
  font-size: 14px; line-height: 29px;
}
.copyright span { font-size: 15px; }
.keywords { margin-top: 18px; }

/* ===== Demo notice + sample tags ===== */
.demo-banner {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  background: #1f1f1f; color: #fff;
  font-size: 14px; padding: 8px 48px; text-align: center; position: relative;
}
.demo-banner .sample-tag { vertical-align: middle; }
.demo-banner.hidden { display: none; }
.demo-close {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; color: #fff; font-size: 22px; cursor: pointer; line-height: 1;
}
.sample-tag {
  display: inline-block;
  font: 600 11px/1 var(--font); letter-spacing: .06em; text-transform: uppercase;
  color: #8a5a00; background: #fff1b8; border: 1px dashed #d9a400;
  padding: 4px 7px; border-radius: 4px;
}
.title-row { display: flex; align-items: center; justify-content: center; gap: 10px; }
.title-row.left { justify-content: flex-start; }
.center { text-align: center; }
.section-sub { text-align: center; margin-top: 10px; color: rgba(0, 0, 0, .65); font-size: 16px; }

/* ===== Header extras ===== */

/* ===== Hero extras ===== */
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 10px; }
.hero-actions .btn-hero { margin-top: 0; width: auto; padding: 0 28px; }
.btn-outline {
  background: transparent; color: #000;
  border: 2px solid var(--yellow);
  height: 62px; padding: 0 26px; border-radius: 11px;
  font-family: var(--font-alt); font-size: 16px;
}
.btn-outline:hover { background: var(--yellow); color: #fff; }
.rating-badge {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 22px; font-size: 14px; color: rgba(0, 0, 0, .75);
}
.rating-badge .stars { color: #f4b400; font-size: 18px; letter-spacing: 1px; }
.rating-badge:hover span:last-child { text-decoration: underline; }

/* ===== Stats ===== */
.stats { margin-top: -40px; position: relative; z-index: 2; }
.stats-grid {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--white); border-radius: 20px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .07);
  padding: 26px 20px;
}
.stat { text-align: center; padding: 0 10px; border-left: 1px solid #eee; }
.stat:first-child { border-left: 0; }
.stat strong { display: block; font-size: 36px; font-weight: 800; color: #000; }
.stat span { font-size: 15px; color: rgba(0, 0, 0, .65); }
.stats-tag { position: absolute; top: -10px; right: 18px; }

/* ===== Course details ===== */
.details {
  margin-top: 40px; background: var(--white); border-radius: 15px;
  padding: 24px 28px; border: 1px solid #f1eccd;
}
.details-head { display: flex; align-items: center; gap: 10px; }
.details-head h3 { font-size: 20px; font-weight: 600; }
.details-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 30px; align-items: start; }
.detail { display: flex; flex-direction: column; gap: 4px; padding-left: 14px; border-left: 3px solid var(--yellow); }
.detail-label { font-size: 13px; color: rgba(0, 0, 0, .6); text-transform: uppercase; letter-spacing: .04em; }
.detail-value { font-size: 17px; font-weight: 600; }

/* ===== Results ===== */
.results { padding: 70px 0 10px; }
.results-grid { margin-top: 30px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.result-card {
  background: var(--white); border-radius: 15px; padding: 26px 18px 22px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
  border-top: 6px solid var(--yellow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.result-card:hover { transform: translateY(-6px); box-shadow: 0 14px 30px rgba(0, 0, 0, .08); }
.avatar {
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--hero-bg); border: 2px solid var(--yellow);
  font-weight: 700; font-size: 20px; margin-bottom: 10px;
}
.score { font-size: 40px; font-weight: 800; line-height: 1.1; }
.score small { font-size: 16px; font-weight: 600; color: rgba(0, 0, 0, .5); }
.result-sub { font-weight: 600; font-size: 16px; }
.result-name { font-size: 14px; color: rgba(0, 0, 0, .6); }

/* ===== Teacher ===== */
.teacher {
  margin-top: 50px;
  display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: center;
  background: var(--white); border-radius: 20px; padding: 30px;
}
.teacher-photo {
  width: 260px; height: 260px; border-radius: 20px;
  background: var(--yellow);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: rgba(0, 0, 0, .55); font-size: 14px; font-weight: 600;
}
.teacher-photo img { width: 84px; height: auto; opacity: .55; }
.teacher-info h3 { font-size: 24px; font-weight: 600; }
.teacher-name { margin-top: 12px; font-size: 20px; font-weight: 700; }
.teacher-role { margin-top: 2px; color: #a07c00; font-weight: 600; }
.teacher-info > p:not(.teacher-name):not(.teacher-role) { margin-top: 12px; font-size: 16px; line-height: 26px; }
.teacher-points { margin-top: 14px; display: grid; gap: 8px; }
.teacher-points li { padding-left: 28px; position: relative; font-size: 15px; }
.teacher-points li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--yellow); color: #fff; font-size: 12px; font-weight: 700;
  display: grid; place-items: center;
}

/* ===== Testimonials extras ===== */
.reviews-actions { margin-top: 40px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.btn-reviews { height: 52px; border-radius: 26px; }
.btn-review-us {
  gap: 10px; height: 52px; padding: 0 24px; border-radius: 26px;
  background: #fff; color: #000; border: 2px solid #e6e1c8;
  font-family: var(--font-alt); font-size: 16px; box-shadow: 0 4px 14px rgba(0, 0, 0, .06);
}
.btn-review-us:hover { background: #fff; border-color: var(--yellow); }
.btn-review-us .g-logo { flex-shrink: 0; }

/* ===== FAQ ===== */
.faq { padding: 40px 0 30px; }
.faq-inner { max-width: 900px; }
.faq-list { margin-top: 30px; display: grid; gap: 14px; }
.faq details { background: var(--white); border-radius: 12px; border: 1px solid #eee; }
.faq summary {
  list-style: none; cursor: pointer;
  padding: 18px 56px 18px 22px; position: relative;
  font-size: 17px; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--yellow); color: #fff; display: grid; place-items: center;
  font-size: 20px; font-weight: 600; transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 22px 18px; font-size: 16px; line-height: 26px; color: rgba(0, 0, 0, .75); }
.faq summary:focus-visible { outline: 3px solid var(--yellow); border-radius: 12px; }

/* ===== Contact extras ===== */
.field select {
  width: 100%; height: 52px;
  border: 2px solid var(--border); border-radius: 8px; background: var(--white);
  font-family: var(--font-alt); font-size: 16px; padding: 0 12px; color: #000;
}
.field select:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(248, 204, 27, .25); }
.hp { position: absolute; left: -9999px; }
.btn-send:disabled { opacity: .6; cursor: wait; transform: none; }

.visit {
  margin-top: 60px;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: stretch;
  background: var(--white); border-radius: 20px; padding: 20px;
}
.map { width: 100%; height: 100%; min-height: 300px; border: 0; border-radius: 14px; }
.visit-info { padding: 10px 6px; display: flex; flex-direction: column; gap: 12px; }
.visit-info h3 { font-size: 22px; font-weight: 600; }
.visit-info p { font-size: 16px; line-height: 26px; }
.visit-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; }
.visit-actions .btn { height: 48px; padding: 0 22px; border-radius: 26px; font-family: var(--font-alt); font-size: 15px; }
.btn-whatsapp { background: #25d366; }
.btn-whatsapp:hover { background: #1ebe5b; box-shadow: 0 8px 18px rgba(37, 211, 102, .35); }

/* ===== Floating WhatsApp + mobile action bar ===== */
.wa-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #25d366; animation: pulse 2s ease-out infinite;
}
@keyframes pulse { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }
.action-bar { display: none; }

/* ===== Tamil mode ===== */

/* ===== Reveal animation (Desktop-2 prototype states) ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}

/* ===== Responsive ===== */
@media (max-width: 1240px) {
  .details-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-links { gap: 22px; }
  .nav-links a { font-size: 16px; }
  .nav-cta { width: 150px; }
  .hero-inner { grid-template-columns: minmax(0, 1fr) 405px; gap: 40px; }
  .hero h1 { font-size: 46px; line-height: 66px; }
  .course-list { display: flex; flex-wrap: wrap; justify-content: center; }
  .course-card { flex: 0 0 auto; }
  .why-grid { grid-template-columns: minmax(0, 400px) minmax(0, 637px); gap: 40px; }
  .why-logo { width: 100%; height: auto; }
  .testimonial-list { display: flex; flex-wrap: wrap; justify-content: center; }
  .testimonial-list > * { flex: 1 1 280px; max-width: 350px; }
  .footer-top { grid-template-columns: minmax(0, 1.6fr) auto auto minmax(0, 1fr); padding-left: 20px; }
}

@media (max-width: 900px) {
  :root { --header-h: 69px; }
  html { scroll-padding-top: 80px; }
  .site-header { top: 0; margin-top: 0; padding: 0; }
  .nav { border-radius: 0; padding: 0 30px; max-width: none; }
  .brand { gap: 13px; }
  .brand img { margin-top: 0; }
  .brand-text { padding-top: 5px; }
  .nav-cta { display: none; }
  .menu-btn { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; margin: 0;
    background: var(--white);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .08);
    max-height: 0; overflow: hidden;
    transition: max-height .3s ease;
  }
  .nav-links.open { max-height: 420px; }
  .nav-links li a { display: block; padding: 14px 30px; }
  .nav-links a::after { display: none; }
  .nav-cta-mobile { display: block; padding: 8px 30px 20px; }
  .nav-cta-mobile a { background: var(--yellow); color: var(--white); border-radius: 50px; text-align: center; font-weight: 600; }

  .hero { margin-top: calc(-1 * var(--header-h)); padding: calc(var(--header-h) + 30px) 0 30px; }
  .hero-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 15px; }
  .hero-visual { order: -1; width: 324px; height: 342px; }
  .hero-card { width: 324px; height: 247px; }
  .hero-photo { width: 306px; height: 342px; }
  .hero-text { padding-top: 0; }
  .hero h1 { font-size: 32px; line-height: 43px; max-width: 340px; margin: 0 auto; }
  .hero-text p { font-size: 16px; line-height: 24px; max-width: 360px; margin: 20px auto 0; }
  .btn-hero { margin-top: 20px; }

  .courses { padding-top: 60px; }
  .courses .section-title { text-align: center; }
  /* cards wrap into a centred grid: 2 per row on tablets, 1 per row on phones */
  .course-list {
    display: flex; flex-wrap: wrap;
    justify-content: center; gap: 24px;
  }
  .course-card { flex: 0 0 auto; }

  .why { padding-top: 60px; }
  .why-grid { grid-template-columns: 1fr; justify-items: center; gap: 30px; }
  .why-logo { width: 344px; max-width: 100%; margin: 0; }
  .why-list { width: 100%; max-width: 637px; gap: 20px; }
  .why-item { padding-left: 5px; gap: 8px; }
  .why-item img { width: 30px; height: 30px; }
  .why-item p { font-size: 15px; line-height: 19px; }

  .about { padding-top: 60px; }
  .about-text { font-size: 18px; line-height: 33px; }

  .testimonials { padding: 60px 0; }
  .testimonial-list { grid-template-columns: minmax(0, 350px); gap: 30px; }
  .hero-actions { justify-content: center; }
  .hero-actions .btn-hero { margin-top: 0; }
  .rating-badge { flex-direction: column; gap: 2px; }

  .stats { margin-top: -10px; }
  .stats-grid { grid-template-columns: 1fr 1fr; row-gap: 20px; padding: 24px 10px; }
  .stat:nth-child(3) { border-left: 0; }
  .stat strong { font-size: 28px; }
  .stat span { font-size: 13px; }

  .details { padding: 20px; }
  .details-grid { grid-template-columns: 1fr 1fr; gap: 14px 16px; }
  .detail-value { font-size: 15px; }
  .detail-wide { grid-column: 1 / -1; order: -1; } /* batch times first, full width, one line each */

  .results { padding-top: 50px; }
  .results-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .result-card { padding: 20px 10px 18px; }
  .score { font-size: 32px; }

  .teacher { grid-template-columns: 1fr; justify-items: center; text-align: left; padding: 22px; gap: 20px; }
  .teacher-photo { width: 200px; height: 200px; }

  .faq summary { font-size: 16px; padding: 16px 52px 16px 16px; }
  .faq details p { padding: 0 16px 16px; font-size: 15px; }

  .visit { grid-template-columns: 1fr; padding: 14px; margin-top: 40px; }
  .map { min-height: 240px; }

  .wa-float { display: none; }
  .action-bar {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1.4fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--white); box-shadow: 0 -4px 18px rgba(0, 0, 0, .1);
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); gap: 8px;
  }
  .action-bar a {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    height: 46px; border-radius: 12px; font-weight: 600; font-size: 15px;
    background: #f3f4f6;
  }
  .action-bar a:nth-child(2) { background: #25d366; color: #fff; }
  .action-bar .bar-icon { width: 20px; height: 20px; flex-shrink: 0; display: block; }
  .action-bar .bar-call { color: #111; }
  .action-bar .bar-call .bar-icon { color: #16a34a; }
  .action-bar a { font-size: 14px; gap: 7px; white-space: nowrap; }
  .action-bar .bar-primary { background: var(--yellow); color: #fff; }
  body { padding-bottom: 66px; }
  .demo-banner { font-size: 12px; padding: 8px 40px 8px 14px; }

  .contact-form { grid-template-columns: 1fr; row-gap: 20px; }
  .contact-sub { margin-top: 12px; }
  .form-actions { justify-content: center; flex-direction: column; }

  .footer { padding-top: 20px; }
  .footer-top { grid-template-columns: 1fr; row-gap: 20px; padding-left: 25px; padding-right: 25px; }
  .footer-about .brand { margin: 0 auto; width: fit-content; }
  .footer-about p { font-size: 14px; }
  .socials { padding-left: 0; }
  .footer-col { padding-top: 0; }
  .footer-col ul { margin-top: 10px; }
  .footer-bottom { margin-top: 30px; padding: 20px 25px 0; border-top: 0; position: relative; }
  .footer-bottom::before { content: ""; position: absolute; top: 0; left: 25px; right: 25px; border-top: 1px solid #000; }
  .keywords { margin-top: 20px; }
}

@media (max-width: 380px) {
  .course-card { width: 300px; }
  .course-banner { transform-origin: top left; }
}

/* =========================================================
   Blog (blog/index.html and blog posts)
   ========================================================= */
.page-hero {
  background: var(--hero-bg);
  margin-top: calc(-50px - var(--header-h));
  padding: calc(50px + var(--header-h) + 60px) 0 60px;
}
.page-kicker { font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #8a6d00; }
.page-hero h1 { margin-top: 10px; font-size: 44px; line-height: 1.25; font-weight: 700; max-width: 760px; }
.page-hero h1 .accent { color: var(--yellow-text); }
.page-lead { margin-top: 16px; font-size: 18px; line-height: 1.6; font-weight: 300; max-width: 640px; }

.blog-list-section { padding: 60px 0 20px; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.post-card { background: var(--white); border-radius: 15px; border: 1px solid #f1eccd; transition: transform .25s ease, box-shadow .25s ease; }
.post-card:hover { transform: translateY(-6px); box-shadow: 0 14px 30px rgba(0, 0, 0, .08); }
.post-card { overflow: hidden; }
.post-card-link { display: flex; flex-direction: column; height: 100%; padding: 0 24px 24px; border-radius: 15px; }
.post-thumb { display: block; width: calc(100% + 48px); max-width: none; margin: 0 -24px 20px; aspect-ratio: 17 / 9; height: auto; object-fit: cover; background: var(--yellow); }
.post-cover { display: block; width: 100%; height: auto; aspect-ratio: 17 / 9; object-fit: cover; margin-top: -24px; border-radius: 18px; box-shadow: 0 14px 30px rgba(0, 0, 0, .08); position: relative; }
.post-tag { align-self: flex-start; display: inline-block; padding: 3px 10px; border-radius: 50px; background: var(--hero-bg); border: 1px solid #f3dd7a; font-size: 12px; font-weight: 600; color: #6b5200; }
.post-card h2 { margin-top: 14px; font-size: 21px; line-height: 1.35; font-weight: 600; }
.post-card p { margin-top: 10px; font-size: 15px; line-height: 1.6; color: rgba(0, 0, 0, .7); flex: 1; }
.post-meta { margin-top: 16px; font-size: 13px; color: rgba(0, 0, 0, .55); }
.post-more { margin-top: 12px; font-weight: 600; font-size: 15px; color: #000; }
.post-card:hover .post-more { text-decoration: underline; }

/* Single post */
.post-container { max-width: 800px; }
.post-hero { padding-bottom: 44px; }
.post-hero .post-tag { margin-top: 18px; }
.post-hero h1 { font-size: 38px; }
.post-hero .post-meta { margin-top: 14px; font-size: 14px; }
.back-link { display: inline-block; font-size: 14px; font-weight: 600; color: rgba(0, 0, 0, .7); }
.back-link:hover { text-decoration: underline; }
.post-body { padding-top: 40px; font-size: 18px; line-height: 1.75; color: #1d1d1f; }
.post-body h2 { margin: 36px 0 10px; font-size: 26px; line-height: 1.3; font-weight: 700; }
.post-body p { margin: 0 0 18px; }
.post-body ul, .post-body ol { margin: 0 0 18px; padding-left: 24px; list-style: revert; }
.post-body li { margin-bottom: 10px; }
.post-body li::marker { color: #c9a100; font-weight: 700; }
.post-body strong { font-weight: 600; }

.more-posts { padding: 40px 0 10px; }
.more-title { font-size: 22px; font-weight: 700; padding-top: 30px; border-top: 1px solid #ece6c8; }
.more-grid { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.more-link { display: flex; flex-direction: column; gap: 10px; padding: 20px; background: var(--white); border: 1px solid #f1eccd; border-radius: 15px; }
.more-link strong { font-size: 17px; line-height: 1.4; font-weight: 600; }
.more-link:hover strong { text-decoration: underline; }

.blog-cta { margin-top: 60px; }
.blog-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; background: var(--yellow); border-radius: 20px; padding: 36px 40px; }
.blog-cta h2 { font-size: 26px; font-weight: 700; }
.blog-cta p { margin-top: 6px; font-size: 15px; }
.blog-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.blog-cta .btn-hero { margin-top: 0; background: #000; color: #fff; }
.blog-cta .btn-hero:hover { background: #222; box-shadow: none; }
.blog-cta .btn-outline { border-color: #000; }
.blog-cta .btn-outline:hover { background: #000; color: #fff; }

@media (max-width: 1080px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .page-hero { margin-top: calc(-1 * var(--header-h)); padding: calc(var(--header-h) + 40px) 0 40px; }
  .page-hero h1 { font-size: 32px; }
  .post-hero h1 { font-size: 28px; }
  .page-lead { font-size: 16px; }
  .blog-list-section { padding-top: 40px; }
  .post-body { padding-top: 28px; font-size: 17px; }
  .post-body h2 { font-size: 22px; }
  .blog-cta-inner { padding: 28px 24px; }
  .blog-cta h2 { font-size: 22px; }
}
@media (max-width: 640px) {
  .post-grid, .more-grid { grid-template-columns: 1fr; }
}
/* gap between the menu links and "Contact Us" */
@media (min-width: 901px) { .nav-links { margin-right: 30px; } }
/* small laptops (901–1080px): 6 menu links + Contact Us need tighter spacing */
@media (min-width: 901px) and (max-width: 1080px) {
  .nav { padding-left: 24px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 15px; }
  .nav-cta { width: 128px; flex-shrink: 0; font-size: 16px; }
  .nav-links { margin-right: 16px; }
}
/* push the phone menu button to the right edge */
.menu-btn { margin-left: auto; }
/* 404 page */
.notfound { padding-bottom: 90px; }
.notfound-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.notfound-actions .btn-hero { margin-top: 0; }

/* very small phones (≤360px): keep the Call / WhatsApp / Demo bar inside the screen */
@media (max-width: 360px) {
  .action-bar { padding-left: 8px; padding-right: 8px; gap: 6px; }
  .action-bar a { font-size: 12.5px; gap: 5px; padding: 0 4px; }
  .action-bar .bar-icon { width: 17px; height: 17px; }
  /* hero photo block is 324px wide – shrink it to fit 320px screens */
  .hero-visual { zoom: .86; }
}
