/* Shivali Maths Hub — Design System */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --navy: #0F1F3A;
  --navy-light: #1a3055;
  --gold: #C9A227;
  --gold-light: #dbb94a;
  --highlight: #C9A227;
  --highlight-bg: rgba(201, 162, 39, 0.35);
  --cream: #FAF9F6;
  --charcoal: #1A1A1A;
  --grey: #E8E6E1;
  --grey-dark: #6b7280;
  --white: #ffffff;
  --shadow: 0 4px 24px rgba(15, 31, 58, 0.08);
  --shadow-lg: 0 12px 48px rgba(15, 31, 58, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --transition: 0.25s ease;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
  color: var(--navy);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section { padding: 5rem 0; }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 3rem; }
.section-header p { color: var(--grey-dark); margin-top: 0.75rem; font-size: 1.05rem; }
.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.text-highlight {
  background: linear-gradient(180deg, transparent 60%, var(--highlight-bg, rgba(201, 162, 39, 0.35)) 60%);
  padding: 0 0.15em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
}
.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover {
  background: var(--navy-light);
  color: var(--white);
  transform: translateY(-2px);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(250, 249, 246, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--grey);
  transition: box-shadow var(--transition);
  overflow: visible;
}
.site-header.scrolled { box-shadow: var(--shadow); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
  overflow: visible;
}

/* Logo brand (all pages) */
.logo-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--navy);
  flex-shrink: 0;
  max-width: none;
}
.logo-brand:hover { color: var(--navy); }
.logo-icon {
  flex-shrink: 0;
  transition: transform var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.logo-icon img {
  display: block;
  height: 54px;
  width: auto;
  max-width: none;
  object-fit: contain;
}
.logo-brand:hover .logo-icon { transform: scale(1.04); }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.logo-line {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.logo-name { color: var(--navy); }
.logo-highlight {
  color: var(--gold);
  position: relative;
}
.logo-highlight::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  opacity: 0.45;
}
.logo-tagline {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey-dark);
  margin-top: 0.15rem;
  white-space: nowrap;
}
.site-footer .logo-brand { max-width: none; }
.site-footer .logo-brand .logo-name,
.site-footer .logo-brand .logo-highlight { color: var(--white); }
.site-footer .logo-brand .logo-tagline { color: rgba(255,255,255,0.55); }
.site-footer .logo-icon img {
  height: 50px;
  filter: brightness(1.05);
}

@media (max-width: 1100px) {
  .logo-tagline { display: none; }
  .logo-line { font-size: 1.4rem; }
}
@media (max-width: 480px) {
  .logo-icon img { height: 40px; }
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
}
.logo span { color: var(--gold); }

/* Legacy .logo — prefer .logo-brand */

.nav-desktop {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.15rem;
  flex-wrap: nowrap;
  flex: 1;
  min-width: 0;
  overflow: visible;
}
.nav-desktop > a {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--charcoal);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav-desktop > a:hover,
.nav-desktop > a.active {
  color: var(--navy);
  background: var(--grey);
}
.nav-desktop__cta.btn {
  margin-left: 0.35rem;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.2;
  border-width: 1.5px;
  flex-shrink: 0;
  white-space: nowrap;
  align-self: center;
}
.nav-desktop__cta.btn:hover { transform: none; }

.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.nav-dropdown__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--charcoal);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  background: transparent;
  font-family: inherit;
  text-decoration: none;
}
.nav-dropdown__toggle:hover,
.nav-dropdown__toggle.active,
.nav-dropdown.active .nav-dropdown__toggle,
.nav-dropdown.open .nav-dropdown__toggle {
  color: var(--navy);
  background: var(--grey);
}
.nav-dropdown__caret {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  opacity: 0.75;
  transition: transform 0.2s ease;
  display: block;
}
.nav-dropdown:hover .nav-dropdown__caret,
.nav-dropdown.open .nav-dropdown__caret {
  transform: rotate(180deg);
  opacity: 1;
}
.nav-dropdown__menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 220px;
  max-width: 280px;
  background: var(--white);
  border: 1px solid var(--grey);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 1001;
}
.nav-dropdown__menu::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 10px;
}
.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown.open .nav-dropdown__menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown__menu a {
  display: block;
  padding: 0.65rem 1.15rem;
  color: var(--navy);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  white-space: normal;
  line-height: 1.35;
  border-radius: 0;
  background: transparent;
}
.nav-dropdown__menu a:hover {
  background: rgba(201, 162, 39, 0.12);
  color: var(--gold);
}

