/* ==========================================================================
   ArcNavi - style.css
   공개 사이트(index.html) + 관리자 페이지(admin.html) 공용 스타일시트
   모바일 퍼스트(mobile-first) 반응형 디자인
   ========================================================================== */

:root {
  /* Brand colors - ArcNavi 로고에서 추출한 톤 */
  --color-navy: #0b1f3a;
  --color-navy-light: #14294d;
  --color-navy-dark: #071527;
  --color-accent: #2fa8e0;
  --color-accent-light: #6fc6ef;
  --color-white: #ffffff;
  --color-gray-light: #f4f6f9;
  --color-gray: #cfd6e0;
  --color-gray-dark: #5a6472;
  --color-danger: #e0472f;
  --color-success: #2fe0a8;
  --color-purple: #7c5cff;
  --color-pink: #ff4fa3;
  --color-teal: #14c8b0;

  --font-base: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --container-width: 720px;
  --container-wide: 1160px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(11, 31, 58, 0.08);
  --shadow-md: 0 8px 24px rgba(11, 31, 58, 0.12);
  --shadow-lg: 0 16px 48px rgba(11, 31, 58, 0.18);
  --transition-base: all 0.2s ease-in-out;

  /* Galaxy theme (info/gallery/notice/contact cards) */
  --galaxy-card-bg:
    radial-gradient(1.6px 1.6px at 12% 22%, #ffffff 60%, transparent 61%),
    radial-gradient(1.2px 1.2px at 78% 12%, #ffffff 60%, transparent 61%),
    radial-gradient(1.4px 1.4px at 34% 68%, #ffffff 55%, transparent 61%),
    radial-gradient(1px 1px at 62% 82%, #ffffff 55%, transparent 61%),
    radial-gradient(1.3px 1.3px at 90% 55%, #ffffff 55%, transparent 61%),
    radial-gradient(1px 1px at 20% 85%, #ffffff 50%, transparent 61%),
    radial-gradient(1.5px 1.5px at 55% 35%, #ffffff 55%, transparent 61%),
    radial-gradient(ellipse 120% 100% at 15% -10%, rgba(124, 92, 255, 0.35), transparent 55%),
    radial-gradient(ellipse 100% 90% at 100% 110%, rgba(20, 200, 176, 0.22), transparent 60%),
    radial-gradient(ellipse 60% 50% at 70% 20%, rgba(255, 79, 163, 0.18), transparent 60%),
    linear-gradient(160deg, #0b1024 0%, #05060f 100%);
  --galaxy-border: rgba(255, 255, 255, 0.14);
  --galaxy-shadow: 0 8px 26px rgba(3, 5, 16, 0.45);
  --galaxy-glow: 0 12px 34px rgba(124, 92, 255, 0.4);
  --galaxy-text: #f3f5fc;
  --galaxy-text-dim: rgba(243, 245, 252, 0.72);
  --galaxy-input-bg: rgba(255, 255, 255, 0.07);
  --galaxy-input-border: rgba(255, 255, 255, 0.22);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  color: var(--color-navy-dark);
  background-color: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 64px 0;
}

.section--alt {
  background-color: var(--color-gray-light);
}

.section-heading {
  text-align: center;
  margin-bottom: 40px;
}

.section-heading__title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-navy);
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
}

.section-heading__title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--color-navy), var(--color-accent));
}

.section-heading__subtitle {
  margin-top: 14px;
  color: var(--color-gray-dark);
  font-size: 1rem;
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 600;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-gray-light);
}

.site-header__inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--color-navy);
  flex-shrink: 0;
}

.site-header__logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  background: var(--color-white);
}

.site-header__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-header__name {
  font-size: 1rem;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  flex-wrap: wrap;
}

.site-nav__link {
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--color-navy-dark);
  transition: var(--transition-base);
  white-space: nowrap;
}

.site-nav__link:hover {
  background: var(--color-gray-light);
  color: var(--color-navy);
}

.site-header__right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  background: transparent;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-navy);
  border-radius: 2px;
}

@media (max-width: 880px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--color-white);
    border-top: 1px solid var(--color-gray-light);
    box-shadow: var(--shadow-md);
    padding: 8px 20px 16px;
    gap: 2px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav__link {
    padding: 12px 6px;
    border-bottom: 1px solid var(--color-gray-light);
    border-radius: 0;
  }

  .nav-toggle {
    display: flex;
  }
}

