/*
Theme Name: Des Punjab TV
Theme URI: https://despunjab.tv
Author: Des Punjab TV
Author URI: https://despunjab.tv
Description: Custom WordPress theme for Des Punjab TV, a Punjabi-language spiritual & cultural media platform broadcasting live Gurbani & Kirtan from sacred Sikh historical sites in Pakistan.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: des-punjab-tv
*/

/* ==========================================================================
   DES PUNJAB TV â€” Homepage Stylesheet
   Palette: Deep Royal Blue (primary) / Saffron Gold (accent) / Warm Ivory (bg) / Charcoal (text)
   Fonts: Playfair Display (headings) / Inter (body & UI)
   ========================================================================== */

:root {
  /* Colors */
  --navy-900: #0a1c47;
  --navy-800: #0d2158;
  --navy-700: #123574;
  --blue-600: #1a4696;
  --blue-500: #2a5bb8;
  --gold-500: #e0a821;
  --gold-400: #f2c84b;
  --gold-600: #c1891a;
  --ivory-50: #fbf8f2;
  --ivory-100: #f5f0e6;
  --charcoal-900: #201d1a;
  --charcoal-700: #423e38;
  --white: #ffffff;
  --red-live: #d81f2b;

  /* Type */
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --container-w: 1280px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --shadow-sm: 0 2px 8px rgba(10, 28, 71, 0.08);
  --shadow-md: 0 10px 30px rgba(10, 28, 71, 0.14);
  --shadow-lg: 0 20px 50px rgba(10, 28, 71, 0.22);
  --header-h: 96px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal-900);
  background: var(--ivory-50);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-head); margin: 0; line-height: 1.15; }
/* All body copy is centered site-wide per design direction; headings (e.g.
   the hero title) are unaffected since this rule targets <p> only. */
p { margin: 0; text-align: center; }
button { font-family: inherit; cursor: pointer; }
.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 28px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.text-gold { color: var(--gold-400); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.3px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold {
  background: linear-gradient(180deg, var(--gold-400), var(--gold-500));
  color: var(--navy-900);
  box-shadow: var(--shadow-sm);
}
.btn--gold:hover { box-shadow: 0 10px 24px rgba(224,168,33,.35); }
.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.7);
}
.btn--outline:hover { background: rgba(255,255,255,.12); }
.btn--outline-navy {
  background: transparent;
  color: var(--navy-800);
  border-color: var(--navy-800);
  margin-top: 22px;
}
.btn--outline-navy:hover { background: var(--navy-800); color: var(--white); }
.btn--sm { padding: 7px 14px; font-size: 0.64rem; }
.btn--block { display: flex; width: 100%; }

.link-arrow {
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: .4px;
  color: var(--navy-800);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: border-color .18s ease, color .18s ease;
}
.link-arrow:hover { border-color: var(--gold-500); color: var(--gold-600); }

/* ---------- Section headings ---------- */
.section-eyebrow {
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 1.4px;
  color: var(--gold-600);
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}
.section-eyebrow--light { color: var(--gold-400); }
.section-title {
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  font-weight: 800;
  color: var(--navy-900);
  max-width: 720px;
}
.section-head { text-align: center; margin-bottom: 44px; }
.section-head .section-title { margin: 0 auto; }

/* Keep the homepage editorial copy aligned without changing inner pages. */
.home-page section,
.home-page section p,
.home-page .section-head,
.home-page .value-card,
.home-page .core-values-home__cta,
.home-page .why-matters__cta { text-align: left; }
.home-page .section-head .section-title { margin-left: 0; margin-right: 0; }
.home-page .why-matters__cta { margin-top: 36px; }
body.home .global-reach p { text-align: left; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.header-top__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 10px 28px;
  min-height: calc(var(--header-h) * 0.7);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand__logo {
  width: 52px;
  height: auto;
}
.social-icons { display: flex; gap: 10px; }
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ivory-100);
  color: var(--navy-800);
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.social-icons a:hover { background: var(--navy-800); color: var(--white); transform: translateY(-2px); }
.social-icons--light a { background: rgba(255,255,255,.1); color: var(--white); }
.social-icons--light a:hover { background: var(--gold-500); color: var(--navy-900); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* ---------- Mobile hamburger menu toggle ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy-800);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   PRIMARY SITE NAVIGATION (always visible, no hamburger/collapse; shares the
   header row with the logo)
   ========================================================================== */
.site-nav {
  flex: 1 1 auto;
  min-width: 0;
}
.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px 4px;
  padding: 0;
}
.site-nav__list > li { position: relative; }
.site-nav__list a,
.site-nav__toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: var(--navy-800);
  background: none;
  border: none;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}
.site-nav__list a:hover,
.site-nav__list a.active,
.site-nav__toggle:hover,
.site-nav__toggle.active,
.site-nav__item.is-open > .site-nav__toggle {
  color: var(--gold-600);
  border-color: var(--gold-500);
  background: var(--ivory-100);
}
.site-nav__caret {
  font-size: 0.6em;
  line-height: 1;
  transition: transform .18s ease;
}
.site-nav__item.is-open .site-nav__caret { transform: rotate(180deg); }

