/* KISET_PC_본원_메인 — Figma node 2117:1180 */

/* 메인 전용 헤더 — Hero 위 투명, 스크롤 시 서브 페이지와 동일하게 sticky */
header {
  position: sticky;
  top: 0;
  width: 100%;
  background: 0;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  z-index: 1000;
  transition: var(--transition-normal);
}

header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(15px);
  box-shadow: var(--shadow-lg);
  border-bottom: 1px solid var(--color-border);
}

header .logo {
  background-image: url('../images/header/wlogo.svg');
}

header.scrolled .logo {
  background-image: url('../images/header/blogo.svg');
}

header .menu-area .nav-item > a {
  color: #fff;
}

header.scrolled .menu-area .nav-item > a {
  color: #333;
}

.hamburger div {
  background: #fff;
}

header.scrolled .hamburger div {
  background: #333;
}

.hamburger:hover div {
  background: #fff;
}

header.scrolled .hamburger:hover div {
  background: #333;
}

.dashboard-main-wrapper:has(.home-main) {
  padding-top: 0;
}

.home-main {
  width: 100%;
  overflow: hidden;
  background: #fff;
  /* header-inner 높이(100px)만큼 당겨 Hero가 헤더 아래까지 겹침 */
  margin-top: -100px;
}

.home-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero slider — PC 1920×720 (intro.css .main-visual-content와 동일) */
.home-slider {
  position: relative;
  width: 100%;
  max-width: 1920px;
  height: 720px;
  margin: 0 auto;
  overflow: hidden;
  background: #081b33;
}

.home-slider__slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.home-slider__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.home-slider__slide.is-active {
  opacity: 1;
  z-index: 1;
}

.home-slider__slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.home-slider__copy {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 120px 24px 80px;
  color: #fff;
  pointer-events: none;
}

.home-slider__en {
  font-size: clamp(14px, 1.2vw, 18px);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
  opacity: 0.92;
}

.home-slider__title {
  font-size: clamp(32px, 3.6vw, 56px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.home-slider__meta {
  font-size: clamp(15px, 1.3vw, 20px);
  font-weight: 500;
  line-height: 1.6;
  opacity: 0.95;
}

.home-slider__dots {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.home-slider__dots button {
  border: 0;
  padding: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.45);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transition: all 0.25s ease;
}

.home-slider__dots button.is-active {
  width: 24px;
  height: 24px;
  background: #c9a15a;
}

/* President's Greeting */
.home-greeting {
  padding: 100px 0 80px;
  background: #fff;
}

.home-greeting__row {
  display: flex;
  align-items: center;
  gap: 80px;
}

.home-greeting__photo {
  flex-shrink: 0;
  width: 220px;
  height: 220px;
  border-radius: 200px;
  overflow: hidden;
  border: 1px solid #dddddd;
  background: #e2e2e2;
}

.home-greeting__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.home-greeting__content {
  flex: 1;
  min-width: 0;
}

.home-greeting__label {
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  color: #004a99;
  margin-bottom: 10px;
}

.home-greeting__lead {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  color: #333333;
  margin-bottom: 12px;
}

.home-greeting__text {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: #666666;
  margin-bottom: 26px;
  max-width: 540px;
}

.home-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 28px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s;
}

.home-btn:hover {
  opacity: 0.88;
}

.home-btn--dark {
  background: #000;
  color: #fff;
}

.home-btn--outline {
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
}

.home-btn i {
  font-size: 20px;
  transform: rotate(90deg);
}

/* Academic Events — Figma: 좌측 텍스트/네비 + 우측 카드 캐러셀 */
.home-events {
  background: #081b33;
  padding: 100px 0;
  overflow: hidden;
}

.home-events__layout {
  display: flex;
  align-items: center;
  gap: 40px;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding-left: max(24px, calc((100% - 1460px) / 2));
}

.home-events__head {
  flex: 0 0 460px;
  width: 460px;
  margin: 0;
}

.home-events__label {
  margin: 0 0 16px;
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
}

.home-events__sub {
  margin: 0 0 40px;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  color: #fff;
}

.home-events__nav {
  display: flex;
  gap: 8px;
}

.home-events__nav button {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: background 0.2s;
}

.home-events__nav button:hover {
  background: rgba(255, 255, 255, 0.12);
}

.home-events__track-wrap {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.home-events__track {
  display: flex;
  gap: 40px;
  transition: transform 0.45s ease;
  will-change: transform;
}

.home-events__card {
  flex: 0 0 710px;
  width: 710px;
  height: 340px;
  border-radius: 24px;
  overflow: hidden;
  background: #0d2744;
}

.home-events__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* KISET Official / 바로가기 — Figma 2117:1217 */
.home-official {
  padding: 100px 0 120px;
  background: #fff;
}

.home-section-head {
  display: flex;
  justify-content: center;
  text-align: center;
  margin-bottom: 60px;
}

.home-section-head__title {
  margin: 0;
  line-height: 0;
}

.home-section-head__title img {
  display: block;
  width: auto;
  max-width: min(100%, 280px);
  height: auto;
}

.home-official__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 628px));
  justify-content: center;
  gap: 24px;
}