.nav-mobile__group { width: 100%; }
.nav-mobile__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.75rem 0;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 1.2rem;
  font-family: var(--font-heading);
  cursor: pointer;
  text-align: left;
}
.nav-mobile__toggle-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.85;
  transition: transform var(--transition);
  display: block;
}
.nav-mobile__group.open .nav-mobile__toggle-icon { transform: rotate(180deg); }
.nav-mobile__sub { display: none; padding-bottom: 0.5rem; }
.nav-mobile__group.open .nav-mobile__sub { display: block; }
.nav-mobile__sub a {
  display: block;
  padding: 0.55rem 0 0.55rem 1rem;
  font-size: 1rem;
  font-family: var(--font-body);
  border-bottom: none;
  color: rgba(255, 255, 255, 0.85);
}
.nav-mobile__sub a:hover { color: var(--gold); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1002;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: var(--transition);
}

.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 1001;
  padding: 5rem 1.5rem 2rem;
  flex-direction: column;
  gap: 0.25rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  color: var(--white);
  font-size: 1.1rem;
  font-family: var(--font-heading);
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.nav-mobile .btn { margin-top: 1.25rem; align-self: stretch; text-align: center; }

/* Mobile nav — must come AFTER .nav-desktop { display: flex } */
@media (max-width: 1100px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: block; }
  .header-inner { padding: 0.75rem 0; }
  .logo-line { font-size: 1.25rem; }
  .logo-icon img { height: 46px; }
}

@media (max-width: 480px) {
  .logo-line { font-size: 1.05rem; }
  .logo-icon img { height: 40px; }
  .logo-brand { gap: 0.5rem; max-width: calc(100% - 3rem); }
  .nav-mobile { padding: 4.5rem 1.25rem 1.5rem; }
  .nav-mobile a { font-size: 1rem; padding: 0.75rem 0; }
}