/* ==========================================================================
   Language switch (한국어 / EN / 中文)
   ========================================================================== */

.lang-switch {
  display: flex;
  gap: 3px;
  background: var(--color-gray-light);
  border-radius: 999px;
  padding: 3px;
  flex-shrink: 0;
}

.lang-switch__btn {
  border: none;
  background: transparent;
  color: var(--color-gray-dark);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition-base);
  white-space: nowrap;
}

.lang-switch__btn.is-active {
  background: var(--color-navy);
  color: var(--color-white);
}

@media (max-width: 480px) {
  .site-header__name {
    display: none;
  }
  .lang-switch__btn {
    font-size: 0.66rem;
    padding: 5px 8px;
  }
}

/* ==========================================================================
   Layout containers
   ========================================================================== */

.container-wide {
  width: 100%;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 20px;
}

#about,
#event,
#gallery,
#notice,
#press,
#contact {
  scroll-margin-top: 76px;
}

/* ==========================================================================
   Hero banner
   ========================================================================== */

.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--color-white);
  text-align: center;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--color-navy-dark);
}

.hero__media video,
.hero__media iframe,
.hero__media .hero__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  object-fit: cover;
}

.hero-video-panels-visitor {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-video-panel-visitor {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-video-panel-visitor video,
.hero-video-panel-visitor iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.hero-video-panel-visitor.hidden {
  display: none;
}

.hero-video-tabs-visitor {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 8px;
}

.hero-video-tab-visitor {
  padding: 6px 16px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.85);
  color: var(--color-navy-dark);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-base);
}

.hero-video-tab-visitor.is-active {
  background: var(--color-accent);
  color: #fff;
}

.hero__poster {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-navy-light), var(--color-navy-dark));
}

.hero__poster img {
  width: 30%;
  max-width: 150px;
  opacity: 0.85;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(11, 31, 58, 0.4) 0%, rgba(11, 31, 58, 0.78) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 96px 24px 76px;
}

.hero__avatar {
  width: 80px;
  height: 80px;
  margin: 0 auto 18px;
  border-radius: 50%;
  padding: 4px;
  background: conic-gradient(from 0deg, var(--color-navy), var(--color-accent), var(--color-purple), var(--color-pink), var(--color-navy));
  box-shadow: var(--shadow-lg);
  animation: arcnavi-spin 6s linear infinite;
}

@keyframes arcnavi-spin {
  to {
    transform: rotate(360deg);
  }
}

.hero__avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--color-white);
  object-fit: contain;
  padding: 12px;
}

.hero__eyebrow {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 10px;
}

.hero__title {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 16px;
}

.hero__bio {
  font-size: 1.02rem;
  opacity: 0.94;
  max-width: 560px;
  margin: 0 auto 28px;
}

.hero__scroll-cue {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 34px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 14px;
  z-index: 2;
}

.hero__scroll-cue::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 4px;
  height: 8px;
  background: var(--color-white);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: arcnavi-scroll-cue 1.6s ease-in-out infinite;
}

@keyframes arcnavi-scroll-cue {
  0% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 10px);
  }
}

@media (min-width: 768px) {
  .hero {
    min-height: 620px;
  }
  .hero__title {
    font-size: 2.9rem;
  }
}

/* ==========================================================================
   Hero image carousel (프로젝트 카드가 1개 이상 등록되면 클래식 히어로 대신 표시)
   ========================================================================== */

.hero--carousel {
  padding: 0;
}

.hero--carousel-secondary {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-carousel {
  position: absolute;
  inset: 0;
}

.hero-carousel__track {
  position: absolute;
  inset: 0;
}

.hero-carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease;
  z-index: 0;
}

.hero-carousel__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero-carousel__media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--color-navy-dark);
}

.hero-carousel__media--fallback {
  background-image: linear-gradient(135deg, var(--color-navy), var(--color-accent)) !important;
}

.hero-carousel__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 31, 58, 0.4) 0%, rgba(11, 31, 58, 0.78) 100%);
}

.hero-carousel__text {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-white);
  padding: 96px 24px 76px;
  max-width: 720px;
  margin: 0 auto;
}

.hero-carousel__title {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 14px;
}

.hero-carousel__title:empty,
.hero-carousel__desc:empty {
  display: none;
}

.hero-carousel__desc {
  font-size: 1.02rem;
  opacity: 0.94;
  max-width: 560px;
}

.hero-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: var(--color-white);
  font-size: 1.6rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-base);
}

