/* =====================================================================
   ambala-campus.css — Ambala Campus
   Asymmetric hero, Why This Campus, principal spotlight, Visit Us — same
   structure as noida-campus.css (.nc1). Older full-bleed hero / facts /
   legacy timeline / K-12 Journey / senior streams / facilities / dark
   principal band / gallery rules stay below (unused by the current
   template) in case those sections are wanted back later. Scoped under .amb1
   ===================================================================== */

/* sticky hero photo needs a non-scrolling body — base.css sets overflow-x:hidden */
html, body { overflow-x: clip; }

.amb1 {
  --a-maroon: var(--maroon, #8D2130);
  --a-maroon-deep: var(--maroon-900, #5F141C);
  --a-green: var(--green, #085B4A);
  --a-paper: #FBF7EF; --a-sand: #F1E7D0; --a-card: #fff;
  --a-ink: #201A18; --a-muted: #675F59; --a-line: #E8E0D2;
  --a-pad: clamp(54px, 6.5vw, 86px);
  background: var(--a-paper); color: var(--a-ink); font-family: var(--font-sans);
}
.amb1 :where(h1, h2, h3, h4) { color: inherit; font-family: var(--font-display); }
.amb1 .wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.amb1 .eyebrow { display: inline-flex; align-items: center; gap: .7em; font-size: 11.5px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--a-maroon); }
.amb1 .eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--a-maroon); }
.amb1 .sec { padding-block: var(--a-pad); }
.amb1 .sec--tint { background: var(--a-sand); }

.amb1 .btn { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; font-size: 14.5px; padding: 14px 30px; border-radius: 999px; border: 1.5px solid transparent; transition: background .25s, color .25s, transform .25s; }
.amb1 .btn svg { width: 17px; height: 17px; }
.amb1 .btn--solid { background: var(--a-maroon); color: #fff; }
.amb1 .btn--solid:hover { background: var(--a-maroon-deep); transform: translateY(-2px); }
.amb1 .btn--line { border-color: var(--a-maroon); color: var(--a-maroon); }
.amb1 .btn--line:hover { background: var(--a-maroon); color: #fff; }
.amb1 .btn--ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.amb1 .btn--ghost:hover { background: #fff; color: var(--a-maroon-deep); }
.amb1 .gcta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

/* section heading */
.amb1 .shead { text-align: center; max-width: 640px; margin: 0 auto clamp(36px, 4.2vw, 54px); }
.amb1 .shead .eyebrow { justify-content: center; }
.amb1 .shead h2 { font-weight: 600; font-size: clamp(27px, 3.6vw, 40px); line-height: 1.1; margin: 12px 0 0; }
.amb1 .shead h2 em { font-style: italic; color: var(--a-maroon); }
.amb1 .shead p { font-size: 15.5px; line-height: 1.7; color: var(--a-muted); margin-top: 12px; }

/* asymmetric hero — same shape as .nc1 .hero (noida-campus.css) */
/* +48px accounts for the .nc-subnav bar fixed just below the header */
.amb1 .hero { padding-top: calc(var(--topbar-h, 38px) + var(--nav-h, 74px) + 48px + clamp(44px, 6vw, 72px)); padding-bottom: clamp(40px, 5vw, 60px); }
.amb1 .hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.amb1 .badge { display: inline-block; font-size: 12px; font-weight: 600; color: var(--a-maroon); background: rgba(141,33,48,.08); border: 1px solid rgba(141,33,48,.18); border-radius: 999px; padding: 6px 16px; margin-bottom: 14px; }
.amb1 .hero h1 { font-weight: 600; font-size: clamp(40px, 5.4vw, 60px); line-height: 1.03; letter-spacing: -.015em; color: var(--a-maroon-deep); margin: 16px 0 18px; max-width: 14ch; }
.amb1 .hero p { font-size: 15.5px; line-height: 1.7; color: var(--a-muted); max-width: 52ch; margin: 0 0 14px; }
.amb1 .hero p:last-of-type { margin-bottom: 0; }
.amb1 .hero__media { position: sticky; top: calc(var(--topbar-h, 38px) + var(--nav-h, 74px) + 48px + 30px); }
.amb1 .hero__media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: 25% 50%; border-radius: 22px; box-shadow: 0 40px 70px -34px rgba(32,26,24,.42); }

/* full-bleed hero (unused — see note at top of file) */
.amb1 .hero--full { position: relative; min-height: 640px; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.amb1 .hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.amb1 .hero__scrim { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(15,8,7,.9) 0%, rgba(15,8,7,.35) 55%, rgba(15,8,7,.15) 100%); }
.amb1 .hero__in { position: relative; z-index: 2; padding: calc(var(--topbar-h, 38px) + var(--nav-h, 74px) + 48px + 30px) 24px 70px; }

/* floating facts bar */
.amb1 .facts { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--a-card); border-radius: 20px; box-shadow: 0 30px 60px -30px rgba(32,26,24,.35); margin-top: -46px; position: relative; z-index: 3; padding: clamp(24px, 3vw, 34px) 10px; }
.amb1 .fact { text-align: center; border-left: 1px solid var(--a-line); }
.amb1 .fact:first-child { border-left: none; }
.amb1 .fact b { display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 2.6vw, 32px); color: var(--a-maroon); line-height: 1; }
.amb1 .fact b.is-small { font-size: clamp(16px, 1.8vw, 20px); }
.amb1 .fact span { display: block; margin-top: 8px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--a-muted); font-weight: 600; }