/* ---------- Dropdown panels (About / Heritage / Global) ---------- */
.site-nav__dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  min-width: 220px;
  background: var(--white);
  border: 1px solid rgba(10,28,71,.1);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  z-index: 60;
}
.site-nav__item:hover > .site-nav__dropdown,
.site-nav__item:focus-within > .site-nav__dropdown,
.site-nav__item.is-open > .site-nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.site-nav__dropdown a {
  display: block;
  padding: 10px 14px;
  white-space: nowrap;
  border-bottom: none;
  color: var(--navy-800);
}
.site-nav__dropdown a:hover,
.site-nav__dropdown a.active {
  border-color: transparent;
  color: var(--gold-600);
  background: var(--ivory-100);
}

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }

  /* Collapse the primary nav into a hamburger-triggered dropdown panel that
     sits directly below the header; JS toggles the .is-open class. */
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 0;
    overflow: hidden;
    flex: none;
    background: var(--white);
    box-shadow: var(--shadow-md);
    transition: max-height .28s ease;
    z-index: 999;
  }
  .site-nav.is-open { max-height: 80vh; overflow-y: auto; }
  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 8px 20px 22px;
  }
  .site-nav__list > li { width: 100%; }
  .site-nav__list a,
  .site-nav__toggle {
    width: 100%;
    justify-content: space-between;
    font-size: 0.85rem;
    padding: 13px 6px;
    border-radius: 0;
    border-bottom: 1px solid rgba(10,28,71,.08);
  }
}

/* Nav still wraps on very small phones if JS is unavailable; dropdowns
   become static inline panels (accordion-style) so nothing can spill past
   the viewport edge and no floating box contributes to page overflow. */
@media (max-width: 980px) {
  .site-nav__dropdown {
    position: static;
    left: auto;
    min-width: 0;
    max-width: none;
    width: 100%;
    margin-top: 2px;
    transform: none;
    opacity: 1;
    visibility: visible;
    display: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0 0 4px 14px;
    background: var(--ivory-100);
  }
  .site-nav__item:hover > .site-nav__dropdown,
  .site-nav__item:focus-within > .site-nav__dropdown,
  .site-nav__item.is-open > .site-nav__dropdown {
    display: flex;
    transform: none;
  }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background-color: #0a1730;
  min-height: 640px;
  display: flex;
  align-items: center;
  padding: 64px 0 80px;
  color: var(--white);
}
.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 38%;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(6,13,34,.5) 0%, rgba(6,13,34,0) 22%),
    linear-gradient(100deg, rgba(6,13,34,.9) 0%, rgba(6,13,34,.74) 22%, rgba(6,13,34,.34) 44%, rgba(6,13,34,.08) 60%, rgba(6,13,34,0) 78%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-start;
  width: 100%;
}
.hero__content {
  max-width: 720px;
  text-align: left;
}
.hero__headline {
  font-size: clamp(2.1rem, 4.4vw, 3.1rem);
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 22px;
  text-shadow: 0 2px 18px rgba(0,0,0,.35);
}
.hero__copy {
  max-width: 520px;
  margin: 0 0 30px;
  font-size: 1.05rem;
  color: rgba(255,255,255,.88);
}
.hero__ctas { display: flex; gap: 16px; flex-wrap: wrap; justify-content: flex-start; }

.live-card {
  position: relative;
  background: rgba(8, 17, 42, 0.82);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 26px 28px 28px;
  box-shadow: var(--shadow-lg);
}
.live-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--red-live);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 5px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
}
.live-card__badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--white);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.live-card__title { font-size: 1.35rem; font-weight: 700; margin-bottom: 10px; }
.live-card__location { font-size: 0.92rem; color: var(--gold-400); font-weight: 600; margin-bottom: 20px; }

/* ==========================================================================
   INFO STRIP
   ========================================================================== */
.info-strip {
  background: var(--navy-900);
  border-top: 1px solid rgba(255,255,255,.06);
}
.info-strip__inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  padding: 26px 28px;
}
.info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(255,255,255,.85);
}
.info-item__icon {
  color: var(--gold-400);
  flex-shrink: 0;
  margin-top: 2px;
}
.info-item__text { display: flex; flex-direction: column; gap: 3px; font-size: 0.8rem; }
.info-item__text strong { font-size: 0.86rem; color: var(--white); font-weight: 700; }

/* ==========================================================================
   WHY MATTERS
   ========================================================================== */
.why-matters { padding: 84px 0; background: var(--ivory-50); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.why-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(10,28,71,.06);
  transition: transform .22s ease, box-shadow .22s ease;
}
.why-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.why-card__num {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--gold-500);
  margin-bottom: 14px;
}
.why-card__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 10px;
}
.why-card__text { font-size: 0.9rem; color: var(--charcoal-700); }

/* ==========================================================================
   PROGRAMS + SACRED SITES SPLIT
   ========================================================================== */
