@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700;800;900&display=swap');

:root {
  --nav-offset: 56px;
}

/* Reset and base sizing */
* {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html {
  font-size: 16px; /* Base font size for rem calculations */
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body {
  background-color: black;
  color: white;
  font-family: 'Cinzel', serif;
  margin: 0;
  padding-top: var(--nav-offset); /* reserve space for fixed navbar */
  overflow-x: hidden; /* prevent horizontal scroll */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== Navbar ===== */
.navbar {
  background-color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 10px;
  box-sizing: border-box;
  position: fixed; /* keep navbar on top when scrolling */
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  z-index: 1000;

  /* animation */
  transition: padding 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
  transform: translateY(0);
  isolation: isolate;
}

/* logo (left) */
.logo {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  z-index: 1002;
  -webkit-tap-highlight-color: transparent; /* remove blue highlight on mobile tap */
  user-select: none; /* prevent text selection */
  will-change: transform;
  backface-visibility: hidden;
}

.logo img {
  height: 36px; /* adjust as needed */
  display: block;
}

/* inline centered logo (desktop) — hidden by default, shown on wider screens */
.logo-inline {
  display: none;
  align-items: center;
}
.logo-inline img {
  height: 36px; /* match .logo img on desktop */
  display: block;
}

/* centered logo: swap to red image on hover, no red background */
.menu .logo-inline,
.menu .logo-inline:hover {
  background: transparent !important; /* override .menu a:hover */
}

.logo-inline {
  position: relative;
  display: none;            /* shown in desktop media query */
  align-items: center;
}

.logo-inline .logo-img {
  height: 36px;
  display: block;
}

/* show default by default */
.logo-inline .logo-img.hover {
  display: none;
}

/* on hover, show red image instead */
.menu .logo-inline:hover .logo-img.default {
  display: none;
}
.menu .logo-inline:hover .logo-img.hover {
  display: block;
}

/* cancel any previous tint filters if present */
.menu .logo-inline:hover img {
  filter: none !important;
}

/* hide on scroll down */
.navbar.hide {
  transform: translateY(-100%);
}

/* Default menu */
.menu {
  display: flex;
  gap: 10px;
  background-color: #000;
  margin-left: 21px;
}

/* Navbar links */
.menu a,
.dropbtn {
  color: white;
  padding: 14px 16px;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-family: 'Cinzel', serif;
}

/* Hover effects */
.menu a:hover,
.dropdown:hover .dropbtn {
  background-color: red;
}

/* Dropdown container */
.dropdown {
  position: relative;
}

/* Dropdown content */
.dropdown-content {
  display: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background-color: #555555;
  min-width: 160px;
  box-shadow: 0px 8px 16px rgb(0, 0, 0);
  z-index: 1;
  border-radius: 14px;      /* more rounded corners */
  overflow: hidden;         /* clip child hovers to rounded corners */
}

.dropdown-content a {
  color: rgb(255, 255, 255);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-family: 'Cinzel', serif;
}

.dropdown-content a:hover {
  background-color: red !important;
  color: white !important;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* ===== Mobile Styles ===== */
.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1001;
  color: white;
  -webkit-tap-highlight-color: transparent; /* remove blue highlight on mobile tap */
  user-select: none; /* prevent text selection */
}

.socials {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 10px;             /* space between icons */
  align-items: center;
  z-index: 1003;
  max-width: calc(100vw - 80px); /* prevent overflow */
  will-change: transform;
  backface-visibility: hidden;
}

/* each icon uses currentColor so color/hover applies */
.social-icon {
  color: white;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: color 0.15s ease, transform 0.12s ease;
  padding: 6px;          /* increases hit area */
  border-radius: 4px;
  -webkit-tap-highlight-color: transparent; /* remove blue highlight on mobile tap */
  user-select: none; /* prevent text selection */
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* hover turns red and slightly scales */
.social-icon:hover {
  color: red;
  transform: scale(1.05);
}

/* Header */
.content {
  display: flex;
  flex-direction: column;
  align-items: stretch;      /* allow full width instead of center */
  justify-content: flex-start;  /* keep content at top instead of centered vertically */
  text-align: center;       /* center text inside */
  min-height: calc(100vh - var(--nav-offset)); /* fallback for older browsers */
  min-height: calc(100svh - var(--nav-offset)); /* stable viewport on mobile Safari */
  min-height: calc(100dvh - var(--nav-offset)); /* dynamic viewport when supported */
  padding: 0 0 16px;  /* remove top padding, keep bottom padding */
  box-sizing: border-box;
}

/* Center specific content on residents page */
.content > .page-header,
.content > .residents-grid {
  align-self: center;
  max-width: 1000px;
  width: 100%;
  padding: 0 20px; /* Add padding only to these elements */
}

.page-header h1 {
  margin: 8px 0 8px 0; /* small top margin */
  font-size: 32px;
  color: #fff;
}

.page-header .subtitle {
  margin: 0 0 18px 0;
  color: #ccc;
  font-size: 16px;
}

/* Residents grid: 3 per row on desktop, responsive down to 2/1.
   Flex layout so partial last rows (1 or 2 cards) are centered. */
.residents-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 80px 18px;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 12px auto;
  align-items: start;
  justify-self: center;
}

.residents-grid .resident {
  flex: 0 0 calc(33.333% - 12px);
  max-width: calc(33.333% - 12px);
  box-sizing: border-box;
}

.resident {
  position: relative;
  cursor: pointer;
  perspective: 1000px;
  -webkit-tap-highlight-color: transparent; /* remove blue highlight on mobile tap */
  user-select: none; /* prevent text selection on click */
  border: 2px solid #ff0000;
  border-radius: 8px;
  padding: 12px;
}

.resident-image-slider {
  position: relative;
  width: 100%;
  height: 280px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  touch-action: pan-y; /* Allow vertical scrolling, handle horizontal swipes in JS */
  -webkit-tap-highlight-color: transparent; /* Remove blue highlight on mobile tap */
}

.resident-tutorial-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(2px);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  opacity: 0;
  animation: residentTutorialFadeIn 260ms ease forwards;
}

.resident-tutorial-overlay.closing {
  animation: residentTutorialFadeOut 220ms ease forwards;
}

.resident-tutorial-modal {
  position: relative;
  width: min(360px, 100%);
  background: linear-gradient(160deg, #171717, #0f0f0f);
  border: 1px solid rgba(255, 42, 42, 0.6);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  padding: 14px 14px 16px;
  transform: translateY(10px) scale(0.98);
  opacity: 0;
  animation: residentTutorialModalIn 280ms ease 120ms forwards;
}

.resident-tutorial-close {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.resident-tutorial-title {
  margin: 6px 0 2px;
  text-align: center;
  color: #ff2a2a;
  font-size: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.resident-tutorial-subtitle {
  margin: 0 0 10px;
  text-align: center;
  color: #c9c9c9;
  font-size: 12px;
  letter-spacing: 0.6px;
}

.resident-tutorial-demo {
  position: relative;
  perspective: 1000px;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  overflow: hidden;
  height: 250px;
  background: #060606;
}

.resident-tutorial-demo-card {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 650ms ease;
}

.resident-tutorial-demo-card.flipped {
  transform: rotateY(180deg);
}

.resident-tutorial-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
}

.resident-tutorial-back {
  transform: rotateY(180deg);
  background: linear-gradient(180deg, #252525, #151515);
  color: #fff;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.resident-tutorial-images {
  position: relative;
  width: 100%;
  height: 100%;
}

.resident-tutorial-images img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
  opacity: 0;
  transition: opacity 220ms ease;
}

.resident-tutorial-images img.active {
  opacity: 1;
}

.resident-tutorial-dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
}

.resident-tutorial-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

.resident-tutorial-dot.active {
  background: #ff2a2a;
}

.resident-tutorial-bio-track {
  position: relative;
  flex: 1;
}

.resident-tutorial-bio-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 220ms ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 13px;
  line-height: 1.5;
  color: #dddddd;
}

.resident-tutorial-bio-slide.active {
  opacity: 1;
}

.resident-tutorial-bio-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 12px;
}

.resident-tutorial-step {
  text-align: center;
  margin: 10px 0 0;
  color: #c8c8c8;
  font-size: 12px;
  letter-spacing: 0.4px;
}

.resident-tutorial-step strong {
  color: #ff5c5c;
}

.resident-tutorial-hand {
  position: absolute;
  left: 50%;
  top: 50%;
  --hand-base-transform: translate(-50%, -50%);
  transform: var(--hand-base-transform);
  color: #fff;
  width: 34px;
  height: 34px;
  pointer-events: none;
  text-shadow: 0 6px 14px rgba(0, 0, 0, 0.9);
}

.resident-tutorial-hand.mode-swipe {
  animation: residentTutorialHandSwipe 1.35s ease-in-out infinite;
}

.resident-tutorial-hand.mode-tap {
  animation: residentTutorialHandTap 0.8s ease-in-out 1;
}

.resident-tutorial-hand svg {
  width: 100%;
  height: 100%;
  fill: #ffffff;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.75));
}

.resident-tutorial-hand.is-back {
  top: auto;
  bottom: 34px;
  --hand-base-transform: translate(-50%, 0);
}

@keyframes residentTutorialHandSwipe {
  0% {
    transform: var(--hand-base-transform) translateX(-24px);
    opacity: 0.65;
  }
  50% {
    transform: var(--hand-base-transform) translateX(24px);
    opacity: 1;
  }
  100% {
    transform: var(--hand-base-transform) translateX(-24px);
    opacity: 0.65;
  }
}

@keyframes residentTutorialHandTap {
  0% {
    transform: var(--hand-base-transform) scale(1);
    opacity: 0.95;
  }
  45% {
    transform: var(--hand-base-transform) translateY(8px) scale(0.92);
    opacity: 1;
  }
  100% {
    transform: var(--hand-base-transform) scale(1);
    opacity: 0.95;
  }
}

@keyframes residentTutorialFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes residentTutorialFadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes residentTutorialModalIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.resident-images {
  position: relative;
  width: 100%;
  height: 100%;
  touch-action: pan-y; /* Allow vertical scrolling, handle horizontal swipes in JS */
  user-select: none; /* Prevent text selection during swipes */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.resident-images img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
  border-radius: 6px;
  display: block;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.resident-images img.active {
  opacity: 1;
}

/* Resident card image nav arrows — desktop only */
.res-img-arrow {
  display: none;
}

@media (min-width: 1025px) and (min-height: 501px) {
  .res-img-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(200, 30, 30, 0.45);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 0 8px rgba(180, 20, 20, 0.2);
    transition: background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
    opacity: 0;
    pointer-events: none;
  }

  .res-img-arrow svg {
    display: block;
    flex-shrink: 0;
  }

  .resident-image-slider:hover .res-img-arrow {
    opacity: 1;
    pointer-events: auto;
  }

  .res-img-arrow:hover {
    background: rgba(180, 20, 20, 0.75);
    border-color: rgba(255, 60, 60, 0.7);
    box-shadow: 0 0 14px rgba(200, 30, 30, 0.5);
    transform: translateY(-50%) scale(1.08);
  }

  .res-img-arrow:active {
    transform: translateY(-50%) scale(0.94);
  }

  .res-img-arrow-left {
    left: 8px;
  }

  .res-img-arrow-right {
    right: 8px;
  }
}

.resident-image-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.resident-image-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  padding: 6px; /* Good clickable area for PC */
  transition: all 0.3s ease;
  -webkit-tap-highlight-color: transparent; /* Remove blue highlight on mobile tap */
  display: flex;
  align-items: center;
  justify-content: center;
}

.resident-image-dot:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: scale(1.1);
}

.resident-image-dot.active {
  background: #ff0000;
  transform: scale(1.2);
}

/* Mobile-specific enhancements for dots */
@media (max-width: 768px) {
  .resident-image-dot {
    width: 10px;
    height: 10px;
    padding: 6px; /* Reasonable touch area on mobile */
  }
  
  .resident-image-dots {
    gap: 8px; /* Better spacing between dots on mobile */
  }

  .resident-tutorial-modal {
    width: min(340px, 100%);
  }

  .resident-tutorial-demo {
    height: 230px;
  }

  .resident-tutorial-hand {
    width: 30px;
    height: 30px;
  }

  .resident-tutorial-back {
    padding: 14px 12px;
  }

  .resident-tutorial-bio-slide {
    font-size: 12px;
  }
}

.resident-image-slider,
.resident .resident-overlay {
  transition: transform 600ms ease;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  border-radius: 6px;
  -webkit-tap-highlight-color: transparent; /* remove blue highlight on mobile tap */
}

/* back face */
.resident .resident-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #2a2a2a, #1a1a1a);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
  transform: rotateY(-180deg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  pointer-events: auto; /* allow clicking links on the back */
}

/* socials row on the back */
.resident-socials {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 12px;
}

