/* Homepage Redesign Styles */

/* Global enhancements */
body {
  background: linear-gradient(to bottom, #0f0c29, #1a1541, #24243e);
  font-family: 'Inter', sans-serif;
  color: #e2e8f0;
}

/* Defensive: ensure any legacy hero canvas stays hidden */
#hero-canvas { display: none !important; }
.particle-container { display: none !important; }

/* Enhanced Hero Section */
.hero-section {
  /* Fill the viewport minus header height (set via JS) to avoid tiny scroll */
  min-height: calc(100vh - var(--header-h, 0px));
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Subtle readability overlay over the background (behind text, above bg) */
.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  /* Lighten the overlay so the background doesn’t look washed out */
  background: radial-gradient(ellipse at 50% 35%, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.28) 60%, rgba(2, 6, 23, 0.35));
  pointer-events: none;
  z-index: 5;
}

/* In banner mode, reduce overlay even further for a crisper image */
.hero-section.has-banner::after {
  background: radial-gradient(ellipse at 50% 35%, rgba(2, 6, 23, 0.10), rgba(2, 6, 23, 0.18) 60%, rgba(2, 6, 23, 0.25));
}

/* Prefer dynamic viewport units on modern mobile browsers to avoid URL bar issues */
@supports (height: 100svh) {
  .hero-section {
    min-height: calc(100svh - var(--header-h, 0px));
  }
}

/* Banner mode: use when the hero has a ready-made banner with embedded text */
.hero-section.has-banner {
  /* Keep padding minimal so the full hero fits within one viewport */
  padding-top: clamp(0px, 1vh, 12px);
  padding-bottom: clamp(8px, 2vh, 16px);
}

.hero-bg-image.is-banner img {
  /* Fill the hero area and crop gracefully */
  width: 100%;
  height: 100%;
  object-fit: cover; /* crop edges to fill */
  object-position: var(--banner-pos-x, 50%) var(--banner-pos-y, 50%); /* adjustable focal point */
  background-color: #0f172a;
}

/* Make cropping adaptive to very wide or very tall screens */
@media (max-aspect-ratio: 3/4) {
  /* Tall phones: prioritize vertical centering */
  .hero-bg-image.is-banner img.hero-banner-img {
  object-position: var(--banner-pos-x, 50%) top;
  }
}

@media (min-aspect-ratio: 16/9) {
  /* Ultra-wide screens: keep key content centered */
  .hero-bg-image.is-banner img.hero-banner-img {
  object-position: var(--banner-pos-x, 50%) var(--banner-pos-y, 50%);
  }
}

.hero-section.has-banner .hero-title,
.hero-section.has-banner .hero-tagline {
  /* Visible, legible text over banner */
  color: #ffffff;
  text-shadow: 0 8px 30px rgba(0,0,0,0.35), 0 2px 8px rgba(0,0,0,0.25);
  height: auto;
  margin: 0 0 0.75rem;
  padding: 0;
  overflow: visible;
}

@media (max-width: 768px) {
  .hero-section.has-banner .hero-title {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
    line-height: 1.15;
  }
  .hero-section.has-banner .hero-tagline {
    font-size: clamp(1rem, 3.5vw, 1.25rem);
  }
}

.hero-section.has-banner .countdown-container {
  margin-top: clamp(8px, 3vh, 24px);
  margin-bottom: clamp(12px, 4vh, 28px);
}

.hero-section.has-banner .cta-container {
  gap: 0.75rem;
}

.hero-content {
  position: relative;
  z-index: 10; /* Above overlay */
  max-width: 1200px;
  padding: 2rem;
  animation: fadeInUp 1s ease-out;
}

.hero-title {
  background: linear-gradient(to right, #c084fc, #8b5cf6, #6366f1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
}

.hero-tagline {
  font-weight: 300;
  letter-spacing: 0.05em;
  color: rgba(226, 232, 240, 0.9);
  margin-bottom: 2.5rem;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Animated Countdown Capsules */
.countdown-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.countdown-item {
  background: rgba(30, 27, 75, 0.8);
  border: 2px solid rgba(139, 92, 246, 0.3);
  border-radius: 1rem;
  padding: 1rem 1.5rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
}

.countdown-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px -5px rgba(139, 92, 246, 0.4);
  border-color: rgba(139, 92, 246, 0.6);
}

.countdown-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 10px rgba(139, 92, 246, 0.7);
  font-variant-numeric: tabular-nums;
}

.countdown-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #a5b4fc;
  font-weight: 500;
}

