/* Apex STEM Tutors — shared design system */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --navy: #081d3e;
  --navy-light: #0f2d5c;
  --maroon: #8b1f34;
  --maroon-dark: #6b1828;
  --gold: #d49b2a;
  --gold-light: #e8b84d;
  --text: #1e293b;
  --text-muted: #64748b;
  --bg: #f4f6f9;
  --surface: #ffffff;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(8, 29, 62, 0.08);
  --shadow-md: 0 8px 24px rgba(8, 29, 62, 0.1);
  --shadow-lg: 0 16px 48px rgba(8, 29, 62, 0.14);
  --radius: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --nav-height: 72px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --gradient-brand: linear-gradient(135deg, var(--navy) 0%, #4b1522 45%, var(--maroon) 100%);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--maroon);
  transition: color var(--transition);
}

/* ——— Navigation ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(8, 29, 62, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 155, 42, 0.15);
  box-shadow: var(--shadow-sm);
}

.site-nav {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-brand img {
  height: 52px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Blog article mini-nav */
.blog-nav {
  background: var(--navy);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(212, 155, 42, 0.15);
}
.blog-nav-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.blog-nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}
.blog-nav-brand img {
  height: 44px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  flex-shrink: 0;
}
.blog-nav a.blog-nav-link {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}
.blog-nav a.blog-nav-link:hover {
  color: var(--gold);
}

.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-menu a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--gold);
  background: rgba(255, 255, 255, 0.06);
}

.nav-menu a.active {
  font-weight: 600;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 1.5rem 1.5rem;
    background: var(--navy);
    border-bottom: 1px solid rgba(212, 155, 42, 0.2);
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
  }

  .nav-menu.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-menu a {
    padding: 0.85rem 1rem;
    font-size: 1rem;
  }
}

/* ——— Hero / Page headers ——— */
.hero {
  background: var(--gradient-brand);
  color: white;
  padding: 4.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 120%, rgba(212, 155, 42, 0.2), transparent);
  pointer-events: none;
}

.hero--banner {
  background: linear-gradient(135deg, rgba(8, 29, 62, 0.92) 0%, rgba(75, 21, 34, 0.88) 45%, rgba(139, 31, 52, 0.82) 100%),
    url('../images/banner.jpg') center/cover no-repeat;
}

.hero--banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  line-height: 1.15;
}

.hero p,
.hero .lead {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  opacity: 0.92;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

.hero-promo {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 700;
  color: var(--gold-light);
  max-width: 720px;
  margin: 0 auto 1.5rem;
  line-height: 1.5;
}

.page-header {
  background: var(--gradient-brand);
  color: white;
  padding: 3rem 2rem;
  text-align: center;
}

.page-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.page-header p {
  opacity: 0.9;
  margin-top: 0.5rem;
  font-size: 1.1rem;
}

/* ——— Layout ——— */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.section {
  margin: 3.5rem 0;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  text-align: center;
  color: var(--navy);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ——— Cards ——— */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--surface);
  border: none;
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.card h3 {
  color: var(--maroon);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}

/* ——— Feature band ——— */
.features-band {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  box-shadow: var(--shadow-sm);
  border: none;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.feature-item {
  text-align: center;
}

.feature-item h3 {
  color: var(--maroon);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.feature-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ——— CTA band ——— */
.cta-band {
  background: var(--gradient-brand);
  color: white;
  padding: 3.5rem 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(212, 155, 42, 0.15), transparent 70%);
  pointer-events: none;
}

.cta-band h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  position: relative;
}

.cta-band > p {
  opacity: 0.9;
  margin-bottom: 2rem;
  position: relative;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
  position: relative;
}

.benefit-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.5rem;
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
}

.benefit-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.benefit-card p {
  font-size: 0.9rem;
  opacity: 0.88;
}

/* ——— Flyer section ——— */
.flyer-section {
  padding-top: 2.5rem;
  padding-bottom: 0;
}

.flyer-card {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 2rem;
  align-items: center;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: none;
}

.flyer-image-link {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.flyer-image-link:hover {
  transform: scale(1.01);
  box-shadow: var(--shadow-lg);
}

.flyer-card img {
  border-radius: var(--radius);
  width: 100%;
  display: block;
}

.flyer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(139, 31, 52, 0.08);
  color: var(--maroon);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}