/* grayscale feel when flipped/back side */
.resident .resident-overlay,
.resident.flipped .resident-image-slider {
  filter: grayscale(100%);
}

/* flip state */
.resident.flipped .resident-image-slider {
  transform: rotateY(180deg);
}
.resident.flipped .resident-overlay {
  transform: rotateY(0deg);
}

.resident .resident-overlay .overlay-content h3 {
  margin: 0 0 12px 0;
  font-size: 20px;
  letter-spacing: 1px;
  color: #ff0000; /* red name in bio */
}

.resident .resident-overlay .overlay-content p {
  margin: 0 0 16px 0;
  font-size: 14px;
  line-height: 1.5;
  color: #ddd;
}

.resident-social-icon {
  color: white;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: color 0.15s ease, transform 0.12s ease;
  padding: 6px;
  border-radius: 4px;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  pointer-events: auto; /* re-enable clicks for the link */
}

.resident-social-icon:hover {
  color: red;
  transform: scale(1.1);
}

.resident {
  background: transparent;
  color: #fff;
  text-align: center;
}

.resident-name {
  margin: 0 0 12px 0;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

@media (max-width: 900px) {
  .residents-grid {
    gap: 35px 18px;
  }
  .residents-grid .resident {
    flex: 0 0 calc(50% - 9px);
    max-width: calc(50% - 9px);
    box-sizing: border-box;
  }
}

@media (max-width: 480px) {
  .content {
    padding: 0; /* Remove any padding from content container */
  }
  
  .residents-grid {
    gap: 30px 0;
    max-width: 100%;
    margin: 0 auto;
    padding: 0; /* Remove any inherited padding */
  }
  .residents-grid .resident {
    flex: 0 0 100%;
    max-width: 320px;
  }
  
  .content > .residents-grid {
    padding: 0 20px; /* Equal padding for single column */
    box-sizing: border-box;
  }
  
  .resident-image-slider {
    height: 350px; /* Taller height */
  }
}

/* Responsive layout - trigger on narrow width OR short height (landscape phones/tablets) */
@media (max-width: 1024px), (max-height: 500px) and (max-width: 1200px) {
  /* move toggle to right */
  .navbar {
    justify-content: flex-end; /* changed from flex-start */
  }

  .menu-toggle {
    display: block;
    right: 20px;   /* added */
    left: auto;    /* added to override desktop left */
  }

  /* Mobile slide-in menu: fixed, full viewport height (minus navbar), solid background and higher z-index */
  .menu {
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.96); /* opaque so page doesn't show through */
    position: fixed;
    top: 56px; /* slide-in menu appears below fixed navbar */
    right: -250px;
    left: auto;
    height: calc(100vh - 56px); /* fallback */
    height: calc(100svh - 56px); /* Safari stable viewport */
    height: calc(100dvh - 56px); /* dynamic viewport */
    width: 250px;
    padding-top: 10px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    transition: right 0.3s ease;
    z-index: 1005; /* above page content */
    box-shadow: -6px 0 18px rgba(0, 0, 0, 0.6);
    overflow-y: auto; /* allow scrolling if menu is long */
  }

  .menu a,
  .dropbtn {
    text-align: left;
    padding: 14px 20px;
    display: block;
    background: transparent; /* keep link backgrounds transparent so menu bg shows */
  }

  .menu.active {
    right: 0; /* slide in from right */
  }

  /* keep logo visible on mobile and slightly smaller */
  .logo img {
    height: 30px;
  }

  .socials {
    right: 60px; /* leave room for the menu-toggle */
  }

  /* ensure the centered desktop-only logo is hidden on mobile */
  .logo-inline {
    display: none !important;
  }

  /* Mobile dropdown behaves like a sliding accordion */
  .menu .dropdown .dropbtn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .menu .dropdown-content {
    position: static;
    left: auto;
    transform: none;
    background: transparent;
    box-shadow: none;
    border-radius: 0;

    /* slide animation */
    display: block;                 /* keep in flow to measure height */
    max-height: 0;                  /* collapsed state */
    overflow: hidden;
    opacity: 0;
    transition: max-height 260ms ease, opacity 200ms ease;

    padding: 0 0 0 16px;            /* indent submenu items */
    margin: 0 0 8px 0;
  }

  .menu .dropdown.open .dropdown-content {
    /* height set by JS; just fade in */
    opacity: 1;
  }
}

/* Desktop: hide left absolute logo, show inline centered logo */
@media (min-width: 1025px) and (min-height: 501px) {
  .logo { /* left logo stays for mobile only */
    display: none;
  }
  .logo-inline {
    display: flex;
    position: relative;
    width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    margin: 0 auto;  /* center the logo */
  }

  .logo-inline .logo-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: opacity 120ms ease;
  }
  .logo-inline .logo-img.hover { opacity: 0; }
  .menu .logo-inline:hover .logo-img.default { opacity: 0; }
  .menu .logo-inline:hover .logo-img.hover { opacity: 1; }

  .navbar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  }

  .menu {
    align-items: center;
    gap: 10px;
  }

  .menu > a:not(.logo-inline),
  .menu > .dropdown > .dropbtn {
    position: relative;
    color: #f2f2f2;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    box-shadow: none;
    transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease, color 180ms ease;
  }

  .menu > a:not(.logo-inline):hover,
  .menu > .dropdown:hover > .dropbtn {
    color: #ffffff;
    border-color: rgba(255, 42, 42, 0.55);
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.95), rgba(0, 0, 0, 0.98));
    box-shadow: 0 8px 20px rgba(255, 42, 42, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
  }

  .menu > a:not(.logo-inline)::after,
  .menu > .dropdown > .dropbtn::after {
    content: '';
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 7px;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 42, 42, 0), rgba(255, 42, 42, 0.8), rgba(255, 42, 42, 0));
    opacity: 0;
    transition: opacity 180ms ease;
    pointer-events: none;
  }

  .menu > a:not(.logo-inline):hover::after,
  .menu > .dropdown:hover > .dropbtn::after {
    opacity: 1;
  }

  .dropdown-content {
    top: 100%;
    margin-top: 0;
    background: linear-gradient(165deg, rgba(26, 26, 26, 0.96), rgba(10, 10, 10, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
  }

  .dropdown-content a {
    position: relative;
    margin: 6px;
    padding: 10px 14px;
    color: #f2f2f2;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease, color 180ms ease;
  }

  .dropdown-content a:hover {
    color: #ffffff !important;
    border-color: rgba(255, 42, 42, 0.55);
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.95), rgba(0, 0, 0, 0.98));
    box-shadow: 0 8px 20px rgba(255, 42, 42, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
  }
}

/* Event container */
.event-container {
  width: 100%;
  max-width: 800px;
  margin: 24px auto;
  padding: 0 16px;
  box-sizing: border-box;
  position: relative;
}

.event-container img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
  display: block;
}

.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 48px;
  padding: 10px 20px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  border-radius: 4px;
  z-index: 10;
}

.nav-arrow:hover {
  background-color: rgba(255, 0, 0, 0.247);
  color: white;
}

.nav-arrow-left {
  left: 16px;
}

.nav-arrow-right {
  right: 16px;
}

@media (max-width: 700px) {
  .event-container {
    max-width: 100%;
    padding: 0 12px;
  }
  
  .nav-arrow {
    font-size: 36px;
    padding: 8px 16px;
  }
  
  .nav-arrow-left {
    left: 12px;
  }
  
  .nav-arrow-right {
    right: 12px;
  }
}

/* Hide arrows on mobile/touch devices */
@media (max-width: 768px) {
  .nav-arrow {
    display: none;
  }
}

/* Dots indicator */
.dots-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.dot:hover {
  background-color: rgba(255, 255, 255, 0.6);
  transform: scale(1.1);
}

.dot.active {
  background-color: red;
}

@media (max-width: 700px) {
  .dot {
    width: 10px;
    height: 10px;
  }
}

/* Space between HOK slider and AFTERLIFE title */
#event2-title {
  margin-top: 120px; /* adjust as needed */
}

/* Space between EVENTS title and first event title */
#event1-title {
  margin-top: 120px; /* adjust as needed */
}

/* Footer styling */
.footer {
  position: relative;
  text-align: center;
  padding: 150px 20px;
  margin-top: 40px;
  overflow: hidden;
}

.footer p {
  font-size: 12px;
  color: #888;
  margin: 0;
  position: relative;
  z-index: 11;
}

.footer-legal-links {
  margin-top: 10px;
  margin-bottom: 14px;
  position: relative;
  z-index: 11;
}

.footer-legal-links a {
  font-size: 12px;
  color: #a8a8a8;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 180ms ease;
}

.footer-legal-links a:hover {
  color: #ffffff;
}

.ticket-btn {
  display: inline-block;
  padding: 15px 40px;
  background-color: #d4af37;
  color: #000;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  border-radius: 5px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ticket-btn:hover {
  background-color: #ff0000;
  color: #fff;
  transform: scale(1.05);
}

.bio-slider {
  position: relative;
  width: 100%;
  min-height: 180px; /* increase to accommodate longest bio */
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
}

/* Bio slider arrows — desktop only */
.bio-arrow {
  display: none;
}

@media (min-width: 1025px) and (min-height: 501px) {
  .bio-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: var(--bio-arrow-top, 50%);
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(200, 30, 30, 0.45);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 0 8px rgba(180, 20, 20, 0.2);
    transition: background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
    opacity: 0;
    pointer-events: none;
  }

  .bio-arrow svg {
    display: block;
    flex-shrink: 0;
  }

  .resident-overlay:hover .bio-arrow {
    opacity: 1;
    pointer-events: auto;
  }

  .bio-arrow:hover {
    background: rgba(180, 20, 20, 0.75);
    border-color: rgba(255, 60, 60, 0.7);
    box-shadow: 0 0 14px rgba(200, 30, 30, 0.5);
    transform: translateY(-50%) scale(1.08);
  }

  .bio-arrow:active {
    transform: translateY(-50%) scale(0.94);
  }

  .bio-arrow-left {
    left: var(--bio-arrow-left, 8px);
  }

  .bio-arrow-right {
    right: var(--bio-arrow-right, 8px);
  }
}

.bio-slides {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 140px;
  touch-action: pan-y; /* allow vertical scroll; we handle horizontal swipes */
  user-select: none;
}

.bio-slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

.bio-slide.active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

.bio-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: auto; /* push to bottom */
  padding-top: 1rem;
  flex-shrink: 0; /* prevent shrinking */
}

.bio-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, transform 0.2s ease;
}

.bio-dot:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: scale(1.2);
}

.bio-dot.active {
  background: #ff0000; /* solid red */
}

/* Keep overlay colors; only grayscale the image when flipped */
.resident .resident-overlay {
  filter: none !important; /* override earlier grayscale */
}
.resident.flipped img {
  filter: grayscale(100%);
}

/* Remove all tap highlights on mobile */
.menu-toggle,
.dropdown-content a,
.menu a,
.dropbtn,
.dropdown {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Additional fix for all interactive elements */
* {
  -webkit-tap-highlight-color: transparent;
}

/* Specifically target menu items in mobile view */
@media (max-width: 1024px), (max-height: 500px) and (max-width: 1200px) {
  .menu a,
  .dropbtn,
  .dropdown-content a {
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none !important;
  }
}

.rules-container {
  max-width: 1200px;
  margin: 100px auto 50px;
  padding: 40px 20px;
  min-height: calc(100vh - 200px);
}

.rules-title {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 50px;
  color: #fff;
  letter-spacing: 4px;
}

.rules-list {
  display: grid;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.rule-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 25px 30px;
  border-left: 4px solid #ff0000;
  transition: all 0.3s ease;
}

.rule-item:hover {
  background: rgba(255, 0, 0, 0.1);
}

.rule-item.open {
  background: rgba(255, 0, 0, 0.15);
}

.rule-header {
  margin: 0;
  font-size: 1.5rem;
  color: #fff;
  letter-spacing: 2px;
  cursor: pointer;
  user-select: none;
}

.rule-description {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.rule-description a {
  color: #ff0000;
  text-decoration: none;
  transition: color 0.3s ease;
}
.rule-description a:hover {
  color: #fff;
  text-decoration: underline;
}

.rule-description p {
  margin: 0;
}

@media (max-width: 768px) {
  .rules-title {
    font-size: 2rem;
  }
  
  .rule-header {
    font-size: 1.2rem;
  }
  
  .rule-item {
    padding: 20px 15px;
  }
}

/* Compact spacing for FAQ page */
.rules-container--compact {
  margin-top: 20px; /* was 100px via .rules-container */
}

@media (max-width: 700px) {
  .rules-container--compact {
    margin-top: 24px;
  }
}

/* ===== Submission form (Formspree) ===== */
.form-container {
  max-width: 900px;
  margin: 48px auto 48px;
  padding: 0 16px;
}

.form-header h1 {
  margin: 0 0 36px 0;  /* more space below title */
  text-align: center;
  font-size: 3rem;
  letter-spacing: 4px;
  color: #fff;
}

@media (max-width: 768px) {
  .form-header h1 {
    font-size: 2rem;
    margin-bottom: 24px; /* more space on mobile too */
  }
}

.form-subtitle {
  margin: 0 0 22px 0;
  text-align: center;
  color: #bbb;
  font-size: 15px;
}

/* Shaped subtitle box on submission page */
.form-subtitle--box {
  text-align: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-left: 4px solid #ff0000;
  border-right: 4px solid #ff0000; /* Add this line */
  border-radius: 12px;
  padding: 14px 16px;
  max-width: 900px;
  margin: 0 auto 22px auto;
  line-height: 1.6;
  color: #ccc;
  display: flex; /* Added */
  flex-direction: column; /* Added */
  justify-content: center; /* Added */
  align-items: center; /* Added */
}

.form-subtitle--box p {
  margin: 0 0 8px 0;
}
.form-subtitle--box p:last-child {
  margin-bottom: 0;
}

.form-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-left: 4px solid #ff0000; /* match subtitle's red accent */
  border-right: 4px solid #ff0000; /* match subtitle's red accent */
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}



.form-field--full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 14px;
  color: #ddd;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.required {
  color: #ff0000;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  max-width: 100%;          /* ensure it never exceeds container */
  box-sizing: border-box;   /* include padding/border in width */
  background: #0e0e0e;
  color: #fff;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.form-field textarea {
  resize: vertical;
  min-height: 140px;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #777;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: #ff0000;
  box-shadow: 0 0 0 3px rgba(255,0,0,0.18);
  background: #111;
}

