:root {
  --ink: #241810;
  --muted: #5c4a3d;
  --paper: #f3e6d0;
  --card: #fffaf3;
  --saffron: #c45c1c;
  --saffron-deep: #9a3d10;
  --maroon: #5c1f24;
  --maroon-deep: #3d1418;
  --forest: #2a4a38;
  --gold: #b8892a;
  --line: rgba(36, 24, 16, 0.12);
  --shadow: 0 18px 40px rgba(61, 20, 24, 0.12);
  --radius: 22px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, #fff6e8 0%, transparent 42%),
    radial-gradient(circle at 90% 10%, rgba(196, 92, 28, 0.12), transparent 30%),
    var(--paper);
  font-family: "Noto Sans Devanagari", "Source Sans 3", sans-serif;
  line-height: 1.65;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  padding-bottom: env(safe-area-inset-bottom);
  overflow-wrap: break-word;
}

html[data-script="beng"] body {
  font-family: "Noto Sans Bengali", "Noto Sans Devanagari", "Source Sans 3", sans-serif;
}

html[data-script="gujr"] body {
  font-family: "Noto Sans Gujarati", "Noto Sans Devanagari", sans-serif;
}

html[data-script="guru"] body {
  font-family: "Noto Sans Gurmukhi", "Noto Sans Devanagari", sans-serif;
}

html[data-script="knda"] body {
  font-family: "Noto Sans Kannada", "Noto Sans Devanagari", sans-serif;
}

html[data-script="mlym"] body {
  font-family: "Noto Sans Malayalam", "Noto Sans Devanagari", sans-serif;
}

html[data-script="taml"] body {
  font-family: "Noto Sans Tamil", "Noto Sans Devanagari", sans-serif;
}

html[data-script="telu"] body {
  font-family: "Noto Sans Telugu", "Noto Sans Devanagari", sans-serif;
}

html[data-script="orya"] body {
  font-family: "Noto Sans Oriya", "Noto Sans Devanagari", sans-serif;
}

html[data-script="arab"] body {
  font-family: "Noto Nastaliq Urdu", "Noto Sans Arabic", "Noto Sans Devanagari", sans-serif;
  line-height: 1.85;
}

html[data-script="olck"] body {
  font-family: "Noto Sans Ol Chiki", "Noto Sans Devanagari", sans-serif;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--maroon);
}

a:hover {
  color: var(--maroon-deep);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--maroon);
  color: #fff;
  padding: 8px 12px;
  z-index: 20;
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 12px;
}

.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.chrome {
  position: sticky;
  top: 0;
  z-index: 8;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px 0 8px;
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.logo {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: var(--maroon);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  font-weight: 700;
}

.brand h1 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.3;
  font-family: "Noto Serif Devanagari", "Tiro Devanagari Hindi", serif;
}

html[data-script="latn"] .brand h1,
html[data-script="latn"] .hero h2,
html[data-script="latn"] .section h3,
html[data-script="latn"] .page-hero h2 {
  font-family: "Source Sans 3", sans-serif;
}

html[data-script="taml"] .brand h1,
html[data-script="taml"] .hero h2,
html[data-script="taml"] .section h3,
html[data-script="taml"] .page-hero h2 {
  font-family: "Noto Sans Tamil", sans-serif;
}

html[data-script="telu"] .brand h1,
html[data-script="telu"] .hero h2,
html[data-script="telu"] .section h3,
html[data-script="telu"] .page-hero h2 {
  font-family: "Noto Sans Telugu", sans-serif;
}

html[data-script="knda"] .brand h1,
html[data-script="knda"] .hero h2,
html[data-script="knda"] .section h3,
html[data-script="knda"] .page-hero h2 {
  font-family: "Noto Sans Kannada", sans-serif;
}

html[data-script="mlym"] .brand h1,
html[data-script="mlym"] .hero h2,
html[data-script="mlym"] .section h3,
html[data-script="mlym"] .page-hero h2 {
  font-family: "Noto Sans Malayalam", sans-serif;
}

html[data-script="beng"] .brand h1,
html[data-script="beng"] .hero h2,
html[data-script="beng"] .section h3,
html[data-script="beng"] .page-hero h2 {
  font-family: "Noto Sans Bengali", sans-serif;
}

html[data-script="arab"] .brand h1,
html[data-script="arab"] .hero h2,
html[data-script="arab"] .section h3,
html[data-script="arab"] .page-hero h2 {
  font-family: "Noto Nastaliq Urdu", "Noto Sans Arabic", sans-serif;
}

html[data-script="gujr"] .brand h1,
html[data-script="gujr"] .hero h2,
html[data-script="gujr"] .section h3,
html[data-script="gujr"] .page-hero h2 {
  font-family: "Noto Sans Gujarati", sans-serif;
}

html[data-script="guru"] .brand h1,
html[data-script="guru"] .hero h2,
html[data-script="guru"] .section h3,
html[data-script="guru"] .page-hero h2 {
  font-family: "Noto Sans Gurmukhi", sans-serif;
}

html[data-script="orya"] .brand h1,
html[data-script="orya"] .hero h2,
html[data-script="orya"] .section h3,
html[data-script="orya"] .page-hero h2 {
  font-family: "Noto Sans Oriya", sans-serif;
}

