/* =========================================
   BRAINBOOST TUTORING - MASTER STYLESHEET
   ========================================= */

:root {
  --platinum: #E5E4E2;
  --midnight: #040F39;
  --midnight-light: #0a1d5c;
  --orange: #FF6B00;
  --white: #ffffff;
  --text-dark: #040F39;
  --text-muted: #555;
  --bg-light: #f4f6f8;
  --slow-ease: cubic-bezier(0.2, 1, 0.2, 2);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-size: 16px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* =========================================
   UTILITY CLASSES
   ========================================= */
.container {
  max-width: 1100px;
  width: 90%;
  margin: 0 auto;
}

.text-center {
  text-align: center;
}

.bold-orange {
  color: var(--orange);
  font-weight: 700;
}

.section-pad {
  padding: 80px 0;
}

/* =========================================
   SCROLL ANIMATIONS
   ========================================= */
.glass-panel,
.card,
.blog-card,
.faq-item,
.contact-form-box,
.contact-info-box,
.usp-box,
.locations-box, 
.step-item,
.section-title,
.hero-slogan,
.hero-sub,
.btn {
  opacity: 0;
  transform: translateY(30px) scale(0.96);
  filter: blur(5px);
  transition: opacity 1.8s var(--slow-ease), transform 1.8s var(--slow-ease), filter 1.8s var(--slow-ease);
  will-change: opacity, transform, filter;
}

.active-scroll {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
  filter: blur(0) !important;
}

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
.header-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  background: white;
}

.top-bar {
  background-color: var(--midnight);
  color: var(--white);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  display: flex;
  justify-content: center;
}

.top-bar .container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  width: 100%;
}

.contact-link {
  font-size: 1.7rem;
  font-weight: 350;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f0f0f0;
  white-space: nowrap;
}

.contact-link:hover {
  color: var(--orange);
}

.navbar {
  background: linear-gradient(90deg, var(--midnight) 0%, var(--midnight-light) 100%);
  padding: 10px 0;
  border-bottom: 4px solid var(--orange);
}

.nav-container {
  display: grid; 
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 10px; /* CHANGE 1: Reduced padding from 20px to 10px */
  max-width: 1200px;
  margin: 0 auto;
}

.nav-left { flex: 1; display: flex; justify-content: flex-start; }
.nav-center {
  text-align: center;
}
.nav-right { flex: 1; display: flex; justify-content: flex-end; }

.menu-btn {
  font-size: 1.8rem;
  color: var(--white);
  background: none;
  border: none;
  cursor: pointer;
}

.logo {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.logo span {
  color: var(--white);
}

.nav-cta {
  background-color: var(--orange);
  color: var(--white);
  padding: 10px 22px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(255, 107, 0, 0.4);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 0, 0.6);
}

/* =========================================
   SIDE MENU (MOBILE)
   ========================================= */
