/* Parmarth Institute of Teacher's Education — site styles
   Palette taken from the institute logo (slate + leaf) and the building signboard (sky blue). */
:root {
  --ink: #1f2d3a;
  --slate: #2d3e50;
  --slate-soft: #c9d3dc;
  --leaf: #86bc42;
  --leaf-ink: #446c17;
  --paper: #f7f9f4;
  --white: #ffffff;
  --sign: #569ec3;
  --sign-ink: #245f7e;
  --sign-tint: #e6f2f8;
  --rule: #dbe2d3;
  --muted: #56636e;

  --font-head: "Martel", "Noto Serif Devanagari", Georgia, serif;
  --font-body: "Mukta", "Noto Sans Devanagari", "Segoe UI", Arial, sans-serif;

  --step-0: 1.0625rem;  /* 17px body */
  --step-1: 1.25rem;
  --step-2: 1.5625rem;
  --step-3: clamp(1.7rem, 1.3rem + 1.4vw, 2.1rem);
  --step-4: clamp(2rem, 1.4rem + 2.4vw, 2.9rem);

  --wrap: 1160px;
  --gap: clamp(1.25rem, 3vw, 2.5rem);
  --section: clamp(3rem, 7vw, 5.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}
img, picture { max-width: 100%; height: auto; display: block; }
a { color: var(--leaf-ink); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--sign); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.25; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
.wrap { width: min(var(--wrap), calc(100% - 2.5rem)); margin-inline: auto; }
.measure { max-width: 68ch; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }
[lang="hi"] { font-family: var(--font-body); line-height: 1.8; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.25rem; border-radius: 6px;
  font-weight: 600; font-size: 1rem; text-decoration: none; line-height: 1.2;
  border: 2px solid transparent; cursor: pointer; font-family: inherit;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--leaf); color: var(--ink); }
.btn-primary:hover { background: #95c955; color: var(--ink); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-light:hover { background: #fff; color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* Top bar */
.topbar { background: var(--slate); color: var(--slate-soft); font-size: .9rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1.5rem; padding: .45rem 0; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: var(--leaf); }
.topbar strong { color: var(--leaf); font-weight: 600; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.brand { display: block; flex: 0 1 400px; }
.brand img { width: 100%; max-width: 400px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .15rem; }
.nav a { display: block; padding: .5rem .7rem; color: var(--ink); text-decoration: none; font-weight: 500; border-radius: 4px; }
.nav a:hover { background: var(--paper); }
.nav a[aria-current="page"] { color: var(--leaf-ink); box-shadow: inset 0 -3px 0 var(--leaf); border-radius: 0; }
.nav .nav-call { margin-left: .5rem; }
.nav .nav-call a { background: var(--leaf); font-weight: 600; border-radius: 6px; }
.nav .nav-call a:hover { background: #95c955; }
.nav-toggle { display: none; background: none; border: 2px solid var(--ink); border-radius: 6px; padding: .45rem .7rem; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; }

@media (max-width: 1100px) {
  .nav-toggle { display: inline-block; }
  .nav { position: fixed; inset: 0 0 0 auto; width: min(320px, 86vw); background: var(--white); padding: 5rem 1.25rem 2rem; box-shadow: -8px 0 30px rgba(31,45,58,.18); transform: translateX(105%); transition: transform .25s ease; z-index: 60; overflow-y: auto; }
  .nav.open { transform: none; }
  .nav ul { flex-direction: column; align-items: stretch; gap: .25rem; }
  .nav a { padding: .8rem .75rem; font-size: 1.05rem; }
  .nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--leaf); }
  .nav .nav-call { margin: 1rem 0 0; }
  .nav-close { position: absolute; top: 1rem; right: 1rem; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(31,45,58,.45); z-index: 55; }
}
@media (min-width: 1101px) { .nav-close, .nav-backdrop { display: none !important; } }

/* Home hero */
.hero { padding: clamp(2rem, 5vw, 4rem) 0 var(--section); background: var(--white); border-bottom: 1px solid var(--rule); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--gap); align-items: center; }
.hero .place { font-weight: 600; color: var(--leaf-ink); margin-bottom: .75rem; }
.hero .intro { font-size: 1.15rem; color: var(--muted); max-width: 54ch; }
.hero-media { position: relative; }
.hero-media img { border-radius: 6px; width: 100%; aspect-ratio: 9 / 5; object-fit: cover; }