.help-text {
  color: #aaa;
  font-size: 12px;
  margin-top: 6px;
}

.form-actions {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}

.btn-red {
  background: #ff0000;
  color: #fff;
  border: none;
  padding: 14px 22px;
  border-radius: 9999px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 180ms ease, background 160ms ease;
}

.btn-red:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(255,0,0,0.35);
}

.btn-red:active {
  transform: translateY(0);
  box-shadow: 0 6px 18px rgba(255,0,0,0.25);
}

@media (max-width: 700px) {
  .form-card { padding: 20px; }
  .form-grid { grid-template-columns: 1fr; gap: 14px; }
  .form-actions { justify-content: stretch; }
  .btn-red { width: 100%; }
}

/* Submission status text */
.form-status {
  margin-top: 10px;
  font-size: 14px;
  color: #bbb;
}

.form-status[data-state="success"] {
  color: #39d353; /* green */
}

.form-status[data-state="error"] {
  color: #ff6b6b; /* red */
}

/* Add this CSS rule to make bold text even bolder */
strong {
  font-weight: 900; /* Adjust the weight as needed */
}

.product img {
  max-width: 300px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ===== Contact Form Section ===== */
.contact-form-section {
  width: 100%;
  max-width: 1000px; /* wider for better desktop layout */
  margin: 60px auto 40px;
  padding: 0 20px;
  box-sizing: border-box;
  position: relative;
}

/* Add a subtle background glow */
.contact-form-section::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  background: radial-gradient(ellipse at center, rgba(255, 42, 42, 0.03) 0%, transparent 70%);
  border-radius: 30px;
  z-index: -1;
}

/* Form row layout for side-by-side fields */
.contact-form-section .form-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.contact-form-section .form-row .form-field {
  flex: 1;
}

.contact-form-section .form-row label {
  display: block;
  font-size: 14px;
  color: #ddd;
  margin-bottom: 12px;
  letter-spacing: 1px;
  font-weight: 600;
  text-align: left;
}

.contact-form-section form {
  background: linear-gradient(145deg, rgba(26, 26, 26, 0.95), rgba(15, 15, 15, 0.95));
  border: 1px solid rgba(255,255,255,0.12);
  border-left: 4px solid #ff0000;
  border-right: 4px solid #ff0000;
  border-radius: 20px;
  padding: 40px 32px;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 42, 42, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transform: translateZ(0);
  backface-visibility: hidden;
  contain: layout paint;
}

/* Add animated background pattern */
.contact-form-section form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="formgrain" width="50" height="50" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="0.5" fill="%23ff2a2a" opacity="0.05"/><circle cx="40" cy="40" r="0.3" fill="%23ffffff" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23formgrain)"/></svg>');
  animation: formFloat 25s ease-in-out infinite;
  z-index: -1;
}

@keyframes formFloat {
  0%, 100% { transform: translateX(0px) translateY(0px); }
  25% { transform: translateX(-5px) translateY(-5px); }
  50% { transform: translateX(5px) translateY(-3px); }
  75% { transform: translateX(-3px) translateY(5px); }
}

.contact-form-section label {
  display: block;
  font-size: 15px;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: 1px;
  font-weight: 700;
  text-align: left;
  text-transform: uppercase;
  position: relative;
}

/* Add subtle glow to labels */
.contact-form-section label::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #ff0000, #ff4444);
  transition: width 0.3s ease;
}

.contact-form-section .form-field:focus-within label::after {
  width: 30px;
}

.contact-form-section .required {
  color: #ff0000;
}

.contact-form-section input[type="email"],
.contact-form-section input[type="text"],
.contact-form-section input[type="date"],
.contact-form-section select,
.contact-form-section textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: linear-gradient(135deg, rgba(30, 30, 30, 0.9), rgba(15, 15, 15, 0.9));
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
  outline: none;
  font-family: 'Orbitron', sans-serif;
  font-size: 16px;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  background-color: rgba(24, 24, 24, 0.95);
  color-scheme: dark;
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.contact-form-section input[type="email"],
.contact-form-section input[type="text"],
.contact-form-section input[type="date"],
.contact-form-section textarea {
  -webkit-appearance: none;
  appearance: none;
  background: #1a1a1a !important;
  background-color: #1a1a1a !important;
}

/* Force dark field paint when browser autofill is active (prevents white/blue fill). */
.contact-form-section input:-webkit-autofill,
.contact-form-section input:-webkit-autofill:hover,
.contact-form-section input:-webkit-autofill:focus,
.contact-form-section textarea:-webkit-autofill,
.contact-form-section textarea:-webkit-autofill:hover,
.contact-form-section textarea:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff !important;
  caret-color: #fff;
  -webkit-box-shadow: 0 0 0 1000px #1a1a1a inset !important;
  box-shadow: 0 0 0 1000px #1a1a1a inset !important;
  background-color: #1a1a1a !important;
  transition: background-color 9999s ease-out 0s;
}

.contact-form-section input:autofill,
.contact-form-section textarea:autofill {
  color: #fff;
  box-shadow: 0 0 0 1000px rgba(24, 24, 24, 0.95) inset;
}

.contact-form-section select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23777' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

.contact-form-section input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: 0.7;
  cursor: pointer;
}

.contact-form-section input[type="email"]::placeholder,
.contact-form-section input[type="text"]::placeholder,
.contact-form-section textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
}

.contact-form-section input[type="email"]:focus,
.contact-form-section input[type="text"]:focus,
.contact-form-section input[type="date"]:focus,
.contact-form-section select:focus,
.contact-form-section textarea:focus {
  border-color: #ff0000;
  background: linear-gradient(135deg, rgba(40, 40, 40, 0.95), rgba(20, 20, 20, 0.95));
  background-color: #202020 !important;
  box-shadow: 
    0 0 20px rgba(255, 0, 0, 0.3),
    0 6px 25px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.contact-form-section input[type="email"]:focus,
.contact-form-section input[type="text"]:focus,
.contact-form-section input[type="date"]:focus,
.contact-form-section textarea:focus {
  background: #202020 !important;
}

.contact-form-section select:focus {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff0000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
}

.contact-form-section .checkbox-group {
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 20px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 20px;
}

.contact-form-section .agency-checkbox-group {
  margin-bottom: 0;
  background: #111;
}

.contact-form-section .checkbox-item {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 200ms ease;
  position: relative;
  overflow: hidden;
}

.contact-form-section .checkbox-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,0,0,0.1), transparent);
  transition: left 400ms ease;
}

.contact-form-section .checkbox-item:hover {
  background: rgba(255,0,0,0.05);
  border-color: rgba(255,0,0,0.3);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255,0,0,0.15);
}

.contact-form-section .checkbox-item:hover::before {
  left: 100%;
}

.contact-form-section .checkbox-item input[type="checkbox"] {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #444;
  border-radius: 6px;
  background: #1a1a1a;
  margin-right: 14px;
  margin-bottom: 0;
  cursor: pointer;
  position: relative;
  transition: all 200ms ease;
  flex-shrink: 0;
}

