/* ═══════════════════════════════════════════════
   PHAROS TEXTBOOKS — GLOBAL STYLES
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Lora:ital,wght@0,400;0,500;0,600;1,400;1,500&display=swap');

/* ─── CSS Variables ─────────────────────────── */
:root {
  --blue:       #1B3F9E;
  --blue-dark:  #142e7a;
  --blue-light: #2a55c7;
  --gold:       #F5C400;
  --gold-dark:  #d4a900;
  --periwinkle: #C5CBE8;
  --periwinkle-light: #e8ebf5;
  --charcoal:   #2D2D2D;
  --off-white:  #F9F9F9;
  --white:      #FFFFFF;
  --wa-green:   #25D366;

  --heading-font: 'Montserrat', sans-serif;
  --body-font:    'Lora', Georgia, serif;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 8px rgba(27,63,158,0.08);
  --shadow-md: 0 6px 24px rgba(27,63,158,0.12);
  --shadow-lg: 0 16px 48px rgba(27,63,158,0.18);

  --nav-h: 72px;
  --transition: 0.22s cubic-bezier(0.4,0,0.2,1);
}

/* ─── Reset & Base ──────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--body-font);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ─── Typography ────────────────────────────── */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--heading-font);
  font-weight: 700;
  line-height: 1.2;
  color: var(--charcoal);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ─── Utility ───────────────────────────────── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section--tight { padding: 52px 0; }
.section--blue { background: var(--blue); color: var(--white); }
.section--blue h1, .section--blue h2, .section--blue h3 { color: var(--white); }
.section--offwhite { background: var(--off-white); }
.section--periwinkle { background: var(--periwinkle-light); }
.text-center { text-align: center; }
.text-blue { color: var(--blue); }
.text-gold  { color: var(--gold-dark); }

.section-label {
  font-family: var(--heading-font);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 12px;
  display: block;
}
.section-heading {
  margin-bottom: 16px;
}
.section-sub {
  font-size: 1.05rem;
  color: #555;
  max-width: 620px;
  margin: 0 auto 48px;
}
.text-center .section-sub { text-align: center; }

/* Divider */
.divider {
  width: 52px;
  height: 4px;
  background: var(--gold);
  border-radius: 2px;
  margin: 16px 0 32px;
}
.divider--center { margin: 16px auto 32px; }

/* ─── Buttons ───────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--heading-font);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 13px 26px;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-gold {
  background: var(--gold);
  color: var(--charcoal);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245,196,0,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--blue);
  transform: translateY(-1px);
}
.btn-outline-blue {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-outline-blue:hover {
  background: var(--blue);
  color: var(--white);
}
.btn-sm { padding: 9px 18px; font-size: 0.8rem; }
.btn-wa {
  background: var(--wa-green);
  color: var(--white);
  border-color: var(--wa-green);
}
.btn-wa:hover {
  background: #1da851;
  border-color: #1da851;
  transform: translateY(-1px);
}
.btn-group { display: flex; gap: 12px; flex-wrap: wrap; }

/* ─── Navigation ────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: var(--white);
  border-bottom: 1px solid var(--periwinkle);
  z-index: 1000;
  transition: box-shadow var(--transition);
}
.navbar.scrolled {
  box-shadow: var(--shadow-md);
}
.navbar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}
.navbar__logo-mark {
  width: 42px;
  height: 42px;
  background: var(--blue);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.3rem;
}
.navbar__logo-text {
  font-family: var(--heading-font);
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--blue);
  letter-spacing: -0.01em;
}
.navbar__logo-text span {
  display: block;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: #888;
  text-transform: uppercase;
  margin-top: -2px;
}
.navbar__nav {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.navbar__nav a {
  font-family: var(--heading-font);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--charcoal);
  padding: 8px 12px;
  border-radius: 6px;
  transition: all var(--transition);
  letter-spacing: 0.02em;
}
.navbar__nav a:hover, .navbar__nav a.active {
  background: var(--periwinkle-light);
  color: var(--blue);
}
.navbar__right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.lang-toggle {
  display: flex;
  background: var(--off-white);
  border: 1px solid var(--periwinkle);
  border-radius: 20px;
  overflow: hidden;
  font-family: var(--heading-font);
  font-size: 0.78rem;
  font-weight: 700;
}
.lang-toggle button {
  background: none;
  border: none;
  padding: 6px 14px;
  cursor: pointer;
  color: #888;
  transition: all var(--transition);
  letter-spacing: 0.05em;
}
.lang-toggle button.active {
  background: var(--blue);
  color: var(--white);
  border-radius: 20px;
}

/* Hamburger */
.navbar__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: 6px;
}
.navbar__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: all var(--transition);
}
.navbar__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__hamburger.open span:nth-child(2) { opacity: 0; }
.navbar__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 2px solid var(--periwinkle);
  padding: 20px 24px;
  z-index: 999;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-lg);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 16px;
  border-radius: 8px;
  color: var(--charcoal);
  transition: all var(--transition);
}
.mobile-nav a:hover { background: var(--periwinkle-light); color: var(--blue); }
.mobile-nav .lang-toggle { margin-top: 8px; align-self: flex-start; }

