@font-face {
  font-family: "Noto Sans KR";
  src: url("../fonts/NotoSansKR-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans KR";
  src: url("../fonts/NotoSansKR-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans KR";
  src: url("../fonts/NotoSansKR-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

:root {
  --color-bg: #0b1220;
  --color-box: #0f172a;
  --color-text: #ffffff;
  --color-accent: #5084ff;
}

body {
  margin: 0;
  font-family: "Noto Sans KR", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-bg);
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
}

.site-shell {
  max-width: 900px;
  margin: 0 auto;
  background: var(--color-box);
  min-height: 100vh;
  position: relative;
  overflow: visible;
}

.site-main {
  padding-bottom: 3rem;
}

/* Header/Nav - Darken */
.site-header {
  padding: 1rem 0;
}

body.has-hero .site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
}

.site-menu-button {
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  background: transparent;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  align-items: flex-end;
  cursor: pointer;
}

.site-menu-button__icon {
  width: 1.8rem;
  height: 2px;
  background: #fff;
  border-radius: 999px;
}

.site-menu-button__icon::before,
.site-menu-button__icon::after {
  content: "";
  display: block;
  width: 1.8rem;
  height: 2px;
  background: #fff;
  transform: translateY(8px);
  border-radius: 999px;
}

.site-menu-button__icon::before {
  transform: translateY(-10px);
}

/* .site-menu-button__icon::after { transform: translateY(7px); } */
/* Simplified for now */

.site-menu {
  position: absolute;
  top: 4.5rem;
  /* Adjusted to 4.5rem to fully clear header height */
  right: 1rem;
  /* Mobile right alignment */
  width: 12rem;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 0.75rem;
  padding: 1rem;
  z-index: 100;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

.site-menu[hidden] {
  display: none;
}

.site-menu__group {
  display: grid;
  gap: 0.5rem;
}

.site-menu__group a {
  color: #e2e8f0;
  font-size: 0.95rem;
  padding: 0.25rem 0;
}

.site-menu__divider {
  height: 1px;
  background: #334155;
  margin: 0.75rem 0;
}

/* Hero Section */
.site-hero {
  position: relative;
  /* min-height: 120px; Removed to fit content */
  margin-bottom: 2rem;
  padding: 3rem 0;
  /* Add top/bottom padding for the video */
}

body.has-hero .site-hero {
  width: 100%;
}

.site-hero--with-bg {
  padding: 0;
}

/* Overlay for Hero Background */
.site-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 18, 32, 0.55);
}

.site-hero__content {
  position: relative;
  z-index: 1;
}

.site-hero--with-bg .site-hero__content {
  position: relative;
  /* Changed to relative so content drives height */
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 1rem 3rem;
  /* Increased bottom padding */
  z-index: 2;
}

.site-hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.site-hero__title {
  margin: 0;
  font-size: 1.2rem;
  color: #fff;
  opacity: 0.9;
  text-align: center;
}

.site-hero__title {
  margin: 0;
  font-size: 1.2rem;
  color: #fff;
  opacity: 0.9;
}

/* Main Video */
/* .site-main-video ruleset removed as it is now merged into hero */

.site-main-video__frame {
  background: transparent;
  border-radius: 0.5rem;
  overflow: hidden;
  /* box-shadow removed for transparency focus */
  width: 100%;
  margin: 0 auto;
}

.site-main-video__frame iframe {
  width: 100%;
  aspect-ratio: 9 / 16;
  /* Vertical Video focus */
  border: none;
  display: block;
  background: transparent;
}

.site-main-video__frame.is-horizontal iframe {
  aspect-ratio: 16 / 9;
}

.site-main-video__frame.is-vertical {
  width: 70%;
  max-width: 420px;
}

.site-main-video__frame.is-horizontal {
  max-width: 100%;
}


/* Profile Card (Center Box) */
.profile-box {
  margin-bottom: 2rem;
  /* margin-top: -3rem; Optional: if overlap effect is desired later */
}

body.has-hero .profile-box {
  margin-top: -1.5rem;
}

.profile-card {
  background: var(--color-box);
  border: 1px solid #1e293b;
  border-radius: 1rem;
  padding: 1.5rem;
  position: relative;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

.profile-card__header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.profile-card__title {
  display: inline-block;
  background: #1e293b;
  color: var(--color-accent);
  padding: 0.4rem 1.2rem;
  border-radius: 999px;
  font-size: 1.5rem;
  font-weight: 700;
}

.profile-info-group {
  margin-bottom: 1.25rem;
}

.profile-info-group:last-child {
  margin-bottom: 0;
}

.profile-info-group__title {
  color: #94a3b8;
  /* Slate 400 */
  font-size: 0.9rem;
  margin: 0 0 0.25rem;
  font-weight: 600;
}

.profile-info-group__content {
  color: #f1f5f9;
  font-size: 0.95rem;
  line-height: 1.5;
}

.profile-card--collapsible .profile-card__body {
  max-height: 18rem;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.profile-card--collapsible.is-expanded .profile-card__body {
  max-height: 2000px;
}

.profile-card__toggle {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--color-accent);
  margin-top: 1rem;
  font-size: 0.9rem;
  display: flex;
  justify-content: center;
  cursor: pointer;
}

.profile-card__toggle i {
  transition: transform 0.2s ease;
}

.profile-card--collapsible.is-expanded .profile-card__toggle i {
  transform: rotate(180deg);
}

/* Gallery from Profile Images (Small middle section) */
.profile-gallery-section {
  margin-bottom: 2rem;
}

.profile-gallery {
  overflow: hidden;
}

.profile-gallery__track {
  --per-view: 2;
  display: flex;
  transition: transform 0.6s ease;
  will-change: transform;
}

.profile-gallery__item {
  flex: 0 0 calc(100% / var(--per-view));
  padding: 0 0.25rem;
  margin: 0;
  border-radius: 0.5rem;
  overflow: hidden;
}

.profile-gallery__item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  border-radius: 0.5rem;
}

@media (min-width: 768px) {
  .site-menu {
    right: 2rem;
  }

  .site-hero--with-bg .site-hero__content {
    padding-top: 7.5rem;
    padding-bottom: 2.5rem;
  }

  .profile-gallery__track {
    --per-view: 3;
  }
}

/* Contact Name Box */
.contact-box {
  margin-bottom: 3rem;
  text-align: center;
}

.contact-card {
  background: var(--color-box);
  border: 1px solid #1e293b;
  border-radius: 1rem;
  padding: 1.5rem 1.25rem;
  box-shadow: 0 6px 12px -4px rgba(0, 0, 0, 0.35);
  display: grid;
  gap: 0.75rem;
  justify-items: center;
}

.contact-card__name {
  font-size: 1rem;
  color: #e2e8f0;
  margin: 0;
}

.contact-card__phone {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--color-accent);
  margin: 0;
  letter-spacing: 0.5px;
}