.contact-form-section .checkbox-item input[type="checkbox"]:checked {
  background: linear-gradient(135deg, #ff0000, #cc0000);
  border-color: #ff0000;
  transform: scale(1.05);
  box-shadow: 0 0 0 3px rgba(255,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.2);
}

.contact-form-section .checkbox-item input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 14px;
  font-weight: bold;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.contact-form-section .checkbox-item input[type="checkbox"]:focus {
  box-shadow: 0 0 0 3px rgba(255,0,0,0.3);
  border-color: #ff0000;
}

.contact-form-section .checkbox-item label {
  margin: 0;
  cursor: pointer;
  user-select: none;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.5px;
  color: #ddd;
  transition: color 200ms ease;
  position: relative;
  z-index: 1;
}

.contact-form-section .checkbox-item:hover label {
  color: #fff;
}

.contact-form-section .checkbox-item input[type="checkbox"]:checked + label {
  color: #fff;
  font-weight: 600;
}

.contact-form-section .checkbox-empty-state {
  grid-column: 1 / -1;
  padding: 14px 16px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  letter-spacing: 0.4px;
  text-align: center;
}

.contact-form-section textarea {
  resize: vertical;
  min-height: 120px;
  font-family: Arial, sans-serif;
}

.contact-form-section button[type="submit"] {
  background: linear-gradient(135deg, #ff0000, #cc0000);
  color: #fff;
  border: 2px solid transparent;
  padding: 18px 40px;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  font-size: 16px;
  font-family: 'Orbitron', sans-serif;
  transition: all 0.3s ease;
  width: 100%;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 8px 25px rgba(255, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.contact-form-section button[type="submit"]::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.contact-form-section button[type="submit"]:hover::before {
  left: 100%;
}

.contact-form-section button[type="submit"]:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 15px 35px rgba(255, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  background: linear-gradient(135deg, #ff1a1a, #e60000);
}

.contact-form-section button[type="submit"]:active {
  transform: translateY(-1px);
  box-shadow: 
    0 8px 20px rgba(255, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Submit button loading spinner */
.contact-form-section button[type="submit"].is-loading {
  opacity: 0.9;
  pointer-events: none;
}

.contact-form-section button[type="submit"].is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.6);
  border-top-color: #fff;
  transform: translateY(-50%);
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }

/* Success state */
.contact-form-section button[type="submit"].is-success {
  background: #16a34a; /* green */
  box-shadow: 0 10px 26px rgba(22,163,74,0.35);
}

.contact-form-section button[type="submit"].is-success:hover {
  background: #15803d;
}

.contact-form-section .form-success-pop {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  animation: pop-in 300ms ease;
}

@keyframes pop-in {
  0% { transform: scale(0.96); opacity: 0; }
  60% { transform: scale(1.04); opacity: 1; }
  100% { transform: scale(1); }
}

/* Optional: gently fade fields once submitted */
.contact-form-section form.is-submitted {
  position: relative;
}

.contact-form-section form.is-submitted .fade-after-submit {
  opacity: 0.6;
  transition: opacity 300ms ease;
}

@media (max-width: 700px) {
  .contact-form-section {
    margin: 32px auto 20px;
    padding: 0 8px; /* Reduce side padding on mobile */
  }
  
  .contact-form-section form {
    padding: 20px 16px; /* Reduce padding inside form */
    background: #111;
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.55);
  }
  
  .contact-form-section .checkbox-group {
    grid-template-columns: 1fr; /* Stack checkboxes on mobile */
    gap: 12px;
    padding: 16px;
  }
  
  .contact-form-section .checkbox-item {
    padding: 14px 16px; /* Slightly larger touch targets on mobile */
  }

  /* Mobile: stack form rows vertically */
  .contact-form-section .form-row {
    flex-direction: column;
    gap: 0;
  }

  /* Mobile: make all form fields same width */
  .contact-form-section .form-field {
    width: 100%;
  }

  .contact-form-section input[type="email"],
  .contact-form-section input[type="text"],
  .contact-form-section input[type="date"],
  .contact-form-section select,
  .contact-form-section textarea {
    width: 100%;
  }
}

/* Mobile compositor hardening: avoid brief gray flashes while expanding details content. */
@media (hover: none) and (pointer: coarse) {
  .contact-form-section form,
  .contact-form-section input[type="email"],
  .contact-form-section input[type="text"],
  .contact-form-section input[type="date"],
  .contact-form-section select,
  .contact-form-section textarea,
  .contact-form-section .checkbox-group,
  .contact-form-section .agency-checkbox-group {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .contact-form-section form::before {
    display: none;
  }

  .contact-form-section form,
  .contact-form-section .checkbox-group,
  .contact-form-section .agency-checkbox-group,
  .contact-form-section .checkbox-item {
    background: #111;
  }

  .contact-form-section input[type="email"]:focus,
  .contact-form-section input[type="text"]:focus,
  .contact-form-section input[type="date"]:focus,
  .contact-form-section select:focus,
  .contact-form-section textarea:focus,
  .contact-form-section .checkbox-item:hover {
    transform: none;
  }

  .contact-form-section .checkbox-item::before {
    display: none;
  }
}

    .about-hero {
      min-height: 90vh;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      background: #000000;
      overflow: hidden;
    }

    .about-hero-bg {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: none;
      animation: none;
    }

    @keyframes float {
      0%, 100% { transform: translateY(0px) rotate(0deg); }
      50% { transform: translateY(-10px) rotate(1deg); }
    }

    .about-hero-content {
      text-align: center;
      z-index: 2;
      position: relative;
      max-width: 800px;
      padding: 0 20px;
    }

    .about-logo {
      margin-bottom: 25px;
      animation: fadeInUp 1s ease-out;
    }

    .about-logo-img {
      width: 120px;
      height: auto;
      filter: drop-shadow(0 10px 20px rgba(255, 42, 42, 0.3));
      animation: pulse 3s ease-in-out infinite;
    }

    .about-hero .about-title {
      font-size: 3.5rem;
      font-weight: 900;
      margin-bottom: 15px;
      color: white;
      text-transform: uppercase;
      letter-spacing: 3px;
      text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
      animation: fadeInUp 1s ease-out 0.3s both;
      display: inline;
      font-family: 'Cinzel', serif;
    }

    .about-hero .about-title .text-accent {
      display: inline;
    }

    .text-accent {
      color: #ff2a2a;
      text-shadow: 0 0 20px rgba(255, 42, 42, 0.5);
    }

    .about-subtitle {
      font-size: 1.3rem;
      color: #cccccc;
      margin-bottom: 12px;
      font-weight: 300;
      letter-spacing: 2px;
      animation: fadeInUp 1s ease-out 0.6s both;
    }

    .about-tagline {
      font-size: 1rem;
      color: #888;
      margin-bottom: 30px;
      letter-spacing: 1px;
      animation: fadeInUp 1s ease-out 0.9s both;
    }

    .about-divider {
      width: 120px;
      height: 3px;
      background: linear-gradient(90deg, #ff2a2a, #ffffff, #ff2a2a);
      margin: 0 auto 0;
      border-radius: 2px;
      animation: fadeInUp 1s ease-out 1.2s both;
    }

    .about-main {
      padding: 60px 20px;
      max-width: 1200px;
      margin: 0 auto;
    }

    .about-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 30px;
      margin-bottom: 80px;
    }

    .about-card {
      background: linear-gradient(145deg, #1a1a1a, #0f0f0f);
      border: 1px solid #333;
      border-radius: 15px;
      padding: 40px 30px;
      text-align: center;
      transition: all 0.3s ease;
      position: relative;
      overflow: hidden;
    }

    .about-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255, 42, 42, 0.1), transparent);
      transition: left 0.5s ease;
    }

    .about-card:hover {
      transform: translateY(-10px);
      border-color: #ff2a2a;
      box-shadow: 0 20px 40px rgba(255, 42, 42, 0.2);
    }

    .about-card:hover::before {
      left: 100%;
    }

    .card-icon {
      font-size: 3rem;
      margin-bottom: 20px;
      filter: grayscale(1);
      transition: filter 0.3s ease;
    }

    .card-icon-img {
      width: 5rem;
      height: 5rem;
      object-fit: contain;
      display: inline-block;
    }

    .about-card:hover .card-icon {
      filter: grayscale(0);
    }

    .about-card h2 {
      color: #ff2a2a;
      font-size: 1.5rem;
      font-weight: 700;
      margin-bottom: 20px;
      text-transform: uppercase;
      letter-spacing: 1px;
    }

    .about-card p {
      color: #cccccc;
      line-height: 1.6;
      font-size: 1rem;
    }

    .stats-section {
      text-align: center;
      margin-bottom: 80px;
      padding: 60px 30px;
      background: linear-gradient(135deg, #0f0f0f, #1a1a1a);
      border-radius: 20px;
      border: 1px solid #333;
    }

    .stats-title {
      color: white;
      font-size: 2.5rem;
      font-weight: 700;
      margin-bottom: 50px;
      text-transform: uppercase;
      letter-spacing: 2px;
    }

    .stats-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      gap: 30px;
    }

    .stat-item {
      padding: 20px;
    }

    .stat-number {
      font-size: 3rem;
      font-weight: 900;
      color: #ff2a2a;
      text-shadow: 0 0 20px rgba(255, 42, 42, 0.5);
      margin-bottom: 10px;
    }

    .stat-label {
      color: #cccccc;
      font-size: 1.1rem;
      text-transform: uppercase;
      letter-spacing: 1px;
      font-weight: 600;
    }

    .values-section {
      text-align: center;
    }

    .values-title {
      color: white;
      font-size: 2.5rem;
      font-weight: 700;
      margin-bottom: 50px;
      text-transform: uppercase;
      letter-spacing: 2px;
    }

    .values-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 30px;
    }

    .value-item {
      background: linear-gradient(145deg, #1a1a1a, #0f0f0f);
      border: 1px solid #333;
      border-radius: 15px;
      padding: 40px 20px;
      transition: all 0.3s ease;
    }

    .value-item:hover {
      transform: translateY(-5px);
      border-color: #ff2a2a;
      box-shadow: 0 15px 30px rgba(255, 42, 42, 0.15);
    }

    .value-icon {
      font-size: 2.5rem;
      margin-bottom: 20px;
    }

    .value-icon-img {
      width: 5rem;
      height: 5rem;
      object-fit: contain;
      display: inline-block;
    }

    .value-item h3 {
      color: #ff2a2a;
      font-size: 1.3rem;
      font-weight: 700;
      margin-bottom: 15px;
      text-transform: uppercase;
      letter-spacing: 1px;
    }

    .value-item p {
      color: #cccccc;
      line-height: 1.5;
      font-size: 0.95rem;
    }

    @media (max-width: 768px) {
      .hero-title {
        font-size: 2.5rem;
      }
      
      .hero-subtitle {
        font-size: 1.1rem;
      }
      
      .about-main {
        padding: 40px 15px;
      }
      
      .about-grid {
        grid-template-columns: 1fr;
        gap: 20px;
      }
      
      .about-card {
        padding: 30px 20px;
      }
      
      .stats-title, .values-title {
        font-size: 2rem;
      }
      
      .stats-section {
        padding: 40px 20px;
      }
    }

        /* Hero Section */
    .hero-section {
      min-height: 90vh;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      overflow: hidden;
    }

    .hero-bg {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      overflow: hidden;
      z-index: 1;
    }

    .hero-video {
      position: absolute;
      top: 50%;
      left: 50%;
      min-width: 100%;
      min-height: 100%;
      width: 130%;
      height: 130%;
      transform: translate(-50%, -50%);
      object-fit: contain;
      z-index: 1;
    }

    .hero-content {
      text-align: center;
      z-index: 2;
      position: relative;
      max-width: 900px;
      padding: 0 20px;
    }

    .hero-logo {
      margin-bottom: 30px;
      animation: fadeInUp 1s ease-out;
    }

    .hero-logo-img {
      width: 120px;
      height: auto;
      filter: drop-shadow(0 10px 20px rgba(255, 42, 42, 0.3));
      animation: pulse 3s ease-in-out infinite;
    }

    .hero-title {
      font-size: 4rem;
      font-weight: 900;
      margin-bottom: 20px;
      color: white;
      text-transform: uppercase;
      letter-spacing: 3px;
      text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
      animation: fadeInUp 1s ease-out 0.3s both;
      font-family: 'Cinzel', serif;
      display: flex;
      flex-direction: column;
      line-height: 1;
      gap: 0;
    }

    /* Keep other pages' hero titles inline */
    section.hero-section .hero-title {
      display: inline;
    }

    section.hero-section .hero-title .text-accent {
      display: inline;
    }

    /* Home page hero title stacked */
    div.hero-section .hero-title {
      display: flex;
      flex-direction: column;
      line-height: 1;
      gap: 0;
    }

    div.hero-section .hero-title .text-accent {
      display: block;
    }

    .text-accent {
      color: #ff2a2a;
      text-shadow: 0 0 30px rgba(255, 42, 42, 0.6);
      display: block;
    }

    .hero-subtitle {
      font-size: 1.5rem;
      color: #cccccc;
      margin-bottom: 15px;
      font-weight: 300;
      letter-spacing: 2px;
      animation: fadeInUp 1s ease-out 0.6s both;
    }

    .hero-tagline {
      font-size: 1rem;
      color: #888;
      margin-bottom: 40px;
      letter-spacing: 1px;
      animation: fadeInUp 1s ease-out 0.9s both;
    }

    .hero-divider {
      width: 150px;
      height: 3px;
      background: linear-gradient(90deg, #ff2a2a, #ffffff, #ff2a2a);
      margin: 0 auto 40px;
      border-radius: 2px;
      animation: fadeInUp 1s ease-out 1.2s both;
    }

    .hero-actions {
      display: flex;
      gap: 20px;
      justify-content: center;
      flex-wrap: wrap;
      animation: fadeInUp 1s ease-out 1.5s both;
    }

    .hero-btn {
      padding: 15px 30px;
      border-radius: 50px;
      text-decoration: none;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 1px;
      transition: all 0.3s ease;
      position: relative;
      overflow: hidden;
    }

    .hero-btn.primary {
      background: linear-gradient(45deg, #ff2a2a, #ff4444);
      color: white;
      border: 2px solid #ff2a2a;
    }

    .hero-btn.secondary {
      background: transparent;
      color: white;
      border: 2px solid white;
    }

    .hero-btn:hover {
      transform: translateY(-3px);
      box-shadow: 0 10px 30px rgba(255, 42, 42, 0.4);
    }

    .hieroglyph-marquee {
      position: relative;
      overflow: hidden;
      margin: 0;
      padding: 16px 0;
      isolation: isolate;
      -webkit-transform: translateZ(0);
      transform: translateZ(0);
      -webkit-backface-visibility: hidden;
      backface-visibility: hidden;
      border-top: 1px solid rgba(255, 42, 42, 0.55);
      border-bottom: 1px solid rgba(255, 42, 42, 0.55);
      background:
        radial-gradient(120% 140% at 50% 50%, rgba(255, 42, 42, 0.09) 0%, rgba(255, 42, 42, 0.02) 35%, rgba(0, 0, 0, 0.98) 100%),
        #000000;
      box-shadow:
        inset 0 10px 24px rgba(0, 0, 0, 0.55),
        inset 0 -10px 24px rgba(0, 0, 0, 0.55),
        0 0 22px rgba(255, 42, 42, 0.14);
    }

    .hieroglyph-marquee::before {
      content: '';
      position: absolute;
      inset: 0;
      pointer-events: none;
      opacity: 0.2;
      background: repeating-linear-gradient(
        180deg,
        rgba(255, 42, 42, 0.12) 0,
        rgba(255, 42, 42, 0.12) 1px,
        transparent 1px,
        transparent 6px
      );
      mix-blend-mode: screen;
      animation: hieroglyphScanlines 9s linear infinite;
      z-index: 2;
    }

    .hieroglyph-marquee::after {
      content: '';
      position: absolute;
      inset: 0;
      pointer-events: none;
      background:
        linear-gradient(90deg, #000 0%, transparent 10%, transparent 90%, #000 100%);
      z-index: 3;
    }

    section.hero-section > .hieroglyph-marquee {
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      z-index: 4;
    }

    .about-hero > .hieroglyph-marquee,
    .faq-hero > .hieroglyph-marquee,
    .rules-hero > .hieroglyph-marquee,
    .submission-hero > .hieroglyph-marquee {
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      z-index: 4;
    }

    .hieroglyph-track {
      display: flex;
      align-items: center;
      width: max-content;
      white-space: nowrap;
      will-change: transform;
      -webkit-backface-visibility: hidden;
      backface-visibility: hidden;
      -webkit-transform: translate3d(-50%, 0, 0) translateZ(0);
      transform: translate3d(-50%, 0, 0) translateZ(0);
      animation: hieroglyphLeftToRight 28s linear infinite -14s;
    }

    .hieroglyph-text {
      display: inline-block;
      flex: 0 0 auto;
      padding-right: 0;
      color: #ff2a2a;
      font-size: 1.25rem;
      font-weight: 900;
      -webkit-text-stroke: 0.35px rgba(255, 42, 42, 0.9);
      -webkit-text-fill-color: currentColor;
      -webkit-font-smoothing: antialiased;
      text-rendering: optimizeLegibility;
      letter-spacing: 0.08em;
      text-shadow: 0 0 12px rgba(255, 42, 42, 0.45);
      animation: hieroglyphNeonPulse 2.8s ease-in-out infinite;
    }

    /* iOS Safari: avoid blend/filter artifacts on complex Unicode glyphs. */
    @supports (-webkit-touch-callout: none) {
      .hieroglyph-marquee::before {
        mix-blend-mode: normal;
        opacity: 0.12;
      }

      .hieroglyph-text {
        filter: none;
        animation: none;
      }
    }

    /* Android/Samsung optimization: reduce expensive blend/filter effects on coarse-pointer mobiles. */
    @media (hover: none) and (pointer: coarse) {
      .hieroglyph-marquee::before {
        mix-blend-mode: normal;
        opacity: 0.1;
        animation: none;
      }

      .hieroglyph-track {
        animation: hieroglyphLeftToRight 45s linear infinite -22.5s;
        will-change: auto;
      }

      .hieroglyph-text {
        animation: none;
        filter: none;
        text-shadow: 0 0 8px rgba(255, 42, 42, 0.25);
      }

      .hero-logo-img,
      .about-logo-img,
      .rules-logo-img,
      .faq-logo-img,
      .submission-logo-img {
        animation: none !important;
        filter: none !important;
      }
    }

    /* Featured Event Section */
    .featured-section {
      padding: 80px 20px;
      max-width: none;
      margin: 0 auto;
    }

    .section-header {
      text-align: center;
      margin-bottom: 60px;
    }

    .section-title {
      font-size: 2.5rem;
      font-weight: 900;
      color: white;
      text-transform: uppercase;
      letter-spacing: 2px;
      margin-bottom: 15px;
    }

    .section-subtitle {
      font-size: 1.1rem;
      color: #888;
      letter-spacing: 1px;
    }

    .featured-event {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 30px;
    }

    .event-card {
      background: linear-gradient(145deg, #1a1a1a, #0f0f0f);
      border: 1px solid #333;
      border-radius: 20px;
      overflow: hidden;
      max-width: 800px;
      width: 100%;
      transition: all 0.3s ease;
    }

    .event-card:hover {
      transform: translateY(-10px);
      box-shadow: 0 30px 60px rgba(255, 42, 42, 0.2);
    }

    .event-image {
      position: relative;
      height: 300px;
      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-overlay {
      position: absolute;
      top: 20px;
      right: 20px;
    }

    .event-badge {
      background: #ff2a2a;
      color: white;
      padding: 8px 16px;
      border-radius: 20px;
      font-size: 0.8rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 1px;
    }

    .event-details {
      padding: 40px;
    }

    .event-name {
      font-size: 2rem;
      font-weight: 700;
      color: #ff2a2a;
      margin-bottom: 15px;
      text-transform: uppercase;
      letter-spacing: 1px;
    }

    .event-description {
      color: #cccccc;
      line-height: 1.6;
      margin-bottom: 30px;
      font-size: 1.1rem;
    }

    .event-meta {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 20px;
      margin-bottom: 30px;
    }

    .meta-label {
      display: block;
      font-size: 0.8rem;
      color: #888;
      text-transform: uppercase;
      letter-spacing: 1px;
      margin-bottom: 5px;
    }

    .meta-value {
      color: white;
      font-weight: 600;
    }

    .event-ticket-btn {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      background: linear-gradient(45deg, #ff2a2a, #ff4444);
      color: white;
      padding: 15px 30px;
      border-radius: 50px;
      text-decoration: none;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 1px;
      transition: all 0.3s ease;
    }

    .event-ticket-btn:hover {
      transform: translateY(-3px);
      box-shadow: 0 15px 30px rgba(255, 42, 42, 0.4);
    }

    /* Content Grid */
    .content-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
      gap: 40px;
      padding: 80px 20px;
      max-width: none;
      margin: 0 auto;
    }

    .content-section {
      animation: fadeInUp 1s ease-out;
    }

    .content-card {
      background: linear-gradient(145deg, #1a1a1a, #0f0f0f);
      border: 1px solid #333;
      border-radius: 20px;
      overflow: hidden;
      transition: all 0.3s ease;
    }

    .content-card:hover {
      transform: translateY(-10px);
      border-color: #ff2a2a;
      box-shadow: 0 20px 40px rgba(255, 42, 42, 0.15);
    }

    .card-header {
      display: flex;
      align-items: center;
      gap: 20px;
      padding: 30px;
      border-bottom: 1px solid #333;
    }

    .card-icon {
      font-size: 2.5rem;
      filter: grayscale(1);
      transition: filter 0.3s ease;
    }

    .content-card:hover .card-icon {
      filter: grayscale(0);
    }

    .card-title {
      color: #ff2a2a;
      font-size: 1.3rem;
      font-weight: 700;
      margin-bottom: 5px;
      text-transform: uppercase;
    }

    .card-subtitle {
      color: #888;
      font-size: 1rem;
    }

    .card-content {
      padding: 30px;
    }

    .audio-player {
      margin-bottom: 20px;
      border-radius: 10px;
      overflow: hidden;
    }

    .card-actions {
      text-align: center;
    }

    .card-link {
      color: #ff2a2a;
      text-decoration: none;
      font-weight: 600;
      transition: color 0.3s ease;
    }

    .card-link:hover {
      color: #ffffff;
    }

    /* CTA Section */
    .cta-section {
      background: linear-gradient(135deg, #0f0f0f, #1a1a1a);
      padding: 80px 20px;
      text-align: center;
      border-top: 1px solid #333;
    }

    .cta-content {
      max-width: none;
      margin: 0 auto;
    }

    .cta-title {
      font-size: 2.5rem;
      font-weight: 700;
      color: white;
      margin-bottom: 20px;
      text-transform: uppercase;
      letter-spacing: 2px;
    }

    .cta-text {
      font-size: 1.2rem;
      color: #cccccc;
      line-height: 1.6;
      margin-bottom: 40px;
    }

    .cta-actions {
      display: flex;
      gap: 20px;
      justify-content: center;
      flex-wrap: wrap;
    }

    .cta-btn {
      padding: 15px 30px;
      border-radius: 50px;
      text-decoration: none;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 1px;
      transition: all 0.3s ease;
    }

    .cta-btn.primary {
      background: linear-gradient(45deg, #ff2a2a, #ff4444);
      color: white;
    }

    .cta-btn.secondary {
      background: transparent;
      color: white;
      border: 2px solid white;
    }

    .cta-btn:hover {
      transform: translateY(-3px);
      box-shadow: 0 10px 30px rgba(255, 42, 42, 0.4);
    }

    /* Animations */
    @keyframes fadeInUp {
      from {
        opacity: 0;
        transform: translateY(30px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @keyframes pulse {
      0%, 100% {
        transform: scale(1);
      }
      50% {
        transform: scale(1.05);
      }
    }

    @keyframes float {
      0%, 100% { transform: translateY(0px) rotate(0deg); }
      50% { transform: translateY(-10px) rotate(1deg); }
    }

    @keyframes hieroglyphLeftToRight {
      from {
        transform: translate3d(-50%, 0, 0) translateZ(0);
      }
      to {
        transform: translate3d(0, 0, 0) translateZ(0);
      }
    }

    @keyframes hieroglyphNeonPulse {
      0%, 100% {
        text-shadow:
          0 0 8px rgba(255, 42, 42, 0.3),
          0 0 18px rgba(255, 42, 42, 0.2);
        filter: saturate(1);
      }
      50% {
        text-shadow:
          0 0 14px rgba(255, 42, 42, 0.5),
          0 0 26px rgba(255, 42, 42, 0.3);
        filter: saturate(1.2);
      }
    }

    @keyframes hieroglyphScanlines {
      from {
        transform: translateY(0);
      }
      to {
        transform: translateY(6px);
      }
    }

    /* Mobile Responsive */
    @media (max-width: 768px) {
      .hero-title {
        font-size: 2.5rem;
        letter-spacing: 2px;
      }
      
      .hero-subtitle {
        font-size: 1.2rem;
      }
      
      .hero-tagline {
        font-size: 0.9rem;
      }

      .hieroglyph-marquee {
        padding: 12px 0;
      }

      .hieroglyph-text {
        font-size: 1rem;
      }
      
      .hero-actions {
        flex-direction: column;
        align-items: center;
      }
      
      .content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 60px 15px;
      }
      
      .event-details {
        padding: 30px 20px;
      }
      
      .event-meta {
        grid-template-columns: 1fr;
        gap: 15px;
      }
      
      .section-title {
        font-size: 2rem;
      }
      
      .cta-title {
        font-size: 2rem;
      }
      
      .cta-actions {
        flex-direction: column;
        align-items: center;
      }
    }

    /* Extra small phones */
    @media (max-width: 480px) {
      html {
        font-size: 14px;
      }

      .hero-title {
        font-size: 2rem;
        letter-spacing: 1px;
      }
      
      .hero-subtitle {
        font-size: 1rem;
      }
      
      .hero-tagline {
        font-size: 0.8rem;
      }

      .hieroglyph-text {
        font-size: 0.9rem;
      }

      .hero-logo-img {
        width: 80px;
      }

      .hero-btn {
        padding: 12px 24px;
        font-size: 0.9rem;
      }
      
      .section-title {
        font-size: 1.5rem;
      }

      .section-subtitle {
        font-size: 0.9rem;
      }
      
      .event-name {
        font-size: 1.3rem;
      }

      .cta-title {
        font-size: 1.5rem;
      }

      .cta-text {
        font-size: 0.95rem;
      }
    }

    /* Very small phones and landscape mode fixes */
    @media (max-width: 375px) {
      html {
        font-size: 13px;
      }

      .hero-title {
        font-size: 1.8rem;
      }

      .hero-content {
        padding: 0 15px;
      }

      .content-grid {
        padding: 40px 10px;
      }
    }

/* Booking Card Styles */
.booking-card-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.booking-intro-card {
  background: linear-gradient(145deg, #1a1a1a, #0f0f0f);
  border: 1px solid #333;
  border-radius: 20px;
  overflow: hidden;
  max-width: 800px;
  width: 100%;
  transition: all 0.3s ease;
}

.booking-intro-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(255, 42, 42, 0.15);
  border-color: #ff2a2a;
}

.booking-intro-content {
  padding: 40px;
  text-align: center;
}

.booking-intro-content h3 {
  font-size: 2rem;
  font-weight: 700;
  color: #ff2a2a;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.booking-intro-content p {
  color: #cccccc;
  line-height: 1.6;
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.booking-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: rgba(255, 42, 42, 0.05);
  border-color: rgba(255, 42, 42, 0.3);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 1.5rem;
  filter: grayscale(1);
  transition: filter 0.3s ease;
}

.feature-icon-img {
  width: 1.5rem;
  height: 1.5rem;
  object-fit: contain;
  display: inline-block;
}

.feature-item:hover .feature-icon {
  filter: grayscale(0);
}

.feature-item span:last-child {
  color: #ddd;
  font-weight: 600;
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .booking-intro-content {
    padding: 30px 20px;
  }
  
  .booking-intro-content h3 {
    font-size: 1.5rem;
  }
  
  .booking-features {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .feature-item {
    padding: 12px;
  }
}

/* ===== Events Page Styling ===== */
.featured-event-section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

#currentEventContainer {
  display: grid;
  gap: 32px;
}

#currentEventContainer .event-card {
  max-width: 900px;
}

#currentEventContainer .event-image {
  height: 600px;
}

#currentEventContainer .event-details {
  min-height: 320px;
  display: flex;
  flex-direction: column;
}

#currentEventContainer .event-ticket-btn {
  margin-top: auto;
  align-self: center;
}

.event-ticket-btn[aria-disabled="true"] {
  cursor: default;
  opacity: 0.9;
}

.event-ticket-btn[aria-disabled="true"]:hover {
  transform: none;
  box-shadow: none;
}

.event-card-modern {
  background: linear-gradient(145deg, #1a1a1a, #0f0f0f);
  border: 1px solid #333;
  border-radius: 20px;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
  transition: all 0.3s ease;
}

.event-card-modern:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(255, 42, 42, 0.2);
  border-color: #ff2a2a;
}

.event-image-container {
  position: relative;
  height: 600px; /* Increased from 450px */
  overflow: hidden;
  border-radius: 15px 15px 0 0;
}

.event-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  filter: brightness(1.1) contrast(1.2); /* Enhanced visibility */
}

.event-card-modern:hover .event-image-container img {
  transform: scale(1.05);
}

.event-overlay {
  position: absolute;
  top: 20px;
  right: 20px;
}

.event-badge {
  background: linear-gradient(45deg, #ff2a2a, #ff4444);
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(255, 42, 42, 0.3);
}

.event-details-modern {
  padding: 40px;
}

.event-name-modern {
  font-size: 2.2rem;
  font-weight: 700;
  color: #ff2a2a;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 0 20px rgba(255, 42, 42, 0.3);
}

.event-description-modern {
  color: #cccccc;
  line-height: 1.6;
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.event-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 30px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.meta-item {
  text-align: center;
}

.meta-label {
  display: block;
  font-size: 0.8rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  font-weight: 600;
}

/* ===== Newsletter / Brevo Signup ===== */
@font-face {
  font-display: block;
  font-family: Roboto;
  src: url(https://assets.brevo.com/font/Roboto/Latin/normal/normal/7529907e9eaf8ebb5220c5f9850e3811.woff2) format("woff2"), url(https://assets.brevo.com/font/Roboto/Latin/normal/normal/25c678feafdc175a70922a116c9be3e7.woff) format("woff");
}

@font-face {
  font-display: fallback;
  font-family: Roboto;
  font-weight: 600;
  src: url(https://assets.brevo.com/font/Roboto/Latin/medium/normal/6e9caeeafb1f3491be3e32744bc30440.woff2) format("woff2"), url(https://assets.brevo.com/font/Roboto/Latin/medium/normal/71501f0d8d5aa95960f6475d5487d4c2.woff) format("woff");
}

@font-face {
  font-display: fallback;
  font-family: Roboto;
  font-weight: 700;
  src: url(https://assets.brevo.com/font/Roboto/Latin/bold/normal/3ef7cf158f310cf752d5ad08cd0e7e60.woff2) format("woff2"), url(https://assets.brevo.com/font/Roboto/Latin/bold/normal/ece3a1d82f18b60bcce0211725c476aa.woff) format("woff");
}

#sib-container input:-ms-input-placeholder {
  text-align: left;
  font-family: Helvetica, sans-serif;
  color: #c0ccda;
}

#sib-container input::placeholder {
  text-align: left;
  font-family: Helvetica, sans-serif;
  color: #c0ccda;
}

#sib-container textarea::placeholder {
  text-align: left;
  font-family: Helvetica, sans-serif;
  color: #c0ccda;
}

#sib-container a {
  text-decoration: underline;
  color: #2BB2FC;
}

.newsletter-signup {
  padding-top: 10px;
  padding-bottom: 80px;
}

.newsletter-signup .section-header {
  margin-bottom: 34px;
}

.newsletter-signup .sib-form {
  background: transparent !important;
  margin: 0 auto;
  padding: 0 20px;
}

.newsletter-signup #sib-form-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.newsletter-signup #error-message,
.newsletter-signup #success-message {
  max-width: 680px !important;
  width: 100%;
  border-radius: 12px !important;
  border-width: 1px !important;
}

.newsletter-signup #sib-container {
  max-width: 680px !important;
  width: 100%;
  text-align: left !important;
  background: linear-gradient(145deg, #1a1a1a, #0f0f0f) !important;
  border: 1px solid #333 !important;
  border-radius: 20px !important;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
  padding: 18px 18px 14px;
  box-sizing: border-box;
}

.newsletter-signup #sib-form {
  text-align: left;
}

.newsletter-signup #sib-form .sib-form-block,
.newsletter-signup #sib-form .sib-text-form-block,
.newsletter-signup #sib-form p,
.newsletter-signup #sib-form label {
  font-family: 'Cinzel', serif !important;
  color: #e6e6e6 !important;
  letter-spacing: 0.3px;
  text-align: center !important;
}

.newsletter-signup #sib-form .sib-form-block p {
  margin: 0;
}

.newsletter-signup #sib-form .sib-text-form-block p {
  color: #b5b5b5 !important;
  font-size: 0.96rem;
  line-height: 1.55;
}

.newsletter-signup #sib-form .entry__label {
  text-transform: uppercase;
  font-size: 0.9rem !important;
  color: #ff2a2a !important;
  margin-bottom: 8px;
  display: block;
}

.newsletter-signup #sib-form .entry__field {
  margin-top: 6px;
  border: 1px solid #353535 !important;
  border-radius: 12px !important;
  background: #0b0b0b !important;
  overflow: hidden;
}

.newsletter-signup #sib-form .form__entry.entry_block {
  text-align: center !important;
}

.newsletter-signup #sib-form .input {
  width: 100%;
  box-sizing: border-box;
  border: 0 !important;
  border-radius: 0 !important;
  background: #0b0b0b !important;
  color: #ffffff !important;
  padding: 13px 14px !important;
  text-align: left !important;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.newsletter-signup #sib-form .input::placeholder {
  text-align: left !important;
}

