@import url("https://fonts.googleapis.com/css2?family=Pretendard:wght@300;400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@400;500;600;700&display=swap");

.serif {
  font-family: "HakgyoansimGaeulsopungB";
}

.nav {
  padding: 10px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* 히어로 섹션 */ /* Hero Section */
.slider-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.slider {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.slide-content {
  position: relative;
  z-index: 2;
  color: white;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  text-shadow: 0 0 15px #fff, 0 0 15px #fff;
}

.slide-content h1 {
  font-size: 4.6rem;
  font-weight: 700;
  line-height: 1;
  font-family: "HakgyoansimGaeulsopungB";
  margin-bottom: 20px;
  color: #283848;
}

.slide-content .subtitle {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 30px;
  color: #367c81;
}

.slide-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  opacity: 0.9;
  color: #283848;
}

/* 슬라이드 배경 */
.slide-1 {
  background: url(../img/main.jpg) center;
  background-size: cover;
}

.slide-2 {
  background: url(../img/main_2.jpg) center;
  background-size: cover;
}

.slide-3 {
  background: url(../img/main_3.jpg) center;
  background-size: cover;
}

/* 커스텀 네비게이션 */

.hero .container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  pointer-events: none; /* 배경 클릭 방지 */
}

.custom-navigation {
  max-width: 1240px;
  position: relative; /* absolute에서 relative로 변경 */
  bottom: 15em;
  left: auto;
  pointer-events: all; /* 네비게이션만 클릭 가능 */
  width: fit-content;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 20px;
}

.slide-counter {
  font-size: 14px;
  font-weight: 600;
  color: #2c5282;
  min-width: 20px;
}

.progress-container {
  position: relative;
  width: 120px;
  height: 4px;
  background: #e2e8f0;
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
}

.progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: #2c5282;
  border-radius: 2px;
  width: 0%;
}

.progress-bar.animating {
  transition: width 4s linear;
}

.total-slides {
  font-size: 14px;
  font-weight: 400;
  color: #718096;
}

.play-pause-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #2c5282;
}

.play-pause-btn:hover {
  background: #2c5282;
  transform: scale(1.1);
}

.play-pause-btn svg {
  width: 16px;
  height: 16px;
}
.hero-buttons {
  display: flex;
  gap: 16px;
}

.btn {
  padding: 16px 32px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: #127bb8;
  color: white;
  transform: translateY(0);
  border-radius: 30px;
  font-size: 15px;
}

.btn-primary:hover {
  background: #0f3a94;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(18, 73, 184, 0.3);
}

.btn-secondary {
  background: #ffffffd2;
  color: #666;
  transform: translateY(0);
  border-radius: 30px;
  font-size: 15px;
}

.btn-secondary:hover {
  background: #f5f5f5;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.hero-right {
  position: relative;
  height: 100%;
  background: url("./img/hero-main.jpg") center/cover;
}

/* 통계 섹션 */
.stats {
  background: rgba(255, 255, 255, 0.9);
  padding: 16px 0;
  border-top: 3px solid #1249b8;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 10;
}

.stats-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 120px;
}

.stat-item {
  font-size: 16px;
  font-weight: 400;
}

.stats-divider {
  color: #ddd;
  font-size: 13px;
  font-weight: 300;
}

.stat-item [data-lucide] {
  width: 17px !important;
  height: 17px !important;
  color: #127bb8;
}

/* 서비스 소개 섹션 */
.services {
  padding: 100px 0 100px;
  background: url(../img/about_bg.jpg) no-repeat bottom center;
  background-size: 100%;
}

.services-content {
  display: grid;
  grid-template-columns: 1.2fr 1.1fr;
  gap: 20px;
  align-items: center;
}

.services-text {
  max-width: 500px;
}

.section-subtitle {
  color: #666;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 16px;
}

.section-title {
  font-size: 55px;
  font-weight: 700;
  color: #026aa7;
  margin-bottom: 32px;
  line-height: 1.1;
}

.services-description {
  font-size: 18px;
  color: #666;
  margin-bottom: 24px;
  line-height: 1.7;
}

