/* sub.php CSS 파일 */

/* 서브페이지에 삽입될 수 있는 html 태그들 기본 스타일 설정 */
.sub-body h1,
.sub-body h2,
.sub-body p,
.sub-body ul,
.sub-body ol {
  line-height: 1.4;
}

.sub-body h1 {
  font-size: 40px;
  margin-bottom: 20px;
  font-weight: 600;
}

.sub-body h2 {
  font-size: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.sub-body h3 {
  font-size: 25px;
  margin-bottom: 15px;
  font-weight: 600;
}

.sub-body p {
  font-size: 18px;
  margin: 20px 0;
}

.sub-body ul,
.sub-body ol {
  margin: 20px 0;
  font-size: 18px;
}

.sub-body ul li,
.sub-body ol li {
  list-style-type: disc;
  list-style-position: inside;
}

.sub-body table {
  margin: 30px 0;
}

.sub-body th,
.sub-body td {
  border: 1px solid #aaa;
  padding: 10px 15px;
}

.sub-body th {
  background-color: #edf2f9;
}

.sub-body tbody tr:nth-child(even) {
  background-color: #fafafa;
}

/* 서브페이지에서 form-modal을 사용하기 위해 include한 form.php 숨김처리 */
.sub-page .form {
  /* display: none; */
}

.sub-page section {
  /* padding: 50px 0; */
}
.qna-page-main-banner{
  padding: 120px 0px 80px 0px;
}
.sub-section-header {
  margin-bottom: 30px;
}

.sub-section-header__subtitle {
  display: block;
  font-size: 24px;
  margin-bottom: 12px;
  font-weight: 500;
}

.sub-section-header__title {
  font-size: 36px !important;
  font-weight: 600;
}

.highlight {
  color: var(--primary-color);
}


/* ==============================
Section : card
============================== */

/* main-banner -------------------------------------- */
section.sub-main-banner {
  padding: 160px 0 100px;
  background-color: var(--background-white);
}

.sub-main-banner__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 100px;
}
.qna-page-main-banner__title{
  margin-bottom: 12px;
}
.sub-main-banner__subtitle {
  display: block;
  margin-bottom: 15px;
  font-size: 30px;
  font-weight: 600;
  color: var(--primary-color);
}

.sub-main-banner__title {
  margin-bottom: 15px;
  font-size: 45px;
  font-weight: 800;
  line-height: 1.1;
  word-break: keep-all;
  letter-spacing: -2px;
}

.sub-main-banner__desc {
  font-size: 22px;
  color: #878787;
  font-weight: 500;
  line-height: 1.3;
}

.sub-main-banner__img-wrap {
  width: 480px;
}

.sub-main-banner .btn-open-form-modal {
  margin-top: 35px;
  background-color: var(--background-black);
  color: #fff;
  font-weight: 500;
}

/* sub-tab -------------------------------------- */
.sub-tab {
  padding: 50px 0;
  border-bottom: 1px solid #ddd;
}

.sub-tab__list {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  /* justify-content: space-between; */
  /* border-bottom: 2px solid #ddd; */
}

.sub-tab__item {
  position: relative;
  /* flex: 1 0 auto; */
  /* border-bottom: 2px solid #ddd; */
}

.sub-tab__link {
  flex-shrink: 0;
  width: 100%;
  padding: 10px 20px;
  font-size: 19px;
  color: var(--gray-text);
  font-weight: 500;
  text-align: center;
  border: 2px solid #ddd;
  border-radius: 15px;
}

.sub-tab__item.active .sub-tab__link {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

/* sub-sc1 -------------------------------------- */
/* ===== sub-sc1 리디자인 ===== */
.sub-sc1 {
  padding: 140px 0;
  background-color: #f9fafb;
}

/* 헤더 */
.sub-sc1__header {
  max-width: 720px;
  margin-bottom: 64px;
}

.sub-sc1__eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-color);
}

.sub-sc1__headline {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
  color: #111;
}

.sub-sc1__headline strong {
  color: var(--primary-color);
}

.sub-sc1__intro {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #444;
}

/* 카드 영역 */
.sub-sc1__card-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 64px;
}

.sub-sc1__card {
  padding: 36px 32px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.sub-sc1__card-title {
  display: block;
  margin-bottom: 14px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #111;
}

.sub-sc1__card-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #555;
}

/* 하단 안내 문구 */
.sub-sc1__notice {
  padding: 28px 32px;
  background: #eef2ff;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 500;
  color: #333;
}




