/* Base Styles */
:root {
  --primary-color: #3b82f6;
  --primary-light: #60a5fa;
  --secondary-color: #1e40af;
  --text-color: #1f2937;
  --background-color: #f9fafb;
}

/* Reset & Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  overflow-x: hidden;
}

/* Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-color);
  color: white;
  padding: 8px;
  z-index: 100;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/* Loading Animation */
.loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Header & Navigation Styles */
header {
  --rebecca-purple: hsl(270, 60%, 15%);
  background-image: linear-gradient(
    to bottom right,
    hsla(203, 100%, 15%, 0.25),
    var(--rebecca-purple),
    hsla(28, 98%, 21%, 0.25)
  );
  background-color: var(--rebecca-purple);
  padding: 0.5rem 0.5rem;
  width: 100%;
  position: fixed;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.arrow-button {
  position: fixed;
  top: 50%; /* Center vertically */
  right: 20px; /* Distance from the right */
  transform: translateY(-50%); /* Adjust for vertical centering */
  background-color: #1D4ED8; /* Tailwind blue-600 */
  color: white;
  width: 50px; /* Width of the arrow button */
  height: 50px; /* Height of the arrow button */
  border-radius: 50%; /* Make it circular */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000; /* Ensure it is above other content */
  transition: background-color 0.3s, transform 0.3s; /* Add transition for animation */
}

.arrow-button:hover {
  background-color: #2563EB; /* Tailwind blue-700 */
}

.fixed-register-button {
  position: fixed;
  top: 50%; /* Center vertically */
  right: 20px; /* Distance from the right */
  transform: translateY(-50%); /* Adjust for vertical centering */
  background-color: #1D4ED8; /* Tailwind blue-600 */
  color: white;
  padding: 15px 20px;
  border-radius: 5px;
  text-align: center;
  font-size: 16px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000; /* Ensure it is above other content */
  display: none; /* Initially hidden */
  transition: all 0.3s ease; /* Smooth transition */
}

.fixed-register-button.visible {
  display: block; /* Show when visible */
}
.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
}

/* Brand Logo */
.headerbrand {
  font-family: "Teko", sans-serif;
  color: #ffffff !important;
  font-size: 2.5rem;
  text-decoration: none;
  position: relative;
  transition: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.headerbrand:hover,
.headerbrand:focus,
.headerbrand:active {
  color: #ffffff !important;
  text-decoration: none;
}

/* Navigation */
nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  /* background-color: #000; */
}

nav a {
  font-family: "Montserrat", sans-serif;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: color 0.3s ease;
  padding: 0.5rem 0;
  position: relative;
  -webkit-tap-highlight-color: transparent !important;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  outline: none;
}

nav a:focus {
  outline: none;
}

nav a:focus-visible {
  outline: 2px solid var(--primary-light);
  outline-offset: 2px;
}

/* Desktop Hover Effect */
@media (min-width: 768px) {
  nav a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    background-color: var(--primary-light);
    transition: all 0.3s ease;
    transform: translateX(-50%);
  }

  nav a:hover::after {
    width: 100%;
  }

  nav a:hover {
    color: var(--primary-light);
  }
}

/* Mobile Navigation */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

/* Responsive Design */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 70%;
    max-width: 300px;
    background-color: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    padding: 5rem 2rem;
    transition: right 0.3s ease;
  }

  nav.active {
    right: 0;
  }

  nav a {
    font-size: 1.1rem;
    width: 100%;
    text-align: center;
  }
}

/* Small screens */
@media (max-width: 480px) {
  .headerbrand {
    font-size: 2rem;
  }

  header {
    padding: 0.75rem 1rem;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Scroll Progress Indicator */
.scroll-progress {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #60a5fa, #3b82f6);
  transition: width 0.3s ease;
}

/* Header Shadow on Scroll */
header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* Event Cards */
.event-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: white;
  border-radius: 12px;
  overflow: hidden;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.event-card img {
  transition: transform 0.3s ease;
}

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

/* Lightbox Styles */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.95);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 1rem;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
}