/* Page offset for sticky nav */
.page-content { padding-top: var(--nav-h); }

/* ─── Floating WhatsApp ──────────────────────── */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  background: var(--wa-green);
  color: var(--white);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  transition: all var(--transition);
  text-decoration: none;
}
.wa-float:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,211,102,0.6);
}

/* ─── Footer ─────────────────────────────────── */
.footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,0.85);
  padding: 60px 0 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer__logo-mark {
  width: 46px;
  height: 46px;
  background: rgba(255,255,255,0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.footer__tagline {
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  margin-top: 8px;
}
.footer h5 {
  font-family: var(--heading-font);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul a {
  color: rgba(255,255,255,0.75);
  font-family: var(--heading-font);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color var(--transition);
}
.footer ul a:hover { color: var(--white); }
.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-family: var(--heading-font);
  font-size: 0.875rem;
}
.footer__contact-item .icon { margin-top: 2px; font-size: 1rem; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--heading-font);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
}

/* ─── Hero Section ───────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 55%, #2855c7 100%);
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(197,203,232,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 20% 80%, rgba(245,196,0,0.08) 0%, transparent 60%);
}
.hero__pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: repeating-linear-gradient(
    45deg,
    var(--white) 0,
    var(--white) 1px,
    transparent 0,
    transparent 50%
  );
  background-size: 20px 20px;
}
.hero__lighthouse {
  position: absolute;
  right: 5%;
  bottom: 0;
  width: 260px;
  opacity: 0.07;
  font-size: 18rem;
  line-height: 1;
  color: var(--white);
  user-select: none;
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245,196,0,0.15);
  border: 1px solid rgba(245,196,0,0.3);
  color: var(--gold);
  font-family: var(--heading-font);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 20px;
  margin-bottom: 28px;
}
.hero__title {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  color: var(--white);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.hero__title em {
  font-style: normal;
  color: var(--gold);
}
.hero__sub {
  font-family: var(--heading-font);
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
  letter-spacing: 0.03em;
  margin-bottom: 40px;
}

/* ─── Pillars / Feature Cards ─────────────────── */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.pillar-card {
  background: var(--white);
  border: 1px solid var(--periwinkle);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.pillar-card:hover {
  border-color: var(--periwinkle);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.pillar-card:hover::before { transform: scaleX(1); }
.pillar-icon {
  width: 56px;
  height: 56px;
  background: var(--periwinkle-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  color: var(--blue);
}
.pillar-card h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.pillar-card p {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.65;
  margin: 0;
}

/* ─── Grade Tiles ────────────────────────────── */
.grade-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.grade-tile {
  background: var(--white);
  border: 2px solid var(--periwinkle);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.grade-tile:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.grade-tile__label {
  font-family: var(--heading-font);
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--blue);
  letter-spacing: -0.02em;
}
.grade-tile__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip {
  background: var(--periwinkle-light);
  color: var(--blue);
  font-family: var(--heading-font);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.03em;
}
.chip--gold { background: rgba(245,196,0,0.15); color: #8a6d00; }
.chip--green { background: #e6f7ed; color: #1a7a3c; }
.grade-tile__count {
  font-family: var(--heading-font);
  font-size: 0.8rem;
  color: #888;
  font-weight: 500;
}
.grade-tile .btn { margin-top: auto; align-self: flex-start; }

/* ─── Book Cards ─────────────────────────────── */
.books-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.book-card {
  background: var(--white);
  border: 1px solid #e8eaf2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.book-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.book-card__cover {
  height: 200px;
  background: linear-gradient(135deg, var(--periwinkle-light) 0%, #dde0f0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.book-card__cover-placeholder {
  font-size: 4rem;
  opacity: 0.4;
}
.book-card__grade-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--blue);
  color: var(--white);
  font-family: var(--heading-font);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
}
.book-card__body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.book-card__subject {
  font-family: var(--heading-font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.book-card h4 {
  font-size: 1rem;
  color: var(--charcoal);
  font-weight: 700;
  line-height: 1.3;
}
.book-card p {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.6;
  margin: 0;
  flex: 1;
}
.book-card__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.book-card__more {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--heading-font);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue);
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color var(--transition);
}
.book-card__more:hover { color: var(--blue-dark); }

/* Book detail expand */
.book-detail {
  display: none;
  padding: 16px 20px;
  background: var(--off-white);
  border-top: 1px solid var(--periwinkle);
  font-size: 0.85rem;
  color: #555;
}
.book-detail.open { display: block; }

/* ─── Testimonial Cards ──────────────────────── */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.review-card {
  background: var(--white);
  border: 1px solid var(--periwinkle);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
}
.review-card::before {
  content: '"';
  position: absolute;
  top: 16px;
  left: 20px;
  font-size: 4rem;
  color: var(--periwinkle);
  font-family: Georgia, serif;
  line-height: 1;
}
.review-card__stars {
  color: var(--gold-dark);
  font-size: 0.9rem;
  margin-bottom: 12px;
  margin-left: 24px;
}
.review-card__quote {
  font-style: italic;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--charcoal);
  margin-bottom: 16px;
  padding-left: 24px;
}
.review-card__author {
  font-family: var(--heading-font);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue);
  padding-left: 24px;
}

/* ─── CTA Banner ─────────────────────────────── */
.cta-banner {
  background: var(--blue);
  padding: 72px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '⚓';
  position: absolute;
  font-size: 18rem;
  opacity: 0.04;
  right: -40px;
  top: -60px;
  user-select: none;
}
.cta-banner h2 { color: var(--white); margin-bottom: 28px; }
.cta-banner p { color: rgba(255,255,255,0.8); margin-bottom: 36px; }

/* ─── About Snippet (2 col) ──────────────────── */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-split--reverse { direction: rtl; }
.about-split--reverse > * { direction: ltr; }
.about-image {
  background: linear-gradient(135deg, var(--periwinkle-light) 0%, #dde0f0 100%);
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: var(--blue);
  opacity: 0.5;
}
.about-quote {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--blue);
  border-left: 4px solid var(--gold);
  padding-left: 20px;
  margin-bottom: 24px;
  line-height: 1.65;
}

/* ─── Shop Page Specific ─────────────────────── */
.page-header {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  padding: 60px 0;
  color: var(--white);
}
.page-header h1 { color: var(--white); }
.page-header p { color: rgba(255,255,255,0.8); margin-top: 12px; }

.filter-bar {
  position: sticky;
  top: var(--nav-h);
  z-index: 100;
  background: var(--white);
  border-bottom: 2px solid var(--periwinkle);
  padding: 14px 0;
  box-shadow: var(--shadow-sm);
}
.filter-bar__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.filter-label {
  font-family: var(--heading-font);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #888;
  white-space: nowrap;
}
.filter-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.filter-pill {
  background: var(--off-white);
  border: 1px solid var(--periwinkle);
  color: var(--charcoal);
  font-family: var(--heading-font);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.filter-pill:hover, .filter-pill.active {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}
.filter-divider { width: 1px; height: 24px; background: var(--periwinkle); }

.grade-section {
  padding: 64px 0;
  border-bottom: 1px solid var(--periwinkle);
}
.grade-section:last-child { border-bottom: none; }
.grade-section--alt { background: var(--off-white); }
.grade-section__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.grade-section__title-block {}
.grade-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--blue);
  color: var(--white);
  font-family: var(--heading-font);
  font-weight: 900;
  font-size: 1rem;
  padding: 8px 20px;
  border-radius: 6px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.grade-badge .count-tag {
  background: rgba(255,255,255,0.2);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
}
.info-callout {
  background: rgba(197,203,232,0.3);
  border: 1px solid var(--periwinkle);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 32px;
  font-size: 0.88rem;
  font-family: var(--heading-font);
  color: var(--blue);
  font-weight: 500;
}
.free-pdf-callout {
  background: #e6f7ed;
  border: 1px solid #b7dfc7;
  border-left: 4px solid #1a7a3c;
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-top: 32px;
  font-size: 0.88rem;
  font-family: var(--heading-font);
  color: #1a5c30;
  font-weight: 500;
}
.view-pricelist-link {
  font-family: var(--heading-font);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--blue);
  text-decoration: underline;
  cursor: pointer;
  transition: color var(--transition);
}
.view-pricelist-link:hover { color: var(--blue-dark); }

/* ─── Curriculum Page ────────────────────────── */
.subject-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--periwinkle);
  margin-bottom: 40px;
}
.subject-tab {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 14px 24px;
  font-family: var(--heading-font);
  font-size: 0.88rem;
  font-weight: 700;
  color: #888;
  cursor: pointer;
  transition: all var(--transition);
  margin-bottom: -2px;
  letter-spacing: 0.02em;
}
.subject-tab:hover { color: var(--blue); }
.subject-tab.active {
  color: var(--blue);
  border-bottom-color: var(--gold);
}
.subject-panel { display: none; }
.subject-panel.active { display: block; }

