.mp-hero,
.mp-home-cats,
.mp-course-search,
.mp-my-courses,
.mp-featured-videos{
  margin-block-end: var(--space-2xl);        /* Figma big section gap */
}

/* --- Home Hero --- */
.mpa-home-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.mpa-home-hero > .u-wrap {
  width: 100%;
}

.mpa-home-hero-inner {
  border-radius: 6px;
  min-height: 430px;
  z-index: 99;
  width: 100%;
  position: relative;
  overflow: hidden;
  background-image: var(--mp-home-hero-bg);
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
}

/* Preserve the earlier c-hero reset workaround */
.mpa-home-hero-inner.c-hero {
  all: revert;
  border-radius: 6px;
  min-height: 430px;
  z-index: 99;
  width: 100%;
  position: relative;
  overflow: hidden;
  display: block;
  box-sizing: border-box;
  background-image: var(--mp-home-hero-bg);
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
}

.mpa-home-hero__wrap {
  display: block !important;
  grid-template-columns: none !important;
  width: 100% !important;
  box-sizing: border-box;
  min-height: 430px;
  margin: 0;
  padding-left: 5rem;
  padding-right: 5rem;
  background: transparent !important;
}

.mpa-home-hero__wrap::before,
.mpa-home-hero__wrap::after {
  content: none !important;
  display: none !important;
}

.mpa-home-hero-header {
  position: relative;
  z-index: 1;
  max-width: 34rem;
  background: transparent !important;
}

.mpa-home-hero-header .c-hero__heading {
  max-width: 18rem;
  margin: 0 0 1rem;
  color: #ffffff;
  font-size: clamp(3.25rem, 6vw, 4.75rem);
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.mpa-home-hero-subtitle {
  font-size: 1.05rem;
  line-height: 1.45;
  color: #ffffff;
  max-width: 34rem;
  margin: 0 0 1.5rem;
}

.mpa-home-hero-search {
  max-width: 32rem;
}

.mpa-home-hero-search .c-form__input-wrap {
  display: flex;
  align-items: stretch;
  position: relative;
}

.mpa-home-hero-search .c-input {
  height: 3.25rem;
  padding: 0 3.5rem 0 1rem;
  border: 0;
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: none;
  font-size: 1rem;
}

.mpa-home-hero-search .c-input::placeholder {
  color: #7a7f83;
}

.mpa-home-hero-search__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  right: 0;
  width: 3.5rem;
  height: 3.25rem;
  border: 0;
  background: transparent;
  color: #0b5668;
  cursor: pointer;
  z-index: 1;
  padding: 0;
}

.mpa-home-hero-search__icon {
  width: 1.375rem;
  height: 1.375rem;
}

@media (max-width: 960px) {
  .mpa-home-hero__wrap {
    min-height: 430px;
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (min-width: 641px) and (max-width: 960px) {
  .mpa-home-hero-inner {
    background-image: var(--mp-home-hero-bg);
    background-repeat: no-repeat;
    background-position: right center;
    background-size: cover;
  }
}

@media (max-width: 640px) {
  .mpa-home-hero-inner {
    min-height: 430px;
    background-image: var(--mp-home-hero-bg);
    background-repeat: no-repeat;
    background-position: right center;
    background-size: cover;
  }

  .mpa-home-hero__wrap {
    min-height: 430px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .mpa-home-hero-header {
    max-width: 18rem;
  }

  .mpa-home-hero-header .c-hero__heading {
    max-width: 12rem;
    font-size: clamp(3rem, 12vw, 4rem);
  }

  .mpa-home-hero-subtitle {
    max-width: 18rem;
  }

  .mpa-home-hero-search {
    max-width: 100%;
  }
}

/* Featured videos grid */
.mp-featured-videos__hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.mp-featured-videos__browse {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.mp-featured-videos__browse:hover {
  text-decoration: underline;
}

.mp-featured-videos__browse-icon {
  font-size: 16px;
}

.mp-featured-videos .mp-video-cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1024px) {
  .mp-featured-videos .mp-video-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .mp-featured-videos .mp-video-cards {
    grid-template-columns: 1fr;
  }
}
