/* =====================================================
   Gurbat Cultural Association - Main Stylesheet
   ===================================================== */

:root {
  --primary: #0d2040;
  --accent: #c8922a;
  --light-bg: #f8f5f0;
  --text-dark: #1c1c1c;
  --text-mid: #4a4a4a;
  --text-light: #777;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.10);
  --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; line-height: 1.25; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); margin-bottom: 1rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
p  { color: var(--text-mid); margin-bottom: 1rem; }

/* Dari poetry & prose — Scheherazade New (load font in page head when used) */
.dari-text {
  font-family: 'Scheherazade New', serif;
  direction: rtl;
  line-height: 2.35;
}

/* Pashto poetry & prose — Scheherazade New (load font in page head when used) */
.pashto-text {
  font-family: 'Scheherazade New', serif;
  direction: rtl;
  line-height: 2.35;
}

.section-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.centered { text-align: center; }

/* ---- LAYOUT ---- */
.container { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: 5rem 0; }
.bg-light   { background: var(--light-bg); }
.two-col    { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition);
}
.btn-primary:hover { background: #a97420; transform: translateY(-2px); }

.btn-outline {
  display: inline-block;
  border: 2px solid var(--accent);
  color: var(--accent);
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition);
}
.btn-outline:hover { background: var(--accent); color: var(--white); }

.btn-outline-light {
  display: inline-block;
  border: 2px solid var(--white);
  color: var(--white);
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition);
}
.btn-outline-light:hover { background: var(--white); color: var(--primary); }

.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; justify-content: center; }

/* =====================================================
   NAVBAR
   ===================================================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(13, 32, 64, 0.97);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 16px rgba(0,0,0,0.18);
}
.nav-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
}
.logo-link { display: flex; align-items: center; }
.logo-img {
  height: 98px;
  width: auto;
  border-radius: 8px;
  object-fit: contain;
  background: white;
  padding: 2px;
}
.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.hamburger {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  line-height: 1;
  transition: var(--transition);
  border-radius: 4px;
}
.hamburger:hover { background: rgba(255,255,255,0.1); }
.mobile-menu {
  display: none;
  flex-direction: column;
  background: #091830;
  padding: 0.5rem 1.5rem 1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  animation: slideDown 0.2s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.mobile-menu a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 1rem;
  font-weight: 500;
  transition: var(--transition);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--accent); padding-left: 0.5rem; }
.mobile-menu.open { display: flex; }

/* =====================================================
   HERO
   ===================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary) 0%, #091830 60%, #0d2040 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 90px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../media/IMG_4630.JPG') center/cover no-repeat;
  opacity: 0.12;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(13,34,56,0.7) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem 1.5rem;
  max-width: 800px;
}
.hero-logo {
  width: 380px;
  height: 380px;
  object-fit: contain;
  border-radius: 50%;
  background: white;
  padding: 16px;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 40px rgba(0,0,0,0.35);
}
.hero-content h1 { color: var(--white); margin-bottom: 1rem; }
.hero-content p  { color: rgba(255,255,255,0.80); font-size: 1.2rem; margin-bottom: 0; }

/* =====================================================
   MISSION STRIP
   ===================================================== */
.mission-strip {
  background: var(--accent);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
}
.strip-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.2rem 2.5rem;
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  border-right: 1px solid rgba(255,255,255,0.25);
}
.strip-item:last-child { border-right: none; }
.strip-item i { font-size: 1.3rem; }

/* =====================================================
   ABOUT HOME
   ===================================================== */
.text-block { padding-right: 1rem; }
.text-block h2 { margin-bottom: 1rem; color: var(--primary); }

/* About page — stacked heritage portraits */
.about-heritage-portraits {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  align-self: stretch;
}
.heritage-portrait-card {
  margin: 0;
  text-align: center;
}
.heritage-portrait-img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: contain;
  aspect-ratio: 3 / 4;
  background: var(--light-bg);
}
.heritage-portrait-card figcaption {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-mid);
  font-style: italic;
  line-height: 1.55;
  padding: 0 0.25rem;
}

