/* =====================================================
   HOME TUTOR PANIPAT  —  Master Stylesheet
   Aesthetic direction: editorial confidence
                        + warm Indian professionalism
   Theme: deep black, sharp yellow, warm ivory
   ===================================================== */

:root {
  /* Palette */
  --black: #0B0B0B;
  --ink:   #1A1A1A;
  --char:  #2A2A2A;
  --ash:   #5C5C5C;
  --smoke: #9A9A9A;
  --line:  #E6E4DD;
  --ivory: #FAF7EE;
  --paper: #FFFCF3;
  --white: #FFFFFF;

  --y:      #FFD60A;   /* primary yellow */
  --y-soft: #FFE574;
  --y-deep: #F4B400;
  --y-glow: #FFF3A8;

  --accent: #FF7A1A;   /* orange — used sparingly */
  --good:   #19A974;
  --bad:    #D63D2F;

  /* Type scale */
  --f-display: "Bricolage Grotesque", "Playfair Display", Georgia, serif;
  --f-sans:    "Plus Jakarta Sans", "Inter", system-ui, -apple-system, sans-serif;
  --f-mono:    "JetBrains Mono", ui-monospace, Menlo, monospace;

  /* Spacing & radii */
  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
  --shadow:    0 12px 40px -8px rgba(0,0,0,.18);
  --shadow-lg: 0 26px 70px -20px rgba(0,0,0,.35);
  --shadow-y:  0 18px 40px -16px rgba(244,180,0,.55);

  --container: 1240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
*::selection { background: var(--y); color: var(--black); }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* =====================================================
   TOP BAR (phone, address)
   ===================================================== */
.topbar {
  background: var(--black);
  color: var(--ivory);
  font-size: .82rem;
  border-bottom: 1px solid #1f1f1f;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 38px;
  gap: 16px;
}
.topbar a { color: var(--ivory); display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: var(--y); }
.topbar-left, .topbar-right { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.topbar .y-text { color: var(--y); font-weight: 600; }
@media (max-width: 760px){
  .topbar .container { height: auto; padding: 8px 16px; flex-direction: column; gap: 4px; align-items: flex-start; }
  .topbar-right { display: none; }
}

/* =====================================================
   HEADER / NAV
   ===================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,252,243,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header.scrolled { background: rgba(255,252,243,.97); box-shadow: 0 4px 30px rgba(0,0,0,.06); }
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 22px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 50px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-family: var(--f-display); font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
.brand-text span  { font-size: .72rem; color: var(--ash); letter-spacing: .12em; text-transform: uppercase; margin-top: 3px; }

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  align-items: center;
}
.nav-links > li { position: relative; }
.nav-links a {
  padding: 10px 14px;
  font-size: .94rem;
  font-weight: 500;
  color: var(--ink);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all .2s ease;
}
.nav-links a:hover { background: var(--y-glow); color: var(--black); }
.nav-links .has-mega::after {
  content: "▾";
  font-size: .65rem;
  margin-left: 4px;
  color: var(--ash);
}

/* Mega menu */
.mega {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: min(720px, 92vw);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: all .25s ease;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 24px;
  z-index: 50;
}
.nav-links li:hover > .mega { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.mega h5 { grid-column: 1 / -1; font-family: var(--f-display); font-size: .82rem; color: var(--ash); text-transform: uppercase; letter-spacing: .14em; margin-bottom: 6px; }
.mega a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: .89rem;
  color: var(--ink);
  font-weight: 500;
}
.mega a:hover { background: var(--y-glow); }
.mega a .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--black);
  color: var(--y);
  font-size: .72rem;
  font-weight: 700;
  font-family: var(--f-mono);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--black);
  color: var(--y);
  font-weight: 600;
  font-size: .9rem;
  padding: 12px 20px;
  border-radius: 999px;
  transition: all .25s ease;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--y); color: var(--black); transform: translateY(-1px); box-shadow: var(--shadow-y); }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--black);
  color: var(--y);
  font-size: 1.4rem;
  align-items: center;
  justify-content: center;
}
@media (max-width: 1024px){
  .nav-links, .nav-cta { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(8px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.drawer.open { opacity: 1; pointer-events: auto; }
.drawer-panel {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: min(380px, 88vw);
  background: var(--paper);
  padding: 26px 22px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .3s ease;
}
.drawer.open .drawer-panel { transform: translateX(0); }
.drawer-close { position: absolute; right: 18px; top: 18px; width: 36px; height: 36px; border-radius: 50%; background: var(--black); color: var(--y); font-size: 1.2rem; }
.drawer h6 { font-family: var(--f-display); font-size: .75rem; text-transform: uppercase; letter-spacing: .15em; color: var(--ash); margin: 22px 0 8px; }
.drawer a { display: block; padding: 10px 12px; border-radius: 10px; font-weight: 500; color: var(--ink); }
.drawer a:hover { background: var(--y-glow); }

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .96rem;
  letter-spacing: -.005em;
  transition: all .25s ease;
  cursor: pointer;
  white-space: nowrap;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--y);
  color: var(--black);
  box-shadow: var(--shadow-y);
}
.btn-primary:hover { transform: translateY(-2px); background: var(--y-deep); box-shadow: 0 26px 60px -16px rgba(244,180,0,.7); }
.btn-dark { background: var(--black); color: var(--y); }
.btn-dark:hover { background: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--black); border-color: var(--black); }
.btn-outline:hover { background: var(--black); color: var(--y); }
.btn-ghost { background: rgba(0,0,0,.04); color: var(--ink); }
.btn-ghost:hover { background: rgba(0,0,0,.08); }
.btn-lg { padding: 18px 32px; font-size: 1.02rem; }

