/* ==========================================================================
   Jaypee Computer Institute & Technology – main stylesheet
   --------------------------------------------------------------------------
   Contents
     1. Design tokens (colours, fonts, spacing) – change the look here
     2. Base elements
     3. Layout helpers
     4. Buttons, badges, eyebrows
     5. Top bar, header and mobile menu
     6. Home page sections
     7. Shared components (cards, steps, FAQ, forms, gallery…)
     8. Inner pages (page hero, prose, course detail)
     9. Footer, WhatsApp button
    10. Scroll animations and reduced motion
   Colours come from the institute logo: navy shield, red "JP", purple ribbon.
   ========================================================================== */

/* 1. Design tokens ------------------------------------------------------- */
:root {
  --navy-950: #0b1430;
  --navy-900: #14214a;
  --navy-800: #1d2d5f;
  --navy-700: #2a3d78;
  --red-600: #e23b2e;
  --red-700: #c42e22;
  --red-50: #fdeeed;
  --purple-600: #8e3fc4;
  --purple-50: #f4ecfb;
  --green-600: #1f9d55;

  --ink: #18213d;          /* headings */
  --text: #46506b;         /* body copy */
  --muted: #6b7591;        /* small print */
  --line: #e3e7f0;         /* borders */
  --surface: #ffffff;
  --surface-2: #f6f8fc;    /* soft section background */
  --surface-3: #eef2fa;

  --font-head: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", "Noto Sans Oriya", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(20, 33, 74, .06), 0 2px 8px rgba(20, 33, 74, .05);
  --shadow: 0 10px 30px rgba(20, 33, 74, .10);
  --shadow-lg: 0 24px 60px rgba(20, 33, 74, .18);

  /* Content width grows with the screen: phone → laptop → large monitor.
     The side gutter is 16px on phones and grows to 4% of the screen width. */
  --container: 1760px;
  --gutter: 16px;
  --section: clamp(64px, 9vw, 112px);   /* vertical space between sections */
  --header-h: 72px;
}
@media (min-width: 768px) { :root { --gutter: clamp(28px, 4vw, 72px); } }
/* Large monitors: slightly larger text so the wider layout stays balanced */
@media (min-width: 1680px) { html { font-size: 17px; } body { font-size: 17px; } }
@media (min-width: 2200px) { :root { --container: 2240px; } body { font-size: 18px; } }

/* 2. Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 16px/1.65 var(--font-body);
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-800); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red-600); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.18; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(34px, 4.4vw, 76px); font-weight: 800; }
h2 { font-size: clamp(28px, 2.9vw, 52px); font-weight: 800; }
h3 { font-size: clamp(18px, 2vw, 21px); font-weight: 700; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--purple-600); outline-offset: 3px; border-radius: 4px; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy-900); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; color: #fff; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 3. Layout -------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--soft { background: var(--surface-2); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.section-head { max-width: 820px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { font-size: 18px; }
.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
/* Fixed column counts keep rows complete (no single card left alone on a row) */
.grid--3, .grid--4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }
.split { display: grid; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; } .split--wide-left { grid-template-columns: 1.15fr .85fr; } }
.hide-sm { display: none; }
@media (min-width: 1100px) { .hide-sm { display: inline; } }

/* 4. Buttons, badges, eyebrows ----------------------------------------- */
.btn {
  white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 2px solid transparent;
  font: 600 15px/1 var(--font-head); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background-color .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--red-600); color: #fff; box-shadow: 0 8px 20px rgba(226, 59, 46, .28); }