.lightbox-image {
  display: block;
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 1.5rem;
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.lightbox-nav:hover {
  transform: translateY(-50%) scale(1.1);
}

/* Prevent body scroll when lightbox is open */
body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .lightbox {
    padding: 0.5rem;
  }

  .lightbox-close {
    top: 0.5rem;
    right: 0.5rem;
    width: 2rem;
    height: 2rem;
    font-size: 1.2rem;
  }

  .lightbox-nav {
    width: 2.5rem;
    height: 2.5rem;
  }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #666;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .modal-content {
    padding: 16px;
    width: 95%;
    margin: 10px;
  }

  .event-card {
    margin-bottom: 20px;
  }
}

/* Utility Classes */
.hidden {
  display: none;
}

.no-scroll {
  overflow: hidden;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--primary-color);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 99;
}

.back-to-top.visible {
  opacity: 1;
}

/* Focus Styles */
:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .modal-overlay,
  .back-to-top {
    display: none !important;
  }
}

/* Remove the previous after pseudo-element and animations */
.nav-link::after {
  display: none;
}

/* Remove focus outline styles for navigation links */
nav a:focus {
  outline: none;
}

/* Optional: Add a subtle opacity change on click */
nav a:active {
  opacity: 0.8;
}

/* Reset any potential interfering styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Add these styles for video background */
.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.video-background video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translateX(-50%) translateY(-50%);
  object-fit: cover;
  filter: brightness(1.05);
}

/* Overlay for better text visibility */
.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
  z-index: 2;
}

/* Content styling */
.content-wrapper {
  position: relative;
  z-index: 3;
  text-align: center;
  color: white;
}

/* Updated scroll indicator positioning */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

/* Enhanced bounce animation */
.scroll-indicator svg {
  width: 32px;
  height: 32px;
  color: rgba(255, 255, 255, 0.9);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}
/* About Section Styling */
#about {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%),
    url("./assets/texture.png");
  background-size: cover, contain;
  background-blend-mode: overlay;
  padding: 80px 0;
}

/* Enhanced gradient overlay */
#about::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

/* Content container refinements */
#about .container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Glass effect container refinements */
#about .flex {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 40px;
  gap: 48px;
}

/* Text content refinements */
#about .text-white {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

#about h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

#about p {
  font-size: 1.1rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

#about p:last-child {
  margin-bottom: 0;
}

/* Image container refinements */
#about .md\:w-1\/2 {
  padding: 10px;
}

#about img {
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  animation: float 6s ease-in-out infinite;
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
@media (max-width: 768px) {
  #about h2 {
    font-size: 1.5rem; 
  }
}


@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

#about img:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}

/* Responsive refinements */
@media (max-width: 768px) {
  #about {
    padding: 60px 0;
  }

  #about .flex {
    padding: 30px;
    gap: 32px;
  }

  #about h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  #about p {
    font-size: 1rem;
    line-height: 1.6;
  }

  #about .md\:w-1\/2 {
    padding: 0;
  }
}

/* Mobile specific styles */
@media (max-width: 767px) {
  nav a {
    -webkit-tap-highlight-color: transparent !important;
    background-color: transparent;
  }

  nav a:active,
  nav a:focus,
  nav a:hover {
    background-color: transparent;
    color: var(--primary-light);
    outline: none;
  }
}

/* Remove focus outline for brand and mobile menu button */
.headerbrand,
.mobile-menu-btn {
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.headerbrand:focus,
.mobile-menu-btn:focus {
  outline: none;
  box-shadow: none; /* Remove any box shadow */
}

.headerbrand:active,
.mobile-menu-btn:active {
  outline: none;
  box-shadow: none; /* Remove any box shadow */
}
.headerbrand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #000; /* Adjust as needed */
}