/* sub-sc2, sub-sc3 -------------------------------------- */
.sub-sc2 .sub-section-header,
.sub-sc3 .sub-section-header {
  margin-bottom: 30px;
}

.sub-sc2 .sub-section-header__title,
.sub-sc3 .sub-section-header__title {
  font-size: 28px;
}
.sub-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.sub-card-weak{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;  
}
.sub-card__item {
  display: flex;
  flex-direction: column;
}

.sub-card__title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: var(--primary-color);
  padding: 8px 0;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}

.sub-card__index {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 25px;
  height: 25px;
  font-size: 18px;
  font-weight: 400;
  color: #fff;
  background-color: var(--primary-color);
  border-radius: 50%;
}

.sub-card__title {
  font-size: 19px;
  font-weight: 500;
}

.sub-card__desc-wrap {
  padding: 20px;
  font-size: 18px;
  line-height: 1.3;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
  background-color: var(--background-white);
}

/* sub-sc4 -------------------------------------- */
/* ===== sc4 카드 레이아웃 변경 ===== */
.sub-sc4__card-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* 카드 */
.sub-sc4__card-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 420px;
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.sub-sc4__card-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

/* 이미지 */
.sub-sc4__img-wrap {
  width: 100%;
  height: 100%;
}

.sub-sc4__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.sub-sc4__card-item:hover img {
  transform: scale(1.1);
}

/* 이미지 오버레이 */
.sub-sc4__img-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.75),
    rgba(0, 0, 0, 0.2),
    rgba(0, 0, 0, 0)
  );
  z-index: 1;
}

/* 텍스트 영역 */
.sub-sc4__text-wrap {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  padding: 24px;
  color: #fff;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 카드 번호 */
.sb-sc4__card-index {
  font-size: 1rem;
  font-weight: 700;
  opacity: 0.8;
}

/* 카드 타이틀 */
.sub-sc4__card-title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
}

/* 설명 */
.sub-sc4__desc-wrap {
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.9;

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;

  transition: -webkit-line-clamp 0.3s ease;
}

/* hover 시 설명 더 강조 */
.sub-sc4__card-item:hover .sub-sc4__desc-wrap {
  -webkit-line-clamp: 5;
}

/* ===== 하단 텍스트 ===== */
/* .sub-sc4__bottom-text-wrap {
  margin-top: 48px;
  padding: 32px;
  background: #f7f7f7;
  border-radius: 12px;
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
} */



/* ===== sc4 하단 정보 박스 ===== */
.sub-sc4__bottom-text-wrap {
  position: relative;
  margin-top: 64px;
  padding: 40px 48px;
  background: linear-gradient(135deg, #f9fafb, #f1f3f5);
  border-radius: 16px;
  font-size: 1.05rem;
  line-height: 1.9;
  color: #333;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* 좌측 포인트 바 */
.sub-sc4__bottom-text-wrap::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 0;
  width: 6px;
  height: calc(100% - 48px);
  background: linear-gradient(to bottom, #4f46e5, #6366f1);
  border-radius: 0 4px 4px 0;
}

/* 인용문 느낌 장식 */
.sub-sc4__bottom-text-wrap::after {
  content: "INSIGHT";
  position: absolute;
  top: -14px;
  left: 24px;
  padding: 4px 12px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  background: #4f46e5;
  border-radius: 999px;
}


/* sub-sc5, sub-sc6 -------------------------------------- */
.sub-sc5 .sub-section-header__subtitle,
.sub-sc6 .sub-section-header__subtitle {
  color: var(--primary-color);
}

.sub-sc5__container,
.sub-sc6__container {
  display: flex;
  align-items: center;
  gap: 50px;
}

.sub-sc5__img-wrap,
.sub-sc6__img-wrap {
  flex-shrink: 0;
  width: 360px;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
}

.sub-sc5__img-wrap img,
.sub-sc6__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sub-sc5__desc-wrap,
.sub-sc6__desc-wrap {
  font-size: 18px;
  line-height: 1.4;
}

/* sub-sc5, sub-sc6 -------------------------------------- */
.sub-sc5 {
  padding: 120px 0;
  background-color: #f8fafc;
}

.sub-sc5__container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  align-items: center;
  
}

.sub-sc5__desc-wrap {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #333;
  margin-top: 32px;
}

.sub-sc5__img-wrap {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.sub-sc5__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* section 66666666 */
/* ===== sub-sc6 전체 ===== */
.sub-sc6 {
  padding: 160px 0;
  background-color: #f8fafc;
}

/* 컨테이너 */
.sub-sc6__container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
}

/* 비주얼 이미지 */
.sub-sc6__visual {
  height: 420px;
  border-radius: 28px;
  overflow: hidden;
}

.sub-sc6__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 텍스트 카드 */
.sub-sc6__content {
  width: 460px;
  padding: 40px 44px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
}

/* 배지 */
.sub-sc6__badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 14px;
  font-size: 1rem;
  font-weight: 700;
  color: #4f46e5;
  background: #eef2ff;
  border-radius: 999px;
}

