/* ============================================================
   GLOBAL
============================================================ */
html { scroll-behavior: smooth; }

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: "Inter", sans-serif;
  background-color: #0a0a0a;
  margin: 0;
  color: #e6e6e6;
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

@media (max-width: 768px) { body { font-size: 15px; } }

/* ============================================================
   CONTAINER
============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
@media (max-width: 768px) { .container { padding: 0 16px; } }

/* ============================================================
   NAVBAR
============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  background: rgba(15, 15, 15, 0.9);
  backdrop-filter: blur(8px);
  z-index: 1000;
  border-bottom: 1px solid #222;
  transition: transform 0.35s ease;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 40px;
}

.logo img {
  width: 85px;
  transition: 0.3s ease;
}
.logo img:hover { transform: scale(1.05); }

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #dcdcdc;
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
  transition: 0.25s ease;
}
.nav-links a:hover { color: #fff; opacity: 0.8; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
}
.hamburger span {
  width: 28px;
  height: 3px;
  background: #e6e6e6;
  border-radius: 2px;
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    right: 20px;
    background: #111;
    padding: 20px;
    border-radius: 8px;
    flex-direction: column;
    gap: 20px;
    border: 1px solid #222;
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
}

@media (max-width: 768px) {
  .nav-inner { padding: 12px 16px; }
  .logo img { width: 70px; }
  .nav-links { top: 60px; right: 16px; padding: 16px; gap: 16px; }
  .nav-links a { font-size: 15px; }
}

/* ============================================================
   HERO
============================================================ */
#hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-bottom: 1px solid #222;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-logo img {
  max-width: 500px;
  margin-bottom: 30px;
}
@media (max-width: 768px) {
  .hero-logo img { max-width: 280px; margin-bottom: 24px; }
}

.cta-btn {
  display: inline-block;
  padding: 14px 32px;
  background-color: #e0c75a;
  color: #111;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none;
  font-size: 18px;
  transition: 0.25s ease;
}
.cta-btn:hover { background-color: #f0d97a; transform: translateY(-2px); }
@media (max-width: 768px) {
  .cta-btn { padding: 12px 24px; font-size: 16px; }
}

/* ============================================================
   SECTIONS + SECTION BOX (GREY CARDS)
============================================================ */
section:not(#hero) {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 0;
}
@media (max-width: 768px) { section:not(#hero) { padding: 50px 0; } }
@media (max-width: 480px) { section:not(#hero) { padding: 32px 0; } }

section { scroll-margin-top: 90px; }

.section-box {
  width: 95%;
  max-width: 1400px;
  padding: 60px 48px;
  background: #222;
  border-radius: 16px;
  border: 3px solid #000;
  box-shadow: 0 10px 32px rgba(0,0,0,0.7);
  position: relative;
  margin: 0 auto;

  display: flex;
  flex-direction: column;
  gap: 18px;
}

.section-box::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 50%;
  width: 80px;
  height: 3px;
  background: #e0c75a;
  transform: translateX(-50%);
}

.section-box h2,
.section-box p { margin: 0; }

.section-box h2 {
  color: #e0c75a;
  font-size: 32px;
}

.section-box p {
  font-size: 16px;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .section-box {
    width: 100%;
    padding: 32px 20px;
    border-radius: 12px;
    border: 2px solid #000;
    gap: 14px;
  }
  .section-box::before { top: -15px; width: 60px; height: 2px; }
  .section-box h2 { font-size: 26px; }
  .section-box p { font-size: 15px; }
}

/* ============================================================
   MISSION + PROGRAM (CENTERED)
============================================================ */
#mission .section-box,
#program .section-box {
  text-align: center;
  align-items: center; /* centers the text block inside the card */
}

/* keep paragraphs readable when centered */
#mission .section-box p,
#program .section-box p {
  max-width: 980px;
}

/* If you use .container inside mission */
#mission .container,
#program .container {
  width: 100%;
}

#mission .section-box > .container {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

/* ============================================================
   PROGRAM LAYOUT (safe even if you only have text)
============================================================ */
#program .program-layout {
  width: 100%;
  display: flex;
  justify-content: center;
}
#program .program-text {
  width: 100%;
  max-width: 980px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: center;
}

/* ============================================================
   PHOTO CARD (Program + Team)
============================================================ */
.photo-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 4 / 3;
  min-height: 250px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

/* overlay (hidden by default) */
.photo-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  color: #fff;

  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.28s ease, transform 0.28s ease, background 0.28s ease;

  background: linear-gradient(
    to top,
    rgba(0,0,0,0.92),
    rgba(0,0,0,0.45),
    rgba(0,0,0,0.08)
  );
}

.photo-overlay p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  text-shadow: 0 8px 18px rgba(0,0,0,0.75);
}

.photo-overlay strong {
  color: #e0c75a;
  font-weight: 800;
}

/* Hover effect ONLY on devices that actually hover */
@media (hover: hover) and (pointer: fine) {
  .photo-card:hover .photo-overlay {
    opacity: 1;
    transform: translateY(0);
  }
  .photo-card:hover img { transform: scale(1.02); }
}

