.homeArea .section3 .programCard--desktop,
.homeArea .section3 > .wrap > .moreBtn {
  display: none;
}

.home-program-mobile {
  width: min(1120px, calc(100% - 96px));
  margin: 110px auto 150px;
  color: #064a45;
  font-family: "Noto Serif TC", serif;
}

.home-program-mobile__swiper {
  width: 100%;
  overflow: hidden;
}

.home-program-mobile__page {
  display: grid;
  height: auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, clamp(470px, 46vw, 520px));
  gap: 20px;
}

.home-program-card {
  min-width: 0;
  position: relative;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid rgba(6, 74, 69, .16);
  border-radius: 18px;
  background: #fbfbfa;
  box-shadow: 0 8px 24px rgba(25, 57, 53, .045);
  color: #064a45;
  text-decoration: none;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.home-program-card:hover {
  border-color: rgba(6, 74, 69, .38);
  box-shadow: 0 14px 34px rgba(25, 57, 53, .1);
  transform: translateY(-3px);
}

.home-program-card__image {
  position: relative;
  display: grid;
  aspect-ratio: 3 / 2;
  flex: 0 0 auto;
  overflow: hidden;
  background: #f0efeb;
  place-items: center;
}

.home-program-card__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

.home-program-card__eyebrow {
  position: absolute;
  right: 13px;
  bottom: 11px;
  max-width: calc(100% - 26px);
  overflow: hidden;
  padding: 6px 12px 5px;
  border-radius: 999px;
  background: rgba(250, 249, 246, .94);
  color: #064a45;
  font-family: "Cormorant", serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.home-program-card__body {
  min-height: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px 20px 17px;
}

.home-program-card__title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.home-program-card__title-row strong {
  min-width: 0;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.35;
}

.home-program-card__title-row small {
  flex: 0 0 auto;
  padding: 5px 10px;
  border: 1px solid rgba(6, 74, 69, .65);
  border-radius: 999px;
  font-family: Arial, sans-serif;
  font-size: 12px;
  line-height: 1.1;
  white-space: nowrap;
}

.home-program-card__description {
  display: -webkit-box;
  min-height: 26px;
  margin-top: 7px;
  overflow: hidden;
  color: #5e6e6b;
  font-size: 14px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.home-program-card__price {
  margin-top: auto;
  font-family: "Cormorant", "Noto Serif TC", serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .035em;
  line-height: 1.2;
}

.home-program-card__price b {
  font-size: 23px;
}

.home-program-card--match {
  justify-content: center;
  padding: 34px;
  border-color: #064a45;
  background: #064a45;
  color: #f8f4ed;
}

.home-program-card__match-eyebrow {
  color: #d5c19a;
  font-family: "Cormorant", serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.home-program-card--match > strong {
  margin-top: 12px;
  font-size: 28px;
  line-height: 1.45;
}

.home-program-card--match > span:not(.home-program-card__match-eyebrow) {
  margin-top: 11px;
  color: rgba(248, 244, 237, .72);
  font-size: 14px;
  line-height: 1.65;
}

.home-program-card--match i {
  width: fit-content;
  min-width: 58px;
  min-height: 34px;
  display: grid;
  margin-top: 18px;
  padding: 0 14px;
  place-items: center;
  border: 1px solid rgba(248, 244, 237, .55);
  border-radius: 999px;
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-style: normal;
}

.home-program-mobile__status {
  display: grid;
  margin: 20px 4px 0;
  align-items: center;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
}

.home-program-mobile__count {
  font-family: "Cormorant", serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .06em;
}

.home-program-mobile__pagination.swiper-pagination {
  width: auto;
  position: static;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.home-program-mobile__pagination .swiper-pagination-bullet {
  width: 42px;
  height: 2px;
  margin: 0 !important;
  border-radius: 0;
  background: rgba(6, 74, 69, .18);
  opacity: 1;
}

.home-program-mobile__pagination .swiper-pagination-bullet-active {
  background: #064a45;
}

.home-program-mobile__controls {
  display: flex;
  gap: 8px;
}

.home-program-mobile__controls button {
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid rgba(6, 74, 69, .52);
  border-radius: 999px;
  background: transparent;
  color: #064a45;
  cursor: pointer;
  font-size: 13px;
  letter-spacing: .04em;
  transition: background .2s ease, color .2s ease;
}

.home-program-mobile__controls button:hover,
.home-program-mobile__controls button:focus-visible {
  background: #064a45;
  color: #fff;
  outline: none;
}

.home-program-mobile__all {
  display: flex;
  width: fit-content;
  min-height: 48px;
  margin: 28px auto 0;
  padding: 0 32px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(6, 74, 69, .75);
  border-radius: 999px;
  color: #064a45;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .08em;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}

.home-program-mobile__all:hover,
.home-program-mobile__all:focus-visible {
  background: #064a45;
  color: #fff;
  outline: none;
}

@media (max-width: 992px) and (min-width: 769px) {
  .home-program-mobile {
    width: min(900px, calc(100% - 64px));
    margin-top: 145px;
  }

  .home-program-mobile__page {
    grid-template-rows: repeat(2, clamp(420px, 48vw, 470px));
  }

  .home-program-card__title-row strong {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .homeArea .section3 {
    padding-top: 120px;
    padding-bottom: 100px;
    overflow: hidden;
  }

  .homeArea .section3 .titleBox {
    top: 60px;
    left: 0;
    width: 76vw;
    max-width: none;
    align-items: flex-start;
  }

  .homeArea .section3 .titleBox .title {
    margin-top: 12px;
    padding-left: 18px;
    font-size: 27px;
  }

  .homeArea .section3 .titleBox .title p,
  .homeArea .section3 .titleBox .title span {
    display: inline;
  }

  .homeArea .section3 .titleBox .title span {
    margin: 0 0 0 8px;
    font-size: 16px;
    letter-spacing: .08em;
  }

  .home-program-mobile {
    width: 100%;
    margin: 42px 0 0;
  }

  .home-program-mobile__swiper {
    overflow: visible;
    padding-left: 16px;
  }

  .home-program-mobile__page {
    grid-template-rows: repeat(2, 217px);
    gap: 10px;
  }

  .home-program-card {
    border-radius: 15px;
    box-shadow: 0 5px 16px rgba(25, 57, 53, .035);
    transition: none;
  }

  .home-program-card:hover {
    border-color: rgba(6, 74, 69, .16);
    box-shadow: 0 5px 16px rgba(25, 57, 53, .035);
    transform: none;
  }

  .home-program-card__image {
    aspect-ratio: 3 / 2;
  }

  .home-program-card__eyebrow {
    right: 7px;
    bottom: 7px;
    max-width: calc(100% - 14px);
    padding: 4px 7px 3px;
    font-size: 9px;
    letter-spacing: .12em;
  }

  .home-program-card__body {
    padding: 10px 10px 9px;
  }

  .home-program-card__title-row {
    gap: 4px;
  }

  .home-program-card__title-row strong {
    font-size: 15px;
  }

  .home-program-card__title-row small {
    padding: 3px 6px;
    font-size: 9px;
  }

  .home-program-card__description {
    min-height: 30px;
    margin-top: 5px;
    font-size: 10px;
    line-height: 1.5;
    -webkit-line-clamp: 2;
  }

  .home-program-card__price {
    font-size: 14px;
  }

  .home-program-card__price b {
    font-size: 17px;
  }

  .home-program-card--match {
    padding: 18px;
  }

  .home-program-card__match-eyebrow {
    font-size: 12px;
  }

  .home-program-card--match > strong {
    margin-top: 8px;
    font-size: 18px;
    line-height: 1.55;
  }

  .home-program-card--match > span:not(.home-program-card__match-eyebrow) {
    margin-top: 9px;
    font-size: 10px;
  }

  .home-program-card--match i {
    min-width: 52px;
    min-height: 30px;
    margin-top: 12px;
    padding: 0 11px;
    font-size: 10px;
  }

  .home-program-mobile__status {
    display: flex;
    margin: 14px 18px 0;
    justify-content: space-between;
    gap: 16px;
  }

  .home-program-mobile__count {
    font-size: 14px;
  }

  .home-program-mobile__pagination.swiper-pagination {
    justify-content: flex-end;
    gap: 7px;
  }

  .home-program-mobile__pagination .swiper-pagination-bullet {
    width: 22px;
  }

  .home-program-mobile__controls {
    display: none;
  }

  .home-program-mobile__all {
    width: calc(100% - 36px);
    min-height: 49px;
    margin: 20px 18px 0;
    padding: 0;
    font-size: 14px;
  }
}

@media (max-width: 350px) {
  .home-program-mobile__page {
    grid-template-rows: repeat(2, 205px);
  }

  .home-program-card__title-row strong {
    font-size: 14px;
  }

  .home-program-card__title-row small {
    padding-right: 4px;
    padding-left: 4px;
  }
}
