/* 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;
  padding-bottom: 3rem;
}

.slide-content h1 {
  font-size: 3.5rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 30px;
  color: #283848;
}

.slide-content .subtitle {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 30px;
  color: #2aa7c3;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.slide-content h1 b {
  color: #2aa7c3;
}

.slide-content p {
  font-size: 1.2rem;
  line-height: 1.6;
  max-width: 44ch;
  opacity: 0.9;
  color: #283848d8;
}

/* 슬라이드 배경 */
.slide-1 {
  background: url(../img/main_1.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;
}

/* Section Styling */
.section {
  padding: 120px 0;
}

.section .header {
  margin-bottom: 70px;
}

.section .title {
  font-size: 45px;
  font-weight: 500;
  line-height: 1.26;
  color: #454545;
  margin-top: 16px;
  letter-spacing: -0.045em;
}

.section .title strong {
  color: #2aa7c3;
}

.section .subtitle {
  font-size: 17px;
  color: #2aa7c3;
  max-width: 600px;
  font-weight: 400;
  text-transform: uppercase;
}

/* About Section */
.about {
  padding: 0;
  display: grid;
  grid-template-columns: 510px 1fr;
  grid-gap: 100px;
  background: url(../img/sec1_bg.png) bottom right;
  background-repeat: no-repeat;
}
.about .btn {
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid #ffffff46;
  background: #ffffff34;
}

.about .btn:hover {
  background: #3182ce;
  transform: translateY(-2px);
}

.about .left {
  background: url(../img/about_img.jpg);
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: center;
  padding-bottom: 160px;
}

.about .right {
  padding: 80px 0;
}

.about a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 270px;
  grid-gap: 11px;
  margin-top: 3rem;
  padding: 15px 30px;
  background: #fff;
  border: 4px solid #89ccdb;
  font-size: 22px;
}

.about .text {
  font-size: 20px;
  color: #555;
  line-height: 1.66;
  max-width: 750px;
  padding-bottom: 80px;
}
.about .text p {
  padding: 14px 0;
}
.about .text b {
  color: #2aa7c3;
}

/* service card */
.program-section {
}

.program-section .header {
  display: flex;
  justify-content: space-between;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.section-title {
  font-size: 28px;
  font-weight: bold;
  color: #333;
}

.custom-next-arrow {
  font-size: 40px;
  cursor: pointer;
  color: #888;
  line-height: 1;
  background: none;
  border: none;
  padding: 0;
  transition: color 0.3s;
}

.custom-next-arrow:hover {
  color: #333;
}

/* 슬라이더 여백 조정 */
.program-slider .slick-slide {
  margin: 0 15px; /* 카드 사이 간격 */
}
/* slick-list가 양옆 margin 때문에 잘리는 것 방지 */
.program-slider .slick-list {
  margin: 0 -15px;
}

/* --- 카드 디자인 스타일 시작 --- */
.program-card {
  background: #fff;
  border-radius: 25px 0 25px 25px; /* 둥근 모서리 */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08); /* 부드러운 그림자 */
  overflow: hidden; /* 자식 요소가 둥근 모서리를 넘지 않게 */
  display: flex !important; /* slick flex 충돌 방지 */
  flex-direction: column;
  margin: 20px 0;
}

/* 상단 파란색 타이틀 바 */
.card-header {
  background: linear-gradient(
    135deg,
    #56b9d3 0%,
    #2f8dc5 100%
  ); /* 예시 그라데이션 */
  background-color: #4a9ec8; /* 단색 예비용 */
  padding: 16px 33px;
  color: #fff;
}

.card-title {
  font-size: 22px;
  font-weight: bold;
  margin: 0;
}

/* 본문 컨텐츠 영역 */
.card-body {
  padding: 30px 20px;
  flex-grow: 1; /* 남은 공간 채우기 */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.slick-track {
  margin: 30px 0;
}

/* 아이콘 원형 배경 Wrapper */
.card-icon-wrapper {
  justify-content: center;
  align-items: center;
  margin-bottom: 25px;
}

/* 실제 아이콘 이미지 (여기서는 예시로 스타일만 지정) */
.card-icon {
  width: 60%; /* 원 안에서의 이미지 크기 조절 */
  height: auto;
  /* 실제 이미지 사용 시 아래 주석을 해제하고 src에 경로를 입력하세요. */
  /* display: block; */
}
/* 아이콘 대체용 임시 스타일 (이미지 없을 때 보임) */
.icon-placeholder {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}
.icon-pencil {
  background-color: #ffd700;
} /* 노란색 */
.icon-book {
  background-color: #ff6b6b;
} /* 빨간색 */
.icon-bell {
  background-color: #51cf66;
} /* 녹색 */
.icon-play {
  background-color: #339af0;
} /* 파란색 */
.icon-brain {
  background-color: #cc5de8;
} /* 보라색 */

.card-desc {
  font-size: 17px;
  color: #666;
  line-height: 1.6;
  word-break: keep-all; /* 단어 단위 줄바꿈 */
  max-width: 90%; /* 텍스트 너비 제한 */
}
/* --- 카드 디자인 스타일 끝 --- */

/* Course Section */
.course {
  background: #f5f5f7;
}

.course .title {
}

.course .subtitle {
  color: #a1a1a6;
}

.course .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 60px;
}