.header-logo {
  width: 40px; /* Adjust logo size as needed */
  height: 40px;
  margin-right: 10px;
}
.title{
  height: 45px;;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text .tagline {
  font-size: 0.9rem;
  color: #dad9d9; 
  margin-top: 1px;
  font-style: italic; 
  text-transform: uppercase;
}



/* Countdown Timer Styles */
#countdown-container {
  transition: all 0.3s ease, opacity 0.5s ease;
  opacity: 1;
  visibility: visible;
  display: block;
  z-index: 41;
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: auto;
  width: fit-content;
  max-width: calc(100% - 2rem);
  margin: 0 auto;
  text-align: center;
}

#countdown-container .bg-white\/80 {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  padding: 0.5rem 0.75rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
}

#countdown-container .flex {
  gap: 0.5rem;
  justify-content: center;
}

/* Numbers */
#countdown-container span {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Labels */
#countdown-container p {
  font-size: 0.625rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Separator */
#countdown-container .text-gray-400 {
  color: rgba(255, 255, 255, 0.3);
  margin: 0 -0.25rem;
  font-weight: 300;
}

#countdown-container.timerhide {
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 20px);
  pointer-events: none;
}

/* Mobile Responsive Design */
@media (max-width: 640px) {
  #countdown-container {
    bottom: 1rem;
    transform: translateX(-50%) scale(0.9);
  }

  #countdown-container .bg-white\/80 {
    padding: 0.4rem 0.6rem;
  }

  #countdown-container .flex {
    gap: 0.4rem;
  }
}

/* Add subtle animation for seconds */
#countdown-container #seconds {
  transition: all 0.2s ease;
}

#countdown-container #seconds.pulse {
  transform: scale(1.1);
}

/* Modal-specific timer behavior */
.modal-overlay-visible #countdown-container {
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 20px);
  pointer-events: none;
}

/* Prevent body scroll when modal is open */
body.modal-open {
  overflow: hidden;
}

/* Creative Gallery Styles */
.gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 12px;
  max-width: 1400px;
  margin: 0 auto;
  height: auto;
  max-height: 65vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(59, 130, 246, 0.5) rgba(255, 255, 255, 0.1);
}

.gallery-mosaic::-webkit-scrollbar {
  width: 6px;
}

.gallery-mosaic::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.gallery-mosaic::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.5);
  border-radius: 10px;
}

.gallery-item {
  position: relative;
  height: 160px;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:nth-child(8n + 1) {
  grid-column: span 2;
  grid-row: span 2;
  height: 334px;
}

.gallery-item:nth-child(8n + 4) {
  grid-row: span 2;
  height: 334px;
}

.gallery-item .content {
  position: absolute;
  inset: 0;
  padding: 6px;
}

.gallery-item .content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.75rem;
  color: white;
}

.gallery-item:hover .overlay {
  opacity: 1;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(59, 130, 246, 0.5);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

@media (max-width: 1280px) {
  .gallery-mosaic {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
}

@media (max-width: 1024px) {
  .gallery-mosaic {
    grid-template-columns: repeat(2, 1fr);
    max-height: 60vh;
  }

  .gallery-item {
    height: 140px;
  }

  .gallery-item:nth-child(8n + 1),
  .gallery-item:nth-child(8n + 4) {
    height: 290px;
  }
}

@media (max-width: 640px) {
  .gallery-mosaic {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 2px;
    max-height: 55vh;
  }

  .gallery-item {
    height: 200px;
    grid-column: span 1;
    border-radius: 4px;
  }

  .gallery-item .content {
    position: absolute;
    inset: 0;
    padding: 2px;
  }

  .gallery-item .content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
  }

  .gallery-item:nth-child(8n + 1),
  .gallery-item:nth-child(8n + 4) {
    height: 200px;
  }

  .gallery-filter-btn {
    padding: 4px 10px;
    font-size: 0.8rem;
    margin-bottom: 4px;
  }

  .text-center {
    padding: 0 10px;
    margin-bottom: 8px;
  }

  .text-center h2 {
    font-size: 1.5rem;
  }

  .text-center p {
    font-size: 0.9rem;
  }

  .overlay {
    padding: 0.5rem;
  }

  .overlay h3 {
    font-size: 1rem;
  }

  .overlay p {
    font-size: 0.8rem;
  }
}

/* Gallery Section Styles */
.gallery-filter-btn {
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: white;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.gallery-filter-btn:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.5);
  transform: translateY(-2px);
}