/* Enhanced CTA Buttons */
.cta-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.cta-button {
  position: relative;
  padding: 0.9rem 2rem;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.03em;
  border-radius: 9999px;
  overflow: hidden;
  transition: all 0.3s ease;
  z-index: 1;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

.cta-primary {
  background: linear-gradient(to right, #8b5cf6, #6d28d9);
  color: white;
}

.cta-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, #6d28d9, #4c1d95);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cta-primary:hover::after {
  opacity: 1;
}

.cta-secondary {
  background: transparent;
  border: 2px solid rgba(139, 92, 246, 0.6);
  color: #c4b5fd;
}

.cta-secondary:hover {
  background: rgba(139, 92, 246, 0.1);
  transform: translateY(-3px);
}

.cta-success {
  background: linear-gradient(to right, #10b981, #059669);
  color: white;
}

.cta-success::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, #059669, #047857);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cta-success:hover::after {
  opacity: 1;
}

/* Section Title Enhancements */
.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 1.75rem; /* reduced because we use a separate divider element */
  padding-bottom: 0;
}

.section-title::after { content: none; }

/* About Section Enhancement */
.about-section {
  position: relative;
  background: linear-gradient(to bottom, rgba(17, 15, 46, 0.7), rgba(30, 27, 75, 0.7));
  border-radius: 20px;
  padding: 4rem 2rem;
  margin: 4rem auto;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.about-content {
  position: relative;
  z-index: 1;
}

.about-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill-opacity="0.05" width="50" height="50" x="0" y="0" /><rect fill-opacity="0.05" width="50" height="50" x="50" y="50" /></svg>');
  opacity: 0.1;
  z-index: 0;
}

/* Why Attend Section Enhancement */
#why-attend {
  position: relative;
  padding: 6rem 0;
  z-index: 1;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  background-color: #0F172A; /* Dark navy background */
  overflow: hidden;
}

#why-attend::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at top left, rgba(139, 92, 246, 0.3), transparent 70%),
              radial-gradient(ellipse at bottom right, rgba(99, 102, 241, 0.3), transparent 70%);
  z-index: -1;
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  width: 100%;
  max-width: 1280px; /* Match container max-width */
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
}

.feature-card {
  background: rgba(20, 15, 50, 0.6);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.2);
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.3);
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
  border-color: rgba(139, 92, 246, 0.4);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(99, 102, 241, 0.4));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.5), rgba(99, 102, 241, 0.5));
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.6);
}

.feature-icon svg {
  width: 40px;
  height: 40px;
  color: #c4b5fd;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon svg {
  color: #ddd6fe;
  transform: scale(1.1);
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 1rem;
}

.feature-text {
  color: #c4b5fd;
  line-height: 1.6;
  font-size: 1rem;
}

/* Gallery Section Enhancement */
.gallery-section {
  position: relative;
  padding: 6rem 0;
  background: linear-gradient(to bottom, rgba(30, 27, 75, 0.6), rgba(15, 12, 41, 0.7));
  overflow: hidden;
}

.gallery-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at bottom right, rgba(139, 92, 246, 0.2), transparent 70%);
  z-index: 0;
}

/* Enhanced gallery items */
.gallery-item {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  border-radius: 12px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(139, 92, 246, 0.25);
}

.gallery-item img {
  border-radius: 10px;
}

/* Event Categories Enhancement */
.event-filter-button {
  background: rgba(30, 27, 75, 0.6);
  color: #a5b4fc;
  border-radius: 9999px;
  padding: 0.5rem 1.25rem;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.event-filter-button:hover, 
.event-filter-button.active {
  background: linear-gradient(to right, #8b5cf6, #6d28d9);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(139, 92, 246, 0.25);
}

/* FAQ Section Enhancement */
#faqs {
  position: relative;
  padding: 6rem 0;
}

#faqs::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at top right, rgba(251, 113, 133, 0.1), transparent 70%);
  z-index: -1;
}

.faq-card {
  background: rgba(30, 27, 75, 0.6);
  border-radius: 12px;
  margin-bottom: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(251, 113, 133, 0.2);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.faq-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);
  border-color: rgba(251, 113, 133, 0.4);
}

.faq-icon {
  background: linear-gradient(135deg, #fb7185, #e11d48);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
  box-shadow: 0 10px 15px -3px rgba(225, 29, 72, 0.2);
}

.faq-question {
  position: relative;
  color: #fb7185;
  font-weight: 600;
  cursor: pointer;
  padding-right: 30px;
  flex: 1;
  transition: color 0.3s ease;
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.5rem;
  color: #fb7185;
  transition: transform 0.3s ease;
}

.faq-question.active {
  color: #f43f5e;
}

.faq-question.active::after {
  transform: rotate(45deg);
}

.faq-card {
  background: linear-gradient(145deg, rgba(30, 27, 75, 0.9), rgba(20, 17, 45, 0.9));
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(251, 113, 133, 0.2);
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
}

.faq-card:nth-child(2) {
  animation-delay: 0.2s;
}

.faq-card:nth-child(3) {
  animation-delay: 0.4s;
}

.faq-card:nth-child(4) {
  animation-delay: 0.6s;
}

.faq-card:nth-child(5) {
  animation-delay: 0.8s;
}

.faq-card:nth-child(6) {
  animation-delay: 1s;
}

.faq-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  border-color: rgba(251, 113, 133, 0.4);
}