/* Gallery — heritage historical figures (portrait assets) */
.gallery-heritage-featured {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
}
.gallery-heritage-featured figure {
  max-width: 780px;
  width: 100%;
  margin: 0;
  text-align: center;
}
.heritage-landscape-img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: contain;
  aspect-ratio: 3 / 2;
  background: var(--light-bg);
  cursor: pointer;
  transition: var(--transition);
}
.gallery-heritage-featured .heritage-landscape-img:hover,
.gallery-heritage-card .heritage-landscape-img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow);
}
.gallery-heritage-grid-3,
.gallery-heritage-grid-4,
.gallery-heritage-grid-5 {
  gap: 2rem;
}
.gallery-heritage-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
.gallery-heritage-grid-2.hist-row-duo {
  max-width: none;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  align-items: start;
  container-type: inline-size;
  width: 100%;
}
.gallery-heritage-grid-2.hist-row-duo > * {
  min-width: 0;
  max-width: 100%;
}
.hist-row-duo .gallery-heritage-card:first-child .heritage-portrait-img {
  aspect-ratio: 3 / 2;
  object-fit: contain;
}
.hist-row-duo .gallery-heritage-card:last-child .heritage-portrait-img {
  aspect-ratio: unset;
  width: 100%;
  height: calc((100cqw - 2rem) * 2 / 5);
  object-fit: cover;
  object-position: center top;
}
@media (max-width: 768px) {
  .gallery-heritage-grid-2 { grid-template-columns: 1fr; max-width: 400px; }
  .gallery-heritage-grid-2.hist-row-duo { max-width: none; }
  .hist-row-duo .gallery-heritage-card:last-child .heritage-portrait-img {
    height: calc(100cqw * 2 / 3);
  }
}
.gallery-heritage-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.gallery-heritage-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 2rem;
}
.gallery-heritage-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 2rem;
}
@media (max-width: 1200px) {
  .gallery-heritage-grid-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .gallery-heritage-grid-5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .gallery-heritage-grid-5 { grid-template-columns: 1fr; }
}
.gallery-heritage-card {
  margin: 0;
  text-align: center;
}
.gallery-heritage-card .heritage-portrait-img {
  cursor: pointer;
  transition: var(--transition);
}
.gallery-heritage-card .heritage-portrait-img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow);
}
.gallery-heritage-caption {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-mid);
  font-style: italic;
  line-height: 1.55;
}
.gallery-heritage-caption strong {
  color: var(--primary);
}
.gallery-heritage-caption .heritage-tribe {
  display: inline-block;
  margin: 0.15rem 0 0.45rem;
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
}
.gallery-heritage-caption .heritage-books {
  margin: 0.5rem 0 0;
  padding-left: 1.15rem;
  font-style: normal;
  text-align: left;
  list-style: disc;
}
.gallery-heritage-caption .heritage-books li {
  margin-bottom: 0.35rem;
}
.gallery-heritage-caption .heritage-books em {
  font-style: italic;
  color: var(--primary);
}

.gallery-heritage-historians {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(13, 32, 64, 0.1);
}
.gallery-heritage-subhead {
  font-family: 'Playfair Display', serif;
  font-size: 1.65rem;
  color: var(--primary);
  margin: 0 0 0.75rem;
}
.gallery-heritage-subintro {
  max-width: 680px;
  margin: 0 auto 2.5rem;
  color: var(--text-mid);
  line-height: 1.65;
}
.hist-row-historians {
  margin-top: 0;
}
.hist-row-historians .heritage-landscape-img {
  object-fit: contain;
  background: var(--light-bg);
}
.hist-row-historians .heritage-portrait-img {
  object-fit: contain;
  background: var(--light-bg);
}

