/* ============================================================
   ELLEGANZA — Full Site Stylesheet (Dark Navbar Edition)
   ============================================================ */
:root {
  --navy: #071722;
  --gold-1: #f1c86e;
  --gold-2: #b48a2a;
  --muted: #8a98a2;
  --glass: rgba(255, 255, 255, 0.04);
  --radius: 14px;
  --maxw: 1200px;
}

/* Global Reset */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: var(--navy);
  background: linear-gradient(180deg, #f8f9fb, #eef2f6 60%);
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px;
}

/* ============================================================
   NAVBAR
   ============================================================ */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1200;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

/* Navbar background darker and glossy */
.navbar {
  width: 100%;
  max-width: var(--maxw);
  margin: 18px auto;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(7, 23, 34, 0.95);
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
}

/* Brand section */
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: #fff;
}

.logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.brand .title {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 1px;
  color: #fff;
}

.brand .sub {
  font-size: 12px;
  color: var(--gold-1);
}

/* Navigation Links */
.nav-links {
  display: flex;
  gap: 10px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: #f0f0f0;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.25s ease;
}

.nav-links a:hover {
  background: var(--gold-2);
  color: #071722;
  transform: translateY(-2px);
}

/* Active/Current link */
.nav-links a.active {
  border-bottom: 2px solid var(--gold-1);
}

/* Toggler (mobile menu button) */
.toggler {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--gold-1);
  font-size: 22px;
  padding: 6px 10px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.toggler:hover {
  background: var(--gold-2);
  color: #071722;
}

/* ============================================================
   HERO SECTION
   ============================================================ */

.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  color: white;
  background: linear-gradient(180deg, #0b1720 0%, #0e1a23 60%);
  overflow: hidden;
  padding-top: 84px;
}

.hero-inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 48px 24px;
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
}

.hero-left {
  max-width: 720px;
  z-index: 4;
}

.kicker {
  display: inline-block;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  letter-spacing: 1px;
  font-weight: 700;
  margin-bottom: 14px;
}

.hero-title {
  font-size: 42px;
  margin: 0 0 10px 0;
  letter-spacing: 1px;
  line-height: 1.06;
  font-weight: 800;
}

.hero-sub {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

/* ============================================================
   BUTTONS / CTA
   ============================================================ */

.cta-row {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  align-items: center;
}

.btn {
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.25s ease;
}

.btn-gold {
  background: linear-gradient(180deg, var(--gold-1), var(--gold-2));
  color: #071922;
  box-shadow: 0 18px 50px rgba(184, 135, 34, 0.12);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn:hover {
  transform: translateY(-2px);
}

/* ============================================================
   CONTENT SECTIONS / CARDS
   ============================================================ */

.section {
  padding: 64px 0;
}

.grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: stretch;
}

.card {
  background: white;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 12px 36px rgba(6, 12, 18, 0.06);
  flex: 1 1 300px;
  min-width: 260px;
}

.small-muted {
  font-size: 13px;
  color: var(--muted);
}

/* ============================================================
   GALLERY
   ============================================================ */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.gallery img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  margin-top: 48px;
  padding: 34px 0;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid rgba(6, 22, 35, 0.06);
  background: rgba(7, 23, 34, 0.95);
  color: #f5f5f5;
}

.footer a {
  color: var(--gold-1);
  text-decoration: none;
}

/* ============================================================
   RESPONSIVE STYLES
   ============================================================ */

@media (max-width: 980px) {
  .hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .hero-right {
    width: 100%;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background: rgba(7, 23, 34, 0.98);
    width: 100%;
    padding: 10px;
    border-radius: 10px;
  }

  .nav-links a {
    color: #fff;
    width: 100%;
    text-align: center;
  }

  .toggler {
    display: inline-flex;
  }
}

/* =========================
   HERO — Enhanced visuals
   Append this at the end of style.css
   ========================= */

/* small helpers */
.accent { color: var(--gold-1); }

/* decorative SVG at top-left (subtle) */
.hero-deco { position:absolute; left:-8%; top:-6%; width:46%; height:46%; opacity:0.28; transform: rotate(-12deg); pointer-events:none; z-index:0; }

/* flyer container with depth + badge */
.flyer-wrap { position: relative; display:inline-block; perspective:1400px; transform-style:preserve-3d; }
.flyer { display:block; width:100%; max-width:300px; border-radius:16px; box-shadow: 0 36px 90px rgba(0,0,0,0.6); transition: transform .45s cubic-bezier(.17,.9,.32,1), box-shadow .45s; will-change: transform; }
.flyer-wrap:hover .flyer { transform: translateY(-8px) rotateX(2deg); box-shadow: 0 48px 120px rgba(0,0,0,0.65); }

/* small floating badge on flyer */
.flyer-badge{
  position:absolute; left:12px; top:12px; background:rgba(0,0,0,0.5); color:#fff; padding:6px 10px; border-radius:10px; font-weight:700; font-size:12px;
  border:1px solid rgba(255,255,255,0.06); backdrop-filter: blur(6px);
}

/* marquee sponsors */
.hero-sponsors{ position:relative; margin-top:18px; z-index:2; width:100%; overflow:hidden; pointer-events:none; }
.sponsor-track { display:flex; gap:40px; align-items:center; white-space:nowrap; animation: sponsorScroll 16s linear infinite; color: rgba(255,255,255,0.55); font-weight:600; }
@keyframes sponsorScroll { 0%{ transform:translateX(0) } 100%{ transform:translateX(-50%) } }

/* small responsive tweaks */
@media (max-width:980px) {
  .hero-deco{ display:none; }
  .flyer { max-width:280px; }
  .flyer-badge { left:10px; top:8px; font-size:11px; }
  .sponsor-track{ animation-duration: 28s; font-size:13px; }
}