.hero-carousel__arrow:hover {
  background: rgba(255, 255, 255, 0.32);
}

.hero-carousel__arrow--prev {
  left: 16px;
}

.hero-carousel__arrow--next {
  right: 16px;
}

.hero-carousel__dots {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 8px;
}

.hero-carousel__dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transition: var(--transition-base);
}

.hero-carousel__dots button.is-active {
  background: var(--color-white);
  width: 22px;
  border-radius: 4px;
}

@media (min-width: 768px) {
  .hero-carousel__title {
    font-size: 2.9rem;
  }
}

/* ==========================================================================
   Feature band
   ========================================================================== */

.feature-band .info-cards {
  margin-top: 0;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition-base);
}

.btn--primary {
  background-color: var(--color-accent);
  color: var(--color-white);
}

.btn--primary:hover {
  background-color: var(--color-accent-light);
  transform: translateY(-2px);
}

.btn--outline {
  background-color: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn--outline:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

.btn--dark {
  background-color: var(--color-navy);
  color: var(--color-white);
}

.btn--dark:hover {
  background-color: var(--color-navy-light);
}

.btn--danger {
  background-color: var(--color-danger);
  color: var(--color-white);
}

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

.btn--sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ==========================================================================
   About / Event sections
   ========================================================================== */

.about__body,
.event__body {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  color: var(--color-navy-dark);
  font-size: 1.02rem;
}

.about__video {
  max-width: 780px;
  margin: 0 auto 28px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--color-navy-dark);
}

.about__video iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.event__image {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  max-width: 960px;
  margin: 0 auto 28px;
}

.event__image-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.event__image-item img {
  width: 100%;
  height: auto;
  display: block;
}

.event__image.hidden,
.event__image-item.hidden {
  display: none;
}
.event__image-item img {
  cursor: zoom-in;
  transition: transform 0.25s ease;
}

.event__image-item img:hover {
  transform: scale(1.03);
}
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(5, 7, 16, 0.88);
}

.image-lightbox.is-open {
  display: flex;
}

.image-lightbox__img {
  max-width: min(92vw, 1100px);
  max-height: 88vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  object-fit: contain;
}

.image-lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.image-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.22);
}

body.no-scroll {
  overflow: hidden;
}


.info-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 40px;
}

.info-card {
  background-image: var(--galaxy-card-bg);
  background-color: #05060f;
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--galaxy-shadow);
  border: 1px solid var(--galaxy-border);
  text-align: center;
  transition: var(--transition-base);
}

.info-card:hover {
  box-shadow: var(--galaxy-glow);
  transform: translateY(-4px);
}

.info-card__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-navy), var(--color-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-weight: 800;
  font-size: 1.2rem;
}

.info-card__icon.icon--purple {
  background: linear-gradient(135deg, var(--color-navy), var(--color-purple));
}

.info-card__icon.icon--pink {
  background: linear-gradient(135deg, var(--color-purple), var(--color-pink));
}

.info-card__icon.icon--teal {
  background: linear-gradient(135deg, var(--color-accent), var(--color-teal));
}

.info-card__title {
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--galaxy-text);
}

.info-card__desc {
  font-size: 0.9rem;
  color: var(--galaxy-text-dim);
}

.info-card__image-wrap {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin: -4px -4px 16px;
  background: linear-gradient(135deg, var(--color-navy), var(--color-purple));
}

.info-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.info-card__image-wrap--fallback {
  background: linear-gradient(135deg, var(--color-navy), var(--color-accent), var(--color-purple));
}

@media (min-width: 640px) {
  .info-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .info-cards {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ==========================================================================
   Gallery
   ========================================================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (min-width: 960px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  background-image: var(--galaxy-card-bg);
  background-color: #05060f;
  box-shadow: var(--galaxy-shadow);
  border: 1px solid var(--galaxy-border);
  transition: var(--transition-base);
}

.gallery-item:hover {
  box-shadow: var(--galaxy-glow);
  transform: translateY(-4px);
}

.gallery-item__image-wrap {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  position: relative;
}

.gallery-item__image-wrap img,
.gallery-item__image-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-item:hover .gallery-item__image-wrap img,
.gallery-item:hover .gallery-item__image-wrap video {
  transform: scale(1.08);
}

.gallery-item__caption {
  padding: 12px 14px;
}

.gallery-item__title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--galaxy-text);
  margin-bottom: 4px;
}

