/* Events page — image-first, scalable grid, minimal copy */
html, body { overflow-x: hidden; }
/* Extra safety for this page only */
body.events-shell { overflow-x: hidden; overscroll-behavior-x: contain; }
body.events-shell, body.events-shell * { box-sizing: border-box; }

/* Contain wide glow pseudo-elements to avoid horizontal scroll */
.upcoming-halloween,
.events-hero,
.tone-halloween,
.tone-dino,
.tone-hp {
  overflow: hidden;
}


/* Shared media background helper */
.media-bg {
  position: relative;
  background: var(--bg, none) center/cover no-repeat;
  color: #fff;
}
.media-bg .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.55));
  pointer-events: none;
}

/* Hero */
.events-hero { 
  min-height: 52vh; 
  display: grid; 
  place-items: center; 
  text-align: left;
}

/* Upcoming Halloween Parallax Section */
.upcoming-halloween.media-bg {
  --bg: url("../images/events/pumpkin-cooking.png"); /* fallback; you can swap to pumpkin image later */
  position: relative;
  min-height: 70vh;
  background-attachment: fixed; /* parallax effect */
  background-position: center;
  background-size: cover;
  display: grid;
  place-items: center;
}
.parallax { will-change: background-position; }
@media (max-width: 768px) {
  .upcoming-halloween.media-bg { background-attachment: scroll; }
}
.media-bg.parallax { background-attachment: fixed; }
@media (max-width: 768px) {
  .media-bg.parallax { background-attachment: scroll; }
}
.upcoming-halloween .wrap { position: relative; z-index: 1; max-width: 1100px; padding: 2rem; }
.tone-halloween .overlay { background: linear-gradient(180deg, rgba(17,8,0,.35), rgba(0,0,0,.75)); }
.tone-halloween .pill--halloween{
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 45%, #fde68a 100%);
  color:#1b0d00; box-shadow: 0 6px 16px rgba(245,158,11,.18);
}
.halloween-list li i { color:#fde68a; }
.halloween-cta { background:#f59e0b; }
.halloween-cta:hover { background:#fbbf24; }
/* Ensure readable text on button (override any link hover colors) */
.halloween-cta,
.halloween-cta:visited,
.halloween-cta:hover,
.halloween-cta:focus { color:#111827; }
.halloween-cta:hover { color:#111827; }
.halloween-cta i { color: inherit; }

/* Subtle pumpkin glow accent at bottom – updated for mobile */
.tone-halloween::after {
  /* Content and positioning */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -20%;    /* Tuck the glow slightly below content */
  height: 45%;
  z-index: 1;

  /* A smaller blur radius prevents overflow on small screens */
  filter: blur(25px);
  opacity: 0.12;

  /* Warm radial gradient matching your brand colours */
  background: radial-gradient(circle at 50% 40%, rgba(245, 158, 11, 0.25), transparent 60%);

  /* Prevent the pseudo-element from blocking clicks/taps */
  pointer-events: none;
}

/* Key info chips for Halloween hero */
.upcoming-halloween .hero-key { display:flex; flex-wrap:wrap; gap:.5rem; margin:.6rem 0 1rem; }
.upcoming-halloween .key-chip {
  display:inline-flex; align-items:center; gap:.5rem;
  background: rgba(255,255,255,.92);
  color:#111827; font-weight:800; border-radius:999px; padding:.5rem .9rem; border:1px solid rgba(17,24,39,.12);
  box-shadow: 0 8px 22px rgba(0,0,0,.12);
}
.upcoming-halloween .key-chip i { color:#f59e0b; }

/* Archive header */
.archive-head { 
  position: relative;
  background: linear-gradient(90deg, #0b0b0b, #111827 40%, #0b0b0b);
  color:#fff; padding: 22px 0; 
  border-top: 4px solid #ff6b00; /* visible divider */
  border-bottom: 4px solid #8b5cf6; /* ties into HP theme */
  box-shadow: 0 -8px 24px rgba(0,0,0,.35), 0 10px 24px rgba(0,0,0,.25);
}
.archive-head .wrap { max-width:1100px; margin:0 auto; padding: 0 2rem; }
.archive-head .section-title { font-size: clamp(1.4rem, 2.8vw, 2.1rem); margin:0; font-weight: 900; display:flex; align-items:center; gap:.6rem; }
.events-hero .wrap { position: relative; z-index: 1; max-width: 1100px; padding: 2rem; }
.events-hero .hero-copy { max-width: 740px; }
.events-hero .pill {
  display:inline-block; font-weight:800; font-size:.85rem; letter-spacing:.2px;
  padding:.35rem .6rem; border-radius:999px; background:rgba(255,255,255,.15);
  backdrop-filter: blur(6px);
}
.events-hero h1 {
  margin:.4rem 0 1rem; font-size:clamp(1.6rem, 3.2vw, 2.6rem); font-weight:800; line-height:1.1;
}
.hero-bullets { list-style:none; padding:0; margin:0 0 1rem; display:grid; gap:.4rem; }
.hero-bullets li { display:flex; gap:.5rem; align-items:center; color:#f8fafc; }
.hero-bullets i { width:22px; text-align:center; opacity:.9; }
.hero-cta { display:flex; gap:.6rem; flex-wrap:wrap; }

/* Buttons (reuse your site styles where possible) */
.btn-primary {
  background:#FF4040; color:#fff; border:0; border-radius:12px; 
  padding:.8rem 1.2rem; font-weight:800; cursor:pointer;
  box-shadow:0 8px 18px rgba(255,64,64,.25);
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn-primary:hover { transform:translateY(-2px); background:#ff5555; box-shadow:0 10px 22px rgba(255,64,64,.32); }

.btn-ghost {
  background:#fff; color: #111827; border:1px solid #e5e7eb; border-radius:12px;
  padding:.8rem 1.2rem; font-weight:800; text-decoration:none;
  transition:transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.btn-ghost:hover { transform:translateY(-2px); background:#f8fafc; box-shadow:0 8px 18px rgba(0,0,0,.06); }

/* Grid (future-proof for many events) */
.events-grid {
  display:grid; gap:1.25rem; padding: clamp(18px, 4vw, 42px);
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Event Card */
.event-card {
  position:relative; border-radius:18px; overflow:hidden; min-height: 420px;
  box-shadow: 0 14px 28px rgba(0,0,0,.18);
  isolation:isolate;
}
.event-card .overlay {
  background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.65) 100%);
}

/* Top badges (time, ages) */
.card-top {
  position:absolute; z-index:2; top:12px; left:12px; right:12px;
  display:flex; gap:.5rem; flex-wrap:wrap;
}
.badge {
  display:inline-flex; align-items:center; gap:.4rem;
  padding:.38rem .6rem; border-radius:999px; font-weight:800; font-size:.8rem;
  background: rgba(255,255,255,.15); backdrop-filter: blur(6px); color:#fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.18);
}
.badge i { opacity:.92; }

/* Body */
.card-body {
  position:absolute; z-index:2; inset:auto 0 0; padding: 16px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.35) 25%, rgba(0,0,0,.75));
  color:#fff;
}
.title-row { display:flex; align-items:center; gap:.6rem; }
.title-row i { font-size:1.4rem; }
.event-card h2 { margin:.1rem 0 .35rem; font-size:1.6rem; font-weight:900;}
.short { margin:.1rem 0 .6rem; color:#e5e7eb; }
.mini { list-style:none; padding:0; margin:0 0 .8rem; display:grid; gap:.3rem; color:#f3f4f6; }
.mini i { width:18px; text-align:center; margin-right:.35rem; }
.mini li { display:flex; align-items:center; gap:.35rem; }
.card-cta { display:flex; gap:.5rem; }

/* Subtle theme accents per quest (optional glows) */
.tone-dino::after,
.tone-hp::after {
  content:""; position:absolute; inset:auto 0% -20% -20%;
  height:40%; z-index:1; filter: blur(40px); opacity:.35;
}
.tone-dino::after { background: radial-gradient(circle at 20% 50%, #22c55e, transparent 46%); }
.tone-hp::after  { background: radial-gradient(circle at 80% 50%, #f59e0b, transparent 46%); }

/* Modal (compact) */
.ticket-modal {
  display:none; position:fixed; inset:0; background:rgba(0,0,0,.6);
  z-index:9999; align-items:center; justify-content:center; padding: 16px;
}
.ticket-panel {
  width: min(720px, 96vw);
  background:#fff; border-radius:16px; padding: 18px;
  box-shadow: 0 16px 40px rgba(0,0,0,.25); color:#0f172a;
}
.ticket-head { display:flex; gap:.6rem; align-items:center; margin-bottom:.2rem; }
.ticket-head i { color:#FF4040; }
.ticket-sub { margin:.2rem 0 .6rem; color:#475569; }
.form-row { display:grid; gap:.6rem; margin:.5rem 0; }
.form-two { grid-template-columns: 1fr 1fr; }
@media (max-width: 640px){ .form-two { grid-template-columns: 1fr; } }
.ticket-panel input, .ticket-panel select {
  width:100%; padding:.6rem .7rem; border:1px solid #e5e7eb; border-radius:10px; font:inherit;
}
.total-line {
  display:flex; align-items:center; justify-content:space-between; padding:.6rem .8rem;
  background:#f8fafc; border:1px dashed #d1d5db; border-radius:10px; font-weight:800; margin-top:.2rem;
}
.close-x { background:transparent; border:0; font-size:1.6rem; position:absolute; right: 16px; top: 10px; cursor:pointer; color:#334155; }

/* Background-image fallback height on very small screens */
@media (max-width: 420px){
  .event-card { min-height: 380px; }
}
/* --- Hero: enforce 16:9 and keep the top in view --- */
.events-hero.media-bg {
  /* point to the image (adjust path only if yours differs) */
  --bg: url("../images/events/events-hero.png");

  /* exact frame */
  aspect-ratio: 16 / 9;
  width: 100%;

  /* make it responsive if viewport is short */
  min-height: 320px;           /* safety for very small devices */
  max-height: 70vh;            /* don’t dominate tiny laptops */

  /* keep background beautiful yet biased to the top */
  /* Use individual properties so background-attachment from .parallax is preserved */
  background-image: var(--bg);
  background-position: top center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* if the image still feels a bit “high”, nudge the focal point */
@media (min-width: 640px) {
  .events-hero.media-bg {
    background-position: 50% 10%; /* 10% down from top; tweak 0–20% */
  }
}
.tone-dino.media-bg    { --bg: url("../images/events/dino-bg.png"); }
.tone-hp.media-bg      { --bg: url("../images/events/hp-bg.png"); }

/* ---------- Hero: make text brighter on images ---------- */
.events-hero.media-bg .overlay{
  background: linear-gradient(180deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,.65) 100%);
}
.tone-hp .overlay{
  /* Crisper overlay for HP hero for stronger text contrast */
  background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.78) 100%);
}
.events-hero .hero-copy * {
  /* color:#fff; */
  text-shadow: 0 2px 10px rgba(0,0,0,.35);
}

/* ---------- Colorful Pills (with easy theme variants) ---------- */
.pill{
  display:inline-block;
  font-weight:900;
  letter-spacing:.3px;
  padding:.42rem .72rem;
  border-radius:999px;
  font-size:.9rem;
  color:#fff;
  background: linear-gradient(135deg, #ff7a7a 0%, #ff4040 60%, #ff9f7a 100%);
  box-shadow: 0 8px 20px rgba(255,64,64,.28), inset 0 0 0 2px rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
}

/* Optional themeable pills if you ever add more in sections */
.pill--dino { background: linear-gradient(135deg, #34d399, #10b981 60%, #6ee7b7); }
.pill--hp   { background: linear-gradient(135deg, #a78bfa, #8b5cf6 60%, #c4b5fd); }

/* ---------- Student Instagram Note: loud but clean ---------- */
.hero-bullets li.student-note{
  display:flex; align-items:center; gap:.6rem;
}
.hero-bullets li.student-note i{
  color:#ffcf4a; text-shadow:none; filter: drop-shadow(0 2px 6px rgba(0,0,0,.25));
}
.note-chip{
  display:inline-flex; align-items:center; gap:.5rem;
  padding:.35rem .55rem; border-radius:999px;
  background: rgba(255,255,255,.18);
  border:1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(8px);
  font-weight:800;
  animation: chipPulse 2.6s ease-in-out infinite;
}
.chip-link{
  display:inline-block; padding:.2rem .5rem; border-radius:999px;
  background:#ff3b6b; color:#fff; font-weight:900; text-decoration:none;
  box-shadow: 0 6px 16px rgba(255,59,107,.35);
}
.chip-link:hover{ transform:translateY(-1px); }
@keyframes chipPulse{
  0%{ box-shadow:0 0 0 0 rgba(255,255,255,.0); }
  50%{ box-shadow:0 0 0 10px rgba(255,255,255,.06); }
  100%{ box-shadow:0 0 0 0 rgba(255,255,255,.0); }
}

/* ---------- Card accents by theme (border + icon color) ---------- */
.event-card{ border:3px solid transparent; }
.tone-dino{ --tone:#22c55e; }
.tone-hp  { --tone:#f59e0b; }

.tone-dino{ border-color: color-mix(in srgb, var(--tone) 65%, #ffffff 35%); }
.tone-hp  { border-color: color-mix(in srgb, var(--tone) 65%, #ffffff 35%); }

.tone-dino .title-row i,
.tone-dino .badge{ color:#d1fae5; }
.tone-hp .title-row i,
.tone-hp .badge{ color:#fff7ed; }

/* Give title a subtle glow in theme color */
.tone-dino h2{ text-shadow: 0 3px 14px color-mix(in srgb, var(--tone) 45%, #000 0%); }
.tone-hp  h2{ text-shadow: 0 3px 14px color-mix(in srgb, var(--tone) 45%, #000 0%); }

/* Badges get faint tint per card */
.tone-dino .badge{ background: rgba(34,197,94,.22); border-color: rgba(34,197,94,.35); }
.tone-hp  .badge{ background: rgba(245,158,11,.22); border-color: rgba(245,158,11,.35); }

/* Stronger contrast over media backgrounds */
.event-card .overlay{
  background: linear-gradient(180deg, rgba(0,0,0,.22) 0%, rgba(0,0,0,.72) 100%);
}
.card-body .short,
.card-body .mini li{ color:#f8fafc; }
.card-body .mini i{ color:#fff; opacity:.95; }

/* Optional: brighten primary CTA a touch on cards */
.event-card .btn-primary{
  background:#ff4242;
  box-shadow:0 10px 22px rgba(255,66,66,.32);
}
.event-card .btn-primary:hover{
  background:#ff5656; transform:translateY(-2px);
}

/* ===== Ticket Modal: clean layout + clear field borders ===== */
.ticket-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.6);
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.ticket-panel {
  position: relative;
  width: min(720px, 96vw);
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 16px 40px rgba(0,0,0,.25);
  color: #0f172a;
  box-sizing: border-box;
}

.ticket-head { display:flex; gap:.6rem; align-items:center; margin-bottom:.2rem; }
.ticket-head i { color:#FF4040; }
.ticket-sub   { margin:.2rem 0 .6rem; color:#475569; }

.form-error {
  background: #fff5f5;
  color: #b91c1c;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: .6rem .8rem;
  margin: .4rem 0 .2rem;
  font-weight: 700;
}

.form-row { display:grid; gap:.6rem; margin:.5rem 0; }
.form-two { grid-template-columns: 1fr 1fr; gap: .8rem; }
.form-two .col { min-width: 0; }            /* prevents overflow on small screens */

@media (max-width: 640px){
  .form-two { grid-template-columns: 1fr; }
}

.ticket-panel label {
  font-weight: 700;
  margin-bottom: 4px;
  display: block;
  color: #334155;
}

.ticket-panel input,
.ticket-panel select {
  width: 100%;
  border: 2px solid #cbd5e1; /* clearer border */
  background: #fff;
  font-size: 1rem;
  padding: .6rem .7rem;
  border-radius: 10px;
  transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;     /* prevents “overflowing” look */
}

.ticket-panel input:focus,
.ticket-panel select:focus {
  border-color: #FF4040;
  box-shadow: 0 0 0 3px rgba(255, 64, 64, 0.2);
  outline: none;
}

.total-line {
  display:flex; align-items:center; justify-content:space-between;
  padding:.6rem .8rem;
  background:#f8fafc; border:2px dashed #d1d5db; border-radius:10px;
  font-weight:800; margin-top:.2rem;
}

.close-x {
  background: transparent; border: 0; font-size: 1.6rem;
  position: absolute; right: 16px; top: 10px; cursor: pointer; color:#334155;
}

/* ===== Recap section ===== */
.recap { padding: clamp(20px, 4vw, 44px); max-width: 1200px; margin: 0 auto; }
.recap, .hp-gallery, .gl-grid, .gl-item { overflow: hidden; }
.recap-intro { margin: 10px 0 18px; }
.recap-details { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .6rem; }
.detail-chip {
  display: inline-flex; align-items: center; gap: .45rem; font-weight: 800;
  padding: .38rem .6rem; border-radius: 999px; color: #111827;
  background: #fff; border: 1px solid #e5e7eb;
}
.detail-chip i { color: #8b5cf6; }
.recap-text { color:#374151; font-size: 1.05rem; max-width: 70ch; }

/* Thematic section headers */
.recap-section { margin-top: 26px; }
.section-header { display:flex; align-items:center; gap:.6rem; margin-bottom: .6rem; flex-wrap: wrap; }
.section-header i { color:#f59e0b; filter: drop-shadow(0 2px 6px rgba(0,0,0,.15)); }
.section-pill { font-weight:800; font-size:.8rem; padding:.28rem .6rem; border-radius:999px; color:#111827; background: linear-gradient(135deg, #fff7ed, #fde68a 60%, #fff7ed); box-shadow: 0 8px 20px rgba(245,158,11,.18); border:1px solid #fcd34d; }

/* Subtle themed background for sections */
.recap-section.photos { background: #fff; border:1px solid #e5e7eb; border-radius: 16px; padding: 12px; box-shadow: 0 10px 24px rgba(0,0,0,.04); }
.recap-section.videos { background: #fff; border:1px solid #e5e7eb; border-radius: 16px; padding: 12px; box-shadow: 0 10px 24px rgba(0,0,0,.04); }

/* Masonry-like gallery using CSS columns for organic flow */
.recap-gallery {
  margin-top: 16px;
  column-count: 1;
  column-gap: 12px;
}
@media (min-width: 640px){ .recap-gallery { column-count: 2; } }
@media (min-width: 980px){ .recap-gallery { column-count: 3; } }

.media-card { 
  display:inline-block; width:100%; margin: 0 0 12px; border-radius: 14px; overflow: hidden; 
  box-shadow: 0 10px 24px rgba(0,0,0,.10); background:#0b0b0b; position:relative;
}
.media-card { break-inside: avoid; }
.media-card img, .media-card video { display:block; width:100%; height:auto; object-fit:cover; }

/* Keep cards tall enough and avoid “too thin” look */
.media-card img { aspect-ratio: 4 / 3; }
.recap-gallery.videos .media-card video { width:100%; height:auto; aspect-ratio: auto; background:#000; }

/* Video play overlay */
.video-thumb .play-badge {
  position:absolute; inset:auto 8px 8px auto; z-index:2;
  background: rgba(0,0,0,.6); color:#fff; border:2px solid rgba(255,255,255,.8);
  width: 42px; height: 42px; border-radius: 50%;
  display:grid; place-items:center; box-shadow: 0 8px 20px rgba(0,0,0,.35);
}
.video-thumb:hover .play-badge{ transform: translateY(-1px); }

/* Lightbox styles + nav */
.lb { position: fixed; inset: 0; z-index: 10000; display: none; overflow: hidden; }
.lb[aria-hidden="false"] { display: block !important; }
.lb-backdrop { position:absolute; inset:0; background:rgba(0,0,0,.85); backdrop-filter: blur(3px); }
.lb-close, .lb-prev, .lb-next, .lb-zoom { 
  position:absolute; z-index:1; background: rgba(0,0,0,.5); color:#fff; border:0; cursor:pointer;
  width:48px; height:48px; border-radius: 999px; display:grid; place-items:center;
}
.lb-close { 
  top:14px; right:18px; left:auto; 
  transform: none; 
  font-size:2rem; 
  background: transparent; 
  width:auto; height:auto; border-radius:0; padding:4px 8px; 
  line-height:1; display:inline-flex; align-items:center; justify-content:center;
}
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); will-change: auto; }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); will-change: auto; }
.lb-prev, .lb-next, .lb-close, .lb-zoom { transition: filter .12s ease; }
.lb-zoom { bottom: 18px; right: 18px; }

/* Keep controls steady on hover (no translate effects) */
.lb-close:hover, .lb-prev:hover, .lb-next:hover, .lb-zoom:hover { filter: brightness(1.15); }
.lb-prev, .lb-next, .lb-close, .lb-zoom { background: rgba(0,0,0,.5); }
/* Remove bubble visuals for close button */
.lb-close { background: transparent !important; }
/* Prevent global `button:hover` transform/background affecting lightbox controls */
.lb-prev:hover, .lb-prev:focus, .lb-prev:active { transform: translateY(-50%) !important; background: rgba(0,0,0,.5) !important; }
.lb-next:hover, .lb-next:focus, .lb-next:active { transform: translateY(-50%) !important; background: rgba(0,0,0,.5) !important; }
.lb-zoom { transform: none !important; }
.lb-close:hover, .lb-close:focus, .lb-close:active { transform: none !important; background: transparent !important; filter: brightness(1); }
.lb-zoom:hover, .lb-zoom:focus, .lb-zoom:active { transform: none !important; background: rgba(0,0,0,.5) !important; }
.lb-close:active, .lb-prev:active, .lb-next:active, .lb-zoom:active { filter: brightness(0.95); }
.lb-content {
  position:absolute;
  top: 6vh; bottom: 6vh; /* dynamic vertical gutters */
  left: 3vw; right: 3vw;  /* dynamic horizontal gutters */
  display:flex; align-items:center; justify-content:center;
  padding: 8px; box-sizing: border-box;
  overflow: hidden; /* prevent inner scrollbars */
}
.lb-content img, .lb-content video { 
  max-width: 100%;
  max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  border-radius:12px; box-shadow: 0 20px 60px rgba(0,0,0,.45);
  background: #000;
}

/* Zoomed state: show media at natural size centered; for tall (vertical) items, anchor to top for natural viewing */
.lb-content.zoom-original { overflow: auto; }
.lb-content.zoom-original img, .lb-content.zoom-original video {
  max-width: none; max-height: none; /* allow natural size */
}
.lb-content.zoom-original { justify-content: flex-start; align-items: flex-start; }

/* Prevent page shift when lightbox opens */
body.lb-open { overflow: hidden; }

/* Colorful accents for recap to fit theme */
.events-hero.tone-hp .pill { background: linear-gradient(135deg, #fbbf24, #f59e0b 60%, #fde68a); box-shadow: 0 8px 20px rgba(245,158,11,.28); color:#111827; }
.recap .detail-chip { background: linear-gradient(135deg, #ffffff, #fff7ed); border-color: #fde68a; }
.recap .detail-chip i { color:#f59e0b; }
.recap-text { border-left: 4px solid #8b5cf6; padding-left: .8rem; }

/* Lightbox styles */
.lb { position: fixed; inset: 0; z-index: 10000; display: none; }
.lb[aria-hidden="false"] { display: block !important; }
.lb-backdrop { position:absolute; inset:0; background:rgba(0,0,0,.8); backdrop-filter: blur(2px); }
.lb-close { position:absolute; top:14px; right:18px; font-size:2rem; background:transparent; color:#fff; border:0; cursor:pointer; z-index:1; }
.lb-content { position:absolute; inset: 6% 4%; display:grid; place-items:center; }
.lb-content img, .lb-content video { max-width:100%; max-height:100%; border-radius:12px; box-shadow: 0 20px 60px rgba(0,0,0,.45); }

/* ===== Redesigned HP Gallery ===== */
.hp-gallery { margin-top: 30px; background:#fff; border:1px solid #e5e7eb; border-radius: 18px; padding: 16px; box-shadow: 0 14px 28px rgba(0,0,0,.06); }
.hp-gallery .gl-head { display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; row-gap:.5rem; flex-wrap:wrap; }
.hp-gallery .gl-head .gl-filters { align-self:flex-start; margin-top:0; }
.hp-gallery .title { display:flex; align-items:center; gap:.6rem; }
.hp-gallery .title i { color:#8b5cf6; filter: drop-shadow(0 2px 6px rgba(0,0,0,.15)); }
.hp-gallery .title h2 { margin:0; font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight:900; }
.hp-gallery .gl-head { margin-bottom: .5rem; }

.gl-filters { display:flex; gap:.4rem; background:#f8fafc; padding:.35rem; border-radius: 999px; border:1px solid #e5e7eb; }
.gl-filter { 
  appearance:none; border:0; background:transparent; cursor:pointer; font-weight:800; 
  margin-top:0 !important;
  padding:.45rem .8rem; border-radius:999px; color:#374151; transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}
.gl-filter:hover { background:#eef2ff; color:#1f2937; }
.gl-filter.is-active { background: linear-gradient(135deg, #c4b5fd, #a78bfa); color:#111827; box-shadow: 0 6px 18px rgba(139,92,246,.25); }

/* Prevent filter bar from forcing horizontal scroll on narrow screens */
@media (max-width: 520px){
  .hp-gallery .gl-head { flex-direction: column; align-items: stretch; }
  .gl-filters { flex-wrap: wrap; justify-content: center; max-width: 100%; }
  .gl-filter { flex: 1 1 auto; min-width: 90px; text-align: center; }
}

.gl-grid { 
  margin-top: 14px; display:grid; gap:12px; 
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px){ .gl-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px){ .gl-grid { grid-template-columns: 1fr; } }

.gl-item { position:relative; overflow:hidden; border-radius: 14px; background:#0b0b0b; box-shadow: 0 10px 24px rgba(0,0,0,.10); }
.gl-item img, .gl-item video { display:block; width:100%; height:100%; object-fit:cover; }

/* Consistent card sizing */
.gl-item { aspect-ratio: 16/9; }

/* Hover reveal (lighter) */
.gl-item::after { content:""; position:absolute; inset:0; background: rgba(0,0,0,.18); opacity:0; transition: opacity .15s ease; }
.gl-item:hover::after { opacity:1; }
.gl-item .gl-badge { position:absolute; top:10px; left:10px; background: rgba(31,41,55,.7); color:#fff; font-weight:800; font-size:.75rem; padding:.25rem .5rem; border-radius:999px; border:1px solid rgba(255,255,255,.18); }
.gl-item.video .gl-badge { background: rgba(8,145,178,.7); }

/* Lightbox enhanced UI */
.lb-ui { position:absolute; left: 3vw; right: 3vw; bottom: 2.2vh; display:flex; align-items:center; justify-content:center; color:#fff; gap: 1rem; pointer-events: none; }
.lb-counter { font-weight:800; background: rgba(0,0,0,.35); padding:.35rem .6rem; border-radius:999px; border:1px solid rgba(255,255,255,.2); pointer-events: auto; }

/* Hidden state for filters */
.gl-item.is-hidden { display:none !important; }

/* Non-jumpy hover/focus for lightbox controls */
.lb-prev, .lb-next, .lb-close, .lb-zoom {
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
}
.lb-prev:hover, .lb-next:hover, .lb-close:hover, .lb-zoom:hover {
  filter: brightness(1.15);
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
}
.lb-prev:focus-visible, .lb-next:focus-visible, .lb-close:focus-visible, .lb-zoom:focus-visible {
  outline: 2px solid rgba(255,255,255,.85);
  outline-offset: 2px;
}

/* Close button: no bubble/shadow, no brightness shift */
.lb-close { box-shadow: none !important; }
.lb-close:hover, .lb-close:focus, .lb-close:active { box-shadow: none !important; filter: none !important; }

/* ===== New Card-Based Events Design ===== */

/* Page Hero */
.events-page-hero {
  background: linear-gradient(135deg, #FF4040 0%, #ff7a7a 50%, #00BFFF 100%);
  color: #fff;
  padding: clamp(3rem, 8vw, 5rem) 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.events-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255,64,64,0.3), transparent 50%),
              radial-gradient(circle at 80% 50%, rgba(0,191,255,0.3), transparent 50%);
  pointer-events: none;
}

.events-page-hero .wrap {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  margin: 0 0 1rem;
  text-shadow: 0 4px 12px rgba(0,0,0,0.3);
  animation: fadeInUp 0.8s ease-out;
}

.page-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Section Styling */
.upcoming-events-section,
.past-events-section {
  padding: clamp(2rem, 6vw, 4rem) 0;
}

.upcoming-events-section {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.past-events-section {
  background: #ffffff;
}

.upcoming-events-section .wrap,
.past-events-section .wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 900;
  color: #111827;
  margin: 0 0 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-title i {
  color: #ff4040;
}

/* Events Grid */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .events-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Event Card */
.event-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

/* Event Image */
.event-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.event-card:hover .event-image img {
  transform: scale(1.05);
}

/* Event Badge */
.event-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.badge-new {
  background: linear-gradient(135deg, #10b981, #34d399);
  color: #fff;
}

.badge-past {
  background: linear-gradient(135deg, #6b7280, #9ca3af);
  color: #fff;
}

.badge-featured {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #111827;
}

/* Event Content */
.event-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.event-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #111827;
  margin: 0 0 1rem;
  line-height: 1.3;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: #6b7280;
  font-weight: 600;
}

.meta-item i {
  color: #ff4040;
  font-size: 0.95rem;
}

.event-desc {
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.event-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.highlight-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  background: #f3f4f6;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #374151;
}

.highlight-tag i {
  font-size: 0.9rem;
  color: #6b7280;
}

/* Event Button */
.event-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: #ff4040;
  color: #fff;
  box-shadow: 0 4px 12px rgba(255,64,64,0.25);
}

.btn-primary:hover {
  background: #ff5555;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255,64,64,0.35);
  color: #fff;
}

.btn-secondary {
  background: #f3f4f6;
  color: #111827;
  border: 1px solid #e5e7eb;
}

.btn-secondary:hover {
  background: #e5e7eb;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  color: #111827;
}

/* Promo Card Special Styling */
.promo-card {
  border: 2px solid #fbbf24;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.promo-card .event-title {
  color: #92400e;
}

.promo-card .event-desc {
  color: #78350f;
}

.promo-card .highlight-tag {
  background: rgba(245,158,11,0.15);
  color: #92400e;
}

/* Empty State */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 2rem;
  background: #f9fafb;
  border-radius: 16px;
  border: 2px dashed #d1d5db;
}

.empty-state i {
  font-size: 3rem;
  color: #9ca3af;
  margin-bottom: 1rem;
  display: block;
}

.empty-state p {
  color: #6b7280;
  font-size: 1.1rem;
  margin: 0;
}

/* HP Gallery Section Updates */
.hp-gallery-section {
  padding: clamp(2rem, 6vw, 4rem) 0;
  background: #f9fafb;
}

.hp-gallery-section .wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.gallery-intro {
  text-align: center;
  margin-bottom: 2.5rem;
}

.gallery-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  color: #111827;
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.gallery-title i {
  color: #f59e0b;
}

.gallery-desc {
  color: #4b5563;
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .events-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .events-page-hero {
    padding: 2.5rem 1.5rem;
  }
  
  .page-title {
    font-size: 2.2rem;
  }
  
  .page-subtitle {
    font-size: 1.05rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .events-grid {
    gap: 1.25rem;
  }
  
  .event-meta {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .events-page-hero {
    padding: 2rem 1rem;
  }
  
  .page-title {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
  }
  
  .page-subtitle {
    font-size: 0.95rem;
    padding: 0 0.5rem;
  }
  
  .section-title {
    font-size: 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .events-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem;
  }
  
  .event-card {
    border-radius: 12px;
  }
  
  .event-image {
    height: 200px;
  }
  
  .event-content {
    padding: 1.25rem;
  }
  
  .event-title {
    font-size: 1.25rem;
  }
  
  .event-desc {
    font-size: 0.95rem;
  }
  
  .event-btn {
    width: 100%;
    padding: 0.85rem 1rem;
  }
  
  .gallery-title {
    flex-direction: column;
    font-size: 1.6rem;
  }
  
  .gallery-desc {
    font-size: 1rem;
  }
  
  .empty-state {
    padding: 2rem 1rem;
  }
  
  .empty-state i {
    font-size: 2.5rem;
  }
  
  .empty-state p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .page-title {
    font-size: 1.6rem;
  }
  
  .event-image {
    height: 180px;
  }
  
  .highlight-tag {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
  }
}