.wow {
  visibility: hidden;
}

/* 서브 비주얼 */

.sub-visual {
  position: relative;
  overflow: hidden;
  height: 440px;
  margin: 0 0 80px;
}

.sub-visual .inner {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1680px;
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

.sub-visual .bg {
  height: 100%;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  opacity: 1;
  transform: scale(1.3);
}

.sub-visual.active .bg {
  opacity: 1;
  transform: scale(1) rotate(0.01deg);
  transition: transform 5s ease 0.3s, opacity 2s ease 1s;
}

.sub-visual._portfolio {
  background-image: url(../img/page/visual_1.jpg);
}

.sub-visual._introduction {
  background-image: url(../img/page/visual_2.jpg);
}

.sub-visual._application {
  background-image: url(../img/page/visual_3.jpg);
}

.sub-visual._detailed {
  background-image: url(../img/page/visual_4.jpg);
}

.sub-visual._event {
  background-image: url(../img/page/visual_5.jpg);
}

.sub-visual._education {
  background-image: url(../img/page/visual_6.jpg);
}

.sub-visual .tit {
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.39, 0.575, 0.565, 1) 0.2s;
}

.sub-visual.active .tit {
  opacity: 1;
}

.sub-visual .txt {
  opacity: 0;
  width: 100%;
  -webkit-transform: translateY(-50%);
  -moz-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  -o-transform: translateY(-50%);
  transform: translateY(-50%);
}

.sub-visual.active .txt {
  -webkit-mask-image: linear-gradient(
    -70deg,
    rgba(0, 0, 0, 0) 47.5%,
    rgba(0, 0, 0, 1) 52.5%
  );
  -webkit-mask-size: 250% 100%;
  animation: reveal 7s cubic-bezier(0.23, 1, 0.32, 1) both;
  animation-delay: 0s;
  /* 바로 실행 */
}

.sub-visual ._box {
  z-index: 2;
}

.sub-visual .tit h2 {
  margin-top: 25px;
  margin-bottom: 0 !important;
  font-size: 32px !important;
  font-weight: 600;
}

.sub-visual .txt {
  margin-bottom: 0 !important;
  font-size: 28px !important;
}

/* */

@keyframes reveal {
  0% {
    -webkit-mask-position: 100%;
    opacity: 0;
  }

  100% {
    -webkit-mask-position: 0;
    opacity: 1;
  }
}

/* 공통 */

#ctt {
  padding: 0 !important;
}

h3.fs-3 {
  color: var(--bs-primary);
  line-height: 1.5;
  letter-spacing: -0.9px;
}

#ctt_con p {
  font-size: 16px;
  line-height: 1.7;
}

#ctt_con .table thead th {
  border-top: 1px solid #64d0cb;
  background-color: #f4f4f4;
}

#ctt_con .table th,
#ctt_con .table td {
  padding: 14px 0.5rem;
  vertical-align: middle;
}

#ctt_con .table tbody th,
#ctt_con .table td {
  font-size: 14px;
}

.page-title {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

/* board */

#bo_category {
  /* display: none; */
  margin-bottom: 20px;
}

#bo_category .nav {
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 14px;
  justify-content: center;
}

#bo_category .nav-item .nav-link {
  padding: 9px 0 !important;
  background-color: #fff;
  border: 1px solid #e30413;
  border-radius: 999px;
  font-size: 16px;
  color: #e30413;
  text-align: center;
}

#bo_category .nav-item .nav-link.active {
  background-color: #e30413;
  color: #fff;
}

.bod-top {
  margin-top: 70px;
}

#bo_list_wrap,
#bo_list_wrap_portfolio,
#bo_w,
#bo_v {
  max-width: 1730px;
  margin: 70px auto;
  padding: 0 0 70px;
}

#bo_list {
  font-size: 14px;
  font-weight: 500;
}

.card-title {
  font-size: 24px;
  font-weight: 600;
}

/* */

.seven-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /* 7등분 */
  /* gap: 1rem; 간격 */
}

.custom-tab {
  padding: 10px 5px;
  border-bottom: 2px solid #d7d7d7;
  background-color: white;
  font-size: 28px;
  font-weight: 600;
  color: #d7d7d7;
  text-align: center;
  transition: all 0.2s ease-in-out;
}

.custom-tab:hover {
  text-decoration: none;
}

.custom-tab.active {
  border-bottom: 2px solid #e30413;
  color: #e30413;
}

/* */

.lst-option {
  border-top: 1px solid #d7d7d7;
  border-bottom: 1px solid #d7d7d7;
}

.lst-option h3 {
  padding: 20px 0;
}

.lst-option ul {
  /* padding: 0 0 50px; */
}

.lst-option .nav-pills .nav-link {
  color: #666666;
}

