/* ================= Optimized style.css ================= */
/* Source: uploaded file /mnt/data/style.css */
/* Deduplication: kept first occurrence of duplicate blocks. */

/* Load web-friendly display font for hero headings on all devices */
@import url('https://fonts.googleapis.com/css2?family=Anton&display=swap');

/* ----------------- Variables (:root) ----------------- */
:root {
  --bg-gradient: radial-gradient(circle at top, #16012b 0%, #05030b 50%, #000000 100%);
  --accent-cyan: #8400ff;
  --accent-green: #483bff;
  --accent-magenta: #ff2f92;
  --text-primary: #ffffff;
  --text-muted: #c3c6ff;
  --card-bg: rgba(0, 0, 0, 0.952);
  --glass-bg: rgba(5, 8, 30, 0.7);
  --shadow-soft: 0 0 35px rgba(0, 0, 0, 0.85);
  --transition-fast: 0.25s ease-out;
  --transition-med: 0.4s ease-out;
}

/* ---- * ---- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ---- html ---- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px; /* Account for taller header with scrolling text */
  background: #000000;
}

/* ---- body ---- */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-primary);
  background: var(--bg-gradient);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---- a ---- */
a {
  color: inherit;
  text-decoration: none;
}

/* ---- img ---- */
img {
  max-width: 100%;
  display: block;
}

/* ---- section ---- */
section {
  padding: 80px 8vw;
  position: relative;
}

/* ---- @media (max-width: 768px) ---- */
@media (max-width: 768px) {
  section {
    padding: 60px 6vw;
  }
}

/* ---- Background FX ---- */
.bg-orbit {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 90% 30%, rgba(255, 47, 146, 0.12), transparent 55%),
    radial-gradient(circle at 50% 90%, rgba(59, 255, 107, 0.15), transparent 60%);
  mix-blend-mode: screen;
  opacity: 0.9;
}

/* ---- Header / Nav ---- */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 96px; /* Increased to accommodate scrolling text */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6vw;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(4, 6, 24, 0.9),
    rgba(4, 6, 24, 0.65),
    transparent
  );
  border-bottom: 1px solid rgba(162, 0, 255, 0.25);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.65);
  z-index: 40;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform var(--transition-med), opacity var(--transition-med);
  /* Enable hardware acceleration */
  will-change: transform, opacity;
  backface-visibility: hidden;
}

