/* =========================================================
   NOVA CLASSES — style.css
   Blue + Orange Theme | Mobile-first Responsive Design
========================================================= */

:root {
  --blue-900: #0b2545;
  --blue-700: #11407a;
  --blue-600: #15569e;
  --blue-500: #1d72c4;
  --blue-100: #e8f1fb;
  --orange-600: #e8590c;
  --orange-500: #ff7b1f;
  --orange-400: #ff9a4d;
  --orange-100: #fff1e6;
  --ink: #102338;
  --muted: #5b7185;
  --bg: #f6f9fc;
  --card-bg: #ffffff;
  --success: #1e9e64;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 8px rgba(11, 37, 69, 0.08);
  --shadow-md: 0 8px 24px rgba(11, 37, 69, 0.12);
  --shadow-lg: 0 16px 40px rgba(11, 37, 69, 0.18);
  --font-head: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a { text-decoration: none; color: inherit; }

ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--blue-900);
  line-height: 1.25;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 8px;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  position: relative;
}

.section-subtitle {
  text-align: center;
  color: var(--muted);
  margin-bottom: 40px;
  font-size: 1rem;
}

.eyebrow {
  display: inline-block;
  text-align: center;
  width: 100%;
  color: var(--orange-600);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 6px;
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  font-family: var(--font-body);
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
  color: #fff;
  box-shadow: 0 6px 16px rgba(232, 89, 12, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(232, 89, 12, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--blue-700);
  border: 2px solid var(--blue-600);
}

.btn-outline:hover {
  background: var(--blue-600);
  color: #fff;
  transform: translateY(-3px);
}

.btn-block { width: 100%; justify-content: center; }

/* ===================== HEADER ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: 1180px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--blue-900);
}

.brand .brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue-600), var(--orange-500));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
}

.brand span.tagline {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--orange-600);
  letter-spacing: 0.5px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-menu li a {
  display: inline-block;
  padding: 10px 16px;
  font-weight: 600;
  color: var(--blue-900);
  border-radius: 50px;
  transition: all 0.25s ease;
  font-size: 0.95rem;
}

.nav-menu li a:hover,
.nav-menu li a.active {
  background: var(--orange-100);
  color: var(--orange-600);
}

.nav-cta {
  margin-left: 10px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none; 
  cursor: pointer;
  padding: 8px;
  z-index: 1100;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: var(--blue-900);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===================== HERO SLIDER ===================== */
.hero-slider {
  position: relative;
  width: 100%;
  height: clamp(320px, 55vw, 560px);
  overflow: hidden;
  background: var(--blue-900);
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease;
  display: flex;
  align-items: center;
}

.slide.active { opacity: 1; visibility: visible; }

.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.slide-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(11,37,69,0.88) 10%, rgba(11,37,69,0.45) 60%, rgba(232,89,12,0.25));
}

.slide-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 600px;
  padding: 0 20px 0 50px;
}

.slide-content .tag {
  display: inline-block;
  background: var(--orange-500);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.slide-content h1 {
  color: #fff;
  font-size: clamp(1.7rem, 5vw, 3rem);
  margin-bottom: 14px;
}

.slide-content p {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  margin-bottom: 22px;
  color: #dbe7f5;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.5);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: background 0.25s ease;
  font-size: 1.1rem;
}

.slider-arrow:hover { background: var(--orange-500); border-color: var(--orange-500); }
.slider-arrow.prev { left: 18px; }
.slider-arrow.next { right: 18px; }

.slider-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.slider-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.25s ease;
}

.slider-dots .dot.active { background: var(--orange-500); width: 26px; border-radius: 6px; }

/* ===================== NOTICE MARQUEE ===================== */
.notice-bar {
  background: var(--blue-900);
  color: #fff;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.notice-label {
  background: var(--orange-600);
  padding: 12px 18px;
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  z-index: 2;
}

.marquee-wrap {
  overflow: hidden;
  flex: 1;
  position: relative;
}

.marquee-track {
  display: inline-flex;
  white-space: nowrap;
  animation: scroll-left 22s linear infinite;
  padding-left: 100%;
}

.marquee-track span {
  padding: 12px 40px;
  font-size: 0.9rem;
  font-weight: 500;
}