.gallery-item__desc {
  font-size: 0.8rem;
  color: var(--galaxy-text-dim);
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--color-gray-dark);
  font-size: 0.95rem;
}
/* ==========================================================================
   Video page (video.html) - 메인 홍보영상 전용 페이지
   ========================================================================== */
.video-page {
  padding-top: 48px;
}

.video-page__player {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #05060f;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.video-page__panel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
}

.video-page__panel.is-active {
  display: block;
}

.video-page__panel video,
.video-page__panel iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-page__pager {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.video-page__dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--color-gray);
  background: var(--color-white);
  color: var(--color-navy);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-base);
}

.video-page__dot:hover {
  border-color: var(--color-accent);
}

.video-page__dot.is-active {
  background: var(--color-navy);
  border-color: var(--color-navy);
  color: var(--color-white);
}

.video-page__player.hidden,
.video-page__pager.hidden {
  display: none;
}
/* ==========================================================================
   Main promo video section (메인 홍보영상: 히어로 다음 별도 섹션)
   ========================================================================== */
.main-promo-video__player {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #05060f;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

#mainPromoVideoSection.hidden {
  display: none;
}
/* ==========================================================================
   Hero background slideshow (히어로 배경 슬라이드쇼, 최대 6장)
   ========================================================================== */
.hero-bg-slideshow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-bg-slideshow__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-bg-slideshow__slide.is-active {
  opacity: 1;
}

.hero-bg-slideshow__caption {
  position: absolute;
  left: 50%;
  bottom: 92px;
  transform: translateX(-50%);
  margin: 0;
  padding: 6px 18px;
  border-radius: 999px;
  background: rgba(5, 7, 16, 0.5);
  color: var(--color-white);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  max-width: 80vw;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-bg-slideshow__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(5, 7, 16, 0.38);
  color: var(--color-white);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition-base);
}

.hero-bg-slideshow__arrow:hover {
  background: rgba(5, 7, 16, 0.6);
}

.hero-bg-slideshow__arrow--prev {
  left: 16px;
}

.hero-bg-slideshow__arrow--next {
  right: 16px;
}

.hero-bg-slideshow__dots {
  position: absolute;
  left: 50%;
  bottom: 54px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 8px;
}

.hero-bg-slideshow__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 0;
}

.hero-bg-slideshow__dot.is-active {
  background: var(--color-white);
  width: 20px;
  border-radius: 4px;
}

@media (max-width: 640px) {
  .hero-bg-slideshow__arrow {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
  .hero-bg-slideshow__caption {
    bottom: 84px;
    font-size: 0.78rem;
  }
}



/* ==========================================================================
   Notice board
   ========================================================================== */

.notice-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.notice-item {
  background-image: var(--galaxy-card-bg);
  background-color: #05060f;
  border: 1px solid var(--galaxy-border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  box-shadow: var(--galaxy-shadow);
}

.notice-item__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.notice-item {
  position: relative;
}

.notice-item::before {
  content: "";
  position: absolute;
  top: 22px;
  left: -7px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(47, 168, 224, 0.15);
}

.notice-item:nth-child(3n+2)::before {
  background: var(--color-purple);
  box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.15);
}

.notice-item:nth-child(3n+3)::before {
  background: var(--color-pink);
  box-shadow: 0 0 0 4px rgba(255, 79, 163, 0.15);
}

.notice-list {
  padding-left: 8px;
}

.notice-item__title {
  font-weight: 700;
  color: var(--galaxy-text);
  font-size: 1.02rem;
}

.notice-item__date {
  font-size: 0.82rem;
  color: var(--color-accent-light);
  font-weight: 600;
  white-space: nowrap;
}

.notice-item__body {
  font-size: 0.92rem;
  color: var(--galaxy-text-dim);
  white-space: pre-line;
}

/* ==========================================================================
   Press coverage (언론기사보기)
   ========================================================================== */

.press-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .press-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

.press-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-image: var(--galaxy-card-bg);
  background-color: #05060f;
  border: 1px solid var(--galaxy-border);
  border-radius: var(--radius-md);
  padding: 22px 22px;
  box-shadow: var(--galaxy-shadow);
  transition: var(--transition-base);
  text-decoration: none;
}

.press-item:hover {
  box-shadow: var(--galaxy-glow);
  transform: translateY(-4px);
}

.press-item__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.press-item__source {
  display: inline-flex;
  align-items: center;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-navy);
  background: var(--color-accent-light);
  padding: 4px 10px;
  border-radius: 999px;
}

