/* ============================================================
   Rajasthan Mantra Pratishthan — style.css
   Plain CSS on top of Bootstrap 5. Custom properties + i18n
   visibility system + component styles. No build step.
   ============================================================ */

/* ---------- 1. Design tokens ---------- */
:root {
  --color-maroon: #7A1F1F;
  --color-maroon-deep: #5C1616;
  --color-saffron: #E9772F;       /* bright accent — decorative use only (icons, gradients, borders), not for text/button backgrounds: fails WCAG AA with white text */
  --color-saffron-deep: #B8501A;  /* deep saffron — WCAG AA compliant for white text (5.0:1) and as text color on cream/white (4.7:1) */
  --color-cream: #FFF8EC;
  --color-offwhite: #FFFDF9;
  --color-gold: #C79A3B;
  --color-gold-soft: rgba(199,154,59,0.35); /* gold border tint used on card/panel edges */
  --color-text: #2B1B12;
  --color-text-soft: #5A4636;

  --shadow-soft: 0 10px 30px rgba(122, 31, 31, 0.10);
  --shadow-card: 0 6px 18px rgba(122, 31, 31, 0.12);
  --radius-lg: 1rem;
  --radius-md: 0.65rem;

  --font-sa: "Noto Serif Devanagari", "Tiro Devanagari Hindi", serif;
  --font-hi: "Noto Sans Devanagari", "Noto Serif Devanagari", serif;
  --font-en-heading: "Cormorant Garamond", Georgia, serif;
  --font-en-body: "Poppins", "Mukta", sans-serif;
  --font-nav: "Poppins", "Noto Sans Devanagari", sans-serif;
}

/* ---------- 2. Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 6.5rem; }

body {
  background: var(--color-offwhite);
  color: var(--color-text);
  font-family: var(--font-hi);
  font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1.05rem);
  line-height: 1.7;
}

html[data-lang="en"] body { font-family: var(--font-en-body); }
html[data-lang="sa"] body { font-family: var(--font-sa); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sa);
  color: var(--color-maroon);
  font-weight: 700;
}
html[data-lang="en"] h1,
html[data-lang="en"] h2,
html[data-lang="en"] h3,
html[data-lang="en"] h4,
html[data-lang="en"] h5,
html[data-lang="en"] h6 { font-family: var(--font-en-heading); }

a { color: var(--color-saffron-deep); text-decoration: none; }
a:hover { color: var(--color-maroon); }

.navbar, .btn, .nav-link, .lang-btn { font-family: var(--font-nav); }

::selection { background: var(--color-saffron-deep); color: var(--color-offwhite); }

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-maroon);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 2000;
  border-radius: 0 0 0.5rem 0;
}
.skip-link:focus {
  left: 0;
  color: #fff;
}

/* ---------- 3. i18n visibility system ---------- */
.i18n { display: none; }
html[data-lang="sa"] [data-lang-sa],
html[data-lang="hi"] [data-lang-hi],
html[data-lang="en"] [data-lang-en] { display: inline; }

html[data-lang="sa"] [data-lang-sa].d-block-i18n,
html[data-lang="hi"] [data-lang-hi].d-block-i18n,
html[data-lang="en"] [data-lang-en].d-block-i18n { display: block; }

html[data-lang="sa"] [data-lang-sa].d-inline-block-i18n,
html[data-lang="hi"] [data-lang-hi].d-inline-block-i18n,
html[data-lang="en"] [data-lang-en].d-inline-block-i18n { display: inline-block; }

html[data-lang="sa"] [data-lang-sa].d-flex-i18n,
html[data-lang="hi"] [data-lang-hi].d-flex-i18n,
html[data-lang="en"] [data-lang-en].d-flex-i18n { display: flex; }

html[data-lang="sa"] [data-lang-sa].d-table-row-i18n,
html[data-lang="hi"] [data-lang-hi].d-table-row-i18n,
html[data-lang="en"] [data-lang-en].d-table-row-i18n { display: table-row; }

html[data-lang="sa"] [data-lang-sa].d-li-i18n,
html[data-lang="hi"] [data-lang-hi].d-li-i18n,
html[data-lang="en"] [data-lang-en].d-li-i18n { display: list-item; }