/* =====================================================
   HERO
   ===================================================== */
.hero {
  position: relative;
  padding: 60px 0 100px;
  overflow: hidden;
  background:
    radial-gradient(60% 70% at 20% 10%, rgba(255,214,10,.32), transparent 60%),
    radial-gradient(50% 60% at 90% 30%, rgba(255,214,10,.16), transparent 60%),
    var(--paper);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.04) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  mask-image: radial-gradient(circle at 30% 30%, black 0%, transparent 65%);
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 980px){
  .hero { padding: 30px 0 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: var(--black);
  color: var(--y);
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero-eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--y); box-shadow: 0 0 0 4px rgba(255,214,10,.3);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 4px rgba(255,214,10,.35); }
  50%     { box-shadow: 0 0 0 9px rgba(255,214,10,0); }
}

.hero h1 {
  font-family: var(--f-display);
  font-size: clamp(2.5rem, 5.4vw, 4.4rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.028em;
  color: var(--black);
  margin-bottom: 22px;
}
.hero h1 .swoosh {
  position: relative;
  white-space: nowrap;
  display: inline-block;
}
.hero h1 .swoosh::after {
  content: "";
  position: absolute;
  left: -4px; right: -4px;
  bottom: 4px;
  height: 38%;
  background: var(--y);
  z-index: -1;
  border-radius: 4px;
  transform: skewX(-6deg);
}
.hero h1 em {
  font-style: italic;
  font-family: var(--f-display);
  color: var(--accent);
  font-weight: 600;
}
.hero-lede {
  font-size: 1.13rem;
  color: var(--char);
  max-width: 540px;
  margin-bottom: 32px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-meta {
  display: flex;
  gap: 28px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero-meta div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-meta strong {
  font-family: var(--f-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--black);
}
.hero-meta span {
  font-size: .82rem;
  color: var(--ash);
  letter-spacing: .03em;
}

/* hero visual */
.hero-visual {
  position: relative;
  height: clamp(420px, 60vh, 580px);
}
.hero-visual .stack-card {
  position: absolute;
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.hero-visual .card-main {
  top: 0; right: 0;
  width: 80%; height: 78%;
  transform: rotate(2deg);
  animation: floaty 6s ease-in-out infinite;
}
.hero-visual .card-main img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual .card-side {
  bottom: 0; left: 0;
  width: 64%;
  background: var(--y);
  padding: 24px;
  transform: rotate(-3deg);
  animation: floaty 6s ease-in-out infinite;
  animation-delay: .8s;
}
.hero-visual .card-side h4 {
  font-family: var(--f-display);
  font-size: 1.4rem;
  color: var(--black);
  margin-bottom: 8px;
  line-height: 1.1;
}
.hero-visual .card-side p { font-size: .9rem; color: var(--ink); }
.hero-visual .card-side .stars {
  display: flex; gap: 2px; margin-top: 8px;
  font-size: 1rem;
  color: var(--black);
}
.hero-visual .float-badge {
  position: absolute;
  background: var(--black);
  color: var(--y);
  padding: 14px 18px;
  border-radius: var(--r);
  font-size: .85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow);
  z-index: 3;
}
.hero-visual .badge-1 {
  top: 28%; left: -10px;
  animation: floaty 5s ease-in-out infinite;
}
.hero-visual .badge-1 .icon { font-size: 1.4rem; }
.hero-visual .badge-2 {
  bottom: 22%; right: 0;
  animation: floaty 5s ease-in-out infinite;
  animation-delay: 1.2s;
}
@keyframes floaty {
  0%,100% { transform: translateY(0) rotate(var(--rot,0deg)); }
  50%     { transform: translateY(-12px) rotate(var(--rot,0deg)); }
}
.hero-visual .card-main { --rot: 2deg; }
.hero-visual .card-side { --rot: -3deg; }

@media (max-width: 600px){
  .hero-visual { height: 420px; }
  .hero-visual .card-main { width: 86%; height: 70%; }
  .hero-visual .card-side { width: 70%; padding: 18px; }
}

/* =====================================================
   MARQUEE TAPE (boards / subjects)
   ===================================================== */
.tape {
  background: var(--black);
  color: var(--y);
  padding: 18px 0;
  overflow: hidden;
  border-top: 1px solid #222;
  border-bottom: 1px solid #222;
}
.tape-track {
  display: flex;
  gap: 60px;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.tape-track span { display: inline-flex; align-items: center; gap: 60px; }
.tape-track .sep { color: var(--y); opacity: .35; font-size: 1.1rem; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =====================================================
   SECTION BASICS
   ===================================================== */
section { padding: 90px 0; }
.section-head {
  max-width: 760px;
  margin-bottom: 60px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--ash);
  font-weight: 600;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "—";
  margin-right: 10px;
  color: var(--y-deep);
}
.section-head h2 {
  font-family: var(--f-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -.025em;
  color: var(--black);
  margin-bottom: 18px;
}
.section-head p {
  font-size: 1.08rem;
  color: var(--char);
  max-width: 620px;
}
.section-head.center p { margin: 0 auto; }
.h-mark {
  background: var(--y);
  padding: 0 8px;
  display: inline-block;
  transform: rotate(-1deg);
  border-radius: 3px;
}

/* =====================================================
   CLASS GRID (Pre-Nursery to Class 12)
   ===================================================== */
.class-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.class-card {
  position: relative;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px 22px;
  transition: all .3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 175px;
}
.class-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--y) 0%, var(--y-deep) 100%);
  opacity: 0;
  transition: opacity .3s ease;
  z-index: 0;
}
.class-card > * { position: relative; z-index: 1; }
.class-card:hover { transform: translateY(-6px); border-color: var(--black); box-shadow: var(--shadow); }
.class-card:hover::before { opacity: 1; }
.class-card:hover .num,
.class-card:hover h4,
.class-card:hover .meta,
.class-card:hover .arrow { color: var(--black); }
.class-card .num {
  font-family: var(--f-display);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--smoke);
  letter-spacing: -.04em;
  transition: color .3s ease;
}
.class-card h4 {
  font-family: var(--f-display);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -.01em;
}
.class-card .meta {
  font-size: .82rem;
  color: var(--ash);
  margin-top: auto;
}
.class-card .arrow {
  position: absolute;
  top: 22px; right: 22px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--ivory);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
  font-size: .9rem;
  transition: all .3s ease;
}
.class-card:hover .arrow { background: var(--black); color: var(--y); transform: rotate(-45deg); }

