body {
  font-family: "Inter", sans-serif;
  background-color: #0a0504;
}

/* Carousel Styles - Updated */
.carousel-container {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.carousel-slide {
  min-width: 100%;
  flex-shrink: 0;
}

/* Aspect ratio for 1917:398 */
.aspect-\[1917\/398\] {
  aspect-ratio: 1917 / 398;
}

/* Fallback for older browsers */
@supports not (aspect-ratio: 1917 / 398) {
  .aspect-\[1917\/398\]::before {
    content: "";
    float: left;
    padding-top: 20.76%;
    /* (398/1917) * 100 */
  }

  .aspect-\[1917\/398\]::after {
    content: "";
    display: block;
    clear: both;
  }
}

.carousel-dot.active {
  background-color: #e14a16;
  width: 24px;
  border-radius: 9999px;
}

/* Touch swipe support */
@media (hover: none) and (pointer: coarse) {
  .carousel-track {
    touch-action: pan-y pinch-zoom;
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .carousel-track {
    transition: none;
  }
}

/* Custom pulse animation for final step */
@keyframes pulse-slow {
  0%,
  100% {
    box-shadow: 0 10px 25px -5px rgba(225, 74, 22, 0.4);
  }

  50% {
    box-shadow: 0 20px 35px -5px rgba(225, 74, 22, 0.6);
  }
}

.animate-pulse-slow {
  animation: pulse-slow 3s ease-in-out infinite;
}

/* Hide every other connector on tablet to create 2x2 grid flow */
@media (min-width: 640px) and (max-width: 1023px) {
  .sm\:odd\:hidden:nth-child(odd) {
    display: none;
  }
}

/* Hide scrollbar */
#teachersCarousel {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

#teachersCarousel::-webkit-scrollbar {
  display: none;
}

/* Smooth slide transition */
.teachers-track {
  will-change: transform;
}

/* Auto-advance animation */
@keyframes autoSlide {
  0%,
  20% {
    transform: translateX(0);
  }

  16.66%,
  36.66% {
    transform: translateX(-100%);
  }

  33.33%,
  53.33% {
    transform: translateX(-200%);
  }

  50%,
  70% {
    transform: translateX(-300%);
  }

  66.66%,
  86.66% {
    transform: translateX(-400%);
  }

  83.33%,
  100% {
    transform: translateX(-500%);
  }
}

.teachers-track.auto-play {
  animation: autoSlide 24s infinite ease-in-out;
}

.teachers-track.paused {
  animation-play-state: paused;
}

/* About US */
.gradient-text {
  background: linear-gradient(to right, #e14a16, #f06a2a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Contact US */
.glass-card {
  background: rgba(26, 7, 4, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(225, 74, 22, 0.2);
}

.input-field {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.input-field:focus {
  border-color: #e14a16;
  box-shadow: 0 0 0 3px rgba(225, 74, 22, 0.1);
  outline: none;
}

.input-field.error {
  border-color: #ef4444;
}

.input-field.success {
  border-color: #22c55e;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }
}

.float-animation {
  animation: float 6s ease-in-out infinite;
}

.social-icon {
  transition: all 0.3s ease;
}

.social-icon:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 22px rgba(225, 74, 22, 0.45);
}

/* Mobile Responsive Timeline */
@media (max-width: 768px) {
  /* Move center line to left side on mobile */
  .timeline-container > .timeline-line {
    left: 2rem !important;
    transform: none !important;
  }

  /* Stack items vertically */
  .timeline-item {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding-left: 4rem !important;
    position: relative !important;
    margin-bottom: 2rem !important;
  }

  /* Full width content */
  .timeline-item > .timeline-content {
    width: 100% !important;
    padding: 0 !important;
    text-align: left !important;
  }

  /* Adjust dot position to left line */
  .timeline-item > .timeline-dot {
    left: 2rem !important;
    transform: translateX(-50%) !important;
  }

  /* Card text alignment */
  .timeline-item .timeline-card {
    text-align: left !important;
    margin-top: 0.5rem !important;
  }

  /* Year styling */
  .timeline-item .timeline-year {
    font-size: 1.125rem !important;
    margin-bottom: 0.25rem !important;
  }

  /* Remove text-right on mobile */
  .timeline-item .text-right {
    text-align: left !important;
  }
}

/* Courses */
.course-card {
  transition: all 0.3s ease;
}

.course-card:hover {
  transform: translateY(-8px);
}

.glass-card {
  background: rgba(26, 7, 4, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(225, 74, 22, 0.2);
}

.filter-btn.active {
  background: #e14a16;
  color: white;
  box-shadow: 0 0 22px rgba(225, 74, 22, 0.45);
}

.search-input {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.search-input:focus {
  border-color: #e14a16;
  box-shadow: 0 0 0 3px rgba(225, 74, 22, 0.1);
  outline: none;
}

.float-animation {
  animation: float 6s ease-in-out infinite;
}

.category-badge {
  background: linear-gradient(
    135deg,
    rgba(225, 74, 22, 0.2),
    rgba(240, 106, 42, 0.1)
  );
}

/* Learning Resources */
.resource-card {
  transition: all 0.3s ease;
}

.resource-card:hover {
  transform: translateY(-4px);
  border-color: rgba(225, 74, 22, 0.5);
}

.category-tab.active {
  background: linear-gradient(135deg, #e14a16, #f06a2a);
  color: white;
  box-shadow: 0 0 22px rgba(225, 74, 22, 0.45);
}

.download-btn {
  position: relative;
  overflow: hidden;
}

.download-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.download-btn:hover::before {
  left: 100%;
}

.pdf-icon {
  color: #ef4444;
}
.video-icon {
  color: #3b82f6;
}
.doc-icon {
  color: #22c55e;
}
.quiz-icon {
  color: #f59e0b;
}
