
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --navy: #092f60;
  --blue: #0869c7;
  --blue2: #1788ec;
  --pale: #eef7ff;
  --ink: #14365f;
  --muted: #536b86;
  --white: #fff;
  --line: #d5e8f9;
  --shadow: 0 18px 45px rgba(7,57,105,.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.65;
}
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px clamp(18px,5vw,76px);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid #e4f0fb;
  box-shadow: 0 5px 22px rgba(9,47,96,.05);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo { width: 53px; flex-shrink: 0; }
.logo svg { display: block; width: 100%; height: auto; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.25; }
.brand-copy strong {
  font-size: clamp(17px,2vw,24px);
  font-weight: 800;
  letter-spacing: -.7px;
  color: var(--navy);
}
.brand-copy small { font-size: 12px; color: #56799d; letter-spacing: .3px; }
.nav { display: flex; align-items: center; gap: clamp(12px,2.4vw,32px); }
.nav a { text-decoration: none; font-size: 13px; font-weight: 600; color: #315575; }
.nav a:hover, .text-link:hover { color: var(--blue2); }
.nav .nav-cta {
  padding: 11px 18px;
  border-radius: 99px;
  color: white;
  background: var(--blue);
  box-shadow: 0 8px 20px #0869c733;
}
.menu-toggle {
  display: none;
  background: var(--pale);
  border: 0;
  border-radius: 10px;
  padding: 9px 12px;
  color: var(--navy);
  font-size: 21px;
}

/* HERO */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 510px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 78% 35%,#2c92e7 0%,transparent 32%),linear-gradient(115deg,#07376f 0%,#0757a4 50%,#1687d8 100%);
  color: white;
  padding: 68px clamp(22px,7vw,100px);
}
.hero:before, .hero:after {
  content: "";
  position: absolute;
  z-index: -1;
  border: 1px solid #ffffff24;
  border-radius: 50%;
}
.hero:before {
  right: -8%;
  top: -20%;
  width: 58%;
  height: 145%;
  transform: rotate(-18deg);
}
.hero:after { right: 5%; bottom: -55%; width: 50%; height: 100%; }
.hero-content { max-width: 650px; position: relative; z-index: 2; }
.eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.7px;
  margin: 0 0 10px;
  text-transform: uppercase;
  color: #d4eaff;
}
.eyebrow span { padding: 0 5px; color: #87caff; }
.eyebrow.blue { color: var(--blue); }
h1 {
  font-size: clamp(36px,5vw,62px);
  line-height: 1.08;
  letter-spacing: -2px;
  margin-bottom: 10px;
  color: white;
}
h1 span { color: #bfe4ff; }
.hero-tagline { font-size: clamp(19px,2.5vw,27px); font-weight: 700; margin-bottom: 16px; }
.hero-intro { max-width: 510px; color: #e7f4ff; font-size: 15px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 25px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 99px;
  font-weight: 700;
  text-decoration: none;
  font-size: 13px;
  transition: transform .2s, box-shadow .2s;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 12px 25px #001e4433; }
.button-light { background: white; color: var(--navy); }
.button-outline { border: 1px solid #c6e5ff; color: white; }
.location-line { margin: 18px 0 0; color: #d5eaff; font-size: 12px; }
.hero-art {
  position: absolute;
  right: 4%;
  bottom: 12%;
  width: 38%;
  height: 65%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: .98;
}
.orbit { position: absolute; border: 1px solid #b9e5ff55; border-radius: 50%; transform: rotate(-25deg); }
.orbit-one { width: 92%; height: 74%; }
.orbit-two { width: 72%; height: 100%; transform: rotate(35deg); }
.book-stack {
  position: relative;
  width: min(360px,85%);
  filter: drop-shadow(0 25px 25px #001a3b55);
  transform: perspective(600px) rotateY(-13deg) rotateZ(-4deg);
}
.book {
  padding: 15px 22px;
  margin: 6px 0;
  border-radius: 5px 12px 12px 5px;
  color: white;
  font-weight: 800;
  font-size: clamp(11px,1.3vw,15px);
  letter-spacing: 1px;
  background: linear-gradient(100deg,#0c3970,#1679c6 60%,#0b4e8a);
  border-left: 7px solid #8bd0ff;
  box-shadow: inset 0 -4px 0 #042b54,0 7px 10px #001b3c44;
}
.book-mid { background: linear-gradient(100deg,#f5fbff,#c5e4fa); color: #12477d; border-left-color: #83bde8; }
.book-bottom { background: linear-gradient(100deg,#0b2b56,#2469a9); font-size: 11px; }
.floating-star { position: absolute; top: 3%; right: 18%; font-size: 40px; color: #c8eaff; text-shadow: 0 0 20px #fff; }

/* SECTIONS AND COURSES */
.section { padding: 78px clamp(20px,6vw,86px); }
.section-heading { text-align: center; max-width: 700px; margin: 0 auto 34px; }
.section-heading h2, .about-copy h2, .admission-band h2 {
  font-size: clamp(27px,3vw,39px);
  line-height: 1.2;
  letter-spacing: -1.1px;
  color: var(--navy);
  margin-bottom: 12px;
}
.section-heading p:last-child { color: var(--muted); font-size: 14px; }
.courses-section { background: linear-gradient(180deg,#f7fbff,#fff); }
.course-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; max-width: 1200px; margin: auto; }
.course-card {
  padding: 28px 21px 25px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(150deg,#fff,#f0f8ff);
  box-shadow: 0 10px 28px #0c4d8010;
  transition: transform .2s,box-shadow .2s;
}
.course-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.course-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 17px;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: linear-gradient(145deg,var(--blue2),var(--navy));
  color: white;
  font-size: 25px;
  font-weight: 700;
}
.course-card h3 { color: var(--navy); font-size: 17px; margin-bottom: 8px; }
.course-card p { color: var(--muted); font-size: 13px; margin-bottom: 0; }
.small-note { text-align: center; color: #6b8197; font-size: 11px; margin: 22px 0 0; }

/* WHY NEWTON CLASSES */
.why-section {
  padding: 60px clamp(20px,6vw,86px);
  background: linear-gradient(115deg,#073a78,#0876c9);
  color: white;
  position: relative;
  overflow: hidden;
}
.why-section:after {
  content: "";
  position: absolute;
  width: 430px;
  height: 430px;
  border: 1px solid #ffffff18;
  border-radius: 50%;
  right: -140px;
  top: -260px;
}
.light-heading { position: relative; z-index: 1; margin-bottom: 28px; }
.light-heading h2 { color: white; }
.benefit-grid { display: grid; grid-template-columns: repeat(4,1fr); max-width: 1100px; margin: auto; gap: 20px; position: relative; z-index: 1; }
.benefit { text-align: center; padding: 10px 16px; border-right: 1px solid #ffffff30; }
.benefit:last-child { border: 0; }
.benefit span { font-size: 32px; color: #c5e8ff; display: block; margin-bottom: 6px; }
.benefit h3 { font-size: 14px; margin-bottom: 5px; }
.benefit p { font-size: 12px; color: #d5ebff; margin-bottom: 0; }

/* ABOUT */
.about-section { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(30px,6vw,80px); background: #fff; }
.about-visual {
  position: relative;
  min-height: 300px;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg,#d7edff,#75b9ed);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
}
.chalkboard {
  width: 77%;
  height: 70%;
  border: 10px solid #9b6a3f;
  border-radius: 7px;
  background: linear-gradient(135deg,#07396b,#0b5793);
  box-shadow: 0 18px 24px #07345b44;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #d9f0ff;
  font-size: clamp(20px,3vw,32px);
  font-weight: 800;
  letter-spacing: 3px;
  transform: rotate(-3deg);
}
.chalk-line { width: 45%; height: 3px; background: #c9e9ff; transform: rotate(-8deg); margin-top: 8px; }
.desk-book { position: absolute; bottom: 12%; right: 4%; width: 26%; height: 13px; background: #f8fcff; border-bottom: 6px solid #2a6eab; transform: rotate(-7deg); box-shadow: 0 8px 10px #07345b33; }
.about-copy h2 { font-size: clamp(26px,3vw,36px); }
.about-copy p { font-size: 14px; color: var(--muted); }
.text-link { display: inline-flex; gap: 10px; align-items: center; text-decoration: none; color: var(--blue); font-weight: 800; font-size: 14px; margin-top: 8px; }

/* ADMISSION BAND AND CONTACT */
.admission-band {
  padding: 36px clamp(20px,6vw,86px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  background: linear-gradient(110deg,#eaf6ff,#d6ecff);
  border-top: 1px solid #c9e5fb;
  border-bottom: 1px solid #c9e5fb;
}
.admission-band .eyebrow { color: var(--blue); }
.admission-band h2 { font-size: clamp(24px,3vw,32px); margin-bottom: 5px; }
.admission-band p:last-child { margin-bottom: 0; color: var(--muted); font-size: 13px; }
.admission-band .button { background: var(--blue); color: white; flex-shrink: 0; }
.contact-section { background: #f8fbff; }
.contact-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; max-width: 1100px; margin: auto; }
.contact-card { display: flex; gap: 15px; align-items: flex-start; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.contact-icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 13px; background: #e3f2ff; color: var(--blue); font-size: 25px; }
.contact-card h3 { font-size: 14px; color: var(--navy); margin-bottom: 5px; }
.contact-card p { font-size: 13px; color: var(--muted); margin-bottom: 0; overflow-wrap: anywhere; }
.contact-card a { color: var(--blue); text-decoration: none; }
.site-footer { padding: 30px 20px; text-align: center; background: #062c59; color: #c8e2fa; font-size: 12px; }
.footer-brand { font-size: 18px; font-weight: 800; letter-spacing: .8px; color: white; text-decoration: none; }
.site-footer p { margin: 8px 0; }
.site-footer a:not(.footer-brand) { color: white; }
.footer-tagline { color: #9ecfff; }
.copyright { font-size: 11px; color: #86add2; margin-top: 18px !important; }

/* ADMISSION FORM */
.admission-section { background: #f1f6ff; padding: 50px 18px; }
.admission-form-card {
  max-width: 650px;
  margin: 0 auto;
  padding: 28px;
  background: #fff;
  border: 1px solid #d8e5ff;
  border-top: 5px solid #1458c8;
  border-radius: 16px;
  box-shadow: 0 10px 35px rgba(20,70,150,.10);
}
.admission-form-header { text-align: center; margin-bottom: 28px; }
.admission-form-header img { width: 90px; height: 90px; object-fit: contain; margin-bottom: 10px; }
.admission-form-header h2 { color: #123d83; margin: 5px 0; }
.admission-form-header h3 { color: #1458c8; border-bottom: 2px solid #d8e5ff; padding-bottom: 12px; margin-top: 24px; }
.admission-form-header p { color: #53647d; margin: 6px 0; }
#admissionForm { display: flex; flex-direction: column; gap: 9px; }
#admissionForm label { font-weight: 600; color: #233754; margin-top: 9px; }
#admissionForm input, #admissionForm select, #admissionForm textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  border: 1px solid #cbd8eb;
  border-radius: 8px;
  background: #fff;
  color: #172b49;
  font: inherit;
}
#admissionForm input:focus, #admissionForm select:focus, #admissionForm textarea:focus {
  outline: 2px solid #8bb5ff;
  border-color: #1458c8;
}
#admissionForm .admission-submit { width: 100%; margin-top: 18px; border: 0; cursor: pointer; background: #1458c8; color: #fff; }
#admissionForm .form-note { text-align: center; color: #53647d; font-size: 13px; }

/* ADMISSION POPUP */
.admission-popup[hidden] { display: none !important; }
.admission-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(7,18,42,.72);
  backdrop-filter: blur(5px);
}
.admission-popup-card {
  width: 100%;
  max-width: 390px;
  box-sizing: border-box;
  padding: 28px 22px;
  border-radius: 18px;
  border-top: 5px solid #1458c8;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  text-align: center;
  animation: admissionPopupIn .25s ease-out;
}
.admission-popup-card img { width: 82px; height: 82px; object-fit: contain; margin-bottom: 10px; }
.admission-popup-card .eyebrow { color: #1458c8; font-size: 12px; font-weight: 800; letter-spacing: 1.2px; margin: 5px 0 8px; }
.admission-popup-card h2 { color: #123d83; font-size: 26px; margin: 8px 0; }
.admission-popup-card > p:not(.eyebrow) { color: #53647d; line-height: 1.6; margin: 10px 0 20px; }
.admission-popup-card button {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 13px 16px;
  border-radius: 9px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  margin-top: 10px;
}
.admission-popup-card .admission-popup-primary { color: #fff; background: #1458c8; border: 2px solid #1458c8; }
.admission-popup-card .admission-popup-secondary { color: #23436f; background: #edf3ff; border: 2px solid #d8e5ff; }
@keyframes admissionPopupIn {
  from { opacity: 0; transform: translateY(12px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* PREMIUM CLASS 10 CRASH COURSE */
.crash-premium {
  --crash-blue: #0b2b60;
  --crash-yellow: #ffd84d;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 32px auto;
  padding: 28px;
  max-width: 1200px;
  border-radius: 24px;
  color: #fff;
  background: radial-gradient(ellipse at 85% 10%,#1c63b5 0,transparent 40%),linear-gradient(135deg,#071a3d,#0b3c80 58%,#071a3d);
  box-shadow: 0 18px 45px rgba(7,35,78,.22);
}
.crash-glow { position: absolute; z-index: -1; width: 260px; height: 260px; right: -90px; top: 180px; border-radius: 50%; background: #1685ff; filter: blur(100px); opacity: .35; }
.crash-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-bottom: 22px; border-bottom: 1px solid rgba(255,255,255,.18); }
.crash-label { font-size: 12px; letter-spacing: 2px; font-weight: 800; color: #d7e8ff; }
.crash-badge { padding: 8px 12px; border-radius: 30px; background: var(--crash-yellow); color: #10264b; font-size: 11px; font-weight: 900; }
.crash-layout { display: grid; grid-template-columns: 1fr .9fr; align-items: center; gap: 30px; padding: 28px 0; }
.crash-copy { min-width: 0; }
.crash-kicker { color: #9ecaff; font-size: 11px; font-weight: 800; letter-spacing: 1.5px; }
.crash-copy h2 { margin: 12px 0; color: #fff; font-size: clamp(32px,5vw,54px); line-height: 1.08; letter-spacing: -1.5px; }
.crash-copy h2 span { color: var(--crash-yellow); }
.crash-tagline { color: #d5e5ff; font-size: 15px; }
.crash-start { display: flex; flex-direction: column; gap: 4px; margin: 22px 0; padding-left: 14px; border-left: 4px solid var(--crash-yellow); }
.crash-start span { color: #bcd5fa; font-size: 11px; letter-spacing: 1px; }
.crash-start strong { font-size: 19px; }
.crash-price-card { display: grid; grid-template-columns: 1fr 1.2fr; gap: 12px; align-items: center; padding: 18px; border: 1px solid rgba(255,255,255,.3); border-radius: 16px; background: rgba(255,255,255,.09); backdrop-filter: blur(10px); }
.crash-old-price, .crash-new-price { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: #d3e4ff; }
.crash-old-price strong { color: #fff; font-size: 23px; text-decoration: line-through; text-decoration-color: #ff7777; }
.crash-new-price strong { color: var(--crash-yellow); font-size: 32px; line-height: 1.2; }
.crash-saving { grid-column: 1 / -1; width: fit-content; padding: 6px 10px; border-radius: 6px; color: #11264a; background: var(--crash-yellow); font-size: 11px; font-weight: 900; }
.crash-deadline { margin-top: 16px; padding: 12px; border-radius: 10px; background: rgba(255,255,255,.09); color: #fff; font-size: 13px; }
.crash-deadline strong { color: var(--crash-yellow); }
.crash-note { color: #d2e2fa; font-size: 13px; line-height: 1.6; }
.crash-enroll { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 15px 18px; margin-top: 16px; border-radius: 12px; color: #08284f; background: linear-gradient(135deg,#ffe879,#ffc928); text-decoration: none; font-weight: 900; box-shadow: 0 8px 22px rgba(255,201,40,.2); transition: transform .2s,box-shadow .2s; }
.crash-enroll:hover { transform: translateY(-2px); box-shadow: 0 12px 25px rgba(255,201,40,.3); }
.crash-whatsapp-note { margin: 8px 0 0; text-align: center; color: #bcd5fa; font-size: 11px; }
.crash-image-wrap { position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.22); border-radius: 18px; background: #eaf3ff; box-shadow: 0 20px 40px rgba(0,0,0,.22); }
.crash-image { display: block; width: 100%; height: auto; object-fit: contain; }
.crash-image-caption { display: flex; align-items: center; gap: 12px; padding: 13px; color: #102d59; background: #fff; }
.crash-image-caption > span { font-size: 28px; }
.crash-image-caption div { display: flex; flex-direction: column; }
.crash-image-caption small { color: #526782; margin-top: 2px; }
.crash-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.18); color: #c8ddfb; font-size: 11px; }
.crash-footer span:first-child { color: #fff; font-weight: 900; letter-spacing: 1px; }

/* CRASH COURSE HOME BUTTON */
.crash-home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg,#ffe878,#ffbd20);
  color: #10264a !important;
  border: 2px solid #fff0a3;
  border-radius: 12px;
  padding: 14px 20px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(255,190,25,.3);
  transition: transform .2s ease,box-shadow .2s ease;
}
.crash-home-button:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(255,190,25,.4); }
.crash-home-button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* TABLET */
@media (max-width: 900px) {
  .hero-art { right: -2%; width: 42%; opacity: .65; }
  .hero-content { max-width: 62%; }
  .course-grid { grid-template-columns: repeat(2,1fr); }
  .benefit-grid { grid-template-columns: repeat(2,1fr); }
  .benefit:nth-child(2) { border-right: 0; }
  .benefit:nth-child(-n+2) { border-bottom: 1px solid #ffffff30; padding-bottom: 20px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-card { padding: 17px; }
  .about-section { gap: 28px; }
}

/* MOBILE */
@media (max-width: 650px) {
  .site-header { padding: 10px 16px; }
  .logo { width: 43px; }
  .brand-copy strong { font-size: 16px; letter-spacing: -.5px; }
  .brand-copy small { font-size: 10px; }
  .menu-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 14px 18px 20px;
    background: white;
    box-shadow: 0 18px 25px #07345b1c;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 10px 12px; border-radius: 8px; }
  .nav .nav-cta { text-align: center; margin-top: 5px; }
  .hero { min-height: 620px; padding: 48px 22px 245px; align-items: flex-start; }
  .hero-content { max-width: 100%; }
  h1 { font-size: clamp(34px,10vw,48px); letter-spacing: -1.4px; }
  .hero-intro { font-size: 14px; max-width: 440px; }
  .hero-art { width: 78%; height: 235px; right: 5%; bottom: 2%; opacity: .9; }
  .book-stack { width: 260px; }
  .book { padding: 11px 18px; }
  .section { padding: 58px 18px; }
  .section-heading { margin-botline-offset: 3px;
  }
