/* Home categories — animated marquee, full width, navy pills */

.edu-home-app .edu-category-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 4px 0 12px;
  margin: 0;
  direction: ltr;
  touch-action: manipulation;
}

.edu-home-app .edu-category-marquee .marquee-track {
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  animation: eduHomeCategoryMarquee 30s linear infinite;
}

.edu-home-app .edu-category-marquee:hover .marquee-track,
.edu-home-app .edu-category-marquee:active .marquee-track {
  animation-play-state: paused;
}

.edu-home-app .edu-category-marquee .marquee-category-pill {
  direction: rtl;
  flex: 0 0 auto;
  min-width: 148px;
  height: 76px;
  padding: 12px 16px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #0B1426;
  background: linear-gradient(180deg, #fff 0%, #F3F2EF 100%);
  border: 1px solid #D8DEE8;
  box-shadow: 0 8px 24px rgba(11, 20, 38, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.edu-home-app .edu-category-marquee .marquee-category-pill:hover {
  transform: translateY(-2px);
  border-color: #0B1426;
  box-shadow: 0 12px 28px rgba(11, 20, 38, 0.14);
}

.edu-home-app .edu-category-marquee .marquee-category-pill__icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.edu-home-app .edu-category-marquee .marquee-category-pill__icon .edu-app-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(145deg, #F3F2EF, #F3F2EF);
  color: #0B1426;
  box-shadow: 0 6px 16px rgba(11, 20, 38, 0.1);
}

.edu-home-app .edu-category-marquee .marquee-category-pill__icon .edu-app-icon-svg {
  width: 20px;
  height: 20px;
}

.edu-home-app .edu-category-marquee .marquee-category-pill strong {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  color: #0B1426;
  white-space: nowrap;
}

.edu-home-app .edu-category-marquee .marquee-fade {
  display: none;
}

@keyframes eduHomeCategoryMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 820px) {
  .edu-home-app .edu-category-marquee {
    touch-action: manipulation;
  }

  .edu-home-app .edu-category-marquee .marquee-track {
    animation: eduHomeCategoryMarquee 28s linear infinite !important;
    width: max-content !important;
    overflow: visible !important;
  }
}

@media (max-width: 420px) {
  .edu-home-app .edu-category-marquee .marquee-track {
    animation-duration: 24s;
  }

  .edu-home-app > .edu-home-block--categories-top .marquee-category-pill {
    min-width: 120px;
    height: 60px;
    padding: 8px 12px;
  }

  .edu-home-app > .edu-home-block--categories-top .marquee-category-pill strong {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .edu-home-app .edu-category-marquee .marquee-track {
    animation: none !important;
    overflow-x: auto;
    width: 100%;
    max-width: 100%;
    flex-wrap: nowrap;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .edu-home-app .edu-category-marquee .marquee-track::-webkit-scrollbar {
    display: none;
  }

  .edu-home-app .edu-category-marquee .marquee-category-pill {
    scroll-snap-align: start;
  }
}