.content-split { padding: 20px 0 90px; background: var(--ivory-50); }
.content-split__inner {
  display: grid;
  grid-template-columns: 1.05fr 1.4fr;
  gap: 36px;
  align-items: start;
}
.panel__head { margin-bottom: 22px; }
.panel__head--row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}
.panel__title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy-900);
  max-width: 420px;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.program-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 14px 16px;
  border-radius: var(--radius-md);
  color: var(--white);
  min-height: 130px;
  box-shadow: var(--shadow-sm);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.program-tile::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(8,18,45,.55) 0%, rgba(8,18,45,.78) 65%, rgba(8,18,45,.9) 100%);
  z-index: 0;
}
.program-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.program-tile:hover::before { background: linear-gradient(200deg, rgba(8,18,45,.4) 0%, rgba(8,18,45,.68) 65%, rgba(8,18,45,.85) 100%); }
.program-tile__icon,
.program-tile__label,
.program-tile__desc,
.program-tile__live { position: relative; z-index: 1; }
.program-tile__icon { color: var(--gold-400); }
.program-tile__label { font-weight: 700; font-size: 0.86rem; margin-top: 4px; }
.program-tile__desc { font-size: 0.72rem; opacity: .88; }
.program-tile__live {
  position: absolute; top: 10px; right: 10px;
  background: var(--red-live);
  font-size: 0.62rem; font-weight: 800; letter-spacing: .5px;
  padding: 2px 7px; border-radius: 3px;
  z-index: 2;
}

.sites-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.site-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.site-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.site-card__img {
  height: 130px;
  position: relative;
  overflow: hidden;
}
.site-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .35s ease;
}
.site-card:hover .site-card__img img { transform: scale(1.06); }
.site-card__img::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,28,71,0) 55%, rgba(10,28,71,.25) 100%);
}
.site-card__title { font-size: 0.92rem; font-weight: 700; color: var(--navy-900); padding: 14px 14px 2px; }
.site-card__loc { font-size: 0.78rem; color: var(--charcoal-700); padding: 0 14px 16px; }

/* ==========================================================================
   HERITAGE / GURU NANAK TEASER
   ========================================================================== */
.heritage-teaser { background: var(--navy-800); padding: 80px 0; }
.heritage-teaser__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.heritage-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 480px;
  background-color: #0d1c40;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 40px;
  color: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform .25s ease, box-shadow .25s ease;
}
.heritage-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.heritage-card::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(6,13,34,.92) 0%, rgba(6,13,34,.55) 45%, rgba(6,13,34,.15) 75%, rgba(6,13,34,.05) 100%);
  z-index: 0;
}
.heritage-card > * { position: relative; z-index: 1; }
.heritage-card__title { font-size: 1.6rem; font-weight: 800; margin-bottom: 16px; max-width: 420px; }
.heritage-card__text { color: rgba(255,255,255,.82); margin-bottom: 26px; max-width: 440px; }
.heritage-card > .btn { align-self: flex-start; }

/* ==========================================================================
   GLOBAL REACH BAND
   ========================================================================== */
.global-reach { background: var(--navy-900); color: var(--white); padding: 60px 0; }
.global-reach__inner {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 1.3fr;
  gap: 32px;
}
.global-reach__inner > div + div { border-left: 1px solid rgba(255,255,255,.12); padding-left: 32px; }
.global-reach__title { font-size: 1.15rem; font-weight: 700; max-width: 320px; margin-bottom: 18px; }
.world-map { max-width: 320px; margin-bottom: 16px; opacity: .95; }
.country-list {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 8px 24px;
  font-size: 0.85rem;
  color: rgba(255,255,255,.85);
}
.country-list li { position: relative; padding-left: 16px; }
.country-list li::before {
  content: "";
  position: absolute; left: 0; top: 7px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold-400);
}

.reach-quote {
  margin: 0;
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--white);
}
.reach-quote__mark { color: var(--gold-400); font-size: 2rem; line-height: 0; vertical-align: -8px; margin-right: 4px; }
.reach-quote cite { display: block; margin-top: 14px; font-style: normal; font-size: 0.85rem; color: var(--gold-400); font-family: var(--font-body); font-weight: 600; }

.reach-col__title { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.reach-col__text { font-size: 0.85rem; color: rgba(255,255,255,.75); margin-bottom: 16px; }

.subscribe-form { display: flex; gap: 8px; margin-top: 18px; }
.subscribe-form input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08);
  color: var(--white);
  font-size: 0.85rem;
}
.subscribe-form input::placeholder { color: rgba(255,255,255,.55); }
.subscribe-form input:focus { outline: 2px solid var(--gold-400); outline-offset: 1px; }
.subscribe-form__msg { margin-top: 10px; font-size: 0.8rem; color: var(--gold-400); min-height: 1em; }

/* ---------- Merged "Join Our Community" contact block ---------- */
.community-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.community-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: rgba(255,255,255,.85);
  line-height: 1.5;
}
.community-contact svg { flex-shrink: 0; margin-top: 2px; color: var(--gold-400); }
.community-contact a { color: rgba(255,255,255,.85); transition: color .18s ease; }
.community-contact a:hover { color: var(--gold-400); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--navy-900); border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; color: rgba(255,255,255,.8); }
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.82rem;
}
.site-footer__links { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer__links li { display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,.7); }
.site-footer__email { display: flex; align-items: center; gap: 6px; color: var(--gold-400); font-weight: 600; }
.site-footer__email:hover { text-decoration: underline; }