.newsletter-signup #sib-form .input:focus {
  outline: none;
  box-shadow: none !important;
}

.newsletter-signup #sib-form .entry__field:focus-within {
  border-color: #ff2a2a !important;
  box-shadow: 0 0 0 3px rgba(255, 42, 42, 0.2);
}

.newsletter-signup #sib-form .entry__specification {
  margin-top: 8px;
  color: #8f8f8f !important;
  font-size: 0.8rem !important;
  line-height: 1.5;
  display: block !important;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-align: center !important;
}

.newsletter-signup #sib-form .sib-form-block__button {
  background: linear-gradient(45deg, #ff2a2a, #ff4444) !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: #fff !important;
  text-transform: uppercase;
  font-family: 'Cinzel', serif !important;
  letter-spacing: 1px;
  font-weight: 700;
  padding: 14px 26px !important;
  min-width: 180px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  text-align: center !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.newsletter-signup #sib-form .sib-form-block__button-with-loader {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  text-align: center !important;
}

.newsletter-signup #sib-form .sib-form-block__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(255, 42, 42, 0.35);
}

.newsletter-signup #sib-form .sib-form-block__button .icon {
  fill: currentColor;
}

.newsletter-signup #sib-form .newsletter-submit-wrap {
  text-align: center !important;
  margin-top: 6px;
}

