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

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

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

/* 조직도 전체 컨테이너 */
.organization-chart {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 20px 0;
}

/* 조직도 레벨별 스타일 */
.org-level {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 90%;
}

.org-level.level-2  {
    width: 27% !important;
}

/* 기본 조직 박스 스타일 */
.org-box {
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    min-width: 120px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

/* 주요 직책 박스 (법인, 소장, 사무국장) */
.org-box.primary {
    background-color: #7CB342;
    color: white;
    font-size: 18px;
    min-width: 140px;
}

/* 부가 조직 박스 (운영위원회) */
.org-box.secondary {
    background-color: #81C784;
    color: white;
    font-size: 14px;
    min-width: 120px;
}

/* 팀 박스 */
.org-box.team {
    background-color: #26C6DA;
    color: white;
    font-size: 16px;
    min-width: 130px;
}

/* 호버 효과 */
.org-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* 연결선 스타일 */
.org-connector {
    width: 2px;
    height: 40px;
    background-color: #666;
    margin: -5px auto;
}

.org-connector.multi {
    /*height: 20px;*/
    position: relative;
    margin: -5px auto 0px;
}

.org-connector.multi::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 2px;
    background-color: #666;
}

/* 팀 연결선 컨테이너 */
.team-connectors {
    position: absolute;
    bottom: -38px;
    width: 934px;
    /*left: 50%;*/
    transform: translateX(-50%);
    height: 40px;
}

.team-vertical-line {
    position: absolute;
    width: 2px;
    height: 40px;
    background-color: #666;
    top: 0;
}

/* 운영위원회 측면 배치 */
.org-side-box {
    position: absolute;
    right: -120px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
}

.side-connector.horizontal {
    width: 50px;
    height: 2px;
    background-color: #666;
    margin-right: 10px;
}

/* 4개 팀 컨테이너 */
.teams-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    width: 100%;
    max-width: 1000px;
    margin-top: 33px;
    position: relative;
}

/* 팀 박스 컨테이너 */
.team-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    position: relative;
}

/* 팀 세부사항 */
.team-details {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.team-details ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.team-details li {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 5px;
    position: relative;
    padding-left: 12px;
}

.team-details li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: #26C6DA;
    font-weight: bold;
}

.team-details li:last-child {
    margin-bottom: 0;
}

/* 애니메이션 지연 효과 */
.level-1 .org-box { animation-delay: 0.2s; }
.level-2 .org-box { animation-delay: 0.4s; }
.org-side-box .org-box { animation-delay: 0.6s; }
.level-3 .org-box { animation-delay: 0.8s; }
.team-box:nth-child(1) .org-box { animation-delay: 1.0s; }
.team-box:nth-child(2) .org-box { animation-delay: 1.2s; }
.team-box:nth-child(3) .org-box { animation-delay: 1.4s; }
.team-box:nth-child(4) .org-box { animation-delay: 1.6s; }

.team-box:nth-child(1) .team-details { animation-delay: 1.8s; }
.team-box:nth-child(2) .team-details { animation-delay: 2.0s; }
.team-box:nth-child(3) .team-details { animation-delay: 2.2s; }
.team-box:nth-child(4) .team-details { animation-delay: 2.4s; }

.team-details {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

/* 키프레임 애니메이션 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 반응형 디자인 */
@media (max-width: 1024px) {
    .obs-container {
        width: 95%;
        padding: 30px;
    }

    .teams-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .org-side-box {
        right: -100px;
    }

    .side-connector.horizontal {
        width: 40px;
    }

    .org-connector.multi::after {
        width: 400px;
    }

    .team-connectors {
        width: 400px;
    }
}

@media (max-width: 768px) {
    .obs-container {
        width: 100%;
        padding: 25px;
    }

    .org-level {
        width: 100% !important;
    }

    .org-level.level-2 {
        width: 100% !important;
    }

    .teams-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .org-side-box {
        position: static;
        transform: none;
        justify-content: center;
    }

    .side-connector.horizontal {
        display: none;
    }

    /* 모든 연결선 숨기기 */
    .org-connector {
        display: none;
    }

    .org-connector.multi::after {
        display: none;
    }

    .team-connectors {
        display: none;
    }

    .team-vertical-line {
        display: none;
    }

    .org-box {
        padding: 12px 20px;
        font-size: 14px;
        min-width: 100px;
    }

    .org-box.primary {
        font-size: 16px;
        min-width: 120px;
    }

    .team-details li {
        font-size: 12px;
    }

    /* 조직도 간격 조정 */
    .organization-chart {
        gap: 15px;
    }
}

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

    .org-box {
        padding: 10px 15px;
        font-size: 13px;
        min-width: 90px;
    }

    .org-box.primary {
        font-size: 15px;
        min-width: 110px;
    }

    .org-box.secondary {
        font-size: 13px;
        min-width: 100px;
    }

    .team-details {
        padding: 12px;
    }

    .team-details li {
        font-size: 11px;
    }

    /* 조직도 간격 더 줄이기 */
    .organization-chart {
        gap: 10px;
        padding: 15px 0;
    }

    .teams-container {
        margin-top: 20px;
        gap: 15px;
    }

    .team-box {
        gap: 10px;
    }
}