/* ================================================
   FAMILY ASSET ALLOCATION COURSE — fa- prefix
   Desktop: all sizes in vw (px / 1920 * 100)
   Mobile: @media (max-width: 1023px) with px
   ================================================ */

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

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

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

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

/* Breadcrumb */
.fa-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;
}

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

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

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

.fa-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 */
}

.fa-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;
}

/* ================================================
   SHARED SECTION ELEMENTS
   ================================================ */
.fa-section-header {
  text-align: left;
  margin-bottom: 1.5625vw;
  /* 30px */
}

.fa-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;
}

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

.fa-section-num-group {
  display: flex;
  align-items: baseline;
  gap: 0.8333vw;
  /* 16px */
  margin-bottom: 2.0833vw;
  /* 40px */
}

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

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

/* ================================================
   SECTION 01 — 适合谁学 (y=624, h=1069px, bg=#F3F8FE)
   ================================================ */
.fa-who {
  background: #F3F8FE;
  padding: 3.3854vw 0 4.1667vw;
  /* ~65px 0 80px */
}

.fa-who-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.875vw 2.24vw;
}

.fa-who-card {
  width: 36.4063vw;
  /* 699px */
  height: 15.625vw;
  /* 300px */
  background: linear-gradient(to right, #3853E9, #4E5DFF, #8E8CFD);
  border-radius: 1.5625vw;
  /* 30px */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5625vw 0 2.0833vw;
  /* 0 30px 0 40px */
  overflow: hidden;
}

.fa-who-card-text {
  flex-shrink: 0;
}

.fa-who-card-title {
  font-size: 1.875vw;
  /* 36px */
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.1875vw;
  /* 3.6px */
  margin-bottom: 0.625vw;
  /* 12px */
}

.fa-who-card-desc {
  font-size: 1.0417vw;
  /* 20px */
  font-weight: 500;
  color: var(--color-white);
  line-height: 1.6;
  max-width: 13.5417vw;
  /* 260px */
}

.fa-who-card-img {
  width: 19.0104vw;
  /* 365px */
  height: 13.8542vw;
  /* 266px */
  flex-shrink: 0;
  border-radius: 1.5625vw;
  /* 30px */
  overflow: hidden;
}

.fa-who-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1.5625vw;
  /* 30px */
}

/* ================================================
   SECTION 02 — 课程特色 (y=1693, h=623px, bg=white)
   ================================================ */
.fa-features {
  background: var(--color-white);
  padding: 3.6458vw 0 4.1667vw;
  /* ~70px 0 80px */
}

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

.fa-feature-card {
  width: 17.8125vw;
  /* 342px */
  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;
}

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

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

.fa-feature-text {
  font-size: 0.9375vw;
  /* 18px */
  font-weight: 500;
  color: #454545;
  line-height: 1.6;
}

/* ================================================
   SECTION 03 — 课程大纲 (y=2316, h=886px, bg=white + pattern)
   ================================================ */
.fa-outline {
  position: relative;
  background: url('../assets/04-family-asset/bg/section-bg.webp') center / cover no-repeat;
  padding: 3.6458vw 0 4.1667vw;
  /* ~70px 0 80px */
  overflow: hidden;
}

.fa-outline-pattern {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg,
      rgba(61, 101, 243, 0.02),
      rgba(61, 101, 243, 0.02) 10px,
      transparent 10px,
      transparent 20px);
  opacity: 0.2;
  pointer-events: none;
}

.fa-outline .container {
  position: relative;
  z-index: 1;
}