.press-item__date {
  font-size: 0.8rem;
  color: var(--galaxy-text-dim);
  white-space: nowrap;
}

.press-item__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--galaxy-text);
  line-height: 1.5;
}

.press-item__link-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-accent-light);
  margin-top: auto;
}

.press-item__link-row svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

@media (min-width: 960px) {
  .press-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.press-card {
  display: flex;
  flex-direction: column;
  background-image: var(--galaxy-card-bg);
  background-color: #05060f;
  border: 1px solid var(--galaxy-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--galaxy-shadow);
  transition: var(--transition-base);
}

.press-card:hover {
  box-shadow: var(--galaxy-glow);
  transform: translateY(-4px);
}

.press-card__image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-navy), var(--color-purple));
}

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

.press-card__content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 22px 22px;
}

.press-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--galaxy-text);
  line-height: 1.5;
}

.press-card__body {
  font-size: 0.86rem;
  color: var(--galaxy-text-dim);
  line-height: 1.6;
}

.press-card__link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-accent-light);
  text-decoration: none;
}

.press-card__link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.press-card__related {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--galaxy-border);
}

.press-card__related-title {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--galaxy-text-dim);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.press-card__related-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.press-card__related-list li {
  font-size: 0.8rem;
  line-height: 1.5;
}

.press-card__related-list a {
  color: var(--galaxy-text-dim);
  text-decoration: none;
}

.press-card__related-list a:hover {
  color: var(--color-accent-light);
  text-decoration: underline;
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-wrap {
  max-width: 620px;
  margin: 0 auto;
  background-image: var(--galaxy-card-bg);
  background-color: #05060f;
  border-radius: var(--radius-lg);
  box-shadow: var(--galaxy-glow);
  padding: 36px 28px;
  border: 1px solid var(--galaxy-border);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--galaxy-text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--galaxy-input-border);
  background-color: var(--galaxy-input-bg);
  color: var(--galaxy-text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition-base);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--galaxy-text-dim);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent-light);
  box-shadow: 0 0 0 3px rgba(111, 198, 239, 0.25);
}

.form-group textarea {
  min-height: 130px;
  resize: vertical;
}

/* 관리자 페이지(admin.html)는 카드 배경이 흰색이므로,
   갤럭시 테마용 밝은 텍스트 색상을 그대로 쓰면 글자가 안 보입니다.
   .admin-body 안의 폼 요소만 어두운 텍스트로 재정의합니다. */
.admin-body .form-group label {
  color: var(--color-navy);
}

.admin-body .form-group input,
.admin-body .form-group textarea,
.admin-body .form-group select {
  background-color: var(--color-white);
  border: 1px solid var(--color-gray);
  color: var(--color-navy);
}

.admin-body .form-group input::placeholder,
.admin-body .form-group textarea::placeholder {
  color: var(--color-gray-dark);
}

.contact-note {
  font-size: 0.82rem;
  color: var(--galaxy-text-dim);
  margin-top: 14px;
  text-align: center;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background-color: var(--color-navy-dark);
  color: var(--color-gray);
  padding: 36px 0 24px;
  text-align: center;
  font-size: 0.85rem;
}

.site-footer__brand {
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 8px;
  font-size: 1rem;
}

.site-footer__links {
  margin-top: 12px;
  display: flex;
  gap: 16px;
  justify-content: center;
}

.site-footer__links a {
  color: var(--color-gray);
  transition: var(--transition-base);
}

.site-footer__links a:hover {
  color: var(--color-accent-light);
}

.site-footer__meta {
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--color-gray);
  opacity: 0.85;
}

.site-footer__meta-sep {
  margin: 0 6px;
  opacity: 0.6;
}

.site-footer__social {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  transition: var(--transition-base);
}

.social-icon:hover {
  transform: translateY(-3px);
  filter: brightness(1.08);
}

.social-icon--kakao {
  background: #fee500;
  color: #3c1e1e;
}

.social-icon--facebook {
  background: #1877f2;
}

.social-icon--instagram {
  background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}

.social-icon--wechat {
  background: #07c160;
}

/* ==========================================================================
   PWA install banner
   ========================================================================== */

.install-banner {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 420px;
  background: var(--color-navy);
  color: var(--color-white);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  z-index: 200;
}

.install-banner.is-visible {
  display: flex;
}

.install-banner__text {
  font-size: 0.85rem;
}