.btn--primary:hover { background: var(--red-700); color: #fff; }
.btn--navy { background: var(--navy-900); color: #fff; }
.btn--navy:hover { background: var(--navy-800); color: #fff; }
.btn--outline { border-color: var(--navy-900); color: var(--navy-900); background: transparent; }
.btn--outline:hover { background: var(--navy-900); color: #fff; }
.btn--white { background: #fff; color: var(--navy-900); }
.btn--white:hover { color: var(--red-600); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn--ghost-light:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .08); }
.btn--block { width: 100%; }
.btn svg { width: 18px; height: 18px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px;
  font: 700 13px/1.2 var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--red-600);
}
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: currentColor; }
.eyebrow--light { color: #ffb4ad; }
.section-head--center .eyebrow::before { display: none; }
@media (max-width: 560px) { .eyebrow { letter-spacing: .1em; font-size: 12px; } }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font: 600 12.5px/1.2 var(--font-head); background: var(--surface-3); color: var(--navy-800); }
.badge--red { background: var(--red-50); color: var(--red-700); }
.badge--purple { background: var(--purple-50); color: var(--purple-600); }
.badge--green { background: #e7f6ee; color: #137a40; }
.pending { display: inline-block; padding: 2px 8px; border-radius: 6px; font: 600 11px/1.6 var(--font-body); background: #fff4d6; color: #8a5a00; vertical-align: middle; }

/* 5. Top bar, header, mobile menu --------------------------------------- */
.topbar { background: var(--navy-950); color: #c9d1ea; font-size: 13px; }
.topbar__inner { display: flex; justify-content: space-between; gap: 12px; padding-block: 8px; }
.topbar p { margin: 0; display: flex; align-items: center; gap: 14px; }
.topbar strong { color: #fff; font-weight: 600; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: #ffb4ad; }
.topbar__sep { width: 1px; height: 14px; background: rgba(255, 255, 255, .2); display: none; }
@media (min-width: 1100px) { .topbar__sep { display: block; } }
.topbar a { white-space: nowrap; }
@media (max-width: 560px) { .topbar__info span:first-child { font-size: 12px; } .topbar__contact { display: none !important; } }

.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s; }
.header.is-scrolled { box-shadow: 0 6px 24px rgba(20, 33, 74, .08); border-bottom-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__logo { width: 46px; height: auto; flex: none; filter: drop-shadow(0 4px 8px rgba(20, 33, 74, .25)); }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font: 800 16px/1.15 var(--font-head); color: var(--navy-900); letter-spacing: -.01em; }
.brand__sub { font: 600 12px/1.3 var(--font-head); color: var(--red-600); letter-spacing: .04em; }
.brand--light .brand__name { color: #fff; }
.brand--light .brand__sub { color: #ffb4ad; }

.nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav__list a { display: block; padding: 10px 12px; border-radius: var(--radius-sm); font: 600 14.5px/1.2 var(--font-head); color: var(--ink); text-decoration: none; white-space: nowrap; }
.nav__list a:hover { color: var(--red-600); background: var(--surface-2); }
.nav__list a[aria-current="page"] { color: var(--red-600); }
.nav { display: flex; align-items: center; gap: 14px; }
.nav__cta { min-height: 44px; padding-inline: 20px; }

.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; position: relative; }
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after { position: absolute; left: 12px; width: 20px; height: 2px; border-radius: 2px; background: var(--navy-900); transition: transform .25s, opacity .25s; content: ""; }
.nav-toggle__bar { top: 22px; }
.nav-toggle__bar::before { left: 0; top: -6px; }
.nav-toggle__bar::after { left: 0; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translateY(-6px) rotate(-45deg); }

/* Below 1180px the menu becomes a slide-down panel */
@media (max-width: 1179px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: calc(var(--header-h) + 1px) 0 auto 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 16px var(--gutter) 24px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: transform .25s, opacity .25s, visibility .25s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; }
  .nav__list a { padding: 14px 12px; font-size: 16px; border-bottom: 1px solid var(--surface-3); border-radius: 0; }
  .nav__cta { width: 100%; }
}
@media (max-width: 400px) { .brand__name { font-size: 14px; } .brand__sub { font-size: 11px; } .brand__logo { width: 40px; } }

/* 6. Home page ----------------------------------------------------------- */
/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 96px) 0 clamp(64px, 9vw, 112px);
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(142, 63, 196, .10), transparent 60%),
    radial-gradient(800px 500px at 0% 100%, rgba(226, 59, 46, .07), transparent 60%),
    linear-gradient(180deg, #f8f9fd, #fff); }
.hero::before { /* faint grid pattern */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--surface-3) 1px, transparent 1px), linear-gradient(90deg, var(--surface-3) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%); }
.hero__inner { position: relative; display: grid; gap: clamp(40px, 6vw, 64px); align-items: center; }
@media (min-width: 1024px) { .hero__inner { grid-template-columns: 1.05fr .95fr; } }
.hero h1 { margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--red-600); position: relative; white-space: nowrap; }
.hero h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .14em; border-radius: 4px; background: rgba(226, 59, 46, .18); z-index: -1; }
.hero__lead { font-size: clamp(17px, 1.3vw, 21px); max-width: 640px; margin-bottom: 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.hero__trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font: 600 14px/1.3 var(--font-head); color: var(--navy-800); }
.hero__trust li { display: flex; align-items: center; gap: 8px; }
.hero__trust svg { width: 20px; height: 20px; color: var(--green-600); flex: none; }