/* =====================================================
   SUBJECT TILES
   ===================================================== */
.subject-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.subject-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 28px;
  border: 1.5px solid var(--line);
  transition: all .3s ease;
  position: relative;
  overflow: hidden;
}
.subject-card:hover { border-color: var(--y-deep); transform: translateY(-4px); box-shadow: var(--shadow); }
.subject-card .icon-blob {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--y-glow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  margin-bottom: 18px;
  transition: all .3s ease;
}
.subject-card:hover .icon-blob { background: var(--black); color: var(--y); transform: rotate(-6deg); }
.subject-card h4 {
  font-family: var(--f-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--black);
}
.subject-card p {
  font-size: .92rem;
  color: var(--char);
  margin-bottom: 18px;
}
.subject-card .pill {
  display: inline-block;
  padding: 4px 10px;
  background: var(--ivory);
  color: var(--ash);
  font-size: .73rem;
  border-radius: 999px;
  letter-spacing: .02em;
  margin-right: 4px;
  margin-top: 4px;
}
.subject-card .more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: .9rem;
  color: var(--black);
  margin-top: 16px;
}
.subject-card .more::after { content: "→"; transition: transform .25s ease; }
.subject-card:hover .more::after { transform: translateX(4px); }

/* =====================================================
   WHY / FEATURES — alternating editorial cards
   ===================================================== */