@media (max-width: 1280px) {
  .nav-desktop > a,
  .nav-dropdown__toggle {
    padding: 0.45rem 0.55rem;
    font-size: 0.82rem;
  }
  .nav-desktop__cta.btn {
    padding: 0.45rem 0.85rem;
    font-size: 0.8rem;
  }
  .logo-line { font-size: 1.3rem; }
  .logo-icon img { height: 48px; }
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201,162,39,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
}
.hero-content h1 { color: var(--white); margin-bottom: 1rem; }
.hero-content .tagline {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-visual {
  display: flex;
  justify-content: center;
}
.hero-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
  backdrop-filter: blur(8px);
}
.hero-card .initials {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.hero-card h3 { color: var(--white); margin-bottom: 0.25rem; }
.hero-card p { opacity: 0.8; font-size: 0.95rem; }

@media (max-width: 768px) {
  .hero { padding: 4rem 0 3rem; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-badges, .hero-actions { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-card { padding: 1.5rem; }
  .hero-card .initials { width: 80px; height: 80px; font-size: 2rem; }
}

/* Stats */
.stats-bar {
  background: var(--white);
  border-bottom: 1px solid var(--grey);
  padding: 2.5rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-item .stat-value {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.stat-item .stat-label {
  font-size: 0.9rem;
  color: var(--grey-dark);
  margin-top: 0.35rem;
}
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.card-grid--courses {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.card-grid--courses .course-card-img--grid {
  flex: unset;
  min-width: unset;
  width: 100%;
}
.course-card-img__thumb-link {
  display: block;
  text-decoration: none;
}
.course-card-img__title-link {
  color: inherit;
  text-decoration: none;
}
.course-card-img__title-link:hover {
  color: var(--gold);
}

/* Course detail page */
.course-detail__layout {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: 2.5rem;
  align-items: start;
}
.course-detail__image {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 16/10;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}
.course-detail__meta-card {
  margin-top: 1.25rem;
  padding: 1.25rem;
  background: var(--white);
  border: 1px solid var(--grey);
  border-radius: var(--radius);
}
.course-detail__meta-card p {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}
.course-detail__meta-card p:last-child { margin-bottom: 0; }
.course-detail__price {
  margin-top: 0.75rem !important;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
}
.course-detail__description {
  color: var(--grey-dark);
  line-height: 1.8;
}
.course-detail__description img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.course-detail__description .btn,
.blog-content .btn {
  margin-top: 0.25rem;
}
.course-detail__cta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.course-consult-card__header {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--grey);
}
.course-consult-card__thumb {
  width: 88px;
  height: 66px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.booking-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 600px) {
  .booking-form__row { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .course-detail__layout { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--grey);
  padding: 2rem;
  transition: all var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--grey-dark); font-size: 0.95rem; }
.card-price {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  margin: 1rem 0;
}
.card-meta {
  font-size: 0.85rem;
  color: var(--grey-dark);
  margin-bottom: 0.5rem;
}
.card-meta span { display: block; }

/* Course card variant */
.course-card { display: flex; flex-direction: column; }
.course-card .card-body { flex: 1; }
.course-card .btn { margin-top: auto; align-self: flex-start; }

/* USP */
.usp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

/* Testimonials */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--grey);
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  font-family: var(--font-heading);
  font-size: 4rem;
  color: var(--gold);
  opacity: 0.3;
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  line-height: 1;
}
.testimonial-card blockquote {
  font-style: italic;
  margin-bottom: 1rem;
  padding-top: 1.5rem;
  color: var(--charcoal);
}
.testimonial-author { font-weight: 600; color: var(--navy); }
.testimonial-meta { font-size: 0.85rem; color: var(--grey-dark); }
.stars { color: var(--gold); margin-bottom: 0.5rem; letter-spacing: 2px; }

/* Blog cards */
.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--grey);
  transition: all var(--transition);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-card-body { padding: 1.5rem; }
.blog-card h3 { margin-bottom: 0.5rem; font-size: 1.2rem; }
.blog-card h3 a { color: var(--navy); }
.blog-card h3 a:hover { color: var(--gold); }
.blog-meta { font-size: 0.8rem; color: var(--grey-dark); margin-bottom: 0.75rem; }

/* Blog cards with image */
.blog-card-img {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--grey);
  transition: all var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.blog-card-img:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-card-img__thumb {
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.blog-card-img__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.blog-card-img:hover .blog-card-img__thumb img { transform: scale(1.05); }
.blog-card-img__body { padding: 1.5rem; flex: 1; }
.blog-card-img h3 { margin-bottom: 0.5rem; font-size: 1.2rem; }
.blog-card-img h3 a { color: var(--navy); }
.blog-card-img h3 a:hover { color: var(--gold); }

.blog-post-hero {
  margin: 0 0 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--grey);
}
.blog-post-hero img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}
.cta-section h2 { color: var(--white); margin-bottom: 0.75rem; }
.cta-section p { opacity: 0.9; margin-bottom: 1.5rem; max-width: 550px; margin-left: auto; margin-right: auto; }
.cta-section__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.cta-section__lead { max-width: 640px; font-size: 1.05rem; line-height: 1.65; }
.cta-section__sub { max-width: 520px; font-size: 0.92rem; opacity: 0.8; margin-top: -0.75rem; }
.cta-section__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}
.cta-section--resources .btn-outline {
  border-color: rgba(255,255,255,0.55);
  color: var(--white);
}
.cta-section--resources .btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
  color: var(--white);
}