.gallery-filter-btn.active {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

/* Register Section Styles */
#register {
  position: relative;
  overflow: hidden;
}

#register::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(59, 130, 246, 0.3),
    transparent
  );
}

#register .bg-grid-white {
  mask-image: linear-gradient(to bottom, transparent, black, transparent);
}

/* Form container styles */
.aspect-video {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  background: rgba(0, 0, 0, 0.2);
}

.aspect-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Info box hover effects */
#register .grid > div {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#register .grid > div:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px -10px rgba(59, 130, 246, 0.3);
}

/* Mobile optimizations */
@media (max-width: 640px) {
  #register {
    padding: 3rem 0;
  }

  #register .grid {
    gap: 0.75rem;
  }

  #register .aspect-video {
    border-radius: 0.5rem;
  }

  #register .grid > div {
    padding: 1rem;
  }
}

/* Loading state for iframe */
.aspect-video::before {
  content: "Loading form...";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

/* Enhanced Modal Styles */
.modal-body .sub-events {
  margin-top: 1.5rem;
}

.collapse-button {
  width: 100%;
  padding: 1rem 1.5rem;
  background: linear-gradient(to right, #f8fafc, #f1f5f9);
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.collapse-button:hover {
  background: linear-gradient(to right, #f1f5f9, #e2e8f0);
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.collapse-button .title {
  font-weight: 600;
  color: #1e40af;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.collapse-button .icon {
  transition: transform 0.3s ease;
}

.collapse-button[aria-expanded="true"] .icon {
  transform: rotate(180deg);
}

.collapse-content {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s ease-in-out;
}

.collapse-content.active {
  padding: 1.5rem;
  max-height: 500px;
  opacity: 1;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.criteria-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.criteria-item {
  background: #f8fafc;
  padding: 1rem;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
}

.criteria-item h4 {
  color: #1e40af;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.criteria-item p {
  color: #64748b;
  font-size: 0.875rem;
}

/* Modal Styles */
.modal-overlay {
  backdrop-filter: blur(8px);
}

.modal-content {
  animation: modalSlideIn 0.3s ease-out;
}

.collapse-button {
  width: 100%;
  padding: 1rem 1.5rem;
  background: linear-gradient(to right, #f8fafc, #f1f5f9);
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.collapse-button:hover {
  background: linear-gradient(to right, #f1f5f9, #e2e8f0);
  transform: translateX(4px);
}

.collapse-button .icon {
  transition: transform 0.3s ease;
}

.collapse-button[aria-expanded="true"] .icon {
  transform: rotate(180deg);
}

.collapse-content {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s ease-in-out;
}

.collapse-content.active {
  padding: 1.5rem;
  max-height: 500px;
  opacity: 1;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Prevent body scroll when modal is open */
body.modal-open {
  overflow: hidden;
}

/* Coordinator Cards Styling */
.coordinator-card {
  transition: transform 0.3s ease-in-out;
}

.coordinator-card:hover {
  transform: translateY(-10px);
}

.coordinator-card .relative {
  overflow: hidden;
}

.coordinator-card img {
  transition: transform 0.3s ease-in-out;
}

.coordinator-card:hover img {
  transform: scale(1.05);
}

.overlay-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.coordinator-card:hover .overlay-gradient {
  opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .coordinator-card {
    max-width: 300px;
    margin: 0 auto;
  }
}