/* ---- No Registration Fee Scrolling Text ---- */
.no-fee-announcement {
  position: fixed;
  left: 0;
  right: 0;
  top: 96px; /* Position below navbar to prevent overlap */
  height: 25px;
  overflow: hidden;
  background: linear-gradient(90deg, #756fa7, #2b2941, #6f7ea7);
  z-index: 35; /* Lower than navbar z-index to appear below */
  animation: pulse 3s ease-in-out infinite;
}



/* container that moves */
.no-fee-track {
  display: inline-flex;
  white-space: nowrap;
  /* move one full width to the left, then repeat */
  animation: scrollTrack 18s linear infinite;
  /* Optimize animation performance */
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* each copy of the text */
.no-fee-text {
  font-size: 1.0rem;
  font-weight: bold;
  color: white;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 2rem; /* horizontal gap between repeats */
}


/* continuous marquee-style scroll */
@keyframes scrollTrack {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Add specific styles for small screens to prevent overlap */
@media (max-width: 360px) {
  .hero-title {
    font-size: clamp(1.3rem, 14vw, 9.8rem); /* Even smaller minimum size for tiny screens */
    padding: 0 0.8rem; /* Consistent padding on tiny screens */
  }
  
  .hero-center-block {
    padding: 14vh 0 40px 0; /* Reduced padding for tiny screens */
    transform: translateY(4vh); /* Reduced downward shift for tiny screens */
  }
  
  .scroll-indicator-container {
    margin-top: 5px; /* Reduced top margin for tiny screens */
    transform: translateY(2vh); /* Reduced vertical shift for tiny screens to bring scroll indicator up */
  }
  
  header {
    height: 65px; /* Smaller height for tiny screens */
  }
  
  .no-fee-announcement {
    top: 65px; /* Match reduced navbar height */
    height: 18px; /* Reduced height for tiny screens */
  }
  
  .no-fee-text {
    font-size: 0.7rem; /* Smaller font for tiny screens */
    padding: 1px 0.8rem; /* Reduced padding for tiny screens */
  }
}



/* ---- Header / Nav ---- */
header.visible {
  transform: translateY(0);
  opacity: 1;
}

/* ---- Header / Nav ---- */
.event-track-header {
  margin-bottom: 16px;
}

/* ---- Header / Nav ---- */
.subevent-modal-header {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(162, 0, 255, 0.25);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

/* ---- Header / Nav ---- */
.logo-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.college-logo {
  height: 70px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* If you want the hero/header to show only the image (hide the text part)
   and make the image fit responsively, apply these rules. */
.logo-lockup.only-image .logo-text {
  display: none !important;
}
.logo-lockup.only-image .college-logo,
.hero-logo {
  display: block;
  height: auto;
  max-height: 110px; /* adjust as needed */
  max-width: 100%;
  width: auto;
}

/* Make the logo smaller on very small screens */
@media (max-width: 480px) {
  .logo-lockup.only-image .college-logo,
  .hero-logo {
    max-height: 72px;
  }
}

/* Also automatically show only the image inside header (hero) by default */
header .logo-lockup .logo-text {
 display: flex !important; 
    
}
header .logo-lockup .college-logo {
  max-height: 110px;
  height: auto;
  width: auto;
}

/* Force the hero / event banner or logo image to display at 1200x800,
   but remain responsive on smaller screens. Use `max-width:100%` so
   the image scales down on mobile. */
.hero-banner,
.hero-logo,
.logo-lockup.only-image .college-logo {
  display: block;
  width: 1200px;       /* preferred layout size */
  height: 800px;       /* preferred layout size */
  max-width: 100%;     /* scale down on narrow viewports */
  max-height: 100%;
  object-fit: cover;    /* crop if source aspect differs */
  aspect-ratio: 3 / 2;  /* keeps 1200x800 ratio */
  margin-left: auto;
  margin-right: auto;
}

/* On very small screens keep the image readable but constrained */
@media (max-width: 480px) {
  .hero-banner,
  .hero-logo,
  .logo-lockup.only-image .college-logo {
    width: 100%;
    height: auto;
    max-height: 72vh;
  }
}

/* ---- Header / Nav ---- */
nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 0.9rem;
}

/* ---- Header / Nav ---- */
nav a {
  position: relative;
  padding: 6px 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: var(--text-muted);
  transition: color var(--transition-fast), text-shadow var(--transition-fast), transform var(--transition-fast);
}

/* ---- Header / Nav ---- */
nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-magenta), var(--accent-magenta));
  box-shadow: 0 0 8px rgba(43, 0, 255, 0.9);
  transition: width var(--transition-fast);
}

/* ---- Header / Nav ---- */
nav a:focus-visible {
  color: var(--accent-cyan);
  text-shadow: 0 0 10px rgba(153, 0, 255, 0.9);
  transform: translateY(-1px);
}

/* ---- Header / Nav ---- */
nav a:focus-visible::after {
  width: 100%;
}

/* ---- Header / Nav ---- */
.nav-toggle {
  display: none;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(17, 0, 255, 0.6);
  background: rgba(5, 10, 30, 0.9);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ---- Header / Nav ---- */
.nav-toggle span::after {
  content: "";
  display: block;
  height: 2px;
  width: 16px;
  background: var(--accent-cyan);
  border-radius: 999px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---- Header / Nav ---- */
.nav-toggle span::before {
  transform: translateY(-5px);
}

/* ---- Header / Nav ---- */
.nav-toggle span::after {
  transform: translateY(5px);
}

/* ---- Header / Nav ---- */
.nav-toggle.open span {
  transform: rotate(45deg);
}

/* ---- Header / Nav ---- */
.nav-toggle.open span::before {
  transform: rotate(-90deg);
}

/* ---- Header / Nav ---- */
.nav-toggle.open span::after {
  opacity: 0;
}

/* ---- Header / Nav ---- */
@media (max-width: 800px) {
  nav {
    position: absolute;
    top: 80px; /* Adjusted for reduced header height */
    right: 6vw;
    flex-direction: column;
    align-items: flex-end;
    padding: 18px 20px;
    border-radius: 14px;
    background: var(--glass-bg);
    border: 1px solid rgba(162, 0, 255, 0.25);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.9);
    transform-origin: top right;
    transform: scale(0.8) translateY(-8px);
    opacity: 0;
    pointer-events: none;
  }

  nav.open {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-toggle {
    display: inline-flex;
  }
  
  /* Adjust header height for mobile */
  header {
    height: 80px;
  }
  
  /* Adjust scrolling banner position */
  .no-fee-announcement {
    top: 80px;
  }
}

/* ---- Header / Nav ---- */
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8rem;
}

/* ---- Header / Nav ---- */
.footer-nav a {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(165, 169, 220, 0.85);
  transition: color var(--transition-fast), text-shadow var(--transition-fast);
}

/* ---- Header / Nav ---- */
.footer-nav a:hover {
  color: var(--accent-cyan);
  text-shadow: 0 0 10px rgba(0, 21, 255, 0.9);
}

/* ---- Buttons ---- */
.btn-neon {
  position: relative;
  padding: 12px 32px;
  border-radius: 999px;
  border: 1px solid rgba(162, 0, 255, 0.8);
  color: var(--text-primary);
  background: radial-gradient(circle at top left, rgba(255, 47, 146, 0.1), rgba(255, 47, 146, 0.1));
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.8rem;
  cursor: pointer;
  overflow: hidden;
  box-shadow:
    0 0 35px rgba(255, 47, 146, 0.5);
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, background 0.18s ease-out;
}

/* ---- Buttons ---- */
.btn-neon::before {
  content: "";
  position: absolute;
  inset: -80%;
  background: conic-gradient(
    from 0deg,
    transparent,
    rgba(255, 47, 146, 0.9),
    transparent
  );
  opacity: 0;
  transition: opacity 0.25s ease-out;
  mix-blend-mode: screen;
}

/* ---- Buttons ---- */
.btn-neon span {
  position: relative;
  z-index: 1;
}

/* ---- Buttons ---- */
.btn-neon:focus-visible {
  transform: translateY(-1px) scale(1.03);
  background: radial-gradient(circle at top left, rgba(255, 47, 146, 0.28), rgba(255, 47, 146, 0.28));
  box-shadow:
    0 0 55px rgba(255, 47, 146, 0.7);
}

/* ---- Buttons ---- */
.btn-neon:focus-visible::before {
  opacity: 1;
}

/* ---- Buttons ---- */
.btn-ghost {
  padding: 11px 26px;
  border-radius: 999px;
  border: 1px dashed rgba(162, 0, 255, 0.6);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(5, 8, 35, 0.7);
  cursor: pointer;
  transition: var(--transition-fast);
}

/* ---- Buttons ---- */
.btn-ghost:focus-visible {
  color: var(--accent-cyan);
  border-style: solid;
  border-color: rgba(162, 0, 255, 0.95);
  background: rgba(5, 8, 35, 0.9);
}

/* ---- Hero ---- */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 0;
  position: relative;
  overflow: hidden;
  /* Enable hardware acceleration for smoother scrolling */
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* ---- Hero ---- */
.hero-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- Hero ---- */
.hero-center-block {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
  text-align: center;
  pointer-events: none;
  z-index: 3; /* Raised above the fade effect */
  padding: 30vh 1rem; /* Increased top padding to move content down to red line position */
  transform: translateY(20vh); /* Increased downward shift to position content at red line */
}

.hero-event-name,
.hero-dates,
.hero-subline {
  text-align: center;
  width: 100%;
}

.hero-event-name {
  word-spacing: 0.3em;
}

/* ---- Hero ---- */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;

  /* Set your uploaded image as background */
  background-image: url("https://rvrjcce.ac.in/ximages1/RVR.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* Optimize background image rendering */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* ---- Hero ---- */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(42, 70, 71, 0.336); 
  /* 0.45 = visible image + dark theme */
  z-index: 1;
}

/* Bottom fade-out gradient effect */
.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 150%;
  background: linear-gradient(to top, #020617 0%, rgba(2, 6, 23, 0.95) 15%, rgba(2, 6, 23, 0.7) 35%, rgba(2, 6, 23, 0.3) 60%, transparent 80%);
  /* Enhanced cinematic fade from 80% down to bottom */
  /* Using your site's dark background color #020617 for seamless blend */
  pointer-events: none;
  z-index: 2;
}

/* ---- Hero ---- */
.hero-title {
  font-size: clamp(2rem, 8vw, 9.8rem); /* Responsive font size for all devices */
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  width: 100%;
  overflow: visible;

  /* gradient text */
  background: linear-gradient(120deg, #ffffff, #c3f8ff, #ffe0ff);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;

  margin-bottom: 10px;
  padding: 0.5rem; /* Safe padding on sides to prevent cutting */
}

/* ---- Hero ---- */
/* ---- Hero ---- */
.hero-event-name {
  font-family: 'Impact', 'Anton', sans-serif;
  font-size: 150px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 4px;
  transform: rotate(-3deg) skewX(-8deg);

  /* Animated Multi-Color Gradient */
  background: linear-gradient(90deg,
      #ff00ff,
      #ff6b00,
      #07a9e9,
      #b44bff,
      #4b00ff,
      #ffffff
  );
  background-size: 400% 400%;
  animation: colorCycle 4s infinite ease-in-out; /* synced with shine */

  -webkit-background-clip: text;
  color: transparent;

  /* Funky COMIC OUTLINE */
  -webkit-text-stroke: 5px #000000;

  /* Multi-color Glow */
 
  position: relative;
  margin-bottom: 0px;
}


/* FUNKY SHINE SWEEP */
/* FUNKY SHINE SWEEP */
.hero-event-name::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg,
      transparent 0%,
      #ff00ff,
      #ff6b00,
      #07a9e9,
      #b44bff,
      #4b00ff,
      #ffffff,
      transparent 60%
  );
  mix-blend-mode: overlay;
  animation: funkyShine 2s infinite ease-in-out;
  pointer-events: none;
  transform: skewX(10deg);
}

/* Faster, funky shine motion */
@keyframes funkyShine {
  0% { transform: translateX(-130%) skewX(10deg); }
  100% { transform: translateX(130%) skewX(10deg); }
}
@keyframes colorCycle {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
 
}


.subyear-text {
  font-family: 'Impact', 'Anton', sans-serif;
  font-size: 100px;
  font-weight: 400;
  margin-top: -35px;
  transform: rotate(-3deg) skewX(-8deg);

  /* Animated Multi-Color Gradient */
  background: linear-gradient(90deg,
      #ff00ff,
      #ff6b00,
      #07a9e9,
      #b44bff,
      #4b00ff,
      #ffffff
  );
  background-size: 400% 400%;
  animation: colorCycle 4s infinite ease-in-out; /* synced with shine */

  -webkit-background-clip: text;
  color: transparent;

  /* Funky COMIC OUTLINE */
  -webkit-text-stroke: 5px #000000;
}




.hero-dates {
  font-size: 1.05rem;                       /* slightly larger */
  letter-spacing: 0.22em;
  font-family: "Marcellus`  , serif";
  text-transform: uppercase;
  color: #ffffff;
  text-shadow:
    0 0 6px rgba(0, 0, 0, 0.95),
    0 0 14px rgba(0, 0, 0, 0.8);
  margin-bottom: 10px;
}

.hero-subline {
  font-size: 1rem;                          /* slightly larger */
  letter-spacing: 0.18em;
  font-family: "Marcellus`  , serif";
  text-transform: uppercase;
  color: #e5e7eb;
  text-shadow:
    0 0 6px rgba(0, 0, 0, 0.95),
    0 0 18px rgba(0, 0, 0, 0.8);
  margin-bottom: 20px;
}


/* ---- Hero ---- */
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  opacity: 0;
  transform: translateY(16px);
  animation: heroFadeUp 0.9s ease-out 1.1s forwards;
  pointer-events: auto;
}


