/* ═══════════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════════ */
:root {
  /* Brand */
  --gold: #B8860B;
  --gold-light: #D4A017;
  --gold-dark: #7A5C08;
  --crimson: #8B1A2C;

  /* ── Cream / warm light background palette ── */
  --bg-page: #F5F0E8;
  --bg-section: #EDE8DF;
  --bg-card: #FFFFFF;
  --bg-card2: #F8F4EE;
  --bg-hero: #1A0F0A;

  /* Text */
  --text-primary: #1C1208;
  --text-secondary: #5C4A2A;
  --text-muted: #9C8B6E;
  --text-on-dark: #F5F0E8;

  /* Borders */
  --border: rgba(184, 134, 11, 0.18);
  --border-hover: rgba(184, 134, 11, 0.45);
  --border-card: rgba(184, 134, 11, 0.12);
}

/* ═══════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
}

/* ═══════════════════════════════════════════════
   NAV
═══════════════════════════════════════════════ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: 68px;
  background: rgba(245, 240, 232, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--gold), var(--crimson));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  box-shadow: 0 0 20px rgba(201, 168, 76, 0.25);
}

.nav-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.nav-logo-text span {
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-cta {
  border: 1.5px solid var(--gold) !important;
  color: var(--gold) !important;
  padding: 7px 20px;
  border-radius: 5px;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--gold) !important;
  color: #fff !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.nav-youtube {
  width: 120px;
  height: 48px;
  border-radius: 8px;
  background: var(--gold);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  transition: background 0.2s, transform 0.2s;
}

.nav-youtube:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

.nav-youtube img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-donate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  height: 48px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--crimson);
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  transition: background 0.2s, transform 0.2s;
}

.nav-donate:hover {
  background: #a21a34;
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════
   HERO SLIDER
═══════════════════════════════════════════════ */
#home {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--bg-hero);
  isolation: isolate; /* prevent child z-index bleed */
}

/* Slides */
.slider-track {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  transition: opacity 1.1s ease;
  overflow: hidden;
}

.slide.active {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}

.slide.leaving {
  opacity: 0;
  z-index: 0;
}

/* IMG-based slide */
.slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 10%; /* higher up — shows foreheads */
  transform: scale(1.06);
  transition: transform 8s ease;
  display: block;
}

.slide.active img {
  transform: scale(1.0);
}

/* ── MOBILE: hero matches 16:9 image ratio so full image is visible ── */
@media (max-width: 768px) {
  #home {
    min-height: unset;
    height: auto;
    padding-bottom: 0;
    display: block; /* override flex so children stack naturally */
  }

  .slider-track {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio box */
    height: 0;
    overflow: hidden;
    z-index: 0;
  }

  .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  .slide img {
    object-fit: contain;
    object-position: center center;
    background: var(--bg-hero);
    transform: none !important;
  }

  .slide.active img {
    transform: none !important;
  }

  .slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 56.25vw;
    z-index: 2;
    background:
      linear-gradient(to top,
        rgba(10, 6, 2, 0.6) 0%,
        rgba(10, 6, 2, 0.1) 50%,
        rgba(10, 6, 2, 0.0) 100%);
  }

  .hero-content {
    position: relative;
    z-index: 2;
    padding: 0.75rem 1.25rem 0.75rem;
    background: var(--bg-hero);
    max-width: 100%;
  }

  /* Shrink hero text on mobile */
  .hero-eyebrow {
    display: none;
  }

  .slide-cat-label {
    font-size: 10px;
    margin-bottom: 0.2rem;
  }

  h1 {
    font-size: 1.6rem !important;
    line-height: 1.1;
    margin-bottom: 0.25rem;
  }

  .slide-video-title {
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    min-height: unset;
  }

  .hero-btns {
    gap: 0.5rem;
  }

  .btn-play,
  .btn-outline {
    padding: 9px 14px;
    font-size: 12px;
    width: auto;
  }

  .slider-controls {
    position: relative;
    z-index: 2;
    background: var(--bg-hero);
    padding: 0.4rem 1.25rem 0.75rem;
  }

  .thumb-strip {
    display: none;
  }
}

