/* ================================================
   WEALTH PLANNING COURSE PAGE — wp- prefix
   Desktop: all sizes in vw (px / 1920 * 100)
   Mobile: @media (max-width: 1023px) with px
   ================================================ */

/* ================================================
   HERO BANNER (h=494px)
   ================================================ */
.wp-hero {
  position: relative;
  height: 25.7292vw; /* 494px */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #0a1628;
}

.wp-hero-bg {
  position: absolute;
  /*inset: 0;*/
  z-index: 0;
}

.wp-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wp-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
}

/* Breadcrumb */
.wp-breadcrumb {
  position: absolute;
  top: 1.0417vw; /* 20px */
  left: 0;
  font-size: 1.25vw; /* 24px */
  font-weight: 400;
  color: var(--color-white);
  display: flex;
  align-items: center;
  gap: 0.4167vw; /* 8px */
  margin-left: 4.583vw;
}

.wp-breadcrumb a {
  color: var(--color-white);
  opacity: 0.7;
  transition: opacity 0.3s;
}

.wp-breadcrumb a:hover {
  opacity: 1;
}

.wp-breadcrumb span {
  color: var(--color-white);
}

.wp-hero-title {
  font-size: 4.1667vw; /* 80px */
  font-weight: 900;
  color: var(--color-white);
  letter-spacing: 0.2083vw; /* 4px */
  line-height: 1.2;
  margin-bottom: 1.0417vw; /* 20px */
}

.wp-hero-subtitle {
  font-family: var(--font-display);
  font-size: 2.0833vw; /* 40px */
  font-weight: 400;
  color: var(--color-white);
  letter-spacing: 0.2708vw; /* 5.2px */
  line-height: 1.4;
}

/* ================================================
   INTRO / SECTION TITLE AREA
   ================================================ */
.wp-intro {
  background: #F3F8FE;
  padding: 3.125vw 0 1.5625vw; /* 60px 0 30px */
}

.wp-section-header {
  text-align: left;
  margin-bottom: 0;
}

.wp-section-main-title {
  font-size: 2.0833vw; /* 40px */
  font-weight: 700;
  color: var(--color-text-heading);
  letter-spacing: 0.1042vw; /* 2px */
  line-height: 1.4;
}

.wp-section-line {
  width: 35.6771vw; /* 685px */
  height: 0.2083vw; /* 4px */
  background: #3D65F3;
  border-radius: 0.1042vw; /* 2px */
  margin: 0.4167vw 0 0; /* 8px 0 0 */
}

/* ================================================
   SHARED NUMBERED SECTION ELEMENTS
   ================================================ */
.wp-section-num-group {
  display: flex;
  align-items: baseline;
  gap: 0.8333vw; /* 16px */
  margin-bottom: 2.0833vw; /* 40px */
}

.wp-section-num {
  font-size: 3.3333vw; /* 64px */
  font-weight: 900;
  color: #3D65F3;
  line-height: 1;
}

.wp-section-label {
  font-size: 2.0833vw; /* 40px */
  font-weight: 700;
  color: #3D65F3;
  line-height: 1;
}

/* ================================================
   SECTION 01 — 适合谁学 (portrait gradient cards)
   ================================================ */
.wp-who {
  background: #F3F8FE;
  padding: 3.3854vw 0 4.1667vw; /* ~65px 0 80px */
}

.wp-who-cards {
  display: flex;
  gap: 2.344vw;
  justify-content: space-between;
}

