/* obs.css - 조직도 페이지 전용 스타일 */

/* ===== 조직도 헤더 배너 ===== */
.obs-header-banner {
    text-align: center;
    padding-bottom: 30px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
}

.obs-header-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.obs-header-logo-box {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.obs-header-logo-img {
    height: 42px;
    width: auto;
}

.obs-header-logo-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.obs-header-org-name {
    font-size: 15px;
    font-weight: 700;
    color: #555;
    font-family: 'Noto Sans KR', sans-serif;
    letter-spacing: -0.3px;
}

.obs-header-org-eng {
    font-size: 11px;
    font-weight: 400;
    color: #999;
    margin-top: 1px;
}

.obs-header-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-main, #333);
    margin: 18px 0 0;
    letter-spacing: 8px;
    font-family: 'Noto Sans KR', sans-serif;
    position: relative;
    display: inline-block;
}

.obs-header-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background-color: var(--main-color, #ff7f2a);
    margin: 10px auto 0;
    border-radius: 2px;
}

.obs-header-date {
    font-size: 14px;
    font-weight: 500;
    color: #999;
    margin: 12px 0 0;
    letter-spacing: 1px;
}

/* ===== 반응형 - 헤더 배너 ===== */
@media (max-width: 768px) {
    .obs-header-banner {
        padding-bottom: 22px;
        margin-bottom: 22px;
    }

    .obs-header-logo-img {
        height: 34px;
    }

    .obs-header-org-name {
        font-size: 13px;
    }

    .obs-header-org-eng {
        font-size: 10px;
    }

    .obs-header-title {
        font-size: 24px;
        letter-spacing: 6px;
    }
}

@media (max-width: 480px) {
    .obs-header-logo-box {
        flex-direction: column;
        text-align: center;
    }

    .obs-header-logo-text {
        text-align: center;
    }

    .obs-header-org-name {
        font-size: 12px;
    }

    .obs-header-title {
        font-size: 22px;
        letter-spacing: 5px;
    }

    .obs-header-date {
        font-size: 13px;
    }
}

.obs-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

.obs-container {
    background-color: #fff;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 50px 40px;
    width: 85%;
    margin: 0 auto;
}

/* 조직도 전체 */
.organization-chart {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 수직 연결선 */
.v-line {
    width: 2px;
    height: 60px;
    background-color: #555;
}

.v-line-short {
    width: 2px;
    height: 50px;
    background-color: #555;
}

/* 조직 박스 공통 */
.org-box {
    text-align: center;
    font-weight: 700;
    font-family: 'Noto Sans KR', sans-serif;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: default;
}

.org-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

/* 행 */
.org-row {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 총회 */
.top-box {
    background-color: var(--main-color, #ff7f2a);
    color: #fff;
    font-size: 22px;
    padding: 18px 60px;
    box-shadow: 0 4px 12px rgba(255, 127, 42, 0.3);
}

/* 이사회 */
.primary-box {
    background-color: #fff;
    color: var(--text-main, #333);
    font-size: 18px;
    padding: 14px 50px;
    border: 2px solid #555;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

/* ===== 중간 섹션: 중앙 수직선이 관통 ===== */
.middle-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 700px;
}

/* 중앙 수직선 (이사회 아래~사무국 위까지 관통) */
.center-spine {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: #555;
    z-index: 0;
}

/* ===== 고문/감사 행: 3열 구조 ===== */
.side-row {
    display: flex;
    width: 100%;
    padding: 50px 0;
    position: relative;
    z-index: 1;
}

.side-col {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.side-col-center {
    /* 가운데 열 - 비워둠 (수직선이 관통) */
}

/* 고문/감사 수평 연결선: 1열 중앙 ~ 3열 중앙 */
.h-line-side {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 16.67%;
    right: 16.67%;
    height: 2px;
    background-color: #555;
    z-index: 0;
}

.side-box {
    background-color: #fff;
    color: var(--text-main, #333);
    font-size: 16px;
    padding: 12px 30px;
    border: 2px solid #888;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 1;
}

.side-box .sub-text {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: #888;
    margin-top: 4px;
    line-height: 1.4;
}

/* ===== 위원회/사무국/지역지부 행 ===== */
.bottom-row {
    display: flex;
    justify-content: center;
    width: 100%;
    position: relative;
    z-index: 1;
    padding-top: 10px;
}

.h-line-spread {
    position: absolute;
    top: 10px;
    left: 16.67%;
    right: 16.67%;
    height: 2px;
    background-color: #555;
}

.bottom-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.bottom-box {
    background-color: #fff;
    color: var(--text-main, #333);
    font-size: 16px;
    padding: 12px 28px;
    border: 2px solid #888;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.accent-box {
    background-color: var(--main-color, #ff7f2a);
    color: #fff;
    border-color: var(--main-color, #ff7f2a);
    box-shadow: 0 4px 12px rgba(255, 127, 42, 0.25);
}

/* ===== 지역지부 하위 ===== */
.row-branches {
    margin-top: 25px;
}

.branches-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 650px;
}

.branch-tag {
    background-color: #f5f5f5;
    color: var(--text-sub1, #555);
    font-size: 14px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 20px;
    border: 1px solid #ddd;
    font-family: 'Noto Sans KR', sans-serif;
    transition: all 0.3s;
}

.branch-tag:hover {
    background-color: var(--main-color, #ff7f2a);
    color: #fff;
    border-color: var(--main-color, #ff7f2a);
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(255, 127, 42, 0.25);
}

/* ===== 반응형 ===== */
@media (max-width: 1024px) {
    .obs-container {
        width: 90%;
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    .obs-wrapper {
        padding: 30px 15px 50px;
    }

    .obs-container {
        width: 95%;
        padding: 30px 20px;
    }

    .top-box {
        font-size: 20px;
        padding: 15px 45px;
    }

    .primary-box {
        font-size: 16px;
        padding: 12px 40px;
    }

    .side-box {
        font-size: 14px;
        padding: 10px 20px;
    }

    .bottom-box {
        font-size: 14px;
        padding: 10px 16px;
    }

    .v-line {
        height: 40px;
    }

    .v-line-short {
        height: 35px;
    }

    .side-row {
        padding: 35px 0;
    }

    .branches-container {
        gap: 8px;
    }

    .branch-tag {
        font-size: 13px;
        padding: 6px 14px;
    }
}

@media (max-width: 480px) {
    .obs-container {
        padding: 25px 15px;
    }

    .top-box {
        font-size: 18px;
        padding: 12px 35px;
    }

    .primary-box {
        font-size: 15px;
        padding: 10px 30px;
    }

    /* 세로 배치 */
    .center-spine {
        display: none;
    }

    .v-line {
        height: 20px;
    }

    .side-row {
        flex-direction: column;
        gap: 15px;
        padding: 20px 0;
    }

    .h-line-side {
        display: none;
    }

    .bottom-row {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .h-line-spread {
        display: none;
    }

    .v-line-short {
        display: none;
    }

    .bottom-box {
        font-size: 14px;
        padding: 10px 30px;
    }

    .side-box {
        font-size: 14px;
        padding: 10px 25px;
    }

    .branch-tag {
        font-size: 12px;
        padding: 5px 12px;
    }
}