.side-menu {
  position: fixed;
  top: 0;
  left: -320px;
  width: 300px;
  height: 100vh;
  background: linear-gradient(180deg, var(--midnight) 0%, #020818 100%);
  z-index: 2000;
  transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 30px;
  box-shadow: 5px 0 25px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
}

.side-menu.active {
  left: 0;
}

.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.menu-title {
  color: var(--white);
  font-weight: 700;
  font-size: 1.2rem;
}

.close-btn {
  color: var(--orange);
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-links {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.menu-link {
  display: flex;
  gap: 15px;
  align-items: center;
  color: rgba(255,255,255,0.9);
  padding: 15px;
  border-radius: 8px;
  font-size: 1.15rem;
}

.menu-link:hover {
  background: rgba(255,255,255,0.1);
  color: var(--orange);
  transform: translateX(5px);
}

.menu-link.active-page {
  background: rgba(255,107,0,0.15);
  color: var(--orange);
  font-weight: 700;
  border-left: 4px solid var(--orange);
}

.menu-footer {
  display: none;
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 1500;
  display: none;
  backdrop-filter: blur(3px);
}

.menu-overlay.active {
  display: block;
}

/* =========================================
   HERO SECTION
   ========================================= */
.header-spacer {
  width: 100%;
  height: 140px;
  display: block;
  background: transparent;
}

main {
  flex: 1;
}

.hero-wrapper {
  background-image: url('brainboost-media/background.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  margin-top: 0;
  padding-top: 210px;
  padding-bottom: 80px;
  position: relative;
}

.hero-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 15, 57, 0.5);
}

.glass-panel {
  position: relative;
  background: rgba(255, 255, 255, 0.350);
  backdrop-filter: blur(15px);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
  border: 1px solid rgba(255,255,255,0.5);
  max-width: 1000px;
  width: 90%;
  margin: 0 auto 40px;
  text-align: center;
}

.hero-slogan {
  font-size: 2.8rem;
  color: var(--midnight);
  font-weight: 800;
  margin-bottom: 15px;
  line-height: 1.2;
}

.hero-sub {
  font-size: 1.1rem;
  color: #222;
  margin-bottom: 25px;
  font-weight: 600;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  display: inline-block;
  margin: 5px;
  cursor: pointer;
  border: none;
  font-size: 1rem;
  transition: 0.3s;
}

.btn:hover {
  transform: scale(1.05);
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 10px 20px rgba(255, 107, 0, 0.3);
}

.btn-secondary {
  border: 2px solid var(--midnight);
  color: var(--midnight);
  background: transparent;
}

.btn-secondary:hover {
  background: var(--midnight);
  color: white;
}

.usp-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 30px;
  text-align: left;
}

.usp-box {
  background: rgba(255, 255, 255, 0.550);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  border-left: 5px solid var(--orange);
}

.usp-box h4 {
  color: var(--midnight);
  font-size: 1.2rem;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.usp-list li {
  margin-bottom: 8px;
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
}

.usp-list li::before {
  content: '✓';
  color: var(--orange);
  font-weight: 900;
  margin-right: 10px;
  font-size: 1.1rem;
}

/* =========================================
   LOCATIONS BOX (Modern Tag Cloud)
   ========================================= */
.locations-box {
  margin-top: 30px;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: transform 0.4s cubic-bezier(0.2, 1, 0.2, 1);
}

.locations-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.locations-title {
  text-align: center;
  color: var(--midnight);
  margin-bottom: 25px;
  font-size: 1.1rem;
  font-weight: 700;
}

.locations-title i {
  color: var(--orange);
  margin-right: 8px;
}

.loc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.loc-tags span {
  background: #f8fafc;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  border: 1px solid rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.loc-tags span::before {
  content: '\f3c5';
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--orange);
  font-size: 0.9rem;
}

.loc-tags span:hover {
  background: white;
  transform: translateY(-2px);
  border-color: var(--orange);
  color: var(--orange);
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.15);
}

.locations-footer {
  margin-top: 25px;
  color: #666;
  font-size: 0.85rem;
  font-style: italic;
  text-align: center;
  border-top: 1px dashed #ddd;
  padding-top: 15px;
}

/* =========================================
   GENERAL SECTIONS & CARDS
   ========================================= */
.about-body {
  background: url('brainboost-media/Untitled design.jpg') no-repeat center center fixed;
  background-size: cover;
  animation: panBg 60s linear infinite alternate;
}
@keyframes panBg { 0% { background-position: 0% 50%; } 100% { background-position: 100% 50%; } }

.section-title {
  font-size: 2.2rem;
  color: var(--midnight);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  /* CHANGE 2: Added Playfair Font */
  font-family: 'Poppins', serif; 
  font-weight: 550;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--orange);
  margin: 10px auto 0;
  border-radius: 2px;
}

.grid-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.card {
  background: rgba(255, 255, 255, 0.700);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--orange);
  transform: scaleY(0);
  transition: transform 0.3s;
}

.card:hover::before {
  transform: scaleY(1);
}

.check-list {
  text-align: left;
  margin-top: 10px;
}

.check-list li {
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
}

.check-list li::before {
  content: '✓';
  color: var(--orange);
  font-weight: 900;
  margin-right: 10px;
  font-size: 1.1rem;
}

/* =========================================
   SUBJECTS & GRADES (Smart Row Display)
   ========================================= */
.grades-box {
  border: 1px solid rgba(4, 15, 57, 0.05) !important;
  background: white;
  box-shadow: 0 20px 40px rgba(0,0,0,0.04);
  border-radius: 24px;
  padding: 45px 40px !important;
  transition: transform 0.4s cubic-bezier(0.2, 1, 0.2, 1);
  backdrop-filter: none;
}