.wp-who-card {
  width: 23.1771vw; /* 445px */
  height: 26.5104vw; /* 509px */
  background: linear-gradient(to top, #8E8CFD, #4E5DFF 60.584%, #3853E9);
  border-radius: 1.5625vw; /* 30px */
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.wp-who-card-img {
  width: 21.3542vw; /* 410px */
  height: 15.1042vw; /* 290px */
  border-radius: 1.5625vw; /* 30px */
  overflow: hidden;
  margin: 0.9375vw auto 0; /* 18px auto 0 */
  flex-shrink: 0;
}

.wp-who-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wp-who-card-body {
  padding: 1.25vw 1.5625vw; /* 24px 30px */
  display: flex;
  flex-direction: column;
  flex: 1;
}

.wp-who-card-title {
  font-size: 1.875vw; /* 36px */
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.1875vw; /* 3.6px */
  margin: 0 0 0.5208vw 0; /* 0 0 10px 0 */
  line-height: 1.3;
}

.wp-who-card-desc {
  font-size: 1.0417vw; /* 20px */
  font-weight: 500;
  color: var(--color-white);
  line-height: 1.6;
  margin: 0;
}

/* ================================================
   SECTION 02 — 课程特色 (454x353 white cards)
   ================================================ */
.wp-features {
  background: var(--color-white);
  padding: 3.6458vw 0 4.1667vw; /* ~70px 0 80px */
}

.wp-features-grid {
  display: flex;
  gap: 1.5625vw; /* 30px */
  justify-content: space-between;
}

.wp-feature-card {
  width: 23.6458vw; /* 454px */
  height: 18.3854vw; /* 353px */
  background: var(--color-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5625vw; /* 30px */
  text-align: center;
}

.wp-feature-img {
  width: 10.5729vw; /* 203px */
  height: 9.0625vw; /* 174px */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25vw; /* 24px */
}

.wp-feature-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.wp-feature-title {
  font-size: 1.6667vw; /* 32px */
  font-weight: 700;
  color: #3D65F3;
  margin: 0 0 0.625vw 0; /* 0 0 12px 0 */
  line-height: 1.4;
}

.wp-feature-desc {
  font-size: 0.9375vw; /* 18px */
  font-weight: 500;
  color: #454545;
  line-height: 1.6;
  margin: 0;
}

/* ================================================
   RESPONSIVE — <=1023px (Mobile with px)
   ================================================ */
@media (max-width: 1023px) {

  /* -- Global overflow prevention -- */
  .wp-hero,
  .wp-intro,
  .wp-who,
  .wp-features {
    max-width: 100vw;
    overflow-x: hidden;
  }

  /* ---- Hero ---- */
  .wp-hero {
    height: auto;
    min-height: auto;
    padding: 50px 0;
  }

  .wp-hero-inner {
    text-align: center;
    height: auto;
  }

  .wp-breadcrumb {
    position: absolute;
    top: 10px;
    left: 16px;
    font-size: 12px;
    gap: 6px;
    margin-left: 0;
    margin-bottom: 0;
  }

  .wp-hero-title {
    font-size: 28px;
    line-height: 38px;
    letter-spacing: 2px;
    margin-bottom: 8px;
  }

  .wp-hero-subtitle {
    font-size: 14px;
    letter-spacing: 2px;
  }

  /* ---- Intro / Section title ---- */
  .wp-intro {
    padding: 30px 0 20px;
  }

  .wp-section-main-title {
    font-size: 22px;
    letter-spacing: 1px;
  }

  .wp-section-line {
    width: 100%;
    max-width: 320px;
    height: 3px;
  }

  /* ---- Shared numbered sections ---- */
  .wp-section-num-group {
    gap: 10px;
    margin-bottom: 24px;
  }

  .wp-section-num {
    font-size: 32px;
  }

  .wp-section-label {
    font-size: 22px;
  }

  /* ---- Section 01 — Who (portrait gradient cards) ---- */
  .wp-who {
    padding: 36px 0 40px;
  }

  .wp-who-cards {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }

  .wp-who-card {
    width: 100%;
    max-width: 340px;
    height: auto;
    border-radius: 14px;
    margin: 0 auto;
  }

  .wp-who-card-img {
    width: calc(100% - 24px);
    height: 180px;
    border-radius: 12px;
    margin: 12px auto 0;
  }

  .wp-who-card-body {
    padding: 16px 20px 20px;
  }

  .wp-who-card-title {
    font-size: 20px;
    letter-spacing: 2px;
    margin-bottom: 6px;
  }

  .wp-who-card-desc {
    font-size: 14px;
    line-height: 24px;
  }

  /* ---- Section 02 — Features ---- */
  .wp-features {
    padding: 36px 0;
  }

  .wp-features-grid {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }

  .wp-feature-card {
    width: 100%;
    max-width: none;
    height: auto;
    padding: 24px 20px;
  }

  .wp-feature-img {
    width: 100px;
    height: 100px;
    margin-bottom: 16px;
  }

  .wp-feature-title {
    font-size: 18px;
    margin-bottom: 6px;
  }

  .wp-feature-desc {
    font-size: 13px;
    line-height: 22px;
  }
}
