/* =========================================
   BANGERS TO BLUFF® 2027 — STYLESHEET
   ========================================= */

:root {
  --gold:    #C8922A;
  --gold-lt: #E8B84B;
  --navy:    #0D1F3C;
  --navy-lt: #162B50;
  --cream:   #FAF7F2;
  --white:   #FFFFFF;
  --charcoal:#2C2C2C;
  --mid-grey:#6B7280;
  --light-grey:#F3F4F6;
  --red:     #C0392B;
  --green:   #1A6B3A;
  --radius:  6px;
  --shadow:  0 4px 24px rgba(0,0,0,0.12);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: 'Georgia', 'Times New Roman', serif;
  line-height: 1.2;
  color: var(--navy);
}
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 0.9rem; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.4rem; }
li { margin-bottom: 0.4rem; }

/* ── Layout ── */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

section { padding: 5rem 0; }
.section-rotary-logo {
  position: absolute;
  top: 1.5rem;
  right: 0;
  width: 150px;
  height: auto;
  border-radius: 6px;
  z-index: 1;
}
@media (max-width: 768px) {
  .section-rotary-logo { display: none; }
}
section:nth-child(odd) { background: var(--cream); }
section:nth-child(even) { background: var(--white); }

.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  margin-bottom: 1rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--gold);
  margin-top: 0.75rem;
}

.section-title.centered::after { margin: 0.75rem auto 0; }
.section-title.centered { text-align: center; }

.section-intro {
  font-size: 1.05rem;
  color: var(--mid-grey);
  max-width: 700px;
  margin-bottom: 2.5rem;
}
.section-intro.centered { margin-left: auto; margin-right: auto; text-align: center; }

/* ── Top Bar ── */
#top-bar {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  font-size: 0.82rem;
  padding: 0.45rem 0;
  text-align: center;
  letter-spacing: 0.04em;
}
#top-bar a { color: var(--gold-lt); }
#top-bar strong { color: var(--white); }

/* ── Navigation ── */
#navbar {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--white);
  border-bottom: 3px solid var(--gold);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  max-width: 1140px;
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.nav-brand img { height: 34px; width: auto; }
.nav-brand-text {
  display: flex;
  flex-direction: column;
}
.nav-brand-text .brand-main {
  font-family: 'Georgia', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
}
.nav-brand-text .brand-sub {
  font-size: 0.72rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-links a {
  display: block;
  padding: 0.45rem 0.75rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}
.nav-links a:hover { background: var(--light-grey); color: var(--gold); text-decoration: none; }
.nav-links .btn-nav {
  background: var(--gold);
  color: var(--white);
  padding: 0.45rem 1.1rem;
  border-radius: 99px;
}
.nav-links .btn-nav:hover { background: var(--gold-lt); color: var(--navy); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  border: none;
  background: none;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s;
}

/* ── Hero ── */
#hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0;
  background: #1a3a5c;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('images/Header-Photo-2.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.65;
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slider .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slider .slide.active { opacity: 0.65; }

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 800px;
  padding: 4rem 1.25rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 99px;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: 'Georgia', serif;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
.hero-title span { color: var(--gold-lt); }

.hero-route {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-dates {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 99px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-primary:hover { background: var(--gold-lt); border-color: var(--gold-lt); text-decoration: none; }
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline:hover { background: rgba(255,255,255,0.15); text-decoration: none; }
.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover { background: var(--navy-lt); text-decoration: none; }
.btn-lg { padding: 0.9rem 2.2rem; font-size: 1.05rem; }

/* ── Stats Bar ── */
#stats-bar {
  background: var(--navy);
  padding: 2.5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}

.stat-item { padding: 0.5rem; }
.stat-number {
  font-family: 'Georgia', serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--gold-lt);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── About Section ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-text p { font-size: 1.05rem; color: var(--charcoal); }
.about-img img {
  border-radius: 8px;
  box-shadow: var(--shadow);
  width: 100%;
  object-fit: cover;
  max-height: 420px;
}
.about-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.highlight-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--navy);
  color: var(--white);
  padding: 0.4rem 0.9rem;
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 600;
}

/* ── Event Overview ── */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.overview-card {
  background: var(--white);
  border-radius: 8px;
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--gold);
  text-align: center;
}
.overview-card .icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}
.overview-card h4 { color: var(--navy); margin-bottom: 0.4rem; }
.overview-card p { font-size: 0.9rem; color: var(--mid-grey); margin: 0; }

/* ── Charities Section ── */
.charities-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.charity-card {
  background: var(--white);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: var(--shadow);
  border-left: 5px solid var(--green);
}
.charity-card h3 { color: var(--green); margin-bottom: 0.75rem; }
.charity-card img {
  border-radius: 8px;
  width: 100%;
  object-fit: cover;
  max-height: 220px;
}