/* Scroll Indicator */
.scroll-indicator-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 15px; /* Reduced top margin */
  z-index: 5;
  transform: translateY(4vh); /* Reduced vertical shift to bring scroll indicator up */
}

.scroll-mouse {
  position: relative;
  width: 30px;
  height: 50px;
  border: 2px solid #9000ff;
  border-radius: 15px;
}

.scroll-wheel {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background-color: #8800ff;
  border-radius: 50%;
  animation: scrollWheel 2s infinite;
}

.scroll-text {
  color: #e0fdff;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: pulseText 2s infinite;
  margin-top: 10px;
}

/* Responsive design for scroll indicator */
@media (max-width: 768px) {
  .scroll-mouse {
    width: 25px;
    height: 40px;
    border-width: 1.5px;
  }
  
  .scroll-wheel {
    width: 5px;
    height: 5px;
  }
  
  .scroll-text {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
  }
  
  .hero-center-block {
    padding: 18vh 0 50px 0; /* Slightly reduced padding for tablets */
    transform: translateY(10vh); /* Slightly reduced downward shift for tablets */
  }
  
  .hero-title {
    font-size: clamp(1.8rem, 10vw, 9.8rem); /* Smaller font for tablets */
    padding: 0 1.5rem; /* Adjusted padding for tablets */
  }
  
  .scroll-indicator-container {
    margin-top: 12px; /* Reduced top margin for tablets */
    transform: translateY(5vh); /* Reduced vertical shift for tablets */
  }
  
  /* Adjust navbar height and spacing for mobile */
  header {
    height: 80px; /* Reduced height for mobile */
  }
  
  /* Adjust scrolling banner position for mobile */
  .no-fee-announcement {
    top: 80px; /* Match reduced navbar height */
    height: 22px; /* Slightly reduced height for mobile */
  }
  
  .no-fee-text {
    font-size: 0.85rem; /* Smaller font for mobile */
    padding: 3px 1.5rem; /* Adjusted padding for mobile */
  }
}

@media (max-width: 480px) {
  .scroll-mouse {
    width: 20px;
    height: 35px;
  }
  
  .scroll-text {
    font-size: 0.6rem;
  }
  
  .hero-center-block {
    padding: 16vh 0 40px 0; /* Reduced padding for mobile */
    transform: translateY(8vh); /* Reduced downward shift for mobile */
  }
  
  .hero-title {
    font-size: clamp(1.5rem, 12vw, 9.8rem); /* Even smaller minimum size for small screens */
    padding: 0 1rem; /* Consistent padding on small screens */
  }
  
  .scroll-indicator-container {
    margin-top: 10px; /* Reduced top margin for mobile */
    transform: translateY(6vh); /* Reduced vertical shift for mobile to bring scroll indicator up */
  }
  
  /* Further adjustments for small screens */
  header {
    height: 70px; /* Even smaller height for very small screens */
  }
  
  .no-fee-announcement {
    top: 70px; /* Match reduced navbar height */
    height: 20px; /* Reduced height for small screens */
  }
  
  .no-fee-text {
    font-size: 0.75rem; /* Even smaller font for small screens */
    padding: 2px 1rem; /* Reduced padding for small screens */
  }
}



@keyframes scrollWheel {
  0% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateX(-50%) translateY(20px);
    opacity: 0.5;
  }
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

@keyframes pulseText {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

/* Hide scroll indicator when scrolling begins */
.scroll-indicator-container.hidden {
  opacity: 0;
  transition: opacity 0.5s ease-out;
}

/* ---- Events ---- */
.events-section {
  padding-top: 40px;
}

/* ---- Events ---- */
.event-card--technical {
  background-size: cover;
  background-position: center;
  background-image: 
    url("technical.png");
}

/* ---- Events ---- */
.event-card--cultural {
  background-image: url("cultural.png");
  background-size: cover;
  background-position: center;
}

/* ---- Events ---- */
.event-card--sports {
  background-image: 
    url("sports.png");
}

/* Event Card with Image Styles */
.event-card--sub {
  background: var(--card-bg);
  border-radius: 16px;
  border: 1px solid rgba(132, 0, 255, 0.22);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: 0.2s ease-out;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height:70%;
  width:100%;
}

.event-card--sub::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(140, 0, 255, 0.08), transparent 55%);
  opacity: 0;
  transition: opacity 0.2s ease-out;
}