/* Free resources modal */
.resource-modal[hidden] { display: none; }
.resource-modal {
  position: fixed;
  inset: 0;
  z-index: 11000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.resource-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 31, 58, 0.65);
  backdrop-filter: blur(4px);
}
.resource-modal__panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.75rem 1.75rem;
  box-shadow: var(--shadow-lg);
}
.resource-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
  border: none;
  background: none;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--grey-dark);
  cursor: pointer;
}
.resource-modal__intro {
  color: var(--grey-dark);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.resource-modal__form .form-group { margin-bottom: 1rem; text-align: left; }
.resource-modal__fieldset-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--navy, #1a2744);
  font-size: 0.92rem;
}
.resource-guide-choice {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.resource-modal__form .resource-guide-choice__option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--grey, #e2e8f0);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.92rem;
  line-height: 1.35;
  margin: 0;
  color: var(--navy, #1a2744);
  box-sizing: border-box;
}
.resource-modal__form .resource-guide-choice__option:has(input:checked) {
  border-color: var(--gold, #c9a227);
  background: rgba(201, 162, 39, 0.08);
}
.resource-modal__form .resource-guide-choice__option input[type="radio"] {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  flex-shrink: 0;
  accent-color: var(--gold, #c9a227);
  box-shadow: none;
}
.resource-modal__form .resource-guide-choice__option span {
  flex: 1;
  min-width: 0;
}
.resource-modal__form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--navy);
}
.resource-modal__form input[type="text"],
.resource-modal__form input[type="email"] {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--grey);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  box-sizing: border-box;
}
.resource-modal__form input[type="text"]:focus,
.resource-modal__form input[type="email"]:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.2);
}
.resource-modal__honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  pointer-events: none;
}
.resource-modal__error {
  margin-bottom: 0.85rem;
  padding: 0.65rem 0.85rem;
  background: #fee2e2;
  color: #b91c1c;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  text-align: left;
}
.resource-modal__success { text-align: center; }
.resource-modal__success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: rgba(201, 162, 39, 0.15);
  color: var(--gold);
  font-size: 1.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.resource-modal__success h3 {
  font-family: var(--font-heading);
  color: var(--navy);
  margin-bottom: 0.65rem;
}
.resource-modal__success p {
  color: var(--grey-dark);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}
.resource-modal__success-note {
  font-size: 0.85rem;
  font-style: italic;
  opacity: 0.85;
}

.cta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.cta-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: left;
}
.cta-card h3 { color: var(--white); margin-bottom: 0.5rem; }
.cta-card p { opacity: 0.85; font-size: 0.95rem; margin-bottom: 1rem; }

/* Page header */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 4rem 0 3rem;
  text-align: center;
}
.page-header h1 { color: var(--white); margin-bottom: 0.75rem; }
.page-header p { opacity: 0.9; max-width: 600px; margin: 0 auto; }
.page-header--tutors { padding-bottom: 3.25rem; }
.page-header__intro {
  max-width: 680px;
  margin: 1rem auto 0;
  text-align: center;
}
.page-header__intro p {
  margin: 0 0 0.85rem;
  line-height: 1.7;
  font-size: 1.02rem;
  opacity: 0.92;
  max-width: none;
}
.page-header__intro p:last-child { margin-bottom: 0; }
.page-header__note {
  margin-top: 1rem !important;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.88rem !important;
  line-height: 1.65 !important;
  opacity: 0.72 !important;
}

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--grey);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--gold);
  transition: transform var(--transition);
}
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-answer-inner {
  padding: 0 1.5rem 1.25rem;
  color: var(--grey-dark);
  line-height: 1.7;
}
.faq-item.open .faq-answer { max-height: 500px; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
}
.contact-info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--grey);
  margin-bottom: 1.5rem;
}
.contact-info-card h3 { margin-bottom: 1rem; }
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.contact-detail .icon {
  width: 36px;
  height: 36px;
  background: var(--grey);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

/* Forms */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--navy);
}
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--grey);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
  transition: border-color var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,162,39,0.15);
}
textarea.form-control { min-height: 120px; resize: vertical; }
.form-honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* Full-page submit loader (contact / booking) */
body.is-form-submitting {
  overflow: hidden;
}
.form-submit-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 31, 58, 0.45);
  backdrop-filter: blur(2px);
}
.form-submit-overlay__box {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  max-width: 320px;
  width: calc(100% - 2rem);
}
.form-submit-overlay__spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 1rem;
  border: 3px solid var(--grey);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: form-submit-spin 0.75s linear infinite;
}
.form-submit-overlay__text {
  margin: 0;
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.45;
}
@keyframes form-submit-spin {
  to { transform: rotate(360deg); }
}