/* ==========================================================================
   MOBILE BOTTOM TAB BAR
   ========================================================================== */
.mobile-tabbar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--navy-900);
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 8px 4px calc(env(safe-area-inset-bottom, 0px) + 6px);
  justify-content: space-around;
}
.mobile-tabbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 0.62rem;
  font-weight: 600;
  color: rgba(255,255,255,.6);
}
.mobile-tabbar a.active, .mobile-tabbar a:hover { color: var(--gold-400); }

/* ==========================================================================
   PSGPC PAGE
   ========================================================================== */
.page-banner {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  padding: 70px 0 56px;
  text-align: center;
}
.page-banner__inner { max-width: 1040px; margin: 0 auto; }
.page-banner__title {
  font-size: clamp(1.35rem, 2.1vw, 1.85rem);
  font-weight: 800;
  color: var(--white);
  text-shadow: 0 2px 18px rgba(0,0,0,.35);
}
.psgpc-section { padding: 84px 0; background: var(--ivory-50); }
.psgpc-section__inner { max-width: 780px; margin: 0 auto; }
.psgpc-section__inner p {
  font-size: 1.05rem;
  color: var(--charcoal-700);
  line-height: 1.8;
  margin-bottom: 22px;
}
.psgpc-cta {
  margin-top: 46px;
  background: var(--white);
  border: 1px solid rgba(10,28,71,.08);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.psgpc-cta__title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy-900);
  max-width: 620px;
  margin: 0 auto 24px;
}


/* ==========================================================================
   CORE VALUES (Homepage compact section)
   ========================================================================== */
.core-values-home { padding: 84px 0; background: var(--navy-900); }
.core-values-home .section-eyebrow,
.core-values-home .section-title { color: var(--white); }
.core-values-home .section-eyebrow { color: var(--gold-400); }
.value-grid--home {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-bottom: 40px;
}
.value-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  text-align: center;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.value-card:hover { transform: translateY(-6px); background: rgba(255,255,255,.08); box-shadow: var(--shadow-md); }
.value-card__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-400), var(--gold-600));
  color: var(--navy-900);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.15rem;
  margin: 0 auto 16px;
}
.value-card__title { font-size: 1.05rem; font-weight: 800; color: var(--white); margin-bottom: 4px; }
.value-card__subtitle {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 12px;
}
.value-card__text { font-size: 0.85rem; color: rgba(255,255,255,.78); line-height: 1.6; }
.core-values-home__cta { text-align: center; }
.reach-link {
  display: inline-block;
  margin-top: 16px;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: .3px;
  color: var(--gold-400);
  border-bottom: 2px solid rgba(242,200,75,.4);
  transition: border-color .18s ease;
}
.reach-link:hover { border-color: var(--gold-400); }

/* On light backgrounds (full Core Values page), values use white cards */
.value-card--light {
  background: var(--white);
  border: 1px solid rgba(10,28,71,.08);
  box-shadow: var(--shadow-sm);
}
.value-card--light:hover { box-shadow: var(--shadow-md); background: var(--white); }
.value-card--light .value-card__title { color: var(--navy-900); }
.value-card--light .value-card__subtitle { color: var(--gold-600); }
.value-card--light .value-card__text { color: var(--charcoal-700); }

/* ==========================================================================
   SHARED CONTENT PAGES (About, Live Gurbani, Sacred Sites, Programs,
   Punjabi Heritage, Guru Nanak Dev Ji, Core Values, Global Reach,
   Media & Partnerships, Contact)
   ========================================================================== */
.page-banner__eyebrow-wrap { margin-bottom: 12px; }
.page-banner__lede {
  margin-top: 18px;
  font-size: 1.02rem;
  color: rgba(255,255,255,.82);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
.page-banner__lede + .page-banner__lede { margin-top: 12px; }

.content-section { padding: 76px 0; }
.content-section--alt { background: var(--ivory-100); }
.content-section__inner { max-width: 1100px; margin: 0 auto; }
.content-section__inner--narrow { max-width: 780px; margin: 0 auto; }
.content-section__inner p { font-size: 1.02rem; color: var(--charcoal-700); line-height: 1.8; margin-bottom: 20px; }
.content-section__inner p:last-child { margin-bottom: 0; }

.subsection-eyebrow {
  font-weight: 800;
  font-size: 0.74rem;
  letter-spacing: 1.2px;
  color: var(--gold-600);
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}
.subsection-title { font-size: 1.35rem; font-weight: 800; color: var(--navy-900); margin-bottom: 14px; }

.card-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card-grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }

.info-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.info-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.info-card__num {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold-500);
  margin-bottom: 14px;
}
.info-card__title { font-size: 1.15rem; font-weight: 700; color: var(--navy-900); margin-bottom: 10px; }
.info-card__text { font-size: 0.92rem; color: var(--charcoal-700); line-height: 1.7; }