@media (max-width: 768px) {
  .newsletter-signup {
    padding-bottom: 60px;
  }

  .newsletter-signup .sib-form {
    padding: 0 12px;
  }

  .newsletter-signup #sib-container {
    border-radius: 16px !important;
    padding: 14px 12px 12px;
  }
}

.meta-value {
  color: white;
  font-weight: 700;
  font-size: 1rem;
}

.event-ticket-btn-modern {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(45deg, #ff2a2a, #ff4444);
  color: white;
  padding: 18px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.event-ticket-btn-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.event-ticket-btn-modern:hover::before {
  left: 100%;
}

.event-ticket-btn-modern:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(255, 42, 42, 0.4);
}

/* Past Events Section */
.past-events-section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.events-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 40px;
}

.gallery-event-card {
  background: linear-gradient(145deg, #1a1a1a, #0f0f0f);
  border: 1px solid #333;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.gallery-event-card:hover {
  transform: translateY(-10px);
  border-color: #ff2a2a;
  box-shadow: 0 20px 40px rgba(255, 42, 42, 0.15);
}

.gallery-event-header {
  padding: 30px 30px 20px;
  text-align: center;
  border-bottom: 1px solid #333;
}

.gallery-event-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ff2a2a;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.gallery-event-subtitle {
  color: #888;
  font-size: 1rem;
  letter-spacing: 0.5px;
}

.gallery-slider {
  padding: 30px;
}

.slider-container {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); /* Add depth */
}

.slider-container img {
  width: 100%;
  height: 450px; /* Increased from 350px */
  object-fit: cover;
  display: block;
  filter: brightness(1.15) contrast(1.25) saturate(1.1); /* Enhanced visibility */
  transition: all 0.3s ease;
}

.slider-container:hover img {
  filter: brightness(1.25) contrast(1.3) saturate(1.2);
  transform: scale(1.02);
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border: 1px solid rgba(200, 30, 30, 0.45);
  font-size: 18px;
  width: 42px;
  height: 42px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 0 10px rgba(180, 20, 20, 0.2), inset 0 1px 0 rgba(255,255,255,0.04);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  z-index: 10;
}

.slider-nav svg {
  display: block;
  flex-shrink: 0;
}

@media (hover: hover) and (pointer: fine) {
  .slider-nav:hover {
    background: rgba(180, 20, 20, 0.75);
    border-color: rgba(255, 60, 60, 0.7);
    box-shadow: 0 0 18px rgba(200, 30, 30, 0.55), inset 0 1px 0 rgba(255,255,255,0.06);
    transform: translateY(-50%) scale(1.08);
  }
}

.slider-nav:active {
  transform: translateY(-50%) scale(0.96);
}

.slider-nav-left {
  left: 14px;
}

.slider-nav-right {
  right: 14px;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: scale(1.2);
}

.slider-dot.active {
  background: #ff2a2a;
  transform: scale(1.3);
}

.single-event-image {
  padding: 30px;
}

.single-event-image img {
  width: 100%;
  height: 450px; /* Increased from 350px */
  object-fit: cover;
  border-radius: 15px;
  filter: brightness(1.15) contrast(1.25) saturate(1.1); /* Enhanced visibility */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); /* Add depth */
  transition: all 0.3s ease;
}

.single-event-image:hover img {
  filter: brightness(1.25) contrast(1.3) saturate(1.2);
  transform: scale(1.02);
}

/* ── Gallery page accordion ── */
.gallery-page {
  padding: 60px 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gallery-event-section {
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  overflow: hidden;
  background: #111;
  content-visibility: auto;
  contain-intrinsic-size: 1px 700px;
}

/* Accordion toggle button */
.gallery-event-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 30px;
  background: #111;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease;
}

.gallery-event-toggle:hover {
  background: #1a1a1a;
}

.gallery-event-toggle[aria-expanded="true"] {
  border-bottom: 1px solid #2a2a2a;
  background: #161616;
}

.gallery-event-toggle-name {
  flex: 1;
  font-size: 1.4rem;
  font-weight: 700;
  color: #ff2a2a;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.gallery-event-toggle-count {
  font-size: 0.85rem;
  color: #555;
  letter-spacing: 0.5px;
}

.gallery-event-toggle-arrow {
  font-size: 0.9rem;
  color: #555;
  transition: transform 0.3s ease;
}

.gallery-event-toggle[aria-expanded="true"] .gallery-event-toggle-arrow {
  transform: rotate(180deg);
  color: #ff2a2a;
}

/* Collapsible panel */
.gallery-event-panel {
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  padding: 20px;
}

.gallery-event-panel.open {
  opacity: 1;
  transform: translateY(0);
}

/* Photo grid */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}

.photo-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  filter: brightness(1.05) contrast(1.1);
  background: #0c0c0c;
}

.gallery-load-more {
  margin: 16px auto 0;
  display: block;
  border: 1px solid #3a3a3a;
  background: #151515;
  color: #ddd;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.gallery-load-more:hover {
  background: #1f1f1f;
  border-color: #ff2a2a;
}

.photo-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(255, 42, 42, 0.3);
}

body.gallery-lightbox-open {
  overflow: hidden;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox-figure {
  margin: 0;
  max-width: min(94vw, 1700px);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.gallery-lightbox-figure img {
  max-width: 100%;
  max-height: calc(92vh - 52px);
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.7);
}

#gallery-lightbox-caption {
  color: #d8d8d8;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  text-align: center;
}

.gallery-lightbox-nav,
.gallery-lightbox-close {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(16, 16, 16, 0.88);
  color: #fff;
  border-radius: 999px;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.gallery-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.gallery-lightbox-prev {
  left: 24px;
}

.gallery-lightbox-next {
  right: 24px;
}

.gallery-lightbox-nav:hover,
.gallery-lightbox-close:hover {
  background: rgba(255, 42, 42, 0.22);
  border-color: rgba(255, 42, 42, 0.9);
}

.gallery-lightbox-nav:hover {
  transform: translateY(-50%) scale(1.05);
}

.gallery-lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 2rem;
  line-height: 1;
}

@media (max-width: 768px) {
  .gallery-lightbox {
    padding: 14px;
    gap: 8px;
  }

  .gallery-lightbox-nav,
  .gallery-lightbox-close {
    width: 42px;
    height: 42px;
  }

  .gallery-lightbox-nav {
    transform: translateY(-50%);
  }

  .gallery-lightbox-nav:hover {
    transform: translateY(-50%) scale(1.02);
  }

  .gallery-lightbox-prev {
    left: 10px;
  }

  .gallery-lightbox-next {
    right: 10px;
  }
}