.fa-outline-card {
  width: 73.75vw;
  /* 1416px */
  background: linear-gradient(to bottom, #D2DAEE, #EBEEF8);
  border-radius: 1.5625vw;
  /* 30px */
  padding: 2.6042vw 2.6042vw 2.6042vw 7.604vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 31.6667vw;
  /* 608px */
  overflow: hidden;
}

.fa-outline-left {
  flex: 1;
}

.fa-outline-title {
  font-size: 1.6667vw;
  /* 32px */
  font-weight: 700;
  color: #3D65F3;
  margin-bottom: 0.8333vw;
  /* 16px */
  line-height: 1.4;
}

.fa-outline-subtitle {
  font-size: 1.25vw;
  /* 24px */
  font-weight: 500;
  color: #777;
  margin-bottom: 1.5625vw;
  /* 30px */
  line-height: 1.6;
}

.fa-outline-list {
  list-style: none;
  padding: 0;
  margin: 0 0 4.688vw 0;
}

.fa-outline-list li {
  font-size: 1.25vw;
  /* 24px */
  font-weight: 500;
  color: #777;
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 1.615vw;
  margin-bottom: 0.7292vw;
  /* 14px */
}

.fa-outline-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5625vw;
  /* 30px */
  height: 1.5625vw;
  /* 30px */
  border-radius: 50%;
  background: #3D65F3;
  color: var(--color-white);
  font-size: 0.8333vw;
  /* 16px */
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.1563vw;
  /* 3px */
}

.fa-outline-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30.9896vw;
  /* 595px */
  height: 3.4896vw;
  /* 67px */
  background: var(--color-white);
  color: #3660F3;
  font-size: 1.25vw;
  /* 24px */
  font-weight: 700;
  border-radius: 3.9583vw;
  /* 76px */
  box-shadow: inset 0 0.1042vw 0.4167vw rgba(54, 96, 243, 0.15);
}

.fa-outline-right {
  width: 37.0313vw;
  /* 711px */
  height: 31.7188vw;
  /* 609px */
  flex-shrink: 0;
  position: absolute;
  right: -2vw;
}

.fa-outline-right img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ================================================
   SECTION 04 — 富人思维认知课 (y=3202, h=923px, bg=white)
   ================================================ */
.fa-mindset {
  background: var(--color-white);
  padding: 3.6458vw 0 4.1667vw;
  /* ~70px 0 80px */
}

.fa-mindset-desc {
  font-size: 1.25vw;
  /* 24px */
  font-weight: 500;
  color: #777;
  line-height: 1.8;
  margin-bottom: 2.0833vw;
  /* 40px */
  max-width: 73.75vw;
  /* 1416px */
  padding-left: 5.625vw;
}

.fa-mindset-banners {
  display: flex;
  gap: 0;
  margin-bottom: 2.6042vw;
  /* 50px */
}

.fa-mindset-banner {
  position: relative;
  width: 36.875vw;
  /* 708px */
  height: 20.7813vw;
  /* 399px */
  overflow: hidden;
}

.fa-mindset-banner--left {
  border-radius: 1.5625vw 0 0 1.5625vw;
  /* 30px 0 0 30px */
}

.fa-mindset-banner--right {
  border-radius: 0 1.5625vw 1.5625vw 0;
  /* 0 30px 30px 0 */
}

.fa-mindset-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fa-mindset-banner-text {
  position: absolute;
  font-size: 3.3333vw;
  /* 64px */
  font-weight: 700;
  color: var(--color-white);
  text-shadow: 0 0.1042vw 0.4167vw rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

/* First banner text (富人思维) — top-right */
.fa-mindset-banner--left .fa-mindset-banner-text {
  top: 2.0833vw;
  /* 40px */
  right: 2.0833vw;
  /* 40px */
  text-align: right;
}

/* Second banner text (普通人思维) — top-left */
.fa-mindset-banner--right .fa-mindset-banner-text {
  top: 2.0833vw;
  /* 40px */
  left: 2.0833vw;
  /* 40px */
  text-align: left;
}

.fa-mindset-cta {
  text-align: center;
}

.fa-mindset-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16.7188vw;
  /* 321px */
  height: 3.4896vw;
  /* 67px */
  background: #3660F3;
  color: var(--color-white);
  font-size: 1.25vw;
  /* 24px */
  font-weight: 500;
  border-radius: 3.9583vw;
  /* 76px */
  transition: opacity 0.3s;
}

