:root {
  --blue: #0b3f91;
  --blue-2: #0f62c9;
  --ink: #102033;
  --muted: #64748b;
  --orange: #f59e0b;
  --yellow: #ffd166;
  --surface: #f5f8fc;
  --line: #dbe5f2;
  --shadow: 0 18px 50px rgba(12, 38, 75, .12);
}

* { letter-spacing: 0; }
body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(245, 248, 252, .9), rgba(255,255,255,0) 360px),
    #fff;
}
a { color: var(--blue-2); text-decoration: none; }
.container { max-width: 1180px; }
.top-strip { background: linear-gradient(90deg, #06245b, #0b3f91 55%, #f59e0b); color: #fff; font-size: .9rem; padding: .55rem 0; }
.top-strip a { color: #fff; }
.main-nav { box-shadow: 0 12px 35px rgba(16, 32, 51, .1); border-bottom: 1px solid rgba(219, 229, 242, .9); z-index: 5000; }
.navbar-brand img, .footer-brand img { background: #fff; border-radius: 8px; box-shadow: 0 8px 22px rgba(11, 63, 145, .14); object-fit: contain; padding: 4px; }
.navbar-brand span { display: grid; line-height: 1.05; color: var(--blue); font-size: 1.06rem; }
.navbar-brand small { font-size: .72rem; color: var(--muted); font-weight: 700; text-transform: uppercase; }
.nav-link { font-weight: 700; color: #26364a; position: relative; }
.nav-link.active, .nav-link:hover { color: var(--blue-2); }
.nav-link.active:after, .nav-link:hover:after { content: ""; position: absolute; left: .5rem; right: .5rem; bottom: .25rem; height: 3px; border-radius: 999px; background: var(--orange); }
.nav-cta { color: #1f2937; font-weight: 800; border: 0; box-shadow: 0 10px 24px rgba(245, 158, 11, .28); }
.course-dropdown { position: static; }
.course-menu {
  width: min(1080px, calc(100vw - 48px));
  max-height: 78vh;
  overflow-y: auto;
  border: 1px solid rgba(219, 229, 242, .95);
  box-shadow: 0 26px 80px rgba(12, 38, 75, .2);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}
.navbar .dropdown-menu { margin-top: 0; top: 100%; left: 50%; transform: translateX(-50%); z-index: 6000; }
.navbar .dropdown-menu.show { display: block; opacity: 1; visibility: visible; }
.course-menu:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -28px;
  height: 28px;
}
.mega-grid { display: grid; grid-template-columns: minmax(280px, .85fr) minmax(520px, 1.45fr); gap: 16px; }
.mega-panel { border-radius: 8px; border: 1px solid #dbe5f2; background: #fbfdff; padding: 14px; }
.mega-title {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  margin-bottom: 10px;
  border-radius: 8px;
  background: linear-gradient(135deg, #06245b, #0f62c9);
  color: #fff;
}
.mega-title span { font-weight: 900; }
.mega-title small { color: #dbeafe; font-weight: 600; }
.mega-link {
  border-radius: 8px;
  font-weight: 800;
  padding: 12px 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #16263a;
  border: 1px solid transparent;
  background: #fff;
  margin-bottom: 8px;
}
.mega-link i {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #eaf2ff;
  color: var(--blue);
}
.mega-link:hover, .mega-link:focus {
  background: #fff7df;
  color: var(--blue);
  border-color: rgba(245, 158, 11, .28);
}
.mega-link:hover i, .mega-link:focus i {
  background: var(--orange);
  color: #111827;
}
.all-courses-link {
  background: #f7fbff;
  border-color: var(--line);
}
.cbse-title { background: linear-gradient(135deg, #f59e0b, #ffd166); color: #111827; }
.cbse-title small { color: #4b5563; }
.cbse-mega-classes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cbse-mega-card { border: 1px solid #edf2f7; border-radius: 8px; background: #fff; padding: 12px; }
.cbse-class-title { display:flex; align-items:center; gap:8px; color:var(--blue); font-weight:900; margin-bottom:9px; }
.cbse-class-title i { color:var(--orange); }
.cbse-subject-links { display: flex; flex-wrap: wrap; gap: 7px; padding: 0; }
.cbse-subject-links a { color: #334155; font-size: .86rem; font-weight: 800; background: #eaf2ff; border-radius: 999px; padding: 6px 10px; }
.cbse-subject-links a:hover { background: var(--blue); color: #fff; }
.mobile-drawer { width: min(88vw, 370px); border: 0; }
.mobile-drawer .offcanvas-header { border-bottom: 1px solid var(--line); background: #f7fbff; }
.drawer-search { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-bottom: 16px; }
.drawer-search input { border: 0; outline: 0; width: 100%; }
.drawer-nav { display: grid; gap: 8px; }
.drawer-nav a, .drawer-course-toggle { color: var(--ink); padding: 12px 14px; border-radius: 8px; font-weight: 800; background: #fff; border: 1px solid #edf2f7; box-shadow: 0 8px 22px rgba(12, 38, 75, .08); text-align: left; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.drawer-nav a:hover { background: var(--blue); color: #fff; }
.drawer-course-toggle { background: linear-gradient(135deg, #fff7df, #fff); border-color: rgba(245,158,11,.45); color: var(--blue); box-shadow: 0 14px 34px rgba(245, 158, 11, .22); }
.drawer-course-toggle span { display: inline-flex; align-items: center; gap: 8px; }
.drawer-course-list { margin: 2px 0 6px; padding: 10px; border-radius: 8px; background: #f7fbff; border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255,255,255,.8); }
.drawer-course-list a { margin-bottom: 7px; box-shadow: none; font-size: .95rem; }
.drawer-course-list a:last-child { margin-bottom: 0; }
.drawer-subtitle { display:block; margin:12px 4px 8px; color:var(--orange); text-transform:uppercase; font-size:.78rem; }
.drawer-class-link { background:#fff7df !important; color:var(--blue) !important; }
.drawer-subjects { display:flex; flex-wrap:wrap; gap:6px; margin:0 0 10px 10px; }
.drawer-subjects a { padding:7px 9px; font-size:.82rem; border-radius:999px; width:auto; box-shadow:none; background:#eaf2ff; }

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 209, 102, .45), transparent 22%),
    linear-gradient(105deg, rgba(4, 28, 70, .97), rgba(11, 63, 145, .92) 50%, rgba(15, 98, 201, .78)),
    url('../assets/courses/iit-jee-coaching.jpg') center/cover;
  color: #fff;
  padding: 92px 0 44px;
}
.hero:after { content: ""; position: absolute; inset: auto 0 0; height: 8px; background: linear-gradient(90deg, var(--orange), var(--yellow), var(--blue-2)); }
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(1.65rem, 3vw, 2.75rem); font-weight: 800; line-height: 1.14; max-width: 860px; }
.hero .lead { color: #e5eefb; font-size: clamp(.98rem, 1.5vw, 1.16rem); max-width: 740px; }
.hero-card, .premium-card, .form-card {
  background: #fff;
  border: 1px solid rgba(219, 229, 242, .9);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.hero-card { color: var(--ink); padding: 24px; }
.hero-card h2 { color: var(--blue); }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0; }
.hero-badges span { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); border-radius: 999px; padding: 9px 14px; font-weight: 700; }
.btn { border-radius: 6px; font-weight: 800; padding: .78rem 1.1rem; }
.btn-primary { background: linear-gradient(135deg, var(--blue), var(--blue-2)); border-color: var(--blue-2); box-shadow: 0 12px 26px rgba(15, 98, 201, .24); }
.btn-warning { background: linear-gradient(135deg, #ffd166, #f59e0b); border-color: #f59e0b; }
.btn-outline-light:hover { color: var(--blue); }
.section { padding: 72px 0; }
.section-soft { background: var(--surface); }
.eyebrow { color: var(--orange); font-weight: 800; text-transform: uppercase; font-size: .82rem; }
.section-title { font-size: clamp(1.45rem, 2.2vw, 2.2rem); font-weight: 800; margin-bottom: 12px; line-height: 1.18; }
.section-copy { color: var(--muted); max-width: 760px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.stat { background: linear-gradient(180deg, #fff, #f7fbff); border: 1px solid var(--line); border-top: 4px solid var(--orange); border-radius: 8px; padding: 20px; box-shadow: 0 10px 28px rgba(12,38,75,.08); }
.stat strong { color: var(--blue); font-size: 1.8rem; display: block; }
.stat span { color: #334155; font-weight: 700; }
.course-card { height: 100%; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.course-card:hover { transform: translateY(-5px); box-shadow: 0 22px 60px rgba(12,38,75,.16); }
.course-card img { width: 100%; height: 210px; object-fit: cover; background: #eaf2ff; }
.course-hero-img { width: 100%; max-height: 430px; object-fit: cover; object-position: center; background: #eaf2ff; }
.subject-card { display:block; overflow:hidden; height:100%; color:var(--blue); font-weight:900; }
.subject-card img { width:100%; height:145px; object-fit:cover; display:block; }
.subject-card span { display:block; padding:14px 16px; }
.subject-card:hover { transform: translateY(-4px); box-shadow:0 22px 60px rgba(12,38,75,.16); }
.breadcrumb-light a, .breadcrumb-light .breadcrumb-item { color:#dbeafe; }
.breadcrumb-light .active { color:#fff; }
.course-card .body { padding: 22px; }
.course-card h2, .course-card h3 { color: var(--blue); }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.feature-list li { display: flex; gap: 10px; color: #334155; }
.feature-list i { color: var(--orange); }
.trust-card { padding: 24px; height: 100%; border-left: 4px solid var(--orange); background: linear-gradient(145deg, #fff, #f7fbff); }
.process-step { display: flex; gap: 16px; padding: 20px; border-bottom: 1px solid var(--line); }
.process-step:last-child { border-bottom: 0; }
.step-no { width: 38px; height: 38px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 800; flex: 0 0 auto; }
.cta-band { background: linear-gradient(105deg, rgba(6,36,91,.98), rgba(15,98,201,.93)), url('../assets/courses/commerce-classes.jpg') center/cover; color: #fff; border-radius: 8px; padding: 38px; box-shadow: var(--shadow); }
.testimonial { padding: 24px; height: 100%; }
.stars { color: var(--orange); font-weight: 800; }
.faculty-card { padding: 24px; height: 100%; position: relative; overflow: hidden; }
.faculty-card:before { content: ""; position: absolute; right: -40px; top: -40px; width: 110px; height: 110px; border-radius: 50%; background: rgba(245,158,11,.12); }
.avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 1.4rem; font-weight: 800; margin-bottom: 16px; }
.form-control, .form-select, textarea { border-radius: 6px; border-color: #cbd5e1; padding: .82rem .9rem; }
.form-card { padding: 24px; }
.map-frame { width: 100%; min-height: 360px; border: 0; border-radius: 8px; box-shadow: var(--shadow); }
.page-hero { background: radial-gradient(circle at 80% 0, rgba(255, 209, 102, .45), transparent 24%), linear-gradient(105deg, #06245b, #0f62c9); color: #fff; padding: 58px 0; border-bottom: 6px solid var(--orange); }
.page-hero h1, .page-hero .display-5 { font-size: clamp(1.7rem, 3vw, 2.55rem); line-height: 1.15; }
.page-hero p { color: #eaf2ff; max-width: 760px; font-size: 1.05rem; }
.premium-card h2, .form-card h2 { font-size: 1.35rem; }
.premium-card h3 { font-size: 1.08rem; }
.course-card h2, .course-card h3 { font-size: 1.2rem; }
.cta-band h2 { font-size: clamp(1.45rem, 2.2vw, 2rem); }
.cta-band h3 { font-size: 1.35rem; }
.accordion-button { font-weight: 800; }
.site-footer { background: #081a33; color: #dbeafe; padding: 54px 0 28px; }
.site-footer a { display: block; color: #dbeafe; margin-bottom: 9px; }
.footer-brand { display: flex; gap: 14px; align-items: center; }
.footer-brand h5 { margin: 0; color: #fff; }
.footer-brand p { margin: 0; color: #b7c8df; }
.site-footer h6 { color: #fff; font-weight: 800; margin-bottom: 16px; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; padding: 0; margin: 0; font-size: 1.25rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 28px; padding-top: 20px; color: #9fb3cd; font-size: .9rem; }
.floating-actions { position: fixed; right: 18px; bottom: 22px; z-index: 1000; display: grid; gap: 10px; }
.floating-actions a, .floating-actions button { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 1.35rem; border: 0; box-shadow: 0 12px 30px rgba(15, 23, 42, .22); }
.float-call { background: var(--blue); }
.float-whatsapp { background: #25d366; }
.float-contact { background: var(--orange); }
.quick-modal { border: 0; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); }
.quick-modal .modal-header { background: #f7fbff; border-bottom: 1px solid var(--line); }
.mobile-cta { display: none; }
.badge-soft { background: #eaf2ff; color: var(--blue); border-radius: 999px; padding: 8px 12px; font-weight: 800; }

@media (max-width: 991px) {
  .hero { padding: 64px 0 32px; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .course-menu { width: auto; }
  .mega-grid { grid-template-columns: 1fr; }
  .cbse-mega-classes { grid-template-columns: 1fr; }
}
@media (min-width: 1200px) {
.navbar .dropdown:hover > .dropdown-menu,
  .navbar .dropdown:focus-within > .dropdown-menu,
  .navbar .dropdown.keep-open > .dropdown-menu {
    display: block;
  }
}
@media (max-width: 1199px) {
  .navbar .dropdown-menu { left: 0; transform: none; }
}
@media (max-width: 576px) {
  body { padding-bottom: 64px; }
  .section { padding: 48px 0; }
  .hero h1 { font-size: 1.6rem; }
  .page-hero h1, .page-hero .display-5 { font-size: 1.55rem; }
  .section-title { font-size: 1.4rem; }
  .stat-grid { grid-template-columns: 1fr; }
  .hero-card { margin-top: 20px; }
  .cta-band { padding: 24px; }
  .floating-actions { bottom: 78px; right: 12px; }
  .floating-actions a, .floating-actions button { width: 48px; height: 48px; font-size: 1.15rem; }
  .mobile-cta { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; bottom: 0; left: 0; right: 0; z-index: 999; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -10px 30px rgba(12,38,75,.12); }
  .mobile-cta a { padding: 10px 4px; text-align: center; font-weight: 800; font-size: .78rem; color: var(--blue); }
  .mobile-cta i { display: block; font-size: 1.1rem; }
}