.event-card--sub:hover::before {
  opacity: 1;
}

.event-card--sub:hover {
  transform: translateY(-1px);
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.95),
    0 0 5px rgba(102, 94, 249, 0.8);
}

.event-card-image-container {
  width: 100%;
  height: 90%;
  overflow: hidden;
  position: relative;
}

.event-card-image {
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease;
}

.event-card--sub:hover .event-card-image {
  transform: scale(1.05);
}

.event-card-content {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.event-card-sub-name {
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-cyan);
  margin-bottom: 10px;
}

.event-card-sub-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  flex-grow: 1;
}

.event-card-sub-meta {
  font-size: 0.75rem;
  color: rgba(195, 198, 255, 0.8);
  display: flex;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ---- Events ---- */
.event-card {
  position: relative;
  height: 320px;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-soft);
  transform: translateY(25px);
  opacity: 0;
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out,
    box-shadow 0.25s ease-out,
    transform 0.25s ease-out;
  /* Enable hardware acceleration */
  will-change: transform, opacity;
  backface-visibility: hidden;
}

/* ---- Events ---- */
.event-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Events ---- */
.event-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    145deg,
    rgba(4, 6, 24, 0.9),
    rgba(4, 6, 24, 0.7),
    rgba(162, 0, 255, 0.05)
  );
}

/* ---- Events ---- */
.event-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 17px;
  border: 1px solid rgba(149, 0, 255, 0);
  box-shadow: 0 0 0 transparent;
  transition: border 0.25s ease-out, box-shadow 0.25s ease-out;
}

/* ---- Events ---- */
.event-card:hover::after {
  border-color: rgba(0, 8, 255, 0.8);
  box-shadow: 
    0 0 10px rgba(93, 0, 255, 0.85),
    0 0 20px rgba(255, 47, 146, 0.75);
}

/* ---- Events ---- */
.event-card:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 10px 20px rgba(58, 1, 87, 0.9);
}

/* ---- Events ---- */
@media (pointer: coarse) {
  .event-card:active {
    transform: translateY(-2px) scale(1.02);
  }
}

/* ---- Events ---- */
.event-card-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: auto; /* Ensure scrollbars are present when content overflows */
  scrollbar-width: thin; /* Make the scrollbar thinner */
  scrollbar-color: #d4aa70 #e4e4e4; /* Thumb color then track color */
}

/* ---- Events ---- */
.event-card:hover .event-cta {
  background: radial-gradient(
    circle at top left,
    rgba(162, 0, 255, 0.3),
    rgba(255, 47, 146, 0.40)
  );
  box-shadow: 0 0 22px rgba(255, 47, 146, 0.95);
  transform: translateY(-1px);
}

/* ---- Events ---- */
.event-card--sub > div {
  position: relative;
  z-index: 1;
}

/* ---- Events ---- */
.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

@media (max-width: 1000px) {
  .event-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .event-grid {
    grid-template-columns: 1fr;
  }
}


/* ---- Cards (sub & sport) ---- */
.sport-card {
  position: relative;
  background: radial-gradient(circle at top, #1f2937 0%, #020617 65%);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 255, 0.35);
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  color: inherit;
  text-align: left;
  transition:
    transform 0.2s ease-out,
    box-shadow 0.2s ease-out,
    border-color 0.2s ease-out,
    background 0.2s ease-out,
    filter 0.2s ease-out;
}

/* ---- Modals ---- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(1, 3, 15, 0.82);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  z-index: 120;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-out;
}

.modal-backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ---- Modals ---- */
.modal-backdrop.visible .modal-card {
  transform: translateY(0) scale(1);
}

/* ---- Modals ---- */
.modal-card {
  width: 100%;
  max-width: 900px;
  max-height: 92vh;
  border-radius: 16px;
  background: var(--card-bg);
  border: 1px solid rgba(174, 0, 255, 0.4);
  box-shadow:
    0 20px 60px rgba(15, 23, 42, 0.95),
    0 0 32px rgba(174, 59, 246, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal-events-list {
  list-style: none;
  padding: 10px 14px 12px;
  margin: 0;
  overflow-y: auto;
  flex: 1 1 auto;
}

/* ---- Modals ---- */
/* ====================== SUB‑EVENT MODALS (all pages) ====================== */

.subevent-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(1, 3, 15, 0.82);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;          /* margin from edges on phones */
  z-index: 120;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-out;
  /* Enable hardware acceleration */
  will-change: opacity;
  backface-visibility: hidden;
}

.subevent-modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.subevent-modal {
  width: 100%;
  max-width: 900px;
  max-height: 85vh;              /* Reduced from 92vh for more compact look */
  border-radius: 16px;
  background: var(--card-bg);
  border: 1px solid rgba(119, 0, 255, 0.4);
  box-shadow:
    0 20px 60px rgba(15, 23, 42, 0.95),
    0 0 32px rgba(149, 59, 246, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;              /* header/footer fixed, body scrolls */
  transform: translateY(20px) scale(0.96);
  opacity: 0;
  transition: transform 0.2s ease-out, opacity 0.2s ease-out;
  /* Enable hardware acceleration */
  will-change: transform, opacity;
  backface-visibility: hidden;
  transform: translateZ(0);
}
/* Event Coordinators Table Styles */
.coordinators-section {
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.95);
  border-top: 3px solid var(--neon-pink);
  margin-top: 60px;
  position: relative;
  z-index: 1;
}

.coordinators-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 0%, rgba(255, 0, 255, 0.05) 50%, transparent 100%);
  pointer-events: none;
  z-index: -1;
}

.coordinators-title {
  text-align: center;
  color: var(--neon-cyan);
  font-size: 2.2rem;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 15px rgba(0, 255, 255, 0.7);
  position: relative;
  display: inline-block;
  width: 100%;
}

.coordinators-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.table-wrapper {
  background: rgba(20, 5, 35, 0.95);
  border-radius: 15px;
  padding: 20px;
  box-shadow: 
    0 0 30px rgba(255, 0, 255, 0.3),
    inset 0 0 20px rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 0, 255, 0.4);
  overflow: hidden;
}

.coordinators-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: transparent;
  border-radius: 10px;
  overflow: hidden;
}

.coordinators-table th {
  background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
  color: white;
  padding: 18px 15px;
  text-align: left;
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  position: relative;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.coordinators-table th::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 15px;
  right: 15px;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
}

