@charset "UTF-8";

.block {
  height: 130px;
}
/* --- 상단 서브 배너 (배경 이미지 처리) --- */
.sub-banner {
  width: 100%;
  height: 350px;
  background-image: url("../img/sub_main.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
}
/* 어두운 오버레이 (텍스트 가독성용) */
.sub-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
}
.banner-content {
  position: relative;
  z-index: 1;
  text-align: center;
}
.banner-title {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 10px;
}
.breadcrumb {
  font-size: 14px;
  opacity: 0.9;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.home-icon {
  font-size: 16px;
  margin-top: -2px;
}

/* --- 서브 메뉴 탭 --- */
.sub-menu-wrap {
  border-bottom: 1px solid #ddd;
  background: #fff;
}
.sub-menu {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
}
.sub-menu a {
  flex: 1;
  min-width: 100px;
  text-align: center;
  padding: 20px 0;
  font-size: 15px;
  font-weight: 500;
  border-right: 1px solid #eee;
  color: #666;
  transition: all 0.3s;
}
.sub-menu a:first-child {
  border-left: 1px solid #eee;
}
/* 활성화된 탭 */
.sub-menu a.active {
  background-color: #59c0d7;
  color: #fff;
  font-weight: 700;
}
.sub-menu a:hover:not(.active) {
  background-color: #f9f9f9;
  color: #333;
}

.bn2 {
  background-image: url(../img/sub_main2.jpg) !important;
  background-size: cover;
  background-position: center center;
}
.bn3 {
  background-image: url(../img/sub_main3.jpg);
  background-size: cover;
  background-position: center center;
}

.sub_banner_txt {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 350px;
}

.sub_banner_txt p {
  font-size: 25px;
  color: rgb(255, 255, 255);
}

.sub_container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* --- 메인 컨텐츠 영역 --- */

/* 페이지 타이틀 */
.page-title {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  padding-top: 70px;
  margin-bottom: 50px;
  color: #222;
}

/* 비주얼 이미지 영역 */
.visual-area {
  width: 100%;
  height: 400px;
  background-color: #f0f0f0;
   background-size: cover;
  background-position: center;
  border-radius: 40px;
  border-bottom-left-radius: 0;
  position: relative;
  margin-bottom: 60px;
}

.va1 {
   background-image: url("../img/program_1.jpg");
}

.va2 {
   background-image: url("../img/program_2.jpg");
}

.va3 {
   background-image: url("../img/program_3.jpg");
}

.va4 {
   background-image: url("../img/program_4.jpg");
}

.va5 {
   background-image: url("../img/program_5.jpg");
}

.va6 {
   background-image: url("../img/program_6.jpg");
}

/* 주황색 아이콘 배지 */
.icon-badge {
  position: absolute;
  bottom: -30px;
  left: 0;
  width: 80px;
  height: 80px;
  background-color: #59c0d7;
  border-radius: 50%;
  border-radius: 0 30px 30px 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.1);
}
/* 주사위 모양 */
.dice-icon {
  width: 40px;
  height: 40px;
  border: 2px solid #fff;
  border-radius: 8px;
  position: relative;
}
.dice-dot {
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
}
/* 주사위 점 위치 대략 잡기 */
.d1 {
  top: 8px;
  left: 8px;
}
.d2 {
  bottom: 8px;
  right: 8px;
}
.d3 {
  top: 8px;
  right: 8px;
}

/* --- 텍스트 섹션 공통 레이아웃 (왼쪽 제목 / 오른쪽 내용) --- */
.content-section {
  display: flex;
  margin-bottom: 60px;
  padding-bottom: 60px;
  border-bottom: 1px dashed #ddd; /* 점선 구분선 */
}
.content-section:last-child {
  border-bottom: none;
}

.sec-left {
  width: 280px;
  flex-shrink: 0;
  position: relative;
}
.sec-right {
  flex-grow: 1;
  padding-left: 90px;
}

/* 왼쪽 타이틀 스타일 (밑줄/나뭇잎 효과) */
.sec-title {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  position: relative;
  display: inline-block;
  z-index: 1;
}
.sec-title::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 12px;
  background-color: #fceea4; /* 형광펜 효과 (연노랑) */
  z-index: -1;
  opacity: 0.6;
}
/* 나뭇잎 배경 (CSS로 흉내 or 이미지) */
.leaf-bg {
  position: absolute;
  top: 40px;
  left: 10px;
  width: 100px;
  height: 120px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23f4f4f4"><path d="M17,8C8,10 5.9,16.17 3.82,21.34L5.71,22l1,-5.66C15,13.5 19,8 19,2Z"/></svg>')
    no-repeat center;
  background-size: contain;
  opacity: 0.5;
  z-index: -1;
}