/* TEXT MOTION: stagger reveals (used by JS) */
[data-reveal] { opacity:0; transform: translateY(10px) scale(.995); transition: all 600ms cubic-bezier(.2,.9,.2,1); }
[data-reveal].is-visible { opacity:1; transform:none; }

/* fancy underline for hero-title using pseudo element */
.hero-title { position:relative; display:inline-block; line-height:1.02; }
.hero-title::after {
  content:""; position:absolute; left:0; bottom:-10px; height:4px; width:38%; border-radius:6px;
  background: linear-gradient(90deg, rgba(241,200,110,0.95), rgba(180,138,42,0.95)); transform-origin:left; transform: scaleX(0); transition: transform .6s cubic-bezier(.2,.9,.2,1);
}
.hero-title.is-visible::after { transform: scaleX(1); }

/* subtle parallax for left column content (JS updates translateY on scroll) */
.hero-left[data-parallax] { transform: translateY(var(--hl-translate, 0)); transition: transform .12s linear; }

/* accessible reduce motion support */
@media (prefers-reduced-motion: reduce){
  .flyer, .sponsor-track, [data-reveal] { animation: none !important; transition: none !important; transform: none !important; }
}
/* ---------- Persistent safety overrides for hero layout ---------- */
:root { --header-h: 84px !important; }

.hero-inner { justify-content: space-between !important; max-width: 1250px !important; }
.hero-left { display: block !important; flex: 1 1 600px !important; min-width: 0 !important; padding-right: 28px !important; opacity: 1 !important; transform: none !important; }
.hero-right { flex: 0 0 320px !important; max-width: 320px !important; display: flex !important; align-items: flex-start !important; justify-content: center !important; }
.flyer { max-width: 320px !important; width: 100% !important; margin: 0 !important; transform: none !important; box-shadow: 0 36px 90px rgba(0,0,0,0.6) !important; }
[data-reveal] { opacity: 1 !important; transform: none !important; }
.hero-left[data-reveal-fallback] { opacity: 1 !important; transform: none !important; }

/* safety responsive */
@media (max-width: 980px) {
  .hero-left { flex-basis: 100% !important; padding-right: 0 !important; }
  .hero-right { flex-basis: 100% !important; max-width: 320px !important; margin: 0 auto !important; }
  .flyer { max-width: 320px !important; }
}
 /* ===== hero persistent layout fixes: sponsors + counters visuals ===== */
