/* ==================== 페이지 레이아웃 CSS ==================== */

/* 페이지 헤더 (히어로 섹션) */
.page-header {
    background: linear-gradient(135deg, #9480c5 0%, #b9c9da 100%);
    color: white;
    padding: 80px 0 60px 0;
    text-align: left;
    margin-top: 0; /* 상단 여백 제거 */
}

.page-header h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    color: white;
}

.page-header p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0;
}

/* 페이지 레이아웃 컨테이너 */
.page-layout {
    padding: 60px 0;
    background: #f8f9fa;
    min-height: calc(100vh - 400px);
}

.layout-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* ==================== 왼쪽 사이드바 ==================== */
.sidebar {
    width: 260px;
    flex-shrink: 0;
}

.sidebar-nav {
    background: white;
    border-radius: 12px;
    padding: 24px 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    position: -webkit-sticky;
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    z-index: 10;
}

.sidebar-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
    padding: 0 12px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #64748b;
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 4px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s;
}

.sidebar-nav a:hover {
    background: #f1f5f9;
    color: #9480c5;
    transform: translateX(4px);
}

.sidebar-nav a.active {
    background: linear-gradient(135deg, #f8f4ff 0%, #f0ebff 100%);
    color: #9480c5;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(148, 128, 197, 0.15);
}

.sidebar-nav a i {
    margin-right: 10px;
    font-size: 14px;
    width: 20px;
    text-align: center;
}

/* ==================== 메인 콘텐츠 ==================== */
.main-content {
    flex: 1;
    background: white;
    border-radius: 16px;
    padding: 48px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.content-section {
    margin-bottom: 60px;
}

.content-section:last-child {
    margin-bottom: 0;
}

.content-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e2e8f0;
}

.content-section h3 {
    font-size: 22px;
    font-weight: 600;
    color: #334155;
    margin-top: 32px;
    margin-bottom: 16px;
}

.content-section p {
    font-size: 16px;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 16px;
}

/* ==================== 드롭다운 네비게이션 ==================== */
/* 드롭다운 스타일은 style.css에서 관리 */

/* ==================== 반응형 디자인 ==================== */
@media (max-width: 968px) {
    .page-header {
        padding: 60px 20px 40px 20px;
    }

    .page-header h1 {
        font-size: 32px;
    }

    .page-header p {
        font-size: 16px;
    }

    .page-layout {
        padding: 40px 20px;
    }

    .layout-wrapper {
        flex-direction: column;
        gap: 24px;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .sidebar-nav {
        position: static;
        display: flex;
        overflow-x: auto;
        gap: 8px;
        padding: 16px;
        -webkit-overflow-scrolling: touch;
    }

    .sidebar-title {
        display: none;
    }
    
    .sidebar-nav a {
        white-space: nowrap;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .sidebar-nav a:hover {
        transform: translateX(0);
    }

    .main-content {
        padding: 32px 24px;
    }

    .content-section h2 {
        font-size: 24px;
    }

    /* 드롭다운 메뉴 모바일 */
    .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        border-radius: 0;
        padding: 8px 0;
        margin-top: 0;
        background: #f8f9fa;
    }

    .nav-item.has-dropdown.active .dropdown-menu {
        display: block;
    }
}

@media (max-width: 640px) {
    .page-header h1 {
        font-size: 28px;
    }

    .main-content {
        padding: 24px 20px;
    }

    .content-section h2 {
        font-size: 22px;
    }

    .content-section h3 {
        font-size: 18px;
    }
}

/* ==================== 유틸리티 클래스 ==================== */
.text-center {
    text-align: center;
}

.mt-32 {
    margin-top: 32px;
}

.mb-32 {
    margin-bottom: 32px;
}

.highlight-box {
    background: #f8f4ff;
    border-left: 4px solid #9480c5;
    padding: 20px 24px;
    border-radius: 8px;
    margin: 24px 0;
}

.highlight-box p {
    margin: 0;
    color: #5b21b6;
}
