/* =========
   RESET
========= */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #fff;
  background: #0b0b0b;

  /* IMPORTANT: space for fixed header */
  padding-top: 64px;
}

/* =========
   THEME
========= */
:root{
  --bg: #0b0b0b;
  --panel: rgba(255,255,255,.06);
  --panel2: rgba(255,255,255,.08);
  --border: rgba(255,255,255,.10);
  --text: #ffffff;
  --muted: rgba(255,255,255,.72);

  --red: #d10014;
  --red2: #ff2336;

  --shadow: 0 18px 46px rgba(0,0,0,.55);
  --radius: 18px;
}

a { color: inherit; text-decoration: none; }
.container{
  width: min(1100px, calc(100% - 36px));
  margin: 0 auto;
}

.muted { color: var(--muted); }
.tiny  { font-size: 12px; }

/* =========
   NAV (CLEAN + FIXED)
========= */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  background: #000;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.nav{
  width: min(1100px, calc(100% - 36px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 16px;
  min-height: 64px;
}

.brand{
  font-weight: 800;
  font-size: 20px;
  letter-spacing: .2px;
  white-space: nowrap;
}

.nav-links{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  color: rgba(255,255,255,.85);
  flex: 1;
}

.nav-links a:hover{ color:#fff; }

.nav-cta{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 12px 28px rgba(209,0,20,.22);
}
.nav-cta:hover{ background: var(--red2); }

/* =========
   HERO
========= */
.hero{
  position: relative;
  min-height: 30vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg{
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  filter: saturate(1.05);
  transform: scale(1.02);
  pointer-events: none;
}
.hero-overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.45),
    rgba(0,0,0,.72) 55%,
    rgba(0,0,0,.92)
  );
  pointer-events: none;
}

.hero-content{
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 64px 0 54px;
}

.hero h1{
  margin: 0;
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -0.6px;
}

.hero p{
  margin: 12px 0 0;
  font-size: 18px;
  color: var(--muted);
}

.hero-cta{
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

/* Buttons */
.btn-primary{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: #fff;
  font-weight: 900;
  padding: 16px 38px;
  border-radius: 16px;
  letter-spacing: .2px;
  box-shadow: 0 18px 36px rgba(209,0,20,.20);
}
.btn-primary:hover{ background: var(--red2); }

.btn-secondary{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
  font-weight: 800;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
}
.btn-secondary:hover{
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.18);
}

.btn-wide{ width: min(520px, 100%); }

.quick-actions{
  display: inline-flex;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(8px);
}
.qa{
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 800;
  color: rgba(255,255,255,.90);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
}
.qa:hover{
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.18);
}

.trust{
  margin: 22px auto 0;
  width: min(760px, 100%);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.40);
  backdrop-filter: blur(8px);
  overflow: hidden;
}
.trust-item{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-top: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.90);
  font-weight: 700;
}
.trust-item:first-child{ border-top: 0; }
.trust-icon{
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
}

/* =========
   PANELS
========= */
main{ padding: 28px 0 44px; }
.panel{
  border-radius: 20px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  box-shadow: var(--shadow);
  padding: 22px;
  margin: 22px 0;
}
.panel-head h2{
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.3px;
}
.panel-head p{ margin: 8px 0 0; color: var(--muted); }
.panel-actions{ display: grid; gap: 12px; margin-top: 16px; }

#payments{
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
#payments .panel-head,
#payments .panel-actions,
#payments p{
  display: flex;
  flex-direction: column;
  align-items: center;
}
#payments .btn-primary,
#payments .btn-secondary{
  width: 100%;
  max-width: 520px;
}

/* =========
   SCHEDULE LIST
========= */
.schedule-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-radius: 16px;
  margin-top: 12px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  transition: transform .08s ease, background .12s ease, border-color .12s ease;
}
.schedule-row:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.16);
}
.date{ font-weight: 900; letter-spacing: .2px; color: rgba(255,255,255,.92); }
.register{ font-weight: 900; color: rgba(255,255,255,.92); }
.arrow{ color: var(--red); margin-left: 6px; }

