/**
 * Home Page Styles
 * OTA Booking System - Home Template
 */

/* Override Astra Container for Full Width */


.ast-builder-layout-element .ast-flex .site-header-focus-item {
  padding: 20px !important;
}

.ast-builder-layout-element[data-section="title_tagline"] {
  padding: 0 20px !important;
}

.site-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.site-content .ota-container {
  display: block !important;
  padding: 0 !important;
  margin: 0 !important;
}

.home-ota {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.home-ota .ota-container {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-top: 0 !important;
}

/* Hero Section */
.home-ota .hero {
  background-color: rgb(var(--primary));
  /* background-image: url('../images/bg_fade.webp'); */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  color: #fff;
  padding: 100px 0 120px;
  text-align: center;
  margin-top: 0;
  height: 90vh;
}

/* Hero background slider overlay (for smooth fade between images) */
.home-ota .hero .hero-bg-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 0;
}

.hero .container h1,
.hero .container h2,
.hero .container h3,
.hero .container h4,
.hero .container h5,
.hero .container h6 {
  color: rgb(var(--foreground)) !important;
}

.hero-subtitle {
  color: rgb(var(--foreground)) !important;
}

.home-ota .hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom,
      rgba(var(--primary-black) / 0.93) 0%,
      rgba(var(--primary-black) / 0.5) 30%,
      rgba(var(--primary-black) / 0.5) 70%,
      rgba(var(--surface) / 0) 100%);
  z-index: 1;
}

.home-ota .hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
  margin: 0 auto;
  padding: 0 40px;
}


.home-ota .hero h1 {
  font-size: 5rem;
  font-weight: 700;
  margin-bottom: 16px;
  /* Golden gradient text */
  background: linear-gradient(90deg, #f4d369 0%, #ffeaa8 20%, #fff8df 50%, #FFD700 70%, #fbf1cc 80%, #f4d369 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #ffeaa8;
  /* Fallback color for browsers that don't support gradient text */
  animation: gradient-shift 30s ease-in-out infinite;
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.home-ota .hero-subtitle {
  font-weight: 600;
  color: rgb(var(--background)) !important;
  text-transform: uppercase;
  font-size: 1.25rem;
  margin: 0px !important;
  opacity: 0.95;
}


/* Hero Info Bar - Desktop: Static, Mobile: Loop Scroll */
.home-ota .hero-info-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(var(--primary-black) / 0.5);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  padding: 10px 20px;
  z-index: 2;
  width: 100%;
  box-sizing: border-box;
  overflow: visible;
}

.home-ota .hero-info-scroll {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-around;
  align-items: center;
  overflow: visible;
  width: 100%;
}

.home-ota .hero-info-track {
  display: flex;
  gap: 20px;
  width: 100%;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  animation: none;
}

.home-ota .hero-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 200px;
  max-width: 250px;
  justify-content: center;
  flex-shrink: 0;
}

/* Hide duplicate items on desktop */
.home-ota .hero-info-item:nth-child(n+5) {
  display: none;
}

.home-ota .hero-info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.home-ota .hero-info-icon svg {
  width: 100%;
  height: 100%;
}

.home-ota .hero-info-icon .ota-icon-svg {
  width: 40px;
  height: 40px;
  color: #FFD700;
  fill: none;
  stroke: #FFD700;
  stroke-width: 2.5;
}

.home-ota .hero-info-text {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 500;
  white-space: nowrap;
}

/* Infinite scroll animation - MOBILE ONLY */
@keyframes hero-info-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Search Form styles moved to search-results.css */

/* Section Styling */
.home-ota section {
  padding: 40px 0;
}

.home-ota .container {
  width: 100%;
  margin: 0 auto;
  padding: 0 40px;
}

.home-ota section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 40px;
  text-align: center;
  color: rgb(var(--foreground));
}

/* Popular Routes Section */
.home-ota .popular-routes {
  background: rgb(var(--surface));
}

.home-ota .popular-routes .ota-routes-grid {
  max-width: 70%;
  margin: 0 auto;
}

/* Features Section */
.home-ota .features {

  background-image: url('../images/bg_feature.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.home-ota .features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom,
      rgba(var(--surface) / 1) 0%,
      rgba(var(--background) / 0.5) 30%,
      rgba(var(--background) / 0.5) 70%,
      rgba(var(--surface) / 1) 100%);
  z-index: 0;
}

.home-ota .features .container {
  position: relative;
  z-index: 1;
}

.home-ota .features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(min-content, auto);
  gap: 24px;
  margin-top: 40px;
  max-width: 100%;
}