.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* Tutor cards */
.tutor-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--grey);
  padding: 2rem;
  text-align: center;
  transition: all var(--transition);
}
.tutor-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.tutor-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--grey);
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--navy);
  overflow: hidden;
}
.tutor-avatar img { width: 100%; height: 100%; object-fit: cover; }
.tutor-card h3 { margin-bottom: 0.25rem; }
.tutor-spec { color: var(--gold); font-weight: 600; font-size: 0.9rem; margin-bottom: 0.75rem; }
.tutor-card p { color: var(--grey-dark); font-size: 0.9rem; margin-bottom: 1rem; }

/* Recommended tutors directory — full width, fixed photo, show more on bio */
.tutors-directory .container {
  max-width: 1200px;
}
.tutors-directory__list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  width: 100%;
  margin: 0;
  max-width: none;
}
.tutor-profile {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 0;
  align-items: start; /* expand text only — photo stays fixed */
  background: var(--white);
  border: 1px solid var(--grey);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(26, 39, 68, 0.06);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.tutor-profile:hover {
  box-shadow: 0 14px 36px rgba(26, 39, 68, 0.1);
  transform: translateY(-2px);
}
.tutor-profile__media {
  width: 280px;
  height: 320px;
  flex-shrink: 0;
  background: linear-gradient(160deg, #1a2744 0%, #2c3e5f 100%);
  overflow: hidden;
  position: relative;
}
.tutor-profile__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.tutor-profile__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-heading);
  font-size: 4.5rem;
  color: var(--gold);
}
.tutor-profile__body {
  padding: 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  min-width: 0;
}
.tutor-profile__name {
  margin: 0 0 0.3rem;
  color: var(--navy);
  font-size: 1.7rem;
  line-height: 1.2;
}
.tutor-profile__spec {
  margin: 0 0 0.9rem;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.tutor-profile__summary {
  color: var(--grey-dark);
  font-size: 1rem;
  line-height: 1.65;
  flex: 1 1 auto;
  margin-bottom: 1.15rem;
}
.tutor-profile__summary-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  overflow: hidden;
}
.tutor-profile.is-expanded .tutor-profile__summary-text {
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  overflow: visible;
}
.tutor-profile__summary p { margin: 0; }
.tutor-profile__more {
  margin-top: 0.65rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.tutor-profile__more:hover {
  color: var(--gold);
}
.tutor-profile__cta {
  align-self: flex-start;
  margin-top: auto;
  flex-shrink: 0;
}
@media (max-width: 900px) {
  .tutor-profile {
    grid-template-columns: 240px minmax(0, 1fr);
  }
  .tutor-profile__media {
    width: 240px;
    height: 280px;
  }
  .tutor-profile__body {
    min-height: 280px;
    padding: 1.5rem 1.5rem;
  }
}
@media (max-width: 768px) {
  .tutor-profile {
    grid-template-columns: 1fr;
  }
  .tutor-profile__media {
    width: 100%;
    height: 280px;
  }
  .tutor-profile__body {
    min-height: 0;
    padding: 1.25rem 1.25rem 1.5rem;
  }
  .tutor-profile__name { font-size: 1.4rem; }
}

/* Pre-footer: Google Reviews */
.pre-footer-social {
  background: var(--white);
  border-top: 1px solid var(--grey);
  padding: 3.5rem 0;
}
.pre-footer-social__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
}
.pre-footer-social__grid--single {
  grid-template-columns: 1fr;
  max-width: 900px;
  margin: 0 auto;
}
.pre-footer-social__panel {
  min-width: 0;
  height: 100%;
}
.pre-footer-social__panel--google {
  background: var(--cream);
  border: 1px solid var(--grey);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.google-reviews-embed {
  min-height: 120px;
  width: 100%;
}
.google-reviews-embed__hint {
  margin: 1rem 0;
  color: var(--grey-dark);
  font-size: 0.92rem;
  line-height: 1.55;
}
.google-reviews--fallback {
  padding: 0.25rem 0;
}

/* Google Reviews panel */
.google-reviews {
  padding: 0.15rem 0;
}
.google-reviews__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.google-reviews__brand {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  min-width: 0;
}
.google-reviews__g {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #dadce0;
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.15);
}
.google-reviews__g svg {
  display: block;
}
.google-reviews__title {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: #202124;
  margin-bottom: 0.15rem;
}
.google-reviews__address {
  font-size: 0.82rem;
  color: #70757a;
  line-height: 1.4;
}
.google-reviews__write {
  flex-shrink: 0;
  padding: 0.5rem 1rem;
  border: 1px solid #dadce0;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #1a73e8;
  background: #fff;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.google-reviews__write:hover {
  color: #174ea6;
  background: #f8f9fa;
  border-color: #dadce0;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.15);
}
.google-reviews__summary {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid #e8eaed;
}
.google-reviews__score {
  font-size: 1.75rem;
  font-weight: 500;
  color: #202124;
  line-height: 1;
  font-family: var(--font-body);
}
.google-reviews__stars {
  display: flex;
  gap: 0.08rem;
  color: #fabb05;
  font-size: 1.15rem;
  line-height: 1;
}
.google-reviews__star--empty {
  color: #dadce0;
}
.google-reviews__star--half {
  position: relative;
  color: #dadce0;
}
.google-reviews__star--half::before {
  content: '★';
  position: absolute;
  left: 0;
  top: 0;
  width: 50%;
  overflow: hidden;
  color: #fabb05;
}
.google-reviews__count {
  font-size: 0.88rem;
  color: #70757a;
}
.google-reviews__empty {
  margin: 0 0 0.5rem;
  color: #70757a;
  font-size: 0.92rem;
  line-height: 1.55;
}
.google-reviews__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-right: 0;
}
.google-review-card {
  padding: 1rem 0 1.15rem;
  border-bottom: 1px solid #e8eaed;
}
.google-review-card:first-child {
  padding-top: 0;
}
.google-review-card:last-child {
  padding-bottom: 0;
  border-bottom: none;
}
.google-review-card__top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}
.google-review-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  font-weight: 500;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-body);
}
.google-review-card__name {
  font-weight: 500;
  font-size: 0.92rem;
  color: #202124;
}
.google-review-card__meta {
  font-size: 0.78rem;
  color: #70757a;
  margin-top: 0.1rem;
}
.google-review-card__rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}
.google-review-card__stars {
  color: #fabb05;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}
.google-review-card__date {
  font-size: 0.78rem;
  color: #70757a;
}
.google-review-card__text {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #3c4043;
  margin: 0;
}
.google-review-card__reply {
  margin-top: 0.85rem;
  padding: 0.85rem 1rem;
  background: #f8f9fa;
  border-radius: 8px;
}
.google-review-card__reply strong {
  display: block;
  font-size: 0.78rem;
  color: #202124;
  margin-bottom: 0.35rem;
  font-weight: 500;
}
.google-review-card__reply p {
  font-size: 0.84rem;
  color: #3c4043;
  line-height: 1.5;
  margin: 0;
}
.google-reviews__more {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: #1a73e8;
}
.google-reviews__more:hover { color: #174ea6; text-decoration: underline; }

/* LinkedIn profile card — matches linkedin.com/in/shivali-johri-maths */
.linkedin-embed-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.linkedin-profile-card {
  display: flex;
  flex-direction: column;
  flex: 1;
  background: var(--white);
  border: 1px solid #d0d7de;
  border-radius: var(--radius-sm);
  overflow: hidden;
  color: inherit;
  transition: box-shadow var(--transition), transform var(--transition);
}
.linkedin-profile-card:hover {
  color: inherit;
  box-shadow: 0 10px 32px rgba(15, 31, 58, 0.14);
  transform: translateY(-2px);
}
.linkedin-profile-card__topbar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.85rem;
  background: #f3f6f8;
  border-bottom: 1px solid #e8e6e1;
  font-size: 0.72rem;
  color: #666;
}
.linkedin-profile-card__topbar .linkedin-profile-card__logo {
  color: #0a66c2;
  flex-shrink: 0;
}
.linkedin-profile-card__banner {
  position: relative;
  background: var(--white);
  line-height: 0;
}
.linkedin-profile-card__banner-img {
  width: 100%;
  height: auto;
  min-height: 100px;
  max-height: 130px;
  object-fit: cover;
  object-position: left center;
}
.linkedin-profile-card__body {
  padding: 0 1.15rem 1.15rem;
  position: relative;
}
.linkedin-profile-card__photo-wrap {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 4px solid var(--white);
  overflow: hidden;
  background: var(--grey);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-top: -48px;
  margin-bottom: 0.65rem;
}
.linkedin-profile-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.linkedin-profile-card__name {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.25;
  margin-bottom: 0.15rem;
}
.linkedin-profile-card__subname {
  font-size: 0.82rem;
  color: var(--grey-dark);
  margin-bottom: 0.5rem;
}
.linkedin-profile-card__dot {
  margin: 0 0.15rem;
}
.linkedin-profile-card__headline {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--charcoal);
  margin-bottom: 0.45rem;
}
.linkedin-profile-card__location {
  font-size: 0.78rem;
  color: var(--grey-dark);
  margin-bottom: 0.35rem;
}
.linkedin-profile-card__stats {
  font-size: 0.78rem;
  color: var(--grey-dark);
  margin-bottom: 0.65rem;
}
.linkedin-profile-card__stats strong {
  color: #0a66c2;
  font-weight: 600;
}
.linkedin-profile-card__affiliations {
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
}
.linkedin-profile-card__affiliations li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: var(--charcoal);
  margin-bottom: 0.35rem;
  line-height: 1.35;
}
.linkedin-profile-card__org-icon {
  font-size: 0.9rem;
  flex-shrink: 0;
  opacity: 0.85;
}
.linkedin-profile-card__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.linkedin-profile-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
}
.linkedin-profile-card__btn--primary {
  background: #0a66c2;
  color: var(--white);
  border: 1px solid #0a66c2;
}
.linkedin-profile-card__btn--secondary {
  background: var(--white);
  color: #666;
  border: 1px solid #666;
}

