/* ═══════════════════════════════════════════════════
   SG 서브페이지 공용 히어로 — sg-subhero
   Miracell 스타일: 100vh, 배경이미지, 중앙 타이틀
══════════════════════════════════════════════════ */

.sg-subhero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* 폴백 그라디언트 (배경이미지 없을 때) */
    background: linear-gradient(135deg, #001a3d 0%, var(--subColor1) 40%, var(--mainColor) 100%);
    background-size: cover;
    background-position: center;
}

/* 배경이미지 있을 때 */
.sg-subhero.has-bg-img {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* 어두운 오버레이 */
.sg-subhero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 10, 30, 0.55) 0%,
        rgba(0, 20, 60, 0.45) 50%,
        rgba(0, 10, 30, 0.70) 100%
    );
    z-index: 1;
}

/* 텍스트 컨테이너 */
.sg-subhero__inner {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 24px;
    max-width: 800px;
    /* 헤더 높이만큼 위로 보정 */
    margin-top: -40px;
}

/* 영문 소제목 */
.sg-subhero__sub {
    font-family: var(--engType, 'Oswald', sans-serif);
    font-size: 0.82em;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-bottom: 18px;
    animation: sgSubheroFadeUp 0.9s ease both;
}

/* 메인 타이틀 */
.sg-subhero__title {
    font-size: clamp(2.8em, 6vw, 5.5em);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 20px;
    animation: sgSubheroFadeUp 0.9s 0.15s ease both;
}

/* 설명 */
.sg-subhero__desc {
    font-size: clamp(0.95em, 1.5vw, 1.1em);
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
    animation: sgSubheroFadeUp 0.9s 0.3s ease both;
}

/* 스크롤 인디케이터 */
.sg-subhero__scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: sgSubheroScrollFade 0.9s 0.5s ease both;
}
.sg-subhero__scroll span {
    font-family: var(--engType, 'Oswald', sans-serif);
    font-size: 0.72em;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
}
.sg-subhero__scroll-line {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}
.sg-subhero__scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    animation: sgScrollLine 1.8s ease-in-out infinite;
}

/* 진입 애니메이션 */

@keyframes sgSubheroScrollFade {
    from { opacity: 0; transform: translateX(-50%) translateY(28px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes sgSubheroFadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes sgScrollLine {
    0%   { top: -100%; }
    100% { top: 200%; }
}

/* ── 반응형 ── */
@media (max-width: 768px) {
    .sg-subhero { height: 100svh; min-height: 460px; }
    .sg-subhero__title { font-size: clamp(2.2em, 8vw, 3.2em); }
    .sg-subhero__scroll { bottom: 28px; }
}
@media (max-width: 480px) {
    .sg-subhero__title { font-size: 2em; }
    .sg-subhero__sub { letter-spacing: 4px; }
}