.course .card {
  background: rgb(255, 255, 255);
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  border-radius: 25px;
}

.course .card:hover {
  background: rgba(255, 255, 255, 0.63);
}

.course .card h4 {
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.course .card p {
  color: #a1a1a6;
  line-height: 1.6;
  font-size: 17px;
}

/* Stats Section */
.stats {
  background: #f5f5f7;
}

.stats .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 48px;
  margin-top: 60px;
}

.stats .card {
  text-align: center;
  padding: 48px 32px;
  background: white;
  border: 1px solid #d2d2d7;
  transition: all 0.3s ease;
}

.stats .card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.stats .number {
  font-size: 64px;
  font-weight: 700;
  color: #1d1d1f;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.stats .label {
  color: #86868b;
  font-weight: 400;
  font-size: 17px;
}

/* Contact Section */
.contact {
  padding-bottom: 0;
  background: url(../img/contact_bg.jpg) center;
  background-size: cover;
}

.contact .header {
  padding-top: 160px;
  padding-bottom: 50px;
  text-align: center;
}
.contact .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
  margin-top: 60px;
  background: #fff;
  border-radius: 40px 40px 0 0;
  padding: 50px;
}

.contact .card {
  color: #fff;
}

.contact .address {
  background: #59c0d7;
  padding: 20px;
  font-size: 22px;
  text-align: center;
  color: #fff;
  font-weight: 700;
}

.contact .card strong {
  color: #0daccf;
  display: block;
  font-size: 22px;
  padding-bottom: 13px;
}

.contact .card span {
  display: block;
  font-size: 19px;
  color: #555;
  padding-bottom: 40px;
}

.contact .card:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 64px;
  }

  .hero .subtitle {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
/* 슬라이드 배경 */
.slide-1 {
  background: url(../img/main_1m.jpg) center;
  background-size: cover;
}

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

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


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

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

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

  .slide-content p {
display: none;
  }

  /* 슬라이더 네비게이션 위치 조정 */
  .custom-navigation {
    bottom: 3em;
    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;
  }
  .section .title {
    font-size: 30px;
    letter-spacing: -1.5px;
  }

  .section .subtitle {
    font-size: 18px;
  }

  .section .header {
    margin-bottom: 40px;
  }

  /* 카드형 컨텐츠 세로 정렬 */
  .features .cards,
  .course .grid,
  .contact .grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* 각 카드 내 여백 조정 */
  .features .card,
  .course .card,
  .contact .card {
    padding: 24px;
  }

  .contact .card p {
    font-size: 15px;
  }

  /* About 섹션 */
  .about {
    grid-template-columns: 1fr;
    grid-gap: 33px;
    background-size: 200%;
    padding: 0 !important;
    background-position: center;
  }
  .about .content {
    grid-template-columns: 1fr;
    grid-gap: 15px;
  }

  .about .left {
    height: 550px;
    background-position: center;
    padding-bottom: 70px;
    grid-row: 2/2;
  }

  .about .right {
    padding: 10px 20px;
    padding-top: 56px;
  }

  .about a {
    width: 230px;
    font-size: 19px;
    padding: 15px 20px;
  }

  .about .text p,
  .about .list li {
    font-size: 17px;
  }


.about .text p.d_block {
  display: none;
}

  /* contact  */
    .contact  {
      background-image: url(../img/contact_bgm.jpg);
    }
  .contact .header {
    padding-top: 0px;
  }

  .contact .grid {
    padding: 0px;
    padding-bottom: 0;
    grid-gap: 0;
  }
  .contact .card {
    padding: 33px;
    padding-bottom: 0;
  }
  .contact .card:last-child {
    padding-bottom: 2rem;
  }
  .contact .card strong {
    font-size: 20px;
  }
  .contact .card span {
    padding-bottom: 24px;
  }
  .contact .address {
    font-size: 18px;
  }

  /* 헤더 모바일 메뉴 대응 */
  .mobile-menu {
    display: none;
    background: white;
    padding: 20px;
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    z-index: 1000;
  }

  .mobile-menu.active {
    display: block;
  }

  .mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .mobile-auth {
    margin-top: 20px;
  }

  .mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    margin-left: auto;
  }
}