.hero-sponsors {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  display: flex;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
}
.sponsor-track { display:flex; gap:40px; align-items:center; white-space:nowrap; animation: sponsorScroll 16s linear infinite; color: rgba(255,255,255,0.55); font-weight:600; }
@keyframes sponsorScroll { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* countdown / stats visual polish */
.countdown-row > div { min-width:54px; padding:10px 12px; background: rgba(255,255,255,0.02); border-radius:8px; text-align:center; }
.count-val { font-weight:900; font-size:20px; color:var(--gold-1); display:block; margin-bottom:2px; }
.stat-val { font-weight:900; font-size:18px; color:var(--gold-1); display:block; }

@media (max-width:980px){
  .hero-sponsors{ position: static; margin-top:18px; animation-duration: 30s; }
  .sponsor-track{ font-size:13px; }
  .countdown-row{ justify-content:center; }
}
/* ===== hero-meta countdown & stats styling ===== */
.countdown-row{ display:flex; gap:12px; align-items:center; flex-wrap:wrap; }
.countdown-row > div { text-align:center; min-width:62px; padding:10px 12px; background: rgba(255,255,255,0.02); border-radius:8px; }
.count-val { display:block; font-size:20px; font-weight:800; color:var(--gold-1); margin-bottom:6px; }
.countdown strong { color: rgba(255,255,255,0.95); }

.stats{ display:flex; gap:12px; align-items:center; margin-top:10px; flex-wrap:wrap; }
.stat{ text-align:center; min-width:82px; padding:10px 12px; background: rgba(255,255,255,0.02); border-radius:10px; }
.stat .stat-val{ display:block; font-size:18px; font-weight:800; color:var(--gold-1); margin-bottom:6px; }
@media (max-width:980px){
  .countdown-row{ justify-content:center; }
  .stats { justify-content:center; }
  .countdown-row > div, .stat { min-width:58px; padding:8px; }
}
/* ============================================================
   HERO SPONSORS MARQUEE (MOBILE-FRIENDLY + RESPONSIVE)
   ============================================================ */
.hero-sponsors {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  pointer-events: none;
  z-index: 5;
  padding: 8px 0;
  background: rgba(7, 23, 34, 0.35);
  backdrop-filter: blur(4px);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.sponsor-track {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  animation: sponsorScroll 18s linear infinite;
  color: var(--gold-1);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 15px;
  opacity: 0.9;
}

.sponsor-track span {
  display: inline-block;
  padding-right: 40px;
}

/* Scrolling animation */
@keyframes sponsorScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===================================
   MOBILE ADAPTIVE STYLING
   =================================== */
@media (max-width: 768px) {
  .hero-sponsors {
    font-size: 13px;
    background: rgba(7, 23, 34, 0.55);
    padding: 6px 0;
  }

  .sponsor-track {
    animation-duration: 22s;
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .sponsor-track {
    font-size: 12px;
    animation-duration: 26s;
  }
}
/* ===== NAVBAR / MOBILE FIXES ===== */
/* Ensure header allows interaction for children and navbar sits above everything */
.header{ pointer-events: none; } /* keep global pass-through but .navbar must receive clicks */
.navbar{ pointer-events: auto; z-index:1300; position:relative; }

/* Make toggler visible and accessible on small screens */
.toggler{ display:none; cursor:pointer; }
@media (max-width: 980px) {
  .toggler{ display:inline-flex !important; }
}

/* NEW: Add a 'nav-open' state on the navbar to show mobile nav */
.navbar .nav-links{ transition: all .22s ease; }
.navbar .nav-links.mobile-hidden { display:none !important; opacity:0; max-height:0; overflow:hidden; }
.navbar.nav-open .nav-links { 
  display:flex !important; 
  flex-direction:column; 
  gap:8px; 
  padding:12px; 
  background: rgba(7,23,34,0.98);
  border-radius:10px;
  width:calc(100% - 32px);
  margin-top:10px;
  opacity:1;
  max-height:1000px;
}

/* ensure mobile nav links fill width for easy tap targets */
.navbar.nav-open .nav-links a { width:100%; display:block; text-align:center; padding:10px 12px; }

/* ensure toggler visible style */
.toggler[aria-expanded="true"]{ background:var(--gold-2); color:#071722; }

/* ===== HERO MOBILE IMPROVEMENTS ===== */
/* Stack hero properly on mobile and center content */
@media (max-width: 980px) {
  .hero { padding-top: calc(var(--header-h) + 12px) !important; padding-bottom:20px; }
  .hero-inner { flex-direction: column-reverse !important; align-items: center !important; gap:18px !important; padding:20px; text-align:center; }
  .hero-left { max-width: 100% !important; padding: 0 12px !important; }
  .hero-left .hero-title { font-size: 30px !important; }
  .hero-right { flex-basis: 100% !important; width:100% !important; display:flex; justify-content:center; align-items:center; margin-bottom:6px; }
  .flyer, .flyer-wrap { max-width: 320px !important; width: 100% !important; margin: 0 auto !important; }
  .hero-meta { display:flex; flex-direction:column; gap:12px; align-items:center; }
  .hero-sponsors { position: static !important; margin-top:14px !important; padding:8px 12px; border-radius:8px; width:100%; box-sizing:border-box; }
}

/* small tap target improvements for body-overlap edge cases */
.nav-links a, .toggler{ -webkit-tap-highlight-color: rgba(0,0,0,0.0); }

/* Force toggler clickable even if other overlays exist */
.toggler { z-index: 1400; position: relative; }

/* --------------------------
   MOBILE: spacing + sponsor below image
   -------------------------- */
@media (max-width: 980px) {

  /* ensure the right column (flyer) has comfortable space below it */
  .hero-right {
    padding-bottom: 28px;    /* space under the flyer */
    margin-bottom: 10px;
    width: 100%;
    box-sizing: border-box;
  }
  .hero-right .flyer,
  .hero-right img {
    margin-bottom: 18px;     /* extra breathing room under the image */
    display: block;
    max-width: 320px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  /* force the sponsor bar into the document flow on mobile so it appears below content */
  .hero-sponsors {
    position: static !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    margin-top: 14px !important;
    padding: 8px 12px !important;
    pointer-events: auto !important;
    background: rgba(7, 23, 34, 0.45) !important;
    backdrop-filter: blur(4px) !important;
    border-radius: 8px !important;
    z-index: 10 !important;
    order: 99 !important; /* ensure it visually flows after other hero contents */
  }

  /* a safety rule if the hero layout uses flex ordering: ensure hero-inner stacks nicely */
  .hero-inner {
    flex-direction: column-reverse !important;
    align-items: center !important;
    gap: 18px !important;
    padding: 20px !important;
  }

  /* ensure the navbar toggler stays tappable even if other overlays exist */
  .toggler {
    pointer-events: auto !important;
    z-index: 1500 !important;
    position: relative !important;
  }

  /* keep the hero-title responsive */
  .hero-left .hero-title { font-size: 30px !important; }
}


/* -------------------------
   Mobile nav (fixed under header) - replace previous mobile nav CSS
   ------------------------- */
@media (max-width: 980px) {

  /* ensure header/navbar stays fixed and defines the header height variable */
  .navbar {
    position: fixed;
    left: 0;
    right: 0;
    top: 12px;
    margin: 0 auto;
    max-width: var(--maxw);
    padding: 10px 14px;
    z-index: 1500; /* header above everything */
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(7,23,34,0.95);
  }

  /* show toggler and keep it visible */
  .toggler {
    display: inline-flex !important;
    width: 46px;
    height: 46px;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: linear-gradient(180deg, var(--gold-1), var(--gold-2));
    color: #071722;
    z-index: 1515; /* above overlay */
    border: none;
  }

  /* hide inline nav by default */
  .nav-links {
    display: none;
  }

  /* dim backdrop but start it below the header (use header height variable) */
  .navbar.nav-open::after {
    content: "";
    position: fixed;
    left: 0;
    right: 0;
    top: calc(var(--header-h, 84px) + 0px);
    bottom: 0;
    background: rgba(3,10,14,0.45);
    z-index: 1520;
    pointer-events: auto;
  }

  /* overlay menu sits under the header (top = header height) */
  .navbar.nav-open .nav-links {
    display: flex !important;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    justify-content: flex-start;
    position: fixed;
    left: 0;
    right: 0;
    top: calc(var(--header-h, 84px) + 4px); /* slightly below header */
    height: calc(100vh - calc(var(--header-h, 84px) + 4px));
    padding: 20px 18px;
    background: linear-gradient(180deg, rgba(7,23,34,0.98), rgba(7,23,34,0.98));
    z-index: 1530;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
    animation: mobileMenuOpen .18s cubic-bezier(.2,.9,.2,1);
  }

  @keyframes mobileMenuOpen {
    from { transform: translateY(-6px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
  }

  .navbar.nav-open .nav-links a {
    width: 100%;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    padding: 14px 12px;
    border-radius: 10px;
    color: #fff;
    background: transparent;
  }
  .navbar.nav-open .nav-links a:hover {
    background: rgba(255,255,255,0.03);
    transform: translateY(-2px);
  }

  /* ensure brand/logo keeps a small presence on left */
  .brand { gap: 10px; align-items: center; }
  .logo { width: 52px; height: 52px; }

  /* hero: avoid being overlapped by header: ensure top padding uses header variable */
  .hero { padding-top: calc(var(--header-h, 84px) + 12px) !important; }

  /* flyer & sponsor spacing on mobile */
  .hero-right { width:100%; padding-bottom: 20px; margin: 0 auto; }
  .hero-right .flyer { margin: 0 auto 18px; max-width: 320px; width: 100%; display:block; }

  /* make sure toggler is always tappable above overlay */
  .toggler { position: relative; z-index: 1540 !important; pointer-events: auto !important; }
}


/* -----------------------------
   MOBILE-FIRST HERO: clean stack + spacing
   For widths <= 768px (phones)
   ----------------------------- */
@media (max-width: 768px) {

  /* Ensure header height variable is respected and hero sits below header */
  .hero {
    padding-top: calc(var(--header-h, 84px) + 12px) !important;
    padding-bottom: 28px !important;
    min-height: auto;
    background-position: center top;
  }

  /* Stack: show flyer first, then content (image above text) */
  .hero-inner {
    display: flex !important;
    flex-direction: column-reverse !important; /* image above text */
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 16px !important;
    padding: 18px !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  /* Left block (text) becomes full width and centered */
  .hero-left {
    width: 100% !important;
    max-width: 760px !important;
    padding: 6px 8px !important;
    text-align: center !important;
    order: 2 !important;
  }

  .kicker {
    display: inline-block;
    padding: 8px 14px;
    font-size: 13px !important;
    border-radius: 20px;
    margin: 6px auto 12px auto;
  }

  /* Smaller, friendly hero title for phones */
  .hero-title {
    font-size: 34px !important;
    line-height: 1.06 !important;
    margin: 6px auto 12px auto !important;
    display: block;
    word-break: break-word;
    max-width: 92%;
  }

  /* Accent words should still stand out but not break layout */
  .hero-title .accent {
    display: inline;
    font-weight: 900;
  }

  /* Paragraph sizing and line-height */
  .hero-sub {
    font-size: 15.5px !important;
    line-height: 1.7 !important;
    margin: 10px auto 12px auto !important;
    max-width: 92%;
    color: rgba(255,255,255,0.92);
  }

  /* CTA buttons stack and become full width (comfortable tap targets) */
  .hero-cta-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 12px auto !important;
    width: 100%;
    max-width: 340px;
  }
  .hero-cta-row .btn { width: 100%; padding: 14px 18px; font-size: 16px; border-radius: 12px; }

  /* Meta (countdown) centered */
  .hero-meta { margin: 12px auto 0 auto; text-align:center; width:100%; max-width:360px; }

  /* Right block (flyer) becomes full-width-ish, placed first visually */
  .hero-right {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    order: 1 !important;
    padding: 0 8px 6px 8px;
    box-sizing: border-box;
  }

  /* Flyer sizing for mobile */
  .flyer {
    width: 100% !important;
    max-width: 320px !important;
    height: auto !important;
    object-fit: cover !important;
    border-radius: 12px !important;
    box-shadow: 0 18px 48px rgba(0,0,0,0.55) !important;
    margin: 0 auto 10px auto !important;
    display: block !important;
  }

  .flyer-badge {
    transform: translateY(-4px);
    left: 12px !important;
    top: 10px !important;
    font-size: 12px !important;
  }

  /* If sponsors enabled, keep them in-flow below everything */
  .hero-sponsors {
    position: static !important;
    margin-top: 16px !important;
    padding: 10px 12px !important;
    width: 100% !important;
    box-sizing: border-box;
    border-radius: 8px;
    background: rgba(7,23,34,0.35) !important;
    pointer-events: auto !important;
  }
  .sponsor-track { font-size: 12px !important; animation-duration: 26s !important; }

  /* Small accessibility & spacing fixes */
  .hero-title, .hero-sub, .kicker { -webkit-font-smoothing: antialiased !important; }
  .container { padding-left: 12px; padding-right: 12px; }

  /* Keep toggler visible and header stable */
  .toggler { z-index: 1600 !important; position: relative !important; }
  .navbar { z-index: 1650 !important; }

  /* reduce heavy shadows on mobile to keep visual clarity */
  .flyer, .navbar { box-shadow: 0 10px 30px rgba(0,0,0,0.45) !important; }

}
/* -----------------------------
   Center hero title underline and button text
   ----------------------------- */

/* If there's a gold line / accent line under title */
.hero-title::after {
  content: "";
  display: block;
  width: 70px;                 /* line length */
  height: 4px;                 /* line thickness */
  background: linear-gradient(90deg, var(--gold-1), var(--gold-2));
  margin: 10px auto 0 auto;    /* centers it */
  border-radius: 3px;
}

/* Center text inside buttons */
.btn, .btn-gold, .btn-outline {
  text-align: center !important;
  justify-content: center !important;
  align-items: center !important;
  display: inline-flex !important;
}

/* Make buttons evenly centered inside their row */
.hero-cta-row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  justify-content: center !important;
  gap: 12px !important;
}

/* Ensure the gold button text truly centers vertically */
.btn-gold {
  font-weight: 600;
  letter-spacing: 0.4px;
  color: #071722 !important;
  background: linear-gradient(180deg, var(--gold-1), var(--gold-2)) !important;
  border: none;
  transition: all 0.25s ease;
}
.btn-gold:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
}

/* Optional: on very small screens, buttons stack centered */
@media (max-width: 768px) {
  .hero-cta-row {
    flex-direction: column !important;
    align-items: center !important;
  }
  .btn {
    width: 80%;
    max-width: 280px;
  }
}
/* ===========================
   ABOUT SECTION STYLES
   =========================== */
.about-section {
  background: linear-gradient(180deg, #0b1720 0%, #101e29 100%);
  color: #fff;
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 36px;
  font-weight: 800;
  color: var(--gold-1);
  margin-bottom: 10px;
}

.section-intro {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 40px auto;
  font-size: 16px;
  line-height: 1.7;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.about-card {
  background: rgba(255,255,255,0.05);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.4);
}

.about-card h3 {
  color: var(--gold-1);
  font-weight: 700;
  margin-bottom: 10px;
}

.about-list {
  list-style: disc;
  padding-left: 18px;
  line-height: 1.6;
}

.about-founder {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-top: 60px;
}

.founder-image img {
  width: 260px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 26px rgba(0,0,0,0.5);
}

.founder-text {
  max-width: 520px;
}

.founder-text h3 {
  color: var(--gold-1);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}

.founder-text p {
  line-height: 1.7;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .section-title { font-size: 28px; }
  .section-intro { font-size: 15px; padding: 0 10px; }
  .about-card { padding: 18px; }
  .about-founder { flex-direction: column; text-align: center; }
  .founder-image img { width: 200px; }
}
/* ============================
   Events Section (Elleganza)
   ============================ */
/* ===== Improved Events Section Layout ===== */
.events-section {
  background: linear-gradient(180deg, #071722 0%, #0c1e2c 100%);
  color: #fff;
  padding: 80px 0;
}

/* Title & subtitle styling */
.events-section .section-title {
  color: var(--gold-1);
  font-size: 32px;
  text-align: center;
  font-weight: 800;
  margin-bottom: 10px;
}

.events-section .section-sub {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 40px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
}

/* Grid Layout */
.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

/* 2-column layout for tablets */
@media (min-width: 768px) and (max-width: 991px) {
  .events-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  /* Center or span the last card for balance */
  .events-grid .event-card:last-child {
    grid-column: span 2;
    max-width: 80%;
    margin: 0 auto;
  }
}

/* 1-column layout for mobile */
@media (max-width: 767px) {
  .events-grid {
    grid-template-columns: 1fr;
  }
}

/* Event Card Styling */
.event-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
}

.event-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
}

/* Image area */
.event-media {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.event-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.event-card:hover .event-media img {
  transform: scale(1.05);
}

/* Badge (top-left corner) */
.event-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: linear-gradient(90deg, var(--gold-1), var(--gold-2));
  color: #111;
  font-weight: 700;
  padding: 6px 10px;
  font-size: 13px;
  border-radius: 8px;
}

/* Card body */
.event-body {
  flex: 1;
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
}

.event-body h3 {
  font-size: 18px;
  color: #fff;
  margin-bottom: 6px;
  font-weight: 700;
}

.event-body .meta {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
}

.event-body p {
  margin-bottom: 10px;
  line-height: 1.6;
}

.event-highlights {
  margin: 6px 0 0 18px;
  list-style: disc;
  color: rgba(255, 255, 255, 0.85);
}

/* CTA buttons (aligned and balanced even if one is missing) */
.event-cta-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: auto;
  margin-bottom: 10px;
}

.event-cta-row .btn {
  flex: 1;
  text-align: center;
  font-weight: 700;
  border-radius: 10px;
  max-width: 180px;
}

/* If only one button — center it */
.event-cta-row:only-child,
.event-cta-row:has(.btn:only-child) {
  justify-content: center;
}

/* Event details toggle */
.event-details {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  display: none;
}

.event-details.open {
  display: block;
}

.event-details h5,
.event-details h4 {
  color: var(--gold-1);
  margin: 10px 0 6px 0;
  font-size: 15px;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 6px 10px;
}

/* Timeline styling */
.events-timeline {
  margin-top: 50px;
  text-align: center;
}

.timeline-list {
  list-style: none;
  padding: 0;
  margin-top: 10px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.timeline-list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Footer CTA */
.events-footer {
  margin-top: 50px;
  text-align: center;
}

.events-cta {
  background: rgba(255, 255, 255, 0.04);
  padding: 28px;
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  display: inline-block;
  max-width: 800px;
}

.events-cta h3 {
  color: #fff;
  font-size: 20px;
  margin-bottom: 6px;
}

.events-cta .cta-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

/* CTA buttons (aligned and balanced even if one is missing) */
.event-cta-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px; /* increased from 10px → adds more gap */
  margin-bottom: 10px;
}

/* On larger screens, add even more breathing room for better visual balance */
@media (min-width: 992px) {
  .event-cta-row {
    margin-top: 32px;
  }
}


.events-cta .btn {
  border-radius: 10px;
  font-weight: 700;
  padding: 12px 20px;
}

/* === Emergency: Force events section visible & highlightable === */
.events-section,
.events-section * {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
  color: #ffffff !important;
  pointer-events: auto !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Also make sure event-card blocks are displayed */
.events-section .event-card {
  display: flex !important;
  flex-direction: column !important;
}

/* If .event-details are intentionally hidden, keep them collapsed but visible if opened */
.event-details { display: none; }
.event-details.open { display: block; }

/* Make sure header/title remains styled */
.events-section .section-title { color: var(--gold-1) !important; }
/* ===== Services ===== */
.services-section { background: linear-gradient(180deg,#081a23,#0a1f2a); color:#fff; }
.services-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
@media (max-width:1024px){ .services-grid{ grid-template-columns:repeat(2,1fr);} }
@media (max-width:640px){ .services-grid{ grid-template-columns:1fr;} }
.svc-card{ background:rgba(255,255,255,.04); border-radius:14px; overflow:hidden; box-shadow:0 10px 30px rgba(0,0,0,.35); transition:.3s; }
.svc-card:hover{ transform:translateY(-6px); box-shadow:0 18px 48px rgba(0,0,0,.5); }
.svc-card img{ width:100%; height:160px; object-fit:cover; display:block; }
.svc-card h3{ margin:12px 16px 6px; color:#fff; font-size:18px; }
.svc-card p{ margin:0 16px 8px; }
.svc-points{ margin:0 16px 16px 34px; list-style:disc; }

/* ===== Programs ===== */
.programs-section{ background:linear-gradient(180deg,#0a1f2a,#0b2431); color:#fff; }
.programs-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
@media (max-width:900px){ .programs-grid{ grid-template-columns:repeat(2,1fr);} }
@media (max-width:640px){ .programs-grid{ grid-template-columns:1fr;} }
.prog-card{ background:rgba(255,255,255,.04); border-radius:14px; overflow:hidden; box-shadow:0 10px 30px rgba(0,0,0,.35); padding-bottom:8px; transition:.3s; }
.prog-card:hover{ transform:translateY(-6px); }
.prog-card img{ width:100%; height:180px; object-fit:cover; display:block; }
.prog-card h3{ margin:12px 16px 6px; color:#fff; font-size:18px; }
.prog-card p{ margin:0 16px 12px; }


/* ===== Testimonials ===== */
.testi-section{ background:linear-gradient(180deg,#0c2938,#0d2e3f); color:#fff; }
.testi-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
@media (max-width:900px){ .testi-grid{ grid-template-columns:repeat(2,1fr);} }
@media (max-width:640px){ .testi-grid{ grid-template-columns:1fr;} }
.quote-card{ background:rgba(255,255,255,.05); padding:20px; border-radius:14px; box-shadow:0 10px 30px rgba(0,0,0,.35); }
.quote-card p{ font-size:16px; line-height:1.7; }
.quote-card footer{ margin-top:10px; color:var(--gold-1); font-weight:700; }

/* ===== FAQ ===== */
.faq-section{ background:linear-gradient(180deg,#0d2e3f,#0e3447); color:#fff; }
.faq-list{ max-width:900px; margin:0 auto; }
.faq-item{ border-bottom:1px solid rgba(255,255,255,.06); }
.faq-q{ width:100%; text-align:left; background:transparent; border:0; color:#fff; font-weight:700; padding:14px 0; cursor:pointer; }
.faq-a{ display:none; padding:0 0 16px; }
.faq-item.open .faq-a{ display:block; }

/* ===== Gallery ===== */
.gallery-section{ background:linear-gradient(180deg,#0e3447,#103a4f); color:#fff; }
.gallery-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
@media (max-width:900px){ .gallery-grid{ grid-template-columns:repeat(2,1fr);} }
@media (max-width:520px){ .gallery-grid{ grid-template-columns:1fr;} }
.gallery-grid img{ width:100%; height:220px; object-fit:cover; border-radius:10px; box-shadow:0 8px 24px rgba(0,0,0,.35); transition:.3s; }
.gallery-grid img:hover{ transform:translateY(-4px); }

/* ===== Partner CTA ===== */
.partner-cta{ background:linear-gradient(180deg,#103a4f,#114059); color:#fff; text-align:center; }
.partner-cta .cta-wrap{ background:rgba(255,255,255,.04); padding:24px; border-radius:14px; box-shadow:0 10px 30px rgba(0,0,0,.35); max-width:880px; margin:0 auto; }

/* ===== Contact ===== */
.contact-section{ background:linear-gradient(180deg,#114059,#0b1720); color:#fff; }
.contact-grid{ display:grid; grid-template-columns: 1.1fr .9fr; gap:20px; align-items:start; }
@media (max-width:900px){ .contact-grid{ grid-template-columns:1fr; } }

.contact-card{ background:rgba(255,255,255,.05); border-radius:14px; padding:18px; box-shadow:0 12px 36px rgba(0,0,0,.35); }
.contact-card .row{ margin-bottom:12px; }
.contact-card .row.two{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
@media (max-width:520px){ .contact-card .row.two{ grid-template-columns:1fr; } }
.contact-card label{ display:block; font-weight:700; margin-bottom:6px; }
.contact-card input[type="text"],
.contact-card input[type="email"],
.contact-card input[type="tel"],
.contact-card input[type="file"],
.contact-card select,
.contact-card textarea{
  width:100%; padding:12px 12px; border-radius:10px; border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04); color:#fff; outline:none;
}
.contact-card textarea{ resize:vertical; }
.contact-card .req{ color:var(--gold-1); }
.contact-card .hp{ position:absolute; left:-9999px; top:-9999px; height:0; width:0; opacity:0; } /* honeypot */
.contact-card .agree label{ font-weight:500; }

.contact-info{ background:rgba(255,255,255,.04); border-radius:14px; padding:18px; }
.contact-info a{ color:var(--gold-1); text-decoration:none; }
.contact-info .map-wrap img{ width:100%; border-radius:10px; margin:10px 0; box-shadow:0 8px 24px rgba(0,0,0,.35); }

#cf-status{ display:inline-block; margin-left:10px; min-height:22px; }


.hero-cta-row {
  display: flex !important;
  gap: 14px !important;
  flex-wrap: wrap !important;
  justify-content: center !important; /* Center by default for mobile/tablet */
}

/* On large screens, align left */
@media (min-width: 992px) {
  .hero-cta-row {
    justify-content: flex-start !important;
  }
}


.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

/* On large screens: 3 equal columns */
@media (min-width: 992px) {
  .about-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* On medium screens: 2 columns, last card spans both */
@media (min-width: 768px) and (max-width: 991px) {
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Make the last card span across both columns */
  .about-grid .about-card:last-child {
    grid-column: span 2;
    max-width: 80%;
    margin: 0 auto; /* Center horizontally */
  }
}

/* On small screens: single column (default auto-fit handles it) */
.about-founder {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-top: 60px;
}

/* Founder image */
.founder-image img {
  width: 260px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.5);
}

/* Founder text */
.founder-text {
  max-width: 520px;
}

/* Headings & text */
.founder-text h3 {
  color: var(--gold-1);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}

.founder-text p {
  line-height: 1.7;
  margin-bottom: 20px;
}

/* -------- Responsive behavior -------- */

/* 🧩 Medium screens (768–991px): image left, text right */
@media (min-width: 768px) and (max-width: 991px) {
  .about-founder {
    flex-direction: row;              /* side-by-side */
    justify-content: space-between;
  }
  .founder-image {
    flex: 0 0 40%;                   /* image takes ~40% */
    text-align: left;
  }
  .founder-text {
    flex: 0 0 55%;                   /* text takes ~55% */
  }
}

/* 📱 Small screens: stack vertically */
@media (max-width: 767px) {
  .about-founder {
    flex-direction: column;
    text-align: center;
  }
  .founder-image img {
    width: 200px;
  }
  .founder-text {
    max-width: 90%;
  }
}



/* =========================
   Centered Partner Logo Marquee
   ========================= */

.logo-marquee {
  width: 100%;
  display: flex;
  justify-content: center;      /* center the whole block */
  padding: 22px 10px;           /* comfortable vertical padding */
  box-sizing: border-box;
  position: relative;
  background: rgba(255,255,255,0.02);
  border-radius: 18px;
  margin: 18px 0;
  overflow: hidden;             /* hide marquee overflow */
}

.logo-marquee {
  background: #0b1722;
}

/* fade masks on sides for premium look */
.logo-marquee::before,
.logo-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 10%;
  pointer-events: none;
  z-index: 10;
}
.logo-marquee::before { left: 0; background: linear-gradient(90deg, rgba(11,23,34,1) 0%, rgba(11,23,34,0) 100%); }
.logo-marquee::after  { right:0; background: linear-gradient(270deg, rgba(11,23,34,1) 0%, rgba(11,23,34,0) 100%); }

/* track wrapper — centered and limited width so it's not stuck to edges */
.logo-track {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0 auto;
  /* limit width to keep the logos centered content */
  max-width: 980px;
  padding: 8px 6px;
  box-sizing: content-box;
  /* optional marquee animation: comment out if you prefer static */
  animation: marqueeSlide 20s linear infinite;
}

/* logo tiles: bigger, squared, rounded corners */
.logo-track img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  background: rgba(255,255,255,0.06);
  padding: 12px;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.35);
  transition: transform .28s ease, box-shadow .28s ease;
  display:block;
}

/* hover / tap feedback */
.logo-track img:hover,
.logo-track img:focus {
  transform: translateY(-6px) scale(1.04);
  box-shadow: 0 14px 40px rgba(0,0,0,0.45);
}

/* smaller logos on narrow screens */
@media (max-width: 900px) {
  .logo-track img { width: 100px; height: 100px; padding: 10px; }
  .logo-track { gap: 20px; max-width: 760px; animation-duration: 26s; }
}

/* phones */
@media (max-width: 520px) {
  .logo-track img { width: 76px; height: 76px; padding: 8px; border-radius: 12px; }
  .logo-track { gap: 14px; max-width: 100%; animation-duration: 32s; padding: 6px 10px; }
}

/* marquee animation (optional): smooth leftward loop — keep duplicates of images in markup for seamless loop */
@keyframes marqueeSlide {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); } /* assumes you duplicated image set */
}

/* Accessibility: pause animation on hover or when user prefers reduced motion */
.logo-track:hover { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none !important; }
}
/* ==============================
   Partners & Sponsors Section
   ============================== */

.partners-section {
  background: #0b1722 !important; /* dark navy, same as rest of site */
  padding: 80px 0;
  text-align: center;
  color: #fff;
}

.partners-section .section-title {
  color: var(--gold-1);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.partners-section .section-sub {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 40px;
}

/* ===== Gallery grid (responsive, cropped thumbnails) ===== */
.gallery-section { padding: 64px 0; background: linear-gradient(180deg,#0b1722,#081a23); color:#fff; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  align-items: stretch;
  margin-top: 18px;
}
.gallery-item {
  display:block;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0,0,0,0.45);
  transition: transform .25s ease, box-shadow .25s ease;
}
.gallery-item img {
  width: 100%;
  height: 200px;               /* consistent thumbnail height */
  object-fit: cover;           /* crop/fit different aspect ratios */
  display:block;
  transform-origin: center;
}
.gallery-item:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(0,0,0,0.6); }

/* responsive adjustments */
@media (max-width:900px){
  .gallery-item img { height: 180px; }
}
@media (max-width:520px){
  .gallery-grid { gap:8px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  .gallery-item img { height: 160px; }
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(3,10,14,0.85);
  z-index: 9999;
  padding: 20px;
}
.lightbox[aria-hidden="false"] { display: flex; }
.lb-inner { max-width: 1100px; width: 100%; text-align:center; }
.lb-inner img { max-width: 100%; max-height: calc(100vh - 180px); object-fit: contain; border-radius: 8px; }
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: rgba(255,255,255,0.06);
  color: #fff;
  border: 0;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  backdrop-filter: blur(4px);
}
.lb-close { top: 18px; right: 18px; font-size:28px; line-height:1; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); font-size:26px; }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); font-size:26px; }
#lb-caption { margin-top:10px; color: rgba(255,255,255,0.8); font-size:14px; }

/* keyboard focus */
.lightbox :focus { outline: 2px solid rgba(241,200,110,0.18); outline-offset: 2px; }
/* ===== TEAM SECTION ===== */
.team-section {
  background: linear-gradient(180deg, #0b1722, #08141f);
  color: #fff;
  padding: 80px 0;
  text-align: center;
}
.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center; /* ✅ centers all rows including last row */
}

.team-card {
  flex: 0 1 300px; /* each card around 300px wide */
  box-sizing: border-box;
}



.team-card {
  background: rgba(255,255,255,0.04);
  border-radius: 14px;
  overflow: hidden;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 44px rgba(0,0,0,0.6);
}

.team-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.team-info {
  padding: 18px 16px 24px;
}

.team-info h3 {
  font-size: 1.3rem;
  color: var(--gold-1);
  margin-bottom: 4px;
}

.team-info .role {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.team-info .btn {
  margin-top: 14px;
}

/* ===== PDF Modal ===== */
.pdf-modal {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.pdf-modal[aria-hidden="false"] {
  display: flex;
}

.pdf-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
}

.pdf-dialog {
  position: relative;
  width: 90%;
  max-width: 960px;
  height: 90%;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  z-index: 1;
}

.pdf-dialog iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.pdf-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 0;
  font-size: 30px;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  width: 38px;
  height: 38px;
}

.pdf-close:hover {
  background: rgba(255,255,255,0.2);
}

/* Responsive tweak */
@media (max-width: 600px) {
  .team-img { height: 260px; }
}


/* Fix unwanted white strip above footer */
section,
footer,
.section {
  background-color: #0b1722 !important; /* match your site background */
  color: #fff;
}

body {
  background-color: #0b1722 !important;
}

/* make sure footer transition is smooth */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
body, html {
  margin: 0;
  padding: 0;
  background: #0b1722;
}

main {
  background: #0b1722;
}


.quote-source {
  display: block;
  margin-top: 8px;
  font-style: italic;
  color: var(--muted);
  font-size: 0.9rem;
}


.footer {
  background: #060d13;
  color: rgba(255, 255, 255, 0.85);
  padding: 2.5rem 1rem;
  position: relative;
  z-index: 10;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1 1 280px;
}

.footer-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 10px;
  background: #0d1821;
  padding: 6px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: center;
  flex: 1 1 220px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--gold, #c5a34f);
}

.footer-meta {
  text-align: right;
  flex: 1 1 250px;
}

.footer-bar {
  height: 3px;
  width: 100%;
  background: linear-gradient(to right, #c5a34f, #8a6d2c);
  margin-top: -1px;
}

.dev-link {
  color: var(--gold, #c5a34f);
  text-decoration: none;
  font-weight: 600;
}
.dev-link:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .footer-meta {
    text-align: center;
  }
  .footer-links {
    justify-content: center;
  }
  .footer-brand {
    justify-content: center;
    text-align: center;
  }
}


/* ===== PDF Modal Styling ===== */
.pdf-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition: opacity 0.4s ease;
}
.pdf-modal[aria-hidden="false"] {
  display: flex;
}
.pdf-dialog {
  position: relative;
  width: 90%;
  max-width: 1000px;
  height: 85vh;
  background: #0b1219;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0,0,0,0.6);
}
.pdf-overlay {
  position: fixed;
  inset: 0;
  cursor: pointer;
}
.pdf-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 28px;
  color: #fff;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 5;
}
.pdf-close:hover { color: var(--gold, #c5a34f); }

.pdf-dialog iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  background: #0b1219;
}

/* ===== Loader ===== */
.pdf-loader {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: opacity 0.4s ease;
}
.pdf-ring {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 5px solid rgba(255,255,255,0.2);
  border-top: 5px solid var(--gold, #c5a34f);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: spin 1s linear infinite;
}
#pdf-progress {
  color: var(--gold, #c5a34f);
  font-size: 1.2rem;
  font-weight: 600;
}
.loader-text {
  color: #fff;
  margin-top: 12px;
  font-size: 0.9rem;
  opacity: 0.8;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


/* SweetAlert small theme touches for Elleganza */
.elleganza-swal-popup {
  border-radius: 14px !important;
  padding: 22px !important;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  box-shadow: 0 28px 80px rgba(0,0,0,0.6) !important;
  max-width: 520px;
}
.elleganza-swal-title {
  font-weight: 800 !important;
  font-size: 20px !important;
  letter-spacing: .3px;
  color: var(--gold-1) !important;
}
.elleganza-swal-content {
  color: #fff !important;
  opacity: .95;
}
.elleganza-swal-confirm {
  border-radius: 10px !important;
  padding: 10px 18px !important;
  background: linear-gradient(180deg, var(--gold-1), var(--gold-2)) !important;
  color: #071722 !important;
  font-weight: 700 !important;
  border: none !important;
  box-shadow: 0 12px 30px rgba(180,138,42,0.12) !important;
}