.grade-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.grade-tab {
  background: var(--off-white);
  border: 2px solid var(--periwinkle);
  border-radius: 6px;
  padding: 10px 20px;
  font-family: var(--heading-font);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--charcoal);
  cursor: pointer;
  transition: all var(--transition);
}
.grade-tab:hover { border-color: var(--blue); color: var(--blue); }
.grade-tab.active {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}
.grade-panel { display: none; }
.grade-panel.active { display: block; }

/* Accordion */
.accordion { border: 1px solid var(--periwinkle); border-radius: var(--radius-lg); overflow: hidden; }
.accordion-item { border-bottom: 1px solid var(--periwinkle); }
.accordion-item:last-child { border-bottom: none; }
.accordion-trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-family: var(--heading-font);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--charcoal);
  text-align: left;
  transition: background var(--transition);
  gap: 12px;
}
.accordion-trigger:hover { background: var(--off-white); }
.accordion-trigger.open { background: var(--periwinkle-light); color: var(--blue); }
.accordion-icon {
  font-size: 1.1rem;
  transition: transform var(--transition);
  flex-shrink: 0;
  color: var(--blue);
}
.accordion-trigger.open .accordion-icon { transform: rotate(180deg); }
.accordion-content {
  display: none;
  padding: 20px 24px;
  background: var(--off-white);
  font-size: 0.9rem;
  line-height: 1.75;
  color: #444;
  border-top: 1px solid var(--periwinkle);
}
.accordion-content.open { display: block; }
.accordion-content p:last-child { margin-bottom: 0; }

