/* ------------------------------------------------------ */
/* 12. 조직 및 임원 페이지 (탭 메뉴 스타일) */
/* ------------------------------------------------------ */

.tab-container {
    margin-top: 10px;
    text-align: center;
}

.tab-list {
    display: inline-flex;
}

.tab-button {
    background-color: #f7f7f7;
    border: 1px solid #ccc;
    padding: 5px 20px;
    cursor: pointer;
    font-size: 1.1em;
    color: #555;
    margin-right: 5px;
    border-radius: 6px;
    transition: background-color 0.2s, color 0.2s;
    width:150px;
}

/* 활성화된 탭 버튼 스타일 */
.tab-button.active {
    background-color: #0056b3;
    color: #fff; /* 메인 색상 적용 */
    border-color: #0056b3;
    z-index: 10;
}

/* 탭 콘텐츠 영역 */
.tab-content-area {
    padding: 20px;
    border-top: none; /* 탭 버튼과 연결되도록 상단선 제거 */
}

.tab-content {
    display: none; /* 기본적으로 모든 콘텐츠 숨김 */
}

.tab-content.active {
    display: block; /* 활성화된 콘텐츠만 보임 */
}

#article1, #article2, #article3, #article4, #article5, #article6 {
    text-align: left !important;
    font-size: 1.5em !important;
}

.dd{
    margin-top: -70px;
}
.dd p{
    text-align: right;
    font-size:0.9em;
    font-style: italic;
    margin-bottom: -50px;
}

#tb_th01, #tb_th03, #tb_th04, #tb_th05{
    font-size:0.9em;
    color:#333;
}
#tb_th01 thead, #tb_th03 thead, #tb_th04 thead, #tb_th05 thead {
    background:#eee;
    font-weight: bold;
}
#tb_th01 tbody tr:hover, #tb_th03 tbody tr:hover, #tb_th04 tbody tr:hover, #tb_th05 tbody tr:hover{
    background-color: #aed5ff;
}

.download-links {
    display: flex;
    justify-content: center; /* 버튼들을 가운데 정렬 */
    gap: 5px; /* 버튼 간 간격 */
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.download-btn {
    max-width: 170px;
    min-width: 150px;
    height:70px;
    text-decoration: none;
    padding: 10px 5px;
    border-radius: 5px;
    font-size: 0.95em;
    font-weight: bold;
    white-space: wrap; /* 버튼 텍스트가 줄바꿈되지 않도록 함 */
    transition: background-color 0.2s;
}

/* 💡 주 버튼 스타일 (투고신청서) */
.primary-btn {
    background-color: #007bff;
    color: white;
    border: 1px solid #007bff;
}

.primary-btn:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

/* 💡 보조 버튼 스타일 (샘플 논문) */
.secondary-btn {
    background-color: white;
    color: #007bff;
    border: 1px solid #007bff;
}

.secondary-btn:hover {
    background-color: #e6f7ff;
    color: #0056b3;
}


.tb_left{
    border:1px #222 solid;
    border-left-width: 0;
    height: 25px;
}
.tb_right{
    border:1px #222 solid;
    border-right-width: 0;
}

#tb_th02 thead th{
    border-bottom-width: 2px;
    border-top-width: 2px;
    background-color: #bbb;
}
#tb_th02 tbody tr:last-child td{
    border-bottom-width: 2px;
}

.br{
    margin-top: -10px;
}

.box-text-wrap{
    display: block;
}
/* ------------------------------------------------------ */
/* 모바일 반응형 스타일: 768px 이하 화면 수정 */
/* ------------------------------------------------------ */
@media (max-width: 768px) {
    
    /* 💡 탭 목록을 수직으로 쌓음 */
    .tab-list {
        border-bottom: none; /* 수직 정렬 시 하단선 제거 */
    }

    /* 💡 탭 버튼 너비를 100%로 확장 */
    .tab-button {
        
        margin-bottom: 5px; /* 버튼 사이에 간격 추가 */
        border: 1px solid #ccc !important; /* 모든 테두리 다시 보이게 함 */
        border-radius: 6px;
        text-align: center; /* 텍스트를 왼쪽 정렬 */
        font-size: 1em;
    }
    
    /* 💡 활성화된 버튼 스타일 */
    .tab-button.active {
        background-color: #0056b3; /* 활성화 버튼 배경색 변경 */
        color: white; 
        border-color: #0056b3 !important; 
        border-bottom: 1px solid #0056b3 !important; 
    }

    /* 💡 콘텐츠 영역 스타일 */
    .tab-content-area {
        padding: 3px;
    }
    
    /* 💡 테이블 반응형 스크롤 */
    .tab-content table {
        display: block; /* 테이블을 블록 요소로 변경 */
        width: 100%;
        overflow-x: auto; /* 내용이 넘칠 경우 가로 스크롤 가능 */
        white-space: nowrap;
    }

    .dd{
        margin-top: 0px;
    }

    /* 💡 모바일: 버튼을 수직으로 쌓고 너비를 100%로 확장 */
    .download-links {
        flex-direction: column;
        align-items: center; /* 가운데 정렬 유지 */
        gap: 10px;
    }
    
    .download-btn {
        max-width: 340px;
        width: 100%; /* 화면에 꽉 차도록 너비 설정 */
        height: 50px;
        text-align: center;
        padding: 12px;
    }

    .box-text-wrap{
        display: inline;
        margin-left: 5px;
    }
    
}