.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px){ .feature-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px){ .feature-row { grid-template-columns: 1fr; } }
.feature {
  position: relative;
  padding: 36px 30px;
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1.5px solid var(--line);
  transition: all .3s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--y-deep); }
.feature .step {
  font-family: var(--f-mono);
  font-size: .72rem;
  color: var(--ash);
  letter-spacing: .15em;
  margin-bottom: 14px;
}
.feature .ic {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--black);
  color: var(--y);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}
.feature h4 {
  font-family: var(--f-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--black);
  letter-spacing: -.01em;
}
.feature p { color: var(--char); font-size: .96rem; }
.feature-img {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 18px;
  min-height: 220px;
  background: var(--bone);
}
.feature-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* big editorial split */
.editorial {
  background: var(--black);
  color: var(--ivory);
  border-radius: var(--r-xl);
  overflow: hidden;
  position: relative;
  margin: 0 auto;
  max-width: var(--container);
}
.editorial .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 480px;
}
@media (max-width: 900px){ .editorial .grid { grid-template-columns: 1fr; } }
.editorial .text {
  padding: 60px 52px;
}
.editorial .text .eyebrow { color: var(--y); }
.editorial .text .eyebrow::before { color: var(--y); }
.editorial h2 {
  font-family: var(--f-display);
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  line-height: 1.05;
  margin-bottom: 18px;
  letter-spacing: -.02em;
}
.editorial h2 .mark { background: var(--y); color: var(--black); padding: 0 8px; }
.editorial p { font-size: 1.05rem; color: #d8d3c4; margin-bottom: 24px; }
.editorial ul { list-style: none; }
.editorial ul li {
  padding: 12px 0;
  border-bottom: 1px solid #222;
  display: flex; align-items: center; gap: 14px;
}
.editorial ul li::before {
  content: "✓";
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--y);
  color: var(--black);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.editorial .visual {
  background: var(--y);
  background-image:
    radial-gradient(circle at 20% 20%, rgba(0,0,0,.08) 1px, transparent 1px),
    radial-gradient(circle at 70% 60%, rgba(0,0,0,.08) 1px, transparent 1px);
  background-size: 24px 24px, 38px 38px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.editorial .visual .photo {
  width: 100%; max-width: 380px;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 6px solid var(--black);
  transform: rotate(-2deg);
  background: var(--white);
}
.editorial .visual .photo img { width: 100%; height: 100%; object-fit: cover; }
.editorial .visual .quote-badge {
  position: absolute;
  bottom: 30px; right: 30px;
  background: var(--black);
  color: var(--y);
  padding: 18px 22px;
  border-radius: var(--r);
  font-family: var(--f-display);
  font-size: 1rem;
  max-width: 220px;
  line-height: 1.3;
  transform: rotate(3deg);
  box-shadow: var(--shadow);
}

/* =====================================================
   STEPS / HOW IT WORKS
   ===================================================== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}
@media (max-width: 900px){ .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .steps { grid-template-columns: 1fr; } }
.step-card {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 26px;
  position: relative;
  counter-increment: step;
  transition: all .3s ease;
}
.step-card:hover { transform: translateY(-4px); border-color: var(--y-deep); box-shadow: var(--shadow); }
.step-card::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--f-display);
  font-size: 4.2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--y);
  -webkit-text-stroke: 1px var(--y-deep);
  position: absolute;
  top: 10px; right: 20px;
  opacity: .85;
}
.step-card h4 {
  font-family: var(--f-display);
  font-size: 1.25rem;
  margin: 22px 0 10px;
  color: var(--black);
}
.step-card p { color: var(--char); font-size: .94rem; }

/* =====================================================
   COURSES
   ===================================================== */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 22px;
}
.course-card {
  background: var(--white);
  border-radius: var(--r-lg);
  border: 1.5px solid var(--line);
  overflow: hidden;
  transition: all .3s ease;
  display: flex;
  flex-direction: column;
}
.course-card:hover { transform: translateY(-6px); border-color: var(--black); box-shadow: var(--shadow); }
.course-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}
.course-card .tag-row { display: flex; gap: 6px; padding: 16px 22px 0; flex-wrap: wrap; }
.course-card .tag {
  font-size: .7rem;
  padding: 4px 10px;
  background: var(--y);
  color: var(--black);
  border-radius: 999px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.course-card .tag.dark { background: var(--black); color: var(--y); }
.course-card .body { padding: 14px 22px 22px; flex: 1; display: flex; flex-direction: column; }
.course-card h3 {
  font-family: var(--f-display);
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: var(--black);
  letter-spacing: -.01em;
  line-height: 1.2;
}
.course-card .desc { font-size: .93rem; color: var(--char); margin-bottom: 18px; flex: 1; }
.course-card .features {
  list-style: none;
  font-size: .88rem;
  margin-bottom: 18px;
}
.course-card .features li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 4px 0;
  color: var(--char);
}
.course-card .features li::before {
  content: "▸"; color: var(--y-deep); font-weight: 700;
}
.course-card .price-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px dashed var(--line);
  padding-top: 16px;
  margin-top: auto;
}
.course-card .price {
  font-family: var(--f-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1;
}
.course-card .price small { font-size: .8rem; font-weight: 500; color: var(--ash); }
.course-card .btn-row { display: flex; gap: 6px; }
.course-card .icon-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--black);
  color: var(--y);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .25s ease;
}
.course-card .icon-btn:hover { background: var(--y); color: var(--black); transform: rotate(-12deg); }

