/* 랜딩페이지 섹션 5 스타일 */
.section_5 {
  background: #fff;
  padding: 160px 0px 136px 0px;
}

.section_5_subtitle {
  text-align: center;
  font-family: Pretendard;
  font-size: 36px;
  font-style: normal;
  font-weight: 700;
  line-height: 36px; /* 100% */
  letter-spacing: -1.08px;
  background: linear-gradient(90deg, #313743 0%, #899dc8 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: 4px;
}

/* 섹션 5 스타일 */
.section_5 {
  background: #fff;
  padding: 160px 0px;
  gap: 80px;
}

.section_5_tab_container {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.tab_box {
  display: flex;
  flex-wrap: wrap; /* 필요시 줄바꿈 허용 */
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
}
/* 탭 버튼 스타일 */
.section5_tab {
  padding: 16px 24px;
  border-radius: 8px;
  background: rgba(224, 230, 242, 0.5);
  border: none;
  cursor: pointer;

  /* 버튼 속 글자  */
  color: #75777d;
  text-align: center;
  font-size: 20px;
  font-weight: 500;
  line-height: 20px; /* 100% */
  letter-spacing: -0.6px;
}
.section5_tab:hover {
  background: #e0e6f2;
}
.section5_tab:active {
  color: #ffffff;
  background: #434d62;
}
.section5_tab.active {
  color: #fff;
  background: #434d62;
}

/* 탭 컨텐츠 부분 */
.section_5_tab_content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* 섹션 5 애니메이션용 초기 상태 */
#section_5_text_container,
#section_5_tab_container {
  opacity: 0;
  transform: translateY(80px);
  transition: opacity 0.2s, transform 0.2s;
}

/* 모바일 스타일 */
@media (max-width: 767px) {
  .section_5 {
    background: #fff;
    padding: 100px 0px 100px 0px;
    gap: 48px;
  }

  .section_5_subtitle {
    font-size: 26px;
    line-height: 1.4;
    letter-spacing: -0.78px;
    word-break: keep-all;
    margin-top: 0px;
  }

  .section_5_tab_container {
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  .tab_box {
    display: flex;
    flex-wrap: wrap; /* 필요시 줄바꿈 허용 */
    justify-content: center;
    align-items: center;
    gap: 12px;
  }

  /* 탭 버튼 스타일 */
  .section5_tab {
    padding: 14px 20px;
    min-width: 80px; /* 버튼 최소 너비 */
    font-size: 16px;
    line-height: 1.4; /* 더 자연스러운 줄간격 */
    letter-spacing: -0.48px;
    white-space: normal; /* 줄바꿈 허용 */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center; /* 여러 줄일 때 중앙 정렬 */
    box-sizing: border-box;
  }
  .section5_tab:hover {
    background: #e0e6f2;
  }
  .section5_tab:active {
    color: #ffffff;
    background: #434d62;
  }
  .section5_tab.active {
    color: #fff;
    background: #434d62;
  }

  /* 탭 컨텐츠 부분 */
  .section_5_tab_content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  .section_5_tab_content > img {
    width: 100%;
  }

  /* 섹션 5 애니메이션용 초기 상태 */
  #section_5_text_container,
  #section_5_tab_container {
    opacity: 0;
    transform: translateY(80px);
    transition: opacity 0.2s, transform 0.2s;
  }
}

/* 테블릿 스타일 */
@media (min-width: 767px) and (max-width: 1024px) {
  .section_5 {
    background: #fff;
    padding: 100px 0px 100px 0px;
    gap: 64px;
  }

  .section_5_subtitle {
    font-size: 36px;
    line-height: 1.4;
    letter-spacing: -0.78px;
    word-break: keep-all;
    margin-top: 0px;
  }

  .section_5_tab_container {
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  .tab_box {
    display: flex;
    flex-wrap: wrap; /* 필요시 줄바꿈 허용 */
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
  }

  /* 탭 버튼 스타일 */
  .section5_tab {
    padding: 14px 20px;
    min-width: 112px; /* 버튼 최소 너비 */
    font-size: 16px;
    line-height: 1.4; /* 더 자연스러운 줄간격 */
    letter-spacing: -0.48px;
    white-space: normal; /* 줄바꿈 허용 */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center; /* 여러 줄일 때 중앙 정렬 */
    box-sizing: border-box;
  }
  .section5_tab:hover {
    background: #e0e6f2;
  }
  .section5_tab:active {
    color: #ffffff;
    background: #434d62;
  }
  .section5_tab.active {
    color: #fff;
    background: #434d62;
  }

  /* 탭 컨텐츠 부분 */
  .section_5_tab_content {
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .section_5_tab_content > img {
    width: 100%;
  }

  /* 섹션 5 애니메이션용 초기 상태 */
  #section_5_text_container,
  #section_5_tab_container {
    opacity: 0;
    transform: translateY(80px);
    transition: opacity 0.2s, transform 0.2s;
  }
}

/* 테블릿 스타일 */
@media (min-width: 1025px) and (max-width: 1350px) {
  .mobile-br {
    display: none;
  }
  .web-br {
    display: none;
  }
  .tab-br {
    display: inline;
  }
  .section_5 {
    background: #fff;
    padding: 100px 0px 100px 0px;
    gap: 64px;
  }

  .section_5_subtitle {
    font-size: 26px;
    line-height: 1.4;
    letter-spacing: -0.78px;
    word-break: keep-all;
    margin-top: 0px;
  }

  .section_5_tab_container {
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  .tab_box {
    display: flex;
    flex-wrap: wrap; /* 필요시 줄바꿈 허용 */
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
  }

  /* 탭 버튼 스타일 */
  .section5_tab {
    padding: 14px 20px;
    min-width: 112px; /* 버튼 최소 너비 */
    font-size: 18px;
    line-height: 1.4; /* 더 자연스러운 줄간격 */
    letter-spacing: -0.48px;
    white-space: normal; /* 줄바꿈 허용 */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center; /* 여러 줄일 때 중앙 정렬 */
    box-sizing: border-box;
  }
  .section5_tab:hover {
    background: #e0e6f2;
  }
  .section5_tab:active {
    color: #ffffff;
    background: #434d62;
  }
  .section5_tab.active {
    color: #fff;
    background: #434d62;
  }

  /* 탭 컨텐츠 부분 */
  .section_5_tab_content {
    width: 100%;
    gap: 24px;
    grid-template-columns: repeat(2, 1fr);
  }
  .section_5_tab_content > img {
    width: 100%;
  }

  /* 섹션 5 애니메이션용 초기 상태 */
  #section_5_text_container,
  #section_5_tab_container {
    opacity: 0;
    transform: translateY(80px);
    transition: opacity 0.2s, transform 0.2s;
  }
}
