/* 조직소개 페이지 스타일 */
.org-container {
    max-width: 1460px;
    margin: 0 auto;
    padding: 0px 20px;
    font-size: 18px !important;
}

.org-header {
    text-align: center;
    margin-bottom: 40px;
}

.org-header h2 {
    font-size: 2em;
    color: #333;
    margin-bottom: 20px;
}

.org-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.org-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.org-card:hover {
    transform: translateY(-5px);
}

.org-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.org-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.org-card-content {
    padding: 20px;
}

.org-card-title {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.org-card-info {
    margin-bottom: 15px;
}

.org-card-info p {
    margin: 5px 0;
    color: #666;
}

.org-card-contact {
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.org-card-contact p {
    margin: 5px 0;
    color: #666;
}

/* 검색 영역 스타일 */
.search-box {
    margin-top: 30px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.search-box select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-width: 120px;
}

.search-box input[type="text"] {
    padding: 8px;
    flex: 1;
    min-width: 200px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.search-box a {
    padding: 10px 20px;
    background-color: #4285f4;
    color: white;
    border-radius: 4px !important;
  }
  

.search-box button {
    padding: 8px 20px;
    background-color: #4285f4;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
}

.search-box button:hover {
    background-color: #3367d6;
}

/* 테이블 스타일 */
.org-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background: #fff;
}

.org-table th,
.org-table td {
    padding: 12px;
    text-align: center;
    border: 1px solid #ddd;
}

.org-table th {
    background-color: #fff;
    font-weight: bold;
    white-space: nowrap;
    text-align: center;
    border-bottom: 1px solid #000000;
}

.org-table tr:hover {
    background-color: #f5f5f5;
}

/* 페이지네이션 스타일 */
.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 20px;
}

.pagination a {
    padding: 8px 12px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    min-width: 40px;
    text-align: center;
}

.pagination a:hover {
    background-color: #f5f5f5;
}

.pagination .active {
    background-color: #4285f4;
    color: white;
    border-color: #4285f4;
}

/* 반응형 스타일 */
@media screen and (max-width: 768px) {
    .org-container {
        padding: 10px;
    }

    .search-box {
        flex-direction: column;
    }

    .search-box select,
    .search-box input[type="text"],
    .search-box button {
        width: 100%;
    }

    /* 테이블 반응형 처리 */
    .org-table {
        display: block;
        overflow-x: auto;
        /*white-space: nowrap;*/
        -webkit-overflow-scrolling: touch;
    }

    .org-table thead {
        display: none;
    }

    .org-table tbody tr {
        display: block;
        margin-bottom: 10px;
        border: 1px solid #ddd;
    }

    .org-table tbody td {
        display: block;
        text-align: right;
        padding: 10px;
		padding-left:40%;
		word-break:keep-all;
        position: relative;
        border: none;
        border-bottom: 1px solid #eee;
    }

    .org-table tbody td:last-child {
        border-bottom: none;
    }

    .org-table tbody td:before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        font-weight: bold;
    }

    .pagination {
        gap: 3px;
    }

    .pagination a {
        padding: 6px 10px;
        min-width: 35px;
    }
}

/* 다크모드 지원 */
@media (prefers-color-scheme: dark) {
    .org-table {
        background: #2d2d2d;
        color: #fff;
    }

    .org-table th {
        background-color: #3d3d3d;
    }

    .org-table td,
    .org-table th {
        border-color: #4d4d4d;
    }

    .org-table tr:hover {
        background-color: #3d3d3d;
    }

    .search-box select,
    .search-box input[type="text"] {
        background: #2d2d2d;
        color: #fff;
        border-color: #4d4d4d;
    }

    .pagination a {
        background: #2d2d2d;
        color: #fff;
        border-color: #4d4d4d;
    }

    .pagination a:hover {
        background: #3d3d3d;
    }
}

/* 관리자 페이지 스타일 */
.admin-controls {
    margin-bottom: 20px;
}

.admin-btn {
    display: inline-block;
    padding: 8px 15px;
    background: #4a90e2;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    margin-right: 10px;
}

.admin-btn:hover {
    background: #357abd;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.admin-table th,
.admin-table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}

.admin-table th {
    background: #f5f5f5;
}

.admin-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-group textarea {
    height: 150px;
}

.submit-btn {
    background: #4a90e2;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.submit-btn:hover {
    background: #357abd;
}

/* 상세 페이지 스타일 */
.org-detail-container {
    max-width: 1460px;
    margin: 0 auto;
    padding: 0px 20px;
    font-size: 18px !important;
}

.org-detail-header {
    margin-bottom: 30px;
    border-bottom: 2px solid #4285f4;
    padding-bottom: 15px;
}

.org-detail-header h2 {
    font-size: 1.8em;
    margin-bottom: 10px;
    color: #333;
}

.org-detail-header p {
    color: #666;
    margin: 5px 0;
}

/* 새로운 프로필 섹션 스타일 */
.org-profile-section {
    display: flex;
    flex-direction: column;
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 30px;
}

.president-photo {
    display: flex;
    align-items: flex-end;
    margin-bottom: 20px;
    position: relative;
}

.president-photo img {
    width: 150px;
    height: 180px;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.president-info {
    position: static;
    margin-left: 20px;
}

.president-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.president-name {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 0;
    padding-bottom: 0;
}

.org-info-table {
    width: 100%;
}

.org-info-table table {
    width: 100%;
    border-collapse: collapse;
    border-top: 2px solid #333;
}

.org-info-table th, 
.org-info-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

.org-info-table th {
    width: 100px;
    background-color: #f8f9fa;
    font-weight: bold;
    color: #333;
}

.org-info-table td {
    color: #333;
}

/* 주요활동 섹션 스타일 */
.org-history-section {
    margin-bottom: 40px;
}

.org-history-section h3 {
    font-size: 1.2em;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #333;
    padding-bottom: 8px;
}

.history-content {
    line-height: 1.6;
    color: #333;
}

.history-content p {
    margin-bottom: 10px;
}

/* 기존 스타일 유지 */
.branch-list {
    margin-top: 30px;
}

.branch-list h3 {
    font-size: 1.2em;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #333;
    padding-bottom: 8px;
}

.branch-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 15px;
    margin-bottom: 15px;
    transition: transform 0.2s ease;
}

.branch-card:hover {
    transform: translateY(-3px);
}

.branch-card h4 {
    margin-bottom: 10px;
    color: #333;
}

.branch-card p {
    margin: 5px 0;
    color: #666;
}

.back-button {
    display: inline-block;
    margin-top: 20px;
    padding: 8px 15px;
    background-color: #09AEEA;
    border-radius: 4px;
    text-decoration: none;
    color: #fff !important;
    transition: background-color 0.3s ease;
}

.back-button:hover {
    background-color: #33b8ea;
}

/* 반응형 스타일 */
@media screen and (max-width: 768px) {
    .president-photo {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
    }
    
    .president-info {
        position: static;
        margin-left: 15px;
        margin-top: 0;
        text-align: left;
    }
    
    .org-info-table th {
        width: 80px;
    }
} 
} 