/* 타이틀 */
.sub-sc6__title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.3;
  color: #111;
}

/* 설명 */
.sub-sc6__desc {
  margin: 20px 0 32px;
  font-size: 1rem;
  line-height: 1.8;
  color: #444;
}

/* 버튼 */
.btn-go-form {
  padding: 14px 34px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 999px;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-go-form:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(79, 70, 229, 0.35);
}

/* ===== 반응형 ===== */


/* sub-sc7 -------------------------------------- */
/* 카드 그리드 */
.sub-sc7__container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 30px;
}

/* 카드 전체 느낌 (img + 텍스트 묶는 용도) */
.sub-sc7__card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sub-sc7__card:hover {
  transform: translateY(-6px);
}

/* 이미지 */
.sub-sc7__img-wrap {
  width: 100%;
  height: 240px;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.sub-sc7__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.sub-sc7__card:hover .sub-sc7__img-wrap img {
  transform: scale(1.08);
}

/* 카드 타이틀 */
.sub-sc7__card-title {
  display: block;
  margin-bottom: 8px;
  font-size: 1.125rem;
  font-weight: 700;
  color: #111;
  line-height: 1.3;
}

/* 설명 */
.sub-sc7__card-desc-wrap {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/*서브 반응형 */
@media (max-width: 1200px) {
  .sub-sc7__container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .sub-sc7__container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .sub-sc7__container {
    grid-template-columns: 1fr;
  }
}



/* ========================================================================== */
/* 1820 ~                                                                     */
/* ========================================================================== */
@media screen and (max-width: 1820px) {

}


/* ========================================================================== */
/* 1400 ~ 1281                                                                */
/* ========================================================================== */
@media screen and (max-width: 1400px) {

}


/* ========================================================================== */
/* 1280 ~ 1024                                                                */
/* ========================================================================== */
@media screen and (max-width: 1280px) {
    /* sub-sc7 */
  .sub-sc7__container {
    grid-template-columns: repeat(3, 1fr);
  }

}


/* ========================================================================== */
/* 960 ~ 1023                                                                 */
/* ========================================================================== */
@media screen and (max-width: 1023px) {
    section.sub-main-banner {
    padding: 120px 0 80px;
  }

  .sub-main-banner__container {
    gap: 60px;
  }

  .sub-main-banner__subtitle {
    font-size: 24px;
  }

  .sub-main-banner__title {
    font-size: 38px;
  }

  .sub-main-banner__desc {
    font-size: 18px;
  }
    .sub-sc6 {
    padding: 120px 0;
  }

  .sub-sc6__container {
    gap: 40px;
    align-items: center;
  }

  .sub-sc6__visual {
    height: 360px;
    flex: 1;
  }

  .sub-sc6__content {
    width: 420px;
    padding: 36px 40px;
  }

  .sub-sc6__title {
    font-size: 1.75rem;
  }
    .sub-sc5 {
    padding: 96px 0;
  }

  .sub-sc5__container {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }

  .sub-sc5__desc-wrap {
    font-size: 1rem;
    line-height: 1.8;
    margin-top: 24px;
  }
  
    .sub-sc1__card-wrap {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 56px;
  }
    .sub-sc2 .sub-section-header__title,
  .sub-sc3 .sub-section-header__title {
    font-size: 24px;
  }

  .sub-card {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .sub-card-weak {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
    .sub-sc4__card-wrap {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .sub-sc4__card-item {
    height: 360px;
  }

  .sub-sc4__card-title {
    font-size: 1.3rem;
  }

  .sub-sc4__desc-wrap {
    font-size: 1rem;
    -webkit-line-clamp: 3;
  }

  .sub-sc4__bottom-text-wrap {
    margin-top: 48px;
    padding: 32px 36px;
    font-size: 1rem;
  }
    /* sub-sc4 */
  .sub-sc4__card-wrap {
    grid-template-columns: repeat(2, 1fr);
  }

}


/* ========================================================================== */
/* 768 ~ 959                                                                  */
/* ========================================================================== */
@media screen and (max-width: 959px) {

}


/* ========================================================================== */
/* 587 ~ 767                                                                  */
/* ========================================================================== */
@media screen and (max-width: 767px) {
  .sub-main-banner {
    padding: 80px 0 60px;
  }

  .sub-main-banner__container {
    flex-direction: column;
    align-items: stretch;
    gap: 48px;
  }

  .sub-main-banner__title-wrap {
    text-align: center;
  }

  .sub-main-banner__subtitle {
    font-size: 20px;
  }

  .sub-main-banner__title {
    font-size: 32px;
    letter-spacing: -1px;
  }

  .sub-main-banner__desc {
    font-size: 16px;
  }

  .sub-main-banner .btn-open-form-modal {
    margin: 28px auto 0;
    display: block;
  }
    .sub-sc6 {
    padding: 80px 0;
  }

  .sub-sc6__container {
    flex-direction: column;
    gap: 32px;
  }

  .sub-sc6__visual {
    width: 100%;
    height: 300px;
  }

  .sub-sc6__content {
    width: 100%;
    max-width: 520px;
    padding: 32px;
    text-align: center;
  }

  .sub-sc6__badge {
    margin: 0 auto 12px;
  }

  .sub-sc6__title {
    font-size: 1.6rem;
  }

  .sub-sc6__desc {
    font-size: 1rem;
    line-height: 1.7;
  }
    .sub-sc5 {
    padding: 72px 0;
  }

  .sub-sc5__container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .sub-sc5__text-wrap {
    order: 1;
  }

  .sub-sc5__img-wrap {
    order: 2;
    max-width: 300px;
    margin: 0 auto;
  }

  .sub-sc5__desc-wrap {
    font-size: 1rem;
    line-height: 1.7;
  }
    .sub-sc1__card-wrap {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 48px;
  }
    .sub-sc2 .sub-section-header,
  .sub-sc3 .sub-section-header {
    margin-bottom: 24px;
  }

  .sub-sc2 .sub-section-header__title,
  .sub-sc3 .sub-section-header__title {
    font-size: 20px;
  }

  .sub-card,
  .sub-card-weak {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .sub-card__item {
    padding: 24px 20px;
  }

  .sub-card__title-wrap {
    gap: 8px;
  }

  .sub-card__index {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .sub-card__title {
    font-size: 15px;
  }

  .sub-card__desc-wrap {
    font-size: 14px;
    line-height: 1.6;
  }
  .sub-sc4__card-wrap {
    grid-template-columns: 1fr;
  }

  .sub-sc4__card-item {
    height: 360px;
  }

}


/* ========================================================================== */
/* 431 ~ 586                                                                  */
/* ========================================================================== */
@media screen and (max-width: 586px) {
  .sub-sc6 {
    padding: 64px 0;
  }

  .sub-sc6__visual {
    height: 240px;
    border-radius: 20px;
  }

  .sub-sc6__content {
    padding: 28px 24px;
    border-radius: 20px;
  }

  .sub-sc6__title {
    font-size: 1.4rem;
  }

  .sub-sc6__desc {
    margin: 16px 0 24px;
    font-size: 1rem;
  }
    .sub-sc5 {
    padding: 56px 0;
  }

  .sub-sc5__desc-wrap {
    font-size: 1rem;
    margin-top: 20px;
  }

  .sub-sc5__img-wrap {
    border-radius: 16px;
  }
    .sub-sc1__card-wrap {
    gap: 16px;
    margin-bottom: 40px;
  }
    .sub-sc2 .sub-section-header__title,
  .sub-sc3 .sub-section-header__title {
    font-size: 18px;
  }

  .sub-card__item {
    padding: 20px 0px;
  }

  .sub-card__desc-wrap {
    font-size: 13.5px;
  }

}


/* ========================================================================== */
/* 360 ~ 430                                                                  */
/* ========================================================================== */
@media screen and (max-width: 430px) {
  .sub-main-banner {
    padding: 64px 0 48px;
  }

  .sub-main-banner__subtitle {
    font-size: 18px;
  }

  .sub-main-banner__title {
    font-size: 26px;
    line-height: 1.25;
  }

  .sub-main-banner__desc {
    font-size: 15px;
  }
  .sub-sc7__container {
    grid-template-columns: 1fr;
  }

}
