/* ========================================
   Page Hero Banner + Breadcrumb (서브페이지 공통)
   ======================================== */

@keyframes heroZoomOut {
  from {
    transform: scale(1.15);
  }
  to {
    transform: scale(1);
  }
}

/* Page Hero Banner */
.page-hero {
  position: relative;
  width: 100%;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroZoomOut 3s ease-out forwards;
}

.page-hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.45);
}

.page-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
  text-align: center;
  padding: var(--space-4xl) var(--space-lg);
}

/* Hero Inline Breadcrumb */
.page-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.page-hero__breadcrumb-link {
  display: flex;
  align-items: center;
}

.page-hero__breadcrumb-home {
  width: 1.125rem;
  height: 1.125rem;
  filter: brightness(0) invert(1);
  opacity: 0.7;
}

.page-hero__breadcrumb-sep {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1;
}

.page-hero__breadcrumb-text {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: -0.04em;
  line-height: 1;
}

.page-hero__breadcrumb-text--current {
  color: var(--color-white);
  font-weight: 600;
}

.page-hero__title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: -0.135rem;
  line-height: 1.3;
}

.page-hero__subtitle {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-border);
  letter-spacing: -0.045rem;
  line-height: 1.4;
}

/* Breadcrumb Bar (inside hero) */
.breadcrumb {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  min-height: 3.25rem;
  z-index: 10;
}

.breadcrumb__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  height: 100%;
  padding: 0;
}

/* 3-depth: 3단계 항목 별도 행 (모바일) */
.breadcrumb__inner > :nth-child(4) {
  flex: 0 0 100%;
  border-left: none;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.breadcrumb__home {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  flex-shrink: 0;
}

.breadcrumb__home img {
  width: 1.375rem;
  height: 1.375rem;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.breadcrumb__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.25rem;
  padding: 0 0.9375rem;
  flex: 1;
  min-width: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.breadcrumb__item:last-child {
  border-right: none;
}

.breadcrumb__item-text {
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: -0.05rem;
  line-height: 1.7;
}

.breadcrumb__item-icon {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
  filter: brightness(0) invert(1);
  opacity: 0.7;
}

/* Breadcrumb Button (드롭다운 트리거) */
.breadcrumb__item-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

.breadcrumb__item--has-dropdown {
  position: relative;
  cursor: pointer;
}

.breadcrumb__item--has-dropdown.is-open .breadcrumb__item-icon {
  transform: rotate(180deg);
}

/* Breadcrumb Dropdown */
.breadcrumb__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 100%;
  background-color: var(--color-primary);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  z-index: 20;
  padding: var(--space-sm) 0;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.breadcrumb__item--has-dropdown.is-open .breadcrumb__dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.breadcrumb__dropdown-link {
  display: block;
  padding: var(--space-sm) var(--space-lg);
  font-size: 0.9375rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: -0.02rem;
  line-height: 1.6;
  white-space: nowrap;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.breadcrumb__dropdown-link:hover {
  color: var(--color-white);
  background-color: rgba(255, 255, 255, 0.15);
}

.breadcrumb__dropdown-link.is-active {
  color: var(--color-white);
  font-weight: 600;
}

/* Tablet */
@media (min-width: 768px) {
  .page-hero {
    min-height: 400px;
  }

  .page-hero__title {
    font-size: 2.75rem;
  }

  .page-hero__subtitle {
    font-size: 1.25rem;
  }

  .breadcrumb__inner {
    flex-wrap: nowrap;
    padding: 0 var(--space-lg);
  }

  .breadcrumb__inner > :nth-child(4) {
    flex: none;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    border-top: none;
  }

  .breadcrumb__item {
    flex: none;
    min-width: 12rem;
  }

  .breadcrumb__item:last-child {
    border-right: 1px solid rgba(255, 255, 255, 0.15);
  }

  .breadcrumb__item-text {
    font-size: 1rem;
    letter-spacing: -0.03rem;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .page-hero {
    min-height: 480px;
  }

  .page-hero__title {
    font-size: var(--text-hero);
    letter-spacing: -0.225rem;
  }

  .page-hero__subtitle {
    font-size: 1.4rem;
    letter-spacing: -0.04rem;
  }

  .breadcrumb__item {
    flex: none;
    min-width: 14rem;
  }
}