.faq-card:has(.faq-question.active) {
  border-color: rgba(251, 113, 133, 0.6);
  box-shadow: 0 15px 30px rgba(251, 113, 133, 0.15);
  background: linear-gradient(145deg, rgba(35, 32, 80, 0.9), rgba(25, 22, 50, 0.9));
}

.faq-answer {
  padding: 0.75rem 1rem 0.75rem 3.5rem;
  color: #cbd5e1;
  line-height: 1.6;
  transition: all 0.3s ease;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}

.faq-answer.hidden {
  display: none;
}

.faq-answer:not(.hidden) {
  max-height: 500px;
  opacity: 1;
  padding-top: 1rem;
  padding-bottom: 1.5rem;
}

.faq-card p {
  margin-bottom: 0.75rem;
}

.faq-card p:last-child {
  margin-bottom: 0;
}

.faq-card a {
  color: #fb7185;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.faq-card a:hover {
  color: #f43f5e;
}

/* FAQ Section Enhancement */
#faqs {
  position: relative;
  z-index: 1;
}

#faqs::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at bottom right, rgba(251, 113, 133, 0.1), transparent 70%);
  z-index: -1;
}

#faqs .section-header .section-title {
  background: linear-gradient(to right, #fb7185, #f43f5e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

#faqs .grid {
  margin-top: 3rem;
}

.faq-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fb7185, #f43f5e);
  border-radius: 50%;
  margin-right: 1rem;
  flex-shrink: 0;
  box-shadow: 0 10px 15px -3px rgba(225, 29, 72, 0.2);
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
}

.faq-icon::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 70%);
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.5s ease-out;
}

.faq-card:hover .faq-icon {
  box-shadow: 0 15px 20px -5px rgba(225, 29, 72, 0.3);
  transform: scale(1.05);
}

.faq-card:hover .faq-icon::before {
  animation: pulseGlow 2s ease-out infinite;
}

@keyframes pulseGlow {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 0;
    transform: scale(1.2);
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Schedule Section Enhancement */
#schedule {
  position: relative;
  padding: 6rem 0;
  z-index: 1;
}

#schedule::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at bottom left, rgba(56, 189, 248, 0.1), transparent 70%);
  z-index: -1;
}

.schedule-tabs {
  margin-bottom: 3rem;
}

.schedule-tabs .flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
}

.schedule-tab {
  background: rgba(30, 27, 75, 0.6);
  color: #94a3b8;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.schedule-tab:hover {
  color: #e2e8f0;
  background: rgba(56, 189, 248, 0.1);
}

.schedule-tab.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(14, 165, 233, 0.2));
  color: #38bdf8;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border-color: rgba(56, 189, 248, 0.4);
}

.schedule-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 3px;
  background: linear-gradient(to right, #38bdf8, #0ea5e9);
  border-radius: 3px;
}