@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* ===================== CARDS GRID (Classroom/Result) ===================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
}

.feature-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #eef2f6;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.feature-card .card-img {
  height: 190px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.feature-card .card-icon {
  position: absolute;
  bottom: -24px;
  left: 22px;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 6px 14px rgba(232,89,12,0.4);
}

.feature-card .card-body {
  padding: 36px 22px 24px;
}

.feature-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 0.92rem; }

/* ===================== ENQUIRY FORM ===================== */
.enquiry-section {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
  color: #fff;
  border-radius: var(--radius-lg);
  margin: 0 20px;
  padding: 50px 30px;
  position: relative;
  overflow: hidden;
}

.enquiry-wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.enquiry-text h2 { color: #fff; margin-bottom: 14px; }
.enquiry-text p { color: #cfe0f2; margin-bottom: 18px; }

.enquiry-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: #e7f0fa;
  font-size: 0.92rem;
}

.enquiry-points i { color: var(--orange-400); }

.form-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 28px;
  color: var(--ink);
  box-shadow: var(--shadow-md);
}

.form-card h3 { margin-bottom: 16px; color: var(--blue-900); }

.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--blue-900);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #dce5ee;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-family: var(--font-body);
  transition: border-color 0.25s ease;
  background: #fbfdff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--orange-500);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-msg {
  margin-top: 14px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: 0.88rem;
  display: none;
}

.form-msg.show { display: block; }

/* ===================== ANNOUNCEMENTS ===================== */
.announce-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.announce-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--orange-500);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.announce-card .a-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--blue-100);
  color: var(--blue-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.announce-card h4 { font-size: 1.02rem; margin-bottom: 6px; }
.announce-card p { font-size: 0.88rem; color: var(--muted); }
.announce-card .a-date {
  display: block;
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--orange-600);
  font-weight: 600;
}

