/* Home — banners inside page container + section alignment */

.edu-home-app .edu-home-hero--corp,
.edu-home-app .edu-mkt-banner {
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
  border-radius: 24px;
}

.edu-home-app .edu-home-hero--corp {
  margin-bottom: 20px;
}

.edu-home-app .edu-mkt-banner {
  margin-bottom: 20px;
}

.edu-home-app .gx-home-promo {
  margin: 0 0 20px;
}

/* Desktop: hide in-page mobile search */
.edu-home-mobile-search {
  display: none;
}

.edu-home-mobile-search__form {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 4px 4px 4px 18px;
  border: 1px solid #1c1d1f;
  border-radius: 999px;
  background: #fff;
  box-sizing: border-box;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

[dir="rtl"] .edu-home-mobile-search__form {
  padding: 4px 18px 4px 4px;
}

.edu-home-mobile-search__form:focus-within {
  border-color: #0B1426;
  box-shadow: 0 0 0 1px #0B1426;
}

.edu-home-mobile-search__form input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #1c1d1f;
}

.edu-home-mobile-search__form input::placeholder {
  color: #6a6f73;
}

.edu-home-mobile-search__btn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #0B1426;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.edu-home-mobile-search__btn .edu-nav-icon {
  width: 18px;
  height: 18px;
  color: #fff;
}

.edu-home-mobile-search__btn .edu-nav-icon-svg,
.edu-home-mobile-search__btn svg {
  stroke: #fff;
}

/* Desktop: categories block in normal document position */
.edu-home-block--categories-top .edu-section-head {
  display: flex;
}

/* Web shell: stay inside content column */
html.edu-view-web .edu-web-content .edu-home-app .edu-home-hero--corp,
html.edu-view-web .edu-web-content .edu-home-app .edu-mkt-banner,
html.edu-view-web .edu-web-content .edu-home-app .gx-home-promo {
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
  border-radius: 24px;
}

/* Home — RTL/LTR text alignment + section heads */

.edu-home-app .edu-section-head--start,
.edu-home-app .edu-home-block .edu-section-head,
.edu-home-app .edu-accreditation-marquee__head,
.edu-home-app .edu-trainers-section .edu-section-head {
  text-align: start;
}

.edu-home-app .edu-accreditation-marquee__head > div {
  text-align: start;
}

.edu-home-app .edu-accreditation-marquee {
  direction: inherit;
}

.edu-home-app .edu-accreditation-marquee .accreditation-track {
  direction: ltr;
}

.edu-home-app .edu-home-block .edu-section-head h2,
.edu-home-app .edu-trainers-section .edu-section-head h2,
.edu-home-app .edu-accreditation-marquee__head h2 {
  text-align: start;
}

.edu-home-app .edu-section-sub {
  text-align: start;
}

/* ===== Phone & tablet home layout (≤820px) — structure in app_native_mobile.css ===== */
@media (max-width: 820px) {
  .edu-home-app > .edu-home-mobile-search {
    display: block;
    margin-top: 14px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  html.edu-view-web .edu-web-content .edu-home-app.edu-app {
    padding-inline-start: max(clamp(16px, 4.5vw, 24px), env(safe-area-inset-left, 0px)) !important;
    padding-inline-end: max(clamp(16px, 4.5vw, 24px), env(safe-area-inset-right, 0px)) !important;
  }

  .edu-home-app > .edu-home-block--categories-top {
    display: block !important;
    overflow: hidden;
  }

  .edu-home-app > .edu-home-block--categories-top .edu-section-head {
    display: none;
  }

  .edu-home-app > .edu-home-block--categories-top .edu-category-marquee {
    margin: 0 !important;
    padding: 4px 0 8px !important;
    overflow: hidden;
  }

  .edu-home-app > .edu-home-block--categories-top .marquee-track {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: clamp(10px, 2vw, 14px) !important;
    width: max-content !important;
    max-width: none !important;
    overflow: visible !important;
    animation: eduHomeCategoryMarquee 28s linear infinite !important;
  }

  .edu-home-app > .edu-home-block--categories-top .marquee-track::-webkit-scrollbar {
    display: none;
  }

  .edu-home-app > .edu-home-block--categories-top .marquee-category-pill {
    flex: 0 0 auto;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    min-width: clamp(120px, 32vw, 148px);
    width: auto;
    max-width: none;
    height: clamp(58px, 14vw, 64px);
    padding: 10px 14px;
    gap: 10px;
    border-radius: 16px;
    scroll-snap-align: start;
  }

  .edu-home-app > .edu-home-block--categories-top .marquee-category-pill__icon .edu-app-icon {
    width: clamp(32px, 8vw, 36px);
    height: clamp(32px, 8vw, 36px);
    border-radius: 12px;
  }

  .edu-home-app > .edu-home-block--categories-top .marquee-category-pill__icon .edu-app-icon-svg {
    width: 18px;
    height: 18px;
  }

  .edu-home-app > .edu-home-block--categories-top .marquee-category-pill strong {
    font-size: clamp(11px, 2.8vw, 12px);
    font-weight: 800;
    line-height: 1.35;
    text-align: start;
    white-space: nowrap;
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
  }

  .edu-home-app > .edu-accreditation-marquee .accreditation-track {
    flex-wrap: nowrap !important;
    width: max-content !important;
    max-width: none !important;
    overflow: visible !important;
    animation: eduAccreditationMarquee 28s linear infinite !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 10px !important;
  }

  .edu-home-app > .edu-course-marquee .courses-marquee-track,
  .edu-home-app > .edu-programs-marquee .programs-marquee-track {
    width: max-content !important;
    max-width: none !important;
    overflow: visible !important;
    animation: eduMarquee 38s linear infinite !important;
  }

  .edu-home-app > .edu-programs-marquee .programs-marquee-track {
    animation-duration: 40s !important;
  }
}

@media (max-width: 767px) {
  .edu-home-app:not([data-home-app]) .edu-category-marquee .marquee-track {
    animation: none !important;
    will-change: auto;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    touch-action: pan-x pan-y;
  }

  .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;
  }
}

@media (prefers-reduced-motion: reduce) {
  .edu-home-app > .edu-home-block--categories-top .marquee-track,
  .edu-home-app > .edu-accreditation-marquee .accreditation-track,
  .edu-home-app > .edu-course-marquee .courses-marquee-track,
  .edu-home-app > .edu-programs-marquee .programs-marquee-track {
    animation: none !important;
    overflow-x: auto !important;
    width: 100% !important;
    scroll-snap-type: x mandatory !important;
  }
}