.grades-box::before, .grades-box::after { display: none !important; content: none !important; }

.grades-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.06);
}

.grades-box h3 {
  text-align: center;
  color: var(--midnight);
  font-size: 1.6rem;
  margin-bottom: 30px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.grades-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.grades-box ul li {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #f8fafc;
  padding: 14px 22px;
  margin-bottom: 10px;
  border-radius: 12px;
  color: #334155;
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.2s ease;
}

.grades-box ul li::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--orange);
  color: white;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
  flex-shrink: 0;
  box-shadow: 0 2px 5px rgba(255, 107, 0, 0.2);
}

.grades-box ul li:hover {
  background: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  color: var(--midnight);
  transform: none !important;
}

.grades-box .grades-note {
  background: transparent !important;
  color: #94a3b8 !important;
  font-style: italic;
  font-size: 0.9rem;
  margin-top: 20px;
  justify-content: center;
  box-shadow: none !important;
}

.grades-box .grades-note::before { content: none !important; }
.grades-box .grades-note:hover { background: transparent !important; color: #94a3b8 !important; box-shadow: none !important; }

/* =========================================
   HOW IT WORKS
   ========================================= */
.steps-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.step-item {
  text-align: center;
  width: 160px;
  transition: 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-item:hover {
  transform: translateY(-5px);
}

.step-bubble {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px solid var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  background: white;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  font-size: 2rem;
}

.step-num {
  background: var(--orange);
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin: -25px auto 10px;
  position: relative;
  z-index: 2;
  border: 2px solid white;
}

.step-title {
  font-weight: 700;
  color: var(--midnight);
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.step-desc {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.4;
}

/* =========================================
   REVIEWS & SLIDER
   ========================================= */
/* Default (Desktop) Layout: Grid */
.reviews-slider-wrapper {
  display: block;
  position: relative;
}

.reviews-slider {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

/* Hide controls on desktop */
.slider-arrow, .slider-dots {
  display: none;
}

.testimonial-card {
  text-align: center;
  padding: 30px 25px;
  border: 1px solid #eee;
  background: white;
}

.star-rating {
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.star-yellow {
  color: #FFD700;
}

.star-grey {
  color: #e0e0e0;
}

.review-text {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 20px;
  font-style: italic;
}

.reviewer-name {
  font-weight: 700;
  color: var(--midnight);
  font-size: 1rem;
}

/* =========================================
   FAQ SECTION (Restored)
   ========================================= */
.faq-item {
  background: white;
  border-radius: 12px;
  margin-bottom: 20px;
  border: 1px solid #eee;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.faq-q {
  width: 100%;
  text-align: left;
  padding: 25px;
  background: none;
  border: none;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--midnight);
}

.faq-a {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: 0.5s ease-out;
  color: #555;
  background: #fafafa;
  padding: 0 25px;
}

.faq-item.active .faq-a {
  max-height: 600px;
  opacity: 1;
  padding: 25px;
  border-top: 1px solid #eee;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--orange);
}

/* =========================================
   BLOGS SECTION (Restored)
   ========================================= */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.blog-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  border: 1px solid #eee;
  position: relative;
}

.blog-card:hover::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 6px;
  height: 100%;
  background: var(--orange);
}

.blog-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: #eee;
}

.blog-content {
  padding: 30px;
}

.full-article {
  display: none;
  margin-top: 20px;
  border-top: 1px solid #eee;
  padding-top: 20px;
  animation: fadeIn 0.8s;
}

.full-article p {
  margin-bottom: 20px;
  line-height: 1.8;
  font-size: 1rem;
  color: #444;
}

.full-article table {
    width: 100% !important;
    border-collapse: collapse !important; /* Forces lines to stay together */
    margin: 25px 0 !important;
    border: 1px solid #dee2e6 !important; /* Outer border */
    background: #ffffff !important;
}

.full-article th, 
.full-article td {
    border: 1px solid #dee2e6 !important; /* Inner grid lines */
    padding: 8px 10px !important;
    text-align: left !important;
    vertical-align: middle !important;
}

.full-article th {
    background-color: #f8f9fa !important; /* Light grey header row */
    font-weight: 700 !important;
}
.full-article strong {
  color: var(--midnight);
}

.blog-bonus {
  background: #e3f2fd;
  border-left: 5px solid #2196f3;
  padding: 20px;
  margin: 30px 0;
  border-radius: 8px;
  font-weight: 600;
  color: #0d47a1;
  display: flex;
  gap: 10px;
  align-items: start;
}

.blog-bonus::before {
  content: '💡';
  font-size: 1.2rem;
}

.next-read {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px dashed #ccc;
  font-style: italic;
  color: var(--orange);
  font-weight: 600;
  font-size: 0.95rem;
  display: block;
  cursor: pointer;
  transition: 0.3s;
}

.next-read:hover {
  text-decoration: underline;
  opacity: 0.8;
}

.read-btn {
  background: var(--midnight);
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  margin-top: 15px;
  transition: 0.3s;
}

.read-btn:hover {
  background: var(--orange);
}

/* =========================================
   CONTACT PAGE (Restored)
   ========================================= */
.contact-split {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
}

.contact-form-box {
  background: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  border-top: 5px solid var(--orange);
}

.contact-info-box {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-card {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  border: 1px solid #eee;
}

.info-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.info-icon {
  font-size: 1.5rem;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

.info-card strong {
  color: var(--midnight) !important;
  display: block;
}

.info-card.whatsapp { background-color: #E8F5E9 !important; border-color: #A5D6A7 !important; }
.info-card.whatsapp .info-icon { color: #2E7D32 !important; background: white !important; }

.info-card.call { background-color: #FFF3E0 !important; border-color: #FFCC80 !important; }
.info-card.call .info-icon { color: #EF6C00 !important; background: white !important; }

.info-card.email { background-color: #F3E5F5 !important; border-color: #CE93D8 !important; }
.info-card.email .info-icon { color: #7B1FA2 !important; background: white !important; }

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--midnight);
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
  border-color: var(--orange);
  outline: none;
  box-shadow: 0 0 8px rgba(255,107,0,0.2);
}

/* Contact Form Checkboxes - Full Visibility & Horizontal Alignment */
.subjects-box {
  background: white;
  padding: 20px;
  border-radius: 16px;
  /* Removes scrolling and shows all subjects at once */
  max-height: none !important; 
  overflow-y: visible !important;
  border: 1px solid rgba(4, 15, 57, 0.08);
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.02);
}

.subjects-box label {
  display: flex !important;
  flex-direction: row !important; /* Forces side-by-side layout */
  align-items: center !important;  /* Centers checkbox and text vertically */
  gap: 15px;
  margin-bottom: 8px;
  background: #f8fafc;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 1, 0.2, 1);
  border: 1px solid transparent;
  width: 100%; /* Ensures the label takes up the full width of the box */
}

.subjects-box input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid #cbd5e1;
  border-radius: 6px;
  margin: 0;
  cursor: pointer;
  position: relative;
  transition: 0.2s ease;
  background: white;
  flex-shrink: 0; /* Prevents the checkbox from being squashed */
  display: inline-block;
}

.subjects-box input[type="checkbox"]:checked {
  background-color: var(--orange);
  border-color: var(--orange);
}

.subjects-box input[type="checkbox"]:checked::after {
  content: '✓';
  color: white;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 14px;
  font-weight: 900;
}

/* =========================================
   FOOTER
   ========================================= */
footer {
  background: var(--midnight);
  color: white;
  padding: 60px 0 20px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.footer-left { text-align: left; }
.footer-center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.footer-right { text-align: right; }

.footer-col h4 {
  color: var(--orange);
  margin-bottom: 15px;
  text-transform: uppercase;
  font-size: 1.1rem;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a:hover {
  color: var(--orange);
}

.footer-slogan {
  color: var(--orange);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  margin-top: 10px;
  letter-spacing: 1px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
  font-size: 0.9rem;
  color: #aaa;
}

.footer-logo-large {
  height: 100px;
  width: auto;
  margin-bottom: 10px;
  display: block;
  margin: 0 auto;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* =========================================
   MOBILE OPTIMIZATION (MAX 1100px)
   ========================================= */
@media (max-width: 1100px) {
  /* 1. Layout & Spacing - FIXED WIDTH ISSUE */
  body { 
    font-size: 15px; 
  }
  
  /* FIX: Ensure container does not touch edges, but is wide enough */
  .container { 
    width: 90%; 
    margin: 0 auto; 
  }
  
  .header-spacer { 
    height: 130px; 
  }
  
  .section-pad { 
    padding: 60px 0; 
  }
  
  /* 2. Header Adjustments */
  .top-bar .container {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 8px 0;
  }
  
  .contact-link { 
    font-size: 0.85rem; 
  }
  
  .nav-container {
    position: relative;
    justify-content: flex-start;
    width: 90%;
    min-height: 50px;
    margin: 0 auto;
    padding: 0 10px; /* MODIFIED: Moved the hamburger icon and CTA closer to the edge on mobile */
  }
  
  .nav-left { 
    z-index: 10; 
    display: flex !important; 
    flex: 0 0 auto; 
  }
  
  .menu-btn {
    display: block !important;
    margin-right: 10px;
    font-size: 1.6rem;
  }
  
  .nav-right, .nav-cta { 
    display: none !important; 
  }
  
  /* Logo - Absolute Center Strategy */
  .nav-center { 
    position: absolute; 
    left: 50%; 
    top: 50%; 
    transform: translate(-50%, -50%); 
    width: auto; 
    padding: 0; 
    margin: 0; 
    display: flex; 
    justify-content: flex-start; 
    padding-right: 30px; 
    align-items: center; 
  }
  
  .logo { 
    font-size: 1.1rem; 
    gap: 5px; 
  }
  
  .logo img { 
    height: 26px; 
  }
  
  .logo img:last-child { 
    display: block; 
  }
  
  /* 3. Grids Stacking */
  .usp-row, 
  .contact-split, 
  .footer-grid, 
  .locations-grid { 
    grid-template-columns: 1fr; 
    gap: 30px; 
  }
  
  .footer-left, 
  .footer-right, 
  .footer-center { 
    text-align: center; 
  }
  
  /* 4. Component Sizing */
  /* FIX: Ensure Glass Panel has gutters */
  .glass-panel { 
    padding: 30px 20px; 
    margin-bottom: 30px; 
    width: 92%; 
    margin-left: auto; 
    margin-right: auto; 
  }
  
  /* FONT SIZE ADJUSTMENTS FOR MOBILE */
  .hero-slogan { 
    font-size: 1.8rem; /* Scaled down from 2.8rem */
    margin-bottom: 15px; 
    line-height: 1.2; 
  }
  
  .hero-sub { 
    font-size: 0.95rem; 
  }
  
  .section-title { 
    font-size: 1.7rem; /* Scaled down */
    margin-bottom: 30px; 
  }
  
  .card { 
    width: 100%; 
    max-width: 100%; 
    margin-bottom: 15px; 
    padding: 25px; 
  }
  
  .usp-box { 
    border-left: 4px solid var(--orange); 
    border-top: none; 
    margin-bottom: 10px; 
    padding: 20px; 
  }
  
  /* 5. Padding Fixes for Special Boxes */
  .grades-box { 
    padding: 30px 20px !important; 
  }
  
  .locations-box { 
    padding: 25px 15px; 
  }
  
  .grid-row { 
    gap: 30px; 
  }
  
  .step-item { 
    width: 100%; 
    margin-bottom: 30px; 
  }
  
  .footer-col { 
    margin-bottom: 30px; 
  }

  /* --- MOBILE REVIEW SLIDER ACTIVATION (Scroll Snap) --- */
  .reviews-slider {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 20px;
    padding-bottom: 20px;
    width: 100%;
  }
  
  .reviews-slider .card {
    min-width: 100%; /* Force 1 card per view */
    scroll-snap-align: center;
    margin-bottom: 0;
  }
  
  /* Show Slider Controls on Mobile */
  .slider-arrow {
    display: block;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    color: var(--orange);
    border: 1px solid var(--orange);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }
  
  .slider-arrow.prev { 
    left: -10px; 
  }
  
  .slider-arrow.next { 
    right: -10px; 
  }
  
  .slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
  }
  
  .dot {
    width: 10px;
    height: 10px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
  }
  
  .dot.active { 
    background: var(--orange); 
    transform: scale(1.2); 
  }
}