/* ── Route Section ── */
.route-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.route-card {
  background: var(--navy);
  color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.route-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.route-card-body { padding: 1.5rem; }
.route-card-body h4 { color: var(--gold-lt); margin-bottom: 0.5rem; }
.route-card-body p { font-size: 0.9rem; color: rgba(255,255,255,0.8); margin: 0; }

.route-info-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--light-grey);
  border-radius: 8px;
}
.route-info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}

/* ── Challenge Section ── */
.challenge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2.5rem;
}
.points-list {
  list-style: none;
  padding: 0;
}
.points-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--light-grey);
  font-size: 0.95rem;
}
.points-list li:last-child { border-bottom: none; }
.points-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.15rem;
}
.points-icon.penalty { background: var(--red); color: var(--white); }

.banger-rules {
  background: var(--navy);
  color: var(--white);
  border-radius: 8px;
  padding: 2rem;
}
.banger-rules h3 { color: var(--gold-lt); margin-bottom: 1rem; }
.banger-rules ul { padding-left: 1.2rem; }
.banger-rules li {
  color: rgba(255,255,255,0.85);
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}

/* ── Sponsorship Section ── */
.sponsorship-tiers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}
.tier-card {
  border-radius: 8px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}
.tier-card.gold {
  background: linear-gradient(135deg, #7B5E1A 0%, #C8922A 100%);
  color: var(--white);
}
.tier-card.platinum {
  background: linear-gradient(135deg, #1A2A4A 0%, #2D4A7A 100%);
  color: var(--white);
}
.tier-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 0.4rem;
}
.tier-amount {
  font-family: 'Georgia', serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.tier-perks { list-style: none; padding: 0; }
.tier-perks li {
  padding: 0.35rem 0;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.tier-perks li:last-child { border-bottom: none; }

.sponsors-marquee {
  overflow: hidden;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
  /* fade edges */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.sponsors-marquee:hover .sponsors-track { animation-play-state: paused; }

.sponsors-track {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  width: max-content;
  animation: sponsorScroll 22s linear infinite;
}

@keyframes sponsorScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.sponsors-track img {
  height: 58px;
  width: auto;
  flex-shrink: 0;
  filter: grayscale(50%);
  opacity: 0.75;
  transition: filter 0.3s, opacity 0.3s;
  cursor: default;
}
.sponsors-track img:hover { filter: none; opacity: 1; }

/* ── Fundraising Section ── */
.fundraising-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.fundraising-card {
  background: var(--white);
  border-radius: 8px;
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
  border-top: 4px solid var(--gold);
}
.fundraising-card .amount {
  font-family: 'Georgia', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.3rem;
}
.fundraising-card .label { color: var(--mid-grey); font-size: 0.88rem; }
.fundraising-card .note { font-size: 0.82rem; color: var(--mid-grey); margin-top: 0.5rem; font-style: italic; }

.bank-detail {
  background: var(--navy);
  color: var(--white);
  border-radius: 8px;
  padding: 1.75rem 2rem;
  margin-top: 2rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.5rem;
  align-items: start;
}
.bank-detail .bank-icon { font-size: 2rem; }
.bank-detail h4 { color: var(--gold-lt); margin-bottom: 0.4rem; }
.bank-detail p { font-size: 0.9rem; color: rgba(255,255,255,0.8); margin: 0; }

/* ── Timeline / Key Dates ── */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 2rem auto 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gold);
}
.timeline-item {
  position: relative;
  padding: 0 0 1.75rem 3.5rem;
}
.timeline-dot {
  position: absolute;
  left: 12px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--gold);
}
.timeline-date {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.25rem;
}
.timeline-content h4 { color: var(--navy); margin-bottom: 0.25rem; }
.timeline-content p { font-size: 0.9rem; color: var(--mid-grey); margin: 0; }

/* ── FAQ ── */
.faq-list { max-width: 820px; margin: 2rem auto 0; }

details {
  border-bottom: 1px solid #e5e7eb;
}
details:first-child { border-top: 1px solid #e5e7eb; }

summary {
  padding: 1.1rem 0.5rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 1rem;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform 0.2s;
}
details[open] summary::after { transform: rotate(45deg); }
details[open] summary { color: var(--gold); }

.faq-body {
  padding: 0 0.5rem 1.25rem;
  color: var(--charcoal);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* (gallery-grid replaced by gallery-carousel-wrap) */



/* ── Support Section ── */
.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

/* ── Decal Information ── */
.decal-info-block {
  margin-top: 1.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
}

.decal-info-header {
  background: var(--navy);
  padding: 1.1rem 1.75rem;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}
.decal-info-header h4 {
  color: var(--gold-lt);
  font-size: 1rem;
  margin: 0;
  white-space: nowrap;
}
.decal-info-header span {
  color: rgba(255,255,255,0.55);
  font-size: 0.82rem;
}

.decal-info-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* Left: facts table */
.decal-facts {
  background: var(--white);
  border-right: 1px solid #e5e7eb;
}
.decal-fact-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.7rem 1.5rem;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.875rem;
}
.decal-fact-row:last-child { border-bottom: none; }
.dfr-label {
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}
.dfr-value { color: var(--charcoal); }
.dfr-value em { color: var(--mid-grey); font-style: normal; font-size: 0.82rem; }
.dfr-value a { color: var(--gold); }

/* Right: process steps */
.decal-process {
  background: var(--cream);
  padding: 1.5rem;
}
.decal-process h5 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.decal-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.decal-steps li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin: 0;
}
.ds-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-lt);
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.decal-steps li > div { flex: 1; }
.decal-steps li strong { font-size: 0.88rem; color: var(--navy); display: block; margin-bottom: 0.2rem; }
.decal-steps li p { font-size: 0.82rem; color: var(--mid-grey); margin: 0; line-height: 1.5; }
.decal-steps a { color: var(--gold); }

