/* =====================================================================
   N.T.S PATHANKOT — STYLES
   Brand colours are the four variables at the top. (You can also change
   them from admin.html → "Logo & Colours".)
   ===================================================================== */

:root {
  /* Brand colours – taken from the N.T.S logo */
  --navy: #05306a;
  --blue: #0b5fb0;
  --sky: #0f98f5;
  --green: #0e8a58;

  /* Neutrals */
  --ink: #0d2140;
  --text: #3a4a63;
  --muted: #66758c;
  --tint: #f3f8fe;
  --line: #e0e8f2;
  --white: #ffffff;

  /* Type */
  --font-head: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  /* Layout */
  --wrap: 1160px;
  --header-h: 76px;
  --radius: 18px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dl, dd, figure, blockquote { margin: 0; }
h1, h2, h3 { color: var(--ink); }
.pre { white-space: pre-line; }

:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 12px; border: 1.5px solid transparent;
  font: 600 1rem/1.2 var(--font-body); cursor: pointer; text-align: center;
  transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s;
}
.btn--sm { padding: 11px 20px; font-size: .94rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--navy); }
.btn--green { background: var(--green); color: #fff; }
.btn--green:hover { filter: brightness(.92); }
.btn--outline { border-color: #c5d4e6; color: var(--navy); background: #fff; }
.btn--outline:hover { border-color: var(--blue); color: var(--blue); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-btn {
  display: inline-block; font-weight: 700; color: var(--blue);
  border-bottom: 2px solid transparent; padding-bottom: 1px; width: fit-content;
  transition: border-color .2s, color .2s;
}
.link-btn:hover { color: var(--navy); border-color: currentColor; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-stuck, .site-header.is-open { border-color: var(--line); }
.site-header.is-stuck { box-shadow: 0 6px 24px -14px rgba(5, 48, 106, .35); }

.nav { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }
.nav__logo { display: block; flex: none; }
.nav__logo img { height: 50px; width: auto; }
.nav__links { margin-left: auto; }
.nav__list { display: flex; gap: 6px; }
.nav__list a {
  display: block; padding: 8px 14px; border-radius: 8px;
  font-weight: 500; font-size: .96rem; color: var(--ink);
  transition: color .2s, background-color .2s;
}
.nav__list a:hover { color: var(--blue); background: var(--tint); }
.nav__list a.is-active { color: var(--blue); font-weight: 700; }
.nav__toggle {
  display: none; margin-left: auto; width: 46px; height: 46px; padding: 0;
  align-items: center; justify-content: center;
  background: transparent; border: 1.5px solid var(--line); border-radius: 12px; color: var(--navy); cursor: pointer;
}

.mobile-menu { border-top: 1px solid var(--line); background: #fff; padding: 12px 24px 24px; }
.mobile-menu[hidden] { display: none; }
.mobile-menu__list a { display: block; padding: 14px 4px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 18px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 104px; }
.hero::before {
  content: ''; position: absolute; z-index: 0; top: 0; right: 0; bottom: 0; width: 46%;
  background: var(--tint); border-bottom-left-radius: 160px;
}
.hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.08fr .92fr; gap: 72px; align-items: center;
}
.hero__brand {
  display: flex; align-items: center; gap: 12px;
  font-weight: 700; font-size: .9rem; letter-spacing: .16em; color: var(--blue);
}
.hero__brand::before { content: ''; width: 32px; height: 2px; background: var(--green); }
.hero__title {
  margin: 22px 0 22px;
  font: 600 clamp(3.1rem, 7.4vw, 5.6rem)/.98 var(--font-head);
  letter-spacing: -.025em; color: var(--navy);
}
.hero__title span { display: block; }
.hero__tagline { font: italic 500 1.4rem/1.3 var(--font-head); color: var(--blue); }
.hero__text { margin-top: 18px; max-width: 30em; font-size: 1.15rem; color: var(--text); }
.hero .btn-row { margin-top: 32px; }
.hero__strip {
  display: flex; flex-wrap: wrap; gap: 6px 0; margin-top: 40px;
  font-weight: 700; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--navy);
}
.hero__strip li:not(:last-child)::after { content: '·'; margin: 0 12px; color: var(--sky); font-weight: 700; }

/* Hero visual card */
.hv { position: relative; max-width: 470px; margin-inline: auto; width: 100%; }
.hv__card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: 28px;
  padding: 30px 30px 34px;
  box-shadow: 0 30px 70px -30px rgba(5, 48, 106, .35), 0 2px 8px rgba(5, 48, 106, .05);
}
.hv__brand { padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.hv__brand img { height: 58px; width: auto; }
.hv__label { margin: 22px 0 14px; font-weight: 600; font-size: .95rem; color: var(--muted); }
.hv__chips { display: flex; flex-wrap: wrap; gap: 10px; }
.hv__chips li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px 9px 11px; border-radius: 999px;
  background: var(--tint); color: var(--navy); font-weight: 600; font-size: .95rem;
}
.hv__chips svg { color: var(--blue); flex: none; }
.hv__path { display: flex; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.hv__path li {
  position: relative; flex: 1; padding-top: 22px;
  font-size: .82rem; font-weight: 600; color: var(--ink);
}
.hv__path li::before {
  content: ''; position: absolute; top: 0; left: 0; width: 11px; height: 11px; border-radius: 50%;
  background: var(--blue); box-shadow: 0 0 0 4px var(--tint);
}
.hv__path li:last-child::before { background: var(--green); }
.hv__path li:not(:last-child)::after {
  content: ''; position: absolute; top: 5px; left: 18px; right: 6px; height: 1.5px; background: var(--line);
}
.hv__badge {
  position: absolute; left: -28px; bottom: -22px; z-index: 2;
  display: flex; align-items: center; gap: 10px;
  padding: 13px 20px 13px 16px; border-radius: 16px;
  background: var(--navy); color: #fff; font-weight: 600; font-size: .95rem;
  box-shadow: 0 18px 36px -16px rgba(5, 48, 106, .6);
}
.hv__badge svg { color: #7cc6ff; }

/* The one page-load moment: hero text and card settle into place */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero__copy > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.hero__copy > :nth-child(2) { animation-delay: .08s; }
.hero__copy > :nth-child(3) { animation-delay: .16s; }
.hero__copy > :nth-child(4) { animation-delay: .24s; }
.hero__copy > :nth-child(5) { animation-delay: .32s; }
.hero__copy > :nth-child(6) { animation-delay: .4s; }
.hv__card { animation: rise .8s .2s cubic-bezier(.2, .7, .2, 1) both; }
.hv__badge { animation: rise .7s .7s cubic-bezier(.2, .7, .2, 1) both; }

/* ---------- Sections ---------- */
.section { padding: 100px 0; scroll-margin-top: calc(var(--header-h) - 8px); }
.hero { scroll-margin-top: var(--header-h); }
.section--tint { background: var(--tint); }
.section__head { margin-bottom: 52px; max-width: 40rem; }
h2 {
  font: 600 clamp(2.1rem, 4.2vw, 3.1rem)/1.08 var(--font-head);
  letter-spacing: -.015em; color: var(--navy);
}
.section__head p { margin-top: 14px; font-size: 1.1rem; }

/* Courses */
.course-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.course {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: 28px 26px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s;
}
.course:hover { border-color: #b7d3ef; }
.course__icon {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 8px;
  border-radius: 14px; background: var(--tint); color: var(--blue);
}
.course h3 { font: 700 1.3rem/1.2 var(--font-body); color: var(--navy); }
.course p { flex: 1; font-size: .96rem; color: var(--muted); margin-bottom: 8px; }
.course--help { background: var(--navy); border-color: var(--navy); justify-content: center; }
.course--help:hover { border-color: var(--navy); }
.course--help h3 { color: #fff; font: 600 1.45rem/1.2 var(--font-head); }
.course--help p { flex: 0 0 auto; color: #cfe0f5; margin-bottom: 10px; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1.05fr; gap: 88px; align-items: start; }
.about__copy { position: sticky; top: calc(var(--header-h) + 32px); }
.about__copy p { margin-top: 22px; font-size: 1.18rem; max-width: 26em; }
.features li { display: flex; gap: 20px; padding: 26px 0; border-top: 1px solid #d6e2f0; }
.features li:last-child { border-bottom: 1px solid #d6e2f0; }
.feature__icon {
  flex: none; display: grid; place-items: center; width: 52px; height: 52px;
  border-radius: 14px; background: #fff; color: var(--blue); border: 1px solid var(--line);
}
.feature h3 { font: 700 1.15rem/1.3 var(--font-body); color: var(--navy); }
.feature p { margin-top: 4px; color: var(--muted); }

/* Approach (a real sequence: 1 → 4) */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.step { position: relative; padding-top: 74px; }
.step__num {
  position: absolute; top: 0; left: 0; z-index: 1;
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--navy); color: #fff; font: 600 1.25rem/1 var(--font-head);
}
.step:last-child .step__num { background: var(--green); }
.step:not(:last-child)::before {
  content: ''; position: absolute; top: 25px; left: 64px; right: -20px; height: 2px;
  background: repeating-linear-gradient(90deg, #c4d5e8 0 6px, transparent 6px 12px);
}
.step h3 { font: 600 1.7rem/1.15 var(--font-head); color: var(--navy); }
.step p { margin-top: 8px; color: var(--muted); max-width: 16em; }

/* IELTS */
.section--navy { background: var(--navy); color: #d6e5f8; }
.ielts { position: relative; overflow: hidden; }
.ielts::after {
  content: ''; position: absolute; right: -140px; top: -140px; width: 420px; height: 420px;
  border-radius: 50%; border: 60px solid rgba(15, 152, 245, .12); pointer-events: none;
}
.ielts__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.ielts h2 { color: #fff; }
.ielts__copy p { margin: 22px 0 32px; font-size: 1.18rem; max-width: 26em; }
.ielts__list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ielts__list li {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 14px; color: #fff; font-weight: 600;
}
.ielts__tick {
  flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--sky); color: #fff;
}

/* Results */
.result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.result {
  display: flex; align-items: center; gap: 22px;
  padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.result__photo { flex: none; width: 92px; height: 92px; border-radius: 50%; overflow: hidden; background: var(--tint); }
.result__photo img { width: 100%; height: 100%; object-fit: cover; }
.result__photo.is-empty { display: grid; place-items: center; color: #9db4cf; }
.result h3 { font: 700 1.15rem/1.25 var(--font-body); color: var(--navy); }
.result__exam { margin-top: 3px; font-weight: 700; color: var(--blue); font-size: .95rem; }
.result__what { margin-top: 2px; font-size: .95rem; color: var(--muted); }
.result__year {
  display: inline-block; margin-top: 10px; padding: 2px 12px; border-radius: 999px;
  background: var(--tint); color: var(--navy); font-size: .8rem; font-weight: 700;
}

/* Testimonials */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.quote { display: flex; flex-direction: column; gap: 18px; padding-left: 26px; border-left: 3px solid var(--sky); }
.quote__mark { color: var(--sky); }
.quote blockquote p { font: 500 1.28rem/1.5 var(--font-head); color: var(--ink); }
.quote figcaption { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.quote figcaption span { display: flex; flex-direction: column; }
.quote figcaption strong { color: var(--navy); }
.quote figcaption small { color: var(--muted); font-size: .9rem; }
.quote__photo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.quote.is-placeholder .quote__mark { color: #b5c8de; }
.quote.is-placeholder blockquote p { font-style: italic; }

/* Faculty */
.faculty-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.teacher { display: flex; flex-direction: column; padding: 18px 18px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.teacher__photo { aspect-ratio: 5 / 4; border-radius: 12px; overflow: hidden; background: var(--tint); margin-bottom: 20px; }
.teacher__photo img { width: 100%; height: 100%; object-fit: cover; }
.teacher__photo.is-empty { display: grid; place-items: center; color: #9db4cf; }
.teacher h3 { padding-inline: 8px; font: 600 1.5rem/1.2 var(--font-head); color: var(--navy); }
.teacher p { padding-inline: 8px; }
.teacher__subject { margin-top: 4px; font-weight: 700; color: var(--blue); }
.teacher__qual { font-size: .95rem; color: var(--muted); }
.teacher__bio { margin-top: 12px; font-size: .96rem; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.contact__info > p { margin-top: 18px; font-size: 1.15rem; max-width: 26em; }
.contact__list { margin: 36px 0; display: grid; gap: 22px; }
.contact__item { display: flex; gap: 16px; align-items: flex-start; }
.contact__icon {
  flex: none; display: grid; place-items: center; width: 48px; height: 48px;
  border-radius: 14px; background: #fff; color: var(--blue); border: 1px solid var(--line);
}
.contact__item dt { font-size: .85rem; font-weight: 600; color: var(--muted); }
.contact__item dd { font-size: 1.12rem; font-weight: 600; color: var(--ink); }
.contact__item dd a:hover { color: var(--blue); }
.contact .btn-row { margin-bottom: 28px; }

.social { display: flex; gap: 10px; }
.social a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid #c5d4e6; color: var(--navy); transition: background-color .2s, color .2s, border-color .2s;
}
.social a:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

.contact__form { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 36px; box-shadow: 0 24px 60px -36px rgba(5, 48, 106, .35); }
.contact__form h3 { font: 600 1.7rem/1.2 var(--font-head); color: var(--navy); margin-bottom: 24px; }
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field label { font-weight: 600; font-size: .92rem; color: var(--ink); }
.req { color: #c0392b; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1rem/1.4 var(--font-body); color: var(--ink);
  padding: 13px 14px; background: #fff; border: 1.5px solid #c9d7e8; border-radius: 10px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(15, 152, 245, .16);
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__status { min-height: 1.4em; font-weight: 600; font-size: .95rem; }
.form__status:empty { display: none; }
.form__status.is-ok { color: var(--green); }
.form__status.is-ok a { text-decoration: underline; }
.form__status.is-error { color: #b3261e; }
.form__note { font-size: .88rem; color: var(--muted); text-align: center; }

/* Map */
.section--map { padding: 88px 0 100px; }
.section--map .section__head { margin-bottom: 28px; }
.section--map h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); }
.map { position: relative; height: 400px; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: var(--tint); }
.map__fallback { position: absolute; inset: 0; display: grid; place-items: center; color: #9db4cf; }
.map iframe { position: relative; width: 100%; height: 100%; border: 0; }
.map__bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 18px; }
.map__bar p { font-weight: 500; color: var(--ink); }

/* Empty placeholder cards (shown until real entries are added) */
.result.is-placeholder, .teacher.is-placeholder { background: transparent; border: 1px dashed #b5c8de; }
.quote.is-placeholder { border-style: none none none dashed; border-left-width: 3px; border-color: #b5c8de; }
.is-placeholder h3, .is-placeholder strong, .is-placeholder .result__exam, .is-placeholder .result__what,
.is-placeholder .teacher__subject, .is-placeholder .teacher__qual, .is-placeholder .teacher__bio,
.is-placeholder blockquote p, .is-placeholder small { color: #7d90a9; }
.result.is-placeholder .result__year { background: transparent; border: 1px dashed #b5c8de; color: #7d90a9; }

/* ---------- Footer ---------- */
.site-footer { background: #041f4a; color: #bfd0e6; }
.footer { display: grid; grid-template-columns: 1.4fr .8fr .8fr 1.3fr; gap: 48px; padding: 72px 0 56px; }
.footer__logo { display: inline-block; padding: 12px 18px; background: #fff; border-radius: 14px; }
.footer__logo img { height: 48px; width: auto; }
.footer__tagline { margin: 20px 0 22px; font: italic 500 1.3rem/1.3 var(--font-head); color: #fff; max-width: 14em; }
.social--light a { border-color: rgba(255, 255, 255, .3); color: #fff; }
.social--light a:hover { background: #fff; color: var(--navy); border-color: #fff; }
.footer__col h2 { font: 700 .95rem/1.3 var(--font-body); letter-spacing: 0; color: #fff; margin-bottom: 18px; }
.footer__col ul { display: grid; gap: 10px; }
.footer__col a { transition: color .2s; }
.footer__col a:hover { color: #fff; }
.footer__contact p + p { margin-top: 12px; }
.footer__bar { border-top: 1px solid rgba(255, 255, 255, .12); padding: 22px 0; font-size: .9rem; }
.footer__bar p { color: #93a9c6; }

/* ---------- Tablet ---------- */
@media (max-width: 1040px) {
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .footer { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .step:nth-child(2)::before { display: none; }
  .result-grid, .quote-grid, .faculty-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__logo img { height: 44px; }

  .hero { padding: 48px 0 80px; }
  .hero::before { width: 100%; top: auto; height: 56%; border-radius: 0; border-top-left-radius: 90px; }
  .hero__grid { grid-template-columns: 1fr; gap: 56px; }
  .hv__badge { left: 12px; }

  .section { padding: 76px 0; }
  .section--map { padding: 64px 0 76px; }
  .about, .contact, .ielts__grid { grid-template-columns: 1fr; gap: 44px; }
  .about__copy { position: static; }
  .contact__form { padding: 26px 22px; }
}

/* ---------- Phone ---------- */
@media (max-width: 640px) {
  .wrap { width: min(var(--wrap), 100% - 40px); }
  .course-grid, .result-grid, .quote-grid, .faculty-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { padding: 0 0 36px 76px; }
  .step:last-child { padding-bottom: 0; }
  .step__num { top: 0; }
  .step:not(:last-child)::before {
    top: 60px; bottom: 6px; left: 25px; right: auto; width: 2px; height: auto;
    background: repeating-linear-gradient(180deg, #c4d5e8 0 6px, transparent 6px 12px);
  }
  .step:nth-child(2)::before { display: block; }
  .ielts__list { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .footer { grid-template-columns: 1fr 1fr; gap: 36px 24px; padding: 56px 0 40px; }
  .footer__brand, .footer__contact { grid-column: 1 / -1; }
  .hv__card { padding: 24px 22px 44px; }
  .hv__badge { left: 8px; bottom: -20px; }
  .hero__strip { font-size: .74rem; }
  .hero__strip li:not(:last-child)::after { margin: 0 8px; }
  .btn-row .btn { flex: 1 1 100%; }
}

/* ---------- Respect "reduce motion" ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Live preview inside admin.html: no page-load animation on every edit */
.is-preview *, .is-preview *::before, .is-preview *::after { animation: none !important; }
