/* Responsive Carousel Fix - Ensure horizontal scrolling on all screen sizes */

/* Teacher Cards Carousel Fix */
@media (max-width: 1100px) {
  .teacher-cards {
    flex-direction: row !important; /* Override to maintain horizontal layout */
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    padding-bottom: 20px !important;
    gap: 16px !important;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    align-items: stretch !important;
    justify-content: flex-start !important;
    width: 100% !important;
  }
  
  .teacher-card {
    flex: 0 0 auto !important; /* Don't grow or shrink */
    width: 280px !important;
    min-width: 280px !important;
    max-width: 280px !important;
    scroll-snap-align: start !important;
    margin-right: 16px !important;
  }
}

/* Pricing Cards Carousel Fix */
@media (max-width: 1100px) {
  .pricing-grid {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    padding-bottom: 20px !important;
    gap: 16px !important;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    align-items: stretch !important;
    justify-content: flex-start !important;
    width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  
  .pricing-grid .pricing-card {
    flex: 0 0 auto !important;
    width: 280px !important;
    min-width: 280px !important;
    max-width: 280px !important;
    scroll-snap-align: start !important;
    margin-right: 16px !important;
  }
  
  /* Hide the swiper version which might be conflicting */
  .pricing-swiper {
    display: none !important;
  }
}

/* Add scrollbar styling for better usability */
.teacher-cards::-webkit-scrollbar,
.pricing-grid::-webkit-scrollbar {
  height: 4px;
  width: 4px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}

.teacher-cards::-webkit-scrollbar-thumb,
.pricing-grid::-webkit-scrollbar-thumb {
  background: rgba(125, 59, 237, 0.5);
  border-radius: 4px;
}

/* Add affordance indicators to show scrollability */
.teacher-slider::after,
.pricing-grid::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 40px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.8));
  pointer-events: none;
  z-index: 1;
}

/* Add container positioning */
.teacher-slider,
.pricing-section {
  position: relative;
}

/* Add navigation indicators for tablet users */
.carousel-nav-hint {
  text-align: center;
  padding: 10px 0;
  color: #666;
  font-size: 14px;
  display: none;
}

@media (max-width: 1100px) and (min-width: 768px) {
  .carousel-nav-hint {
    display: block;
  }
}