/* 오른쪽 텍스트 스타일 */
.desc-text {
  font-size: 18px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 20px;
  word-break: keep-all;
}
.highlight-bar {
  width: 40px;
  height: 4px;
  background-color: #8cc63f; /* 연두색 바 */
  margin: 30px 0;
}

/* 체크리스트 스타일 */
.check-list li {
  position: relative;
  padding-left: 35px;
  margin-bottom: 12px;
  font-size: 18px;
  color: #444;
  font-weight: 500;
}
/* 체크 아이콘 (CSS로 구현) */
.check-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  background: #fff;
  border: 2px solid #59c0d7; /* 주황색 테두리 */
  color: #59c0d7;
  border-radius: 50%;
  font-size: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
}

/* --- 반응형 (모바일) --- */
@media (max-width: 768px) {
  .sub-banner {
    height: 200px;
  }
  .banner-title {
    font-size: 28px;
  }
  .sub-menu a {
    font-size: 13px;
    padding: 15px 0;
  }

  .page-title {
    margin: 40px auto;
  }
  .visual-area {
    height: 250px;
  }

  .content-section {
    flex-direction: column;
  }
  .sec-left {
    width: 100%;
    margin-bottom: 20px;
  }
  .sec-right {
    padding-left: 0;
  }
  .leaf-bg {
    display: none;
  } /* 모바일에서 배경 제거 */
}

/* Gallery Section */
.gallery-section {
  padding: 80px 0;
}

.gallery-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Filter Buttons */
.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 12px 24px;
  background: white;
  border: 2px solid #ff0040;
  color: #ff0040;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 600;
}

.filter-btn:hover,
.filter-btn.active {
  background: #ff0040;
  color: white;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 50px;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  background: white;
  height: 250px;
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.7) 100%
  );
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay i {
  font-size: 48px;
  color: white;
}

.gallery-info {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  color: white;
  transform: translateY(20px);
  transition: transform 0.3s;
}

.gallery-item:hover .gallery-info {
  transform: translateY(0);
}

.gallery-info h3 {
  font-size: 15px;
  margin-bottom: 5px;
  text-shadow: 0 0 8px #000;
}

.gallery-info p {
  font-size: 14px;
  opacity: 0.9;
}

/* Loading Message */
.loading-message {
  text-align: center;
  padding: 40px;
  font-size: 18px;
  color: #666;
}

.no-images {
  text-align: center;
  padding: 60px;
  color: #999;
}

.no-images i {
  font-size: 64px;
  margin-bottom: 20px;
  display: block;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  cursor: pointer;
  z-index: 10000;
  transition: transform 0.2s;
}

.lightbox-close:hover {
  transform: scale(1.1);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 30px;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.5);
  padding: 15px 20px;
  border-radius: 50%;
  transition: all 0.3s;
}

.lightbox-nav:hover {
  background: rgba(255, 0, 64, 0.8);
}

.lightbox-prev {
  left: 30px;
}

.lightbox-next {
  right: 30px;
}

.lightbox-info {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 15px 25px;
  border-radius: 25px;
  text-align: center;
}

.lightbox-counter {
  font-size: 14px;
  opacity: 0.8;
  margin-bottom: 5px;
}

/** table 끝//**/

/* 오시는길 */

/* 오시는길 */
.map_wrap {
  padding: 60px 20px;
  max-width: 1000px;
  margin: 0 auto;
}
.root_daum_roughmap {
  width: 100% !important;
  padding-bottom: 30px;
}

.root_daum_roughmap .cont .section.lst,
.root_daum_roughmap .wrap_controllers {
  display: none;
}

.map_info {
  background: #f8f9fb;
  padding: 20px 40px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  grid-gap: 10px;
}

.map_wrap .com-features-header {
  margin-bottom: 20px;
}
.map_info_box {
  display: flex;
  justify-content: center;
  align-items: center;
  grid-gap: 5px;
  font-size: 17px;
  color: #555;
  padding: 0 20px;
}
.map_info_box [data-lucide] {
  width: 15px !important;
  height: 15px !important;
  color: #2769b4;
}