/* Hero visual: the OS-CIT ladder as three stacked cards */
.ladder { position: relative; display: grid; gap: 16px; max-width: 640px; margin-inline: auto; width: 100%; }
.ladder__card { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.ladder__card:nth-of-type(2) { margin-left: clamp(0px, 4vw, 32px); }
.ladder__card:nth-of-type(3) { margin-left: clamp(0px, 8vw, 64px); background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); border-color: transparent; color: #c9d1ea; }
.ladder__card:nth-of-type(3) h3 { color: #fff; }
.ladder__level { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font: 800 15px/1 var(--font-head); background: var(--red-50); color: var(--red-600); }
.ladder__card:nth-of-type(2) .ladder__level { background: var(--purple-50); color: var(--purple-600); }
.ladder__card:nth-of-type(3) .ladder__level { background: rgba(255, 255, 255, .12); color: #fff; }
.ladder__card h3 { margin: 0 0 2px; font-size: 17px; }
.ladder__card p { margin: 0; font-size: 14px; }
.ladder__time { font: 700 13px/1.2 var(--font-head); white-space: nowrap; padding: 8px 12px; border-radius: 999px; background: var(--surface-2); color: var(--navy-800); }
.ladder__card:nth-of-type(3) .ladder__time { background: rgba(255, 255, 255, .12); color: #fff; }
.ladder__seal { position: absolute; right: -10px; top: -26px; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-lg); font: 700 13px/1.25 var(--font-head); color: var(--ink); }
.ladder__seal span { display: block; font: 500 12px/1.3 var(--font-body); color: var(--muted); }
.ladder__seal svg { width: 34px; height: 34px; color: var(--green-600); }
.ladder__glow { position: absolute; inset: 10% -10% -10% 10%; z-index: -1; border-radius: 40px; background: radial-gradient(circle at 60% 60%, rgba(142, 63, 196, .22), transparent 65%); filter: blur(20px); }
@media (max-width: 560px) { .ladder__seal { position: static; margin-bottom: 4px; justify-self: start; } .ladder__card { grid-template-columns: auto 1fr; } .ladder__time { grid-column: 2; justify-self: start; } }

/* Recognition strip under the hero */
.recognition { border-block: 1px solid var(--line); background: #fff; }
.recognition__list { list-style: none; margin: 0; padding: 22px 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.recognition__list li { display: flex; align-items: center; gap: 14px; }
.recognition__icon { width: 46px; height: 46px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--navy-800); }
.recognition__icon svg { width: 24px; height: 24px; }
.recognition strong { display: block; font: 700 15px/1.3 var(--font-head); color: var(--ink); }
.recognition span { font-size: 13.5px; color: var(--muted); }

/* Government course tiers */
.tiers { display: grid; gap: 22px; grid-template-columns: 1fr; counter-reset: tier; }
@media (min-width: 1024px) { .tiers { grid-template-columns: repeat(3, 1fr); } }
.tier { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; padding: 30px 28px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease, color .3s ease; }
/* Dark blue layer: faded in on the highlighted card */
.tier::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(160deg, var(--navy-900), var(--navy-800)); opacity: 0; transition: opacity .35s ease; }
.tier__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.tier__name { font: 800 30px/1 var(--font-head); color: var(--navy-900); letter-spacing: -.02em; transition: color .3s ease; }
.tier__name small { color: var(--red-600); }
.tier h3 { font-size: 16px; font-weight: 600; margin-bottom: 18px; transition: color .3s ease; }
.tier__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.tier__fact { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); transition: background .3s ease; }
.tier__fact b { display: block; font: 700 16px/1.2 var(--font-head); color: var(--ink); transition: color .3s ease; }
.tier__fact span { font-size: 12.5px; }
.tier ul { margin: 0 0 24px; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 15px; }
.tier li { display: flex; gap: 10px; }
.tier li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--red-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e23b2e' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/11px no-repeat; transition: background-color .3s ease; }
.tier .btn { margin-top: auto; }

/* Highlighted card (dark blue): the "featured" course, or the card under the mouse / keyboard.
   When another card is pointed at, the featured card turns white again, so the dark blue moves. */
.tier--featured, .tier:hover, .tier:focus-within { color: #c9d1ea; border-color: transparent; box-shadow: var(--shadow-lg); }
.tier:hover, .tier:focus-within { transform: translateY(-6px); }
.tier--featured::before, .tier:hover::before, .tier:focus-within::before { opacity: 1; }
.tier--featured :is(h3, .tier__name), .tier:hover :is(h3, .tier__name), .tier:focus-within :is(h3, .tier__name) { color: #fff; }
.tier--featured .tier__fact, .tier:hover .tier__fact, .tier:focus-within .tier__fact { background: rgba(255, 255, 255, .08); }
.tier--featured .tier__fact b, .tier:hover .tier__fact b, .tier:focus-within .tier__fact b { color: #fff; }
.tier--featured li::before, .tier:hover li::before, .tier:focus-within li::before { background-color: rgba(255, 255, 255, .12); }
.tier--featured .btn, .tier:hover .btn, .tier:focus-within .btn { background: #fff; border-color: #fff; color: var(--navy-900); }
.tier--featured .btn:hover, .tier:hover .btn:hover { color: var(--red-600); }

/* Another card is pointed at: the featured card goes back to white */
.tiers:has(.tier:hover) .tier--featured:not(:hover),
.tiers:has(.tier:focus-within) .tier--featured:not(:focus-within) { color: inherit; border-color: var(--line); box-shadow: var(--shadow-sm); }
.tiers:has(.tier:hover) .tier--featured:not(:hover)::before,
.tiers:has(.tier:focus-within) .tier--featured:not(:focus-within)::before { opacity: 0; }
.tiers:has(.tier:hover) .tier--featured:not(:hover) .tier__name,
.tiers:has(.tier:focus-within) .tier--featured:not(:focus-within) .tier__name { color: var(--navy-900); }
.tiers:has(.tier:hover) .tier--featured:not(:hover) h3,
.tiers:has(.tier:focus-within) .tier--featured:not(:focus-within) h3 { color: var(--ink); }
.tiers:has(.tier:hover) .tier--featured:not(:hover) .tier__fact,
.tiers:has(.tier:focus-within) .tier--featured:not(:focus-within) .tier__fact { background: var(--surface-2); }
.tiers:has(.tier:hover) .tier--featured:not(:hover) .tier__fact b,
.tiers:has(.tier:focus-within) .tier--featured:not(:focus-within) .tier__fact b { color: var(--ink); }
.tiers:has(.tier:hover) .tier--featured:not(:hover) li::before,
.tiers:has(.tier:focus-within) .tier--featured:not(:focus-within) li::before { background-color: var(--red-50); }
.tiers:has(.tier:hover) .tier--featured:not(:hover) .btn,
.tiers:has(.tier:focus-within) .tier--featured:not(:focus-within) .btn { background: transparent; border-color: var(--navy-900); color: var(--navy-900); }
@media (prefers-reduced-motion: reduce) { .tier, .tier::before { transition: none; } .tier:hover, .tier:focus-within { transform: none; } }
.tiers__note { margin-top: 28px; text-align: center; font-size: 14.5px; color: var(--muted); }

/* Course cards (career courses) */
.course-card { position: relative; display: flex; flex-direction: column; padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: transform .25s, box-shadow .25s, border-color .25s; }
.course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.course-card__icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; color: #fff; background: var(--navy-900); }
.course-card__icon svg { width: 26px; height: 26px; }
.course-card__icon--red { background: var(--red-600); }
.course-card__icon--purple { background: var(--purple-600); }
.course-card__icon--green { background: var(--green-600); }
.course-card__icon--amber { background: #d98a00; }
.course-card__icon--sky { background: #0e7fc0; }
.course-card h3 { margin-bottom: 8px; }
.course-card p { font-size: 15px; margin-bottom: 18px; }
.course-card__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }

/* Feature list ("Why Jaypee") */
.feature { display: flex; gap: 18px; padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.feature__icon { flex: none; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--red-50); color: var(--red-600); }
.feature__icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 17px; margin-bottom: 6px; }
.feature p { margin: 0; font-size: 15px; }

/* Dark band (internship) */
.band-dark { position: relative; overflow: hidden; background: var(--navy-950); color: #b8c2e0; }
.band-dark::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 400px at 90% 0%, rgba(142, 63, 196, .35), transparent 60%), radial-gradient(600px 400px at 0% 100%, rgba(226, 59, 46, .22), transparent 60%); }
.band-dark .container { position: relative; }
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark .eyebrow { color: #ffb4ad; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 10px 16px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); color: #fff; font: 600 14px/1.2 var(--font-head); }
.check-list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; }
.check-list svg { flex: none; width: 22px; height: 22px; color: #6fe3a1; margin-top: 2px; }
.who { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.who span { padding: 6px 12px; border-radius: 8px; background: var(--red-600); color: #fff; font: 700 13px/1.2 var(--font-head); }

/* Admission steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding: 28px 24px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); counter-increment: step; }
.step::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: 14px; font: 800 34px/1 var(--font-head); color: transparent; -webkit-text-stroke: 1.5px var(--red-600); }
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { margin: 0; font-size: 15px; }

/* Director message */
.director { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (min-width: 900px) { .director { grid-template-columns: .8fr 1.2fr; } }
.director__photo { position: relative; max-width: 500px; margin-inline: auto; width: 100%; }
.director__photo picture { display: block; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--surface-3); aspect-ratio: 4 / 5; }
.director__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
/* Coloured card behind the photo only (not behind the caption) */
.director__frame { position: relative; }
.director__frame::before { content: ""; position: absolute; inset: 20px -14px -14px 20px; z-index: -1; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--red-600), var(--purple-600)); opacity: .9; }
@media (max-width: 600px) { .director__frame::before { inset: 12px -8px -8px 12px; } .director__photo { max-width: 340px; } }
.director__tag { margin-top: 26px; text-align: center; }
.director__tag strong { display: block; font: 800 19px/1.25 var(--font-head); color: var(--ink); }
.director__tag span { display: inline-block; margin-top: 4px; font: 700 12.5px/1.3 var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--red-600); }
.quote { position: relative; margin: 0 0 24px; font: 600 clamp(19px, 2.2vw, 24px)/1.5 var(--font-head); color: var(--ink); }
.quote::before { content: "\201C"; display: block; height: .55em; font: 800 90px/1 Georgia, serif; color: var(--red-600); opacity: .25; }

/* Numbers band */
.stats { display: grid; gap: 1px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); border-radius: var(--radius-lg); overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.stat { padding: 30px 24px; background: #fff; text-align: center; }
.stat b { display: block; font: 800 clamp(32px, 4vw, 44px)/1 var(--font-head); color: var(--navy-900); letter-spacing: -.02em; }
.stat b small { font-size: .55em; color: var(--red-600); }
.stat span { display: block; margin-top: 8px; font-size: 14.5px; }

/* 7. Shared components ------------------------------------------------- */
/* Photo placeholder – replaced by real photos from the institute */
.photo { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--surface-3); aspect-ratio: 4 / 3; }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.photo:hover img { transform: scale(1.04); }
.photo--placeholder { display: grid; place-items: center; text-align: center; color: var(--muted);
  background: repeating-linear-gradient(135deg, var(--surface-2) 0 14px, var(--surface-3) 14px 28px); border: 1px dashed #cfd6e6; }
.photo--placeholder span { padding: 8px 14px; border-radius: 999px; background: #fff; font: 600 13px/1.3 var(--font-head); box-shadow: var(--shadow-sm); }
.photo--tall { aspect-ratio: 3 / 4; }
.photo--wide { aspect-ratio: 16 / 9; }
.gallery { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .gallery { grid-template-columns: repeat(4, 1fr); } .gallery .photo:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; } }

/* Notices */
.notice-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.notice { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; padding: 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.notice__date { width: 64px; text-align: center; padding: 10px 6px; border-radius: 12px; background: var(--navy-900); color: #fff; font: 800 22px/1 var(--font-head); }
.notice__date small { display: block; margin-top: 4px; font: 600 11px/1 var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: #ffb4ad; }
.notice h3 { font-size: 17px; margin-bottom: 4px; }
.notice p { margin: 0; font-size: 15px; }

/* Rating card */
.rating { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.rating__score { font: 800 64px/1 var(--font-head); color: var(--navy-900); }
.stars { display: flex; gap: 3px; color: #f5a623; margin-bottom: 6px; }
.stars svg { width: 22px; height: 22px; }
.rating__text { flex: 1 1 260px; }
.rating__text p { margin: 0; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 1040px; margin-inline: auto; }
.faq details { border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 20px 22px; cursor: pointer; list-style: none; font: 700 16.5px/1.4 var(--font-head); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--red-600); font-size: 20px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 22px 20px; }
.faq details p { margin: 0; }

/* Forms */
.form { display: grid; gap: 16px; }
.form__row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.field { display: grid; gap: 6px; }
.field label { font: 600 14px/1.3 var(--font-head); color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff;
  font: 400 16px/1.4 var(--font-body); color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy-700); box-shadow: 0 0 0 4px rgba(42, 61, 120, .12); }
.form__note { font-size: 13.5px; color: var(--muted); margin: 0; }
.form__result { display: none; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); font-size: 15px; }
.form__result.is-visible { display: block; }
.panel { padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }

/* Contact cards + map */
.contact-card { display: flex; gap: 16px; padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.contact-card__icon { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--navy-900); color: #fff; }
.contact-card__icon svg { width: 22px; height: 22px; }
.contact-card h3 { font-size: 16px; margin-bottom: 4px; }
.contact-card p { margin: 0; font-size: 15px; }
.map { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); background: var(--surface-3); min-height: 360px; }
.map iframe { display: block; width: 100%; height: 100%; min-height: 360px; border: 0; }

/* Course filter tabs (courses page) */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tab { padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font: 600 14px/1.2 var(--font-head); color: var(--ink); cursor: pointer; }
.tab[aria-pressed="true"] { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
[data-course][hidden] { display: none; }

/* Closing CTA band */
.cta-band { padding-block: clamp(56px, 8vw, 88px); background: linear-gradient(120deg, var(--navy-900) 0%, var(--navy-800) 55%, #3a2a7a 100%); color: #c9d1ea; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .04); }
.cta-band__inner { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta-band__title { color: #fff; margin-bottom: 10px; }
.cta-band__text { margin: 0; max-width: 640px; font-size: 17px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* 8. Inner pages ------------------------------------------------------- */
.page-hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 88px) 0; background: linear-gradient(135deg, var(--navy-950), var(--navy-800)); color: #c9d1ea; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 85% 20%, rgba(142, 63, 196, .35), transparent 60%), radial-gradient(500px 300px at 10% 110%, rgba(226, 59, 46, .25), transparent 60%); }
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; font-size: clamp(32px, 5vw, 52px); margin-bottom: 14px; }
.page-hero p { max-width: 640px; font-size: 18px; margin: 0; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 18px; padding: 0; font: 600 13px/1.3 var(--font-head); }
.breadcrumb a { color: #ffb4ad; text-decoration: none; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: rgba(255, 255, 255, .35); }

.prose { max-width: 820px; }
.prose h2 { font-size: clamp(22px, 2.6vw, 28px); margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose li { margin-bottom: .4em; }

.facts-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.facts-table th, .facts-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts-table th { width: 38%; font: 600 14px/1.4 var(--font-head); color: var(--ink); background: var(--surface-2); }

.sidebar-card { position: sticky; top: calc(var(--header-h) + 24px); }
.course-layout { display: grid; gap: clamp(28px, 5vw, 56px); align-items: start; }
@media (min-width: 960px) { .course-layout { grid-template-columns: 1fr 360px; } }

.timeline { list-style: none; margin: 0; padding: 0 0 0 28px; border-left: 2px solid var(--line); display: grid; gap: 28px; }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: -36px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--red-600); }
.timeline b { display: block; font: 800 14px/1.2 var(--font-head); letter-spacing: .08em; color: var(--red-600); margin-bottom: 4px; }
.timeline h3 { font-size: 18px; margin-bottom: 4px; }
.timeline p { margin: 0; }

.doc-card { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.doc-card__icon { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--purple-50); color: var(--purple-600); }
.doc-card__icon svg { width: 22px; height: 22px; }
.doc-card h3 { font-size: 16px; margin-bottom: 4px; }
.doc-card p { margin: 0; font-size: 14.5px; }

/* 9. Footer + WhatsApp -------------------------------------------------- */
.footer { background: var(--navy-950); color: #9aa5c6; font-size: 15px; padding-top: clamp(56px, 7vw, 80px); }
.footer a { color: #c9d1ea; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; gap: 36px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); padding-bottom: 48px; }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1.1fr; } }
.footer__about p { margin: 18px 0; max-width: 340px; }
.footer__badges { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer__badges li { display: inline-block; width: fit-content; padding: 6px 12px; border-radius: 8px; background: rgba(255, 255, 255, .06); font: 600 12.5px/1.3 var(--font-head); color: #c9d1ea; }
.footer__title { font: 700 14px/1.2 var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer__address { margin-bottom: 14px; line-height: 1.7; }
.footer__contact { line-height: 1.9; margin: 0; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-block: 22px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13.5px; }
.footer__bottom p { margin: 0; }
.footer__credit { opacity: .75; }
.footer__credit a { text-decoration: underline; text-underline-offset: 3px; }

.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 10px 26px rgba(37, 211, 102, .45); transition: transform .2s; }
.wa-float:hover { transform: scale(1.07); color: #fff; }

/* 10. Scroll animation -------------------------------------------------- */
/* Elements with .reveal fade up when they enter the screen (see main.js).
   Without JavaScript they are simply visible. */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Tables with a header row (e.g. course list): even columns */
.facts-table thead th { width: auto; background: var(--surface-2); }
.facts-table thead th:last-child, .facts-table tbody td:last-child { width: 34%; }

/* "Student login" link inside the mobile menu only (the top bar has it on desktop) */
.nav__portal { display: none; }
@media (max-width: 1179px) { .nav__portal { display: block; } }
.form__error { color: var(--red-700); font-size: 13.5px; margin: -6px 0 0; }

/* Phones: no breadcrumb (menu and Back button do the job); smaller WhatsApp button */
@media (max-width: 767px) {
  .breadcrumb { display: none; }
  .wa-float { width: 46px; height: 46px; right: 12px; bottom: 12px; box-shadow: 0 6px 16px rgba(37, 211, 102, .4); }
  .wa-float svg { width: 22px; height: 22px; }
}

/* Admission banner on the home page */
.home-banner { padding-top: clamp(28px, 4vw, 48px); }
.home-banner__link { display: block; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.home-banner__link:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.home-banner img { width: 100%; height: auto; }

/* Certificate preview (About page) */
.doc-preview { position: relative; display: block; max-width: 420px; margin-inline: auto; width: 100%; padding: 14px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); transform: rotate(-1.2deg); transition: transform .3s; }
.doc-preview:hover { transform: rotate(0) translateY(-4px); }
.doc-preview img { width: 100%; height: auto; border-radius: 8px; }
.doc-preview__label { position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%); white-space: nowrap; padding: 8px 16px; border-radius: 999px; background: var(--navy-900); color: #fff; font: 700 13px/1 var(--font-head); box-shadow: var(--shadow); }

/* Social media icons */
.social { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.social a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--navy-900); transition: background .2s, color .2s, transform .2s; }
.social a:hover { background: var(--red-600); color: #fff; transform: translateY(-2px); }
.social svg { width: 20px; height: 20px; }
.social--light a { background: rgba(255, 255, 255, .08); color: #fff; }

/* Our teachers (About page) */
.team { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(18px, 2.4vw, 28px); }
.team__card { width: min(100%, 280px); padding: 16px 16px 22px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); text-align: center; box-shadow: var(--shadow-sm); }
.team__photo { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--surface-3); display: grid; place-items: center; margin-bottom: 16px; }
.team__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.team__photo span { font: 800 56px/1 var(--font-head); color: var(--navy-800); }
.team__card h3 { margin-bottom: 4px; }
.team__role { margin: 0 0 6px; font: 700 13px/1.3 var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--red-600); }
.team__card p { margin: 0; font-size: 14.5px; }
.team__qual { color: var(--muted); }

/* Core values (About page) */
.values { margin-top: clamp(28px, 4vw, 44px); padding: clamp(22px, 3vw, 36px); border-radius: var(--radius-lg); background: var(--surface-2); border: 1px solid var(--line); }
.values h3 { text-align: center; margin-bottom: 20px; }
.values__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .values__list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .values__list { grid-template-columns: repeat(3, 1fr); } }
.values__list li { padding: 16px 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); font-size: 14.5px; }
.values__list b { display: block; margin-bottom: 4px; font: 700 16px/1.3 var(--font-head); color: var(--ink); }
.values__list b::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 10px; border-radius: 3px; background: var(--red-600); vertical-align: 1px; }

/* Motto band (About page) */
.tagline-band { padding-block: clamp(40px, 6vw, 64px); background: linear-gradient(120deg, var(--red-600), var(--purple-600)); text-align: center; }
.tagline-band p { margin: 0; font: 800 clamp(26px, 4vw, 46px)/1.15 var(--font-head); color: #fff; letter-spacing: -.01em; }

/* Cards that link to a course page look like cards, not links */
a.ladder__card, a.course-card, a.feature { text-decoration: none; color: inherit; }
a.ladder__card:hover h3, a.course-card:hover h3, a.feature:hover h3 { color: var(--red-600); }
a.feature { transition: border-color .2s, box-shadow .2s; }
a.feature:hover { border-color: transparent; box-shadow: var(--shadow-sm); }

/* "Admissions open" badge: pulsing live dot, light sweep, gentle lift; tapping opens the enquiry form */
/* Home: "Admissions open" card above the main heading.
   Moving colour border, ringing megaphone, live dot; tap the card for the enquiry form,
   or the round buttons to call / WhatsApp. */
@property --admit-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.admit { position: relative; display: inline-block; max-width: 100%; margin-bottom: 26px; padding: 2px; border-radius: 20px;
  background: conic-gradient(from var(--admit-angle), var(--red-600), var(--purple-600), var(--navy-700), var(--red-600));
  box-shadow: 0 14px 34px -12px rgba(226, 59, 46, .45); animation: admit-spin 5s linear infinite; transition: transform .25s ease, box-shadow .25s ease; }
.admit:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -14px rgba(226, 59, 46, .55); }
@keyframes admit-spin { to { --admit-angle: 360deg; } }
.admit__body { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 8px; border-radius: 18px; background: #fff; }
.admit__main { display: flex; align-items: center; gap: 12px; min-width: 0; color: inherit; text-decoration: none; }
.admit__icon { position: relative; flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--red-600), #ff7a45); box-shadow: 0 8px 18px -6px rgba(226, 59, 46, .6); }
.admit__icon svg { animation: admit-ring 3.5s ease-in-out infinite; transform-origin: 30% 50%; }
@keyframes admit-ring { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(-14deg); } 80% { transform: rotate(12deg); } 85% { transform: rotate(-8deg); } 90% { transform: rotate(5deg); } }
.admit__text { display: grid; gap: 2px; min-width: 0; }
.admit__text strong { display: inline-flex; align-items: center; gap: 8px; font: 800 17px/1.2 var(--font-head); color: var(--navy-900); }
.admit__text small { font: 500 13px/1.35 var(--font-body, inherit); color: var(--muted); }
.admit__go { display: inline-block; margin-left: 8px; font-weight: 700; color: var(--red-600); white-space: nowrap; }
.admit__go span { display: inline-block; transition: transform .25s ease; }
.admit__main:hover .admit__go span { transform: translateX(4px); }
.admit__main:hover strong { color: var(--red-600); }
.admit__divider { flex: none; width: 1px; align-self: stretch; margin: 4px 2px; background: var(--line); }
.admit__btn { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.admit__btn:hover { transform: scale(1.1); }
.admit__btn--call { background: var(--navy-900); box-shadow: 0 6px 14px -6px rgba(20, 33, 74, .6); }
.admit__btn--wa { background: #25d366; box-shadow: 0 6px 14px -6px rgba(37, 211, 102, .7); }
.live-dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: #22c55e; flex: none; }
.live-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #22c55e; animation: live-pulse 1.8s ease-out infinite; }
@keyframes live-pulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.8); opacity: 0; } }
@media (max-width: 520px) {
  .admit { display: block; }
  .admit__body { gap: 8px; }
  .admit__icon { width: 40px; height: 40px; border-radius: 12px; }
  .admit__text strong { font-size: 16px; }
  .admit__go { display: block; margin: 2px 0 0; }
  .admit__btn { width: 40px; height: 40px; }
  .admit__main { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .admit, .admit__icon svg, .live-dot::after { animation: none; } .live-dot::after { display: none; } }

/* Home page slideshow (top right of the home page; pictures from Admin → Gallery → "Home page slideshow") */
.slideshow { position: relative; width: 100%; max-width: 520px; margin-inline: auto; }
.slideshow__glow { position: absolute; inset: 8% -8% -6% 8%; z-index: 0; border-radius: 40px; filter: blur(26px);
  background: radial-gradient(circle at 30% 30%, rgba(226, 59, 46, .28), transparent 60%), radial-gradient(circle at 75% 75%, rgba(142, 63, 196, .30), transparent 60%);
  animation: slideshow-glow 8s ease-in-out infinite alternate; }
@keyframes slideshow-glow { to { transform: translate(-3%, 3%) scale(1.04); } }
.slideshow__frame { position: relative; z-index: 1; aspect-ratio: 1 / 1; border-radius: 26px; overflow: hidden; background: var(--navy-900);
  box-shadow: 0 30px 60px -20px rgba(20, 33, 74, .45), 0 0 0 6px #fff, 0 0 0 7px var(--line); transform: rotate(-1.2deg); transition: transform .5s ease; }
.slideshow:hover .slideshow__frame { transform: rotate(0deg) scale(1.01); }
.slideshow__slide { position: absolute; inset: 0; margin: 0; opacity: 0; transform: scale(1.06); transition: opacity .9s ease, transform 6s ease-out; }
.slideshow__slide.is-active { opacity: 1; transform: scale(1); z-index: 1; }
.slideshow__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slideshow__arrow { position: absolute; top: 50%; z-index: 3; width: 44px; height: 44px; margin-top: -22px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: var(--navy-900); font: 700 28px/1 var(--font-head); cursor: pointer; box-shadow: var(--shadow);
  opacity: 0; transition: opacity .25s ease, transform .25s ease; }
.slideshow__arrow--prev { left: 12px; } .slideshow__arrow--next { right: 12px; }
.slideshow:hover .slideshow__arrow, .slideshow__arrow:focus-visible { opacity: 1; }
.slideshow__arrow:hover { transform: scale(1.08); }
@media (hover: none) { .slideshow__arrow { opacity: .85; width: 38px; height: 38px; margin-top: -19px; font-size: 24px; } }
.slideshow__progress { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; height: 4px; background: rgba(255, 255, 255, .25); }
.slideshow__progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--red-600), var(--purple-600)); }
.slideshow__progress.is-running span { width: 100%; transition: width var(--slide-time, 5s) linear; }
.slideshow__dots { position: relative; z-index: 1; display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.slideshow__dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; background: rgba(20, 33, 74, .2); cursor: pointer; transition: width .3s ease, background .3s ease; }
.slideshow__dots button[aria-current="true"] { width: 28px; background: var(--red-600); }
@media (max-width: 1023px) { .slideshow { max-width: 440px; } .slideshow__frame { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .slideshow__glow { animation: none; }
  .slideshow__slide { transition: opacity .2s linear; transform: none; }
  .slideshow__frame { transform: none; }
}

/* YouTube videos (Admin → Videos): picture with a play button until pressed */
.videos { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .videos { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .videos { grid-template-columns: repeat(3, 1fr); } }
.videos--home { margin-top: 28px; }
.videos__heading { font-size: clamp(22px, 2.4vw, 28px); margin: 0 0 18px; }
.videos + .videos__heading { margin-top: 44px; }
.video { margin: 0; }
.video__frame, .video__player { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); overflow: hidden; background: var(--navy-900); box-shadow: var(--shadow); }
.video__frame { position: relative; padding: 0; cursor: pointer; }
.video__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, opacity .3s ease; opacity: .92; }
.video__frame:hover img { transform: scale(1.04); opacity: 1; }
.video__play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: var(--red-600); box-shadow: 0 0 0 8px rgba(226, 59, 46, .25), 0 10px 24px rgba(0, 0, 0, .35); transition: transform .25s ease; }
.video__play svg { margin-left: 4px; }
.video__frame:hover .video__play, .video__frame:focus-visible .video__play { transform: scale(1.1); }
.video__title { margin-top: 10px; font: 600 15.5px/1.4 var(--font-head); color: var(--ink); }

/* Video player window (main.js part 11): big view, minimised corner window, full screen */
.vplayer { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; }
.vplayer[hidden] { display: none; }
.vplayer__backdrop { position: absolute; inset: 0; background: rgba(8, 12, 30, .86); backdrop-filter: blur(4px); animation: vp-fade .25s ease; }
.vplayer__box { position: relative; width: min(1120px, 100%, calc((100vh - 120px) * 16 / 9)); border-radius: 16px; overflow: hidden; background: #000; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); animation: vp-pop .3s ease; }
.vplayer__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 16px; background: var(--navy-950, #0b1230); color: #fff; }
.vplayer__title { font: 600 15px/1.3 var(--font-head); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vplayer__actions { display: flex; gap: 6px; flex: none; }
.vplayer__actions button { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .1); color: #fff; font: 600 13px/1 var(--font-head); cursor: pointer; transition: background .2s ease; }
.vplayer__actions button:hover, .vplayer__actions button:focus-visible { background: rgba(255, 255, 255, .22); }
.vplayer__actions button[data-vp="close"] { width: 38px; padding: 0; justify-content: center; background: var(--red-600); }
.vplayer__actions button[data-vp="close"]:hover { background: #c42c20; }
.vplayer__actions button[data-vp="max"], .vplayer__actions button[hidden] { display: none; }
.vplayer__screen { aspect-ratio: 16 / 9; background: #000; }
.vplayer__screen iframe { display: block; width: 100%; height: 100%; border: 0; }
.vplayer__screen:fullscreen { aspect-ratio: auto; width: 100%; height: 100%; }
html.vplayer-open { overflow: hidden; }
@media (max-width: 640px) { .vplayer__actions button span { display: none; } .vplayer__actions button { width: 38px; padding: 0; justify-content: center; } }

/* Minimised: small window in the corner, the page can be used and scrolled */
.vplayer.is-mini { inset: auto auto 16px 16px; padding: 0; display: block; width: min(360px, calc(100vw - 104px)); }   /* bottom-left: the WhatsApp button is bottom-right */
.vplayer.is-mini .vplayer__backdrop { display: none; }
.vplayer.is-mini .vplayer__box { width: 100%; border-radius: 14px; animation: none; }
.vplayer.is-mini .vplayer__bar { padding: 4px 4px 4px 12px; }
.vplayer.is-mini .vplayer__title { font-size: 13px; }
.vplayer.is-mini .vplayer__actions button { height: 32px; width: 32px; padding: 0; justify-content: center; }
.vplayer.is-mini .vplayer__actions button span { display: none; }
.vplayer.is-mini [data-vp="mini"], .vplayer.is-mini [data-vp="full"] { display: none; }
.vplayer.is-mini .vplayer__actions button[data-vp="max"] { display: inline-flex; }
@keyframes vp-fade { from { opacity: 0; } }
@keyframes vp-pop { from { opacity: 0; transform: scale(.96); } }
@media (prefers-reduced-motion: reduce) { .vplayer__backdrop, .vplayer__box { animation: none; } }

/* Government courses: document pictures beside the heading (Odisha Gazette etc.) */
.gov-head { max-width: 1320px; display: flex; flex-wrap: wrap; justify-content: center; gap: 20px 24px; }
.gov-head__text { flex: 1 1 100%; order: -1; }
.gov-doc { margin: 0; width: min(44%, 210px); text-align: center; }
.gov-doc a { display: block; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: var(--shadow); border: 1px solid rgba(16, 24, 40, .08); transition: transform .3s, box-shadow .3s; }
.gov-doc img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; }
.gov-doc a:hover, .gov-doc a:focus-visible { transform: translateY(-4px) rotate(0deg); }
.gov-doc figcaption { margin-top: 10px; font-size: 13px; line-height: 1.35; color: var(--muted); }
@media (min-width: 1100px) {
  .gov-head { display: grid; grid-template-columns: 220px minmax(0, 760px) 220px; align-items: center; gap: 48px; }
  .gov-head__text { order: 0; }
  .gov-doc { width: auto; }
  .gov-doc--left a { transform: rotate(-3deg); }
  .gov-doc--right a { transform: rotate(3deg); }
  .gov-doc--right { grid-column: 3; }
  .gov-head__text:first-child { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) { .gov-doc a { transition: none; } }

/* Result boxes (verify page, admission form) – were only in app.css, which public pages do not load */
.verify-result { margin-top: 20px; padding: 18px; border-radius: 12px; border: 1px solid; }
.verify-result strong { display: block; margin-bottom: 8px; font-family: var(--font-head); }
.verify-result p { margin: 0 0 12px; }
.verify-result--ok { background: #e9f8ef; border-color: #bfe8cf; color: #135e33; }
.verify-result--bad { background: #fdecea; border-color: #f3c9c5; color: #9b2c22; }
.verify-result--info { background: #eef2fa; border-color: #cdd7ee; color: #14214a; }
.verify-steps { display: grid; gap: 14px; margin-top: 18px; }
.verify-steps .form__row { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .verify-steps .form__row { grid-template-columns: 1fr 1fr; } }
.verify-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.verify-consent input { margin-top: 4px; width: auto; }

/* Current affairs: calendar badge, list cards, digest page (Odia text uses Noto Sans Oriya when the device has no Odia font) */
.date-badge { flex: none; display: inline-flex; flex-direction: column; width: 62px; border-radius: 10px; overflow: hidden; text-align: center; background: #fff; border: 1px solid var(--line); box-shadow: 0 2px 6px rgba(20, 33, 74, .08); }
.date-badge__month { background: var(--red-600, #e23b2e); color: #fff; font: 700 11px/1 var(--font-head); letter-spacing: .08em; padding: 5px 0; }
.date-badge__day { color: var(--navy-900, #14214a); font: 800 26px/1.15 var(--font-head); padding: 4px 0 6px; }
.ca-filter { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.ca-filter .field { flex: 1 1 220px; margin: 0; }
.ca-list { display: grid; gap: 14px; margin-top: 24px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .ca-list { grid-template-columns: 1fr 1fr; } }
.ca-card { display: flex; gap: 16px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: inherit; text-decoration: none; transition: border-color .2s, box-shadow .2s; min-width: 0; }
.ca-card:hover, .ca-card:focus-visible { border-color: var(--navy-900, #14214a); box-shadow: 0 6px 18px rgba(20, 33, 74, .10); }
.ca-card__body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ca-card__title { font: 600 16.5px/1.35 var(--font-head); color: var(--navy-900, #14214a); }
.ca-card__meta { font-size: 13.5px; color: var(--muted); }
.ca-head { display: flex; gap: 18px; align-items: center; }
.ca-head h1 { margin: 0; }
.ca-layout { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 960px) { .ca-layout { grid-template-columns: minmax(0, 1fr) 320px; } .ca-side { position: sticky; top: 100px; } }
.ca-side { display: grid; gap: 16px; }
.ca-topic { font-size: clamp(19px, 2.2vw, 23px); margin: 28px 0 10px; padding-bottom: 6px; border-bottom: 2px solid var(--line); }
.ca-points { padding-left: 22px; } .ca-points li { margin-bottom: 12px; }
.ca-prevnext { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; font-size: 14.5px; }
.ca-home { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; justify-content: space-between; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.ca-home ul { margin: 6px 0 0; padding-left: 18px; }

/* Header on laptop screens (1180–1439 px): the full menu plus the logo text on one line */
.brand { flex: none; }
.brand__name, .brand__sub { white-space: nowrap; }
@media (min-width: 1180px) and (max-width: 1439px) {
  .nav { gap: 8px; }
  .nav__list a { padding: 10px 8px; font-size: 14px; }
  .nav__cta { padding-inline: 14px; }
}

.page-hero a.link-light { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* Automatic current affairs: source line + report link under each point, revision label on cards */
.ca-source { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; font-size: .82rem; color: var(--muted); }
.ca-source a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.ca-report { margin-left: auto; }
.ca-kind { font-weight: 600; color: var(--red-700); }