/* ===================== FOOTER ===================== */
.site-footer {
  background: var(--blue-900);
  color: #cdddee;
  padding: 60px 0 0;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 34px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col h4 {
  color: #fff;
  margin-bottom: 16px;
  font-size: 1.05rem;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 36px;
  height: 3px;
  background: var(--orange-500);
  border-radius: 4px;
}

.footer-col p, .footer-col li {
  font-size: 0.9rem;
  color: #b6c8dc;
  margin-bottom: 10px;
}

.footer-col ul li a:hover { color: var(--orange-400); }

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-contact i { color: var(--orange-500); margin-top: 4px; }

.social-icons {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.social-icons a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  color: #fff;
}

.social-icons a:hover {
  background: var(--orange-500);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding: 18px 0;
  font-size: 0.85rem;
  color: #93a9c2;
}

.footer-bottom span { color: var(--orange-400); }

/* ===================== PAGE BANNER (inner pages) ===================== */
.page-banner {
  background: linear-gradient(120deg, var(--blue-900), var(--blue-700));
  color: #fff;
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  background: var(--orange-500);
  opacity: 0.25;
  border-radius: 50%;
  top: -100px;
  right: -60px;
}

.page-banner h1 { color: #fff; font-size: clamp(1.6rem, 4vw, 2.4rem); }
.page-banner p { color: #cfe0f2; margin-top: 8px; }
.breadcrumb {
  margin-top: 14px;
  font-size: 0.85rem;
  color: #aecbe8;
}
.breadcrumb span { color: var(--orange-400); }

/* ===================== COURSE PAGE ===================== */
.class-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.class-tab-btn {
  padding: 10px 28px;
  border-radius: 50px;
  border: 2px solid var(--blue-600);
  background: #fff;
  color: var(--blue-700);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

.class-tab-btn.active,
.class-tab-btn:hover {
  background: var(--blue-600);
  color: #fff;
}

.notes-grid {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.notes-grid.active { display: grid; }

.note-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border-top: 4px solid var(--blue-600);
}

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

.note-card .n-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--orange-100);
  color: var(--orange-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.note-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.note-card p { font-size: 0.88rem; color: var(--muted); margin-bottom: 14px; min-height: 40px; }

.note-card .n-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.note-price {
  font-weight: 800;
  color: var(--blue-900);
  font-size: 1.15rem;
}

.note-price span {
  font-size: 0.75rem;
  color: var(--muted);
  text-decoration: line-through;
  font-weight: 500;
  margin-left: 6px;
}

.btn-purchase {
  padding: 9px 18px;
  border-radius: 50px;
  border: none;
  background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.25s ease;
}

.btn-purchase:hover { transform: translateY(-2px); }

.pdf-banner {
  background: linear-gradient(120deg, var(--blue-100), #fff);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 50px;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}

.pdf-banner .pdf-thumb {
  width: 140px;
  height: 180px;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2.8rem;
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}

.pdf-banner-text { flex: 1; min-width: 240px; }
.pdf-banner-text h2 { margin-bottom: 10px; }
.pdf-banner-text p { color: var(--muted); }

/* ===================== POPUP / MODAL (Bill) ===================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11,37,69,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 20px;
}

.modal-overlay.show { opacity: 1; visibility: visible; }

.modal-box {
  background: #fff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 380px;
  overflow: hidden;
  transform: scale(0.85);
  transition: transform 0.3s ease;
  box-shadow: var(--shadow-lg);
}

.modal-overlay.show .modal-box { transform: scale(1); }

.modal-head {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
  color: #fff;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-head h3 { color: #fff; font-size: 1.1rem; display: flex; align-items: center; gap: 8px; }

.modal-close {
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
}

.modal-body { padding: 24px; }

.bill-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed #e0e8f0;
  font-size: 0.92rem;
}

.bill-row span:first-child { color: var(--muted); }
.bill-row span:last-child { font-weight: 700; color: var(--blue-900); }

.bill-total {
  display: flex;
  justify-content: space-between;
  padding-top: 14px;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--orange-600);
}

.modal-footer { padding: 0 24px 24px; display: flex; gap: 10px; }
.modal-footer .btn { flex: 1; }

/* ===================== GALLERY ===================== */
.gallery-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}

.filter-btn {
  padding: 9px 22px;
  border-radius: 50px;
  border: 1.5px solid var(--blue-600);
  background: #fff;
  color: var(--blue-700);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.filter-btn.active, .filter-btn:hover {
  background: var(--orange-500);
  border-color: var(--orange-500);
  color: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img { transform: scale(1.1); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(11,37,69,0.85), transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-overlay h4 { color: #fff; font-size: 0.95rem; }
.gallery-overlay p { color: #d9e6f3; font-size: 0.78rem; }

.gallery-overlay .zoom-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: var(--orange-500);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 15, 30, 0.92);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.lightbox.show { opacity: 1; visibility: visible; }

.lightbox img {
  max-width: 88vw;
  max-height: 80vh;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-close, .lightbox-nav {
  position: absolute;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
}

.lightbox-close { top: 24px; right: 24px; }
.lightbox-nav.lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-nav.lb-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-caption {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.9rem;
  background: rgba(0,0,0,0.4);
  padding: 8px 18px;
  border-radius: 50px;
}

/* ===================== CONTACT PAGE ===================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 30px;
}

.contact-info-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}

.contact-info-card h3 { margin-bottom: 18px; }

.info-item {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
}

.info-item .i-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--blue-100);
  color: var(--blue-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.info-item h4 { font-size: 0.98rem; margin-bottom: 3px; }
.info-item p { font-size: 0.88rem; color: var(--muted); }

.map-placeholder {
  margin-top: 10px;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 180px;
  background: linear-gradient(135deg, var(--blue-100), #fff);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--blue-600);
  border: 2px dashed #c6d8ea;
  gap: 8px;
  text-align: center;
  padding: 10px;
}

.contact-form-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}

/* ===================== ANIMATIONS ===================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-up {
  animation: fadeUp 0.7s ease both;
}

[data-aos] {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s ease;
}

[data-aos].aos-in {
  opacity: 1;
  transform: translateY(0);
}

/* ===================== TOAST ===================== */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--blue-900);
  color: #fff;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 4000;
  transform: translateY(120px);
  opacity: 0;
  transition: all 0.4s ease;
  font-size: 0.9rem;
  max-width: 90vw;
}

.toast.show { transform: translateY(0); opacity: 1; }
.toast i { color: var(--orange-400); }

/* ===================== BACK TO TOP ===================== */
.back-to-top {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--orange-500);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 900;
  border: none;
  font-size: 1.1rem;
}

.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 992px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .enquiry-wrap { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 78%;
    max-width: 320px;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 26px 26px;
    box-shadow: -8px 0 30px rgba(0,0,0,0.15);
    transform: translateX(100%);
    transition: transform 0.35s ease;
    gap: 4px;
    z-index: 1050;
    overflow-y: auto;
  }

  .nav-menu.active { transform: translateX(0); }
  .nav-menu li { width: 100%; }
  .nav-menu li a { width: 100%; padding: 14px 16px; }
  .nav-cta { margin-left: 0; margin-top: 10px; width: 100%; }
  .nav-cta a { width: 100%; justify-content: center; }

  .hamburger { display: flex; }

  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11,37,69,0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1040;
  }
  .nav-overlay.active { opacity: 1; visibility: visible; }

  .slide-content { padding: 0 20px; max-width: 100%; text-align: left; }
  .enquiry-section { margin: 0 12px; padding: 34px 18px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .pdf-banner { padding: 26px; }
  .modal-footer { flex-direction: column; }
}

@media (max-width: 480px) {
  .section { padding: 44px 0; }
  .slider-arrow { width: 36px; height: 36px; font-size: 0.95rem; }
  .brand { font-size: 1.15rem; }
  .brand .brand-icon { width: 36px; height: 36px; font-size: 1rem; }
}

/* =========================================================
   ADDED (NEW FEATURES) — Wizard, Class Page, Guess Paper,
   Worksheet sections. Purely additive — nothing above is
   modified, so the original design stays exactly the same.
========================================================= */

/* ---- Step indicator (Course wizard / breadcrumb of choices) ---- */
.wizard-indicator {
  text-align: center;
  color: var(--blue-700);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.wizard-indicator i.fa-chevron-right { color: var(--orange-500); font-size: 0.75rem; }
.wizard-indicator i.fa-circle-check { color: var(--success); }

/* ---- Step option cards (Type/Board on course.html, Mode on class.html) ---- */
.step-options {
  display: flex;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.option-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 2px solid #eef2f6;
  padding: 36px 30px;
  width: 280px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.option-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--orange-500);
}

.option-card .opt-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-900));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.option-card.board-card .opt-icon,
.option-card.accent-card .opt-icon {
  background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
}

.option-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.option-card p { font-size: 0.85rem; color: var(--muted); }
.option-card .opt-hindi { display: block; font-size: 0.78rem; color: var(--orange-600); font-weight: 600; margin-top: 4px; }

/* ---- Back / change-selection links ---- */
.wizard-back-row {
  display: flex;
  justify-content: center;
  margin-bottom: 26px;
}

.wizard-back-btn {
  background: none;
  border: none;
  color: var(--blue-700);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 50px;
  transition: background 0.25s ease;
}
.wizard-back-btn:hover { background: var(--blue-100); }

/* ---- Combo wrapper (Type+Board result on course.html) hidden by default ---- */
.combo-wrapper { display: none; }
#boardStep { display: none; }

/* ---- Class page: tuition / live class wrappers ---- */
#tuitionWrap, #liveWrap { display: none; }

.class-pill-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
}

/* ---- Tuition / Live class detail card ---- */
.tuition-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--blue-600);
  max-width: 560px;
  margin: 0 auto;
}

.tuition-card h3 { font-size: 1.3rem; margin-bottom: 4px; }
.tuition-card .t-hindi { color: var(--orange-600); font-weight: 600; font-size: 0.85rem; margin-bottom: 18px; display: block; }

.tuition-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

.tuition-meta-box {
  background: var(--blue-100);
  border-radius: var(--radius-sm);
  padding: 14px;
  text-align: center;
}

.tuition-meta-box .t-label { font-size: 0.75rem; color: var(--muted); display: block; margin-bottom: 4px; }
.tuition-meta-box .t-value { font-size: 1.05rem; font-weight: 800; color: var(--blue-900); }

.tuition-card .t-desc { color: var(--muted); font-size: 0.9rem; margin-bottom: 16px; }

.tuition-features { margin-bottom: 20px; }
.tuition-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--ink);
  margin-bottom: 8px;
}
.tuition-features i { color: var(--success); margin-top: 3px; }