.lst-option .nav-pills .nav-link.active,
.lst-option .nav-pills .show > .nav-link {
  background-color: #f1f1f1;
  color: #666666;
}

.lst-option .g-col-lg-4 {
  position: relative;
  padding-left: 30px; /* 선과 간격 확보 */
  padding-right: 30px;
}

.lst-option .g-col-lg-4:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  background-color: #ddd;
}

/* */

.lst-order {
  border-top: 1px solid #d7d7d7;
  border-bottom: 1px solid #d7d7d7;
}

.lst-order .menu-item {
  position: relative;
  padding: 0 30px;
  text-decoration: none;
  color: #000;
}

.lst-order .menu-item::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  border-right: 1px solid #ccc;
  height: 26px; /* 선 높이 조절 */
}

.lst-order .menu-item:last-child::after {
  content: none;
  border: none;
}

/* view */

.lst-cate {
  padding: 30px 0 40px;
}

.lst-cate .nav-pills .nav-link {
  border: 1px solid #646464;
  color: #666666;
}

.lst-cate .nav-pills .nav-link.active,
.lst-cate .nav-pills .show > .nav-link {
  background-color: #000;
  color: #fff;
}

.lst-sort {
  background-color: #f1f1f1;
}

.lst-sort .g-col-md-6 {
  position: relative;
  padding-left: 10px; /* 선과 간격 확보 */
  padding-right: 10px;
}

.lst-sort .g-col-md-6:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  background-color: #d7d7d7;
}

/* 폼 스타일 변경 */
.form-check-input {
  vertical-align: middle !important;
  margin-top: 0 !important;
}
.form-check-label {
  vertical-align: middle !important;
  line-height: 1.2 !important;
}

/* placeholder 색상 변경 */
.form-control::placeholder {
  color: #999 !important;
  opacity: 1;
}

.form-control,
.form-select {
  border: none !important;
  color: #999 !important;
}

@media (max-width: 1200px) {
  #bo_list_wrap,
  #bo_list_wrap_portfolio,
  #bo_w,
  #bo_v {
    margin: 0px auto;
  }
}

/* 모바일에서 수직선 숨기기 */
@media (max-width: 767px) {
  .lst-sort .g-col-md-6:not(:last-child)::after {
    display: none;
  }
}

.info-item {
  margin: 16px 0;
}

.info-item strong {
  display: block;
  font-weight: bold;
  margin-bottom: 4px;
}

.info-item .nav-pills .nav-link {
  font-size: 14px;
  color: #666666;
}

.info-item .nav-pills .nav-link.active,
.info-item .nav-pills .show > .nav-link {
  background-color: #fff;
  color: #666666;
}

/* 소개 */

.ctt_introduction ._1 .g-col-12.g-col-lg-6 strong {
  font-size: 24px;
  font-weight: 600;
  color: #e30413;
}

.section-title {
  font-size: 26px !important;
  font-weight: 600 !important;
  margin-bottom: 1rem !important;
  line-height: 1.4;
}

.ctt_introduction ._1 .g-col-12.g-col-lg-5 p {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.8 !important;
  white-space: normal !important;
  display: block !important;
}

/* br 태그 강제 활성화 */
.ctt_introduction ._1 .g-col-12.g-col-lg-5 p br {
  display: block !important;
  content: "" !important;
  margin-top: 0.5em !important;
}

.ctt_introduction ._2 .grid {
  margin: 50px 0;
}

.ctt_introduction ._2 .g-col-lg-6 {
  position: relative;
  padding-left: 10px; /* 선과 간격 확보 */
  padding-right: 40px;
}

.ctt_introduction ._2 .g-col-lg-6:not(:last-child)::after {
  content: "";
  position: absolute;
  top: -12%;
  right: 0;
  width: 1px;
  height: 100px;
  background-color: #000000;
  margin-bottom: 1rem !important;
}

.ctt_introduction ._2 .g-col-lg-6 p {
  font-size: 16px !important;
  font-weight: 600;
  line-height: 1.5 !important;
}

.ctt_introduction ._3 .ltit {
  font-size: 24px;
  font-weight: 600;
}

.ctt_introduction #ctt_con ._3 .txt {
  font-size: 16px;
}

/* 상담신청히기 */

.ctt_detailed .head-wrap.line-bottom {
  border-bottom: 1px solid #d7d7d7 !important;
}

.ctt_detailed .head-wrap.line-top {
  border-top: 1px solid #d7d7d7 !important;
}

.ctt_detailed .list-group.list-group-flush {
  padding: 10px 0;
}

.ctt_detailed .list-group-item {
  border-bottom: 1px solid #d7d7d7 !important;
}

.select-option .select-option-item {
  margin-top: 15px;
}