.flag-ribbon {
  position: relative;
  height: 70px;
  max-width: 900px;
  background: linear-gradient(135deg, #4a7cdb 0%, #2769b4 50%, #1f4a9c 100%);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3),
    inset 0 2px 0 rgba(255, 255, 255, 0.2), inset 0 -2px 0 rgba(0, 0, 0, 0.2);
  clip-path: polygon(0% 0%, 100% 0%, 97% 30%, 100% 60%, 0% 60%, 3% 30%);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  padding-bottom: 30px;
  color: #fff;
  font-weight: 600;
  margin: 0 auto;
}

.d_block {
  display: inline-block;
}

.m_block {
  display: none;
}

.d_block_480 {
  display: block;
}

.m_block_480 {
  display: none;
}

/*******************************************************************************************************************************
 *** PC ~ 테블릿
*******************************************************************************************************************************/
@media (max-width: 1024px) {
  .d_block {
    display: none;
  }

  .m_block {
    display: inline-block;
  }

  .sub_container {
    padding: 30px;
  }

  .sub_container .sub_title h2 {
    font-size: 32px;
  }

  .sub_banner,
  .sub_banner_txt {
    height: 320px;
  }

  .sub_banner_txt span img {
    height: 50px;
  }

  .sub_banner_txt p {
    font-size: 18px;
  }

  .sub_container .sub_title p {
    font-size: 16px;
    color: #888;
    padding: 5px 0 20px 0;
  }

  .sub_banner_txt h2 {
    font-size: 32px;
  }

  .sub_banner_txt strong {
    font-size: 18px;
  }

  .sub_banner_txt p {
    font-size: 17px;
    padding-top: 15px;
  }

/* 프로그램 */
.page-title {
  padding: 0;
  font-size: 30px;
}
.desc-text {
  font-size: 17px;
}
.content-section {
  margin-bottom: 40px;
  padding-bottom: 40px;
}

.check-list li {
  font-size: 17px;
}

  /** company_box 끝//**/


  
}

/*******************************************************************************************************************************
 *** 모바일
*******************************************************************************************************************************/

/* Responsive */
@media (max-width: 768px) {
  .page-header h1 {
    font-size: 32px;
  }

  .gallery-container {
    padding: 0 20px;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
  }

  .filter-buttons {
    gap: 10px;
  }

  .filter-btn {
    padding: 8px 16px;
    font-size: 14px;
  }

  .lightbox-nav {
    font-size: 24px;
    padding: 10px 15px;
  }

  .lightbox-prev {
    left: 15px;
  }

  .lightbox-next {
    right: 15px;
  }

  .lightbox-close {
    top: 15px;
    right: 20px;
    font-size: 30px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .page-header p {
    font-size: 15px;
  }

  .gallery-section {
    padding: 60px 0 20px;
  }

  .gallery-item {
    height: 190px;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/*******************************************************************************************************************************
 *** 모바일 max-width 480
*******************************************************************************************************************************/
@media (max-width: 480px) {
  .sub > p {
    padding: 6% 1%;
    font-size: 17px;
    text-align: left;
    line-height: 1.8;
  }

  ul.list {
    padding: 0;
  }

  .sub_banner {
    height: 200px;
    background-size: cover;
    background-position: center center;
  }

  .sub_banner_txt {
    height: 150px;
  }

  .sub_banner_txt span img {
    height: 26px;
  }

  .sub_banner_txt h2 {
    font-size: 20px;
  }

  .sub_banner_txt strong {
    font-size: 13px;
  }

  .sub_banner_txt h2 span {
    display: block;
  }

  .sub_banner_txt strong {
    font-size: 14px;
  }

  .sub_banner_txt p {
    display: block;
    font-size: 15px;
  }

  .sec-title {
    margin-bottom: 1rem;
  }

  .flag-ribbon {
    height: 100px;
    background: linear-gradient(135deg, #4a7cdb 0%, #2769b4 50%, #1f4a9c 100%);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3),
      inset 0 2px 0 rgba(255, 255, 255, 0.2), inset 0 -2px 0 rgba(0, 0, 0, 0.2);
    clip-path: polygon(0% 0%, 100% 0%, 97% 30%, 100% 60%, 0% 60%, 3% 30%);
    font-size: 18px;
    text-align: center;
    padding-bottom: 40px;
  }
  .map_info {
    padding: 20px;
    justify-content: flex-start;
  }
}

@media (max-width: 360px) {
  .sub_banner_txt span img {
    height: 20px;
  }
}