.cta-banner {
  margin-top: 46px;
  background: var(--white);
  border: 1px solid rgba(10,28,71,.08);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.cta-banner__title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy-900);
  max-width: 620px;
  margin: 0 auto 24px;
}
.cta-banner__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
/* Reset the standalone-link spacing that .btn--outline-navy normally carries
   when it's used inside a CTA banner's button row */
.cta-banner__actions .btn--outline-navy { margin-top: 0; }
/* When a CTA banner has exactly two buttons, make them equal width but compact */
.cta-banner__actions .btn:first-child:nth-last-child(2),
.cta-banner__actions .btn:first-child:nth-last-child(2) ~ .btn {
  flex: 1 1 0;
  min-width: 0;
  max-width: 230px;
}

/* Sacred Sites detail cards */
.site-detail-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.site-detail-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.site-detail-card__img { height: 210px; overflow: hidden; }
.site-detail-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.site-detail-card:hover .site-detail-card__img img { transform: scale(1.06); }
.site-detail-card__body { padding: 22px 24px 26px; }
.site-detail-card__loc {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 6px;
  display: block;
}
.site-detail-card__title { font-size: 1.2rem; font-weight: 800; color: var(--navy-900); margin-bottom: 10px; }
.site-detail-card__text { font-size: 0.9rem; color: var(--charcoal-700); line-height: 1.7; }

/* Placeholder image slot for sites without a photo yet */
.site-detail-card__img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-900));
  color: var(--gold-400);
}
.site-detail-card__img--placeholder svg { opacity: .85; }

/* Clickable images that open the shared lightbox (see .lightbox in the
   media gallery section below); kept separate from .gallery-item so its
   grid-specific sizing rules don't affect other card layouts. */
.lightbox-trigger { cursor: pointer; }

/* Full-detail sacred-site cards (complete historical text, image + wide body) */
.site-detail-list { display: flex; flex-direction: column; gap: 28px; }
.site-detail-card--wide { display: flex; flex-direction: row; align-items: stretch; }
.site-detail-card--wide .site-detail-card__img { flex: 0 0 320px; height: auto; }
.site-detail-card--wide .site-detail-card__body { flex: 1; padding: 30px 34px; min-width: 0; }
.site-detail-card__subtitle {
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--gold-600);
  margin-bottom: 14px;
}
.site-detail-card--wide .site-detail-card__text + .site-detail-card__text { margin-top: 14px; }
.site-detail-card__subhead {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(10, 28, 71, 0.12);
}
.site-detail-card__subhead-title {
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--navy-900);
  font-size: 1.08rem;
  margin-bottom: 4px;
}
.site-detail-card__subhead-meta {
  font-family: var(--font-head);
  font-style: italic;
  color: var(--gold-600);
  font-size: 0.94rem;
  margin-bottom: 12px;
  display: block;
}

#holy-sites .card-grid-2 { align-items: start; }
#holy-sites .site-detail-card__img {
  height: 320px;
  background: var(--ivory-100);
}
#holy-sites .site-detail-card__img img { object-fit: contain; }
#holy-sites .site-detail-card:hover .site-detail-card__img img { transform: none; }
#holy-sites .site-detail-card.has-preview .site-detail-card__body {
  display: flex;
  flex-direction: column;
  min-height: 400px;
  text-align: left;
}
#holy-sites .site-detail-card__body p { text-align: left; }
#holy-sites .site-detail-card__title { min-height: 2.5em; }
#holy-sites .site-detail-card__subtitle { min-height: 2.7em; }
#holy-sites .site-detail-card__text { line-height: 1.85; }
#holy-sites .site-detail-card__text + .site-detail-card__text { margin-top: 16px; }
#holy-sites .site-detail-card__extra[hidden] { display: none; }
#holy-sites .site-detail-card__extra > .site-detail-card__text:first-child { margin-top: 16px; }
#holy-sites .site-detail-card__more {
  align-self: flex-start;
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--navy-800);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
#holy-sites .site-detail-card__more:hover,
#holy-sites .site-detail-card__more:focus-visible { color: var(--gold-600); }
#holy-sites .site-detail-card__more[hidden] { display: none; }
@media (max-width: 600px) {
  #holy-sites .site-detail-card__img { height: 260px; }
  #holy-sites .site-detail-card.has-preview .site-detail-card__body { min-height: 550px; }
}
@media (max-width: 860px) {
  .site-detail-card--wide { flex-direction: column; }
  .site-detail-card--wide .site-detail-card__img { flex: none; height: 220px; width: 100%; }
  .site-detail-card--wide .site-detail-card__body { padding: 24px 20px 28px; }
}

/* Guru Nanak legacy sections (life / teachings / travels / udasis / sites) */
.legacy-list { display: flex; flex-direction: column; gap: 0; }
.legacy-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(10,28,71,.08);
}
.legacy-item:last-child { border-bottom: none; }
.legacy-item__num { font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: var(--gold-500); }
.legacy-item__title { font-size: 1.15rem; font-weight: 800; color: var(--navy-900); margin-bottom: 8px; }
.legacy-item__text { font-size: 0.95rem; color: var(--charcoal-700); line-height: 1.75; }

