/* =========================================================
   TIRKHA RAM CHARITABLE TRUST — site theme
   Palette derived from the trust's own emblem (teal circle,
   marigold figures, maroon wreath) plus a "stitch line" motif
   that nods to the tailoring-training program.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&family=Noto+Serif+Devanagari:wght@500;700&display=swap');

:root {
  --color-bg: #FBF7EE;
  --color-bg-alt: #F3ECDD;
  --color-ink: #2B2620;
  --color-ink-soft: #5B5347;
  --color-primary: #0B6E82;
  --color-primary-dark: #084F5E;
  --color-primary-tint: #E4F1F3;
  --color-accent: #F0A93A;
  --color-accent-dark: #C9821C;
  --color-maroon: #7A2E2E;
  --color-sage: #5E7A4C;
  --color-line: #DCD2BA;
  --shadow-soft: 0 12px 30px rgba(43, 38, 32, 0.08);
  --radius-card: 14px;
  --font-display: 'Fraunces', 'Noto Serif Devanagari', serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.6;
}

h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  color: var(--color-maroon);
  margin: 0 0 0.4em;
  line-height: 1.15;
  font-weight: 600;
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-accent-dark); }

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

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Stitch-line divider (signature motif) ---------- */
.stitch-divider {
  border: none;
  height: 14px;
  margin: 0;
  background-image: repeating-linear-gradient(
    to right,
    var(--color-accent) 0 10px,
    transparent 10px 20px
  );
  background-position: center;
  background-size: 20px 2px;
  background-repeat: repeat-x;
  opacity: 0.85;
}
.stitch-divider.thin { height: 8px; }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--color-primary-dark);
  margin-bottom: 6px;
}
.section-eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--color-accent);
  display: inline-block;
}

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--color-maroon);
  color: #fff;
  font-size: 0.85rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 6px;
  padding-bottom: 6px;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a { color: #F6E2C4; }
.topbar .reg-info { opacity: 0.9; }
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.topbar-separator { opacity: .45; }
.topbar .admin-access-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #fff;
  font-weight: 700;
  padding: 2px 9px;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 999px;
}
.topbar .admin-access-link:hover {
  color: var(--color-maroon);
  background: var(--color-accent);
  border-color: var(--color-accent);
}

/* ---------- Header / nav ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--color-line);
  position: sticky;
  top: 0;
  z-index: 40;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-accent);
}
.brand-text .name-en {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-maroon);
  font-weight: 700;
  display: block;
}
.brand-text .name-hi {
  font-family: 'Noto Serif Devanagari', serif;
  font-size: 0.95rem;
  color: var(--color-primary-dark);
  display: block;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  color: var(--color-ink);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--color-primary-dark);
  border-bottom-color: var(--color-accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}

/* ---------- Hero / banner slider ---------- */
.hero-slider {
  position: relative;
  overflow: hidden;
  height: 460px;
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 900ms ease;
  display: flex;
  align-items: flex-end;
}
.hero-slide.is-active { opacity: 1; z-index: 2; }
.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(20,20,15,0.72) 0%, rgba(20,20,15,0.15) 55%, rgba(20,20,15,0.05) 100%);
  z-index: -1;
}
.hero-caption {
  color: #fff;
  padding: 40px 0 56px;
  max-width: 720px;
}
.hero-caption .section-eyebrow { color: var(--color-accent); }
.hero-caption h1, .hero-caption h2 {
  color: #fff;
  font-size: clamp(1.8rem, 3vw, 2.75rem);
  max-width: 820px;
  line-height: 1.2;
  text-wrap: balance;
}
.hero-caption p {
  color: #F1EAD9;
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  max-width: 820px;
  line-height: 1.55;
}

.hero-dots {
  position: absolute;
  bottom: 18px;
  right: 24px;
  z-index: 5;
  display: flex;
  gap: 8px;
}
.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid #fff;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  padding: 0;
}
.hero-dots button.is-active { background: var(--color-accent); border-color: var(--color-accent); }

