:root {
  --section2-bg-color: #5c8b5d;
  --start-assessment-color: #9cb420;
  --tag-bg-color: #d1ad9f;
  --symptoms-color: #d1e89f;
}

/* 홈화면 전용 폰트 사이즈 오버라이드 (데스크탑) - 기본 대비 20% 증가 */
.headingTitle {
  font-size: 4.3rem; /* 3.6rem * 1.2 */
}

.contentMediumLarge {
  font-size: 2.4rem; /* 2.0rem * 1.2 */
}

.contentMedium {
  font-size: 1.9rem; /* ~1.6rem * 1.2 */
}

.main {
  padding: 0 15rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

header {
  background: #ffffff00;
  color: var(--white);
}

svg {
  /* fill: var(--white); */
  cursor: pointer;
}

.menu__link {
  color: var(--white);
}

.menu__link.login {
  color: var(--primary);
}

.logo-str {
  color: var(--white);
}

.hr_header {
  border: 0.1px solid #ffffff00;
}

.header_sec1_wrapper {
  background-image: url("/static/img/top_background_113.5aa75d64381a.png");
  /*background-color: #b2874b;*/
  background-size: cover;
  background-position: right bottom; /* 오른쪽 아래에서 오프셋 */
  background-repeat: no-repeat;
}

/* section1 */
.section1 {
  position: relative;
  align-self: center;
  width: 700px;
  /* width: 100%; */
  /* z-index: 2; */
  padding-top: 15rem;
  padding-bottom: 35.4rem;
  width: 100%;
}

.content_wrapper_section1 {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 10;
  color: var(--white);
  margin: 0rem 8rem;
}

.back_img {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
}

.section_title {
  font-family: "Special Elite";
  line-height: 1.25;
}

.section1_text2 {
  margin-top: 3.2rem;
}

.section1_text3 {
  font-family: "Special Elite";
  padding: 1.4rem 2.6rem;
  background-color: var(--primary);
  border-radius: 999rem;
  margin-top: 4.4rem;
  width: max-content;
  cursor: pointer;
}

.section1_text3:hover {
  background-color: var(--buttonPrimaryHover);
}

.section1_text3:active {
  background-color: var(--buttonPrimaryPressed);
}

/*section2*/
.section2 {
  background-color: var(--section2-bg-color);
  padding: 8rem 4rem 10rem;
  width: 100%;
  box-sizing: border-box;
}

.section2-header {
  text-align: center;
  color: var(--white);
  margin-bottom: 6rem;
}

.section2-header .section_title {
  color: var(--white);
  margin-bottom: 2rem;
}

.section2-subtitle {
  color: var(--white);
  opacity: 0.9;
  line-height: 1.6;
}

.section2-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6rem;
  max-width: 1400px;
  margin: 0 auto;
}

.phase-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 350px;
  width: 100%;
}

.phase-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 300px;
  margin-bottom: -5rem;
  position: relative;
  z-index: 10;
}

.phase-label img {
  width: 100%;
  max-width: 300px;
  height: auto;
  object-fit: contain;
}

.phase-description {
  font-size: 2.9rem;
  color: #cae497;
  text-align: center;
  line-height: 1.5;
  padding: 3rem 2rem;
  font-weight: 400;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  /* min-width: 800px; */

  box-sizing: border-box;
}

.phase-item-1 .phase-description {
  background-image: url("/static/img//home/hiw-bg-11.56394fc8c73a.png");
}

.phase-item-2 .phase-description {
  background-image: url("/static/img//home/hiw-bg-22.b8ce8c6eeae5.png");
}

.phase-item-3 .phase-description {
  background-image: url("/static/img//home/hiw-bg-33.png");
}

/* Legacy styles kept for compatibility */
.section2_text2 {
  text-align: center;
}

.water_drop {
  width: 25%;
  position: absolute;
  top: -60%;
}

/*package_section*/
.package_section {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.package_section-img {
  width: 100%;
  height: auto;
  display: block;
}

.package_section .content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: var(--primary700);
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 10rem 8rem;
  box-sizing: border-box;
}

.package_text {
}

.package_title {
  font-family: "Special Elite", cursive;
  font-size: 4.2rem;
  line-height: 1.2;
  margin-bottom: 2rem;
  font-weight: 400;
}

.package_subtitle {
  font-size: 2.9rem;
  line-height: 1.5;
  font-weight: 400;
}
/*section3 */
.section3 {
  padding-top: 9.4rem;
  padding-bottom: 7.6rem;
  background-color: var(--secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--primary700);
}