.home-ota .feature-item {
  text-align: left;
  padding: 24px 24px 28px;
  background: rgb(var(--background));
  border-radius: 18px;
  border: 1px solid rgba(var(--border) / 0.9);
  box-shadow: 0 18px 45px rgba(var(--foreground) / 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* CTA button anchored at bottom-left of feature card */
.home-ota .feature-item .feature-cta {
  margin-top: auto;
  align-self: flex-start;
  padding-left: 32px;
  padding-right: 32px;
  border-radius: 999px;
  font-weight: 600;
}

/* Desktop layout: 2 cards on the left, 1 tall card on the right, 1 card spanning bottom-left */
.home-ota .features-grid .feature-item:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
}

.home-ota .features-grid .feature-item:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
}

.home-ota .features-grid .feature-item:nth-child(3) {
  grid-column: 1 / span 2;
  grid-row: 2;
}

.home-ota .features-grid .feature-item:nth-child(4) {
  grid-column: 3;
  grid-row: 1 / span 2;
}

.home-ota .feature-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(var(--primary) / 0.18);
  border-color: rgba(var(--primary) / 0.5) !important;
}

/* Highlight the last feature card similar to a primary panel */
.home-ota .features-grid .feature-item:last-child {
  background: linear-gradient(135deg, rgba(var(--primary) / 0.1), rgba(var(--secondary) / 0.95));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(30px);
  border: none !important;
  color: rgb(var(--background));
}



.home-ota .features-grid .feature-item:last-child h3,
.home-ota .features-grid .feature-item:last-child p {
  color: rgb(var(--background));
}

.home-ota .feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(var(--border) / 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 8px;
  background: rgba(var(--background) / 0.9);
}

.home-ota .features-grid .feature-item:last-child .feature-icon {
  border-color: rgba(var(--background) / 0.3);
  background: rgba(var(--background) / 0.08);
}

.home-ota .feature-item h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: rgb(var(--foreground));
}

.home-ota .feature-item p {
  color: rgb(var(--muted));
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Customer Reviews Section */
.home-ota .home-reviews {
  padding: 60px 0 80px;
  background: rgb(var(--background));
  text-align: center;
}

.home-ota .home-reviews-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgb(var(--primary));
  margin: 0 0 8px;
}

.home-ota .home-reviews-title {
  font-size: 2rem;
  font-weight: 700;
  color: rgb(var(--foreground));
  margin: 0 0 12px;
}

.home-ota .home-reviews-tagline {
  font-size: 1rem;
  color: rgb(var(--muted));
  margin: 0 0 40px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.home-ota .home-reviews-carousel {
  max-width: 720px;
  margin: 0 auto;
}

.home-ota .home-reviews-slide {
  display: none;
  padding: 24px 16px;
}

.home-ota .home-reviews-slide.is-active {
  display: block;
  animation: home-reviews-fade 0.3s ease;
}

@keyframes home-reviews-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.home-ota .home-reviews-quote {
  font-size: 4rem;
  line-height: 1;
  color: rgb(var(--primary));
  opacity: 0.4;
  margin-bottom: 16px;
}

.home-ota .home-reviews-stars {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 20px;
}

.home-ota .home-reviews-star {
  font-size: 1.5rem;
  color: rgba(var(--muted) / 0.4);
}

.home-ota .home-reviews-star.is-filled {
  color: rgb(var(--primary));
}

.home-ota .home-reviews-text {
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgb(var(--foreground));
  margin: 0 0 24px;
  font-style: italic;
}
@media (max-width: 768px) {
  .home-ota .home-reviews-text {
    font-size: 1rem;
  }
  .home-reviews-quote{
    font-size: 3rem;
  }
}

.home-ota .home-reviews-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.home-ota .home-reviews-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: rgb(var(--foreground));
  font-style: normal;
}

.home-ota .home-reviews-route {
  font-size: 0.875rem;
  color: rgb(var(--muted));
}

.home-ota .home-reviews-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
}

.home-ota .home-reviews-prev,
.home-ota .home-reviews-next {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgb(var(--border));
  background: rgb(var(--background));
  color: rgb(var(--foreground));
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}

.home-ota .home-reviews-prev span,
.home-ota .home-reviews-next span {
  font-size: 1.25rem;
  line-height: 1;
}

.home-ota .home-reviews-prev:hover,
.home-ota .home-reviews-next:hover {
  background: rgb(var(--surface));
  border-color: rgb(var(--primary));
  color: rgb(var(--primary));
}

.home-ota .home-reviews-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.home-ota .home-reviews-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgb(var(--border));
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, width 0.2s;
}

.home-ota .home-reviews-dot.is-active {
  width: 24px;
  border-radius: 4px;
  background: rgb(var(--primary));
}

/* Partners Section (Đối tác - uses ota_partner CPT) */
.home-ota .home-partners {
  padding: 60px 0 80px;
  background: rgba(var(--primary) / 0.06);
  text-align: center;
}