.services-description b {
  color: #127bb8;
  font-size: 1.12em;
}

.services-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 70px;
}

.round {
  background: #cc8f52c5;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  backdrop-filter: blur(10px);
  margin-top: -70px;
  color: #fff;
}

.services-visual .round:nth-child(2) {
  margin-left: 13vw;
  background: #3874adb7;
}

@font-face {
  font-family: "GangwonEdu_OTFBoldA";
  src: url("https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2201-2@1.0/GangwonEdu_OTFBoldA.woff")
    format("woff");
  font-weight: normal;
  font-style: normal;
}

.round .text {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.round h4 {
  font-size: 1.9em;
  line-height: 1.1;
  font-family: "GangwonEdu_OTFBoldA";
  text-align: center;
  padding: 9px 0 4px;
  font-weight: normal;
}

.round svg {
  width: 38px;
}

.circles-container {
  position: relative;
  width: 400px;
  height: 400px;
}

.circle {
  position: absolute;
  background: rgba(76, 175, 80, 0.9);
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  padding: 16px;
  line-height: 1.3;
  transition: all 0.3s ease;
  cursor: pointer;
}

.circle:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

.circle-main {
  width: 140px;
  height: 140px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(76, 175, 80, 1);
  font-size: 16px;
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    transform: translate(-50%, -50%) scale(1.05);
  }
}

.circle-main:hover {
  transform: translate(-50%, -50%) scale(1.15);
}

.circle-1 {
  width: 120px;
  height: 120px;
  top: 0;
  right: 0;
  background: rgba(76, 175, 80, 0.85);
}

.circle-2 {
  width: 120px;
  height: 120px;
  bottom: 0;
  left: 0;
  background: rgba(76, 175, 80, 0.85);
}

.circle-3 {
  width: 120px;
  height: 120px;
  bottom: 0;
  right: 0;
  background: rgba(76, 175, 80, 0.85);
}

/* 소개 섹션 - 슬라이드 카드 */
.intro {
  background: #f8f9fa;
  padding: 120px 0;
  text-align: center;
}

.intro-title {
  font-size: 47px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: #333;
  margin-bottom: 16px;
}

.intro-subtitle {
  font-size: 16px;
  color: #666;
  margin-bottom: 80px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* 카드 */

.product_box {
  display: flex;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  text-align: left;
}

.product-card {
  flex: 1;
  min-width: 300px;
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
  z-index: 1;
}

.card-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 30px;
  z-index: 2;
  color: white;
}

.content-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 30px;
  letter-spacing: -0.5px;
}

.divider {
  width: 60px;
  height: 3px;
  background-color: white;
  margin-bottom: 30px;
}