.flyer-copy h2 {
  color: var(--navy);
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.flyer-copy p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.65;
}

.flyer-note {
  color: var(--maroon);
  font-weight: 700;
  font-size: 0.95rem;
}

.flyer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.btn-secondary {
  background: var(--bg);
  color: var(--navy);
  padding: 0.85rem 1.75rem;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background var(--transition), color var(--transition);
}

.btn-secondary:hover {
  background: var(--navy);
  color: #fff;
}

@media (max-width: 900px) {
  .flyer-card {
    grid-template-columns: 1fr;
  }

  .flyer-image-link {
    order: -1;
  }
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-primary {
  background: var(--maroon);
  color: white;
  box-shadow: 0 4px 14px rgba(139, 31, 52, 0.35);
}

.btn-primary:hover {
  background: var(--gold);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 155, 42, 0.4);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  background: white;
  color: var(--navy);
  border-color: white;
}

/* ——— Forms ——— */
.contact-section {
  padding-bottom: 3rem;
}

.contact-form {
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: none;
  box-shadow: var(--shadow-sm);
  max-width: 560px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font);
  font-size: 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--bg);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--maroon);
  box-shadow: 0 0 0 3px rgba(139, 31, 52, 0.12);
  background: var(--surface);
}

.contact-info {
  text-align: center;
  margin-top: 2rem;
  color: var(--text-muted);
}

.contact-info p {
  margin: 0.4rem 0;
}

.contact-info a {
  color: var(--maroon);
  font-weight: 600;
  text-decoration: none;
}

.contact-info a:hover {
  color: var(--gold);
}

/* ——— Footer ——— */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  padding: 2.5rem 1.5rem;
  margin-top: 3rem;
}

.site-footer p {
  margin: 0.35rem 0;
  font-size: 0.9rem;
}