.panel-foot{ margin-top: 16px; }
.link{ color: rgba(255,255,255,.92); font-weight: 800; }
.link:hover{ color: #fff; text-decoration: underline; }

/* =========
   CARDS / GRIDS
========= */
.cards{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.card{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  padding: 18px;
  box-shadow: 0 16px 34px rgba(0,0,0,.35);
}
.card h3{ margin: 0 0 8px; font-size: 18px; letter-spacing: -.2px; }
.card p{ margin: 0; }

.grid-3{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.media-card{
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  box-shadow: 0 16px 40px rgba(0,0,0,.45);
}
.media-card img{
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.media-card__body{ padding: 16px; }
.media-card__body h3{ margin: 0 0 6px; font-size: 18px; letter-spacing: -.2px; }
.media-card__body p{ margin: 0; }

/* =========
   PAGE HERO (simple)
========= */
.page-hero-basic{
  padding: 34px 0 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0));
}
.page-hero-basic h1{ margin: 0; font-size: 38px; letter-spacing: -.6px; }
.page-hero-basic p{ margin: 10px 0 0; }

/* =========
   DONATE PAGE HERO
========= */
.donate-hero{
  position: relative;
  min-height: 44vh;
  display:flex;
  align-items:center;
  overflow:hidden;
}
.donate-hero__bg{
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center;
  filter:saturate(1.05);
  transform:scale(1.02);
}
.donate-hero__overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(to bottom, rgba(0,0,0,.45), rgba(0,0,0,.82) 60%, rgba(0,0,0,.96));
}
.donate-hero__content{ position:relative; z-index:2; padding: 56px 0 44px; text-align:center; }
.donate-hero__content h1{ margin:0; font-size: 44px; letter-spacing: -.6px; }
.donate-hero__actions{ display:flex; gap: 12px; justify-content:center; flex-wrap:wrap; margin-top: 16px; }

.donation-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.donation-card{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  padding: 18px;
  box-shadow: 0 16px 34px rgba(0,0,0,.35);
  display:flex;
  flex-direction: column;
  gap: 12px;
}
.donation-top h3{ margin: 0 0 6px; font-size: 18px; letter-spacing: -.2px; }
.donation-top p{ margin: 0; }

.tier-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.tier{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  padding: 18px;
  box-shadow: 0 16px 34px rgba(0,0,0,.35);
  display:flex;
  flex-direction: column;
  gap: 12px;
}
.tier h3{ margin: 0; font-size: 18px; letter-spacing: -.2px; }
.tier ul{ margin: 0; padding-left: 18px; color: rgba(255,255,255,.88); }
.tier li{ margin: 6px 0; }

/* =========
   GALLERY
========= */
.gallery{
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px 20px 50px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.gallery-img{
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 16px 30px rgba(0,0,0,.55);
  cursor: pointer;
  transition: transform .12s ease, opacity .12s ease;
}
.gallery-img:hover{ transform: translateY(-2px); opacity: .96; }

.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 24px;
}
.lightbox.active{ display:flex; }
.lightbox img{
  max-width: 95vw;
  max-height: 90vh;
  border-radius: 16px;
  box-shadow: 0 20px 70px rgba(0,0,0,.85);
  border: 1px solid rgba(255,255,255,.12);
}
.close{
  position: absolute;
  top: 18px;
  right: 22px;
  background: transparent;
  border: none;
  color: white;
  font-size: 3rem;
  cursor: pointer;
  font-weight: 900;
  line-height: 1;
}
.close:hover{ opacity: .85; }
.no-scroll{ overflow: hidden; }

/* =========
   FOOTER
========= */
.footer{
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 18px 0 26px;
  background: #070707;
}
.footer-inner{ display:flex; justify-content:center; }

/* =========
   RESPONSIVE
========= */
@media (max-width: 980px){
  .cards, .grid-3, .donation-grid, .tier-grid{ grid-template-columns: 1fr; }
  .media-card img{ height: 220px; }
}

@media (max-width: 820px){
  .hero{ min-height: 78vh; }
  .hero h1{ font-size: 40px; }
  .hero p { font-size: 16px; }

  .btn-primary{ width: min(520px, 100%); }
  .quick-actions{
    width: min(520px, 100%);
    justify-content: space-between;
  }
  .qa{ flex: 1; text-align: center; }

  .gallery{ grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
  .gallery-img{ height: 170px; }

  /* Keep nav usable on small screens */
  .nav-links{
    gap: 12px;
    font-size: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

/* =========================
   MOBILE HEADER FIX (2-row)
========================= */
@media (max-width: 820px){

  /* Header becomes taller on mobile, so give page more top padding */
  body{ padding-top: 110px; }

  .nav{
    flex-wrap: wrap;
    align-items: center;
    padding: 10px 0;
    min-height: 110px;
  }

  /* Brand stays top-left */
  .brand{
    flex: 1;
    font-size: 18px;
    line-height: 1.1;
  }

  /* Nav links become a full-width row under the top row */
  .nav-links{
    width: 100%;
    flex: 0 0 100%;
    order: 3;                 /* push links to second row */
    justify-content: center;
    gap: 14px;
    flex-wrap: nowrap;        /* prevent wrapping */
    overflow-x: auto;         /* allow scroll if needed */
    -webkit-overflow-scrolling: touch;
    padding: 8px 0 2px;
  }

  .nav-links a{
    white-space: nowrap;
    font-size: 14px;
  }

  /* Register button stays top-right */
  .nav-cta{
    order: 2;
    margin-left: auto;
    padding: 10px 14px;
    font-size: 14px;
  }
}
.team-photo{
  border-radius: 16px;
  transition: transform .12s ease, opacity .12s ease;
}
.team-photo:hover{
  transform: translateY(-2px);
  opacity: .96;
}
/* INDEX FIX: prevent hero text images from cropping */
.media-card--contain img{
  object-fit: contain;
  background: #000;   /* fills the empty space cleanly */
  height: 240px;      /* more room so text fits */
}
@media (max-width: 980px){
  .media-card--contain img{ height: 220px; }
}