/* Global reach standalone page reuses navy band styles; page-specific tweaks */
.global-reach--page { padding: 76px 0; }

/* ==========================================================================
   SRI GURU NANAK DEV JI SAHIB — editorial page (life / teachings / udasis / message)
   ========================================================================== */
.gn-section__head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 8px; }
.gn-section__num { font-family: var(--font-head); font-size: 1.7rem; font-weight: 800; color: var(--gold-500); line-height: 1; }
.gn-section__eyebrow {
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--gold-600);
}
.gn-section__title {
  font-size: clamp(1.5rem, 2.4vw, 2.05rem);
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 26px;
  max-width: 760px;
}
.gn-lead { font-weight: 700; color: var(--navy-900); }

/* Teachings concept grid */
.gn-concepts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 10px;
}
.gn-concept-card {
  background: var(--white);
  border: 1px solid rgba(10,28,71,.08);
  border-radius: var(--radius-md);
  padding: 20px 18px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.gn-concept-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.gn-concept-card__term {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: .3px;
  color: var(--navy-900);
  margin-bottom: 6px;
}
.gn-concept-card__def { font-size: 0.85rem; color: var(--charcoal-700); line-height: 1.5; }

/* Udasis grid */
.gn-udasi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 10px;
}
.gn-udasi-card {
  background: var(--white);
  border: 1px solid rgba(10,28,71,.06);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  box-shadow: var(--shadow-sm);
}
.gn-udasi-card__eyebrow {
  display: block;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 6px;
}
.gn-udasi-card__title { font-size: 1.2rem; font-weight: 800; color: var(--navy-900); margin-bottom: 16px; }
.gn-udasi-card p { font-size: 0.92rem; color: var(--charcoal-700); line-height: 1.7; margin-bottom: 14px; }
.gn-udasi-card p:last-of-type { margin-bottom: 0; }
.gn-udasi-card__meta { margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(10,28,71,.08); }
.gn-udasi-card__direction {
  display: inline-block;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--navy-900);
  background: var(--ivory-100);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.gn-udasi-card__regions-label { font-size: 0.78rem; font-weight: 700; color: var(--navy-800); margin-bottom: 6px !important; }
.gn-udasi-card__regions { font-size: 0.85rem; color: var(--gold-600); font-weight: 600; margin-bottom: 0 !important; }

/* Historical note callout */
.gn-note {
  margin-top: 40px;
  background: var(--ivory-100);
  border-left: 4px solid var(--gold-500);
  border-radius: var(--radius-md);
  padding: 28px 30px;
}
.gn-note__title {
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--navy-900);
  margin-bottom: 14px !important;
}

/* Message grid */
.gn-message-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 8px 0 36px;
}
.gn-message-card {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px 18px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.gn-message-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.gn-message-card__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--navy-900);
  margin-bottom: 10px;
}
.gn-message-card__text { font-size: 0.85rem; color: var(--charcoal-700); line-height: 1.55; }

@media (max-width: 980px) {
  .gn-concepts-grid { grid-template-columns: repeat(3, 1fr); }
  .gn-udasi-grid { grid-template-columns: 1fr; }
  .gn-message-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .gn-concepts-grid { grid-template-columns: repeat(2, 1fr); }
  .gn-message-grid { grid-template-columns: repeat(2, 1fr); }
  .gn-udasi-card { padding: 26px 22px; }
  .gn-section__head { flex-wrap: wrap; }
}

/* Media & Partnerships */
.objective-card { text-align: left; }

/* ==========================================================================
   MEDIA GALLERY (Images / Videos tabs + lightbox)
   ========================================================================== */
.gallery-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
}
.gallery-tab {
  font: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.3px;
  color: var(--navy-800);
  background: var(--white);
  border: 1px solid rgba(10,28,71,.12);
  padding: 12px 26px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.gallery-tab:hover { transform: translateY(-2px); }
.gallery-tab.active {
  background: var(--navy-900);
  color: var(--white);
  border-color: var(--navy-900);
}
.gallery-panel { display: none; }
.gallery-panel.active { display: block; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  background: var(--ivory-100);
  transition: transform .2s ease, box-shadow .2s ease;
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.gallery-item:hover img { transform: scale(1.06); }

.gallery-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  padding: 70px 20px;
  color: var(--charcoal-700);
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(10,28,71,.18);
}
.gallery-empty svg { color: var(--gold-500); }
.gallery-empty p { max-width: 420px; font-size: 0.95rem; }

/* ---------- Video grid ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.video-item {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  background: var(--navy-900);
  text-align: left;
  transition: transform .2s ease, box-shadow .2s ease;
}
.video-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.video-item video,
.video-item__poster {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #0a1730;
  background-size: cover;
  background-position: center;
}
.video-item::after {
  content: "";
  position: absolute;
  inset: 0;
  bottom: 44px;
  background: linear-gradient(180deg, rgba(6,13,34,0) 55%, rgba(6,13,34,.6) 100%);
  pointer-events: none;
}
.video-item__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% - 22px));
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.92);
  color: var(--navy-900);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  transition: background .18s ease, transform .18s ease;
}
.video-item:hover .video-item__play { background: var(--gold-400); transform: translate(-50%, calc(-50% - 22px)) scale(1.08); }
.video-item__play--download { color: var(--navy-900); }
.video-item__title {
  display: block;
  padding: 10px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  background: var(--navy-900);
}
.video-item__title em { display: block; font-style: normal; font-weight: 500; font-size: 0.72rem; color: rgba(255,255,255,.65); margin-top: 2px; }

/* ---------- Video lightbox ---------- */
.video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6,13,34,.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, visibility .22s ease;
}
.video-lightbox.is-open { opacity: 1; visibility: visible; }
.video-lightbox video {
  max-width: min(92vw, 1100px);
  max-height: 86vh;
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  background: #000;
}