.schedule-day {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.schedule-day.active {
  display: block;
  opacity: 1;
  animation: fadeIn 0.5s ease forwards;
}

.timeline {
  position: relative;
  padding: 2rem 0;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50px;
  width: 2px;
  background: linear-gradient(to bottom, #38bdf8, #0ea5e9, #0284c7);
  opacity: 0.6;
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  padding-left: 100px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: 42px;
  top: 0;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  border-radius: 50%;
  transform: translateX(-50%);
  border: 3px solid rgba(15, 12, 41, 0.9);
  z-index: 2;
  box-shadow: 0 0 0 5px rgba(56, 189, 248, 0.2);
}

.timeline-content {
  background: rgba(30, 27, 75, 0.6);
  border-radius: 12px;
  padding: 1.5rem;
  position: relative;
  border-left: 3px solid #38bdf8;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-5px);
}

.time {
  color: #38bdf8;
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.event h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.schedule-download a {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  box-shadow: 0 10px 15px -3px rgba(2, 132, 199, 0.3);
  transition: all 0.3s ease;
}

.schedule-download a:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 25px -5px rgba(2, 132, 199, 0.4);
}

.schedule-download svg {
  margin-right: 0.5rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Media Queries */
@media (max-width: 1200px) {
  .feature-cards {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    padding: 0 2rem;
  }
  
  #why-attend {
    padding: 5rem 0;
  }
}

@media (max-width: 768px) {
  .hero-section.has-banner {
  padding-top: calc(56px + env(safe-area-inset-top));
  padding-bottom: 20px;
  }

  /* On small screens, allow hero to be a bit shorter if needed */
  .hero-section {
    min-height: calc(90vh - var(--header-h, 0px));
  }

  @supports (height: 100svh) {
    .hero-section {
      min-height: calc(90svh - var(--header-h, 0px));
    }
  }

  .countdown-item {
  padding: 0.6rem 1rem;
  }
  
  .countdown-number {
  font-size: 1.85rem;
  }
  
  .cta-button {
  padding: 0.75rem 1.25rem;
  min-height: 44px; /* Comfortable tap target */
  }
  
  .feature-cards {
    grid-template-columns: 1fr;
    padding: 0 1.5rem;
    gap: 1.5rem;
  }
  
  #why-attend {
    padding: 4rem 0;
  }
  
  .timeline::before {
    left: 30px;
  }
  
  .timeline-item {
    padding-left: 60px;
  }
  
  .timeline-dot {
    left: 22px;
  }
  
  .timeline-content {
    margin-right: 1rem; /* Add right margin to prevent touching screen edge */
  }
  
  .schedule-tab {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
  }
  
  /* FAQ mobile styles */
  .faq-question {
    font-size: 1.1rem;
    line-height: 1.4;
    padding-right: 20px;
  }
  
  .faq-question::after {
    font-size: 1.2rem;
  }
  
  .faq-card .p-6 {
    padding: 1rem;
  }
  
  .faq-answer {
    padding-left: 2.5rem;
  }
  
  .faq-icon {
    width: 2rem;
    height: 2rem;
  }
}

/* Mobile: keep countdown in a single row */
@media (max-width: 480px) {
  .countdown-container {
    flex-wrap: nowrap;
    gap: 0.5rem;
    justify-content: center;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
  }
  .countdown-container::-webkit-scrollbar { display: none; } /* WebKit */
  .countdown-item {
    flex: 0 0 auto;
    border-radius: 0.75rem;
    padding: 0.5rem 0.75rem;
  }
  .countdown-number {
    width: 52px;
    height: 52px;
    font-size: 1.5rem;
  }
  .countdown-label {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
  }
}

@media (max-width: 480px) {
  .hero-content {
    padding: 1rem;
    margin-top: clamp(8px, 6vh, 28px);
  }
  .cta-container {
    gap: 0.75rem;
  }
  .cta-button {
    width: 100%;
    max-width: 360px;
  }
  .feature-cards {
    padding: 0 1rem;
    gap: 1.25rem;
  }
  
  .feature-card {
    padding: 2rem 1.5rem;
  }
  
  #why-attend {
    padding: 3.5rem 0;
  }
}

/* About Section Video Styles */
.about-section video {
  border-radius: 0.75rem;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.about-section video:hover {
  transform: scale(1.02);
}

/* Mute/Unmute Indicator Styles */
#mute-indicator {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.5rem;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

#mute-indicator.show {
  opacity: 1;
}

#mute-indicator svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Hide default video controls for autoplay videos */
.about-section video[autoplay]::-webkit-media-controls {
  display: none !important;
}

.about-section video[autoplay]::-moz-media-controls {
  display: none !important;
}

/* Custom video controls styling */
.about-section video::-webkit-media-controls-panel {
  background-color: rgba(15, 23, 42, 0.9);
  border-radius: 0 0 0.75rem 0.75rem;
}

.about-section video::-webkit-media-controls-play-button,
.about-section video::-webkit-media-controls-mute-button,
.about-section video::-webkit-media-controls-fullscreen-button {
  filter: invert(1);
}

.about-section video::-webkit-media-controls-timeline {
  background-color: rgba(99, 102, 241, 0.3);
  border-radius: 4px;
}

.about-section video::-webkit-media-controls-current-time-display,
.about-section video::-webkit-media-controls-time-remaining-display {
  color: #e2e8f0;
  font-family: 'Inter', sans-serif;
}

/* Firefox video controls */
.about-section video::-moz-media-controls {
  background-color: rgba(15, 23, 42, 0.9);
}

/* Ensure video maintains aspect ratio */
.about-section .aspect-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Video loading state */
.about-section video[preload="metadata"] {
  background: linear-gradient(135deg, #1e293b, #334155);
}

/* Responsive video adjustments */
@media (max-width: 768px) {
  .about-section video {
    border-radius: 0.5rem;
  }
  
  .about-section .aspect-video {
    margin-bottom: 2rem;
  }
}