.select-option .select-option-item .item-tit {
  position: relative;
  height: 50px;
  line-height: 50px;
  padding-left: 70px;
  font-size: 20px;
  border: 1px solid #d7d7d7 !important;
  cursor: pointer;
  background: #fff url(../img/page/icon_arrow_down.png) no-repeat 99% 50%;
  background-size: 20px;
}

.select-option .select-option-item .item-tit .no {
  position: absolute;
  left: -1px;
  top: -1px;
  width: 50px;
  height: 50px;
  border: 1px solid #d7d7d7;
  background: #f1f1f1;
  color: #adadad;
  text-align: center;
  line-height: 50px;
}

.select-option .select-option-item .item-tit.active {
  color: #000;
  border: 1px solid #bbb !important;
  background: url(../img/page/icon_arrow_up.png) no-repeat 99% 50% !important;
  background-size: 20px !important;
  box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.1);
}

.select-option .select-option-item .item-tit.active .no {
  border: 1px solid #e30413;
  background: #e30413 !important;
  color: #fff;
}

.select-option .select-option-item .item-tit:hover {
  background-color: #fff;
}

.select-option .select-option-item .item-tit:hover .no {
  border: 1px solid #e30413;
  background: #e30413;
  color: #fff;
}

/* .item-cont {
    display: block !important;
} */

.item-part-select label {
  display: block !important;
}

.item-part-select em {
  font-style: normal;
}

.select-option-item .item-cont .item-part-select {
  overflow: hidden;
  margin: 15px 0 0;
  padding: 20px;
  background: #f1f1f1;
}

.select-option-item .item-cont .item-part-select .thumb {
  display: block;
  margin-top: 5px;
}

.select-option-item .item-cont .item-part-select .thumb img {
  width: 100%;
  border: 1px solid #ddd;
}

.select-option-item .col-sm-10 {
  align-self: center;
}

/* */

.plupload_view_list .plupload_file_name {
  padding: 10px 0;
}

/* */

.btn-end button {
  /* border-color: #d7d7d7; */
  /* background-color: #d7d7d7; */
  border-color: #e30413;
  background-color: #e30413;
}

.btn-end button:hover {
  border-color: #e30413;
  background-color: #e30413;
}

/* 이미지 슬라이더 스타일 */
.image-slider {
  width: 100%;
  height: 700px;
  display: flex;
  justify-content: center; /* 수평 중앙 정렬 */
  align-items: center; /* 수직 중앙 정렬 */
  padding-top: 16px;
  margin-bottom: 30px; /* 하단 여백 추가 */
}

.slider-container {
  width: 100%; /* 여기서 크기 조정 */
  height: 100%;
  position: relative;
  overflow: hidden; /* 넘치는 부분 숨김 */
}

.slider-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* contain에서 cover로 변경 */
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slider-image.active {
  opacity: 1;
}

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.3s ease;
}

.slider-dot.active {
  background: #fff;
}

/* 커스텀 모달 스타일 */
.custom-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.custom-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-modal-content {
  background: white;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.custom-modal-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #333;
}

.custom-modal-text {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 25px;
  color: #666;
}

.custom-modal-btn {
  background: #e30413;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.custom-modal-btn:hover {
  background: #c00310;
}

.custom-modal-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.custom-modal-btn-home {
  background: #666 !important;
}

.custom-modal-btn-home:hover {
  background: #555 !important;
}

@media (max-width: 767px) {
  .section-title {
    font-size: 24px !important;
    margin-bottom: 0.5rem !important;
  }

  /* 이미지 슬라이더 스타일 */
  .image-slider {
    width: 100%;
    height: 300px;
    display: flex;
    justify-content: center; /* 수평 중앙 정렬 */
    align-items: center; /* 수직 중앙 정렬 */
    padding-top: 16px;
    margin-bottom: 20px; /* 하단 여백 추가 */
  }
}

/* 반응형 텍스트 표시 제어 - 강제 적용 */
/* 기본 상태: 모든 반응형 클래스 완전히 숨김 */
.d-lg-none {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

.d-none.d-lg-block {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* PC (992px 이상): PC용 텍스트만 표시 */
@media (min-width: 992px) {
  .d-none.d-lg-block {
    display: block !important;
    visibility: visible !important;
    height: auto !important;
    overflow: visible !important;
    margin: inherit !important;
    padding: inherit !important;
  }

  .d-lg-none {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
  }
}

/* 모바일 (991px 이하): 모바일용 텍스트만 표시 */
@media (max-width: 991px) {
  .d-lg-none {
    display: block !important;
    visibility: visible !important;
    height: auto !important;
    overflow: visible !important;
    margin: inherit !important;
    padding: inherit !important;
  }

  .d-none.d-lg-block {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
  }
}