/* =====================================================
   TESTIMONIALS
   ===================================================== */
.test-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 900px){ .test-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px){ .test-grid { grid-template-columns: 1fr; } }
.test-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 30px;
  border: 1.5px solid var(--line);
  position: relative;
  transition: all .3s ease;
}
.test-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--y-deep); }
.test-card::before {
  content: "“";
  position: absolute;
  top: -8px; left: 20px;
  font-family: var(--f-display);
  font-size: 5rem;
  color: var(--y);
  line-height: 1;
}
.test-card .rating { color: var(--y-deep); font-size: 1rem; letter-spacing: 2px; margin-bottom: 14px; margin-top: 10px;}
.test-card p { color: var(--char); font-size: .98rem; line-height: 1.6; margin-bottom: 22px; }
.test-card .who {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.test-card .who .avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--black);
  color: var(--y);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--f-display);
}
.test-card .who strong { font-size: .94rem; color: var(--black); }
.test-card .who span { font-size: .8rem; color: var(--ash); display: block; }

/* =====================================================
   TUTOR GRID (Meet the Tutors section)
   ===================================================== */
.tutor-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
@media (max-width: 1000px){ .tutor-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px){ .tutor-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (max-width: 420px){ .tutor-grid { grid-template-columns: 1fr 1fr; } }

.tutor-card {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  position: relative;
}
.tutor-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--y-deep);
}

.tutor-photo {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bone), var(--ivory));
  border-bottom: 1px solid var(--line);
}
.tutor-photo img {
  width: 100%; height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .35s ease;
}
.tutor-card:hover .tutor-photo img { transform: scale(1.05); }

.tutor-verified {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--black);
  color: var(--y);
  font-size: .7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: .3px;
  font-family: var(--f-body);
}

.tutor-body {
  padding: 18px 16px 20px;
}
.tutor-body h4 {
  font-family: var(--f-display);
  font-size: 1.15rem;
  margin: 0 0 4px;
  color: var(--black);
  letter-spacing: -.01em;
}
.tutor-qual {
  font-size: .82rem;
  color: var(--y-deep);
  font-weight: 600;
  margin: 0 0 4px;
  letter-spacing: .2px;
}
.tutor-subj {
  font-size: .85rem;
  color: var(--char);
  margin: 0 0 14px;
  line-height: 1.4;
}
.tutor-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: .72rem;
  color: var(--ash);
  font-family: var(--f-mono);
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

