/* 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;
}

.slide-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  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_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: #d68f66;
  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: #b97751;
  border-radius: 2px;
  width: 0%;
}

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

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

.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: #d68f66;
}

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

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

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

.section .header {
  text-align: center;
  margin-bottom: 80px;
}

.section .title {
  font-size: 48px;
  font-weight: 700;
  color: #1d1d1f;
  margin-bottom: 16px;
  letter-spacing: -0.015em;
}

.section .subtitle {
  font-size: 21px;
  color: #86868b;
  max-width: 600px;
  margin: 0 auto;
  font-weight: 400;
}

/* About Section */
.about {
  background: url(../img/about_bg.jpg) center;
  background-size: cover;
}


/* Why Section */
.why {
  background: url(../img/why_bg.jpg);
}

.d_block {
  display: block;
}

.m_block {
  display: none;
}

.title-header {
  text-align: center;
  margin-bottom: 4rem;
}

.title-header span {
  font-size: 14px;
  letter-spacing: 2px;
  font-weight: 700;
  color: #1488a5;
}


/* Features Section */
.features {
  background: #ffffff;
  padding: 80px 0;
}

.features .cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 64px;
  max-width: 1200px;
  margin: 0 auto;
}

.features .card {
  background: #ffffff;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.features .card:nth-child(2) {
  margin-top: 110px;
}

.features .card:nth-child(3) {
  margin-top: 3rem;
}

.features .card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.features .card:nth-child(1) .image {
  background: url(../img/card_1.jpg) center;
  background-size: cover;
}

.features .card:nth-child(2) .image {
  background: url(../img/card_2.jpg) center;
  background-size: cover;
}

.features .card:nth-child(3) .image {
  background: url(../img/card_3.jpg) center;
  background-size: cover;
}

.features .image {
  height: 420px;
  position: relative;
  overflow: hidden;
}

/* 카드 콘텐츠 */
.features .content {
  padding: 24px;
  position: relative;
}

.features .brand {
  font-size: 14px;
  color: #9b514c;
  margin-bottom: 16px;
  font-weight: 500;
}

.features .arrow {
  position: absolute;
  top: 24px;
  right: 24px;
  color: #999;
  transition: all 0.3s ease;
}

.features .card:hover .arrow {
  color: #333;
  transform: translate(4px, -4px);
}

.features .content h3 {
  font-size: 30px;
  font-weight: 700;
  color: #1d1d1f;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.features .content p {
  font-size: 15px;
  line-height: 1.5;
  color: #666;
}

/* 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 {
  background: url(../img/contact_bg.jpg) center;
  background-size: cover;
}

.contact .title {
  text-shadow: 0 0 10px #fff, 0 0 10px #fff, 0 0 10px #fff, 0 0 18px #fff;
}

.contact .subtitle {
  color: #a0a0a0;
  text-shadow: 0 0 10px #fff, 0 0 10px #fff, 0 0 10px #fff, 0 0 18px #fff;
}

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

.contact .card {
  background: linear-gradient(180deg, #ffffffb9, #ffffff65);
  backdrop-filter: blur(10px); /* 숫자가 클수록 더 흐려짐 */
  -webkit-backdrop-filter: blur(10px); /* Safari 지원용 */
  padding: 48px;
  text-align: center;
  transition: all 0.3s ease;
  border-radius: 25px;
  border: 1px solid #ffffff0c;
}

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

.contact .icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255);
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.contact .card h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
}

.contact .card p {
  color: #777;
  line-height: 1.6;
  font-weight: normal;
  font-size: 17px;
}

.contact .card p strong {
  color: #333;
  display: block;
  padding-bottom: 6px;
}

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

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

  .about .roles .cards {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  /* 컨테이너 패딩 */
  .container {
    padding: 0 16px;
  }

/* 슬라이더 */
.slide-1,
.slide-2 {
  background-position-x: 66%;
}
  /* 슬라이더 텍스트 크기 조정 */
  .slide-content h1 {
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 16px;
  }

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

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

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

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

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

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

.features .card {
  margin-top: 0 !important;
}
  .why {
    background: url(../img/why_bg_m.jpg);
    background-position: bottom;
    background-size: cover;
    padding-bottom: 90vw !important;
  }

  /* 각 카드 내 여백 조정 */

  .course .card h4 {
    font-size: 18px;
  }

  .contact .card h3 {
    font-size: 20px;
  }

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

  /* 공통 */
.m_block {
  display: block;
}
.d_block {
  display: none;
}
  /* About 섹션 */
  .about {
    padding-bottom: 340px !important;
    background: url(../img/about_bgm.jpg) bottom;
    background-size: cover;
  }

  .about .container {
    padding: 0;
  }




  /* 푸터 텍스트 크기 */
  footer .content p {
    font-size: 13px;
  }

  /* 헤더 모바일 메뉴 대응 */
  .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;
  }
}
