/* Existing styles from your index.css */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-fade-up {
  animation: fadeUp 1.2s ease-out forwards;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
.animate-marquee {
  animation: marquee 30s linear infinite;
}

@keyframes slide-out-left {
  to {
    transform: translateX(-100%);
    opacity: 0;
  }
}
.slide-out-left {
  animation: slide-out-left 0.6s ease forwards;
}

@keyframes slide-in-right {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0%);
    opacity: 1;
  }
}
.animate-slide-in-right {
  animation: slide-in-right 1.6s ease forwards;
}

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

.gwendolyn-regular {
  font-family: "Gwendolyn", cursive;
  font-weight: 400;
  font-style: normal;
}

.gwendolyn-bold {
  font-family: "Gwendolyn", cursive;
  font-weight: 700;
  font-style: normal;
}

.fade-in {
  opacity: 0;
  animation: fade-in 1.2s ease-out forwards;
}

#music-toggle img {
  transition: transform 0.3s ease;
}

#music-toggle:hover img {
  transform: scale(1.1);
}

.purpose-btn,
.course-btn {
  transition: transform 0.3s ease;
}
.purpose-btn:hover,
.course-btn:hover {
  transform: scale(1.05);
}

.social-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.social-card:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
.animate-scroll {
  animation: scroll 25s linear infinite;
}

.mobile-menu {
  display: none;
}
.mobile-menu.active {
  display: block;
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  .hero-text {
    font-size: 4rem !important;
  }
  .hero-text-large {
    font-size: 5rem !important;
  }
  .hero-text-xlarge {
    font-size: 6rem !important;
  }
  .hero-subtext {
    margin-left: 2rem !important;
    font-size: 1.2rem !important;
  }
  .hero-content {
    padding-left: 2rem !important;
  }
}
@media (max-width: 480px) {
  .hero-text {
    font-size: 3rem !important;
  }
  .hero-text-large {
    font-size: 3.5rem !important;
  }
  .hero-text-xlarge {
    font-size: 4rem !important;
  }
  .hero-subtext {
    margin-left: 1rem !important;
    font-size: 1rem !important;
  }
  .hero-content {
    padding-left: 1rem !important;
  }
}

.visitor-counter {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.visitor-counter img {
  width: 120px;
  height: auto;
}

.group:hover .group-hover\:block {
  display: block;
}

#music-cursor {
  position: fixed;
  pointer-events: none;
  z-index: 1000;
  font-size: 20px;
  color: #800000;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.1s linear;
}

html {
  scroll-padding-top: 100px;
  scroll-behavior: smooth;
}

.sticky-nav {
  position: sticky;
  top: 0;
  z-index: 40;
}

.course-box {
  transition: all 0.5s ease;
  cursor: pointer;
  z-index: 10;
}

.hidden {
  display: none;
}

@keyframes slideFadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-slide-in-1 {
  animation: slideFadeInUp 0.8s ease-out forwards;
  animation-delay: 0.2s;
}
.animate-slide-in-2 {
  animation: slideFadeInUp 0.8s ease-out forwards;
  animation-delay: 0.6s;
}
.animate-slide-in-3 {
  animation: slideFadeInUp 0.8s ease-out forwards;
  animation-delay: 1s;
}

html,
body {
  overflow-x: hidden;
}
#menu-content {
  transition: max-height 0.3s ease;
  max-height: 0;
  overflow: hidden;
  width: 100vw;
}
#menu-toggle:checked ~ #menu-content {
  max-height: 500px;
}
#menu-content a {
  display: block;
  padding: 0.75rem 1rem;
  color: #3e2723;
  transition: background 0.2s ease;
}
#menu-content a:hover {
  background-color: #f7e3b2;
}

.hubballi-regular {
  font-family: "Hubballi", sans-serif;
  font-weight: 400;
  font-style: normal;
}

/* Updated styles for Class Video Carousel */
.class-video-carousel {
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.class-video-carousel::before,
.class-video-carousel::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 10;
}
.class-video-carousel::before {
  left: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.3), transparent);
}
.class-video-carousel::after {
  right: 0;
  background: linear-gradient(to left, rgba(0, 0, 0, 0.3), transparent);
}
.class-video-carousel .inline-flex {
  animation: scroll 25s linear infinite;
}
.class-video-carousel:hover .inline-flex {
  animation-play-state: paused;
}
.class-video-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.class-video-card:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.video-overlay {
  transition: opacity 0.3s ease;
}
.video-overlay span {
  font-size: 1.25rem;
}
@media (max-width: 768px) {
  .class-video-card {
    width: 400px;
    height: 225px;
  }
  .video-overlay span {
    font-size: 1.1rem;
  }
  .class-video-carousel::before,
  .class-video-carousel::after {
    width: 40px;
  }
}
@media (max-width: 480px) {
  .class-video-card {
    width: 320px;
    height: 180px;
  }
  .video-overlay span {
    font-size: 1rem;
  }
  .class-video-carousel::before,
  .class-video-carousel::after {
    width: 30px;
  }
}

/* Updated styles for Recent Shorts Section */
.shorts-carousel {
  position: relative;
  overflow: hidden;
}

.shorts-container {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  padding: 0 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.shorts-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.short-card {
  flex: 0 0 auto;
  width: 280px;
  height: 498px; /* 9:16 aspect ratio (280 * 16 / 9 ≈ 498) */
  scroll-snap-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.short-card:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .short-card {
    width: 240px;
    height: 426px; /* Maintain 9:16 aspect ratio (240 * 16 / 9 ≈ 426) */
  }
  .shorts-container {
    gap: 1rem;
    padding: 0 0.5rem;
  }
}

@media (max-width: 480px) {
  .short-card {
    width: 180px;
    height: 320px; /* Maintain 9:16 aspect ratio (180 * 16 / 9 ≈ 320) */
  }
  .shorts-container {
    gap: 0.75rem;
    padding: 0 0.25rem;
  }
}

.short-card span {
  font-size: 1.25rem;
}

@media (max-width: 768px) {
  .short-card span {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .short-card span {
    font-size: 1rem;
  }
}

/* Styles for FAQ Accordion */
.faq-section-toggle {
  transition: background-color 0.3s ease;
}

.faq-section-toggle:hover {
  background-color: #f7e3b2;
}

.faq-section-content {
  transition: max-height 0.3s ease;
  overflow: hidden;
}

.faq-section-toggle[aria-expanded="true"] + .faq-section-content {
  max-height: 1000px; /* Adjust based on content size */
}

.faq-section-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

@media (max-width: 768px) {
  .faq-section-toggle {
    font-size: 1.75rem;
  }
  .faq-question {
    font-size: 1.125rem;
  }
  .faq-answer {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .faq-section-toggle {
    font-size: 1.5rem;
  }
  .faq-question {
    font-size: 1rem;
  }
  .faq-answer {
    font-size: 0.875rem;
  }
}

#music-cursor {
  position: fixed;
  pointer-events: none;
  z-index: 1000;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.1s linear;
}
#music-cursor img {
  width: 32px;
  height: 32px;
}