/* =====================================================
   FAQ
   ===================================================== */
.faq-list { max-width: 880px; margin: 0 auto; }
.faq {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 0;
  font-family: var(--f-display);
  font-size: 1.16rem;
  font-weight: 600;
  color: var(--black);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  transition: color .2s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--ivory);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .25s ease;
  flex-shrink: 0;
}
.faq[open] summary::after { background: var(--y); transform: rotate(45deg); }
.faq[open] summary { color: var(--y-deep); }
.faq .answer {
  padding: 0 0 22px;
  color: var(--char);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 760px;
}

/* =====================================================
   BANNERS / CTAs
   ===================================================== */
.cta-band {
  background: var(--black);
  color: var(--ivory);
  border-radius: var(--r-xl);
  padding: 60px 50px;
  display: grid;
  grid-template-columns: 1.4fr .9fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 400px; height: 400px;
  background: var(--y);
  border-radius: 50%;
  opacity: .2;
  filter: blur(80px);
}
@media (max-width: 800px){ .cta-band { grid-template-columns: 1fr; padding: 40px 28px; } }
.cta-band h2 {
  font-family: var(--f-display);
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.05;
  margin-bottom: 14px;
  letter-spacing: -.02em;
}
.cta-band h2 .y { color: var(--y); }
.cta-band p { color: #c9c5b8; margin-bottom: 22px; }
.cta-band .ctas { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 2; }
.cta-band .phone-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative; z-index: 2;
}
.cta-band .phone-block a {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid #2a2a2a;
  padding: 14px 18px;
  border-radius: var(--r);
  transition: all .25s ease;
}
.cta-band .phone-block a:hover { background: var(--y); color: var(--black); border-color: var(--y); }
.cta-band .phone-block .ic-circle {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--y);
  color: var(--black);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.cta-band .phone-block strong { font-family: var(--f-display); font-size: 1.15rem; display: block; }
.cta-band .phone-block span { font-size: .8rem; color: var(--smoke); }
.cta-band .phone-block a:hover span { color: var(--ink); }

/* =====================================================
   PAGE HERO (interior pages)
   ===================================================== */
.page-hero {
  position: relative;
  padding: 80px 0 70px;
  background:
    radial-gradient(60% 70% at 80% 20%, rgba(255,214,10,.25), transparent 60%),
    var(--paper);
  border-bottom: 1px solid var(--line);
}
.page-hero .crumbs {
  font-size: .82rem;
  color: var(--ash);
  margin-bottom: 16px;
  letter-spacing: .03em;
}
.page-hero .crumbs a { color: var(--ash); }
.page-hero .crumbs a:hover { color: var(--y-deep); }
.page-hero h1 {
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -.028em;
  line-height: 1.05;
  margin-bottom: 16px;
  color: var(--black);
}
.page-hero h1 .mark { background: var(--y); padding: 0 10px; transform: skewX(-4deg); display: inline-block; }
.page-hero .lede {
  font-size: 1.1rem;
  color: var(--char);
  max-width: 760px;
  margin-bottom: 24px;
}
.page-hero .quick-facts {
  display: flex; gap: 24px; flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  margin-top: 30px;
}
.page-hero .quick-facts div { display: flex; flex-direction: column; gap: 2px; }
.page-hero .quick-facts strong { font-family: var(--f-display); color: var(--black); font-size: 1.3rem; }
.page-hero .quick-facts span { font-size: .8rem; color: var(--ash); letter-spacing: .04em; }

/* =====================================================
   CONTENT BLOCKS (used on class / subject pages)
   ===================================================== */
.prose {
  font-size: 1.05rem;
  color: var(--char);
  line-height: 1.75;
}
.prose h2 {
  font-family: var(--f-display);
  font-size: 1.9rem;
  color: var(--black);
  margin: 40px 0 16px;
  letter-spacing: -.015em;
}
.prose h3 {
  font-family: var(--f-display);
  font-size: 1.4rem;
  color: var(--black);
  margin: 30px 0 12px;
}
.prose p { margin-bottom: 18px; }
.prose ul, .prose ol { margin: 0 0 22px 24px; }
.prose ul li, .prose ol li { margin-bottom: 8px; }
.prose blockquote {
  border-left: 4px solid var(--y);
  padding: 8px 0 8px 20px;
  margin: 24px 0;
  color: var(--ink);
  font-style: italic;
  font-family: var(--f-display);
  font-size: 1.1rem;
}

