/* ========== HOME PAGE ONLY (Hero · Brand · Highlights) ========= */

/* ----- 1) Hero ----- */

.hero{
  position:relative;
  height:calc(100vh - 64px);   /* 헤더 높이만 제외 */
  overflow:hidden;
}
.hero-slider{
  height:100%;
}
.hero-video{
  position:absolute; 
  inset:0;  /* 부모 .hero 기준으로 꽉 채우기 */
  width:100%; 
  height:100%;
  object-fit:cover;            /* 비율 유지, 넘치면 잘림 */
}
.mobile-only{
  display:none;
}

/* ------ 모바일 비율 조정 ------ */
@media (max-width:768px){
  .hero{
    min-height:60vh;}
  .desktop-only{
    display:none;     /* 모바일에선 PC 비디오 숨김   */
  }    
  .mobile-only{
    display:block;    /* 모바일 전용 비디오 노출     */
  }  
}


/* ----- 2) Brand Cards ----- */
.brand__inner{
  max-width:120rem;
  margin-inline:auto;
  display:flex;
  gap:calc(var(--g-unit)*3);
  padding: 20px 0;
}
.brand-card{
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 2.8rem;
  padding: 4.2rem 3.2rem;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.20);
  text-decoration: none;
  color: var(--c-white);
  transition: transform 0.3s ease-in-out;
  z-index: 1; /* 확대 시 다른 요소 위에 표시 */
}
.brand-card.is.chapter9 {
  background: url('../project/book.webp') center / cover no-repeat;
}
.brand-card.is.labs {
  background: url('../project/labs.webp') center / cover no-repeat;
}
/* 호버 효과 개선 */
.brand-card:hover {
  transform: scale(1.03); /* 효과적인 확대 비율 */
  z-index: 10; /* 확대 시 다른 카드 위에 올라오도록 */
}
/* 오버레이 */
.brand-card::before {
  content: '';
  position: absolute; 
  inset: 0;
  background: rgba(60, 60, 60, 0.3);
  z-index: -1;
}
/* 로고 스타일 */
.brand-card__logo img {
  width: 10rem;
  height: auto;
  filter: invert(1);
}
/* 태그라인 스타일 */
.brand-card__tagline {
  font-family: var(--ff-display);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.35;
}
.brand-card__tagline .en {
  display: block; /* 줄바꿈 보장 */
  font-size: 2.4rem;
  font-weight: 800;
  margin-top: 0.5rem;
}
/* 설명문 스타일 */
.brand-card__pitch {
  position: relative;
  font-size: 1.4rem;
  line-height: 1.6;
  padding-top: 1.6rem;
}
/* 구분선 스타일 */
.brand-card__pitch::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 33px;
  height: 2px;
  background: #fff;
}
@media (max-width:768px){
  .brand__inner{
    display:flex;
    flex-direction: column;
  }
  .brand-card{
    padding: 4rem 2rem;
  }
  .brand-card__tagline {
    font-size: 1.2rem;
  }
  .brand-card__tagline .en {
    font-size: 2.0rem;
  }
  .brand-card__pitch {
    font-size: 1.2rem;
  }
  .brand-card:hover {
    transform:none !important;
  }
}

/* ----- 3) Highlights Slider (Swiper) ----- */
.section.highlights {
    padding: 100px 0;
    background-color: var(--c-gray-100);
    position: relative;
    overflow: hidden;
}
/* 슬라이더 컨테이너 */
.slider-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}
.slider-wrapper {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}
.slider-track {
    display: flex;
    transition: transform 0.6s ease;
    will-change: transform;
}
/* 슬라이드 카드 */
.highlight-card {
  position: relative;
  flex: 0 0 calc(33.333% - 40px); /* 3개 카드 기준 */
  display: flex;
  flex-direction: column;
  min-height: 450px;
  margin: 0 20px;
  background: var(--c-white);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease-in-out;
  overflow: hidden;
}
.highlight-card:hover {
  transform: translateY(-15px);
}
.card-image {
    height: 250px;
    width: 100%;
    background-size: cover;
    background-position: center;
    transition: var(--transition);
}
.card-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.card-logo {
  width: 9rem;
  height: auto;
  margin-bottom: 15px;
}
.card-title {
    font-size: 1.6rem;
    /* font-weight: 600; */
    margin-bottom: 15px;
    line-height: 1.3;
    color: var(--c-black);
}
.card-description {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: -0.05em;
    color: var(--c-gray-800);
    margin-bottom: 20px;
    flex-grow: 1;
}
.card-link {
    display: inline-flex;
    align-items: center;
    color: var(--c-gray-400);
    font-size: 0.95rem;
    font-family: var(--ff-en);
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 500;
    padding-bottom: 2px;
    border-bottom: 1px solid var(--c-gold);
    transition: var(--transition);
    margin-top: auto;
    width: fit-content;
}
.card-link i {
    margin-left: 8px;
    font-size: 0.8rem;
    transition: var(--transition);
}
.card-link:hover {
    color: var(--c-gold);
}
.card-link:hover i {
    transform: translateX(4px);
}

/* 네비게이션 버튼 */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--c-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
    z-index: 10;
}
.slider-nav:hover {
    background: var(--c-yellow);
}
.slider-nav:hover i {
    color: var(--c-white);
}
.slider-nav i {
    font-size: 1.2rem;
    color: var(--c-black);
    transition: var(--transition);
}
.prev-btn {
    left: 0;
}
.next-btn {
    right: 0;
}

/* 인디케이터 */
.slider-indicators {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    gap: 10px;
}
.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--c-gray-200);
    cursor: pointer;
    transition: var(--transition);
}
.indicator.active {
    background: var(--c-gray-800);
    transform: scale(1.2);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
   .section.highlights {
      padding: 70px 0;
    }
    .highlights-container{
      padding: 0 10px;
    }
    .section-title {
      font-size: 2.2rem;
    }
    .section-subtitle {
      font-size: 1rem;
    }
    .highlight-card{
      flex: 0 0 calc(100% - 20px);     /* 100% − 좌우 10 px×2 */
      margin: 0 10px;                  /* 좌우 동일 10 px */
      min-height: 400px;
    }
    .slider-container {
      padding: 0 10px;
    }
    .slider-nav {
      display: none; /* 모바일에서는 네비게이션 버튼 숨김 */
    }
    .slider-wrapper{
      touch-action: pan-y;   /* 세로 스크롤은 그대로, 가로 제스처는 JS가 처리 */
    }
    .highlight-card:hover {
      transform:none !important;
    }
    .card-link:hover {
      transform:none !important;
    }
}
