/**
 * 역대 회장 명단 스타일
 * Version: 1.0
 */

/* 헤더 */
.president-header {
    margin-bottom: 30px;
}

.president-title {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    text-align: center;
    padding-bottom: 15px;
}

/* 그리드 컨테이너 */
.memberGridWithImage {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 24px;
    padding: 5% 24px;
}

/* 멤버 카드 */
.memberGridWithImage > div.memberCell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    border: 1px solid #ccc;
    padding: 24px;
    box-shadow: 6px 6px 12px -12px rgba(0, 0, 0, 0.2);
    background-color: #fff;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.memberGridWithImage > div.memberCell:hover {
    transform: translateY(-4px);
    box-shadow: 6px 10px 20px -8px rgba(0, 0, 0, 0.3);
}

/* 사진 영역 */
.memberGridWithImage > div.memberCell .photo {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.memberGridWithImage > div.memberCell .photo img {
    aspect-ratio: 3/4;
    width: 220px;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

/* 이름 및 직책 */
.memberGridWithImage .memberName {
    font-size: 20px;
    padding: 12px 4px;
    display: flex;
    flex-direction: row;
    gap: 8px;
    border: none;;
    font-weight: bold;
    color: #333;
    line-height: 1.4;
}

.memberGridWithImage .memberTitle {
    display: block;
    color: #6d882c;
    font-size: 16px;
    margin-top: 4px;
}

/* 이력 영역 */
.memberGridWithImage .history {
    line-height: 1.5em;
    padding: 12px 0;
    width: 100%;
}

.memberGridWithImage .history p {
    margin: 0;
    padding: 4px 0;
    color: #555;
}

.memberGridWithImage .history p:first-child {
    font-weight: 600;
    color: #333;
}

/* 에러 메시지 */
.memberGridWithImage .error {
    color: #d32f2f;
    background: #ffebee;
    padding: 16px;
    border-radius: 4px;
    border-left: 4px solid #d32f2f;
    margin: 20px;
}

/* 반응형: 태블릿 (768px 이상) */
@media (min-width: 768px) {
    .memberGridWithImage {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 반응형: 데스크톱 (1160px 이상) */
@media (min-width: 1160px) {
    .memberGridWithImage > div.memberCell {
        flex-direction: row;
        align-items: flex-end;
        text-align: left;
    }
    
    .memberGridWithImage {
        justify-content: center;
        grid-template-columns: repeat(2, 500px);
    }
    
    .memberGridWithImage > div.memberCell .photo {
        align-items: flex-start;
        flex-shrink: 0;
    }
    
    .memberGridWithImage .memberName {
        text-align: left;
    }
    
    .memberGridWithImage .history {
        flex: 1;
    }
}

/* 반응형: 대형 화면 (1600px 이상) */
@media (min-width: 1600px) {
    .memberGridWithImage {
        grid-template-columns: repeat(2, 550px);
        gap: 32px;
    }
}

/* 로딩 상태 */
.memberGridWithImage.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    color: #999;
}

.memberGridWithImage.loading::after {
    content: "로딩 중...";
}

/* 인쇄 스타일 */
@media print {
    .memberGridWithImage {
        grid-template-columns: repeat(1, 1fr);
        gap: 20px;
        padding: 0;
    }
    
    .memberGridWithImage > div.memberCell {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .memberGridWithImage > div.memberCell:hover {
        transform: none;
        box-shadow: none;
    }
}
