/* 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; */
}

.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);
}

.sub-card {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.sub-card__item {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sub-card__title-wrap {
  display: flex;
  gap: 10px;
}

.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 {
  flex-grow: 1;
  padding: 30px;
  font-size: 18px;
  line-height: 1.3;
  border-radius: 20px;
  background-color: var(--background-white);
}

/* 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;
}

.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__container {
  display: flex;
  gap: 80px;
  margin-bottom: 30px;
}

.sub-sc1__title {
  display: block;
  font-size: 36px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 15px;
  line-height: 1.3;
  font-weight: 600;
}

.sub-sc1__desc-wrap {
  padding: 15px 0;
  font-size: 18px;
  line-height: 1.4;
}

.sub-sc1__img-wrap {
  width: 450px;
  height: 100%;
  aspect-ratio: 16 / 10;
  flex-shrink: 0;
  border-radius: 20px;
  overflow: hidden;
}

.sub-sc1__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sub-sc1__blue-banner {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 20px;
  background: #edf2f9;
  padding: 25px;
  border-radius: 14px;
  line-height: 1.3;
}

/* 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-sc4 -------------------------------------- */
.sub-sc4 {
  position: relative;
  background-color: var(--background-white);
}

.sub-sc4__card-wrap {
  position: relative;
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  z-index: 1;
}

.sub-sc4__card-item {
  position: relative;
  width: 100%;
  min-height: 300px;
  color: #ccc;
  line-height: 1.4;
  transition: all 300ms;
  border-radius: 30px;
  overflow: hidden;
}

.sub-sc4__img-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.sub-sc4__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sub-sc4__text-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 100%;
  height: 100%;
  padding: 50px;
  transform: translate(-50%, -50%);
}

.sb-sc4__card-index {
  display: block;
  font-size: 20px;
}

.sub-sc4__card-title {
  font-size: 24px;
  margin-bottom: 15px;
}

.sub-sc4__desc-wrap {
  display: none;
  font-size: 18px;
  display: none;
  -webkit-line-clamp: 10;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sub-sc4__card-item:hover {
  background: rgba(0, 0, 0, 0.7);
}

.sub-sc4__card-item:hover .sub-sc4__desc-wrap {
  display: -webkit-box;
}

.sub-sc4__bottom-text-wrap {
  font-size: 18px;
  line-height: 1.4;
}

/* 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-sc6 {
  /* background-color: var(--background-black); */
  background-color: #edf2f9;
}

.sub-sc6 .sub-section-header__title,
.sub-sc6__desc-wrap {
  color: var(--background-black);
}

.sub-sc6 .btn-open-form-modal {
  background-color: var(--background-black);
  color: #fff;
}

/* sub-sc6 -------------------------------------- */

.sub-sc6__desc-wrap {
  margin-bottom: 25px;
}

.sub-sc6__img-wrap {
  width: 330px;
}

/* sub-sc7 -------------------------------------- */
.sub-sc7__container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 30px;
  row-gap: 50px;
}

.sub-sc7__card-title {
  display: block;
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: 600;
}

.sub-sc7__card-desc-wrap {
  font-size: 18px;
  line-height: 1.4;
}

.sub-sc7__img-wrap {
  width: 100%;
  height: 240px;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 15px;
}

.sub-sc7__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