.learn-more-btn {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid white;
  color: white;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.learn-more-btn:hover {
  background: white;
  color: #333;
}

.arrow {
  margin-left: 8px;
  width: 10px;
  height: 10px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  display: inline-block;
  transform: rotate(-45deg);
  transition: transform 0.3s ease;
}

.learn-more-btn:hover .arrow {
  transform: rotate(-45deg) translate(3px, -3px);
}

/* 비주얼 */
.visual-care {
  background: url(../img/visual.jpg) center;
  background-size: cover;
  background-attachment: fixed;
  padding: 100px 0;
  color: #fff;
  text-align: center;
}

.visual-care h3 {
  font-size: 2.6em;
  line-height: 1.2;
  font-family: "GangwonEdu_OTFBoldA";
}

.visual-care h5 {
  font-weight: normal;
  font-size: 18px;
  padding-top: 1rem;
  opacity: 0.7;
  padding-bottom: 3rem;
}

.visual-care .medal-box {
  background: #0000001a;
  backdrop-filter: blur(10px);
  max-width: 350px;
  margin: auto;
  padding: 1.7rem;
  border-radius: 22px;
}

.visual-care p {
  font-size: 19px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: auto;
  grid-gap: 8px;
  max-width: 300px;
}

.visual-care svg {
  width: 22px;
  fill: #ffd700;
}

/* 어워드 섹션 */
.award {
  background: url(../img/award.jpg) center no-repeat;
  padding: 80px 0;
  text-align: center;
  position: relative;
}

.award-content {
  position: relative;
  z-index: 2;
}

.award-icon {
  width: 80px;
  height: 80px;
  background: #ffd700;
  border-radius: 50%;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.award-title {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
}

.award-subtitle {
  font-size: 18px;
  color: #555;
  font-weight: 500;
  margin-bottom: 40px;
}

.award-illustration {
  background: url("./img/people-illustration.jpg") center/contain no-repeat;
  height: 200px;
  margin: 0 auto;
  max-width: 600px;
}

/* 연락처 섹션 */ /* 수정된 Contact 섹션 CSS */
.contact-section {
  background: linear-gradient(135deg, #f1e9e256 0%, #eef4f1 100%);
  position: relative;
  /* 문제 부분들 제거됨 */
}

.contact-container {
  display: flex;
  align-items: stretch;
  max-width: none; /* 컨테이너 제한 해제 */
  margin: 0;
  gap: 90px;
  padding: 0;
}

.contact-content {
  width: 600px; /* 고정 폭 */
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-left: calc((100vw - 1200px) / 2); /* 중앙 정렬을 위한 여백 */
}

.contact-map {
  flex: 1; /* 남은 공간 모두 차지 */
  position: relative;
}

.map-container {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

#map {
  width: 100%;
  height: 100%;
}

.marker {
  background-color: #026aa7;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  cursor: pointer;
  animation: markerani 1.3s infinite;
}

@keyframes markerani {
  0% {
  }
  50% {
    opacity: 0.6;
  }
  100% {
  }
}

.mapboxgl-popup-content {
  padding: 15px;
  border-radius: 8px;
  max-width: 290px;
}

.mapboxgl-popup-close-button {
  padding-right: 9px;
}

.popup-title {
  font-size: 16px;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 8px;
}

.popup-address {
  font-size: 14px;
  color: #374151;
  margin-bottom: 10px;
}

.popup-phone {
  color: #2563eb;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
}

.contact-subtitle {
  color: #5a5a5a;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.contact-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: -2px;
  line-height: 1.3;
  color: #2c2c2c;
}

.contact-description {
  font-size: 16px;
  color: #5a5a5a;
  margin-bottom: 40px;
  line-height: 1.7;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  border: 1px solid rgba(107, 144, 128, 0.2);
  transition: all 0.3s ease;
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(107, 144, 128, 0.4);
  transform: translateY(-2px);
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: #026aa7;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-text {
  flex: 1;
}

.contact-label {
  font-size: 14px;
  color: #5a5a5a;
  font-weight: 500;
  margin-bottom: 4px;
}

.contact-value {
  font-size: 16px;
  color: #5a5a5a;
  font-weight: 600;
}

.contact-image {
  position: relative;
  height: 590px;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(45deg, #e8f2ec, #d4e8dd);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-visual {
  width: 280px;
  height: 280px;
  background: rgba(107, 144, 128, 0.1);
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-inner {
  width: 200px;
  height: 200px;
  background: rgba(107, 144, 128, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.visual-icon {
  width: 80px;
  height: 80px;
  background: #6b9080;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.decorative-dots {
  position: absolute;
  top: 20px;
  right: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.dot {
  width: 6px;
  height: 6px;
  background: rgba(107, 144, 128, 0.3);
  border-radius: 50%;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 39px;
    letter-spacing: -1px;
  }

  /* 히어로 섹션 */
  .hero {
    background-size: cover;
    background-position-x: 79%;
    padding: 0 !important;
  }

  /* 슬라이드 배경 */
  .slide-1 {
    background: url(../img/main_m.jpg) bottom center;
    background-size: cover;
  }

  .slide-2 {
    background: url(../img/main_2_m.jpg) bottom center;
    background-size: cover;
  }

  .slide-3 {
    background: url(../img/main_3_m.jpg) bottom center;
    background-size: cover;
  }

  /* 컨테이너 패딩 */
  .container {
    padding: 0 16px;
  }

  .slide-content {
    display: flex;
    height: 100%;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 170px !important;
  }

  /* 슬라이더 텍스트 크기 조정 */
  .slide-content h1 {
    font-size: 2.8rem;
    line-height: 1.1;
    margin-bottom: 16px;
  }

  .slide-content .subtitle {
    font-size: 1.1rem;
    margin-bottom: 20px;
  }

  .slide-content p {
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 39ch;
  }

  .slide-content p br {
    display: none;
  }

  /* 슬라이더 네비게이션 위치 조정 */
  .custom-navigation {
    gap: 12px;
    transform: scale(0.9);
  }

  .progress-container {
    width: 80px;
  }

  .play-pause-btn {
    width: 28px;
    height: 28px;
  }

  .play-pause-btn svg {
    width: 14px;
    height: 14px;
  }

  /* 히어로 섹션 여백 조정 */
  .slide-content {
    padding: 24px;
    text-shadow: 0 0 10px #fff;
  }

  /* 공통 */

  section {
    padding: 60px 0 !important;
  }

  .services-content {
    grid-template-columns: 1fr;
    gap: 0px;
  }

  /* 서비스 */

  .services {
    background-size: 180%;
    background-size: cover;
    background-position: bottom;
    padding-bottom: 150px !important;
    background-image: url(../img/about_bg_m.jpg);
  }

  .intro-subtitle {
    margin-bottom: 3rem;
  }

  .services-description {
    font-size: 16px;
  }
  .services-visual {
    height: auto;
    justify-content: center;
    padding-right: 0;
  }
  .intro-cards {
    flex-direction: column;
    align-items: center;
  }

  .card-2 {
    transform: none;
  }

  .cards-container {
    overflow: visible;
  }

  .cards-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .intro-card {
    min-width: 280px;
    width: 280px;
  }
  .intro-title {
    font-size: 31px;
  }
  .slide-controls {
    display: none;
  }

  .services-visual {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .round {
    background: #cc8f52c5;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    backdrop-filter: blur(10px);
    margin-top: -40px;
    color: #fff;
  }

  .services-visual .round:nth-child(2) {
    margin-left: 0;
    background: #3874adb7;
  }

  .round h4 {
    font-size: 1.5em;
    line-height: 1.1;
    font-family: "GangwonEdu_OTFBoldA";
    text-align: center;
    padding: 9px 0 4px;
    font-weight: normal;
  }

  .round svg {
    width: 30px;
  }

  /* 스테이트 */
  .stats {
    padding: 15px !important;
  }

  .stats-container {
    padding: 0;
    flex-direction: column;
  }
  .circles-container {
    width: 300px;
    height: 300px;
  }

  .circle-main {
    width: 100px;
    height: 100px;
  }

  .circle-1,
  .circle-2,
  .circle-3 {
    width: 80px;
    height: 80px;
  }

  /* 슬라이드 */

  /* 어워드 */
  .product_box {
    flex-direction: column;
    gap: 20px;
    max-width: 100%;
    padding: 2rem;
  }

  .product-card {
    flex: none;
    min-width: 0;
    width: 100%;
    height: 300px;
    max-width: 400px;
    margin: 0 auto;
  }

  .content-title {
    font-size: 21px;
  }

  .card-content {
    padding: 25px 20px;
  }

  .learn-more-btn {
    padding: 10px 18px;
    font-size: 14px;
  }

  /* visual */
  .visual-care h3 {
    font-size: 2.4em;
  }
  /* stats */
  .stats-divider {
    transform: rotate(90deg);
  }

  /* map */
  .contact-container {
    flex-direction: column;
    padding: 0 20px;
    grid-gap: 20px;
  }

  .contact-map {
    height: 300px;
    flex: auto;
  }

  .contact-title {
    font-size: 28px;
  }

  .contact-image {
    height: 300px;
  }

  .contact-visual {
    width: 220px;
    height: 220px;
  }


  .contact-content {
    width: 100%;
    margin-left: auto;
    padding: 0 1rem;
  }
}