.home-official__card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 40px;
  min-height: 284px;
  padding: 50px 80px;
  border-radius: 24px;
  border: 1px solid #eeeeee;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-official__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.home-official__card--notice {
  background: #08a4d0;
}

.home-official__card--executives {
  background: #334660;
}

.home-official__illus {
  flex-shrink: 0;
  width: 168px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-official__illus img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.18));
}

.home-official__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  min-width: 0;
}

.home-official__title {
  margin: 0;
  font-size: 32px;
  font-weight: 600;
  line-height: 1;
  color: #fff;
}

.home-official__card .home-btn {
  pointer-events: none;
  height: 52px;
  padding: 0 28px;
  gap: 8px;
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.home-official__card .home-btn i {
  font-size: 18px;
  transform: none;
}

@media (max-width: 1320px) {
  .home-slider {
    height: auto;
    max-width: none;
  }

  .home-slider__slides {
    height: auto;
  }

  .home-slider__slide {
    position: relative;
    inset: auto;
    opacity: 1;
  }

  .home-slider__slide img {
    height: auto;
    object-fit: initial;
  }

  .home-events__layout {
    padding-left: 24px;
  }

  .home-events__head {
    flex-basis: 360px;
    width: 360px;
  }

  .home-events__label {
    font-size: 32px;
  }

  .home-events__card {
    flex: 0 0 560px;
    width: 560px;
  }
}

@media (max-width: 1024px) {
  .home-greeting__row {
    gap: 40px;
  }

  .home-main {
    margin-top: -86px;
  }

  .home-events {
    padding: 72px 0;
  }

  .home-events__layout {
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
    padding: 0 24px;
  }

  .home-events__head {
    flex: none;
    width: 100%;
  }

  .home-events__sub {
    margin-bottom: 24px;
  }

  .home-events__card {
    flex: 0 0 min(710px, 85vw);
    width: min(710px, 85vw);
    height: 280px;
  }
}

@media (max-width: 768px) {
  .home-slider__slide img {
    content: url('../images/main_visual_m.webp');
  }

  .home-slider__dots {
    right: 16px;
    flex-direction: row;
    top: auto;
    bottom: 24px;
    transform: none;
  }

  .home-greeting {
    padding: 64px 0;
  }

  .home-greeting__row {
    flex-direction: column;
    text-align: center;
  }

  .home-greeting__text {
    max-width: none;
  }

  .home-events {
    padding: 64px 0;
  }

  .home-events__label {
    font-size: 28px;
  }

  .home-events__sub {
    font-size: 16px;
  }

  .home-events__track {
    gap: 16px;
  }

  .home-events__card {
    height: 220px;
  }

  .home-official {
    padding: 64px 0 80px;
  }

  .home-section-head {
    margin-bottom: 40px;
  }

  .home-section-head__title img {
    max-width: min(100%, 220px);
  }

  .home-official__grid {
    grid-template-columns: 1fr;
    max-width: 628px;
    margin: 0 auto;
  }

  .home-official__card {
    gap: 28px;
    min-height: 220px;
    padding: 36px 32px;
  }

  .home-official__illus {
    width: 120px;
    height: 106px;
  }

  .home-official__title {
    font-size: 26px;
  }

  .home-official__body {
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .home-official__card {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    min-height: auto;
    padding: 28px 24px;
  }

  .home-official__illus {
    width: 110px;
    height: 98px;
  }
}