/* two-column layout for class/subject pages */
.split {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 50px;
  align-items: start;
}
@media (max-width: 900px){ .split { grid-template-columns: 1fr; } }

.sidebar-card {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  position: sticky;
  top: 100px;
}
.sidebar-card h4 {
  font-family: var(--f-display);
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--black);
}
.sidebar-card .price {
  font-family: var(--f-display);
  font-size: 2.2rem;
  color: var(--black);
  margin: 14px 0;
}
.sidebar-card .price small { font-size: .9rem; font-weight: 500; color: var(--ash); }
.sidebar-card ul {
  list-style: none;
  margin-bottom: 22px;
}
.sidebar-card ul li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .94rem;
  color: var(--char);
}
.sidebar-card ul li::before {
  content: "✓";
  width: 22px; height: 22px;
  background: var(--y);
  color: var(--black);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  flex-shrink: 0;
  font-weight: 700;
}

/* badge cluster */
.pill-cluster { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pill {
  padding: 6px 12px;
  background: var(--ivory);
  color: var(--ink);
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 500;
  border: 1px solid var(--line);
}
.pill.dark { background: var(--black); color: var(--y); border-color: var(--black); }
.pill.y { background: var(--y); color: var(--black); border-color: var(--y); }

/* =====================================================
   FORMS
   ===================================================== */
.form {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-row.one { grid-template-columns: 1fr; }
@media (max-width: 600px){ .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .02em;
}
.field label .req { color: var(--bad); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--paper);
  font-size: .96rem;
  color: var(--ink);
  transition: all .2s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--black);
  background: var(--white);
  box-shadow: 0 0 0 4px var(--y-glow);
}
.field textarea { resize: vertical; min-height: 120px; }
.field .note { font-size: .76rem; color: var(--ash); }
.form .btn { margin-top: 10px; width: 100%; }

.alert {
  padding: 14px 18px;
  border-radius: var(--r);
  font-size: .94rem;
  margin-bottom: 22px;
  display: flex; align-items: center; gap: 10px;
}
.alert.success { background: #e3f6ec; color: #176c3b; border: 1px solid #b9e3c8; }
.alert.error   { background: #fde7e4; color: #8e1f15; border: 1px solid #f5b5ad; }
.alert.info    { background: var(--y-glow); color: #4a3a00; border: 1px solid var(--y-deep); }

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
  background: var(--black);
  color: #c9c5b8;
  padding: 70px 0 28px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}
@media (max-width: 900px){ .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { height: 54px; background: var(--ivory); padding: 8px 12px; border-radius: 12px; margin-bottom: 18px; }
.footer-brand p { font-size: .95rem; margin-bottom: 18px; }
.footer-brand .socials { display: flex; gap: 10px; }
.footer-brand .socials a {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid #2a2a2a;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .95rem;
  transition: all .2s ease;
}
.footer-brand .socials a:hover { background: var(--y); color: var(--black); border-color: var(--y); }
.site-footer h5 {
  color: var(--y);
  font-family: var(--f-display);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-bottom: 18px;
  font-weight: 700;
}
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 9px; font-size: .92rem; }
.site-footer ul a { color: #c9c5b8; transition: color .2s ease; }
.site-footer ul a:hover { color: var(--y); }
.footer-contact a { display: flex; align-items: center; gap: 10px; }
.footer-bottom {
  border-top: 1px solid #1f1f1f;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .82rem;
  color: var(--smoke);
}
.footer-bottom a { color: var(--smoke); }
.footer-bottom a:hover { color: var(--y); }
.footer-bottom .legal { display: flex; gap: 18px; flex-wrap: wrap; }

/* =====================================================
   FLOATING WHATSAPP + CALL
   ===================================================== */
.floaters {
  position: fixed;
  right: 18px; bottom: 22px;
  z-index: 90;
  display: flex; flex-direction: column; gap: 12px;
}
.floaters a {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow);
  transition: all .25s ease;
  position: relative;
  background: #25D366;
  color: white;
}
.floaters a.call { background: var(--black); color: var(--y); }
.floaters a:hover { transform: translateY(-4px) scale(1.05); }
.floaters a::after {
  content: ""; position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid currentColor;
  animation: ring 2s infinite;
}
@keyframes ring {
  0%   { transform: scale(1); opacity: .65; }
  100% { transform: scale(1.55); opacity: 0; }
}

/* =====================================================
   POPUP
   ===================================================== */
.popup-mask {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 20px;
}
.popup-mask.open { display: flex; }
.popup-box {
  background: var(--paper);
  border-radius: var(--r-xl);
  max-width: 520px;
  width: 100%;
  overflow: hidden;
  position: relative;
  transform: scale(.9);
  transition: transform .35s cubic-bezier(.2,.9,.3,1.4);
  box-shadow: var(--shadow-lg);
}
.popup-mask.open .popup-box { transform: scale(1); }
.popup-box .head {
  background: linear-gradient(135deg, var(--y) 0%, var(--y-deep) 100%);
  padding: 30px 30px 24px;
  position: relative;
}
.popup-box .head .tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--black);
  color: var(--y);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-weight: 700;
  border-radius: 999px;
  margin-bottom: 14px;
}
.popup-box h3 {
  font-family: var(--f-display);
  font-size: 1.7rem;
  color: var(--black);
  line-height: 1.1;
  margin-bottom: 6px;
  letter-spacing: -.01em;
}
.popup-box .head p { color: var(--ink); font-size: .9rem; }
.popup-box .body { padding: 26px 30px 30px; }
.popup-box .body p { font-size: .98rem; color: var(--char); margin-bottom: 20px; }
.popup-box .cta { display: flex; gap: 10px; flex-wrap: wrap; }
.popup-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--black);
  color: var(--y);
  font-size: 1.1rem;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 2;
}