@media (max-width: 992px) {
  .pre-footer-social__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .pre-footer-social { padding: 2.5rem 0; }
  .pre-footer-social__panel--google { padding: 1.25rem; }
  .google-reviews__header {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Course PDF viewer */
.course-pdf-section {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--grey);
}
.course-pdf-section__title {
  text-align: center;
  margin-bottom: 1.25rem;
  color: var(--navy);
}
.course-pdf-viewer {
  background: var(--cream);
  border: 1px solid var(--grey);
  border-radius: var(--radius);
  overflow: hidden;
}
.course-pdf-toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  background: var(--navy);
  color: var(--white);
}
.course-pdf-toolbar__spacer { flex: 1; }
.course-pdf-btn {
  min-width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}
.course-pdf-btn:hover:not(:disabled) { background: rgba(255,255,255,0.2); }
.course-pdf-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.course-pdf-page-info,
.course-pdf-zoom-info {
  font-size: 0.85rem;
  min-width: 80px;
  text-align: center;
}
.course-pdf-canvas-wrap {
  padding: 1rem;
  overflow: auto;
  text-align: center;
  min-height: 200px;
  background: #525659;
}
.course-pdf-canvas {
  max-width: 100%;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.course-pdf-loading {
  padding: 3rem;
  text-align: center;
  color: var(--grey-dark);
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}
.footer-brand .logo,
.footer-brand .logo-brand {
  color: var(--white);
  margin-bottom: 1.25rem;
  display: inline-flex;
}
.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 0.35rem;
}
.footer-col h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  padding: 0.3rem 0;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--gold); }
.footer-col--contact .footer-contact-link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  word-break: break-word;
}
.footer-contact-link__icon {
  display: inline-flex;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: var(--gold);
}
.footer-contact-link__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.footer-col--contact .footer-contact-link:hover .footer-contact-link__icon {
  color: var(--gold);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
}
.footer-bottom__copy {
  justify-self: start;
}
.footer-bottom__credit {
  justify-self: center;
  text-align: center;
  white-space: nowrap;
}
.footer-bottom__links {
  justify-self: end;
  text-align: right;
}
.footer-bottom a { color: rgba(255,255,255,0.6); }
.footer-bottom a:hover { color: var(--gold); }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-bottom {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-bottom__copy,
  .footer-bottom__credit,
  .footer-bottom__links {
    justify-self: center;
    text-align: center;
  }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* WhatsApp float */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 900;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  transition: transform var(--transition);
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 28px; height: 28px; fill: white; }

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--navy);
  color: var(--white);
  padding: 1rem 0;
  z-index: 950;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.cookie-inner p { font-size: 0.9rem; flex: 1; min-width: 200px; }