.gallery-heritage-akbar,
.gallery-heritage-founded,
.gallery-heritage-feature-row {
  margin-top: 3rem;
  align-items: start;
}
.gallery-heritage-akbar .gallery-heritage-card .heritage-portrait-img,
.gallery-heritage-feature-row .gallery-heritage-card .heritage-landscape-img,
.gallery-heritage-feature-row .gallery-heritage-card .heritage-portrait-img {
  aspect-ratio: 3 / 2;
  object-fit: contain;
  background: var(--light-bg);
}
@media (max-width: 768px) {
  .gallery-heritage-feature-row .gallery-heritage-video {
    text-align: center;
  }
  .gallery-heritage-feature-row .gallery-heritage-quote {
    text-align: left;
  }
  .gallery-heritage-feature-row .gallery-video-embed {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
}
.gallery-heritage-video {
  text-align: left;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  overflow-wrap: break-word;
}
.gallery-heritage-video h3 {
  overflow-wrap: break-word;
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  color: var(--primary);
  margin: 0 0 0.75rem;
}
.gallery-heritage-video p {
  color: var(--text-mid);
  line-height: 1.65;
  font-size: 0.95rem;
  margin: 0 0 1.25rem;
}
.gallery-heritage-quote {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--accent);
  background: rgba(200, 146, 42, 0.08);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-mid);
  font-style: italic;
}
.gallery-video-embed {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 3 / 2;
  height: auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #1a1a1a;
  box-sizing: border-box;
  isolation: isolate;
}
.gallery-heritage-feature-row .gallery-video-embed {
  width: 100%;
  max-width: 100%;
}
.gallery-heritage-feature-row .gallery-video-play {
  width: 3.25rem;
  height: 3.25rem;
  font-size: 1.05rem;
}
.gallery-heritage-feature-row .gallery-video-caption {
  font-size: 0.75rem;
  padding: 0.55rem 0.75rem;
}
.gallery-video-poster {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  cursor: pointer;
  background: #1a1a1a;
  display: block;
}
.gallery-video-poster[hidden] {
  display: none !important;
}
.gallery-video-poster img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: filter 0.35s ease;
}
.gallery-video-poster:hover img,
.gallery-video-poster:focus-visible img {
  filter: brightness(0.92);
}
.gallery-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 50%;
  background: rgba(200, 146, 42, 0.95);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, background 0.2s ease;
}
.gallery-video-play i {
  margin-left: 0.2rem;
}
.gallery-video-poster:hover .gallery-video-play,
.gallery-video-poster:focus-visible .gallery-video-play {
  transform: translate(-50%, -50%) scale(1.06);
  background: var(--accent);
}
.gallery-video-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.75rem 1rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: left;
}
.gallery-video-embed iframe,
.gallery-video-embed .gallery-youtube-iframe {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-width: 100%;
  border: 0;
}
.gallery-video-embed:not(.is-playing) iframe {
  visibility: hidden;
  pointer-events: none;
}
.gallery-video-embed.is-playing .gallery-video-poster {
  display: none;
}
.gallery-video-embed.gallery-video-local:not(.is-playing) .gallery-video-poster {
  display: block;
}
.gallery-video-embed.gallery-video-local:not(.is-playing)::after {
  display: none;
}
.gallery-video-fallback {
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
  color: var(--text-mid);
  overflow-wrap: anywhere;
}
.gallery-video-fallback a {
  color: var(--primary);
  font-weight: 600;
}
@media (max-width: 768px) {
  .gallery-heritage-akbar .gallery-heritage-video {
    text-align: center;
  }
  .gallery-heritage-akbar .gallery-heritage-quote {
    text-align: left;
  }
}

.heritage-portrait-card figcaption strong {
  display: block;
  color: var(--primary);
  font-style: normal;
  margin-bottom: 0.35rem;
}
.section-img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
  height: 420px;
}

/* =====================================================
   CARDS
   ===================================================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-top: 4px solid var(--accent);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(0,0,0,0.15); }
.card-icon {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 1rem;
}
.card h3 { color: var(--primary); }

/* =====================================================
   GALLERY PREVIEW
   ===================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: pointer;
}
.gallery-grid img:hover { transform: scale(1.03); box-shadow: var(--shadow); }

/* =====================================================
   FULL GALLERY PAGE
   ===================================================== */
.gallery-full-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}
.gallery-full-grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: pointer;
}
.gallery-full-grid img:hover { transform: scale(1.03); box-shadow: var(--shadow); }

/* =====================================================
   CTA SECTION
   ===================================================== */