/* Term label in accordion */
.term-label {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  font-family: var(--heading-font);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  margin-right: 10px;
}

/* Maths structure */
.maths-structure {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 32px 0;
}
.maths-step {
  text-align: center;
  padding: 24px 16px;
  background: var(--white);
  border: 1px solid var(--periwinkle);
  border-radius: var(--radius);
}
.maths-step__num {
  width: 36px;
  height: 36px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  font-family: var(--heading-font);
  font-weight: 900;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}
.maths-step h4 { font-size: 0.88rem; color: var(--blue); margin-bottom: 8px; }
.maths-step p { font-size: 0.82rem; color: #666; margin: 0; }

/* ─── About Page ─────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 40px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--blue), var(--periwinkle));
}
.timeline-item {
  position: relative;
  margin-bottom: 32px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -34px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 3px var(--blue);
}
.timeline-item h4 {
  font-size: 0.92rem;
  color: var(--blue);
  margin-bottom: 6px;
}
.timeline-item p {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.65;
  margin: 0;
}

/* Mission block */
.mission-block {
  background: var(--blue);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.mission-block::before {
  content: '🔆';
  position: absolute;
  font-size: 12rem;
  opacity: 0.05;
  right: -20px;
  top: -20px;
}
.mission-block blockquote {
  font-size: 1.35rem;
  font-style: italic;
  color: var(--gold);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.mission-block p {
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ─── Contact Page ───────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}
.contact-info-card {
  background: var(--blue);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  color: var(--white);
}
.contact-info-card h3 { color: var(--white); margin-bottom: 24px; }
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.contact-detail:last-of-type { border-bottom: none; }
.contact-detail__icon {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-detail__label {
  font-family: var(--heading-font);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 4px;
}
.contact-detail__value {
  font-family: var(--heading-font);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
}
.contact-detail__value a {
  color: var(--gold);
  text-decoration: none;
  transition: opacity var(--transition);
}
.contact-detail__value a:hover { opacity: 0.8; }

/* Form */
.contact-form {
  background: var(--white);
  border: 1px solid var(--periwinkle);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
}
.contact-form h3 { margin-bottom: 24px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-family: var(--heading-font);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--periwinkle);
  border-radius: 8px;
  font-family: var(--body-font);
  font-size: 0.9rem;
  color: var(--charcoal);
  background: var(--off-white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(27,63,158,0.08);
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select { cursor: pointer; }

/* FAQ */
.faq-section { max-width: 760px; margin: 0 auto; }

/* ─── Lightbox/Modal ─────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 500px;
  width: 100%;
  position: relative;
  text-align: center;
}
.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--off-white);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.modal__close:hover { background: var(--periwinkle); }
.modal h3 { margin-bottom: 16px; }
.modal p { font-size: 0.9rem; color: #555; margin-bottom: 24px; }

/* ─── Review Images Grid ────────────────────── */
.review-images-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.review-img-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--white);
  border: 1px solid #e8eaf2;
  transition: all var(--transition);
}
.review-img-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.review-img-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* ─── PDF Download Buttons ───────────────────── */
.pdf-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.btn-pdf {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--off-white);
  color: var(--charcoal);
  border: 1.5px solid #d0d3e0;
  border-radius: var(--radius);
  padding: 10px 18px;
  font-family: var(--heading-font);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
}
.btn-pdf:hover {
  background: var(--periwinkle-light);
  border-color: var(--blue);
  color: var(--blue);
}
.btn-pdf .pdf-icon { color: #e53935; font-size: 1rem; }

/* ─── Responsive ─────────────────────────────── */
@media (max-width: 1024px) {
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .maths-structure { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .grade-grid { grid-template-columns: repeat(2, 1fr); }
  .books-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: 1fr; }
  .review-images-grid { grid-template-columns: repeat(2, 1fr); }
  .about-split { grid-template-columns: 1fr; gap: 32px; }
  .about-split--reverse { direction: ltr; }
  .contact-grid { grid-template-columns: 1fr; }
  .navbar__nav { display: none; }
  .navbar__hamburger { display: flex; }
  .navbar .btn { display: none; }
}
@media (max-width: 640px) {
  .section { padding: 52px 0; }
  .pillars-grid { grid-template-columns: 1fr; }
  .grade-grid { grid-template-columns: 1fr; }
  .books-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .maths-structure { grid-template-columns: 1fr 1fr; }
  .about-split { gap: 24px; }
  .mission-block { padding: 32px 24px; }
  .contact-form, .contact-info-card { padding: 28px 20px; }
  .review-images-grid { grid-template-columns: 1fr; }
  .pdf-downloads { flex-direction: column; }
}