/* Mobile responsive for events */
@media (max-width: 768px) {
  .featured-event-section,
  .past-events-section {
    padding: 60px 15px;
  }

  .event-image-container {
    height: 400px; /* Larger on mobile than before */
  }

  #currentEventContainer .event-image {
    height: 400px;
  }
  
  .event-meta-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .event-details-modern {
    padding: 30px 20px;
  }
  
  .event-name-modern {
    font-size: 1.8rem;
  }
  
  .events-gallery {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .gallery-event-header {
    padding: 25px 20px 15px;
  }
  
  .gallery-event-title {
    font-size: 1.5rem;
  }
  
  .slider-container img {
    height: 350px; /* Increased for mobile */
  }
  
  .single-event-image img {
    height: 350px; /* Increased for mobile */
  }
  
  .slider-nav {
    font-size: 20px;
    padding: 12px 16px;
  }
  
  .slider-nav-left {
    left: 10px;
  }
  
  .slider-nav-right {
    right: 10px;
  }

  .gallery-page {
    padding: 40px 16px;
  }

  .gallery-event-toggle {
    padding: 18px 20px;
  }

  .gallery-event-toggle-name {
    font-size: 1.1rem;
  }

  .photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
  }

  .photo-grid img {
    height: 150px;
  }
}

/* Hide slider navigation on very small screens */
@media (max-width: 480px) {
  .slider-nav {
    display: none;
  }
}

/* ===== Enhanced Submission Page Styles ===== */

/* Submission Hero Section */
.submission-hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #000000;
  overflow: hidden;
}

.submission-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: none;
  animation: none;
}

.submission-hero-content {
  text-align: center;
  z-index: 2;
  position: relative;
  max-width: 800px;
  padding: 0 20px;
}

.submission-logo {
  margin-bottom: 25px;
  animation: fadeInUp 1s ease-out;
}

.submission-logo-img {
  width: 120px;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(255, 42, 42, 0.3));
  animation: pulse 3s ease-in-out infinite;
}

.submission-title {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 15px;
  color: white;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
  animation: fadeInUp 1s ease-out 0.3s both;
  display: inline;
  font-family: 'Cinzel', serif;
}

.submission-title .text-accent {
  display: inline;
}

.submission-subtitle {
  font-size: 1.3rem;
  color: #cccccc;
  margin-bottom: 12px;
  font-weight: 300;
  letter-spacing: 2px;
  animation: fadeInUp 1s ease-out 0.6s both;
}

.submission-tagline {
  font-size: 1rem;
  color: #888;
  margin-bottom: 30px;
  letter-spacing: 1px;
  animation: fadeInUp 1s ease-out 0.9s both;
}

.submission-divider {
  width: 120px;
  height: 3px;
  background: linear-gradient(90deg, #ff2a2a, #ffffff, #ff2a2a);
  margin: 0 auto 0;
  border-radius: 2px;
  animation: fadeInUp 1s ease-out 1.2s both;
}

/* Enhanced Form Info Grid */
.form-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.info-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,42,42,0.1), transparent);
  transition: left 0.6s ease;
}

.info-card:hover::before {
  left: 100%;
}

.info-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255,42,42,0.3);
  box-shadow: 0 10px 30px rgba(255,42,42,0.15);
}

.info-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
}

.info-icon-img {
  width: 4rem;
  height: 4rem;
  object-fit: contain;
  display: inline-block;
}

.info-card h3 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 8px;
  font-weight: 600;
  letter-spacing: 1px;
}

.info-card p {
  color: #ccc;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Enhanced Form Card */
.enhanced-form {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 0;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.enhanced-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ff2a2a, #ff6b6b, #ff2a2a);
}

.form-card-header {
  background: rgba(255,255,255,0.02);
  padding: 32px 32px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}

.form-card-title {
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 2px;
}

.form-card-subtitle {
  color: #bbb;
  font-size: 1rem;
  margin: 0;
  letter-spacing: 0.5px;
}

.enhanced-form .form-grid {
  padding: 32px;
}

/* Enhanced Form Fields */
.enhanced-form .form-field {
  position: relative;
  margin-bottom: 28px;
}

.enhanced-form .form-field label {
  color: #fff;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 1px;
  font-size: 0.95rem;
}

.enhanced-form .form-field input,
.enhanced-form .form-field select,
.enhanced-form .form-field textarea {
  width: 100%;
  padding: 16px 20px;
  background: #1a1a1a;
  background-color: #1a1a1a;
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
  -webkit-appearance: none;
  appearance: none;
  color-scheme: dark;
}

.enhanced-form .form-field input:focus,
.enhanced-form .form-field select:focus,
.enhanced-form .form-field textarea:focus {
  outline: none;
  border-color: #ff2a2a;
  background: #202020;
  background-color: #202020;
  box-shadow: 0 0 20px rgba(255,42,42,0.15);
}

/* Submission form autofill hardening: keep fields dark instead of browser white/blue paint. */
.enhanced-form .form-field input:-webkit-autofill,
.enhanced-form .form-field input:-webkit-autofill:hover,
.enhanced-form .form-field input:-webkit-autofill:focus,
.enhanced-form .form-field textarea:-webkit-autofill,
.enhanced-form .form-field textarea:-webkit-autofill:hover,
.enhanced-form .form-field textarea:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff !important;
  caret-color: #fff;
  -webkit-box-shadow: 0 0 0 1000px #1a1a1a inset !important;
  box-shadow: 0 0 0 1000px #1a1a1a inset !important;
  background-color: #1a1a1a !important;
  transition: background-color 9999s ease-out 0s;
}

.enhanced-form .form-field input:autofill,
.enhanced-form .form-field textarea:autofill {
  color: #fff;
  box-shadow: 0 0 0 1000px #1a1a1a inset;
}

.enhanced-form .form-field input::placeholder,
.enhanced-form .form-field textarea::placeholder {
  color: #888;
  opacity: 1;
}

.field-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  pointer-events: none;
  opacity: 0.6;
}

.form-field--full .field-icon {
  top: 56px;
  transform: translateY(-50%);
}

/* Enhanced Submit Button */
.btn-submit {
  background: linear-gradient(135deg, #ff2a2a, #ff4444);
  border: none;
  border-radius: 50px;
  padding: 18px 40px;
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  box-shadow: 0 8px 25px rgba(255,42,42,0.3);
}

.btn-submit::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.6s ease;
}

.btn-submit:hover::before {
  left: 100%;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(255,42,42,0.4);
}

.btn-submit:active {
  transform: translateY(0);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-icon {
  font-size: 1.2rem;
}

/* Enhanced Status Messages */
.form-status-wrapper {
  padding: 0 32px 32px;
}

.form-status {
  padding: 16px 20px;
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.5px;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.form-status[data-state="success"] {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
  opacity: 1;
  transform: translateY(0);
}

.form-status[data-state="error"] {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  opacity: 1;
  transform: translateY(0);
}

/* Enhanced help text */
.enhanced-form .help-text {
  color: #999;
  font-size: 0.85rem;
  margin-top: 6px;
  letter-spacing: 0.5px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .submission-hero {
    min-height: 70vh;
  }
  
  .submission-title {
    font-size: 2.5rem;
    letter-spacing: 2px;
  }
  
  .submission-subtitle {
    font-size: 1.1rem;
  }
  
  .form-info-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 32px;
  }
  
  .info-card {
    padding: 20px;
  }
  
  .form-card-header {
    padding: 24px 20px 20px;
  }
  
  .form-card-title {
    font-size: 1.6rem;
  }
  
  .enhanced-form .form-grid {
    padding: 24px 20px;
  }
  
  .form-status-wrapper {
    padding: 0 20px 24px;
  }
  
  .btn-submit {
    padding: 16px 32px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .submission-title {
    font-size: 2rem;
  }
  
  .submission-logo-img {
    width: 90px;
  }
  
  .enhanced-form .form-field input,
  .enhanced-form .form-field select,
  .enhanced-form .form-field textarea {
    padding: 14px 16px;
  }
}

/* ===== Enhanced Rules Page Styles ===== */

/* Rules Hero Section */
.rules-hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #000000;
  overflow: hidden;
}

.rules-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: none;
  animation: none;
}

.rules-hero-content {
  text-align: center;
  z-index: 2;
  position: relative;
  max-width: 800px;
  padding: 0 20px;
}

.rules-logo {
  margin-bottom: 25px;
  animation: fadeInUp 1s ease-out;
}

.rules-logo-img {
  width: 80px;
  height: auto;
  filter: drop-shadow(0 8px 16px rgba(255, 42, 42, 0.3));
  animation: pulse 4s ease-in-out infinite;
}

.rules-hero .rules-title {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 15px;
  color: white;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
  animation: fadeInUp 1s ease-out 0.3s both;
  display: inline;
  font-family: 'Cinzel', serif;
}

.rules-hero .rules-title .text-accent {
  display: inline;
}

.rules-subtitle {
  font-size: 1.3rem;
  color: #cccccc;
  margin-bottom: 12px;
  font-weight: 300;
  letter-spacing: 2px;
  animation: fadeInUp 1s ease-out 0.6s both;
}

.rules-tagline {
  font-size: 1rem;
  color: #888;
  margin-bottom: 30px;
  letter-spacing: 1px;
  animation: fadeInUp 1s ease-out 0.9s both;
}

.rules-divider {
  width: 120px;
  height: 3px;
  background: linear-gradient(90deg, #ff2a2a, #ffffff, #ff2a2a);
  margin: 0 auto 0;
  border-radius: 2px;
  animation: fadeInUp 1s ease-out 1.2s both;
}

/* Enhanced Rules Container */
.rules-container {
  max-width: 1000px;
  margin: 48px auto;
  padding: 0 20px;
}

/* Enhanced Rule Items */
.enhanced-rule {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 0;
  margin-bottom: 16px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.enhanced-rule::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,42,42,0.1), transparent);
  transition: left 0.6s ease;
}

.enhanced-rule:hover::before {
  left: 100%;
}

.enhanced-rule:hover {
  transform: translateY(-3px);
  border-color: rgba(255,42,42,0.3);
  box-shadow: 0 8px 25px rgba(255,42,42,0.15);
}

.enhanced-rule.open {
  border-color: rgba(255,42,42,0.5);
  background: rgba(255,42,42,0.08);
  box-shadow: 0 10px 30px rgba(255,42,42,0.2);
}

.enhanced-rule .rule-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 28px;
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1.5px;
  cursor: pointer;
  user-select: none;
  text-transform: uppercase;
}

.enhanced-rule.open .rule-header {
  color: #ff2a2a;
}

.rule-icon {
  font-size: 1.8rem;
  transition: all 0.3s ease;
  min-width: 40px;
  text-align: center;
}

.enhanced-rule.open .rule-icon {
  transform: scale(1.2) rotate(360deg);
}

.enhanced-rule .rule-description {
  padding: 0 28px 24px;
  color: #ccc;
  font-size: 1.05rem;
  line-height: 1.6;
  letter-spacing: 0.5px;
}

.enhanced-rule .rule-description p {
  margin: 0;
  font-weight: 400;
}

/* Add subtle number indicators */
.enhanced-rule:nth-child(1)::after { content: "01"; }
.enhanced-rule:nth-child(2)::after { content: "02"; }
.enhanced-rule:nth-child(3)::after { content: "03"; }
.enhanced-rule:nth-child(4)::after { content: "04"; }
.enhanced-rule:nth-child(5)::after { content: "05"; }
.enhanced-rule:nth-child(6)::after { content: "06"; }
.enhanced-rule:nth-child(7)::after { content: "07"; }
.enhanced-rule:nth-child(8)::after { content: "08"; }
.enhanced-rule:nth-child(9)::after { content: "09"; }
.enhanced-rule:nth-child(10)::after { content: "10"; }

.enhanced-rule::after {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,42,42,0.4);
  letter-spacing: 1px;
}

/* Mobile Responsiveness for Rules */
@media (max-width: 768px) {
  .rules-hero {
    min-height: 70vh;
  }
  
  .rules-hero .rules-title {
    font-size: 2.5rem;
    letter-spacing: 2px;
  }
  
  .rules-subtitle {
    font-size: 1.1rem;
  }
  
  .rules-container {
    margin: 32px auto;
    padding: 0 16px;
  }
  
  .enhanced-rule .rule-header {
    padding: 20px 20px;
    font-size: 1.1rem;
    gap: 12px;
  }
  
  .enhanced-rule .rule-description {
    padding: 0 20px 20px;
    font-size: 1rem;
  }
  
  .rule-icon {
    font-size: 1.5rem;
    min-width: 32px;
  }
  
  .enhanced-rule::after {
    top: 16px;
    right: 16px;
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .rules-hero .rules-title {
    font-size: 2rem;
  }
  
  .rules-logo-img {
    width: 60px;
  }
  
  .enhanced-rule .rule-header {
    padding: 18px 16px;
    font-size: 1rem;
  }
  
  .enhanced-rule .rule-description {
    padding: 0 16px 18px;
    font-size: 0.95rem;
  }
}

/* ===== Enhanced FAQ Page Styles ===== */

/* FAQ Hero Section */
.faq-hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #000000;
  overflow: hidden;
}

.faq-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: none;
  animation: none;
}

.faq-hero-content {
  text-align: center;
  z-index: 2;
  position: relative;
  max-width: 800px;
  padding: 0 20px;
}