@media (max-width: 980px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .video-grid { grid-template-columns: 1fr; gap: 14px; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6,13,34,.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, visibility .22s ease;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__img {
  max-width: min(90vw, 1100px);
  max-height: 86vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.1);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}
.lightbox__close:hover,
.lightbox__nav:hover { background: var(--gold-500); color: var(--navy-900); }
.lightbox__close {
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  font-size: 1.6rem;
  line-height: 1;
}
.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  font-size: 1.1rem;
}
.lightbox__nav:hover { transform: translateY(-50%); }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }

@media (max-width: 980px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gallery-tab { padding: 10px 20px; font-size: 0.8rem; }
  .lightbox__nav { width: 40px; height: 40px; }
  .lightbox__close { width: 38px; height: 38px; top: 12px; right: 12px; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
}


/* Contact page — "Get In Touch" two-column layout */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 60px;
  align-items: start;
}
.contact-info__title {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--navy-900);
  margin: 10px 0 28px;
}
.contact-details { display: flex; flex-direction: column; gap: 20px; margin-bottom: 28px; }
.contact-details li { display: flex; align-items: flex-start; gap: 14px; }
.contact-details__icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ivory-100);
  color: var(--gold-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.contact-details strong { display: block; font-size: 0.95rem; font-weight: 700; color: var(--navy-900); margin-bottom: 3px; }
.contact-details span > span,
.contact-details a { font-size: 0.9rem; color: var(--charcoal-700); line-height: 1.5; }
.contact-details a:hover { color: var(--gold-600); }

.contact-map { position: relative; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.contact-map iframe { width: 100%; height: 260px; border: 0; display: block; }
.contact-map__link {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blue-600);
  box-shadow: var(--shadow-sm);
  transition: color .18s ease;
}
.contact-map__link:hover { color: var(--gold-600); }

.contact-form { display: flex; flex-direction: column; gap: 20px; }
.contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-form__field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--navy-800);
  margin-bottom: 8px;
}
.contact-form__field input,
.contact-form__field select,
.contact-form__field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(10,28,71,.15);
  background: var(--ivory-100);
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--charcoal-900);
}
.contact-form__field textarea { resize: vertical; min-height: 130px; }
.contact-form__field input:focus,
.contact-form__field select:focus,
.contact-form__field textarea:focus { outline: 2px solid var(--gold-400); outline-offset: 1px; }
.contact-form > .btn { align-self: flex-start; }
.contact-form__msg { font-size: 0.85rem; color: var(--gold-600); min-height: 1em; }