.section3_text2 {
  text-align: center;
}

.section3_cards_wrapper {
  display: flex;
  justify-content: center;
  color: var(--white);
  text-align: center;
  gap: 1.2rem;
  margin: 5.8rem 0 0 0;
  width: 100%;
  position: relative;
}

.section3_cards_content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 33%;
  max-width: 40rem;
  flex-shrink: 0;
}

/* .section3_postion {
  display: flex;
  flex-direction: column;

} */
.cards_title {
  background-color: var(--primary);
  padding: 1.2rem 0rem;
  width: 85%;
  border-radius: 999rem;
  z-index: 6;
  font-family: "Special Elite";
}

.cards_img {
  width: 100%;
  /* width: 36rem; */
  /* position: absolute;
  transform: translate(0%, -5%); */
  margin-top: -1.3rem;
  z-index: 5;
}

.card_bottom_wrapper {
  padding-top: 3rem;
  padding-bottom: 1.4rem;
  width: 100%;
  height: 100%;
  background-color: var(--primary);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card_bottom_wrapper > p {
  margin-left: 1rem;
  margin-right: 1rem;
}

.cards_text {
  margin-bottom: 4.6rem;
}

.card_link {
  color: var(--start-assessment-color);
  font-family: "Pretendard";
  font-weight: 700;
  display: inline-block;
  /* margin-top: 4.6rem; */
}

.cards_img_wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.symptoms {
  color: var(--symptoms-color);
  font-family: "Pretendard";
  font-weight: 700;
  text-transform: uppercase;
  position: absolute;
  top: 75%;
  z-index: 10;
  margin-left: 4rem;
  margin-right: 4rem;
  line-height: 1.6;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin: 0 2rem 3rem 2rem;
  gap: 0.6rem;
}

.tags .tag {
  font-family: "Helvetica Neue", sans-serif;
  font-weight: 600;
  background-color: var(--tag-bg-color);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 0.8rem;
  font-size: 1.4rem;
  cursor: pointer;
  text-transform: uppercase;
}

.side_btn_wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 2rem;
  position: relative;
}