.cta-section {
  background: linear-gradient(135deg, var(--primary), #091830);
  color: white;
  padding: 5rem 0;
  text-align: center;
}
.cta-section h2 { color: white; }
.cta-section p  { color: rgba(255,255,255,0.8); max-width: 600px; margin: 0 auto 1rem; }

/* =====================================================
   PAGE HERO (inner pages)
   ===================================================== */
.page-hero {
  background: linear-gradient(135deg, var(--primary), #091830);
  padding: 7rem 1.5rem 4rem;
  text-align: center;
  color: white;
}
.page-hero h1 { color: white; }
.page-hero p  { color: rgba(255,255,255,0.75); max-width: 600px; margin: 0 auto; }
.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.5); margin-bottom: 0.75rem; }
.breadcrumb a { color: var(--accent); text-decoration: none; }

/* =====================================================
   ABOUT PAGE
   ===================================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.team-card {
  text-align: center;
  background: white;
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
}
.team-card img {
  width: 90px; height: 90px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 3px solid var(--accent);
}
.team-card h4 { color: var(--primary); }
.team-card span { font-size: 0.85rem; color: var(--accent); }

/* =====================================================
   EVENTS PAGE
   ===================================================== */
.events-list { display: flex; flex-direction: column; gap: 2rem; margin-top: 2rem; }
.event-card {
  display: flex;
  gap: 2rem;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}
.event-card:hover { transform: translateY(-4px); }
.event-date {
  background: var(--primary);
  color: white;
  min-width: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
}
.event-date .day   { font-size: 2.5rem; font-weight: 700; line-height: 1; }
.event-date .month { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; }
.event-info { padding: 1.5rem; }
.event-info h3 { color: var(--primary); }
.event-meta { font-size: 0.85rem; color: var(--accent); margin-bottom: 0.5rem; }

/* =====================================================
   PROGRAMS PAGE
   ===================================================== */
.program-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}
.program-section.reverse { direction: rtl; }
.program-section.reverse > * { direction: ltr; }
.program-section img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* =====================================================
   CONTACT PAGE
   ===================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}