.coordinators-table td {
  padding: 16px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 600;
  background: rgba(60, 20, 100, 0.9) !important;
  transition: all 0.3s ease;
}

.coordinators-table tbody tr:hover td {
  background: rgba(255, 0, 255, 0.1);
  color: var(--neon-cyan);
  transform: translateX(5px);
}

.coordinators-table tbody tr:last-child td {
  border-bottom: none;
}

.role-cell {
  background: rgba(255, 0, 255, 0.15) !important;
  color: var(--neon-cyan) !important;
  font-weight: 700;
  text-align: center;
  vertical-align: middle;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-right: 2px solid rgba(255, 0, 255, 0.3);
  position: relative;
}

.role-cell::after {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  right: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--neon-pink), transparent);
}

/* -------- MOBILE OPTIMIZATION -------- */

/* Tablet */
@media (max-width: 992px) {
  .coordinators-section {
    padding: 30px 15px;
  }
  .coordinators-title {
    font-size: 1.8rem;
  }
  .table-wrapper {
    padding: 15px;
  }
}

/* Mobile Landscape / Mid devices */
@media (max-width: 768px) {
  .coordinators-title {
    font-size: 1.6rem;
    letter-spacing: 1px;
  }
  .coordinators-table th,
  .coordinators-table td {
    padding: 14px 12px;
    font-size: 0.95rem;
  }
  .role-cell {
    font-size: 1rem;
  }
}

/* Small Mobile */
@media (max-width: 576px) {
  .coordinators-section {
    padding: 25px 10px;
    margin-top: 40px;
  }
  .coordinators-title {
    font-size: 1.4rem;
    margin-bottom: 20px;
  }
  .table-wrapper {
    padding: 10px;
    border-radius: 10px;
  }

  /* Enable smooth horizontal scroll */
  /* Make table responsive: allow cells to wrap instead of forcing horizontal scroll */
  .coordinators-table {
    display: table;
    width: 100%;
    table-layout: fixed; /* allow cells to wrap within fixed layout */
    overflow-x: visible;
    white-space: normal;
    -webkit-overflow-scrolling: touch;
    word-break: break-word;
    -ms-word-break: break-word;
    overflow-wrap: anywhere;
  }

  .coordinators-table th,
  .coordinators-table td {
    padding: 12px 8px;
    font-size: 0.9rem;
    white-space: normal; /* allow wrapping inside cells */
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  /* Reduce the role-cell borders so content doesn't get clipped */
  .role-cell {
    border-right: none;
    text-align: left;
  }

  /* Stacked card view for very small screens: show each row as a card */
  .coordinators-table tbody tr {
    display: block;
    background: rgba(255,255,255,0.02);
    margin-bottom: 12px;
    border-radius: 8px;
    padding: 8px 10px;
  }

  .coordinators-table tbody tr td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 6px;
    border: 0;
    background: transparent !important;
  }

  .coordinators-table tbody tr td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--text-muted);
    margin-right: 12px;
    flex: 0 0 40%;
    text-transform: uppercase;
    font-size: 0.85rem;
  }

  .coordinators-table tbody tr td[data-label="PH. NO."],
  .coordinators-table tbody tr td[data-label="REGD. NO."] {
    text-align: right;
    flex: 1 1 60%;
  }
}

/* Modal width responsive */
@media (min-width: 768px) {
  .subevent-modal {
    width: 85%;
  }
}

@media (min-width: 1024px) {
  .subevent-modal {
    width: 55%;
  }
}

/* header */
.subevent-modal-header {
  padding: 8px 12px; /* Reduced padding */
  border-bottom: 1px solid rgba(179, 0, 255, 0.25);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

/* body (scrollable) */
.subevent-modal-body {
  padding: 8px 12px 6px; /* Reduced padding */
  overflow-y: auto;              /* internal scroll on mobile */
}

.subevent-modal-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 8px; /* Reduced from 12px */
}

.subevent-modal-section {
  margin-bottom: -50px; /* Remove vertical gap between modal sections to make them contiguous */
}

.subevent-modal-section h3 {
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 4px;
}

/* footer */
.subevent-modal-footer {
  padding: 6px 12px 8px; /* Reduced padding */
  border-top: 1px solid rgba(162, 0, 255, 0.25);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* Rules list with reduced line spacing */
.subevent-rules {
  padding-left: 18px;
  font-size: 0.86rem;
  color: var(--text-muted);
  margin: 0;
}

.subevent-rules li {
  margin-bottom: -2px; /* Further tightened list item spacing for compact display */
}

/* Coordinators list with reduced spacing */
.subevent-coordinators ul {
  list-style: disc;
  padding-left: 16px;
  font-size: 0.86rem;
  color: var(--text-muted);
  margin: 0;
}

.subevent-coordinators ul li {
  margin-bottom: -2px; /* Further tightened list item spacing */
}

/* Details grid with reduced spacing */
.subevent-details-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 25px; /* increased horizontal spacing between Venue / Date & Time / Prizes */
  row-gap: 2px;     /* small vertical spacing between rows */
  font-size: 0.86rem;
  color: var(--text-muted);
}

.subevent-details-grid h3 {
  margin-bottom: 4px; /* Reduced margin */
}

/* gentle animated glow behind every popup */
.subevent-modal-overlay::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  mix-blend-mode: screen;
}

/* optional variations by type (use classes on overlay if needed) */




/* animate in when overlay is open */
.subevent-modal-overlay.is-open .subevent-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* close button */
.subevent-modal-close-btn {
  border: 1px solid rgba(162, 0, 255, 0.7);
  background: rgba(5, 8, 35, 0.95);
  color: var(--accent-cyan);
  border-radius: 999px;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* allow a bit more height on very short screens */
@media (max-height: 700px) {
  .subevent-modal {
    max-height: 96vh;
  }
}


/* ---- Hospitality & Transport ---- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* ---- Hospitality & Transport ---- */
@media (max-width: 960px) {
  .info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---- Hospitality & Transport ---- */
@media (max-width: 720px) {
  .info-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Hospitality & Transport ---- */
.info-card {
  background: var(--card-bg);
  border-radius: 18px;
  padding: 20px 20px 18px;
  border: 1px solid rgba(140, 0, 255, 0.25);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  transform: translateY(14px);
  opacity: 0;
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out,
    box-shadow 0.2s ease-out,
    transform 0.2s ease-out;
}

/* ---- Hospitality & Transport ---- */
.info-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Hospitality & Transport ---- */
.info-card:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.95);
}

/* ---- Hospitality & Transport ---- */
@media (pointer: coarse) {
  .info-card:active {
    transform: translateY(-1px) scale(1.01);
  }
}

/* ---- Hospitality & Transport ---- */
.info-card--accommodation {
  grid-column: 1 / -1;
}

/* ---- Hospitality & Transport ---- */
@media (max-width: 960px) {
  .info-card--accommodation {
    grid-column: auto;
  }
}

/* ---- Hospitality & Transport ---- */
.transport-timeline {
  position: relative;
  margin-top: 10px;
  padding-left: 18px;
}

/* ---- Tables & PDFs ---- */
.dias-table-wrap {
  margin-top: 16px;
  background: var(--card-bg);
  border-radius: 18px;
  padding: 18px 20px 12px;
  border: 1px solid rgba(30, 0, 255, 0.3);
  box-shadow: var(--shadow-soft);
  overflow-x: auto;
}

/* ---- Tables & PDFs ---- */
.dias-pdf-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 700px;
}