/* Cinematic overlay */
.slider-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top,
      rgba(10, 6, 2, 0.96) 0%,
      rgba(10, 6, 2, 0.60) 28%,
      rgba(10, 6, 2, 0.15) 60%,
      rgba(10, 6, 2, 0.40) 100%),
    linear-gradient(to right, rgba(10, 6, 2, 0.5) 0%, transparent 55%);
}

/* Pagination bar */
.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
  padding: 0 2.5rem 2rem;
}

.per-page-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 13px;
  color: var(--text-muted);
}

.per-page-control select {
  width: auto;
  padding: 7px 10px;
  font-size: 13px;
  border: 1px solid var(--border-card);
  border-radius: 6px;
  background: var(--bg-card);
  color: var(--text-primary);
}

/* Hero text */
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 4rem 4rem;
  max-width: 860px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 160, 23, 0.15);
  border: 1px solid rgba(212, 160, 23, 0.35);
  border-radius: 100px;
  padding: 5px 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #E8C060;
  margin-bottom: 1.2rem;
}

.hero-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #E8C060;
  animation: blink 2s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1 }
  50% { opacity: 0.3 }
}

.slide-cat-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(232, 192, 96, 0.7);
  font-weight: 500;
  margin-bottom: 0.5rem;
  min-height: 1.3em;
  transition: opacity 0.4s;
}

h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 1.0;
  color: var(--text-on-dark);
  margin-bottom: 0.5rem;
  text-shadow: 0 3px 30px rgba(0, 0, 0, 0.5);
}

h1 em {
  color: var(--gold-light);
  font-style: italic;
}

.slide-video-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 400;
  font-style: italic;
  color: rgba(245, 240, 232, 0.72);
  line-height: 1.4;
  margin-bottom: 2rem;
  min-height: 2em;
  transition: opacity 0.4s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-play {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  padding: 13px 30px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(184, 134, 11, 0.35);
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}

.btn-play:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(184, 134, 11, 0.45);
  opacity: 0.93;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--text-on-dark);
  font-size: 14px;
  font-weight: 500;
  padding: 13px 30px;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: border-color 0.2s, background 0.2s;
}

.btn-outline:hover {
  border-color: var(--gold-light);
  background: rgba(212, 160, 23, 0.1);
}

/* Slider controls */
.slider-controls {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 4rem 0;
}

.slider-dots {
  display: flex;
  gap: 6px;
  flex: 1;
}

.dot {
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition: background 0.3s, width 0.4s;
  width: 22px;
}

.dot.active {
  background: var(--gold-light);
  width: 46px;
}

.slider-counter {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.1em;
  min-width: 36px;
  text-align: right;
}

.slider-arrows {
  display: flex;
  gap: 8px;
}

.arrow-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  backdrop-filter: blur(8px);
}

.arrow-btn:hover {
  background: rgba(212, 160, 23, 0.18);
  border-color: var(--gold-light);
  color: #fff;
}

/* Thumbnail strip */
.thumb-strip {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 8px;
  padding: 1rem 4rem 2.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.thumb-strip::-webkit-scrollbar {
  display: none;
}

.thumb-item {
  flex-shrink: 0;
  width: 110px;
  height: 62px;
  border-radius: 5px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.4;
  transition: opacity 0.25s, border-color 0.25s, transform 0.2s;
}

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb-item.active {
  border-color: var(--gold-light);
  opacity: 1;
  transform: translateY(-2px);
}

.thumb-item:hover {
  opacity: 0.75;
}

/* ═══════════════════════════════════════════════
   SHARED SECTION STYLES
═══════════════════════════════════════════════ */
section {
  padding: 5rem 2.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-tag {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 0.6rem;
}

h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
}

.section-desc {
  color: var(--text-secondary);
  margin-top: 0.6rem;
  font-size: 15px;
}

/* ═══════════════════════════════════════════════
   VIDEOS SECTION
═══════════════════════════════════════════════ */
#videos {
  background: var(--bg-page);
  padding-top: 8rem;
}