/* legacy timeline */
.amb1 .tl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.amb1 .tl::before { content: ""; position: absolute; top: 10px; left: 0; right: 0; height: 2px; background: repeating-linear-gradient(90deg, var(--a-line) 0 8px, transparent 8px 16px); }
.amb1 .tl__item { position: relative; padding-top: 34px; }
.amb1 .tl__item::before { content: ""; position: absolute; top: 0; left: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--a-maroon); box-shadow: 0 0 0 5px var(--a-paper); }
.amb1 .tl__yr { display: block; font-family: var(--font-display); font-weight: 600; font-size: 19px; color: var(--a-maroon); margin-bottom: 8px; }
.amb1 .tl__item p { font-size: 13px; line-height: 1.6; color: var(--a-muted); margin: 0; }

/* why this campus */
.amb1 .points { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.amb1 .point { text-align: center; background: var(--a-card); border: 1px solid var(--a-line); border-radius: 18px; padding: 28px 22px; }
.amb1 .point__ic { width: 44px; height: 44px; border-radius: 13px; background: rgba(141,33,48,.08); color: var(--a-maroon); display: grid; place-items: center; margin: 0 auto 16px; }
.amb1 .point__ic svg { width: 21px; height: 21px; }
.amb1 .point h3 { font-weight: 600; font-size: 16px; margin: 0 0 6px; }
.amb1 .point p { font-size: 13px; line-height: 1.55; color: var(--a-muted); margin: 0;  }

/* K-12 journey */
.amb1 .stages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.amb1 .stage { background: var(--a-card); border: 1px solid var(--a-line); border-radius: 18px; padding: 26px 22px; }
.amb1 .stage__ic { width: 42px; height: 42px; border-radius: 12px; background: var(--a-maroon); color: #fff; display: grid; place-items: center; margin-bottom: 16px; }
.amb1 .stage__ic svg { width: 20px; height: 20px; }
.amb1 .stage__tag { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--a-green); margin-bottom: 6px; }
.amb1 .stage h3 { font-weight: 600; font-size: 18px; margin: 0 0 6px; }
.amb1 .stage p { font-size: 13px; line-height: 1.55; color: var(--a-muted); margin: 0; }

/* senior streams */
.amb1 .streams { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.amb1 .stream { text-align: center; background: var(--a-card); border: 1px solid var(--a-line); border-radius: 20px; padding: 34px 26px; transition: transform .35s cubic-bezier(.22,1,.36,1); }
.amb1 .stream:hover { transform: translateY(-6px); }
.amb1 .stream__ic { width: 52px; height: 52px; border-radius: 15px; background: var(--a-maroon); color: #fff; display: grid; place-items: center; margin: 0 auto 18px; }
.amb1 .stream__ic svg { width: 24px; height: 24px; }
.amb1 .stream h3 { font-weight: 600; font-size: 21px; margin: 0 0 8px; }
.amb1 .stream__subjects { display: block; font-size: 12px; font-weight: 600; color: var(--a-green); margin-bottom: 12px; }
.amb1 .stream p { font-size: 13.5px; line-height: 1.6; color: var(--a-muted); margin: 0; }

/* facilities — icon list, 2-col */
.amb1 .facilities { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.amb1 .fitem { display: flex; gap: 16px; background: var(--a-card); border: 1px solid var(--a-line); border-radius: 16px; padding: 22px; }
.amb1 .fitem__ic { flex: none; width: 44px; height: 44px; border-radius: 13px; background: rgba(141,33,48,.08); color: var(--a-maroon); display: grid; place-items: center; }
.amb1 .fitem__ic svg { width: 21px; height: 21px; }
.amb1 .fitem h3 { font-weight: 600; font-size: 16px; margin: 0 0 6px; }
.amb1 .fitem p { font-size: 13px; line-height: 1.55; color: var(--a-muted); margin: 0; }

/* principal spotlight — same shape as .nc1 .principal (noida-campus.css) */
.amb1 .principal { display: grid; grid-template-columns: 340px 1fr; gap: clamp(30px, 5vw, 60px); align-items: center; }
.amb1 .principal__media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 20px; box-shadow: 0 30px 56px -30px rgba(32,26,24,.4); }
.amb1 .principal__body blockquote { font-family: var(--font-display); font-weight: 500; font-style: italic; font-size: clamp(19px, 2.2vw, 24px); line-height: 1.4; color: var(--a-ink); margin: 16px 0 18px; }
.amb1 .principal__body p { font-size: 14.5px; line-height: 1.7; color: var(--a-muted); margin: 0 0 20px; }
.amb1 .principal__by b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.amb1 .principal__by span { font-size: 12.5px; color: var(--a-maroon); font-weight: 600; }

/* principal — dark band (unused — see note at top of file) */
.amb1 .pband { background: var(--a-maroon-deep); color: #fff; }
.amb1 .pband__in { text-align: center; padding-block: clamp(54px, 6.5vw, 86px); display: flex; flex-direction: column; align-items: center; }
.amb1 .pband__photo { width: 108px; height: 108px; border-radius: 50%; object-fit: cover; border: 4px solid rgba(255,255,255,.2); margin-bottom: 22px; }
.amb1 .pband .eyebrow { color: #F0C9CE; justify-content: center; }
.amb1 .pband .eyebrow::before { background: #F0C9CE; }
.amb1 .pband blockquote { font-family: var(--font-display); font-weight: 500; font-style: italic; font-size: clamp(19px, 2.4vw, 25px); line-height: 1.45; max-width: 46ch; margin: 20px 0 16px; }
.amb1 .pband p { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,.78); max-width: 52ch; margin: 0 0 20px; }
.amb1 .pband b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.amb1 .pband__role { font-size: 12.5px; color: #F0C9CE; font-weight: 600; }

/* gallery */
.amb1 .gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.amb1 .gitem { position: relative; overflow: hidden; border-radius: 18px; aspect-ratio: 4/3; }
.amb1 .gitem img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s cubic-bezier(.22,1,.36,1); }
.amb1 .gitem:hover img { transform: scale(1.06); }
.amb1 .gitem figcaption { position: absolute; inset: auto 0 0 0; padding: 18px; background: linear-gradient(0deg, rgba(15,8,7,.82), transparent); color: #fff; display: flex; flex-direction: column; gap: 2px; }
.amb1 .gitem .cat { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #F0C9CE; }
.amb1 .gitem .t { font-family: var(--font-display); font-weight: 600; font-size: 15px; }

/* visit us */
.amb1 .visit__in { background: var(--a-maroon-deep); color: #fff; border-radius: 24px; padding: clamp(40px, 5.5vw, 66px); }
.amb1 .visit__info { text-align: center; }
.amb1 .visit .eyebrow { color: #EEBEC4; justify-content: center; }
.amb1 .visit .eyebrow::before { background: #EEBEC4; }
.amb1 .visit__info h2 { font-weight: 600; font-size: clamp(26px, 3.4vw, 38px); margin: 14px auto 12px; max-width: 20ch; }
.amb1 .visit__info p { font-size: 15.5px; line-height: 1.7; color: rgba(255,255,255,.82); max-width: 56ch; margin: 0 auto; }
.amb1 .visit__rows { display: flex; justify-content: center; gap: 26px; flex-wrap: wrap; margin-top: 26px; }
/* align-items:flex-start (not center) — with center, once the address text
   wraps to 2 lines the pin icon centers against the whole 2-line block and
   visually overlaps the 2nd line instead of sitting next to the 1st. */
.amb1 .visit__rows div { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; color: rgba(255,255,255,.88); text-align: left; max-width: 300px; }
.amb1 .visit__rows svg { width: 16px; height: 16px; color: #F0C9CE; flex: none; margin-top: 2px; }
.amb1 .visit__rows a { color: inherit; }
.amb1 .visit .gcta { justify-content: center; }
.amb1 .visit .btn--solid { background: #fff; color: var(--a-maroon-deep); }
.amb1 .visit .btn--solid:hover { background: var(--a-sand); }
.amb1 .visit .btn--line { border-color: rgba(255,255,255,.55); color: #fff; }
.amb1 .visit .btn--line:hover { background: #fff; color: var(--a-maroon-deep); }

@media (max-width: 900px) {
  .amb1 .hero__grid { grid-template-columns: 1fr; }
  .amb1 .hero__media { position: static; order: -1; max-width: 420px; margin: 0 auto; }
  .amb1 .facts { grid-template-columns: repeat(2, 1fr); row-gap: 22px; }
  .amb1 .fact:nth-child(2n+1) { border-left: none; }
  .amb1 .tl { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
  .amb1 .tl::before { display: none; }
  .amb1 .points { grid-template-columns: repeat(2, 1fr); }
  .amb1 .stages { grid-template-columns: repeat(2, 1fr); }
  .amb1 .streams { grid-template-columns: 1fr; }
  .amb1 .facilities { grid-template-columns: 1fr; }
  .amb1 .principal { grid-template-columns: 1fr; text-align: center; }
  .amb1 .principal__media { max-width: 300px; margin: 0 auto; }
  .amb1 .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .amb1 .facts { grid-template-columns: 1fr 1fr; }
  .amb1 .tl { grid-template-columns: 1fr; }
  .amb1 .points, .amb1 .stages, .amb1 .gallery { grid-template-columns: 1fr; }
  .amb1 .visit__rows { flex-direction: column; gap: 12px; }
}