/* ---- Contact & Map ---- */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr);
  gap: 32px;
  margin-top: 10px;
}

/* ---- Contact & Map ---- */
.map-card {
  margin-top: 14px;
  background: var(--card-bg);
  border-radius: 18px;
  padding: 16px;
  border: 1px solid rgba(8, 0, 255, 0.3);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* ---- Contact & Map ---- */
.map-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Contact & Map ---- */
.btn-open-map {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(162, 0, 255, 0.8);
  background: rgba(3, 8, 35, 0.9);
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

/* ---- Contact & Map ---- */
.btn-open-map:hover {
  background: radial-gradient(circle at top left, rgba(162, 0, 255, 0.3), rgba(255, 47, 146, 0.2));
  box-shadow: 0 0 16px rgba(162, 0, 255, 0.9);
  transform: translateY(-1px);
}

/* ---- Footer & Keyframes ---- */
footer {
  padding: 28px 8vw 22px;
  border-top: 1px solid rgba(21, 27, 60, 0.9);
  background: radial-gradient(circle at top, rgba(162, 0, 255, 0.12), rgba(3, 4, 15, 0.98) 40%, #020309 100%);
  font-size: 0.82rem;
  color: rgba(165, 169, 220, 0.9);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}

/* ---- Footer & Keyframes ---- */
.footer-left span {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-cyan);
  font-size: 0.72rem;
}

/* ---------------- Misc (remaining deduped blocks) ---------------- */
.logo-main {
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  text-shadow: 0 0 12px rgba(105, 0, 166, 0.9);
}

.logo-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-title {
  margin-top: 90px;
 
  font-size: 50px;
  font-family: 'Cascadia Code', serif;
  font-weight: 800;

  /* 🎨 Updated Gradient Colors Only */
  background: linear-gradient(
    90deg,
    #1e76e9,  /* pink/red */
    #00d5ff,  /* amber/orange */
    #6e3fb5,  /* indigo/blue */
    #ff4ecb   /* bright magenta */
  );

  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}


.section-subtitle {
  max-width: 640px;
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-bottom: 32px;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  filter: drop-shadow(0 0 0 rgba(162, 0, 255, 0));
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out,
    filter 0.6s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  filter: drop-shadow(0 0 22px rgba(162, 0, 255, 0.4));
}

.event-category-page {
  padding: 80px 8vw 90px;
}

.event-page-spacer {
  height: 90px;
}

.event-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.event-back-link {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  color: var(--accent-cyan);
}

.event-back-link:hover {
  text-decoration: underline;
}

.event-breadcrumb-current {
  opacity: 0.8;
}

.event-category-hero {
  margin-bottom: -100px;
}

.event-ribbon {
  display: inline-flex;
  padding: 4px 16px;
  background: linear-gradient(90deg, #ff0040, #ff7a00);
  border-radius: 999px;
  box-shadow:
    0 0 10px rgba(195, 0, 255, 0.7),
    0 0 20px rgba(47, 0, 255, 0.7);
  margin-bottom: 10px;
}

.event-ribbon-label {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fffbe8;
}

.event-category-title {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fffaf7;
  text-shadow:
    0 0 14px rgba(162, 0, 255, 0.7),
    0 0 40px rgba(47, 102, 255, 0.7);
  margin-bottom: 6px;
}

.event-category-tagline {
  max-width: 640px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.event-track-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.event-track-tab {
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px dashed rgba(162, 0, 255, 0.55);
  background: rgba(5, 8, 35, 0.7);
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  cursor: pointer;
  transition: 0.18s ease-out;
}

.event-track-tab.is-active {
  border-style: solid;
  background: radial-gradient(circle at top left, rgba(162, 0, 255, 0.4), rgba(47, 50, 255, 0.3));
  color: var(--accent-cyan);
  box-shadow:
    0 0 14px rgba(162, 0, 255, 0.9),
    0 0 20px rgba(47, 50, 255, 0.7);
}

.event-track-section {
  margin-top: 8px;
}

.event-track-title {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-cyan);
  margin-bottom: 4px;
}

.event-track-description {
  max-width: 640px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(162, 0, 255, 0.7);
  background: rgba(5, 8, 35, 0.95);
  color: var(--accent-cyan);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal-title {
  font-size: 1.1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 6px;
}

.modal-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  padding-left:20px;
}

.modal-events-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-events-list li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(162, 0, 255, 0.4);
  background: rgba(5, 8, 35, 0.9);
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: var(--transition-fast);
}

.modal-events-list li a span.event-name-small {
  font-weight: 500;
}

.modal-events-list li a span.event-link-hint {
  font-size: 0.78rem;
  color: var(--accent-cyan);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.modal-events-list li a:hover {
  box-shadow:
    0 0 16px rgba(162, 0, 255, 0.9),
    0 0 20px rgba(75, 47, 255, 0.7);
  transform: translateY(-1px);
}

.subevent-rules {
  padding-left: 18px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.subevent-coordinators {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 25px; /* increase horizontal spacing between coordinator columns */
  row-gap: 2px;     /* small vertical spacing between coordinator rows */
}

@media (max-width: 640px) {
  .subevent-coordinators {
    grid-template-columns: 1fr;
  }
}

.subevent-coordinators ul {
  list-style: disc;
  padding-left: 16px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.subevent-details-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 25px; /* increased horizontal spacing for Venue / Date & Time / Prizes */
  row-gap: 2px;     /* small vertical spacing between rows */
  font-size: 0.86rem;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .subevent-details-grid {
    grid-template-columns: 1fr;
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.8;
  pointer-events: none;
}

.scroll-indicator-line {
  width: 1px;
  height: 38px;
  background: linear-gradient(to bottom, transparent, var(--accent-cyan));
  animation: pulseScroll 1.6s ease-in-out infinite;
}

.info-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(49, 1, 77, 0.8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  box-shadow: 0 0 16px rgba(21, 1, 33, 0.7);
  font-size: 1.1rem;
}

.info-title {
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
  background: linear-gradient(90deg, #ff4ecb, #ff4ecb, #001f5b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.info-body {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.hospitality-list {
  list-style: none;
  margin: 6px 0 14px;
  padding: 0;
}

.hospitality-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 6px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.hospitality-list li::before {
  content: "★";
  position: absolute;
  left: 0;
  top: 0;
  color: "#ffffff";
  text-shadow: 0 0 8px rgba(0, 80, 20, 0.9);
  font-size: 0.78rem;
  transform: translateY(2px);
}

.hospitality-block {
  margin-top: 10px;
}

.hospitality-block h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 4px;
}

.hospitality-block p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.hospitality-note {
  margin-top: 12px;
  font-size: 0.86rem;
  color: #ffb2b2;
}

.hospitality-cta {
  margin-top: 16px;
  display: flex;
  justify-content: flex-start;
}

.btn-accommodation-register {
  padding: 9px 24px;
  border-radius: 999px;
  border: 1px solid rgba(162, 0, 255, 0.9);
  background: linear-gradient(120deg, rgba(162, 0, 255, 0.3), rgba(255, 47, 146, 0.45));
  color: #ffffff;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow:
    0 0 8px rgba(89, 1, 139, 0.9),
    0 0 10px rgba(109, 1, 53, 0.8);
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, background 0.18s ease-out;
}

.btn-accommodation-register:focus-visible {
  transform: translateY(-1px) scale(1.03);
  background: linear-gradient(120deg, rgba(162, 0, 255, 0.55), rgba(255, 47, 146, 0.7));
  box-shadow:
    0 0 10px rgba(162, 0, 255, 1),
    0 0 20px rgba(255, 47, 146, 0.95);
}

.transport-line {
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-magenta), var(--accent-magenta));
  opacity: 0.7;
}

.transport-step {
  position: relative;
  padding-left: 26px;
  margin-bottom: 26px;
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.65s ease-out, transform 0.65s ease-out;
}

.transport-step.visible {
  opacity: 1;
  transform: translateX(0);
}

.transport-dot {
  position: absolute;
  left: 0;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--accent-green);
  box-shadow:
    0 0 10px rgba(59, 255, 107, 0.9),
    0 0 26px rgba(162, 0, 255, 0.7);
}

.transport-title {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-cyan);
  margin-bottom: 4px;
}

.transport-body {
  font-size: 0.93rem;
  color: var(--text-muted);
}

.transport-route-cta {
  margin-top: 10px;
}

.btn-route-pdf {
  padding: 8px 22px;
  border-radius: 999px;
  border: 1px solid rgba(60, 2, 94, 0.85);
  background: linear-gradient(120deg, rgba(59, 255, 107, 0.45), rgba(255, 47, 146, 0.6));
  color: #ffffff;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow:
    0 0 16px rgba(1, 104, 27, 0.9),
    0 0 30px rgba(109, 1, 54, 0.85);
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, background 0.18s ease-out;
}

.btn-route-pdf:focus-visible {
  transform: translateY(-1px) scale(1.03);
  background: linear-gradient(120deg, rgba(59, 255, 107, 0.7), rgba(255, 47, 146, 0.8));
  box-shadow:
    0 0 22px rgba(59, 255, 107, 1),
    0 0 40px rgb(86, 1, 42);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 560px;
}

thead {
  background: linear-gradient(90deg, rgba(162, 0, 255, 0.24), rgba(255, 47, 146, 0.18));
}

td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(35, 40, 90, 0.9);
  white-space: nowrap;
}