@media (max-width: 768px) {
  .decal-info-body { grid-template-columns: 1fr; }
  .decal-facts { border-right: none; border-bottom: 1px solid #e5e7eb; }
  .decal-fact-row { grid-template-columns: 1fr; gap: 0.2rem; }
}

/* ── Add to Calendar ── */
.atc-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--navy);
  border-radius: 8px;
  color: var(--white);
}

.atc-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.atc-cal-icon { font-size: 2rem; flex-shrink: 0; }
.atc-info strong { display: block; font-size: 1rem; color: var(--white); }
.atc-info span   { font-size: 0.88rem; color: rgba(255,255,255,0.65); }

.atc-wrap { position: relative; }

.atc-trigger {
  white-space: nowrap;
  font-size: 0.95rem;
}

.atc-menu {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  min-width: 210px;
  overflow: hidden;
  z-index: 50;
}
.atc-menu.open { display: block; }

.atc-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.75rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  transition: background 0.15s;
  border-bottom: 1px solid var(--light-grey);
  font-family: inherit;
}
.atc-option:last-child { border-bottom: none; }
.atc-option:hover { background: var(--light-grey); text-decoration: none; }

.atc-inline-wrap { display: inline-block; }

.atc-menu-up {
  bottom: calc(100% + 8px);
  top: auto;
  left: 0;
  right: auto;
}

.atc-inline-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.6rem;
  padding: 0.3rem 0.75rem;
  background: rgba(200,146,42,0.15);
  border: 1px solid var(--gold);
  border-radius: 99px;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}
.atc-inline-btn:hover { background: rgba(200,146,42,0.3); }

/* ── Gallery Carousel ── */
.gallery-carousel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 3.5rem;
  max-width: 1300px;
  margin: 0 auto;
}

.gallery-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0.5rem 0.25rem 1rem;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track.grabbing { cursor: grabbing; }

.gallery-item {
  flex: 0 0 auto;
  width: clamp(220px, 28vw, 340px);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  transition: transform 0.25s, box-shadow 0.25s;
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.45); }
.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s;
  pointer-events: none;
}
.gallery-item:hover img { transform: scale(1.04); }

.gallery-item::after {
  content: '🔍';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  opacity: 0;
  transition: all 0.25s;
}
.gallery-item:hover::after { background: rgba(0,0,0,0.28); opacity: 1; }

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.6rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
  flex-shrink: 0;
}
.gallery-arrow:hover { background: var(--gold-lt); transform: translateY(-50%) scale(1.1); }
.gallery-prev { left: 0; }
.gallery-next { right: 0; }

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
  padding-bottom: 0.5rem;
  flex-wrap: wrap;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}
.gallery-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.gallery-dot.active { background: var(--gold); transform: scale(1.4); }

/* ── Lightbox ── */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
#lightbox.open { display: flex; }

.lb-img-wrap {
  max-width: min(90vw, 1100px);
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-img-wrap img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
  display: block;
}

.lb-close {
  position: fixed;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: 2px solid rgba(255,255,255,0.4);
  color: var(--white);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 1001;
}
.lb-close:hover { background: rgba(255,255,255,0.15); border-color: var(--white); }

.lb-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.25);
  color: var(--white);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 1001;
}
.lb-arrow:hover { background: rgba(255,255,255,0.25); border-color: var(--white); }
.lb-prev { left: 1.25rem; }
.lb-next { right: 1.25rem; }

.lb-counter {
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
  margin-top: 1rem;
  letter-spacing: 0.06em;
}

/* ── CTA Banner ── */
#cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, #1A3560 100%);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}
#cta-banner h2 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 0.75rem; }
#cta-banner p { color: rgba(255,255,255,0.75); font-size: 1.05rem; max-width: 600px; margin: 0 auto 2rem; }