.home-ota .home-partners__title {
  font-size: 2rem;
  font-weight: 700;
  color: rgb(var(--primary));
  margin: 0 0 8px;
  /* text-transform: uppercase; */
  letter-spacing: 0.05em;
}

.home-ota .home-partners__subtitle {
  font-size: 1rem;
  color: rgba(var(--foreground) / 0.7);
  margin: 0 0 40px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* Partners: Desktop grid (ẩn mobile) */
.home-ota .home-partners__grid--desktop {
  display: none;
}

@media (min-width: 769px) {
  .home-ota .home-partners__grid--desktop {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    align-items: center;
    justify-items: center;
    max-width: 1000px;
    margin: 0 auto;
  }
}

/* Partners: Mobile carousel (scroll-snap như Operators) */
.home-ota .home-partners__carousel {
  display: none;
}

@media (max-width: 768px) {
  .home-ota .home-partners__carousel {
    display: flex;
    position: relative;
    align-items: center;
    gap: 8px;
  }
}

.home-ota .home-partners__track {
  flex: 1;
  min-width: 0;
}

@media (max-width: 768px) {
  .home-ota .home-partners__title {
    font-size: 1.5rem;
    letter-spacing: 0.02em;
  }
  .home-ota .home-partners__track {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 12px;
    padding: 4px 2px 12px;
    -webkit-overflow-scrolling: touch;
  }
  .home-ota .home-partners__track .home-partners__item {
    flex: 0 0 min(140px, 80%);
    scroll-snap-align: start;
  }
}

.home-ota .home-partners__item {
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-ota .home-partners__link,
.home-ota .home-partners__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 200px;
  padding: 0.75rem;
}

.home-ota .home-partners__link img,
.home-ota .home-partners__logo img {
  max-width: 100%;
  max-height: 60px;
  object-fit: contain;
  filter: grayscale(0);
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.home-ota .home-partners__link:hover img {
  opacity: 1;
}

/* Operators Section */
.home-ota .operators {
  background: rgb(var(--surface));
}

/* Operators: Mobile carousel */
.home-ota .home-operators-carousel {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.home-ota .home-operators-carousel__wrap {
  flex: 1;
  min-width: 0;
}

@media (max-width: 768px) {
  .home-ota .home-operators-carousel .ota-operators-hub-list {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 12px;
    padding: 4px 2px 12px;
    -webkit-overflow-scrolling: touch;
  }
  .home-ota .home-operators-carousel .ota-operators-hub-item {
    flex: 0 0 min(280px, 85%);
    scroll-snap-align: start;
  }
}

/* Home - Latest News Section */
.home-ota .home-news {
  background: rgb(var(--background));
}



.home-ota .home-news__grid {
  /* Use flex so it behaves like ota-routes-carousel track */
  display: flex;
  gap: 16px;
}

.home-ota .home-news__card {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  border: 1px solid #e5e7eb;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-ota .home-news__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.16);
}

.home-ota .home-news__image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.home-ota .home-news__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-ota .home-news__content {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-ota .home-news__overlay-content {
  pointer-events: none;
}

.home-ota .home-news__badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #e5e7eb;
  margin-bottom: 4px;
}

.home-ota .home-news__overlay-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
}

.home-ota .home-news__excerpt {
  font-size: 0.9rem;
  color: rgb(var(--text-muted));
  line-height: 1.6;
}

.home-ota .home-news__excerpt p {
  margin: 0;
}

.home-ota .home-news__readmore {
  
  margin-top: auto;
  font-weight: 700;
  font-size: 0.9rem;
  color: #f97316;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.home-ota .home-news__readmore span {
  font-size: 1rem;
}

.home-ota .home-news__footer {
  margin-top: 32px;
  text-align: center;
}

.home-ota .home-news__all-btn {

  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  border: 2px solid rgb(var(--primary));
  border-radius: 10px;
  text-decoration: none;
  color: rgb(var(--primary));
  font-weight: 600;
  transition: all 0.3s ease;
 
}

.home-ota .home-news__all-btn span {
  font-size: 1.1rem;
}

.home-ota .home-news__all-btn:hover {
  text-decoration: none;
  filter: brightness(1.05);
}

/* Responsive */
@media (max-width: 1200px) {
  .home-ota .container {
    padding: 0 30px;
  }

  .home-ota .features-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
    gap: 24px;
  }

  /* Reset explicit grid placement on tablet */
  .home-ota .features-grid .feature-item {
    grid-column: auto !important;
    grid-row: auto !important;
  }

  .home-ota .hero-info-bar {
    padding: 20px 30px;
    gap: 16px;
  }

  .home-ota .hero-info-item {
    min-width: 180px;
  }
}

@media (max-width: 768px) {
  .home-ota .hero {
    padding: 60px 0 100px;
  }

  .home-ota .hero .container {
    padding: 0 20px;
  }

  .home-ota .hero h1 {
    font-size: 2.5rem;
  }

  .home-ota .hero-subtitle {
    font-size: 1rem;
  }


  .home-ota .hero-info-bar {
    padding: 20px 30px;
  }

  .home-ota .hero-info-item {
    min-width: 180px;
  }
}

@media (max-width: 768px) {

  /* MOBILE: Enable infinite loop scroll */
  .home-ota .hero-info-bar {
    display: block;
    padding: 10px 0;
    overflow: hidden;
  }

  .home-ota .hero-info-scroll {
    display: block;
    overflow: hidden;
    width: 100%;
    position: relative;
  }

  .home-ota .hero-info-track {
    display: inline-flex;
    gap: 24px;
    animation: hero-info-scroll 20s linear infinite;
    will-change: transform;
    width: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
  }

  /* Show all items including duplicates on mobile for seamless loop */
  .home-ota .hero-info-item:nth-child(n+5) {
    display: flex;
  }

  .home-ota .hero-info-item {
    min-width: 280px;
    flex: 0 0 auto;
    justify-content: flex-start;
    padding: 0 20px;
    max-width: none;
  }

  .home-ota .hero-info-text {
    font-size: 0.9rem;
  }


  .home-ota section {
    padding: 50px 0;
  }

  .home-ota .container {
    padding: 0 20px;
  }

  /* Popular routes: full-width cards on mobile (m0 p0) */
  .home-ota .popular-routes .ota-routes-grid {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .home-ota section h2 {
    font-size: 1.5rem;
  }

  .home-ota .features-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 24px;
  }
}

/* Routes & Operators List Section */
.home-ota .routes-operators-list {
  background: rgb(var(--surface));
  padding: 80px 0;
}

.home-ota .routes-operators-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.home-ota .routes-list-section,
.home-ota .operators-list-section {
  display: flex;
  flex-direction: column;
}

.home-ota .routes-operators-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: rgb(var(--foreground));
  text-align: left;
}

