body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
    "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}

 #app {
   transition: opacity 260ms ease, transform 320ms ease;
   will-change: opacity, transform;
 }

 .app-transitioning {
   opacity: 0;
   transform: translateY(6px);
 }

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a0aec0;
}

/* Custom animations */
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-pulse-slow {
  animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes textEnter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.enter-text {
  opacity: 0;
  transform: translateY(8px);
  animation: textEnter 520ms ease forwards;
  animation-delay: var(--enter-delay, 0ms);
}

@keyframes fadeEnter {
  from {
    opacity: 0;
    filter: blur(6px);
  }
  to {
    opacity: 1;
    filter: blur(0px);
  }
}

.enter-fade {
  opacity: 0;
  filter: blur(6px);
  animation: fadeEnter 700ms ease forwards;
  animation-delay: var(--enter-delay, 0ms);
}

/* Small helper so modal body text looks decent if HTML is injected */
.prose p {
  margin: 0.75rem 0;
}

button:focus,
button:focus-visible,
a:focus,
a:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 600ms ease, transform 650ms ease;
  will-change: opacity, transform;
}

.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.text-shadow-soft {
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

.learning-carousel-section {
  width: 100%;
  min-height: 820px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.learning-carousel {
  position: relative;
  width: 100%;
  max-width: 1700px;
  height: 720px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
}

.learning-carousel-card {
  position: absolute;
  width: min(92vw, 1120px);
  height: 640px;
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.7s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  background: #111;
}

.learning-carousel-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.learning-carousel-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  transition: all 0.7s ease;
}

.learning-carousel-card.active {
  transform: translateX(0) scale(1);
  z-index: 5;
  opacity: 1;
  filter: blur(0px);
}

.learning-carousel-card.active::after {
  background: rgba(0, 0, 0, 0.02);
}

.learning-carousel-card.left-1 {
  transform: translateX(-560px) scale(0.62) rotateY(18deg);
  z-index: 4;
  opacity: 0.82;
  filter: blur(1px);
}

.learning-carousel-card.left-1::after {
  background: linear-gradient(to right, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.15));
}

.learning-carousel-card.right-1 {
  transform: translateX(560px) scale(0.62) rotateY(-18deg);
  z-index: 4;
  opacity: 0.82;
  filter: blur(1px);
}

.learning-carousel-card.right-1::after {
  background: linear-gradient(to left, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.15));
}

.learning-carousel-card.left-2 {
  transform: translateX(-880px) scale(0.42) rotateY(28deg);
  z-index: 3;
  opacity: 0.38;
  filter: blur(2.5px);
}

.learning-carousel-card.left-2::after {
  background: linear-gradient(to right, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.45));
}

.learning-carousel-card.right-2 {
  transform: translateX(880px) scale(0.42) rotateY(-28deg);
  z-index: 3;
  opacity: 0.38;
  filter: blur(2.5px);
}

.learning-carousel-card.right-2::after {
  background: linear-gradient(to left, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.45));
}

.learning-carousel-card.hidden {
  transform: scale(0.8);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

.learning-carousel-controls {
  position: absolute;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.learning-carousel-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.08);
  color: #ddd;
  font-size: 24px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.learning-carousel-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  transform: scale(1.05);
}

@media (max-width: 1100px) {
  .learning-carousel-card {
    width: min(92vw, 920px);
    height: 560px;
  }

  .learning-carousel-card.left-1 {
    transform: translateX(-460px) scale(0.58) rotateY(18deg);
  }

  .learning-carousel-card.right-1 {
    transform: translateX(460px) scale(0.58) rotateY(-18deg);
  }

  .learning-carousel-card.left-2 {
    transform: translateX(-700px) scale(0.4) rotateY(24deg);
  }

  .learning-carousel-card.right-2 {
    transform: translateX(700px) scale(0.4) rotateY(-24deg);
  }
}

@media (max-width: 768px) {
  .learning-carousel {
    height: 520px;
  }

  .learning-carousel-card {
    width: 92vw;
    height: 420px;
    border-radius: 20px;
  }

  .learning-carousel-card.left-1 {
    transform: translateX(-270px) scale(0.62) rotateY(15deg);
  }

  .learning-carousel-card.right-1 {
    transform: translateX(270px) scale(0.62) rotateY(-15deg);
  }

  .learning-carousel-card.left-2 {
    transform: translateX(-460px) scale(0.42) rotateY(20deg);
  }

  .learning-carousel-card.right-2 {
    transform: translateX(460px) scale(0.42) rotateY(-20deg);
  }

  .learning-carousel-controls {
    bottom: 50px;
  }

  .learning-carousel-btn {
    width: 48px;
    height: 48px;
  }
}

 .contact-sponsor-strip {
   margin-top: 12px;
   height: 64px;
   border-radius: 9999px;
   border: 1px solid rgba(0, 0, 0, 0.08);
   background: rgba(255, 255, 255, 0.8);
   overflow: hidden;
   display: flex;
   align-items: center;
 }

 .contact-sponsor-track {
   display: flex;
   align-items: center;
   gap: 28px;
   padding-left: 18px;
   padding-right: 18px;
   width: max-content;
   animation: contact-sponsor-marquee 18s linear infinite;
 }

 .contact-sponsor-strip:hover .contact-sponsor-track {
   animation-play-state: paused;
 }

 .contact-sponsor-item {
   height: 42px;
   display: flex;
   align-items: center;
   justify-content: center;
 }

 .contact-sponsor-item img {
   height: 42px;
   width: auto;
   object-fit: contain;
   filter: grayscale(0.1);
   opacity: 0.92;
 }

 @keyframes contact-sponsor-marquee {
   from {
     transform: translateX(0);
   }
   to {
     transform: translateX(-50%);
   }
 }