html[data-script="olck"] .brand h1,
html[data-script="olck"] .hero h2,
html[data-script="olck"] .section h3,
html[data-script="olck"] .page-hero h2 {
  font-family: "Noto Sans Ol Chiki", sans-serif;
}

.brand p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  max-width: 100%;
}

.lang-switcher select {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 16px;
  min-height: 44px;
  max-width: min(100%, 22rem);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 0 14px;
}

.site-nav a {
  text-decoration: none;
  font-weight: 700;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(92, 31, 36, 0.08);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.site-nav a:hover {
  background: rgba(92, 31, 36, 0.16);
}

.site-nav a:focus-visible,
.button:focus-visible,
.copy-btn:focus-visible,
.lang-switcher select:focus-visible {
  outline: 2px solid var(--saffron);
  outline-offset: 3px;
}

.site-nav a[aria-current="page"] {
  background: var(--maroon);
  color: #fff;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
  padding: 12px 0 36px;
}

.hero h2 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.15;
  font-family: "Noto Serif Devanagari", serif;
  text-wrap: balance;
}

.hero p {
  max-width: 38em;
}

.kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--saffron-deep);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero-photo {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-photo img,
.figure img,
.gallery-item img,
.split-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center 30%;
}

.hero-actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 13px 20px;
  border-radius: 999px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  font: inherit;
  min-height: 44px;
  transition: background 0.15s ease, color 0.15s ease;
}

.primary {
  background: var(--maroon);
  color: #fff;
}

a.primary,
a.primary:hover {
  color: #fff;
}

.primary:hover {
  background: var(--maroon-deep);
}

.secondary {
  background: transparent;
  color: var(--maroon);
  border: 1px solid var(--maroon);
}

a.secondary,
a.secondary:hover {
  color: var(--maroon);
}

.secondary:hover {
  background: rgba(92, 31, 36, 0.06);
}

.section {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  margin-bottom: 22px;
}

.section h3,
.page-hero h2 {
  margin: 0 0 12px;
  font-size: 1.7rem;
  font-family: "Noto Serif Devanagari", serif;
}

.founded {
  display: inline-block;
  margin: 12px 0 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f3e6d0;
  color: var(--maroon);
  font-size: 0.92rem;
  font-weight: 700;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 22px 0;
}

.scholar-year {
  margin-top: 22px;
}

.scholar-year h4 {
  margin: 0 0 12px;
  font-size: 1.15rem;
  color: var(--maroon);
}

.scholar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.scholar-card {
  background: #f8efe3;
  border-radius: 18px;
  padding: 18px 20px;
}

.scholar-card strong {
  display: block;
  font-size: 1.15rem;
}

.scholar-card p {
  margin: 6px 0 0;
}

.stat {
  background: #f8efe3;
  border-radius: 18px;
  padding: 18px;
}

.stat strong {
  display: block;
  font-size: 1.6rem;
  color: var(--maroon);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-item,
.figure {
  margin: 0;
  background: #f8efe3;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.gallery-item img,
.figure img {
  aspect-ratio: 3 / 2;
}

.gallery-item figcaption,
.figure figcaption {
  padding: 12px 14px 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}

.video-card h4 {
  margin: 0 0 10px;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #111;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-block,
.page-hero {
  text-align: left;
}

.contact-link {
  font-weight: 700;
  font-size: 1.05rem;
}

.bank-card + h3 {
  margin-top: 28px;
}

.section ul {
  margin: 0;
  padding-left: 1.2em;
}

.section li + li {
  margin-top: 0.45em;
}

html[dir="rtl"] .section ul {
  padding-left: 0;
  padding-right: 1.2em;
}

.bank-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 8px 4px;
}

.lede {
  color: var(--muted);
  font-size: 1.05rem;
}

.bank-row {
  display: grid;
  grid-template-columns: minmax(7.5rem, 10rem) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.bank-row:last-child {
  border-bottom: 0;
}

.bank-row dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.bank-row dd {
  margin: 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.copy-btn {
  background: #f3e6d0;
  color: var(--ink);
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  min-height: 44px;
  transition: background 0.15s ease, color 0.15s ease;
}

.copy-btn:hover {
  background: #ead6b4;
}

.copy-btn.copied {
  background: var(--forest);
  color: #fff;
}

.note {
  margin-top: 16px;
  color: var(--muted);
}

.site-footer {
  text-align: center;
  padding: 28px 0 36px;
  color: var(--muted);
}

@media (max-width: 1024px) {
  .gallery {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 800px) {
  .hero,
  .split,
  .video-grid {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .bank-row {
    grid-template-columns: 1fr;
  }

  .copy-btn {
    justify-self: stretch;
    width: 100%;
  }
}

@media (max-width: 700px) {
  .gallery,
  .stats,
  .scholar-grid {
    grid-template-columns: 1fr;
  }

  .site-nav a {
    flex: 1 1 40%;
    text-align: center;
  }

  .section {
    padding: 22px;
  }

  .lang-switcher {
    width: 100%;
    justify-content: space-between;
  }

  .lang-switcher select {
    flex: 1;
    max-width: none;
  }
}