.side_btn_wrapper .left_btn {
  background-color: var(--start-assessment-color);
  border: 1px solid var(--primary);
  cursor: pointer;
  border-radius: 50%;
  padding: 0.5rem;
  color: white;
  width: 4rem;
  height: 4rem;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.side_btn_wrapper .right_btn {
  background-color: var(--start-assessment-color);
  border: 1px solid var(--primary);
  cursor: pointer;
  border-radius: 50%;
  padding: 0.5rem;
  color: white;
  width: 4rem;
  height: 4rem;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.carousel_track_wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.carousel_track {
  display: flex;
  transition: transform 0.4s ease-in-out;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 2rem;
}

.carousel_track::-webkit-scrollbar {
  display: none;
}

/*section4 */

.section4 {
  padding: 13.8rem 2rem 19.2rem;
  background: url("/static/img/멤버십플랜_글자없음.735d98ab6653.jpg")
    center/cover no-repeat;
  text-align: center;
  color: var(--white);
  width: 100%;
  box-sizing: border-box;
  color: var(--primary500);
}

.section4_wrapper {
  display: flex;
  width: 100%;
  max-width: 1200px;
  justify-content: center;
  gap: 3rem;
  margin: 9.6rem auto 0;
}

.section4_card {
  background-color: rgba(230, 220, 200, 0.95);
  border-radius: 2.4rem;
  padding: 4rem 3rem;
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.section4_card_green {
  background-color: rgba(195, 210, 150, 0.95);
}

.plan_icon {
  margin-bottom: 2rem;
}

.plan_title {
  font-family: "Special Elite", cursive;
  font-size: 2.9rem;
  color: var(--primary700);
  margin-bottom: 1rem;
  font-weight: 700;
}

.plan_subtitle {
  font-size: 1.9rem;
  color: var(--primary700);
  margin-bottom: 3rem;
  line-height: 1.4;
}

.plan_features {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.plan_features li {
  font-size: 1.9rem;
  color: var(--primary700);
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(92, 139, 93, 0.3);
  text-align: left;
  position: relative;
  padding-left: 3rem;
  font-weight: 500;
}

.plan_features li:last-child {
  border-bottom: none;
}

.plan_features li::before {
  content: "✓";
  position: absolute;
  left: 1rem;
  color: var(--primary700);
  font-weight: 700;
  font-size: 2.2rem;
}

.section4_content {
  display: flex;
  flex-direction: column;
  width: 30%;
  position: relative;
  text-align: center;
}

/* .content_left {
  background-image: url("/static/img/individuals.7e160965c2a4.png");
  background-size: cover;
} */
.content_img {
  width: 100%;
  height: 100%;
}
.section4_img {
  width: 100%;
  height: 100%;
}
/* .content_right {
  background-image: url("/static/img/organizations.3e13ac407c16.png");
  background-size: cover;
} */

.content_text {
  position: absolute;
  top: 0%;
  width: 100%;
  padding-top: 15rem;
  padding-bottom: 4rem;
}
.section4_title {
  font-size: var(--font-title-XXL);
}

.section4_detail_text {
  margin-top: 2rem;
  margin-bottom: 4.8rem;
  font-size: var(--font-detail-M);
}

.section4_text {
  font-size: var(--font-title-M);
}

.section4_link {
  font-size: var(--font-title-M);
  color: var(--primary);
  font-family: "Pretendard";
  font-weight: 700;
  display: inline-block;
  margin-top: 2rem;
}
.hr_indext {
  border: 0.8px solid var(--primary);

  margin: 2rem auto;
  width: 90%;
}
/* /home/ubuntu/mango/src/static/img/bottom_background.png */
/*section5 */

.section5 {
  padding-top: 4.8rem;
  padding-bottom: 4.8rem;
  background-color: var(--primary);
}

.section5_text1 {
  font-family: "Special Elite";
  padding: 1.4rem 2.6rem;
  background-color: var(--primary_option1);
  color: var(--primary);
  margin: 0rem auto;
  border-radius: 999rem;
  width: max-content;
  cursor: pointer;
  font-family: "Pretendard";
  font-weight: 700;
}

.section5_text1:hover {
  background-color: #e4ad60;
  color: var(--primary600);
}
.section5_text1:active {
  background-color: #b2874b;
  color: var(--primary800);
}

@media only screen and (max-width: 1260px) {
  .carousel_track_wrapper {
    width: 90%;
  }

  .contentMediumLarge {
    font-size: 1.6rem;
  }

  .tags .tag {
    font-size: 1rem;
    padding: 0.4rem 0.8rem;
  }

  .contentMedium {
    font-size: 1.4rem;
  }
  .symptoms {
    font-size: 1.4rem;
    margin-left: 2rem;
    margin-right: 2rem;
  }

  /* package_section responsive */
  .package_section .content {
    padding: 8rem 6rem;
  }

  .package_title {
    font-size: 2.9rem;
    margin-bottom: 1.8rem;
  }

  .package_subtitle {
    font-size: 2rem;
  }

  /* section2 responsive */
  .section2-content {
    gap: 3rem;
  }

  .phase-item {
    min-width: 300px;
  }

  .phase-label {
    max-width: 280px;
  }

  .phase-label img {
    max-width: 280px;
  }

  .phase-description {
    font-size: 1.6rem;
    min-height: 250px;
  }
}

/* Tablets portrait (up to 992px) */
@media only screen and (max-width: 992px) {
  .section3 > p:last-child {
    margin-left: 3rem;
    margin-right: 1rem;
  }

  .contentMediumLarge {
    font-size: 1.5rem;
  }

  .tags .tag {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }

  .contentMedium {
    font-size: 1.4rem;
  }

  .symptoms {
    font-size: 1.3rem;
    margin-left: 1.5rem;
    margin-right: 1.5rem;
  }

  /* package_section responsive */
  .package_section .content {
    padding: 6rem 4rem;
  }

  .package_title {
    font-size: 2.6rem;
    margin-bottom: 1.5rem;
  }

  .package_subtitle {
    font-size: 1.8rem;
  }

  /* section2 responsive */
  .section2 {
    padding: 6rem 3rem 8rem;
  }

  .section2-content {
    flex-direction: column;
    align-items: center;
    gap: 4rem;
  }

  .phase-item {
    min-width: 350px;
  }

  .phase-label {
    max-width: 280px;
  }

  .phase-label img {
    max-width: 280px;
  }

  .phase-description {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .section3_cards_content {
    width: 50%; /* show 1 card mostly */
  }

  .side_btn_wrapper .left_btn,
  .side_btn_wrapper .right_btn {
    width: 3rem;
    height: 3rem;
  }

  .header_sec1_wrapper {
    background-position: right -120px bottom 0px; /* 오른쪽 아래 */
  }

  /* package_section responsive */
  .package_section .content {
    padding: 4rem 3rem;
  }

  .package_title {
    font-size: 2rem;
    margin-bottom: 1.2rem;
  }

  .package_subtitle {
    font-size: 1.5rem;
  }

  /* section4 responsive */
  .section4_wrapper {
    flex-direction: column;
    align-items: center;
    padding: 0 2rem;
  }

  .section4_card {
    max-width: 500px;
  }

  .plan_title {
    font-size: 2rem;
  }

  .plan_subtitle {
    font-size: 1.4rem;
  }

  .plan_features li {
    font-size: 1.4rem;
    padding: 1.2rem 1.5rem;
    padding-left: 2.5rem;
  }

  /* section2 responsive */
  .section2 {
    padding: 5rem 2rem 6rem;
  }

  .section2-header {
    margin-bottom: 4rem;
  }

  .phase-item {
    min-width: 300px;
  }

  .phase-label {
    max-width: 260px;
  }

  .phase-label img {
    max-width: 260px;
  }

  .phase-description {
    font-size: 1.5rem;
    min-height: 300px;
  }
}

/* Small smartphones (up to 576px) */
@media only screen and (max-width: 576px) {
  .content_wrapper_section1 {
    margin: 0rem 3rem;
  }

  .section3 > p {
    margin-left: 1rem;
    margin-right: 1rem;
  }

  .section3 > p:last-child {
    margin-left: 3rem;
    margin-right: 1rem;
  }

  .section3_cards_content > .contentMediumLarge {
    font-size: 1.4rem;
  }

  .section3_cards_wrapper {
    flex-direction: column;
    align-items: center;
  }

  .section3_cards_wrapper .section3_cards_content {
    width: 80%;
  }

  .section4_wrapper {
    flex-direction: column;
    width: 80%;
  }

  .section3_cards_content {
    width: 90%; /* show 1 card mostly */
    scroll-snap-align: start;
  }

  .carousel_track {
    scroll-snap-type: x mandatory;
  }
  .right_btn,
  .left_btn {
    display: none;
  }

  .headingTitle {
    font-size: 2.6rem;
  }

  .contentMediumLarge {
    font-size: 1.3rem;
  }

  .symptoms {
    font-size: 1.4rem;
    margin-left: 2rem;
    margin-right: 2rem;
  }

  /* package_section responsive */
  .package_section .content {
    padding: 2.5rem 2rem;
  }

  .package_title {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    line-height: 1.3;
  }

  .package_subtitle {
    font-size: 1.1rem;
    line-height: 1.4;
  }

  /* section4 responsive */
  .section4 {
    padding: 8rem 1.5rem 10rem;
  }

  .section4_wrapper {
    margin-top: 6rem;
  }

  .section4_card {
    padding: 3rem 2rem;
  }

  .plan_icon svg {
    width: 50px;
    height: 50px;
  }

  .plan_title {
    font-size: 1.8rem;
  }

  .plan_subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
  }

  .plan_features li {
    font-size: 1.3rem;
    padding: 1rem 1rem;
    padding-left: 2.2rem;
  }

  .plan_features li::before {
    font-size: 1.5rem;
    left: 0.5rem;
  }

  /* section2 responsive */
  .section2 {
    padding: 4rem 1.5rem 5rem;
  }

  .section2-header {
    margin-bottom: 3rem;
  }

  .section2-header .section_title {
    font-size: 2.4rem;
    margin-bottom: 1.5rem;
  }

  .section2-subtitle {
    font-size: 1.2rem;
  }

  .section2-content {
    gap: 3rem;
  }

  .phase-item {
    max-width: 100%;
    min-width: 280px;
  }

  .phase-label {
    max-width: 240px;
  }

  .phase-label img {
    max-width: 240px;
  }

  .phase-description {
    font-size: 1.4rem;
    min-height: 280px;
  }
}

/* Extra small devices (up to 400px) */
@media only screen and (max-width: 400px) {
  .section4 > p {
    margin-left: 1rem;
    margin-right: 1rem;
  }
}

/* mobile-only rule: force the last two words of the main heading to wrap to a new line
   Default (desktop): keep inline. On small screens, make the span a block so it breaks. */
.mobile-break {
  display: inline;
}

@media (max-width: 600px) {
  .headingTitle .mobile-break {
    display: block;
  }
}
