/* ===== 서브 페이지 공통 (협회소개·인사말 등) ===== */
/* Figma 팔레트: 다크블루 #0A1C3C, 흰색 #ffffff, 라이트그레이 #F5F5F5, 포인트 골드 #C9A86A */

/* 히어로: Figma 배경 이미지 + 다크블루 폴백, 白凡, 서브탭, 슬로건 */
.page-sub .intro-hero {
    position: relative;
    z-index: 2;
    background-color: var(--main, #0A1C3C);
    background-image: url("../img/sub/intro-hero-bg.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    min-height: 520px;
    padding: 0 20px 64px;
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

/* Figma 스타일: 白凡 타이틀 - 큰 한자, 입체감 */
.page-sub .intro-hero .hero-title {
    font-family: "Noto Serif KR", "Noto Serif SC", serif;
    font-size: 120px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 0 0 40px;
    position: relative;
    z-index: 1;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

/* Figma 스타일: 서브탭 - 중분류(협회소개) + 소분류(인사말 등) 드롭다운 */
.page-sub .intro-hero .sub-nav {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 10;
}

.page-sub .intro-hero .sub-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 0;
    backdrop-filter: blur(10px);
}

.page-sub .intro-hero .sub-nav-item {
    position: relative;
}

/* 중분류: 협회소개 (첫 번째) */
.page-sub .intro-hero .sub-nav-item--category {
    display: flex;
    align-items: center;
}

.page-sub .intro-hero .sub-nav-category {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    font-size: 24px;
    font-weight: 500;
    letter-spacing: -0.01em;
    border: 1px solid rgba(255,255,255,0.5);
    border-right: none;
    background: rgba(255,255,255,0.6);
    color: #0A1C3C;
    backdrop-filter: blur(5px);
    cursor: default;
}

/* 소분류: 인사말 등 트리거 (두 번째, 드롭다운) */
.page-sub .intro-hero .sub-nav-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 24px;
    font-weight: 500;
    letter-spacing: -0.01em;
    border: 1px solid rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.6);
    transition: 0.3s all ease;
    cursor: pointer;
    text-decoration: none;
}

.page-sub .intro-hero .sub-nav-trigger:hover {
    opacity: 0.9;
}

.page-sub .intro-hero .sub-nav-trigger .sub-nav-arrow {
    transition: transform 0.3s ease;
}

.page-sub .intro-hero .sub-nav-item.open .sub-nav-trigger .sub-nav-arrow {
    transform: rotate(180deg);
}

/* 드롭다운 항목이 1개 이하일 때 비활성화 */
.page-sub .intro-hero .sub-nav-item:not(:has(.sub-nav-dropDown li:nth-child(2))) .sub-nav-arrow {
    display: none;
}
.page-sub .intro-hero .sub-nav-item:not(:has(.sub-nav-dropDown li:nth-child(2))) .sub-nav-trigger {
    cursor: default;
}

/* 소분류 드롭다운 패널 */
.page-sub .intro-hero .sub-nav-dropDown {
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 100%;
    margin-top: 8px;
    min-width: 180px;
    background: rgba(255,255,255,0.98);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease, max-height 0.3s ease;
    z-index: 9999;
}

.page-sub .intro-hero .sub-nav-item.open .sub-nav-dropDown {
    opacity: 1;
    visibility: visible;
    max-height: 320px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

/* 드롭다운 열렸을 때: content 섹션보다 위에 보이도록 hero 상위로 + overflow 해제 */
.page-sub .intro-hero:has(.sub-nav-item.open) {
    z-index: 10;
    overflow: visible;
}

.page-sub .intro-hero .sub-nav-dropDown li {
    display: block;
    width: 100%;
}

.page-sub .intro-hero .sub-nav-dropDown a {
    display: block;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 500;
    color: #0D132D;
    transition: background 0.2s ease, color 0.2s ease;
    border: none;
    background: transparent;
    text-align: left;
    text-decoration: none;
    width: 100%;
}

.page-sub .intro-hero .sub-nav-dropDown a:hover {
    background: rgba(13, 19, 45, 0.06);
}

.page-sub .intro-hero .sub-nav-dropDown a.on {
    color: #0D132D;
    background: rgba(13, 19, 45, 0.08);
    font-weight: 600;
}

/* Figma 스타일: 슬로건 문구 (PC: sub-nav 바로 아래, 간격 없음) */
.page-sub .intro-hero .hero-quote {
    font-family: "Noto Serif KR", serif;
    font-size: 40px;
    font-weight: 400;
    line-height: 1.75;
    letter-spacing: -0.01em;
    color: rgba(255,255,255,0.95);
    margin: 0 auto;
    position: static;
    z-index: 1;
}

/* 본문 공통: 흰 배경, 패딩, inner-content 기본 (히어로·드롭다운보다 아래 레이어) */
.page-sub .intro-content {
    position: relative;
    z-index: 1;
    background: #fff;
    padding: clamp(48px, 8vw, 80px) 20px clamp(64px, 10vw, 100px);
}

.page-sub .intro-content .inner-content {
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    /* 모바일: 스크롤 시 본문이 히어로에 겹쳐 보이지 않도록 본문을 위 레이어로 */
    .page-sub .intro-hero {
        z-index: 1;
        min-height: auto;
        padding: 300px 20px 100px;
        justify-content: center;
        background-image: url("../img/sub/intro-hero-bg-m.webp");
    }
    .page-sub .intro-hero:has(.sub-nav-item.open) {
        z-index: 10;
    }
    .page-sub .intro-content {
        z-index: 2;
    }
    .page-sub .intro-hero .hero-title {
        font-size: 64px;
        margin-bottom: 24px;
    }
    .page-sub .intro-hero .sub-nav {
        margin-bottom: 0;
    }
    .page-sub .intro-hero .sub-nav-item--category {
        align-items: stretch;
    }
    .page-sub .intro-hero .sub-nav-category {
        padding: 10px 15px;
        font-size: 16px;
        height: 100%;
        box-sizing: border-box;
    }
    .page-sub .intro-hero .sub-nav-trigger {
        padding: 10px 15px;
        font-size: 16px;
        height: 100%;
        box-sizing: border-box;
    }
    .page-sub .intro-hero .sub-nav-dropDown {
        min-width: 180px;
        left: 50%;
        transform: translateX(-50%);
        top: auto;
        bottom: 100%;
        margin-top: 0;
        margin-bottom: 8px;
    }
    .page-sub .intro-hero .sub-nav-dropDown a {
        padding: 10px 16px;
        font-size: 14px;
    }
    .page-sub .intro-hero .hero-quote {
        position: absolute;
        font-size: 15px;
        bottom: 32px;
        width: 90%;
    }
}
