* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    color: #333;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Breadcrumb */
.breadcrumb {
    background-color: #f8f9fa;
    padding: 15px 0;
    font-size: 14px;
    color: #666;
}

.breadcrumb-home {
    color: #333;
}

.breadcrumb-separator {
    margin: 0 10px;
    color: #999;
}

.breadcrumb-item {
    color: #666;
}

.breadcrumb-item.active {
    color: #333;
    font-weight: 500;
}

/* Page Banner */
.page-banner {
    background-image: url('/image/category_banner.png');
    background-size: contain;
    background-position: center top;
    background-repeat: no-repeat;
    position: relative;
    text-align: center;
    width: 100%;
    aspect-ratio: 4.13 / 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 50px 20px 40px;
    min-height: 300px;
}

.page-title {
    font-size: 48px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.page-banner .breadcrumb {
    background-color: transparent;
    padding: 0;
    font-size: 13px;
    color: #666;
    margin-bottom: 40px;
}

/* Tab Navigation */
.tab-navigation {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
}

.tab-menu {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    list-style: none;
    margin: 0;
    padding: 0;
}

.tab-item {
    text-align: center;
}

.tab-item a {
    display: block;
    padding: 20px 0;
    text-decoration: none;
    color: #fff;
    background-color: #333;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.tab-item.active a {
    background-color: #4A90E2;
}

.tab-item:not(.active) a:hover {
    background-color: #4d4d4d;
}

/* Organization Section */
.organization-section {
    padding: 80px 0;
    background-color: #fff;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: #4A90E2;
}

/* Organization Chart */
.org-chart {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

/* Logo */
.org-logo {
    margin-bottom: 36px;
}

.org-logo img {
    width: 100px;
    height: auto;
    margin: 0 auto;
    display: block;
    object-fit: contain;
}

/* Director */
.org-director {
    position: relative;
    margin-bottom: 0;
}

.director-icon {
    margin: 0 auto 16px;
}

.director-icon img {
    width: 180px;
    height: 180px;
    margin: 0 auto;
    display: block;
    object-fit: cover;
    border-radius: 50%;
}

.director-title {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin-bottom: 16px;
}

.director-line {
    width: 1px;
    height: 36px;
    background-color: #4A63D4;
    margin: 0 auto;
    position: relative;
}

.director-line::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #4A63D4;
}

/* Departments */
.departments {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    position: relative;
}

.department {
    position: relative;
    padding-top: 24px;
}

/* 각 셀에서 수평선 그리기 - 인접한 셀과 맞닿아 하나의 연속선이 됨 */
.department::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #4A63D4;
}

/* 왼쪽 셀은 중앙에서 오른쪽까지만 */
.department:first-child::before {
    left: 50%;
}

/* 오른쪽 셀은 왼쪽에서 중앙까지만 */
.department:last-child::before {
    right: 50%;
}

/* 수직선: 수평선에서 아래로 */
.department::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 24px;
    background-color: #4A63D4;
}

.dept-box {
    padding: 0 20px;
    text-align: center;
}

.dept-box h4 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.dept-box p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 1100px) {
    .page-title {
        font-size: 40px;
    }

    .page-banner {
        padding: 30px 20px 40px;
    }
}

@media (max-width: 1024px) {
    .tab-menu {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .page-title {
        font-size: 38px;
    }

    .page-banner {
        padding: 25px 20px 40px;
    }
}

@media (max-width: 810px) {
    .page-title {
        font-size: 35px;
    }

    .page-banner {
        padding: 22px 20px 40px;
    }
}

@media (max-width: 768px) {
    .page-banner {
        background-image: url('/image/m_category_banner.png');
        aspect-ratio: 4.13 / 1;
        min-height: 200px;
        padding: 30px 15px 30px;
    }

    .page-title {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .page-banner .breadcrumb {
        font-size: 12px;
        margin-bottom: 30px;
    }

    .banner-illustration img {
        max-height: 180px;
    }

    .tab-navigation {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .tab-navigation::-webkit-scrollbar {
        display: none;
    }

    .tab-menu {
        display: flex;
        gap: 0;
        justify-content: center;
    }

    .tab-item {
        flex-shrink: 0;
    }

    .tab-item a {
        white-space: nowrap;
        padding: 15px 18px;
        font-size: 14px;
        color: #333;
        background-color: #fff;
        border-bottom: 3px solid transparent;
    }

    .tab-item.active a {
        color: #4A90E2;
        background-color: #fff;
        border-bottom: 3px solid #4A90E2;
    }

    .tab-item:not(.active) a:hover {
        background-color: #f8f9fa;
        color: #333;
    }

    .tab-item:last-child a {
        border-bottom: 3px solid transparent;
    }

    .section-title {
        font-size: 28px;
    }

    .departments {
        grid-template-columns: repeat(3, 1fr);
        gap: 0;
        padding-top: 0;
    }

    .dept-box h4 {
        font-size: 14px;
    }

    .dept-box p {
        font-size: 12px;
    }

    .dept-box {
        padding: 0 16px;
    }

    .director-icon img {
        width: 140px;
        height: 140px;
    }
}

/* Extra small screens (Z Fold outer screen, etc.) */
@media (max-width: 350px) {
    .container {
        padding: 0 15px;
    }

    .breadcrumb {
        font-size: 12px;
        padding: 12px 0;
    }

    .breadcrumb-separator {
        margin: 0 6px;
    }

    .page-banner {
        min-height: 150px;
        padding: 25px 10px 20px;
    }

    .page-title {
        font-size: 28px;
        margin-bottom: 10px;
    }

    .page-banner .breadcrumb {
        font-size: 11px;
        margin-bottom: 20px;
    }

    .tab-item a {
        padding: 15px 12px;
        font-size: 14px;
    }

    .organization-section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 40px;
        padding-bottom: 15px;
    }

    .section-title::after {
        width: 45px;
        height: 3px;
    }

    .chart-container {
        padding: 20px 10px;
    }

    .org-image {
        padding: 15px;
    }

    .org-image img {
        max-height: 250px;
    }

    .departments {
        gap: 40px;
    }

    .director-icon {
        margin-bottom: 15px;
    }

    .director-icon img {
        width: 100px;
        height: 100px;
    }

    .director-name {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .department-title {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .staff-list li {
        padding: 10px 0;
        font-size: 13px;
    }

    .role {
        min-width: 70px;
        font-size: 12px;
    }

    .name {
        font-size: 13px;
    }
}