.contact-card__actions {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  transition: opacity 0.2s;
}

.btn-contact:hover {
  opacity: 0.9;
}

.btn-contact--call {
  background: #1e3a8a;
  /* Dark Blue */
  color: #bfdbfe;
}

.btn-contact--save {
  background: #1e40af;
  /* Slightly lighter blue */
  color: #dbeafe;
}

.btn-contact--sms {
  background: #1d4ed8;
  color: #fff;
}

/* Section Titles */
.section-title {
  font-size: 1.1rem;
  color: var(--color-accent);
  margin: 0 0 1rem;
  padding-left: 0.5rem;
  border-left: 3px solid var(--color-accent);
  line-height: 1.2;
}

.board-section {
  margin-bottom: 3rem;
}

/* News List */
.news-list {
  display: grid;
  gap: 0.75rem;
}

.news-item {
  display: flex;
  align-items: center;
  /* Check vertically aligned */
  gap: 0.5rem;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
}

.news-item__date {
  color: #64748b;
  /* Slate 500 */
  font-size: 0.85rem;
  flex-shrink: 0;
}

.news-item__title {
  color: #cbd5e1;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.gallery-item {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  display: block;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.gallery-item__placeholder {
  width: 100%;
  height: 100%;
  background: #1e293b;
  display: grid;
  place-items: center;
  color: #475569;
}

.gallery-item__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 2rem 0.75rem 0.75rem;
  display: grid;
  gap: 0.25rem;
}

.gallery-item__tag {
  color: #fbbf24;
  /* Amber 400 */
  font-size: 0.75rem;
  font-weight: 600;
}

.gallery-item__text {
  font-size: 0.9rem;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Video Grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.video-item {
  background: #0f172a;
  border-radius: 0.75rem;
  overflow: hidden;
}

.video-item__frame {
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-item__frame iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.video-item__caption {
  padding: 0.75rem;
}

.gallery-item__text {
  display: block;
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }

  .gallery-grid,
  .video-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}