th {
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--accent-cyan);
}

tbody tr {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out, background-color 0.25s ease-out;
}

tbody tr.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Make coordinators table rows visible by default */
.coordinators-table tbody tr {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: all 0.3s ease !important;
}

tbody tr.highlight {
  background: rgba(162, 0, 255, 0.08);
}

tbody tr:hover {
  background: rgba(162, 0, 255, 0.12);
}

.dias-pdf-preview {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(57, 1, 89, 0.4);
  box-shadow:
    0 0 10px rgba(162, 0, 255, 0.4);
  background: radial-gradient(circle at top, rgba(162, 0, 255, 0.1), rgba(3, 4, 15, 0.95));
}

.dias-pdf-embed {
  width: 100%;
  height: 420px;
  border: none;
}

.dias-pdf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-download-pdf {
  padding: 10px 26px;
  border-radius: 999px;
  border: 1px solid rgba(28, 63, 236, 0.9);
  background: linear-gradient(120deg, rgba(247, 0, 255, 0.4), rgba(162, 0, 255, 0.4));
  color: #ffffff;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow:
    0 0 5px rgba(162, 0, 255, 0.9);
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, background 0.18s ease-out;
}

.btn-download-pdf:focus-visible {
  transform: translateY(-1px) scale(1.03);
  box-shadow:
    0 0 24px rgba(162, 0, 255, 1);
  background: linear-gradient(120deg, rgba(162, 0, 255, 0.6), rgba(162, 0, 255, 0.6));
}

.contact-card {
  background: var(--card-bg);
  border-radius: 18px;
  padding: 20px 20px 18px;
  border: 1px solid rgba(162, 0, 255, 0.3);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.contact-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.contact-list-item {
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.contact-list-item span {
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  display: inline-block;
  margin-bottom: 2px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 10px;
}

.social-pill {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px dashed rgba(119, 0, 255, 0.7);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-pill:hover {
  color: var(--accent-cyan);
  border-style: solid;
  background: rgba(3, 8, 35, 0.95);
  box-shadow: 0 0 16px rgba(255, 111, 0, 0.9);
  transform: translateY(-1px);
}

/* Social media specific colors */
.social-pill:hover .fa-instagram {
  color: #E1306C;
}

.social-pill:hover .fa-youtube {
  color: #ffffff;
}

.social-pill:hover .fa-twitter {
  color: #1DA1F2;
}

/* Ensure Font Awesome icons are visible */
.social-pill i {
  font-size: 1.2em;
  width: 20px;
  text-align: center;
}

.map-inner {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(140, 0, 255, 0.5);
  box-shadow: 0 0 30px rgba(140, 0, 255, 0.5);
}

.map-iframe {
  width: 100%;
  min-height: 260px;
  border: 0;
  display: block;
}

.map-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.map-address {
  max-width: 520px;
  line-height: 1.5;
}

/* Events 3‑card grid on home */
.events-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

@media (max-width: 1100px) {
  .events-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .events-grid {
    grid-template-columns: 1fr;
  }
}

.event-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-cyan);
  margin-bottom: 4px;
  text-shadow: 0 0 6px rgba(255, 47, 146, 0.55);
}

.event-name {
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-shadow:
    0 0 10px rgba(255, 47, 146, 0.85),
    0 0 26px rgba(0, 0, 0, 0.75);
  margin-bottom: 6px;
}

.event-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 85%;
  text-shadow: 0 0 4px rgba(255, 47, 146, 0.35);
}