/* Category tabs */
.category-tabs {
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  z-index: 199;
  background: var(--bg-page);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2.5rem;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.tab-btn {
  background: var(--bg-card);
  border: 1.5px solid var(--border-card);
  color: var(--text-secondary);
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Outfit', sans-serif;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.tab-btn:hover {
  border-color: var(--border-hover);
  color: var(--gold);
}

.tab-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 3px 12px rgba(184, 134, 11, 0.3);
}

/* Videos per page selector */
.videos-per-page {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.videos-per-page label {
  font-size: 14px;
  color: var(--text-secondary);
}

.videos-per-page select {
  background: var(--bg-card);
  border: 1.5px solid var(--border-card);
  border-radius: 6px;
  padding: 4px 8px;
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.videos-per-page select:focus {
  border-color: var(--gold);
}

/* Video grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.4rem;
  max-width: 1240px;
  margin: 0 auto;
}

.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.13);
  border-color: var(--border-hover);
}

.video-thumb {
  position: relative;
  padding-bottom: 56.25%;
  background: var(--bg-card2);
  overflow: hidden;
}

.video-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.video-card:hover .video-thumb img {
  transform: scale(1.06);
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.18);
  opacity: 0;
  transition: opacity 0.25s;
}

.video-card:hover .play-overlay {
  opacity: 1;
}

.play-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(212, 160, 23, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-info {
  padding: 0.9rem 1.1rem 1rem;
}

.video-cat-badge {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.video-title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.video-date {
  font-size: 11px;
  color: var(--text-muted);
}

/* Pagination */
.pagination {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
}

.pag-btn {
  background: var(--bg-card);
  border: 1.5px solid var(--border-card);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Outfit', sans-serif;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.pag-btn:hover:not(:disabled) {
  border-color: var(--border-hover);
  color: var(--gold);
}

.pag-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pag-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
  font-weight: 700;
}

/* ═══════════════════════════════════════════════
   LOADING / ERROR STATES
═══════════════════════════════════════════════ */
.state-box {
  grid-column: 1/-1;
  text-align: center;
  padding: 5rem 2rem;
}

.spinner {
  width: 38px;
  height: 38px;
  border: 3px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.state-box .state-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.state-box .state-desc {
  font-size: 13px;
  color: var(--text-muted);
}

.state-box code {
  background: var(--bg-section);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--gold);
}

/* ═══════════════════════════════════════════════
   MODAL
═══════════════════════════════════════════════ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.88);
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(6px);
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 900px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid var(--border-card);
}

.modal-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  flex: 1;
  margin-right: 1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modal-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

.modal-close:hover {
  background: var(--bg-section);
  color: var(--text-primary);
}

.modal-frame {
  position: relative;
  padding-bottom: 56.25%;
}

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

/* ═══════════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════════ */
#about {
  background: var(--bg-section);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-kicker {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.about-text h2 {
  margin-bottom: 1.2rem;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.85;
}

.about-pillars {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.pillar {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 10px;
  padding: 1rem 1.3rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.pillar:hover {
  border-color: var(--border-hover);
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.09);
}

.pillar-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  background: rgba(184, 134, 11, 0.08);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}

.pillar h4 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 3px;
  color: var(--text-primary);
}

.pillar p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════════ */
#contact {
  background: var(--bg-page);
}

.contact-inner {
  max-width: 640px;
  margin: 0 auto;
}

.contact-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.contact-tab {
  background: none;
  border: none;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 11px 22px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.2s;
}

.contact-tab.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.contact-tab:hover {
  color: var(--text-primary);
}

.contact-form {
  display: none;
}

.contact-form.active {
  display: block;
}

.form-group {
  margin-bottom: 1.1rem;
}

label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.45rem;
}

input,
textarea,
select {
  width: 100%;
  background: var(--bg-card);
  border: 1.5px solid var(--border-card);
  border-radius: 6px;
  padding: 11px 15px;
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--gold);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