/* Editorial alignment on every page except Holy Sites and Guru Nanak. */
main:not(:is(#holy-sites, #guru-nanak)) p,
main:not(:is(#holy-sites, #guru-nanak)) h1,
main:not(:is(#holy-sites, #guru-nanak)) h2,
main:not(:is(#holy-sites, #guru-nanak)) h3,
main:not(:is(#holy-sites, #guru-nanak)) h4,
main:not(:is(#holy-sites, #guru-nanak)) .section-head,
main:not(:is(#holy-sites, #guru-nanak)) .page-banner,
main:not(:is(#holy-sites, #guru-nanak)) .value-card,
main:not(:is(#holy-sites, #guru-nanak)) .cta-banner,
main:not(:is(#holy-sites, #guru-nanak)) .psgpc-cta,
main:not(:is(#holy-sites, #guru-nanak)) .gallery-empty { text-align: left; }
main:not(:is(#holy-sites, #guru-nanak)) .section-head .section-title,
main:not(:is(#holy-sites, #guru-nanak)) .page-banner__lede,
main:not(:is(#holy-sites, #guru-nanak)) .cta-banner__title,
main:not(:is(#holy-sites, #guru-nanak)) .psgpc-cta__title {
  margin-left: 0;
  margin-right: 0;
}
main:not(:is(#holy-sites, #guru-nanak)) .value-card__mark { margin-left: 0; margin-right: 0; }
main:not(:is(#holy-sites, #guru-nanak)) .cta-banner__actions { justify-content: flex-start; }
.live-sites__cta { margin-top: 36px; }
body.wp-theme-des-punjab-tv:not(.page-template-page-holy-sites):not(.page-template-page-guru-nanak) .global-reach p,
body.wp-theme-des-punjab-tv:not(.page-template-page-holy-sites):not(.page-template-page-guru-nanak) .global-reach h2,
body.wp-theme-des-punjab-tv:not(.page-template-page-holy-sites):not(.page-template-page-guru-nanak) .global-reach h3 {
  text-align: left;
}

/* Keep the About banner and statement sections on the same centered measure. */
main#about .page-banner__inner { max-width: 780px; }
main#about .page-banner__lede { max-width: none; }
main#about .page-banner,
main#about .content-section,
main#about .section-head,
main#about .info-card,
main#about .cta-banner,
main#about p,
main#about h1,
main#about h2,
main#about h3,
main#about h4 { text-align: center; }
main#about .section-head .section-title,
main#about .page-banner__lede,
main#about .cta-banner__title { margin-left: auto; margin-right: auto; }
main#about .cta-banner__actions { justify-content: center; }

main:is(#core-values, #programs, #media-partnerships, #psgpc, #contact) .page-banner,
main:is(#core-values, #programs, #media-partnerships, #psgpc, #contact) .page-banner p,
main:is(#core-values, #programs, #media-partnerships, #psgpc, #contact) .page-banner h1 { text-align: center; }
main:is(#core-values, #programs, #media-partnerships, #psgpc, #contact) .page-banner__inner { max-width: 780px; }
main:is(#core-values, #programs, #media-partnerships, #psgpc, #contact) .page-banner__lede {
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

main#punjabi-heritage .page-banner__inner { max-width: 780px; }
main#punjabi-heritage .page-banner__lede { max-width: none; }
main#punjabi-heritage .page-banner,
main#punjabi-heritage .content-section,
main#punjabi-heritage .section-head,
main#punjabi-heritage .info-card,
main#punjabi-heritage .cta-banner,
main#punjabi-heritage p,
main#punjabi-heritage h1,
main#punjabi-heritage h2,
main#punjabi-heritage h3 { text-align: center; }
main#punjabi-heritage .section-head .section-title,
main#punjabi-heritage .page-banner__lede,
main#punjabi-heritage .cta-banner__title { margin-left: auto; margin-right: auto; }
main#punjabi-heritage .cta-banner__actions { justify-content: center; }

/* ==========================================================================
   RESPONSIVE — CONTENT PAGES
   ========================================================================== */
@media (max-width: 1180px) {
  .value-grid--home { grid-template-columns: repeat(3, 1fr); }
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .card-grid-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 980px) {
  .card-grid-2, .card-grid-3 { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 760px) {
  .value-grid--home { grid-template-columns: repeat(2, 1fr); }
  .card-grid-2, .card-grid-3, .card-grid-4, .card-grid-5 { grid-template-columns: 1fr; }
  .contact-form__row { grid-template-columns: 1fr; }
  .legacy-item { grid-template-columns: 56px 1fr; gap: 16px; }
}
@media (max-width: 520px) {
  .value-grid--home { grid-template-columns: 1fr; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1180px) {
  .info-strip__inner { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .global-reach__inner { grid-template-columns: 1fr 1fr; }
  .global-reach__inner > div:nth-child(3) { border-left: none; padding-left: 0; }
}

@media (max-width: 980px) {
  .live-card { max-width: 420px; }
  .hero::after {
    background:
      linear-gradient(0deg, rgba(6,13,34,.6) 0%, rgba(6,13,34,0) 20%),
      linear-gradient(180deg, rgba(6,13,34,.35) 0%, rgba(6,13,34,.8) 60%, rgba(6,13,34,.92) 100%);
  }

  .content-split__inner { grid-template-columns: 1fr; }
  .sites-grid { grid-template-columns: repeat(2, 1fr); }

  .heritage-teaser__inner { grid-template-columns: 1fr; }

  body { padding-bottom: 64px; }
  .mobile-tabbar { display: flex; }
}

@media (max-width: 760px) {
  .header-top__inner { gap: 10px; padding: 10px 16px; }
  .brand__logo { width: 40px; }
  .header-actions .social-icons { display: none; }
  .header-actions .btn--sm { padding: 9px 14px; font-size: 0.72rem; }
  .container { padding: 0 18px; }
  .info-strip__inner { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .programs-grid { grid-template-columns: repeat(2, 1fr); }
  .global-reach__inner { grid-template-columns: 1fr; }
  .global-reach__inner > div { border-left: none !important; padding-left: 0 !important; border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; }
  .global-reach__inner > div:first-child { border-top: none; padding-top: 0; }
  .country-list { grid-template-columns: repeat(2, auto); }
  .site-footer__inner { flex-direction: column; text-align: center; }
}

@media (max-width: 520px) {
  .hero { padding: 40px 0 40px; min-height: 560px; background-position: 30% center; }
  .hero__headline { font-size: 1.8rem; }
  .why-grid { grid-template-columns: 1fr; }
  .programs-grid { grid-template-columns: repeat(2, 1fr); }
  .sites-grid { grid-template-columns: 1fr 1fr; }
  .subscribe-form { flex-direction: column; }
}