.event-meta {
  font-size: 0.78rem;
  color: rgba(195, 198, 255, 0.8);
  display: inline-flex;
  gap: 10px;
  text-shadow: 0 0 3px rgba(255, 47, 146, 0.28);
}

.event-cta {
  align-self: flex-start;
  margin-top: 4px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(0, 64, 255, 0.7);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  background: rgba(3, 8, 35, 0.9);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
  cursor: pointer;
}

    .sports-two-column {
    display: grid;
    gap: 2rem;
    }

    @media (min-width: 768px) {
    .sports-two-column {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    }

    .sports-column h3 {
    margin-bottom: 0.75rem;
    }

    .sports-column ul {
    list-style: disc;
    padding-left: 1.5rem;
    }

    .sports-extra-info {
    margin-top: 2rem;
    font-size: 0.95rem;
    opacity: 0.9;
    }

/* ----------------- Keyframes ----------------- */
@keyframes spinGlow {
  to {
    transform: rotate(360deg);
  }
}

@keyframes slowRotate {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulseScroll {
  0% {
    opacity: 0.4;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(6px);
  }
  100% {
    opacity: 0.4;
    transform: translateY(0);
  }
}

@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ========== Mini cards inside Events popup (Technical / Cultural) ========== */

/* ========== Mini cards inside Events popup (Technical / Cultural) ========== */

.events-modal-list {
  display: grid;
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Phones: full width (1 per row) */
@media (max-width: 640px) {
  .events-modal-list {
    grid-template-columns: 1fr;
  }
}

/* Tablets: 2 cards per row */
@media (min-width: 641px) and (max-width: 1024px) {
  .events-modal-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Desktops: 3 cards per row (horizontal layout) */
@media (min-width: 1025px) {
  .events-modal-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.events-modal-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 30, 255, 0.35);
  background: radial-gradient(circle at top, #111827, #020617);
  cursor: pointer;
  text-align: left;
  transition:
    transform 0.18s ease-out,
    box-shadow 0.18s ease-out,
    border-color 0.18s ease-out;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.events-modal-card img {
  width: 100%;
  height: auto;
  max-height: 550px;
  object-fit: contain;
  display: block;
  background-color: #000;
  flex-shrink: 0;
}


.events-modal-card-overlay {
  position: relative;
  margin-top: auto;
  padding: 12px 10px;
  background: linear-gradient(
    to top,
    rgba(3, 7, 18, 0.9),
    rgba(3, 7, 18, 0.3),
    transparent
  );
  min-height: 60px;
}

.events-modal-card-title {
  font-size: 0.83rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #ffffff; /* bright white */
}

.events-modal-card-type {
  font-size: 0.72rem;
  color: #e5e7eb; /* light gray */
}
.events-modal-card:hover,
.events-modal-card:focus-visible {
  transform: translateY(-3px) scale(1.02);
  border-color: #c7d2fe;
  box-shadow:
    0 16px 32px rgba(15, 23, 42, 0.95),
    0 0 20px rgba(59, 130, 246, 0.55);
  outline: none;
}
/* For mobile devices - make technical events scrollable */
@media (max-width: 768px) {
  .events-container,
  .technical-events,
  .event-blocks {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    display: flex;
    flex-wrap: nowrap;
  }
  
  .event-block,
  .event-card {
    flex-shrink: 0;
    min-width: 280px; /* Adjust based on your card width */
  }
}
.subevent-modal-close-btn {
  padding: 10px 30px; /* horizontal padding increases width */
}

/* Modal title category colors (applied via JS) */
.modal-title--technical {
  color: rgb(43, 98, 194) !important;
  padding-left: 20px;
  padding-top:10px;
}

.modal-title--cultural {
  color: #ff4ecb !important;
  padding-left: 20px;
  padding-top:10px;
}




/* ================ End of optimized CSS ================ */

/* Responsive hero title adjustments (tablets & phones) */
@media (max-width: 720px) {
  .hero-event-name {
    font-family: 'Anton', 'Impact', 'Arial Black', 'Helvetica Neue', Arial, sans-serif;
    font-size: clamp(60px, 10vw, 90px);
    transform: rotate(-3deg) skewX(-8deg);
    -webkit-text-stroke: 4px #000000;
    background-size: 300% 300%;
    margin-bottom: -6px;
    animation-duration: 3.5s;
  }

  .hero-event-name::after {
    animation-duration: 2.4s;
    transform: skewX(6deg);
  }

  .subyear-text {
    font-family: 'Anton', 'Impact', 'Arial Black', 'Helvetica Neue', Arial, sans-serif;
    font-size: clamp(50px, 8.5vw, 60px);
    margin-top: -25px;
    transform: rotate(-3deg) skewX(-8deg);
    -webkit-text-stroke: 4px #000000;
    background-size: 300% 300%;
    animation-duration: 3.5s;
  }
}

@media (max-width: 480px) {
  .hero-event-name {
    font-family: 'Anton', 'Impact', 'Arial Black', 'Helvetica Neue', Arial, sans-serif;
    font-size: 70px;
    transform: rotate(-3deg) skewX(-10deg);
    -webkit-text-stroke: 3px #000000;
    background-size: 250% 250%;
    margin-bottom: -6px;
    animation-duration: 3s;
  }

  .hero-event-name::after {
    animation-duration: 2s;
    transform: skewX(4deg);
  }

  .subyear-text {
    font-family: 'Anton', 'Impact', 'Arial Black', 'Helvetica Neue', Arial, sans-serif;
    font-size: clamp(24px, 12vw, 48px);
    margin-top: -25px;
    transform: rotate(-3deg) skewX(-10deg);
    -webkit-text-stroke: 3px #000000;
    background-size: 250% 250%;
    animation-duration: 3s;
  }

  /* Slightly reduce animation intensity on very small screens */
  .hero-event-name::after,
  .hero-event-name,
  .subyear-text {
    will-change: auto;
    animation-iteration-count: infinite;
  }
  #transportation{
    font-size: 40px;
}
.hero-event-name::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background: linear-gradient(110deg,
      transparent 0%,
      #ff00ff,
      #ff6b00,
      #07a9e9,
      #b44bff,
      #4b00ff,
      #ffffff,
      transparent 80%
  );
  mix-blend-mode: overlay;
  animation: funkyShine 1.5s infinite ease-in-out;
  pointer-events: none;
  transform: skewX(10deg);
}
.event-card-image {
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease;
}
.event-card--sub {
  background: var(--card-bg);
  border-radius: 16px;
  border: 1px solid rgba(132, 0, 255, 0.22);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: 0.2s ease-out;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 80%;
  width:100%;
}

}
/* ================ End of optimized CSS ================ */