.faq-logo {
  margin-bottom: 25px;
  animation: fadeInUp 1s ease-out;
}

.faq-logo-img {
  width: 120px;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(255, 42, 42, 0.3));
  animation: pulse 3s ease-in-out infinite;
}

.faq-hero .faq-title {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 15px;
  color: white;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
  animation: fadeInUp 1s ease-out 0.3s both;
  display: inline;
  font-family: 'Cinzel', serif;
}

.faq-hero .faq-title .text-accent {
  display: inline;
}

.faq-subtitle {
  font-size: 1.3rem;
  color: #cccccc;
  margin-bottom: 12px;
  font-weight: 300;
  letter-spacing: 2px;
  animation: fadeInUp 1s ease-out 0.6s both;
}

.faq-tagline {
  font-size: 1rem;
  color: #888;
  margin-bottom: 30px;
  letter-spacing: 1px;
  animation: fadeInUp 1s ease-out 0.9s both;
}

.faq-divider {
  width: 120px;
  height: 3px;
  background: linear-gradient(90deg, #ff2a2a, #ffffff, #ff2a2a);
  margin: 0 auto 0;
  border-radius: 2px;
  animation: fadeInUp 1s ease-out 1.2s both;
}

/* Enhanced FAQ Container */
.faq-container {
  max-width: 1000px;
  margin: 48px auto;
  padding: 0 20px;
}

.faq-list {
  display: grid;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

/* Enhanced FAQ Items */
.enhanced-faq {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 0;
  margin-bottom: 16px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.enhanced-faq::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,42,42,0.1), transparent);
  transition: left 0.6s ease;
}

.enhanced-faq:hover::before {
  left: 100%;
}

.enhanced-faq:hover {
  transform: translateY(-3px);
  border-color: rgba(255,42,42,0.3);
  box-shadow: 0 8px 25px rgba(255,42,42,0.15);
}

.enhanced-faq.open {
  border-color: rgba(255,42,42,0.5);
  background: rgba(255,42,42,0.08);
  box-shadow: 0 10px 30px rgba(255,42,42,0.2);
}

.enhanced-faq .faq-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 28px;
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 1px;
  cursor: pointer;
  user-select: none;
}

.enhanced-faq.open .faq-header {
  color: #ff2a2a;
}

.faq-icon {
  font-size: 1.6rem;
  transition: all 0.3s ease;
  min-width: 36px;
  text-align: center;
}

.enhanced-faq.open .faq-icon {
  transform: scale(1.2) rotate(360deg);
}

.enhanced-faq .faq-description {
  padding: 0 28px 24px;
  color: #ccc;
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: 0.5px;
}

.enhanced-faq .faq-description p {
  margin: 0;
  font-weight: 400;
}

.enhanced-faq .faq-description a {
  color: #ff2a2a;
  text-decoration: none;
  transition: color 0.3s ease;
}

.enhanced-faq .faq-description a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Add subtle number indicators for FAQ */
.enhanced-faq:nth-child(1)::after { content: "01"; }
.enhanced-faq:nth-child(2)::after { content: "02"; }
.enhanced-faq:nth-child(3)::after { content: "03"; }
.enhanced-faq:nth-child(4)::after { content: "04"; }
.enhanced-faq:nth-child(5)::after { content: "05"; }
.enhanced-faq:nth-child(6)::after { content: "06"; }
.enhanced-faq:nth-child(7)::after { content: "07"; }
.enhanced-faq:nth-child(8)::after { content: "08"; }
.enhanced-faq:nth-child(9)::after { content: "09"; }
.enhanced-faq:nth-child(10)::after { content: "10"; }
.enhanced-faq:nth-child(11)::after { content: "11"; }
.enhanced-faq:nth-child(12)::after { content: "12"; }
.enhanced-faq:nth-child(13)::after { content: "13"; }
.enhanced-faq:nth-child(14)::after { content: "14"; }
.enhanced-faq:nth-child(15)::after { content: "15"; }

.enhanced-faq::after {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,42,42,0.4);
  letter-spacing: 1px;
}

/* Mobile Responsiveness for FAQ */
@media (max-width: 768px) {
  .faq-hero {
    min-height: 70vh;
  }
  
  .faq-hero .faq-title {
    font-size: 2.5rem;
    letter-spacing: 2px;
  }
  
  .faq-subtitle {
    font-size: 1.1rem;
  }
  
  .faq-container {
    margin: 32px auto;
    padding: 0 16px;
  }
  
  .enhanced-faq .faq-header {
    padding: 20px 20px;
    font-size: 1.1rem;
    gap: 12px;
  }
  
  .enhanced-faq .faq-description {
    padding: 0 20px 20px;
    font-size: 0.95rem;
  }
  
  .faq-icon {
    font-size: 1.4rem;
    min-width: 30px;
  }
  
  .enhanced-faq::after {
    top: 16px;
    right: 16px;
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .faq-hero .faq-title {
    font-size: 2rem;
  }
  
  .faq-logo-img {
    width: 90px;
  }
  
  .enhanced-faq .faq-header {
    padding: 18px 16px;
    font-size: 1rem;
  }
  
  .enhanced-faq .faq-description {
    padding: 0 16px 18px;
    font-size: 0.9rem;
  }
}

.enhanced-form .form-field select option {
  background-color: #1a1a1a;
  color: #fff;
  padding: 12px 16px;
  border: none;
  font-size: 1rem;
}
/* Mobile Responsiveness for About Page */
@media (max-width: 768px) {
  .about-hero {
    min-height: 70vh;
  }
  
  .about-hero .about-title {
    font-size: 2.5rem;
    letter-spacing: 2px;
  }
  
  .about-subtitle {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .about-hero .about-title {
    font-size: 2rem;
  }
  
  .about-logo-img {
    width: 90px;
  }
}

    .hero-snake-top-left {
      position: absolute;
      left: -55px;
      top: -45px;
      width: 450px;
      height: auto;
      opacity: 0.9;
      pointer-events: none;
      z-index: 10;
    }

    @media (max-width: 768px) {
      .hero-snake-top-left {
        width: 180px;
        left: -25px;
        top: -5px;
      }
    }

    .hero-snake-top-right {
      position: absolute;
      right: -35px;
      top: -45px;
      width: 450px;
      height: auto;
      opacity: 0.9;
      pointer-events: none;
      z-index: 10;
    }

    @media (max-width: 768px) {
      .hero-snake-top-right {
        width: 180px;
        right: -15px;
        top: -15px;
      }
    }

    .hero-snake-bottom-right {
      position: absolute;
      right: -50px;
      bottom: -100px;
      width: 450px;
      height: auto;
      opacity: 0.9;
      pointer-events: none;
      z-index: 10;
    }

    @media (max-width: 768px) {
      .hero-snake-bottom-right {
        width: 180px;
        right: -20px;
        bottom: -40px;
      }

      .hero-video {
        object-fit: cover;
        width: 100%;
        height: 100%;
      }
    }

/* ===== Final Mobile Nav Override ===== */
@media (max-width: 1024px), (max-height: 500px) and (max-width: 1200px) {
  .socials {
    right: 72px;
    gap: 8px;
    max-width: calc(100vw - 136px);
  }

  .menu-toggle {
    right: 12px;
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    font-size: 0;
    color: transparent;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 12px;
    transition: border-color 220ms ease, background-color 220ms ease;
    transform: translateY(-50%) translateZ(0);
    backface-visibility: hidden;
  }

  .menu-toggle-line {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #fff;
    transition: transform 260ms ease, opacity 220ms ease;
    transform-origin: center;
  }

  .menu-toggle.is-open .menu-toggle-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-toggle.is-open .menu-toggle-line:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.is-open .menu-toggle-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* Keep overlay and drawer below the fixed 56px navbar */
  .overlay {
    top: calc(var(--nav-offset) - 1px);
    background: rgba(0, 0, 0, 0.65);
    opacity: 0;
    pointer-events: none;
    transition: opacity 240ms ease;
    z-index: 998;
  }

  .overlay.active {
    opacity: 1;
    pointer-events: auto;
  }

  .menu {
    position: fixed;
    top: calc(var(--nav-offset) - 1px);
    right: 0;
    left: auto;
    height: calc(100vh - var(--nav-offset) + 1px);
    height: calc(100svh - var(--nav-offset) + 1px);
    height: calc(100dvh - var(--nav-offset) + 1px);
    width: 70vw;
    max-width: 70vw;
    padding: 12px 12px calc(20px + env(safe-area-inset-bottom, 0px));
    gap: 6px;
    flex-direction: column;
    background:
      radial-gradient(120% 90% at 85% 0%, rgba(255, 0, 0, 0.16), rgba(255, 0, 0, 0) 50%),
      linear-gradient(170deg, rgba(0, 0, 0, 0.98), rgba(8, 8, 8, 0.98));
    border-left: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: -16px 0 36px rgba(0, 0, 0, 0.62);
    transform: translateX(105%);
    opacity: 0;
    transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1), opacity 220ms ease;
    z-index: 999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .menu::before {
    content: 'NAVIGATION';
    display: block;
    margin: 2px 4px 10px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 0, 0, 0.28);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.16), rgba(255, 0, 0, 0.04));
    color: rgba(255, 255, 255, 0.95);
    font-size: 11px;
    letter-spacing: 2.2px;
    font-weight: 700;
    text-align: center;
  }

  .menu::after {
    content: 'ANUBIS UNDERGROUND';
    display: block;
    margin: 14px 4px 2px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.52);
    font-size: 10px;
    letter-spacing: 1.8px;
    text-align: center;
  }

  .menu > *:first-child {
    margin-top: 0;
  }

  .menu.active {
    transform: translateX(0);
    opacity: 1;
  }

  .menu a,
  .menu .dropbtn {
    text-align: left;
    padding: 13px 14px;
    display: block;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    letter-spacing: 0.5px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
  }

  .menu a:visited,
  .menu .dropdown-content a:visited {
    color: #fff;
  }

  .menu a:hover,
  .menu .dropbtn:hover,
  .dropdown:hover .dropbtn,
  .menu a:active,
  .menu .dropbtn:active,
  .menu a:focus,
  .menu .dropbtn:focus {
    border-color: rgba(255, 255, 255, 0.14);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
    transform: none;
    outline: none;
  }

  @media (hover: hover) and (pointer: fine) {
    .menu a:hover,
    .menu .dropbtn:hover,
    .dropdown:hover .dropbtn {
      border-color: rgba(255, 0, 0, 0.4);
      background: linear-gradient(135deg, rgba(255, 0, 0, 0.24), rgba(255, 0, 0, 0.08));
      transform: translateX(-2px);
    }
  }

  .menu .dropdown-content {
    padding: 4px 0 0 10px;
    margin: 2px 0 8px;
  }

  .menu .dropdown-content a {
    margin: 6px 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .menu > a,
  .menu > .dropdown {
    opacity: 0;
    transform: translateX(14px);
    transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1), opacity 220ms ease;
  }

  .menu.active > a,
  .menu.active > .dropdown {
    opacity: 1;
    transform: translateX(0);
  }

  .menu.active > *:nth-child(1) { transition-delay: 35ms; }
  .menu.active > *:nth-child(2) { transition-delay: 60ms; }
  .menu.active > *:nth-child(3) { transition-delay: 85ms; }
  .menu.active > *:nth-child(4) { transition-delay: 110ms; }
  .menu.active > *:nth-child(5) { transition-delay: 135ms; }
  .menu.active > *:nth-child(6) { transition-delay: 160ms; }
  .menu.active > *:nth-child(7) { transition-delay: 185ms; }

  html.mobile-menu-open,
  body.mobile-menu-open {
    overflow: hidden;
    overscroll-behavior: none;
  }

  body.mobile-menu-open {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    touch-action: none;
  }
}

/* Privacy page */
.privacy-shell {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem 3.5rem;
}

.privacy-card {
  background: rgba(12, 12, 12, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
}

.privacy-title {
  margin: 0 0 0.4rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.privacy-updated {
  display: inline-block;
  margin: 0 0 1.2rem;
  font-size: 0.92rem;
  color: #c2c2c2;
}

.privacy-lead {
  color: #e6e6e6;
  line-height: 1.72;
  margin-bottom: 1.1rem;
}

.privacy-card h2 {
  margin: 1.6rem 0 0.6rem;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
}

.privacy-card p,
.privacy-card li {
  color: #d8d8d8;
  line-height: 1.72;
}

.privacy-card ul {
  list-style: none;
  margin: 0.4rem 0 0.8rem;
  padding: 0;
}

.privacy-card li {
  margin: 0.2rem 0;
}

.privacy-card a {
  color: #ff4f4f;
  text-underline-offset: 3px;
}

@media (max-width: 768px) {
  .privacy-card {
    padding: 1.1rem;
  }

  .privacy-card h2 {
    font-size: 1.05rem;
  }
}