.home-ota .routes-list,
.home-ota .operators-list {
  display: flex;
  flex-direction: column;
  /* gap: 12px; */
  margin-bottom: 24px;
}

.home-ota .routes-operators-list-container {
  max-height: 400px;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.home-ota .routes-operators-list-container.expanded {
  max-height: none;
}

.home-ota .route-link,
.home-ota .operator-link {
  display: block;
  padding: 6px 8px;
  text-decoration: none;
  color: rgb(var(--foreground));
  border-radius: 8px;
  transition: all 0.2s ease;
  font-size: 1rem;
  line-height: 1.5;
  background-color: transparent;
}

.home-ota .route-link.route-active,
.home-ota .operator-link.operator-active {
  color: rgb(var(--foreground));
  /* background: rgba(var(--background) / 0.5); */
  /* border: 1px solid rgba(var(--border) / 0.5); */
}

.home-ota .route-link.route-inactive,
.home-ota .operator-link.operator-inactive {
  color: rgba(var(--foreground) / 0.5);
  background: transparent;
  border: 1px solid transparent;
  opacity: 0.6;
}

.home-ota .route-link:hover,
.home-ota .operator-link:hover {
  background: rgba(var(--primary) / 0.1);
  border-color: rgba(var(--primary) / 0.3);
  transform: translateX(4px);
  opacity: 1;
}

.home-ota .routes-empty,
.home-ota .operators-empty {
  color: rgb(var(--muted));
  font-style: italic;
  padding: 20px;
  text-align: center;
}

.home-ota .routes-operators-more {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
}

.home-ota .routes-operators-toggle-btn {
  display: inline-block;
  background: transparent;
  border: 1px solid rgb(var(--primary));
  color: rgb(var(--primary));
  padding: 8px 20px;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1rem;
}

.home-ota .routes-operators-toggle-btn:hover {
  background: rgb(var(--primary));
  color: rgb(var(--background));
}

/* Responsive */
@media (max-width: 1024px) {
  .home-ota .routes-operators-grid {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .home-ota .routes-operators-list {
    padding: 50px 0;
  }

  .home-ota .routes-operators-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .home-ota .routes-operators-title {
    font-size: 1.5rem;
    text-align: center;
  }

  .home-ota .routes-list,
  .home-ota .operators-list {
    gap: 10px;
  }

  .home-ota .route-link,
  .home-ota .operator-link {
    padding: 10px 14px;
    font-size: 0.95rem;
  }
}
.home-ota #routes-operators-container {
  max-height: 20vh;
  overflow: hidden;
  transition: max-height 0.3s ease;
  position: relative;
}

.home-ota #routes-operators-container::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, rgb(var(--surface)));
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.home-ota #routes-operators-container.expanded {
  max-height: none;
}

.home-ota #routes-operators-container.expanded::after {
  opacity: 0;
}