.hero-empty {
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #F1EAD9;
  text-align: center;
  padding: 20px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease, color 150ms ease;
}
.btn-primary { background: var(--color-accent); color: #3A2400; }
.btn-primary:hover { background: var(--color-accent-dark); color: #fff; transform: translateY(-1px); }
.btn-outline { background: transparent; border-color: #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--color-primary-dark); }
.btn-line { background: transparent; border-color: var(--color-primary); color: var(--color-primary-dark); }
.btn-line:hover { background: var(--color-primary); color: #fff; }
.btn-sm { padding: 6px 14px; font-size: 0.82rem; border-radius: 8px; }
.btn-danger { background: #B23A2E; color: #fff; }
.btn-danger:hover { background: #8f2d24; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-title-row { max-width: 640px; margin-bottom: 30px; }
.section-title-row p { color: var(--color-ink-soft); }

/* Two pillars: tailoring training + health camps */
.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.pillar-card {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: var(--shadow-soft);
  border-top: 4px solid var(--color-accent);
}
.pillar-card:nth-child(2) { border-top-color: var(--color-sage); }
.pillar-card .icon-badge {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--color-primary-tint);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.pillar-card .icon-badge svg { width: 26px; height: 26px; }

/* Mission / vision stitched cards */
.mv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.mv-card { padding: 34px; position: relative; }
.mv-card + .mv-card { border-left: 2px dashed var(--color-line); }
.mv-card h3 { color: var(--color-primary-dark); }

/* News cards */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.news-card {
  background: #fff;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}
.news-card .thumb {
  height: 170px;
  background: var(--color-primary-tint) center/cover no-repeat;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-primary-dark);
}
.news-card .body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.news-card .date-chip {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-maroon);
  background: #F6E9CE;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.news-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.news-card p { color: var(--color-ink-soft); font-size: 0.92rem; flex: 1; }

/* Trustees */
.trustee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 26px;
}
.trustee-card {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  text-align: center;
  padding: 26px 20px 22px;
}
.trustee-card .photo {
  width: 128px; height: 128px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 3px solid var(--color-accent);
}
.trustee-card .photo.placeholder {
  background: var(--color-primary-tint);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-primary-dark);
  font-family: var(--font-display);
  font-size: 1.6rem;
}
.trustee-card h3 { margin-bottom: 2px; font-size: 1.05rem; }
.trustee-card .designation {
  color: var(--color-accent-dark);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.trustee-card .occupation { color: var(--color-ink-soft); font-size: 0.88rem; margin-top: 6px; }
.trustee-heading { margin-bottom: 24px; }
.trustee-heading.text-center {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
.trustee-heading.text-center .section-eyebrow { justify-content: center; }
.prernasrot-section {
  background: linear-gradient(135deg, #fff 0%, var(--color-primary-tint) 100%);
  border: 1px solid var(--color-line);
  border-radius: 20px;
  padding: 38px;
  box-shadow: var(--shadow-soft);
}
.prernasrot-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.prernasrot-photo-slot {
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 3px solid #fff;
  box-shadow: 0 10px 24px rgba(43, 38, 32, 0.12);
}
.prernasrot-photo-slot > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.prernasrot-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px;
  text-align: center;
  color: var(--color-ink-soft);
  background:
    radial-gradient(circle at top, rgba(240,169,58,.2), transparent 52%),
    var(--color-bg-alt);
}
.prernasrot-photo-placeholder svg {
  width: 58px;
  height: 58px;
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 1.4;
  stroke-linecap: round;
}
.prernasrot-photo-placeholder span { font-size: .82rem; font-weight: 600; }
.trustee-list-section { margin-top: 58px; padding-top: 42px; border-top: 2px dashed var(--color-line); }
.trustee-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.trustee-list-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: 12px;
  padding: 14px 18px 14px 14px;
  position: relative;
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.trustee-list-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(var(--color-accent), var(--color-maroon));
  opacity: .9;
}
.trustee-list-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); border-color: var(--color-accent); }
.trustee-list-item .photo {
  width: 92px;
  height: 112px;
  flex: 0 0 92px;
  border-radius: 9px;
  object-fit: cover;
  object-position: center top;
  border: 1px solid var(--color-line);
  box-shadow: 0 6px 14px rgba(43, 38, 32, .12);
}
.trustee-list-item .photo.placeholder {
  display: flex; align-items: center; justify-content: center;
  background: var(--color-primary-tint); color: var(--color-primary-dark);
  font-family: var(--font-display); font-size: 1.35rem;
}
.trustee-list-copy { min-width: 0; }
.trustee-list-copy h3 { font-size: 1.12rem; margin-bottom: 5px; }
.trustee-list-copy .designation { color: var(--color-accent-dark); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
.trustee-list-copy .occupation { color: var(--color-ink-soft); font-size: 0.88rem; margin-top: 8px; }
.trustee-number {
  margin-left: auto;
  align-self: flex-start;
  font-family: var(--font-display);
  color: var(--color-line);
  font-size: 1.25rem;
  font-weight: 700;
}
.trustee-empty {
  padding: 28px;
  border-radius: 12px;
  background: #fff;
  border: 1px dashed var(--color-line);
  color: var(--color-ink-soft);
  text-align: center;
}

/* Gallery */
.gallery-album { margin-bottom: 50px; }
.gallery-album h3 { display:flex; align-items:center; gap:10px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}
.gallery-thumb {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: zoom-in;
  box-shadow: var(--shadow-soft);
  position: relative;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 250ms ease; }
.gallery-thumb:hover img { transform: scale(1.06); }

.lightbox {
  position: fixed; inset: 0; background: rgba(20,16,12,0.92);
  display: none; align-items: center; justify-content: center;
  z-index: 100; padding: 30px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 84vh; border-radius: 8px; }
.lightbox .caption { color: #F1EAD9; text-align: center; margin-top: 12px; }
.lightbox-close, .lightbox-nav {
  position: absolute; background: rgba(255,255,255,0.12); color: #fff;
  border: none; border-radius: 50%; width: 42px; height: 42px; cursor: pointer; font-size: 1.1rem;
}
.lightbox-close { top: 22px; right: 26px; }
.lightbox-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 22px; top: 50%; transform: translateY(-50%); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.info-card {
  background: var(--color-primary-dark);
  color: #fff;
  border-radius: var(--radius-card);
  padding: 30px;
}
.info-card h3 { color: var(--color-accent); }
.info-card ul { list-style: none; padding: 0; margin: 18px 0 0; }
.info-card li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px dashed rgba(255,255,255,0.25); }
.info-card li:last-child { border-bottom: none; }

form.card-form {
  background: #fff;
  padding: 30px;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; }
.form-row input, .form-row textarea, .form-row select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--color-bg);
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
  background: #fff;
}
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 18px;
  font-size: 0.92rem;
}
.alert-success { background: #E4F1E1; color: #2C5A26; border: 1px solid #B7DBAE; }
.alert-error { background: #FBE7E4; color: #8A2E22; border: 1px solid #F0BDB4; }
.field-error { color: #B23A2E; font-size: 0.82rem; margin-top: 4px; }
.validation-summary-valid { display: none; }
.bot-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}
.captcha-box {
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 20px;
  align-items: center;
  background: var(--color-primary-tint);
  border: 1px dashed var(--color-primary);
  border-radius: 10px;
  padding: 16px;
  margin: 20px 0;
}
.captcha-box strong, .captcha-box small { display: block; }
.captcha-box strong { color: var(--color-primary-dark); font-size: 1.05rem; }
.captcha-box small { color: var(--color-ink-soft); margin-top: 3px; }
.captcha-label { display: block; color: var(--color-maroon); font-size: 0.72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.captcha-answer label { display: block; font-size: .8rem; font-weight: 600; margin-bottom: 4px; }
.captcha-answer input { width: 100%; padding: 10px 12px; border: 1px solid var(--color-line); border-radius: 8px; font-size: 1rem; background: #fff; }

/* Footer */
.site-footer {
  background: #201C17;
  color: #D9D1C2;
  padding: 50px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
  padding-bottom: 30px;
}
.site-footer h4 { color: var(--color-accent); font-family: var(--font-body); font-size: 0.95rem; letter-spacing: 0.05em; text-transform: uppercase; }
.site-footer a { color: #D9D1C2; }
.site-footer a:hover { color: var(--color-accent); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 18px;
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* Page header banner (inner pages) */
.page-banner {
  background: var(--color-primary-dark);
  background-image: linear-gradient(135deg, var(--color-primary-dark), var(--color-maroon));
  color: #fff;
  padding: 46px 0;
}
.page-banner h1 { color: #fff; margin-bottom: 6px; }
.page-banner .crumbs { color: #F1EAD9; font-size: 0.9rem; }
.page-banner .crumbs a { color: #F6E2C4; }

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.badge-inactive { background: #EFE4CE; color: #7A6A3E; padding: 2px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; }
.badge-active { background: #E1EFD9; color: #2C5A26; padding: 2px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; }

/* ---------- Admin ---------- */
.admin-shell { display: flex; min-height: 100vh; background: var(--color-bg); }
.admin-sidebar {
  width: 240px;
  background: var(--color-primary-dark);
  color: #fff;
  padding: 24px 18px;
  flex-shrink: 0;
}
.admin-sidebar .brand-mini { display:flex; align-items:center; gap:10px; margin-bottom: 26px; }
.admin-sidebar .brand-mini img { width: 40px; height: 40px; border-radius: 50%; }
.admin-sidebar nav ul { list-style: none; padding: 0; margin: 0; }
.admin-sidebar nav a {
  display: block; color: #E4F1F3; padding: 10px 12px; border-radius: 8px; margin-bottom: 4px; font-weight: 500;
}
.admin-sidebar nav a:hover, .admin-sidebar nav a.active { background: rgba(255,255,255,0.12); color: #fff; }
.admin-main { flex: 1; padding: 30px 36px; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.admin-card { background: #fff; border-radius: var(--radius-card); box-shadow: var(--shadow-soft); padding: 24px; margin-bottom: 24px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 26px; }
.stat-card { background: #fff; border-radius: var(--radius-card); box-shadow: var(--shadow-soft); padding: 20px; border-left: 4px solid var(--color-accent); }
.stat-card .num { font-family: var(--font-display); font-size: 1.9rem; color: var(--color-primary-dark); }
.stat-card .label { color: var(--color-ink-soft); font-size: 0.85rem; }

table.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--color-line); font-size: 0.92rem; vertical-align: middle; }
.data-table th { color: var(--color-ink-soft); text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.05em; }
.data-table img.thumb-sm { width: 46px; height: 46px; object-fit: cover; border-radius: 6px; }
.actions-cell { display: flex; gap: 8px; flex-wrap: wrap; }
.gallery-image-form {
  display: grid;
  grid-template-columns: 1.25fr 1fr 90px auto;
  gap: 14px;
  align-items: end;
  margin: 20px 0;
  padding: 18px;
  background: var(--color-bg-alt);
  border-radius: 10px;
}
.gallery-image-form .form-row { margin: 0; }
.gallery-image-form-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.banner-add-form {
  display: grid;
  grid-template-columns: 1fr 1fr 100px;
  gap: 14px;
  align-items: end;
  margin: 16px 0 24px;
  padding: 20px;
  background: var(--color-bg-alt);
  border-radius: 10px;
}
.banner-add-form .form-row { margin: 0; }
.banner-add-form .banner-text-field textarea {
  min-height: 74px;
  font-size: 1rem;
  line-height: 1.45;
  resize: vertical;
}
.banner-add-form .btn { justify-self: start; }
.banner-image-help {
  display: block;
  max-width: 330px;
  margin-top: 5px;
  color: var(--color-ink-soft);
  font-size: .76rem;
  line-height: 1.35;
}
.banner-image-help[hidden] { display: none; }
.banner-form-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.banner-title-cell { min-width: 230px; font-weight: 600; line-height: 1.45; }
.banner-subtitle-cell { min-width: 230px; color: var(--color-ink-soft); line-height: 1.45; }

.login-shell {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-maroon));
  padding: 20px;
}
.login-card {
  background: #fff; border-radius: var(--radius-card); box-shadow: var(--shadow-soft);
  padding: 36px; width: 100%; max-width: 380px;
}
.login-card img { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 14px; border: 2px solid var(--color-accent); }
.change-password-card { max-width: 620px; }
.change-password-card form { max-width: 480px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .pillars, .mv-grid, .news-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .prernasrot-photo-grid { grid-template-columns: repeat(2, 1fr); }
  .mv-card + .mv-card { border-left: none; border-top: 2px dashed var(--color-line); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .banner-add-form { grid-template-columns: 1fr 1fr; }
  .gallery-image-form { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .main-nav.is-open {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--color-line); padding: 12px 20px;
  }
  .main-nav.is-open ul { flex-direction: column; gap: 10px; }
  .hero-slider { height: 380px; }
  .admin-shell { flex-direction: column; }
  .admin-sidebar { width: auto; }
  .trustee-list { grid-template-columns: 1fr; }
  .captcha-box { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .topbar .container { justify-content: center; text-align: center; }
  .topbar-actions { justify-content: center; }
  .prernasrot-section { padding: 26px 18px; }
  .prernasrot-photo-grid { gap: 12px; }
  .prernasrot-photo-placeholder span { font-size: .74rem; }
  .trustee-number { display: none; }
  .trustee-list-item { gap: 14px; padding-right: 12px; }
  .trustee-list-item .photo { width: 78px; height: 98px; flex-basis: 78px; }
  .trustee-list-copy h3 { font-size: 1rem; }
  .trustee-list-copy .designation { font-size: .72rem; }
}