select option {
  background: var(--bg-card);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-success {
  display: none;
  text-align: center;
  padding: 3rem 2rem;
}

.success-check {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: rgba(184, 134, 11, 0.08);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  font-size: 28px;
}

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
footer {
  background: var(--bg-section);
  border-top: 1px solid var(--border);
  padding: 3rem 2.5rem;
  text-align: center;
}

.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.footer-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 0.25rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.social-link {
  width: 58px;
  height: 58px;
  background: var(--bg-card2);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}

.social-link:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-1px);
}

.social-link img {
  width: 36px;
  height: 36px;
  max-width: 36px;
  max-height: 36px;
  object-fit: contain;
  display: block;
}

.footer-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  list-style: none;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-copy {
  font-size: 11px;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .nav {
    padding: 0 1.5rem;
  }

  .category-tabs {
    padding: 1rem 1.5rem;
  }

  section {
    padding: 4rem 1.5rem;
  }

  .hero-content {
    padding: 0 2rem 3rem;
    max-width: none;
  }
}

@media (max-width: 900px) {
  .hero-content {
    padding: 0 2rem 3.5rem;
  }

  .slider-controls {
    padding: 1.2rem 2rem 0;
  }

  .thumb-strip {
    padding: 0.8rem 2rem 2rem;
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* Improve nav spacing and tap targets on narrow screens */
  nav {
    justify-content: flex-start;
    padding: 0 1rem;
  }

  .nav-actions {
    margin-left: auto;
  }

  .nav-links a {
    padding: 8px 10px;
  }
}

@media (max-width: 768px) {
  /* Nav */
  .nav-links {
    display: none;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg-page);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 2rem;
    gap: 1.2rem;
  }

  .nav-actions {
    gap: 0.65rem;
  }

  .nav-youtube,
  .nav-donate {
    min-width: 100px;
    height: 40px;
    font-size: 11px;
  }

  .hamburger {
    display: flex;
  }

  /* Hero slider — mobile fixes handled in slide img block above */
  #home {
    min-height: unset;
  }

  .hero-content {
    padding: 0 1.5rem 2.5rem;
  }

  /* Hide thumbnail strip on mobile */
  .thumb-strip {
    display: none;
  }

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

  h1 {
    font-size: 2.6rem;
  }

  /* Category tabs — sticky on mobile */
  .category-tabs {
    position: sticky;
    top: 68px;
    padding: 0.9rem 1rem;
    gap: 0.5rem;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .category-tabs::-webkit-scrollbar {
    display: none;
  }

  .tab-btn {
    padding: 8px 14px;
    font-size: 12px;
    flex-shrink: 0;
  }
}

@media (max-width: 480px) {
  section {
    padding: 3.5rem 1.25rem;
  }

  /* Hero */
  .hero-content {
    padding: 0 1.25rem 2.5rem;
  }

  h1 {
    font-size: clamp(2rem, 11vw, 3.4rem);
  }

  .slide-video-title {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .hero-btns {
    gap: 0.75rem;
  }

  .btn-play,
  .btn-outline {
    width: 100%;
    justify-content: center;
    padding: 12px 18px;
    font-size: 13px;
  }

  /* Slider controls */
  .slider-controls {
    padding: 1rem 1.25rem 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .slider-arrows {
    justify-content: space-between;
  }

  /* Nav */
  .nav-actions {
    gap: 0.4rem;
  }

  .nav-youtube,
  .nav-donate {
    min-width: 90px;
    height: 38px;
    font-size: 10px;
  }

  /* Category tabs */
  .category-tabs {
    position: static;
    padding: 0.7rem 0.8rem;
    gap: 0.4rem;
  }

  .tab-btn {
    padding: 7px 12px;
    font-size: 11px;
  }

  /* Pagination */
  .pagination-bar {
    padding: 0 1.25rem 1.5rem;
    flex-direction: column;
    align-items: center;
  }
}

@media (min-width: 1440px) {
  h1 {
    font-size: clamp(3.2rem, 6vw, 6rem);
  }

  h2 {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
  }

  section {
    padding: 6rem 3rem;
  }

  .nav {
    padding: 0 3rem;
  }

  .category-tabs {
    padding: 1.5rem 3rem;
  }
}