/* Touch: show on tap */
.photo-card:active .photo-overlay {
  opacity: 1;
  transform: translateY(0);
}

/* Tap hint ONLY on touch devices (prevents “Tap me” on desktop) */
.tap-hint { display: none; }
@media (hover: none) and (pointer: coarse) {
  .tap-hint {
    display: block;
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    padding: 6px 12px;
    font-size: 14px;
    border-radius: 6px;
    opacity: 0.9;
    pointer-events: none;
    z-index: 3;
  }
}

/* Program photo sizing */
#program .program-photo {
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  min-height: 260px;
}
@media (max-width: 768px) {
  #program .program-photo { min-height: 220px; }
}

/* ============================================================
   TEAM GRID
============================================================ */
.founder-gallery {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.founder-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

@media (max-width: 1024px) {
  .founder-photos { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}

@media (max-width: 768px) {
  .founder-photos { grid-template-columns: 1fr; gap: 20px; }
}

/* ============================================================
   CONTACT GRID
============================================================ */
.contact-container {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.contact-intro { font-size: 16px; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  margin-top: 40px;
}

.contact-box {
  background: #0f0f0f;
  padding: 22px 26px;
  border-radius: 10px;
  border: 1px solid #1f1f1f;
  transition: 0.25s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.contact-box h3 { font-size: 18px; margin: 0 0 8px 0; }
.contact-box p { font-size: 15px; margin: 0; }

.contact-box:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: #e0c75a;
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 32px; }
  .contact-box { padding: 18px 20px; }
  .contact-box h3 { font-size: 16px; margin-bottom: 6px; }
  .contact-box p { font-size: 14px; }
}

/* ============================================================
   FADE IN
============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   PROGRAM SPONSORS — FORCE SIDE BY SIDE
============================================================ */

.program-sponsors {
  margin-top: 32px;
  width: 100%;
  text-align: center;
  position: relative;
  padding-top: 24px;
}

.program-sponsors::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 104px;
  height: 4px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, transparent 0%, #e0c75a 22%, #e0c75a 78%, transparent 100%);
  opacity: 0.95;
}

.sponsors-title {
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: 800;
  color: #e0c75a;
}

/* ============================================================
   POLICIES PAGE
============================================================ */

.policies-hero {
  padding-top: 140px; /* space under fixed navbar */
  padding-bottom: 60px;
  text-align: center;
}

.policies-hero h1 {
  color: #e0c75a;
  margin-bottom: 20px;
  font-size: 36px;
}

.policies-hero p {
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.85;
}

.policies-content {
  padding-bottom: 100px;
}

.policies-container {
  max-width: 950px;
  margin: 0 auto;
}

.policy-block {
  margin-bottom: 50px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.policy-block:last-child {
  border-bottom: none;
}

.policy-block h3 {
  color: #e0c75a;
  margin-bottom: 16px;
}

.policy-block h4 {
  margin-top: 24px;
  margin-bottom: 10px;
  font-weight: 700;
}

.policy-block p {
  margin-bottom: 16px;
  line-height: 1.7;
}

.policies-preview {
  text-align: center;
}

.policies-intro {
  max-width: 700px;
  margin: 0 auto 40px;
  opacity: 0.85;
}

.policies-headings {
  display: grid;
  gap: 12px;
  max-width: 600px;
  margin: 0 auto;
}

.policies-headings h4 {
  font-weight: 500;
  opacity: 0.9;
}

.policies-headings h4 {
  font-weight: 700;
  font-size: 18px;
  margin: 10px 0;
}

/* Policies Section Clean Upgrade */

.policies-preview {
  text-align: center;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: #d4af37; /* gold */
  margin: 15px auto 40px auto;
  border-radius: 2px;
}

.policies-headings {
  display: grid;
  gap: 14px;
  max-width: 600px;
  margin: 0 auto;
}

.policies-headings h4 {
  font-weight: 700;
  font-size: 18px;
  opacity: 0.95;
}

/* =========================
   PROGRAM SPONSORS — SIDE BY SIDE
========================= */

.sponsors-grid {
  display: flex;
  justify-content: center;   /* centers the whole group */
  align-items: center;
  gap: 80px;                 /* space between logos */
  flex-wrap: wrap;           /* keeps responsive */
  margin-top: 30px;
}

.sponsor-card {
  display: flex;
  justify-content: center;
  align-items: center;
}

.sponsor-card img {
  max-width: 240px;   /* adjust size if needed */
  height: auto;
  object-fit: contain;
}

/* =========================
   FOOTER
========================= */

.site-footer {
  border-top: 1px solid #1a1a1a;
  margin-top: 60px;
  padding: 25px 20px;
  text-align: center;
  background: #0a0a0a;
}

.footer-inner p {
  margin: 0;
  font-size: 14px;
  color: #888;
  letter-spacing: 0.4px;
}

.footer-inner p {
  margin: 0;
  font-size: 14px;
  color: #999;
  letter-spacing: 0.6px;
}