/* ---------- 4. Language switcher ---------- */
.lang-switch {
  display: inline-flex;
  gap: 0.25rem;
  background: var(--color-cream);
  border: 1px solid var(--color-gold);
  border-radius: 999px;
  padding: 0.25rem;
}
.lang-btn {
  border: none;
  background: transparent;
  color: var(--color-maroon);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}
.lang-btn:hover { background: rgba(233, 119, 47, 0.15); }
.lang-btn.active {
  background: linear-gradient(135deg, var(--color-saffron-deep), var(--color-maroon));
  color: #fff;
  box-shadow: 0 2px 8px rgba(122, 31, 31, 0.3);
}

/* ---------- 4a. Top utility strip ---------- */
.top-strip { background: var(--color-cream); padding: 0.4rem 0; border-bottom: 1px solid var(--color-gold-soft); }
.top-strip-contact { color: var(--color-maroon-deep); font-size: 0.85rem; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 0.4rem; }
.top-strip-contact:hover, .top-strip-contact:focus-visible { text-decoration: underline; }
.top-strip-social { display: flex; align-items: center; gap: 1rem; }
.top-strip-social a { color: var(--color-maroon-deep); font-size: 0.95rem; line-height: 1; display: inline-flex; transition: transform 0.15s ease; }
.top-strip-social a:hover, .top-strip-social a:focus-visible { transform: scale(1.2); }
html.high-contrast .top-strip { background: #000000; }
html.high-contrast .top-strip-contact, html.high-contrast .top-strip-social a { color: #ffffff !important; }

/* ---------- 5. Header / brand ---------- */
.site-header { background: var(--color-offwhite); border-bottom: 2px solid var(--color-gold); }
.brand-lockup { display: flex; align-items: center; gap: 0.75rem; }
.brand-lockup > span { display: flex; flex-direction: column; justify-content: center; gap: 0.2rem; }
.brand-logo { height: 76px; width: auto; max-width: 100%; object-fit: contain; flex: none; }
.brand-name-hi { font-family: var(--font-sa); color: var(--color-maroon); font-size: clamp(1.05rem, 1rem + 0.6vw, 1.5rem); font-weight: 700; line-height: 1.2; margin: 0; }
.brand-name-en { font-family: var(--font-en-heading); color: var(--color-saffron-deep); font-size: clamp(0.75rem, 0.7rem + 0.3vw, 1rem); letter-spacing: 0.03em; margin: 0; }
.brand-tagline { font-family: var(--font-sa); color: var(--color-saffron-deep); font-size: 1.3rem; line-height: 1.2; margin: 0; }

/* Honeypot anti-spam field: visually hidden, still reachable by bots that ignore CSS */
.hp-field { position: absolute; left: -9999px; top: -9999px; height: 0; width: 0; overflow: hidden; }

/* ---------- Accessibility toolbar (text size + high contrast) ---------- */
.a11y-toolbar { display: flex; align-items: center; gap: 0.25rem; }
.a11y-btn { border: 1px solid var(--color-gold); background: transparent; color: var(--color-maroon); font-weight: 700; line-height: 1; padding: 0.35rem 0.55rem; border-radius: 0.3rem; font-size: 0.8rem; cursor: pointer; }
.a11y-btn:hover, .a11y-btn:focus-visible { background: var(--color-saffron-deep); border-color: var(--color-saffron-deep); color: #fff; }
.a11y-btn[aria-pressed="true"] { background: var(--color-maroon); border-color: var(--color-maroon); color: #fff; }

html.fs-large body { font-size: clamp(1.05rem, 1rem + 0.2vw, 1.15rem); }
html.fs-larger body { font-size: clamp(1.15rem, 1.1rem + 0.2vw, 1.3rem); }

/* High-contrast mode: flattens the palette to a black-on-white, underlined-link scheme */
html.high-contrast body { background: #ffffff; color: #000000; }
html.high-contrast .site-header, html.high-contrast .site-footer, html.high-contrast .navbar-main,
html.high-contrast .bg-offwhite, html.high-contrast .bg-cream, html.high-contrast .bg-maroon-gradient,
html.high-contrast .card-mp, html.high-contrast .footer-bottom { background: #ffffff !important; color: #000000 !important; }
html.high-contrast * { border-color: #000000 !important; text-shadow: none !important; box-shadow: none !important; }
html.high-contrast a { color: #0000EE !important; text-decoration: underline; }
html.high-contrast a:visited { color: #551A8B !important; }
html.high-contrast .btn-saffron, html.high-contrast .btn-outline-maroon, html.high-contrast .btn-outline-light,
html.high-contrast .lang-btn.active, html.high-contrast .a11y-btn[aria-pressed="true"] { background: #000000 !important; color: #ffffff !important; border-color: #000000 !important; }

/* Scroll-to-top button */
.scroll-top-btn {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 3rem;
  height: 3rem;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-saffron-deep), var(--color-maroon));
  color: #fff;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 1040;
}
.scroll-top-btn.show { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top-btn:hover, .scroll-top-btn:focus-visible { background: var(--color-maroon-deep); }
html.high-contrast .scroll-top-btn { background: #000000; color: #ffffff; outline: 2px solid #ffffff; }
@media (prefers-reduced-motion: reduce) {
  .scroll-top-btn { transition: opacity 0.01ms; transform: none; }
}

/* Floating Puja Booking button (always visible, mirrors scroll-top-btn but on the left) */
.puja-fab {
  position: fixed;
  left: 1.25rem;
  bottom: 1.25rem;
  height: 3rem;
  padding: 0 1.1rem 0 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-saffron-deep), var(--color-maroon));
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-card);
  text-decoration: none;
  z-index: 1040;
  transition: transform 0.2s ease, background 0.2s ease;
}
.puja-fab i { font-size: 1.1rem; }
.puja-fab:hover, .puja-fab:focus-visible { background: var(--color-maroon-deep); color: #fff; transform: translateY(-3px); }
html.high-contrast .puja-fab { background: #000000; color: #ffffff; outline: 2px solid #ffffff; }
@media (prefers-reduced-motion: reduce) {
  .puja-fab { transition: none; }
}
@media (max-width: 575.98px) {
  .puja-fab span { display: none; }
  .puja-fab { padding: 0; width: 3rem; justify-content: center; }
}

.navbar-main { background: var(--color-maroon); }
.navbar-main.is-stuck { box-shadow: 0 4px 16px rgba(0,0,0,0.18); }
.navbar-main .nav-link { color: var(--color-cream); font-weight: 500; padding: 0.5rem 0.9rem; border-bottom: 3px solid transparent; }
.navbar-main .nav-link:hover,
.navbar-main .nav-link:focus,
.navbar-main .nav-link.active { color: var(--color-offwhite); border-bottom-color: var(--color-saffron); }
.navbar-main .dropdown-menu { background: var(--color-offwhite); border: 1px solid var(--color-gold); border-radius: var(--radius-md); }
.navbar-main .dropdown-item { color: var(--color-text); font-family: var(--font-nav); }
.navbar-main .dropdown-item:hover { background: var(--color-cream); color: var(--color-maroon); }
.navbar-main .navbar-toggler { border-color: var(--color-saffron); }

/* ---------- 6. Hero / carousel ---------- */
.hero-carousel { position: relative; }
.hero-slide {
  min-height: clamp(340px, 60vw, 640px);
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  position: relative;
}
.hero-slide::after {
  content: "";
  position: absolute; inset: 0;
  /* Light vignette scrim, darkest at the centre where hero-content text now sits
     (content is center-aligned), fading out toward the edges on every slide. */
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.32) 45%, rgba(0,0,0,0.12) 100%);
}
.hero-slide.hero-overlay-1::after,
.hero-slide.hero-overlay-2::after,
.hero-slide.hero-overlay-3::after,
.hero-slide.hero-overlay-4::after { background: radial-gradient(ellipse at center, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.32) 45%, rgba(0,0,0,0.12) 100%); }
.hero-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-content { position: relative; z-index: 1; color: var(--color-offwhite); padding: 2rem 1rem; text-align: center; }
.hero-content h1, .hero-content h2 { color: #fff; font-size: clamp(1.8rem, 1.3rem + 2.4vw, 3.2rem); text-shadow: 0 2px 16px rgba(0,0,0,0.6); }
.hero-content .lead { font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem); max-width: 42rem; margin-inline: auto; text-shadow: 0 1px 10px rgba(0,0,0,0.55); }
.hero-content .d-flex { justify-content: center; }
.hero-shloka {
  display: inline-block;
  margin-top: 1rem;
  background: color-mix(in srgb, var(--color-maroon-deep) 85%, transparent);
  border: 1px solid var(--color-gold);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.25rem;
  font-family: var(--font-sa);
  color: var(--color-offwhite);
}
.hero-shloka .shloka-accent { color: var(--color-gold); font-weight: 700; }

/* ---------- 7. Ticker ---------- */
.ticker-bar { background: var(--color-gold); overflow: hidden; white-space: nowrap; border-bottom: 1px solid var(--color-maroon); }
.ticker-label {
  background: var(--color-maroon);
  color: #fff;
  font-weight: 700;
  padding: 0.5rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}
.ticker-track-wrap { flex: 1 1 auto; width: 100%; position: relative; overflow: hidden; }
.ticker-track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  padding: 0.5rem 0;
  animation: marquee-ltr 30s linear infinite;
  will-change: transform;
}
.ticker-track-wrap:hover .ticker-track, .ticker-bar:hover .ticker-track { animation-play-state: paused; }
.ticker-item {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
  padding: 0 2rem;
  color: var(--color-maroon-deep);
  font-weight: 600;
}
.ticker-item::before { content: "◆"; color: var(--color-saffron-deep); margin-right: 0.5rem; }
@keyframes marquee-ltr {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100vw); }
}

/* ---------- 8. Section headings / ornament ---------- */
.section-pad { padding-block: clamp(2.5rem, 2rem + 2vw, 4.5rem); }
.section-title-wrap { text-align: center; margin-bottom: clamp(1.75rem, 1.5rem + 1vw, 3rem); }
.section-title { font-size: clamp(1.5rem, 1.3rem + 1vw, 2.25rem); margin-bottom: 0.5rem; }
.section-kicker { color: var(--color-saffron-deep); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.9rem; }
.section-kicker.on-dark { color: var(--color-offwhite); }
.ornament-rule {
  display: flex; align-items: center; justify-content: center; gap: 0.75rem;
  margin: 0.5rem auto 0; max-width: 320px;
}
.ornament-rule::before, .ornament-rule::after {
  content: ""; height: 1px; flex: 1 1 auto; background: linear-gradient(90deg, transparent, var(--color-gold));
}
.ornament-rule::after { background: linear-gradient(90deg, var(--color-gold), transparent); }
.ornament-rule .ornament-icon { color: var(--color-saffron); font-size: 1.1rem; }

.bg-cream { background: var(--color-cream); }
.bg-maroon-gradient { background: linear-gradient(135deg, var(--color-maroon), var(--color-maroon-deep)); color: var(--color-offwhite); }

/* ---------- 9. Buttons ---------- */
.btn-saffron {
  background: var(--color-saffron-deep); border-color: var(--color-saffron-deep); color: #fff; font-weight: 600;
}
.btn-saffron:hover { background: var(--color-maroon-deep); border-color: var(--color-maroon-deep); color: #fff; }
.btn-maroon {
  background: var(--color-maroon); border-color: var(--color-maroon); color: #fff; font-weight: 600;
}
.btn-maroon:hover { background: var(--color-maroon-deep); border-color: var(--color-maroon-deep); color: #fff; }
.btn-outline-maroon {
  border: 1.5px solid var(--color-maroon); color: var(--color-maroon); font-weight: 600; background: transparent;
}
.btn-outline-maroon:hover { background: var(--color-maroon); color: #fff; }

/* ---------- 10. Cards ---------- */
.icon-badge {
  width: 3.5rem; height: 3.5rem; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--color-saffron-deep), var(--color-maroon));
  color: #fff; font-size: 1.5rem; margin-bottom: 0.75rem;
  box-shadow: 0 4px 12px rgba(184,80,26,0.35);
}
.card-mp {
  background: #fff;
  border: 1px solid var(--color-gold-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 1.75rem 1.5rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
/* Full-height stretch is opt-in via Bootstrap's .h-100 (single card per grid column).
   Never add it where multiple .card-mp elements are stacked in one column (e.g. news
   list items, benefits list) — each would fight to fill the whole column and inflate it. */
.card-mp:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.card-mp h3, .card-mp h4 { font-size: 1.15rem; }
.card-mp .card-img-top-mp { border-radius: var(--radius-md); overflow: hidden; margin-bottom: 1rem; aspect-ratio: 4/3; }
.card-mp .card-img-top-mp img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- 11. Two-column message block ---------- */
.message-block { display: grid; grid-template-columns: minmax(200px, 320px) 1fr; gap: clamp(1.5rem, 1rem + 2vw, 3rem); align-items: center; }
@media (max-width: 767.98px) { .message-block { grid-template-columns: 1fr; } }
.message-portrait { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); border: 4px solid var(--color-offwhite); outline: 2px solid var(--color-gold); aspect-ratio: 4/5; }
.message-portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.message-quote-mark { font-size: 3rem; color: var(--color-saffron-deep); line-height: 1; font-family: Georgia, serif; }

/* ---------- 12. Stats strip ---------- */
.stats-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; }
.stat-item {
  background: #fff; border: 1px solid var(--color-gold-soft); border-radius: var(--radius-md);
  padding: 1.25rem 1rem; text-align: center; box-shadow: var(--shadow-card);
}
.stat-num { font-family: var(--font-en-body); font-weight: 700; font-size: clamp(1.5rem, 1.2rem + 1vw, 2.25rem); color: var(--color-maroon); display: block; }
.stat-label { color: var(--color-text-soft); font-size: 0.85rem; }

/* ---------- 13. Notice / alert box ---------- */
.notice-box {
  background: var(--color-cream);
  border: 1px solid var(--color-gold);
  border-left: 5px solid var(--color-saffron);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
}

/* ---------- 14. Dakshina table ---------- */
.table-dakshina {
  --bs-table-bg: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.table-dakshina thead th {
  background: var(--color-maroon); color: #fff; font-family: var(--font-nav);
  font-weight: 600; border: none; vertical-align: middle;
}
.table-dakshina tbody tr:nth-child(odd) { background: var(--color-cream); }
.table-dakshina td, .table-dakshina th { padding: 0.65rem 0.85rem; vertical-align: middle; }
.table-dakshina td.amount { color: var(--color-maroon); font-weight: 700; white-space: nowrap; }
.table-responsive-mp { border-radius: var(--radius-md); box-shadow: var(--shadow-card); }
.table-group-label {
  background: var(--color-saffron-deep); color: #fff; font-weight: 700; letter-spacing: 0.03em;
}

/* ---------- 15. Timeline (Academics) ---------- */
.timeline { position: relative; padding-left: 1.75rem; border-left: 3px solid var(--color-gold); }
.timeline-item { position: relative; padding-bottom: 2rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ""; position: absolute; left: -2.35rem; top: 0.3rem;
  width: 0.9rem; height: 0.9rem; border-radius: 50%;
  background: var(--color-saffron); border: 3px solid var(--color-offwhite); box-shadow: 0 0 0 2px var(--color-gold);
}
.timeline-date { color: var(--color-saffron-deep); font-weight: 700; font-size: 0.85rem; }

/* ---------- 16. Gallery ---------- */
.gallery-filter .nav-pills .nav-link {
  color: var(--color-maroon); border: 1px solid var(--color-gold); border-radius: 999px;
  margin: 0.25rem; font-weight: 600; font-size: 0.85rem;
}
.gallery-filter .nav-pills .nav-link.active { background: var(--color-maroon); color: #fff; }
.gallery-item { position: relative; display: block; overflow: hidden; border-radius: var(--radius-md); box-shadow: var(--shadow-card); aspect-ratio: 4/3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .gallery-caption {
  position: absolute; inset: auto 0 0 0; padding: 0.6rem 0.75rem;
  background: linear-gradient(0deg, rgba(43,27,18,0.85), transparent);
  color: #fff; font-size: 0.85rem; font-weight: 600;
}
.ribbon-latest {
  position: absolute; top: 0.6rem; left: 0.6rem; z-index: 2;
  background: var(--color-saffron-deep); color: #fff; font-size: 0.7rem; font-weight: 700;
  padding: 0.2rem 0.6rem; border-radius: 999px; letter-spacing: 0.04em;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.gallery-grid-item:nth-child(-n+3) .ribbon-latest { display: inline-block; }
.gallery-grid-item .ribbon-latest { display: none; }

/* ---------- 17. Publications ---------- */
.pub-cover { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card); aspect-ratio: 3/4; }
.pub-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- 18. Partner grid ---------- */
.partner-logo {
  background: #fff; border: 1px solid var(--color-gold-soft); border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center; padding: 1.25rem; height: 100%; box-shadow: var(--shadow-card);
}
.partner-logo img { max-width: 100%; height: auto; }

/* ---------- 19. Forms ---------- */
.form-mp label { font-weight: 600; color: var(--color-maroon-deep); }
.form-mp .form-control, .form-mp .form-select {
  border: 1px solid rgba(199,154,59,0.5); border-radius: var(--radius-md); padding: 0.6rem 0.85rem;
}
.form-mp .form-control:focus, .form-mp .form-select:focus {
  border-color: var(--color-saffron-deep); box-shadow: 0 0 0 0.2rem rgba(184,80,26,0.25);
}
.form-mp-panel {
  background: #fff; border: 1px solid var(--color-gold-soft); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card); padding: clamp(1.25rem, 1rem + 1vw, 2.5rem);
}
.form-section-title {
  font-family: var(--font-en-heading); color: var(--color-maroon); font-weight: 700;
  font-size: 1.15rem; padding-bottom: 0.4rem; margin-bottom: 1rem;
  border-bottom: 2px solid var(--color-gold);
}
.puja-checkbox-grid .form-check { margin-bottom: 0.5rem; }
.signature-box {
  border: 1px dashed var(--color-gold); border-radius: var(--radius-md);
  height: 6rem; background: var(--color-offwhite);
}

/* ---------- 20. Contact cards ---------- */
.contact-chip {
  display: flex; align-items: center; gap: 0.85rem; background: #fff;
  border: 1px solid var(--color-gold-soft); border-radius: var(--radius-md);
  padding: 1rem 1.1rem; height: 100%; box-shadow: var(--shadow-card);
}
.contact-chip .icon-badge { margin-bottom: 0; flex: none; width: 2.75rem; height: 2.75rem; font-size: 1.2rem; }
.map-embed { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); border: 1px solid var(--color-gold-soft); }
.map-embed iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

/* ---------- 21. Footer ---------- */
.site-footer { background: var(--color-maroon-deep); color: var(--color-cream); }
.site-footer h5 { color: var(--color-saffron); font-family: var(--font-nav); font-size: 1.05rem; }
.site-footer a { color: var(--color-cream); }
.site-footer a:hover { color: var(--color-saffron); }
.site-footer .list-unstyled li { margin-bottom: 0.5rem; }
.social-icons { display: flex; gap: 0.65rem; margin-top: 0.85rem; }
.social-icons a {
  width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 1px solid var(--color-gold);
  display: inline-flex; align-items: center; justify-content: center; transition: background 0.2s ease;
}
.social-icons a:hover { background: var(--color-saffron-deep); border-color: var(--color-saffron-deep); color: #fff; }
.footer-bottom { background: rgba(0,0,0,0.18); font-size: 0.85rem; }

/* ---------- 22. About tabs / anchors ---------- */
.about-subnav .nav-link {
  color: var(--color-maroon); font-weight: 600; border-radius: 999px; border: 1px solid var(--color-gold);
  margin: 0.25rem; padding: 0.5rem 1.1rem;
}
.about-subnav .nav-link.active { background: var(--color-maroon); color: #fff; }
.anchor-offset { scroll-margin-top: 6.5rem; }

/* ---------- 22a. Officers & Administration cards ---------- */
.officer-photo-wrap { position: relative; width: 6.5rem; height: 6.5rem; margin: 0 auto 0.85rem; }
.officer-photo {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block;
  border: 3px solid var(--color-offwhite); outline: 2px solid var(--color-gold);
}
.officer-role-badge {
  position: absolute; right: -0.15rem; bottom: -0.15rem;
  width: 1.9rem; height: 1.9rem; border-radius: 50%;
  background: linear-gradient(135deg, var(--color-saffron-deep), var(--color-maroon));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; border: 2px solid var(--color-offwhite);
}
.officer-name { font-size: 1.15rem; margin-bottom: 0.15rem; }
.officer-designation {
  display: inline-block; color: var(--color-saffron-deep); font-weight: 700;
  font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.4rem;
}
.officer-qualification { font-size: 0.95rem; color: var(--color-text-soft); margin-bottom: 0; }
.officer-contact { display: flex; gap: 0.5rem; justify-content: center; margin-top: 0.6rem; }

/* Compact card-mp modifier: stacked leadership cards beside a large campus card (homepage) */
.card-mp-compact { padding: 1rem 1rem; }
.card-mp-compact .leader-portrait { margin-bottom: 0.5rem; }
.card-mp-compact .officer-name { font-size: 1.05rem; margin-bottom: 0.1rem; }
.card-mp-compact .officer-designation { font-size: 0.8rem; margin-bottom: 0.35rem; }
.card-mp-compact .officer-qualification { font-size: 1rem; line-height: 1.5; }

/* Square leadership portrait (message-portrait styling, square aspect instead of 4:5) */
.leader-portrait { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); border: 4px solid var(--color-offwhite); outline: 2px solid var(--color-gold); aspect-ratio: 1/1; margin-bottom: 0.75rem; }
.leader-portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.officer-contact a {
  width: 1.9rem; height: 1.9rem; border-radius: 50%; border: 1px solid var(--color-gold);
  display: inline-flex; align-items: center; justify-content: center; color: var(--color-maroon); font-size: 0.85rem;
}
.officer-contact a:hover { background: var(--color-cream); color: var(--color-saffron-deep); }

/* ---------- 23. Services pills ---------- */
.services-subnav .nav-link {
  color: var(--color-maroon); font-weight: 600; border-radius: 999px; border: 1px solid var(--color-gold);
  margin: 0.25rem; padding: 0.5rem 1.1rem;
}
.services-subnav .nav-link.active { background: var(--color-saffron-deep); color: #fff; border-color: var(--color-saffron-deep); }

/* ---------- 24. News thumbnails (explicit, robust sizing — do not rely on HTML attrs alone) ---------- */
.news-thumb { width: 110px; height: 80px; min-width: 110px; object-fit: cover; flex-shrink: 0; }
@media (max-width: 420px) { .news-thumb { width: 84px; height: 64px; min-width: 84px; } }

/* Scrollable panels (Recent Activities / Notice Board columns) */
.scroll-panel {
  max-height: 340px;
  overflow-y: auto;
  padding-right: 0.4rem;
  scrollbar-width: thin;
  scrollbar-color: var(--color-saffron-deep) var(--color-cream);
}
.scroll-panel::-webkit-scrollbar { width: 8px; }
.scroll-panel::-webkit-scrollbar-track { background: var(--color-cream); border-radius: 999px; }
.scroll-panel::-webkit-scrollbar-thumb { background: var(--color-saffron-deep); border-radius: 999px; }
.scroll-panel::-webkit-scrollbar-thumb:hover { background: var(--color-maroon); }

/* ---------- 25. Utility ---------- */
.text-saffron { color: var(--color-saffron-deep); }
.text-maroon { color: var(--color-maroon); }
.border-gold { border-color: var(--color-gold) !important; }
.rounded-mp { border-radius: var(--radius-lg); }
.aos-init-fallback { opacity: 1 !important; transform: none !important; }
.page-hero {
  background: linear-gradient(135deg, var(--color-maroon), var(--color-saffron-deep));
  color: #fff; padding-block: clamp(2.5rem, 2rem + 2vw, 4rem);
}
.page-hero h1 { color: #fff; }
.breadcrumb-mp a { color: rgba(255,255,255,0.85); }
.breadcrumb-mp .active { color: #fff; }

/* Ensure images never shift layout before load */
img { max-width: 100%; height: auto; }