/* ── Footer ── */
footer {
  background: #0A1628;
  color: rgba(255,255,255,0.6);
  padding: 3.5rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-brand .brand-main { color: var(--white); font-size: 1.1rem; font-weight: 700; font-family: 'Georgia', serif; }
.footer-brand p { margin-top: 0.75rem; font-size: 0.88rem; line-height: 1.6; }
.footer-brand .rotary { margin-top: 1rem; font-size: 0.82rem; color: var(--gold); font-weight: 600; }
footer h4 { color: var(--white); font-size: 0.9rem; font-weight: 700; margin-bottom: 1rem; letter-spacing: 0.04em; text-transform: uppercase; }
footer ul { list-style: none; padding: 0; }
footer ul li { margin-bottom: 0.5rem; }
footer ul li a { color: rgba(255,255,255,0.6); font-size: 0.88rem; transition: color 0.2s; }
footer ul li a:hover { color: var(--gold-lt); text-decoration: none; }
.footer-contact-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.88rem; margin-bottom: 0.4rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
}
.footer-bottom a { color: var(--gold); }

/* ── Registration Page ── */
#reg-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1A3560 100%);
  padding: 5rem 0 3.5rem;
  text-align: center;
}
#reg-hero h1 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 0.5rem; }
#reg-hero p { color: rgba(255,255,255,0.75); font-size: 1.05rem; }

.reg-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

#reg-form-section {
  padding: 4rem 0;
  background: var(--cream);
}

.form-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 2.5rem;
}

.form-section-title {
  font-family: 'Georgia', serif;
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--light-grey);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.form-section-title span { color: var(--gold); }

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

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

label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.35rem;
}
label .required { color: var(--red); margin-left: 0.2rem; }

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid #D1D5DB;
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--charcoal);
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--white);
  font-family: inherit;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 146, 42, 0.15);
}
input::placeholder, textarea::placeholder { color: #9CA3AF; }

.field-hint { font-size: 0.78rem; color: var(--mid-grey); margin-top: 0.3rem; }

.form-divider {
  border: none;
  border-top: 1px solid var(--light-grey);
  margin: 2rem 0;
}

.fee-notice {
  background: var(--light-grey);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.fee-notice h4 { color: var(--navy); margin-bottom: 0.75rem; font-size: 1rem; }
.fee-notice p, .fee-notice li { font-size: 0.9rem; color: var(--charcoal); }
.fee-notice .fee-row {
  display: flex;
  justify-content: space-between;
  padding: 0.3rem 0;
  border-bottom: 1px solid #e5e7eb;
}
.fee-notice .fee-row:last-child { border-bottom: none; font-weight: 700; color: var(--navy); }

.payment-box {
  background: var(--navy);
  color: var(--white);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}
.payment-box h4 { color: var(--gold-lt); margin-bottom: 0.75rem; }
.payment-box p, .payment-box li { font-size: 0.9rem; color: rgba(255,255,255,0.85); }
.payment-box .bank-no {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  background: rgba(255,255,255,0.1);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  display: inline-block;
  margin: 0.4rem 0;
  letter-spacing: 0.04em;
}

.submit-area {
  text-align: center;
  padding-top: 1rem;
}
.submit-area .btn {
  font-size: 1.05rem;
  padding: 0.9rem 3rem;
}
.submit-area .privacy-note { font-size: 0.8rem; color: var(--mid-grey); margin-top: 0.75rem; }

.form-success {
  display: none;
  text-align: center;
  padding: 3rem;
}
.form-success.active { display: block; }
.form-success .success-icon { font-size: 3rem; margin-bottom: 1rem; }
.form-success h3 { color: var(--green); margin-bottom: 0.75rem; }

/* ── Utilities ── */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  section { padding: 3rem 0; }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(300px, 80vw);
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 5rem 1.5rem 2rem;
    gap: 0.25rem;
    box-shadow: -4px 0 20px rgba(0,0,0,0.2);
    z-index: 600;
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.75rem 1rem; border-radius: var(--radius); }
  .nav-toggle { display: flex; z-index: 700; }
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 400;
  }
  .nav-overlay.open { display: block; }

  .about-grid,
  .charities-grid,
  .challenge-grid,
  .sponsorship-tiers,
  .support-grid { grid-template-columns: 1fr; }

  .support-grid img { max-height: 260px; width: 100%; object-fit: cover; }
  .accom-map-grid { grid-template-columns: 1fr !important; }

  .route-cards { grid-template-columns: 1fr; }
  .fundraising-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid img { height: 150px; }

  .hero-content { padding: 3rem 1.25rem; }
  .hero-ctas { flex-direction: column; align-items: flex-start; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .form-grid-2 { grid-template-columns: 1fr; }
  .form-card { padding: 1.5rem; }

  .bank-detail { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .overview-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
