/* The image and its backdrop share a fixed frame across slides. */
.home-banner.banner {
  width: 100%;
  height: clamp(360px, 50vw, 880px);
  margin-top: 0;
  background: #edf4f1;
}

.home-banner.banner > ul {
  display: flex;
  width: 100%;
  height: 100%;
}

.home-banner.banner > ul > li {
  flex: 0 0 100%;
  height: 100%;
  line-height: normal;
}

.home-banner .pre_next {
  width: min(92%, 1180px);
  margin: 0 auto;
  top: 50%;
  transform: translateY(-50%);
  display: flow-root;
}

.home-banner-mobile {
  width: 100%;
}

#touchMain.home-banner-mobile .slide-box {
  height: min(56.25vw, 432px);
  background: #edf4f1;
}

#touchMain.home-banner-mobile .slide {
  position: absolute;
  inset: 0;
}

#touchMain.home-banner-mobile .slide:first-child {
  display: block;
}

#touchMain.home-banner-mobile .item {
  bottom: 12px;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: auto;
  margin: 0;
  opacity: 1;
}

#touchMain.home-banner-mobile .item a {
  width: 7px;
  height: 7px;
  margin: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .65);
}

#touchMain.home-banner-mobile .item a.cur {
  background: #03896c;
}

#touchMain.home-banner-mobile .item a:only-child {
  display: none;
}

.home-banner.banner > ul img,
#touchMain.home-banner-mobile .slide img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  object-position: center;
}

.home-banner.banner > ul .home-banner-backdrop,
#touchMain.home-banner-mobile .home-banner-backdrop {
  object-fit: cover;
  filter: blur(22px);
  transform: scale(1.08);
  opacity: .6;
}

.home-banner.banner > ul .home-banner-image,
#touchMain.home-banner-mobile .home-banner-image {
  object-fit: contain;
}

.home-course-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

#courses .home-course-section {
  max-width: calc(100% - 32px);
}

#courses .home-course-card {
  display: grid;
  grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-radius: 6px;
  text-align: left;
}

#courses .home-course-image,
#course .home-course-image {
  display: block;
  float: none;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #f8faf9;
  border-radius: 4px;
}

.home-course-copy {
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: left;
}

.home-course-category {
  display: block;
  color: #03896c;
  font-size: .9em;
  font-weight: bold;
}

#courses .home-course-card h3 {
  margin: 4px 0 8px;
  color: #111;
  font-size: clamp(16px, 1.5vw, 22px);
  line-height: 1.4;
}

#courses .home-course-card p {
  margin-top: 5px;
  color: #575757;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#courses .home-course-more {
  float: none;
  left: auto;
  margin: 20px auto 0 !important;
}

#course .home-course-grid {
  gap: 12px;
}

#course .home-course-card {
  overflow: hidden;
  border: 1px solid #eaecea;
  border-radius: 6px;
  background: #fff;
}

#course .home-course-copy {
  padding: 8px 9px 10px;
}

#course .home-course-card h2 {
  margin-top: 4px;
  line-height: 1.4;
}

@media (max-width: 760px) {
  #courses .home-course-grid {
    gap: 12px;
  }

  #courses .home-course-card {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: 8px;
    padding: 8px;
  }
}