/* ==========================================================================
   Admin page
   ========================================================================== */

.admin-body {
  background-color: var(--color-gray-light);
  min-height: 100vh;
}

.admin-header {
  background: var(--color-navy);
  color: var(--color-white);
  padding: 16px 0;
  box-shadow: var(--shadow-sm);
}

.admin-header__inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.admin-header__brand img {
  height: 34px;
  width: 34px;
  background: var(--color-white);
  border-radius: var(--radius-sm);
  padding: 2px;
  object-fit: contain;
}

.admin-main {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 32px 20px 80px;
}

.setup-banner {
  background: #fff4e5;
  border: 1px solid #f0b95a;
  color: #7a4a00;
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 24px;
  font-size: 0.9rem;
  line-height: 1.7;
  display: none;
}

.setup-banner.is-visible {
  display: block;
}

.setup-banner strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.98rem;
}

.setup-banner code {
  background: rgba(0, 0, 0, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85em;
}

.login-wrap {
  max-width: 400px;
  margin: 60px auto;
  background: var(--color-white);
  padding: 36px 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.login-wrap h1 {
  color: var(--color-navy);
  font-size: 1.4rem;
  margin-bottom: 24px;
  text-align: center;
}

.error-text {
  color: var(--color-danger);
  font-size: 0.85rem;
  margin-top: 10px;
  min-height: 18px;
}

.success-text {
  color: #1a9c6e;
  font-size: 0.85rem;
  margin-top: 10px;
  min-height: 18px;
}

.admin-panel {
  display: none;
}

.admin-panel.is-visible {
  display: block;
}

.admin-section {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
  border: 1px solid var(--color-gray-light);
}

.admin-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.admin-section__header h2 {
  color: var(--color-navy);
  font-size: 1.2rem;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .admin-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .admin-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.admin-card {
  border: 1px solid var(--color-gray-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-gray-light);
}

.admin-card__image {
  aspect-ratio: 1 / 1;
  background: var(--color-white);
  overflow: hidden;
  position: relative;
}

.admin-card__image img,
.admin-card__image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-card__body {
  padding: 12px 14px;
}

.admin-card__title {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--color-navy);
  margin-bottom: 10px;
}

.admin-card__actions {
  display: flex;
  gap: 8px;
}

.admin-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-list-item {
  border: 1px solid var(--color-gray-light);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  background: var(--color-gray-light);
}

.admin-list-item__header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.admin-list-item__title {
  font-weight: 700;
  color: var(--color-navy);
}

.admin-list-item__date {
  font-size: 0.8rem;
  color: var(--color-accent);
  font-weight: 600;
}

.admin-list-item__body {
  font-size: 0.88rem;
  color: var(--color-gray-dark);
  margin-bottom: 12px;
  white-space: pre-line;
}

.admin-list-item__actions {
  display: flex;
  gap: 8px;
}

.progress-bar {
  height: 6px;
  background: var(--color-gray);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 10px;
  display: none;
}

.progress-bar.is-visible {
  display: block;
}

.progress-bar__fill {
  height: 100%;
  background: var(--color-accent);
  width: 0%;
  transition: width 0.2s ease;
}

.field-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.field-row .form-group {
  flex: 1;
  min-width: 180px;
}

.hero-video-preview {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-navy-dark);
  margin-bottom: 20px;
  position: relative;
}

.hero-video-preview video,
.hero-video-preview iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  object-fit: cover;
}

.hero-video-preview .empty-state {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray);
  font-size: 0.85rem;
  padding: 16px;
  text-align: center;
}

.hero-video-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.hero-video-tab {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--color-gray);
  background: var(--color-white);
  color: var(--color-gray-dark);
  font-weight: 600;
  font-size: 0.85rem;
}

.hero-video-tab.is-active {
  background: var(--color-navy);
  border-color: var(--color-navy);
  color: var(--color-white);
}

.hero-video-panel.hidden {
  display: none;
}

.admin-card__image {
  position: relative;
}

.media-type-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(11, 31, 58, 0.75);
  color: var(--color-white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  z-index: 1;
}

.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.mt-16 {
  margin-top: 16px;
}


/* ==========================================================================
   Scroll reveal
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ==========================================================================
   WeChat button + toast
   ========================================================================== */

.linkhub__btn--wechat {
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  appearance: none;
}

.app-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-navy);
  color: var(--color-white);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 999;
  box-shadow: var(--shadow-md);
}

.app-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