/* =====================================================
   REVEAL ANIMATIONS
   ===================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.2,.9,.2,1), transform .8s cubic-bezier(.2,.9,.2,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
.reveal-d4 { transition-delay: .32s; }

/* =====================================================
   UTILITIES
   ===================================================== */
.text-center { text-align: center; }
.muted { color: var(--ash); }
.mt-1 { margin-top: 12px; }
.mt-2 { margin-top: 24px; }
.mt-3 { margin-top: 36px; }
.mb-2 { margin-bottom: 24px; }
.flex-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.kbd {
  font-family: var(--f-mono);
  background: var(--ivory);
  border: 1px solid var(--line);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: .8rem;
}

/* =====================================================
   BLOG
   ===================================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 26px;
}
.blog-card {
  background: var(--white);
  border-radius: var(--r-lg);
  border: 1.5px solid var(--line);
  overflow: hidden;
  transition: all .3s ease;
  display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-6px); border-color: var(--black); box-shadow: var(--shadow); }
.blog-card .img {
  position: relative;
  aspect-ratio: 2 / 1;
  background: var(--white);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.blog-card .img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.blog-card .body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.blog-card .meta { font-size: .78rem; color: var(--ash); margin-bottom: 8px; letter-spacing: .04em; }
.blog-card h3 {
  font-family: var(--f-display);
  font-size: 1.3rem;
  color: var(--black);
  margin-bottom: 10px;
  letter-spacing: -.01em;
  line-height: 1.2;
}
.blog-card p { color: var(--char); font-size: .94rem; margin-bottom: 14px; flex: 1; }
.blog-card .read {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: .9rem;
  color: var(--black);
}
.blog-card .read::after { content: "→"; transition: transform .2s ease; }
.blog-card:hover .read::after { transform: translateX(4px); }

/* =====================================================
   SEO LINK CLOUD (footer of class/subject pages)
   ===================================================== */
.link-cloud {
  background: var(--ivory);
  border-radius: var(--r-lg);
  padding: 36px;
  border: 1px solid var(--line);
}
.link-cloud h3 { font-family: var(--f-display); font-size: 1.4rem; margin-bottom: 14px; color: var(--black); }
.link-cloud .grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}
.link-cloud .grid a {
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--white);
  font-size: .89rem;
  color: var(--ink);
  border: 1px solid var(--line);
  transition: all .2s ease;
  display: block;
}
.link-cloud .grid a:hover { background: var(--y); color: var(--black); border-color: var(--y-deep); }

/* =====================================================
   PAYMENTS
   ===================================================== */
.payment-band {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--r-xl);
  padding: 48px;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 800px) {
  .payment-band {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    gap: 28px;
  }
}