.site-footer .tagline {
  color: var(--gold);
  font-weight: 500;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.25rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-size: 1.2rem;
  text-decoration: none;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.social-links a:hover {
  color: #fff;
  transform: translateY(-3px);
}

.social-links a[aria-label="LinkedIn"]:hover {
  background: #0a66c2;
}

.social-links a[aria-label="X (Twitter)"]:hover {
  background: #000;
}

.social-links a[aria-label="Instagram"]:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-links a[aria-label="Facebook"]:hover {
  background: #1877f2;
}

.social-links a[aria-label="WhatsApp"]:hover {
  background: #25d366;
}

/* ——— Content pages (about, services, etc.) ——— */
.content-section {
  margin: 2.5rem 0;
}

.content-section h2 {
  color: var(--navy);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.content-section p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: none;
  box-shadow: var(--shadow-sm);
}

.stat-box {
  text-align: center;
}

.stat-box h3 {
  color: var(--maroon);
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.stat-box p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.team-member {
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  border: none;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.team-member:hover {
  box-shadow: var(--shadow-md);
}

.team-member h3 {
  color: var(--navy);
  margin: 0.75rem 0 0.35rem;
  font-size: 1.1rem;
}

.team-member p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.team-member img {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  max-height: 200px;
  object-fit: cover;
}

.team-photo-placeholder {
  background: var(--bg);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 2rem 1rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.cta-panel {
  text-align: center;
  background: var(--surface);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: none;
  box-shadow: var(--shadow-sm);
}

/* ——— Service list checkmarks ——— */
.check-list {
  list-style: none;
  text-align: left;
  margin: 1rem 0;
}

.check-list li {
  margin-bottom: 0.6rem;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--maroon);
  font-weight: 700;
}

/* ——— Blog cards ——— */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.blog-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: none;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.blog-card-body {
  padding: 1.5rem;
}

.blog-card h3 {
  color: var(--navy);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.blog-card .meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.blog-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.blog-tag {
  display: inline-block;
  background: rgba(139, 31, 52, 0.1);
  color: var(--maroon);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}

/* ——— Article pages / lesson notes ——— */
.article-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  display: grid;
  gap: 1.25rem;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.8rem;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  border-radius: 999px;
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  margin-top: 1rem;
}

.article-wrap .intro {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.25rem 1.4rem;
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

.article-summary {
  background: linear-gradient(135deg, rgba(8, 29, 62, 0.04), rgba(139, 31, 52, 0.06));
  border: 1px solid rgba(139, 31, 52, 0.12);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.summary-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--maroon);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.summary-header h2 {
  color: var(--navy);
  font-size: 1.1rem;
  margin: 0;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.summary-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.summary-card h3 {
  color: var(--maroon);
  font-size: 0.96rem;
  margin-bottom: 0.5rem;
}

.summary-card p,
.summary-card li {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.summary-card ul {
  padding-left: 1rem;
  margin: 0;
}

.summary-card li + li {
  margin-top: 0.35rem;
}

.technique-card,
.concept-card,
.law-card,
.week-card,
.mistake-card,
.hack-card,
.topic-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.technique-header,
.concept-header,
.law-header,
.week-header,
.mistake-header,
.hack-header,
.topic-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.technique-title-group h2,
.concept-title-group h2,
.law-title-group h2,
.week-title-group h2,
.mistake-title h2,
.hack-title h2,
.topic-title h2 {
  color: var(--navy);
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.technique-title-group p,
.concept-title-group p,
.law-title-group p,
.week-title-group p,
.mistake-title p,
.hack-title p,
.topic-title p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.technique-body p,
.concept-body p,
.law-body p,
.week-body p,
.mistake-body p,
.hack-body p,
.topic-body p {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.steps-box,
.rule-box,
.equation-box,
.example-box,
.how-to,
.key-box,
.eq-box,
.callout {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
}

.steps-label,
.rule-label,
.equation-label,
.example-label,
.how-to-label,
.key-label,
.callout-label {
  color: var(--maroon);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.steps-list,
.action-list,
.fix-steps,
.mistakes-list {
  padding-left: 1.1rem;
  display: grid;
  gap: 0.4rem;
  color: var(--text-muted);
}

.callout {
  border-left: 4px solid var(--gold);
  background: linear-gradient(135deg, rgba(212, 155, 42, 0.14), rgba(255, 255, 255, 0.95));
}

.section-h {
  color: var(--navy);
  font-size: 1.25rem;
  margin-top: 0.5rem;
}

.section-p {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.example-grid,
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
}

.example-card,
.benefit-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.95rem;
}

.example-card h4,
.benefit-card h4 {
  color: var(--navy);
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

.example-card p,
.benefit-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.mistake-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.mistake-icon,
.example-icon,
.hack-number,
.mistake-number,
.topic-number,
.week-badge,
.law-number,
.concept-icon,
.technique-icon {
  flex-shrink: 0;
}

@media (max-width: 700px) {
  .grade-selector {
    text-align: left;
  }

  .grade-selector select {
    width: 100%;
    margin-left: 0;
    margin-top: 0.5rem;
  }

  .materials-grid {
    grid-template-columns: 1fr;
  }

  .material-card {
    padding: 1.2rem;
  }

  .download-btn {
    width: 100%;
  }
}

/* ——— Testimonials ——— */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: none;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-size: 3rem;
  color: var(--maroon);
  opacity: 0.2;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-card blockquote {
  padding-top: 1.5rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonial-card .author {
  font-weight: 600;
  color: var(--navy);
}

.testimonial-card .role {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ——— Reading materials ——— */
.material-card {
  background: var(--surface);
  border: none;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.material-card:hover {
  box-shadow: var(--shadow-md);
}

.material-card h3 {
  color: var(--maroon);
  margin-bottom: 0.5rem;
}

.grade-selector {
  text-align: center;
  margin-bottom: 2rem;
}

.grade-selector select {
  padding: 0.75rem 1.25rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-family: var(--font);
  font-size: 1rem;
  margin-left: 0.5rem;
  cursor: pointer;
}

.grade-selector select:focus {
  outline: none;
  border-color: var(--maroon);
}

.materials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.material-card {
  text-align: center;
  cursor: default;
}

.download-btn {
  background: var(--maroon);
  color: white;
  padding: 0.7rem 1.4rem;
  border: none;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}

.download-btn:hover {
  background: var(--gold);
  color: var(--navy);
}

/* ——— Testimonials (extended) ——— */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  border-left: none;
}

.testimonial-card .stars {
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.testimonial-text {
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.75;
}

.student-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.student-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.student-details h4 {
  color: var(--navy);
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.student-details p {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ——— Services page ——— */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card-page {
  background: var(--surface);
  border: none;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card-page:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.service-card-page h3 {
  color: var(--maroon);
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.service-card-page p {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.price-tag {
  color: var(--maroon);
  font-weight: 700;
  font-size: 1.05rem;
  margin-top: 0.5rem;
}

.btn-enroll {
  background: var(--maroon);
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 10px;
  font-family: var(--font);
  font-weight: 600;
  cursor: pointer;
  margin-top: 1rem;
  transition: background var(--transition);
}

.btn-enroll:hover {
  background: var(--gold);
  color: var(--navy);
}

.service-card {
  background: var(--surface);
  border: none;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.service-card h3 {
  color: var(--maroon);
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.service-card p {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.price {
  color: var(--maroon);
  font-weight: 700;
  font-size: 1rem;
  margin: 0.75rem 0;
}

.features-list {
  list-style: none;
  margin: 0.75rem 0;
}

.features-list li {
  padding: 0.35rem 0 0.35rem 1.5rem;
  position: relative;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.features-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--maroon);
  font-weight: 700;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.pricing-table th,
.pricing-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.pricing-table th {
  background: var(--navy);
  color: white;
  font-weight: 600;
}

.pricing-table tr:hover td {
  background: var(--bg);
}

/* ——— Blog page ——— */
.blog-spotlight {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1.25rem;
  background: linear-gradient(135deg, rgba(139, 31, 52, 0.08), rgba(212, 155, 42, 0.14));
  border: 1px solid rgba(139, 31, 52, 0.12);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.blog-spotlight-content h2 {
  color: var(--navy);
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}

.blog-spotlight-content p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0.9rem;
}

.blog-spotlight-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  color: var(--maroon);
  font-size: 0.9rem;
  font-weight: 600;
}

.blog-spotlight-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.blog-spotlight-card h3 {
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.blog-spotlight-card ul {
  padding-left: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.blog-spotlight-card li + li {
  margin-top: 0.4rem;
}

.blog-pill {
  display: inline-block;
  background: var(--maroon);
  color: white;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}

.subject-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.subject-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.subject-card:hover,
.subject-card.active {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(139, 31, 52, 0.2);
}

.subject-card h3 {
  color: var(--navy);
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.subject-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.subject-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.8rem;
}

.subject-card-math .subject-icon {
  background: linear-gradient(135deg, var(--navy), #3b82f6);
}

.subject-card-physics .subject-icon {
  background: linear-gradient(135deg, var(--gold), #f59e0b);
}

.subject-card-tips .subject-icon {
  background: linear-gradient(135deg, var(--maroon), #ec4899);
}

.search-section {
  background: var(--surface);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  border: none;
  box-shadow: var(--shadow-sm);
}

.search-section input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.search-section input:focus {
  outline: none;
  border-color: var(--maroon);
  box-shadow: 0 0 0 3px rgba(139, 31, 52, 0.1);
}

.filter-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--maroon);
  color: white;
  border-color: var(--maroon);
}

.blog-card {
  cursor: default;
  display: flex;
  flex-direction: column;
  border-left: 4px solid transparent;
}

.blog-card-math {
  border-left-color: #3b82f6;
}

.blog-card-physics {
  border-left-color: #f59e0b;
}

.blog-card-tips {
  border-left-color: #ec4899;
}

.blog-card-math .blog-image {
  background: linear-gradient(135deg, var(--navy), #3b82f6);
}

.blog-card-physics .blog-image {
  background: linear-gradient(135deg, var(--gold), #f59e0b);
}

.blog-card-tips .blog-image {
  background: linear-gradient(135deg, var(--maroon), #ec4899);
}

.blog-image {
  height: 140px;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.blog-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-category {
  color: var(--maroon);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.blog-card h3 {
  color: var(--navy);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}

.blog-excerpt {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  flex: 1;
}

.read-more {
  color: var(--maroon);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
}

.read-more:hover {
  color: var(--gold);
}

.cta-banner {
  background: var(--gradient-brand);
  color: white;
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  margin: 2.5rem 0;
}

.cta-banner h2 {
  color: white;
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
}

/* ——— Login page ——— */
body.page-auth {
  background: var(--gradient-brand);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.auth-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 1.5rem;
}

.auth-wrapper {
  display: flex;
  gap: 1.5rem;
  width: 100%;
  max-width: 960px;
  flex-wrap: wrap;
}

.auth-box {
  background: var(--surface);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  flex: 1;
  min-width: 280px;
  border: none;
}

.auth-box h2 {
  color: var(--navy);
  margin-bottom: 1.5rem;
  text-align: center;
  font-size: 1.5rem;
}

/* ——— Utilities ——— */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Fade-in on scroll (optional class) */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════
   APEX STEM TUTORS — extended UI (v2)
   ═══════════════════════════════════════════════════════════ */

/* Page-transition (View Transitions API + manual fallback) */
@view-transition { navigation: auto; }
::view-transition-old(root) {
  animation: vt-fade-out 220ms ease both;
}
::view-transition-new(root) {
  animation: vt-fade-in 320ms ease both;
}
@keyframes vt-fade-out {
  to { opacity: 0; transform: translateY(-6px); }
}
@keyframes vt-fade-in {
  from { opacity: 0; transform: translateY(8px); }
}
body { animation: page-enter 0.5s ease both; }
@keyframes page-enter {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Brand override — clean Apex palette extracted from logo */
:root {
  --navy: #0b1f44;
  --navy-light: #16306b;
  --maroon: #8b1f34;
  --maroon-dark: #6b1828;
  --gold: #d49b2a;
  --whatsapp: #25D366;
}

/* Nav brand text */
.nav-brand {
  display: flex; align-items: center; gap: 0.75rem;
  text-decoration: none;
}
/* Floating WhatsApp + Back to top */
.fab-whatsapp, .fab-top {
  position: fixed; right: 1.25rem; width: 56px; height: 56px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; text-decoration: none; z-index: 150;
  box-shadow: 0 10px 28px rgba(0,0,0,0.25); border: none; cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}
.fab-whatsapp { bottom: 1.25rem; background: var(--whatsapp); font-size: 1.6rem;
  animation: pulse-whatsapp 2.4s ease-in-out infinite; }
.fab-top { bottom: 5.5rem; background: var(--navy); font-size: 1.1rem;
  opacity: 0; pointer-events: none; transform: translateY(10px); }
.fab-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.fab-whatsapp:hover, .fab-top:hover { transform: translateY(-3px) scale(1.05); }
@keyframes pulse-whatsapp {
  0%,100% { box-shadow: 0 10px 28px rgba(0,0,0,0.25), 0 0 0 0 rgba(37,211,102,0.45); }
  50%     { box-shadow: 0 10px 28px rgba(0,0,0,0.25), 0 0 0 14px rgba(37,211,102,0); }
}

/* ── Hero (Apex parent-centered) ───────────────────── */
.hero-apex {
  position: relative;
  background: radial-gradient(ellipse at top right, rgba(212,155,42,0.12), transparent 55%),
              linear-gradient(135deg, var(--navy) 0%, #16306b 55%, #4b1522 100%);
  color: #fff;
  padding: 5rem 1.5rem 6rem;
  overflow: hidden;
}
.hero-apex::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 22px 22px; opacity: 0.6; pointer-events: none;
}
.hero-apex-grid {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 3rem; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--gold); color: var(--navy);
  padding: 0.5rem 1rem; border-radius: 999px;
  font-weight: 700; font-size: 0.85rem; letter-spacing: 0.02em;
  margin-bottom: 1.25rem; box-shadow: 0 6px 18px rgba(212,155,42,0.35);
}
.hero-apex h1 {
  font-size: clamp(2rem, 4.5vw, 3.5rem); font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 1rem;
}
.hero-apex h1 .accent { color: var(--gold); }
.hero-apex .lead {
  font-size: clamp(1rem, 1.6vw, 1.2rem); opacity: 0.92;
  margin-bottom: 1.75rem; max-width: 560px; line-height: 1.6;
}
.hero-apex .cta-row { display: flex; gap: 0.85rem; flex-wrap: wrap; margin-bottom: 2rem; }
.hero-trust {
  display: flex; gap: 1.5rem; flex-wrap: wrap; font-size: 0.85rem;
  opacity: 0.88; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.15);
}
.hero-trust strong { color: var(--gold); font-size: 1.4rem; display: block; font-weight: 800; }
.hero-visual {
  position: relative; border-radius: 24px; overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.08);
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.6s cubic-bezier(.2,.8,.2,1);
}
.hero-visual:hover { transform: perspective(1200px) rotateY(0) rotateX(0); }
.hero-visual img { width: 100%; display: block; }
.hero-visual .float-badge {
  position: absolute; bottom: 1rem; left: 1rem; right: 1rem;
  background: rgba(255,255,255,0.96); color: var(--navy);
  padding: 0.85rem 1rem; border-radius: 14px;
  display: flex; align-items: center; gap: 0.75rem;
  box-shadow: 0 10px 24px rgba(0,0,0,0.2); font-size: 0.85rem;
}
.hero-visual .live-dot {
  width: 10px; height: 10px; border-radius: 50%; background: #ef4444;
  box-shadow: 0 0 0 0 rgba(239,68,68,0.6);
  animation: live-pulse 1.6s ease-out infinite;
}
@keyframes live-pulse { 70% { box-shadow: 0 0 0 12px rgba(239,68,68,0); } 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); } }
@media (max-width: 900px) {
  .hero-apex-grid { grid-template-columns: 1fr; }
  .hero-visual { transform: none; }
}

/* ── Subject pills row ─────────────────────────── */
.subject-strip {
  background: var(--surface); padding: 1.5rem;
  border-radius: var(--radius-lg); border: none;
  box-shadow: var(--shadow-sm);
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem;
  max-width: 1100px; margin: -3.5rem auto 0; position: relative; z-index: 2;
}
.subject-pill {
  text-align: center; padding: 1rem 0.5rem; border-radius: 12px;
  transition: transform var(--transition), background var(--transition);
  cursor: default;
}
.subject-pill:hover { transform: translateY(-4px); background: rgba(11,31,68,0.04); }
.subject-pill .ico {
  width: 48px; height: 48px; border-radius: 12px; margin: 0 auto 0.5rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--gradient-brand); color: #fff;
}
.subject-pill h4 {
  color: var(--navy); font-size: 0.85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
}
@media (max-width: 720px) {
  .subject-strip { grid-template-columns: repeat(2, 1fr); margin-top: -2rem; }
}

/* ── Delivery method (Zoom mockup) ─────────────── */
.delivery {
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: 3rem; align-items: center;
}
@media (max-width: 900px) { .delivery { grid-template-columns: 1fr; } }
.zoom-mockup {
  background: #1a1f36; border-radius: 16px; overflow: hidden;
  box-shadow: 0 28px 60px rgba(11,31,68,0.25);
  font-family: var(--font); color: #fff;
}
.zoom-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 1rem; font-size: 0.85rem; font-weight: 600;
  background: rgba(0,0,0,0.25);
}
.zoom-bar .rec { color: #ef4444; display: flex; align-items: center; gap: 0.4rem; }
.zoom-bar .rec::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #ef4444; animation: live-pulse 1.6s infinite; }
.zoom-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; }
.zoom-tile {
  aspect-ratio: 16/10; border-radius: 8px; background: #0f1530;
  display: flex; align-items: center; justify-content: center; position: relative;
  font-size: 2rem;
}
.zoom-tile .label {
  position: absolute; bottom: 6px; left: 8px; font-size: 0.7rem; opacity: 0.7;
}
.zoom-whiteboard {
  background: #fff; color: #1e293b; margin: 0 6px 6px;
  border-radius: 8px; padding: 1rem 1.25rem; font-family: 'Courier New', monospace;
}
.zoom-whiteboard .head { font-size: 0.75rem; color: #94a3b8; margin-bottom: 0.35rem; }
.zoom-whiteboard .eq { font-size: 1.15rem; font-weight: 700; color: var(--navy); }
.zoom-whiteboard .check { color: #16a34a; font-size: 0.85rem; margin-top: 0.4rem; }
.zoom-controls {
  display: flex; gap: 6px; padding: 8px; background: rgba(0,0,0,0.3); justify-content: center;
  flex-wrap: wrap;
}
.zoom-controls span {
  background: rgba(255,255,255,0.1); padding: 0.4rem 0.85rem; border-radius: 8px;
  font-size: 0.75rem;
}
.zoom-controls .end { background: #ef4444; }

.delivery-list { list-style: none; padding: 0; }
.delivery-list li {
  display: flex; gap: 0.85rem; padding: 0.65rem 0;
  font-size: 1.02rem; color: var(--text);
}
.delivery-list .tick {
  flex: 0 0 24px; height: 24px; border-radius: 50%;
  background: var(--maroon); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem;
}

/* ── Why Apex grid ─────────────────────────────── */
.why-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem;
}
@media (max-width: 1000px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }
.why-card {
  background: var(--surface); padding: 1.75rem 1.5rem;
  border-radius: var(--radius-lg); border: none;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.why-card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-md);
}
.why-card h3 { color: var(--navy); font-size: 1.05rem; margin-bottom: 0.6rem; font-weight: 700; line-height: 1.35; }
.why-card p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.6; }

/* ── Enrollment band ───────────────────────────── */
.enroll-band {
  background: linear-gradient(135deg, #f1f4f9 0%, #fff 100%);
  padding: 4rem 1.5rem;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.enroll-wrap { max-width: 920px; margin: 0 auto; }
.enroll-header { text-align: center; margin-bottom: 2.5rem; }
.enroll-header h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--navy); margin-bottom: 0.5rem; }
.enroll-header p { color: var(--text-muted); max-width: 600px; margin: 0 auto; }
.enroll-card {
  background: var(--surface); padding: 2.5rem;
  border-radius: 20px; box-shadow: 0 20px 50px rgba(11,31,68,0.1);
  border: 1px solid var(--border);
}
.enroll-card h3 {
  text-align: center; color: var(--navy); font-size: 1.4rem; margin-bottom: 0.4rem;
}
.enroll-card .sub { text-align: center; color: var(--text-muted); margin-bottom: 2rem; }
.enroll-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 640px) { .enroll-grid { grid-template-columns: 1fr; } }

/* ── About page hero & tutor cards refresh ─────── */
.about-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #16306b 100%);
  color: #fff; padding: 4.5rem 1.5rem;
  position: relative; overflow: hidden;
}
.about-hero::after {
  content: ''; position: absolute; right: -100px; bottom: -100px;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(212,155,42,0.35), transparent 70%);
}
.about-hero-inner { max-width: 1100px; margin: 0 auto; position: relative; z-index: 1; }
.about-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 0.75rem; letter-spacing: -0.02em; }
.about-hero .lead { font-size: 1.15rem; opacity: 0.9; max-width: 700px; }

.tutor-card {
  background: var(--surface); border-radius: 20px;
  border: none; overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex; flex-direction: column;
}
.tutor-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.tutor-photo { aspect-ratio: 1/1; overflow: hidden; }
.tutor-photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.tutor-card:hover .tutor-photo img { transform: scale(1.06); }
.tutor-body { padding: 1.4rem 1.25rem 1.6rem; text-align: center; }
.tutor-body h3 { color: var(--navy); font-size: 1.1rem; margin-bottom: 0.2rem; }
.tutor-role {
  color: var(--maroon); font-weight: 700; font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.6rem;
}
.tutor-body p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.55; }

/* ── Footer expand ─────────────────────────────── */
.footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem;
  text-align: left; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h4 {
  color: var(--gold); font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1rem;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a {
  color: rgba(255,255,255,0.75); text-decoration: none;
  font-size: 0.9rem; transition: color var(--transition);
}
.footer-col a:hover { color: var(--gold); }
.footer-brand p { font-size: 0.9rem; opacity: 0.8; max-width: 320px; line-height: 1.6; margin-top: 0.85rem; }
.footer-bottom {
  max-width: 1200px; margin: 1.5rem auto 0;
  display: flex; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap; font-size: 0.85rem; opacity: 0.7;
}

/* Reveal v2 — works with IntersectionObserver  */
.reveal-up { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal-up.visible { opacity: 1; transform: translateY(0); }
.reveal-up.delay-1 { transition-delay: 0.1s; }
.reveal-up.delay-2 { transition-delay: 0.2s; }
.reveal-up.delay-3 { transition-delay: 0.3s; }

/* General hover lift utility */
.hover-lift { transition: transform var(--transition), box-shadow var(--transition); }
.hover-lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

