/* ============================================
   Sub Page Common CSS - 위드봄산부인과의원
   ============================================ */

/* ===== ELEMENTOR PAGE HEADER RESET ===== */
.page-header { display: none !important; }

/* ===== SUB HERO ===== */
.sub-hero {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: #2C342F;
    margin-top: var(--header-height);
}

.sub-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sub-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(44, 52, 47, 0.6);
}

.sub-hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.sub-hero-en {
    font-family: var(--font-futura);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: #DDBF9E;
    text-transform: uppercase;
}

.sub-hero-title {
    font-family: var(--font-serif);
    font-size: 48px;
    font-weight: 800;
    color: #fff;
    line-height: 48px;
}

/* ===== SUB NAV ===== */
.sub-nav {
    position: relative;
    width: 100%;
    height: clamp(100px, 7.55vw, 107px);
    margin-top: clamp(-26px, -2.6vw, -37px);
    background: transparent;
    border-bottom: 0;
    z-index: 10;
}

.sub-nav::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: url('/assets/imgs/sub_nav_wave.svg') center top / auto 100% no-repeat;
    pointer-events: none;
    z-index: 0;
}

.sub-nav-symbol {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 27px;
    height: 18px;
    background: transparent;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.sub-nav-symbol img {
    width: 27px;
    height: auto;
    display: block;
}

.sub-nav-inner {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 64px;
    height: 75px;
    width: min(952px, calc(100% - 120px));
    margin: 0 auto;
    padding-top: 32px;
    z-index: 1;
}

.sub-nav-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 75px;
    cursor: pointer;
}

.sub-nav-link {
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 400;
    color: #7A8B5A;
    line-height: 27px;
    white-space: nowrap;
    text-decoration: none;
    transition: color var(--transition);
}

.sub-nav-item.is-active .sub-nav-link {
    font-weight: 700;
    color: #2A4734;
}

.sub-nav-item.is-active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #2A4734;
    border-radius: 2px 2px 0 0;
}

.sub-nav-link:hover {
    color: #2A4734;
}

/* ===== SUB PAGE BODY ===== */
.sub-page {
    background: #F6F3E8;
    min-height: 100vh;
}

.sub-content {
    width: min(var(--container), calc(100% - 120px));
    margin: 0 auto;
    padding: 96px 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .sub-hero {
        height: 320px;
    }

    .sub-hero-title {
        font-size: 40px;
        line-height: 44px;
    }

    .sub-nav-symbol {
        top: 10px;
    }

    .sub-nav-inner {
        gap: 40px;
        height: 64px;
        padding-top: 28px;
    }

    .sub-nav-link {
        font-size: 16px;
    }

    .sub-nav-item {
        height: 64px;
    }

}

@media (max-width: 768px) {
    .sub-hero {
        height: 260px;
    }

    .sub-hero-title {
        font-size: 32px;
        line-height: 38px;
    }

    .sub-hero-en {
        font-size: 12px;
        letter-spacing: 0.1em;
    }

    .sub-nav {
        height: 80px;
        margin-top: -20px;
    }

    .sub-nav-symbol {
        top: 8px;
        width: 23px;
        height: 16px;
    }

    .sub-nav-symbol img {
        width: 23px;
    }

    .sub-nav-inner {
        gap: 0;
        height: 90px;
        justify-content: flex-start;
        overflow-x: auto;
        padding: 18px 18px 0;
        width: 100%;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        touch-action: pan-x;
        align-items: center;
    }

    .sub-nav-inner::-webkit-scrollbar {
        display: none;
    }

    .sub-nav-item {
        flex-shrink: 0;
        height: 50px;
        padding: 0 16px;
    }

    .sub-nav-link {
        font-size: 15px;
    }

    .sub-content {
        padding: 60px 0;
    }

}