.fa-mindset-btn:hover {
  opacity: 0.9;
}

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

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

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

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

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

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

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

  /* ---- Shared section elements ---- */
  .fa-section-main-title {
    font-size: 22px;
    letter-spacing: 1px;
  }

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

  .fa-section-num-group {
    gap: 10px;
    margin-bottom: 24px;
  }

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

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

  /* ---- Section 01 — Who ---- */
  .fa-who {
    padding: 36px 0;
  }

  .fa-section-header {
    margin-bottom: 20px;
  }

  .fa-who-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .fa-who-card {
    width: 100%;
    height: auto;
    min-height: auto;
    padding: 20px;
    border-radius: 14px;
    flex-direction: row;
  }

  .fa-who-card-text {
    flex: 1;
    min-width: 0;
  }

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

  .fa-who-card-desc {
    font-size: 14px;
    line-height: 24px;
    max-width: none;
  }

  .fa-who-card-img {
    width: 120px;
    height: 100px;
    border-radius: 12px;
    flex-shrink: 0;
  }

  .fa-who-card-img img {
    border-radius: 12px;
  }

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

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

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

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

  .fa-feature-text {
    font-size: 13px;
    line-height: 22px;
  }

  /* ---- Section 03 — Outline ---- */
  .fa-outline {
    padding: 36px 0;
  }

  .fa-outline-card {
    width: 100%;
    flex-direction: column;
    padding: 20px;
    border-radius: 14px;
    min-height: auto;
  }

  .fa-outline-left {
    max-width: 100%;
    margin-bottom: 20px;
  }

  .fa-outline-title {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .fa-outline-subtitle {
    font-size: 14px;
    line-height: 24px;
    margin-bottom: 20px;
  }

  .fa-outline-list li {
    font-size: 14px;
    line-height: 24px;
    gap: 8px;
    margin-bottom: 10px;
  }

  .fa-outline-circle {
    width: 24px;
    height: 24px;
    font-size: 12px;
    margin-top: 2px;
  }

  .fa-outline-list {
    margin-bottom: 24px;
  }

  .fa-outline-pill {
    width: 100%;
    max-width: 340px;
    height: 42px;
    font-size: 14px;
    border-radius: 21px;
  }

  .fa-outline-right {
    position: relative;
    right: auto;
    width: 100%;
    height: auto;
    max-height: 260px;
  }

  .fa-outline-right img {
    width: 100%;
    height: auto;
    max-height: 260px;
    object-fit: contain;
  }

  /* ---- Section 04 — Mindset ---- */
  .fa-mindset {
    padding: 36px 0;
  }

  .fa-mindset-desc {
    font-size: 14px;
    line-height: 24px;
    margin-bottom: 24px;
    max-width: 100%;
    padding-left: 0;
  }

  .fa-mindset-banners {
    flex-direction: column;
    gap: 0;
    margin-bottom: 28px;
  }

  .fa-mindset-banner {
    width: 100%;
    height: 180px;
  }

  .fa-mindset-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .fa-mindset-banner--left {
    border-radius: 14px 14px 0 0;
  }

  .fa-mindset-banner--right {
    border-radius: 0 0 14px 14px;
  }

  .fa-mindset-banner-text {
    font-size: 24px;
  }

  .fa-mindset-banner--left .fa-mindset-banner-text {
    top: 16px;
    right: 16px;
  }

  .fa-mindset-banner--right .fa-mindset-banner-text {
    top: 16px;
    left: 16px;
  }

  .fa-mindset-btn {
    width: auto;
    min-width: 160px;
    height: 42px;
    font-size: 15px;
    border-radius: 21px;
    display: block;
    margin: 0 auto;
  }
}