/* Signboard — the one bold element: mirrors the real sign on the campus building */
.signboard {
  background: var(--sign-tint);
  border: 3px solid var(--sign);
  outline: 1px solid var(--sign);
  outline-offset: 4px;
  border-radius: 4px;
  padding: 1rem 1.25rem;
  color: var(--ink);
}
.hero-media .signboard { position: relative; margin: -2.25rem 1.25rem 0; box-shadow: 0 10px 30px rgba(31,45,58,.15); }
.signboard .sign-hi { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.15rem, 1rem + .9vw, 1.55rem); color: var(--sign-ink); margin: 0; line-height: 1.5; }
.signboard .sign-sub { margin: .15rem 0 0; font-size: .98rem; line-height: 1.55; }
.signboard .sign-en { margin: .5rem 0 0; padding-top: .5rem; border-top: 1px solid rgba(86,158,195,.45); font-size: .95rem; color: var(--sign-ink); font-weight: 500; }

/* Page hero (inner pages) */
.page-hero { background: var(--slate); color: #fff; padding: clamp(2rem, 5vw, 3.5rem) 0; }
.page-hero .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--gap); align-items: center; }
.page-hero h1 { color: #fff; margin-bottom: .4em; }
.page-hero p { color: var(--slate-soft); font-size: 1.12rem; max-width: 56ch; margin: 0; }
.page-hero img { border-radius: 6px; border: 4px solid rgba(255,255,255,.12); aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.crumbs { font-size: .92rem; margin-bottom: 1rem; color: var(--slate-soft); }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .25rem; }
.crumbs li + li::before { content: "/"; margin-right: .3rem; color: var(--leaf); }
.crumbs a { color: #fff; }

/* Sections */
.section { padding: var(--section) 0; }
.section.alt { background: var(--white); border-block: 1px solid var(--rule); }
.section.dark { background: var(--slate); color: var(--slate-soft); }
.section.dark h2, .section.dark h3 { color: #fff; }
.section.dark a { color: var(--leaf); }
.head { max-width: 62ch; margin-bottom: 2rem; }
.head p { color: var(--muted); font-size: 1.08rem; }
.section.dark .head p { color: var(--slate-soft); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: start; }
.split.wide-left { grid-template-columns: 1.4fr 1fr; }

/* Programme rows */
.programmes { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--ink); }
.programme { display: grid; grid-template-columns: 220px 1fr auto; gap: 1.5rem 2rem; align-items: center; padding: 1.75rem 0; border-bottom: 1px solid var(--rule); }
.programme img { border-radius: 4px; aspect-ratio: 300 / 211; object-fit: cover; width: 100%; }
.programme h3 { font-size: var(--step-2); margin-bottom: .25rem; }
.programme h3 a { color: var(--ink); text-decoration: none; }
.programme h3 a:hover { color: var(--leaf-ink); text-decoration: underline; }
.programme .kind { color: var(--leaf-ink); font-weight: 600; margin: 0 0 .35rem; }
.programme p { margin: 0 0 .5rem; max-width: 60ch; }
.programme .facts { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: .5rem 0 0; }
.programme .facts li { font-size: .9rem; background: var(--paper); border: 1px solid var(--rule); padding: .1rem .6rem; border-radius: 3px; }

/* Facts table */
.facts-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--rule); }
.facts-table th, .facts-table td { text-align: left; padding: .7rem 1rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.facts-table th { width: 42%; font-weight: 600; color: var(--muted); }
.facts-table td { font-weight: 600; }
.facts-table caption { text-align: left; font-family: var(--font-head); font-weight: 700; font-size: var(--step-1); padding-bottom: .6rem; }
.section.dark .facts-table { background: transparent; border-color: rgba(255,255,255,.15); }
.section.dark .facts-table th, .section.dark .facts-table td { border-color: rgba(255,255,255,.15); }
.section.dark .facts-table td { color: #fff; }
.section.dark .facts-table th { color: var(--slate-soft); }

/* Answer box (for AI overviews / quick answers) */
.answer { border-left: 4px solid var(--leaf); background: var(--white); padding: 1rem 1.25rem; margin: 0 0 1.5rem; }
.answer p:last-child { margin: 0; }

/* Facility list */
.facility-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem var(--gap); list-style: none; padding: 0; margin: 0; }
.facility-list li { border-top: 2px solid var(--ink); padding-top: 1rem; }
.facility-list img { border-radius: 4px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; margin-bottom: 1rem; }
.facility-list h3 { margin-bottom: .3rem; }
.facility-list p { margin: 0; color: var(--muted); }
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.photo-pair figure { margin: 0; }
.photo-pair img { border-radius: 4px; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
figcaption { font-size: .9rem; color: var(--muted); margin-top: .4rem; }

/* Leaders */
.leaders { display: grid; gap: 2.5rem; }
.leader { display: grid; grid-template-columns: 200px 1fr; gap: 1.5rem; align-items: start; }
.leader img { border-radius: 4px; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 30%; }
.leader blockquote { margin: 0; font-size: 1.12rem; }
.leader blockquote p::before { content: "\201C"; }
.leader blockquote p::after { content: "\201D"; }
.leader .who { margin-top: .5rem; font-weight: 600; }
.leader .who span { display: block; font-weight: 400; color: var(--muted); }

/* Prose */
.prose h2 { margin-top: 2rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.5rem; }
.prose ul li, .prose ol li { margin-bottom: .35rem; }
.side { position: sticky; top: 100px; background: var(--white); border: 1px solid var(--rule); border-top: 4px solid var(--leaf); padding: 1.5rem; }
.side h2 { font-size: var(--step-1); }
.side .facts-table { border: 0; margin-bottom: 1.25rem; }
.side .facts-table th, .side .facts-table td { padding: .5rem 0; }
.side .btn { width: 100%; justify-content: center; margin-top: .6rem; }

/* Steps (real sequence, so numbered) */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 1.75rem 3.5rem; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 2.3rem; height: 2.3rem; border-radius: 50%; background: var(--slate); color: #fff; font-family: var(--font-head); font-weight: 700; display: grid; place-items: center; line-height: 1; padding-top: .2rem; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 1.1rem; top: 2.6rem; bottom: .3rem; width: 2px; background: var(--rule); }
.steps h3 { margin-bottom: .2rem; }
.steps p { margin: 0; color: var(--muted); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-of-type { border-top: 2px solid var(--ink); }
.faq summary { cursor: pointer; list-style: none; padding: 1rem 2.5rem 1rem 0; position: relative; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: .75rem; font-size: 1.6rem; line-height: 1; color: var(--leaf-ink); font-family: var(--font-body); }
.faq details[open] summary::after { content: "\2212"; }
.faq .ans { padding: 0 0 1.1rem; max-width: 70ch; }
.faq .ans p:last-child { margin: 0; }
.faq-group + .faq-group { margin-top: 3rem; }

/* Hindi summary */
.hindi { background: var(--sign-tint); border-block: 1px solid #c9e1ec; }
.hindi h2 { color: var(--sign-ink); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; list-style: none; padding: 0; margin: 0; }
.gallery figure { margin: 0; }
.gallery button { padding: 0; border: 0; background: none; cursor: zoom-in; display: block; width: 100%; }
.gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 4px; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1000px, 94vw); }
.lightbox::backdrop { background: rgba(20,28,36,.88); }
.lightbox img { max-height: 82vh; width: auto; margin: 0 auto; border-radius: 4px; }
.lightbox p { color: #fff; text-align: center; margin: .6rem 0 0; }
.lightbox .close { position: fixed; top: 1rem; right: 1rem; background: #fff; color: var(--ink); border: 0; border-radius: 6px; padding: .5rem .9rem; font: inherit; font-weight: 600; cursor: pointer; }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.contact-list li { padding: .9rem 0; border-bottom: 1px solid var(--rule); }
.contact-list strong { display: block; font-size: .92rem; color: var(--muted); font-weight: 600; }
.form { background: var(--white); border: 1px solid var(--rule); border-top: 4px solid var(--leaf); padding: clamp(1.25rem, 3vw, 2rem); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-weight: 600; margin-bottom: .3rem; }
label .opt { font-weight: 400; color: var(--muted); }
input, select, textarea { width: 100%; font: inherit; color: var(--ink); background: var(--paper); border: 1px solid #b9c4b0; border-radius: 4px; padding: .65rem .75rem; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--sign); outline-offset: 0; border-color: var(--sign); }
textarea { min-height: 120px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin: 1rem 0 0; font-weight: 600; }
.form-note.ok { color: var(--leaf-ink); }
.form-note.err { color: #b42318; }
.map { border: 0; width: 100%; height: 380px; border-radius: 4px; background: var(--rule); }
.links-inline { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }

/* CTA band */
.cta { background: var(--slate); color: var(--slate-soft); padding: clamp(2rem, 5vw, 3rem) 0; border-top: 6px solid var(--leaf); }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta h2 { color: #fff; margin-bottom: .25rem; }
.cta p { margin: 0; }
.cta .actions { margin: 0; }

/* Footer */
.site-footer { background: var(--ink); color: var(--slate-soft); padding: 3.5rem 0 5.5rem; font-size: .96rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2rem; }
.site-footer h2 { color: #fff; font-size: 1.05rem; margin-bottom: .75rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .4rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--leaf); text-decoration: underline; }
.site-footer address { font-style: normal; }
.footer-logo { width: 200px; margin-bottom: 1rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.25rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; font-size: .88rem; }

/* Sticky mobile call bar */
.callbar { display: none; }
@media (max-width: 760px) {
  .callbar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; box-shadow: 0 -4px 16px rgba(31,45,58,.18); }
  .callbar a { padding: .85rem; text-align: center; font-weight: 700; text-decoration: none; }
  .callbar a:first-child { background: var(--leaf); color: var(--ink); }
  .callbar a:last-child { background: var(--slate); color: #fff; }
}

/* Responsive */
@media (max-width: 960px) {
  .hero .wrap, .page-hero .wrap, .split, .split.wide-left { grid-template-columns: 1fr; }
  .page-hero img { display: none; }
  .facility-list { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .side { position: static; }
  .programme { grid-template-columns: 160px 1fr; }
  .programme .go { grid-column: 2; }
}
@media (max-width: 600px) {
  .topbar .mail { display: none; }
  .brand img { max-width: 250px; }
  .hero-media .signboard { margin: -1.5rem .75rem 0; padding: .85rem 1rem; }
  .programme { grid-template-columns: 1fr; padding: 1.5rem 0; }
  .programme img { max-width: 220px; }
  .programme .go { grid-column: auto; }
  .facility-list { grid-template-columns: 1fr; }
  .leader { grid-template-columns: 110px 1fr; gap: 1rem; }
  .leader blockquote { font-size: 1rem; }
  .form-grid { grid-template-columns: 1fr; }
  .photo-pair { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta .actions { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .topbar, .site-header nav, .callbar, .cta, .map, .form { display: none !important; }
  body { background: #fff; }
}

/* Three-column text group (vision, mission, values) */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.trio > div { border-top: 3px solid var(--leaf); padding-top: 1rem; }
.trio p { margin: 0; }
@media (max-width: 960px) { .trio { grid-template-columns: 1fr; } }
.compare { width: 100%; border-collapse: collapse; background: var(--white); min-width: 640px; }
.compare th, .compare td { text-align: left; padding: .75rem 1rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.compare thead th { background: var(--slate); color: #fff; font-weight: 600; }
.compare tbody th { font-family: var(--font-head); }
.scroll-x { overflow-x: auto; border: 1px solid var(--rule); }
.check { list-style: none; padding: 0; }
.check li { position: relative; padding-left: 1.6rem; margin-bottom: .5rem; }
.check li::before { content: ""; position: absolute; left: 0; top: .55em; width: .8rem; height: .45rem; border-left: 3px solid var(--leaf-ink); border-bottom: 3px solid var(--leaf-ink); transform: rotate(-45deg); }
.center-note { margin-top: 1.5rem; }
.wrap.measure { max-width: none; }
.wrap.measure > * { max-width: 72ch; }
.leader blockquote, .leader .who { max-width: 64ch; }