.cookie-inner a { color: var(--gold); }

/* Blog detail */
.blog-content { max-width: 760px; margin: 0 auto; }
.blog-content h2 { margin: 2rem 0 1rem; }
.blog-content p { margin-bottom: 1rem; }
.blog-content .btn { margin-top: 1rem; }

/* Legal */
.legal-content { max-width: 800px; margin: 0 auto; }
.legal-content h2 { margin: 2rem 0 0.75rem; font-size: 1.4rem; }
.legal-content p { margin-bottom: 1rem; color: var(--grey-dark); }

/* Admin */
.admin-body { background: #f3f4f6; min-height: 100vh; }
.admin-nav {
  background: var(--navy);
  color: var(--white);
  padding: 1rem 0;
}
.admin-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-nav a { color: rgba(255,255,255,0.8); margin-left: 1.5rem; font-size: 0.9rem; }
.admin-nav a:hover { color: var(--gold); }
.admin-content { padding: 2rem 0; }
.admin-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.admin-stat {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  text-align: center;
}
.admin-stat .value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
}
.admin-stat .label { font-size: 0.85rem; color: var(--grey-dark); }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--grey);
  font-size: 0.9rem;
}
.admin-table th { font-weight: 600; color: var(--navy); background: var(--cream); }
.status-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}
.status-new { background: #dbeafe; color: #1e40af; }
.status-read { background: #e0e7ff; color: #3730a3; }
.status-replied { background: #d1fae5; color: #065f46; }
.status-closed { background: #f3f4f6; color: #6b7280; }
.status-pending { background: #fef3c7; color: #92400e; }
.admin-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
}
.admin-login-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
}
.admin-login-card h1 { text-align: center; margin-bottom: 0.5rem; }
.admin-login-card .subtitle { text-align: center; color: var(--grey-dark); margin-bottom: 2rem; }

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeInUp 0.6s ease forwards; }