/* ---- Guess Paper / Booster section ---- */
.guess-banner {
  background: linear-gradient(120deg, var(--blue-900), var(--blue-700) 55%, var(--orange-600));
  border-radius: var(--radius-lg);
  padding: 44px 34px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.guess-banner-text { flex: 1; min-width: 260px; }
.guess-banner-text h2 { color: #fff; font-size: clamp(1.4rem, 3.5vw, 2.1rem); margin-bottom: 8px; }
.guess-banner-text .gb-hindi { color: #ffd9b3; font-weight: 700; font-size: 0.95rem; margin-bottom: 14px; display: block; }
.guess-banner-text p { color: #dbe7f5; font-size: 0.92rem; max-width: 520px; }

.guess-mockups {
  display: flex;
  gap: -10px;
  flex-shrink: 0;
}

.book-mock {
  width: 90px;
  height: 124px;
  border-radius: 8px 4px 4px 8px;
  background: linear-gradient(135deg, #fff, #e8f1fb);
  box-shadow: 0 14px 30px rgba(0,0,0,0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--blue-900);
  font-weight: 800;
  font-size: 0.7rem;
  text-align: center;
  padding: 8px;
  transform: rotate(-6deg);
  margin-right: -28px;
  border: 1px solid rgba(0,0,0,0.05);
}
.book-mock:nth-child(2) { transform: rotate(0deg); z-index: 2; background: linear-gradient(135deg, #fff7ef, #ffe2c4); }
.book-mock:nth-child(3) { transform: rotate(6deg); margin-right: 0; }
.book-mock i { font-size: 1.4rem; margin-bottom: 6px; color: var(--orange-600); }

.board-badges {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.board-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card-bg);
  border: 2px solid #eef2f6;
  border-radius: 50px;
  padding: 10px 22px;
  font-weight: 700;
  color: var(--blue-900);
  box-shadow: var(--shadow-sm);
}
.board-badge i { color: var(--orange-600); font-size: 1.1rem; }

.guess-toggle-row {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.guess-toggle-group { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

/* ---- Guess Paper subject card (mirrors note-card) ---- */
.guess-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border-top: 4px solid var(--orange-500);
}
.guess-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.guess-preview {
  height: 150px;
  background: linear-gradient(135deg, var(--blue-100), #fff);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.guess-preview .gp-icon {
  width: 70px;
  height: 92px;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
  border-radius: 6px 3px 3px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.6rem;
  box-shadow: var(--shadow-md);
}

.guess-card .gc-body { padding: 18px 20px 22px; }
.guess-card h3 { font-size: 1.05rem; margin-bottom: 2px; }
.guess-card .gc-hindi { color: var(--orange-600); font-size: 0.78rem; font-weight: 600; margin-bottom: 10px; display: block; }
.guess-card p { font-size: 0.85rem; color: var(--muted); margin-bottom: 14px; }

/* ---- Worksheet (Play/LKG/UKG) card ---- */
.worksheet-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  border-top: 4px solid var(--blue-500);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.worksheet-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.worksheet-preview {
  height: 120px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--orange-100), #fff);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--orange-600);
  font-size: 2rem;
}

.worksheet-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.worksheet-card .ws-tag {
  display: inline-block;
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 10px;
}
.worksheet-card p { font-size: 0.85rem; color: var(--muted); margin-bottom: 16px; }

/* ---- Enquiry quick-pick pills (Home / Contact pages) ---- */
.enquiry-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.enquiry-pill {
  padding: 8px 16px;
  border-radius: 50px;
  border: 1.5px solid #dce5ee;
  background: #fbfdff;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue-700);
  cursor: pointer;
  transition: all 0.2s ease;
}
.enquiry-pill.active, .enquiry-pill:hover {
  background: var(--orange-500);
  border-color: var(--orange-500);
  color: #fff;
}

/* ---- Responsive tweaks for new sections ---- */
@media (max-width: 768px) {
  .guess-banner { flex-direction: column; text-align: center; padding: 32px 22px; }
  .guess-mockups { margin: 0 auto; }
  .tuition-meta-grid { grid-template-columns: 1fr 1fr; }
  .option-card { width: 100%; max-width: 320px; }
}

/* =========================================================
   MOBILE FIX PATCH — Fully overrides earlier rules to fix:
   1. Horizontal scroll / overflow on all pages
   2. Navbar visible on right on mobile
   3. Bill/Purchase modal going off-screen on mobile
   4. Grid cards overflowing narrow screens
   5. n-footer (price+button) wrapping on small cards
   All fixes use specificity or !important to win over
   previous declarations without touching earlier code.
========================================================= */

/* ---- Root: prevent ANY horizontal scroll ---- */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw;
}

/* ---- Navbar: use transform instead of right for off-screen ---- */
@media (max-width: 768px) {

  /* Slide menu from right using transform (more reliable on iOS) */
  .nav-menu {
    right: 0 !important;         /* anchor to right edge */
    transform: translateX(100%); /* push off-screen */
    transition: transform 0.35s ease !important;
    z-index: 1050;
  }

  .nav-menu.active {
    transform: translateX(0);    /* slide in */
  }

  /* Overlay must sit UNDER the menu, ABOVE page content */
  .nav-overlay {
    z-index: 1040;
  }

  /* Hamburger sits above everything */
  .hamburger {
    z-index: 1100;
    position: relative;
  }

  /* ---- Modal: centre properly, prevent overflow ---- */
  .modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    padding: 16px !important;
    box-sizing: border-box !important;
    align-items: center !important;
    justify-content: center !important;
    overflow-y: auto !important;
  }

  .modal-box {
    width: 100% !important;
    max-width: 100% !important;   /* full width on mobile */
    max-height: 92vh;
    overflow-y: auto;
    margin: 0 !important;
    transform: scale(1) !important; /* skip scale animation on mobile */
  }

  .modal-overlay.show .modal-box {
    transform: scale(1) !important;
  }

  .modal-body {
    padding: 18px 16px !important;
  }

  .modal-head {
    padding: 16px !important;
  }

  .modal-footer {
    padding: 0 16px 18px !important;
    flex-direction: column !important;
    gap: 10px !important;
  }

  .modal-footer .btn {
    width: 100% !important;
    justify-content: center !important;
  }

  /* Bill rows: allow text to wrap so long subject names don't overflow */
  .bill-row {
    flex-wrap: wrap !important;
    gap: 4px !important;
  }

  .bill-row span:last-child {
    word-break: break-word !important;
    text-align: right !important;
    flex: 1 !important;
  }

  .bill-total {
    flex-wrap: wrap !important;
    gap: 4px !important;
  }

  /* ---- Card grids: force single-column on very small screens ---- */
  .notes-grid,
  .cards-grid,
  .announce-grid {
    grid-template-columns: 1fr !important;
  }

  /* ---- Note card footer: wrap price + button ---- */
  .note-card .n-footer {
    flex-wrap: wrap !important;
    gap: 10px !important;
  }

  .btn-purchase {
    flex-shrink: 0;
  }

  /* ---- Video card body ---- */
  .card-body-inner {
    padding: 16px !important;
  }

  .video-card .n-footer {
    flex-wrap: wrap !important;
    gap: 10px !important;
  }

  /* ---- PDF banner on mobile ---- */
  .pdf-banner {
    flex-direction: column !important;
    align-items: center !important;
    padding: 22px 16px !important;
    text-align: center;
  }

  .pdf-banner .pdf-thumb {
    width: 80px !important;
    height: 100px !important;
    font-size: 2rem !important;
  }

  .pdf-banner-text {
    min-width: 0 !important;
    width: 100% !important;
  }

  /* ---- Enquiry section ---- */
  .enquiry-section {
    margin: 0 !important;
    border-radius: 0 !important;
    padding: 30px 16px !important;
  }

  .enquiry-wrap {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  /* ---- Form row: always single column on mobile ---- */
  .form-row {
    grid-template-columns: 1fr !important;
  }

  /* ---- Footer ---- */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  /* ---- Page banner: don't let decorative circle overflow ---- */
  .page-banner {
    overflow: hidden !important;
  }

  /* ---- Guess card footer ---- */
  .guess-card .n-footer {
    flex-wrap: wrap !important;
    gap: 10px !important;
  }

  /* ---- Worksheet card ---- */
  .worksheet-card {
    padding: 18px !important;
  }

  /* ---- Hero slide content ---- */
  .slide-content {
    padding: 0 14px !important;
    max-width: 100% !important;
  }

  .slide-content h1 {
    font-size: 1.5rem !important;
  }

  .slide-content p {
    font-size: 0.88rem !important;
    display: none; /* hide paragraph on smallest screens to keep it clean */
  }

  /* ---- Option cards: full width on mobile ---- */
  .option-card {
    width: 100% !important;
    max-width: 340px !important;
    padding: 28px 20px !important;
  }

  /* ---- Tuition card meta ---- */
  .tuition-meta-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  /* ---- Contact grid ---- */
  .contact-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ---- Extra small phones (< 400px) ---- */
@media (max-width: 400px) {
  .brand-icon { display: none !important; } /* save space in header */

  .notes-grid,
  .cards-grid,
  .announce-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .note-card {
    padding: 18px !important;
  }

  .section { padding: 36px 0 !important; }

  .class-tab-btn {
    padding: 8px 18px !important;
    font-size: 0.85rem !important;
  }

  .modal-box {
    border-radius: 12px !important;
  }

  .btn-purchase {
    padding: 8px 14px !important;
    font-size: 0.8rem !important;
  }

  .tuition-meta-grid {
    grid-template-columns: 1fr !important;
  }

  .hero-slider {
    height: 280px !important;
  }

  .slide-content h1 {
    font-size: 1.3rem !important;
  }
}
.nav-overlay {
  pointer-events: none !important;
}

@media (max-width: 768px) {
  .nav-menu {
    background: #ffffff !important;
    box-shadow: -8px 0 30px rgba(11,37,69,0.25) !important;
  }
}

/* ===== FIXED MOBILE HAMBURGER MENU & OVERLAY VISIBILITY ===== */
@media (max-width: 768px) {
  /* 1. Menu ko 100% solid white aur bright banayein taaki light ka koi issue na ho */
  .nav-menu {
    background: #ffffff !important;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.2) !important;
  }

  /* 2. Overlay ko halka dark transparency dein taaki background clean dikhe par menu dull na ho */
  .nav-overlay.active {
    background: rgba(11, 37, 69, 0.4) !important;
    backdrop-filter: blur(2px);
  }

  /* 3. Close / X icon ya hamburger ko menu ke andar proper spacing dein */
  .nav-menu li a {
    color: var(--blue-950, #0b2545) !important;
    font-weight: 600;
  }
}

/* ===== 100% SOLID BRIGHT MOBILE MENU FIX ===== */
@media (max-width: 768px) {
  /* 1. Menu ko poori tarah solid white aur bright banayein (koi transparency nahi) */
  .nav-menu {
    background: #ffffff !important;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: none !important;
  }

  /* 2. Overlay ko bilkul hata dein ya light karein taaki background dim na lage */
  .nav-overlay.active {
    background: rgba(0, 0, 0, 0.2) !important;
    backdrop-filter: none !important;
  }

  /* 3. Menu ke andar ke text aur icons ko dark aur sharp rakhein */
  .nav-menu li a {
    color: #0b2545 !important;
  }
}

/* ===== DESKTOP BUTTON & CARD ALIGNMENT FIX ===== */
@media (min-width: 769px) {
  /* Note cards aur video cards ko desktop par proper grid height aur flex layout dein */
  .notes-grid, .vgrid {
    align-items: stretch !important;
  }

  .note-card, .video-card {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    height: 100% !important;
  }

  /* Card ke andar ke text content ko upar push karein aur footer ko niche lock karein */
  .note-card > div:not(.n-footer),
  .video-card .card-body-inner > div:not(.n-footer) {
    flex: 1 !important;
  }

  /* Footer buttons ko desktop par ek line me perfectly align karein */
  .n-footer {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-top: auto !important;
    padding-top: 14px !important;
    border-top: 1px solid #edf2f7 !important;
  }
}