.contact-info h3 { color: var(--primary); margin-bottom: 1.5rem; }
.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}
.contact-item i {
  font-size: 1.2rem;
  color: var(--accent);
  margin-top: 3px;
  min-width: 20px;
}
.contact-form { background: white; padding: 2.5rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-dark);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
  background: var(--light-bg);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  background: white;
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.btn-submit {
  width: 100%;
  background: var(--accent);
  color: white;
  border: none;
  padding: 0.9rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.btn-submit:hover { background: #a97420; transform: translateY(-2px); }
.btn-submit:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer { background: #091830; color: rgba(255,255,255,0.75); padding: 4rem 0 0; }
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
}
.footer-logo {
  height: 192px;
  width: auto;
  border-radius: 8px;
  background: white;
  padding: 4px;
  margin-bottom: 1rem;
  object-fit: contain;
}
.footer-brand p { font-size: 0.9rem; }
.footer-links h4,
.footer-contact h4 { color: white; margin-bottom: 1rem; font-size: 1rem; }
.footer-links { display: flex; flex-direction: column; gap: 0; }
.footer-links a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.25rem 0;
  transition: var(--transition);
}
.footer-links a:hover { color: var(--accent); }
.footer-contact p { font-size: 0.9rem; display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.footer-contact i { color: var(--accent); }
.social-icons { display: flex; gap: 0.75rem; margin-top: 1rem; }
.social-icons a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}
.social-icons a:hover { background: var(--accent); }
.footer-bottom {
  text-align: center;
  padding: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

/* =====================================================
   LIGHTBOX
   ===================================================== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: 8px; object-fit: contain; }
.lightbox-close {
  position: absolute;
  top: 1rem; right: 1.5rem;
  color: white; font-size: 2.5rem;
  cursor: pointer; background: none; border: none;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

/* --- Tablet landscape: ≤1024px --- */
@media (max-width: 1024px) {
  .nav-links { gap: 1.2rem; }
  .footer-inner { grid-template-columns: 1.5fr 1fr 1.5fr; gap: 2rem; }
  .hist-row-4 { grid-template-columns: repeat(2, 1fr) !important; }
}

/* --- Tablet portrait: ≤900px --- */
@media (max-width: 900px) {
  .section { padding: 3.5rem 0; }
  .two-col         { grid-template-columns: 1fr; gap: 2rem; }
  .program-section { grid-template-columns: 1fr; }
  .program-section.reverse { direction: ltr; }
  .contact-grid    { grid-template-columns: 1fr; }
  .footer-inner    { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .gallery-grid    { grid-template-columns: repeat(2, 1fr); }
  .event-card      { flex-direction: column; }
  .event-date      { flex-direction: row; gap: 1rem; justify-content: flex-start; padding: 1rem 1.5rem; }
  .hist-row-3 { grid-template-columns: repeat(2, 1fr) !important; }
  .hist-row-4 { grid-template-columns: repeat(2, 1fr) !important; }
  .section-img { height: 300px; }
}

/* --- Mobile: ≤768px --- */
@media (max-width: 768px) {
  /* Navbar */
  .nav-links  { display: none; }
  .hamburger  { display: block; }
  .nav-container { height: 70px; }
  .logo-img { height: 62px; }
  .hero { padding-top: 70px; }
  .page-hero { padding: 5.5rem 1.25rem 3rem; }

  /* Hero logo */
  .hero-logo { width: 240px; height: 240px; padding: 12px; }

  /* Footer logo */
  .footer-logo { height: 120px; }

  /* Layout */
  .section { padding: 3rem 0; }
  .container { padding: 0 1.25rem; }
  .two-col  { grid-template-columns: 1fr; gap: 1.5rem; }
  .text-block { padding-right: 0; }

  /* Historical figure grids */
  .hist-row-3 { grid-template-columns: repeat(2, 1fr) !important; gap: 1.25rem !important; }
  .hist-row-4 { grid-template-columns: repeat(2, 1fr) !important; gap: 1.25rem !important; }

  /* Gallery */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-full-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-full-grid img { height: 200px; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-brand { text-align: center; display: flex; flex-direction: column; align-items: center; }

  /* Mission strip */
  .strip-item { padding: 0.9rem 1.2rem; font-size: 0.85rem; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.2); width: 100%; justify-content: center; }
  .mission-strip { flex-direction: column; }

  /* Events */
  .event-card { flex-direction: column; }
  .event-date { flex-direction: row; gap: 1rem; justify-content: flex-start; padding: 1rem 1.5rem; }

  /* Forms */
  .form-row { grid-template-columns: 1fr; }

  /* CTA section */
  .cta-section { padding: 3.5rem 0; }
  .hero-btns { flex-direction: column; align-items: center; gap: 0.75rem; }
  .hero-btns a { width: 100%; max-width: 280px; text-align: center; }
}

/* --- Small mobile: ≤480px --- */
@media (max-width: 480px) {
  /* Navbar */
  .nav-container { height: 62px; }
  .logo-img { height: 54px; }
  .hero { padding-top: 62px; }

  /* Hero */
  .hero-logo { width: 200px; height: 200px; padding: 10px; }
  .hero-content { padding: 1.5rem 1rem; }
  .hero-content p { font-size: 1rem; }

  /* Historical figure grids — single column on very small screens */
  .hist-row-3 { grid-template-columns: 1fr !important; }
  .hist-row-4 { grid-template-columns: 1fr !important; }

  /* Gallery */
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-full-grid { grid-template-columns: 1fr; }
  .gallery-full-grid img { height: 220px; }

  /* Footer */
  .footer-logo { height: 90px; }
  .footer-inner { gap: 1.5rem; }

  /* Cards */
  .cards-grid { grid-template-columns: 1fr; gap: 1.25rem; }

  /* Section */
  .section { padding: 2.5rem 0; }
  .container { padding: 0 1rem; }
  .page-hero { padding: 5rem 1rem 2.5rem; }

  /* Program sections */
  .program-section { margin-bottom: 2.5rem; gap: 1.5rem; }
  .program-section img { height: 220px; }

  /* Contact form */
  .contact-form { padding: 1.5rem; }

  /* Mobile menu links bigger tap targets */
  .mobile-menu a { padding: 0.85rem 0; font-size: 1.05rem; }
}
