/* KAICE 소속 전문가 프로필 스타일 */

/* 공통 스타일 */
.kaice-expert-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* 전문가 카드 이미지 스타일 */
.expert-card-image {
    width: 100%;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    transition: all 0.3s ease;
}

.expert-card-image.default-profile {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.expert-card-image.default-profile svg {
    width: 60px; /* 80px에서 60px로 줄임 */
    height: 60px;
    opacity: 0.7;
}

.expert-card:hover .expert-card-image {
    transform: scale(1.02);
}

/* 전문가 카드 콘텐츠 전체 레이아웃 */
.expert-card-content {
    display: flex;
    flex-direction: column;
    padding: 15px; /* 20px에서 15px로 줄임 */
    flex-grow: 1; /* height: 100% 대신 flex-grow 사용 */
    min-height: 0; /* 내용에 맞게 축소 가능 */
}

/* 내용이 비어있는 kaice-expert-single-inner 숨기기 */
.kaice-expert-single-inner:empty {
    display: none;
}

/* 내용이 비어있는 expert-content-section 숨기기 */
.expert-content-section:empty {
    display: none;
}

/* 빈 리스트 숨기기 */
.expert-career-structured-list:empty {
    display: none;
}

/* 빈 리스트를 포함하는 섹션 숨기기 */
.expert-content-section:has(.expert-career-structured-list:empty) {
    display: none;
}

/* 빈 요소만 있는 kaice-expert-single-inner 숨기기 */
.kaice-expert-single-inner:has(.expert-content-section:empty) {
    display: none;
}

/* 공백만 있는 요소 숨기기 */
.kaice-expert-single-inner:not(:has(*)) {
    display: none;
}

.expert-content-section:not(:has(*)) {
    display: none;
}

/* 카드 내부 요소 간격 조정 */
.expert-card-header {
    margin-bottom: 12px; /* 기본 간격 설정 */
}

.expert-card-experience {
    margin: 10px 0; /* 전문분야 태그 간격 */
    /* 두 줄까지만 표시 */
    max-height: 68px;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 2px; /* 세로 4px, 가로 2px 간격 */
    line-height: 1.4;
}

.expert-card-introduction {
    margin: 10px 0; /* 소개 글 간격 */
    flex-grow: 1; /* 남는 공간 차지 */
}

.expert-field-tag {
    display: inline-block;
    background: #f0f8ff;
    color: #0073aa;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    margin: 2px 4px 2px 0;
    border: 1px solid #e1f0ff;
}

.expert-card-position {
    color: #666;
    font-size: 13px;
    margin-top: 2px;
}

.expert-card-company {
    color: #888;
    font-size: 12px;
    margin-top: 4px;
}

.expert-card-title {
    margin: 0;
    font-size: 16px;
    line-height: 1.3;
}

.expert-card-title a {
    color: #333;
    text-decoration: none;
}

.expert-card-title a:hover {
    color: #0073aa;
}

.expert-card-introduction {
    font-size: 13px;
    line-height: 1.4;
    color: #555;
    /* 프로필 이미지 높이의 절반까지만 표시 */
    max-height: calc(15vw * 30/25 / 2); /* 15vw는 대략적인 카드 이미지 너비 */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4; /* 대략 4줄까지 표시 */
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

/* 반응형에 따른 소개글 높이 조정 (일반 카드용) */
@media (max-width: 1200px) {
    .kaice-expert-card .expert-card-introduction {
        max-height: calc(20vw * 30/25 / 2);
        -webkit-line-clamp: 3;
    }
    
    /* 아카이브 페이지 반응형 소개글 높이 조정 */
    .kaice-expert-archive-container .expert-card-introduction {
        max-height: calc((100vw - 80px) / 3 * 30/25 / 2); /* 3열 그리드 */
        -webkit-line-clamp: 3;
    }
}

@media (max-width: 900px) {
    .kaice-expert-card .expert-card-introduction {
        max-height: calc(35vw * 30/25 / 2);
        -webkit-line-clamp: 3;
    }
    
    /* 아카이브 페이지 반응형 소개글 높이 조정 */
    .kaice-expert-archive-container .expert-card-introduction {
        max-height: calc((100vw - 60px) / 2 * 30/25 / 2); /* 2열 그리드 */
        -webkit-line-clamp: 3;
    }
}

@media (max-width: 480px) {
    .kaice-expert-card .expert-card-introduction {
        max-height: calc(70vw * 30/25 / 2);
        -webkit-line-clamp: 4;
    }
    
    /* 아카이브 페이지 반응형 소개글 높이 조정 */
    .kaice-expert-archive-container .expert-card-introduction {
        max-height: calc((100vw - 30px) * 30/25 / 2); /* 1열 그리드 */
        -webkit-line-clamp: 4;
    }
}

/* 내용 없는 섹션 숨기기 위한 JavaScript 대체 스타일 */
.kaice-expert-single-inner.empty-section {
    display: none !important;
}

.expert-content-section.empty-section {
    display: none !important;
}

/* 오른쪽 컴럼에 섹션이 하나만 있을 때 gap 제거 */
.kaice-expert-col-right-info.single-section {
    gap: 0 !important;
    grid-gap: 0 !important;
}

/* 단일 섹션일 때의 여백 조정 */
.kaice-expert-col-right-info.single-section > * {
    margin-top: 0;
    margin-bottom: 0;
}

.kaice-expert-col-right-info.single-section > *:not(:last-child) {
    margin-bottom: 0;
}

/* 연락처를 최하단에 고정 */
.expert-card-contact {
    margin-top: auto;
    padding-top: 12px; /* 15px에서 12px로 줄임 */
    border-top: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.expert-contact-email {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px; /* 36px에서 32px로 줄임 */
    height: 32px;
    background: #f8f9fa;
    color: #6c757d;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.expert-contact-email:hover {
    background: #357080;
    color: white;
    transform: scale(1.1);
}

.expert-contact-email:hover i {
    color: white !important;
}

/* expert-card-contact 내의 모든 아이콘 버튼 호버 시 아이콘 색상 흰색 */
.expert-card-contact a:hover i,
.expert-card-contact button:hover i {
    color: white !important;
}

.expert-view-profile {
    background: #0073aa;
    color: white;
    padding: 6px 14px; /* 8px 16px에서 6px 14px로 줄임 */
    border-radius: 16px; /* 20px에서 16px로 줄임 */
    text-decoration: none;
    font-size: 12px; /* 13px에서 12px로 줄임 */
    font-weight: 500;
    transition: all 0.3s ease;
}

.expert-view-profile:hover {
    background: #005a87;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,115,170,0.2);
}

/* 카드 기본 레이아웃 수정 */
.kaice-expert-card {
    display: flex;
    flex-direction: column;
    /* height: 100%; 제거 - 내용에 맞게 높이 조절 */
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.kaice-expert-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}



/* 새로운 사전 정의된 필드 스타일 */
.expert-career-sections {
    margin: 20px 0;
}

.expert-career-section {
    margin-bottom: 30px;
}

.expert-career-section-title {
    font-family: 'S-CoreDream-6', sans-serif !important;
    font-size: 18px;
    color: #408090;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #408090;
}

.expert-career-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.expert-career-item {
    background: #fafbfc;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #408090;
    transition: all 0.3s ease;
}

.expert-career-item:hover {
    background: #f0f8ff;
    transform: translateX(2px);
}

.career-main-info {
    font-family: 'S-CoreDream-5', sans-serif !important;
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}

.career-sub-info {
    font-family: 'S-CoreDream-3', sans-serif !important;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

/* 테이블 형태 스타일 */
.expert-career-tables {
    margin: 20px 0;
}

.expert-career-table-section {
    margin-bottom: 30px;
}

.expert-career-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.expert-career-table thead {
    background: #408090;
    color: white;
}

.expert-career-table th {
    padding: 12px 15px;
    font-family: 'S-CoreDream-5', sans-serif !important;
    font-weight: 500;
    text-align: left;
    border-right: 1px solid rgba(255,255,255,0.2);
}

.expert-career-table th:last-child {
    border-right: none;
}

.expert-career-table td {
    padding: 12px 15px;
    font-family: 'S-CoreDream-4', sans-serif !important;
    border-bottom: 1px solid #f0f0f0;
    border-right: 1px solid #f0f0f0;
    vertical-align: top;
}

.expert-career-table td:last-child {
    border-right: none;
}

.expert-career-table tbody tr:last-child td {
    border-bottom: none;
}

.expert-career-table tbody tr:hover {
    background: #fafbfc;
}

.career-main {
    font-weight: 500;
    color: #333;
    width: 40%;
}

.career-detail {
    color: #666;
    width: 35%;
}

.career-period {
    color: #888;
    width: 25%;
    font-size: 14px;
}

/* 반응형 */
@media (max-width: 900px) {
    .expert-career-table {
        font-size: 14px;
    }
    
    .expert-career-table th,
    .expert-career-table td {
        padding: 10px 12px;
    }
    
    .career-main-info {
        font-size: 15px;
    }
    
    .career-sub-info {
        font-size: 13px;
    }
    
    .expert-career-section-title {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .expert-career-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .expert-career-item {
        padding: 12px;
    }
    
    .career-main-info {
        font-size: 14px;
    }
    
    .career-sub-info {
        font-size: 12px;
    }
    
    /* 모바일에서 그룹 간격 추가 감소 */
    .expert-content-section {
        margin-bottom: 25px;
    }
    

    
    .kaice-subtitle {
        font-size: 15px;
    }
}

/* 기존 스타일과의 통합 */
.expert-career-structured-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.career-structured-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
    overflow: hidden;
    width: 100%;
}



.career-structured-item:last-child {
    border-bottom: none;
}

.career-main-content {
    display: block;
    min-width: 0;
    overflow-wrap: break-word;
    overflow: hidden;
    box-sizing: border-box;
}

.career-title {
    font-family: 'S-CoreDream-4', sans-serif !important;
    font-size: 16px;
    color: #333;
    font-weight: 500;
    display: inline;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.4;
}

.career-period {
    font-family: 'S-CoreDream-3', sans-serif !important;
    font-size: 14px;
    color: #666;
    white-space: nowrap;
    display: inline;
    margin-left: 8px;
    flex-shrink: 0;
}

.career-dotted-line {
    flex: 1;
    height: 1px;
    background-color: #999;
    margin: 0 15px;
    opacity: 0.6;
    min-width: 20px;
}

.career-institution {
    font-family: 'S-CoreDream-3', sans-serif !important;
    font-size: 14px;
    color: #408090;
    text-align: right;
    flex-shrink: 0;
    font-weight: 500;
    word-wrap: break-word;
    overflow-wrap: break-word;
    min-width: 0;
    max-width: 30%;
    overflow: hidden;
    hyphens: auto;
    line-height: 1.4;
}

/* 기관이 없는 경우를 위한 JavaScript나 별도 클래스로 처리 */
.career-structured-item.no-institution .career-dotted-line {
    display: none;
}

/* 반응형 디자인 */
@media (max-width: 1400px) {
    /* 1400px 이하에서도 2열 유지 */
    .kaice-expert-left-section {
        flex: 0 0 300px; /* 350px에서 300px로 축소 */
        max-width: 300px;
    }
    
    .education-programs-list-column {
        max-height: 400px;
    }
    
    .kaice-expert-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 1100px) {
    /* 1100px 이하에서도 2열 유지, 왼쪽 너비 더 축소 */
    .kaice-expert-left-section {
        flex: 0 0 280px; /* 280px로 축소 */
        max-width: 280px;
    }
    
    .kaice-expert-col-left-info {
        padding: 20px; /* 패딩 축소 */
    }
    
    .kaice-expert-single-inner {
        padding: 25px; /* 오른쪽 패딩도 약간 축소 */
    }
    
    /* 기관이 없는 경우 전체 너비 사용 */
    .career-structured-item.no-institution .career-main-content {
        flex: 1;
        width: 100%;
        max-width: 100%;
    }
    
    /* 모바일에서 그룹 간격 조정 */
    .expert-content-section {
        margin-bottom: 30px;
    }
    
    .kaice-subtitle {
        font-size: 16px;
    }
    
    .kaice-expert-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    


}

@media (max-width: 900px) {
    /* 900px 이하에서도 가능한 2열 유지 시도 */
    .kaice-expert-left-section {
        flex: 0 0 250px; /* 250px로 축소 */
        max-width: 250px;
    }
    
    .kaice-expert-single-inner {
        padding: 20px;
    }
    
    .kaice-expert-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    /* 768px 이하에서 1열로 변경 */
    .kaice-expert-single-inner {
        padding: 20px;
    }
    
    /* 모바일에서 전체 레이아웃을 flexbox로 변경하고 순서 조정 */
    .kaice-expert-row {
        display: flex;
        flex-direction: column;
    }
    
    /* 왼쪽 섹션의 flexbox 설정을 해제하고 각 컬럼을 독립적으로 배치 */
    .kaice-expert-left-section {
        display: contents; /* 컨테이너를 사라지게 하고 자식 요소들을 부모에 직접 배치 */
        flex: none;
        max-width: 100%;
    }
    
    /* 각 섹션별 순서 지정 */
    .kaice-expert-col-left-info {
        order: 1; /* 기본 정보 컬럼 */
        display: block;
        background: #fff;
        border-radius: 8px;
        border: solid 1px #ccc;
        margin-bottom: 0;
        padding: 20px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .kaice-expert-col-right-info {
        order: 2; /* 오른쪽 상세 정보 */
        margin-bottom: 0;
        width: 100%;
        flex: none;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    /* 교육 정보와 활동 사진을 상세 정보 다음에 배치 */
    .kaice-expert-col-education-info {
        order: 3; /* 교육 정보 컬럼 */
        width: 100%;
        box-sizing: border-box;
    }
    
    .kaice-expert-col-activity-photos {
        order: 4; /* 활동 사진 컬럼 */
        width: 100%;
        box-sizing: border-box;
    }
    
    .education-column-header {
        padding: 16px;
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .education-count-badge {
        align-self: flex-end;
    }
    
    .education-programs-list-column {
        padding: 16px;
        max-height: 300px;
    }
    
    .education-card-header {
        flex-direction: column;
        gap: 8px;
    }
    
    .education-card-date {
        align-self: flex-start;
    }
    
    .education-card-actions {
        flex-direction: column;
        gap: 6px;
    }
    
    .btn-card-detail,
    .btn-card-apply {
        width: 100%;
        text-align: center;
    }
    
    /* 필터 섹션 관련 반응형 스타일 제거됨 */
    
    .kaice-expert-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    


    .kaice-expert-col-left-info .expert-card-header {
        margin-top: 15px;
        margin-bottom: 15px;
    }
    
    .kaice-expert-col-left-info .expert-card-title {
        font-size: 26px;
    }
    
    .kaice-expert-col-left-info .expert-card-position {
        font-size: 18px;
    }
    
    .kaice-expert-col-left-info .expert-card-company {
        font-size: 14px;
    }
    
    .kaice-expert-member-title {
        font-size: 24px !important;
    }
    
    .main-content {
        font-size: 18px !important;
    }
    
    .kaice-expert-grid {
        padding: 20px 15px;
    }
}

@media (max-width: 750px) {
    .kaice-expert-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* 싱글 페이지 스타일 */
.kaice-expert-row {
    display: flex;
    gap: 30px;
}

/* 왼쪽 섹션 (기본 정보 + 교육 정보) */
.kaice-expert-left-section {
    flex: 0 0 350px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-sizing: border-box; /* padding과 border를 포함한 너비 */
    max-width: 350px; /* 최대 너비 제한 */
}

/* 싱글 페이지 전문가 정보 컴럼 */
.kaice-expert-col-left-info {
    background: #fff;
    border-radius: 8px;
    border: solid 1px #ccc;
    padding: 30px;
    box-sizing: border-box; /* padding과 border를 포함한 너비 계산 */
}

.kaice-expert-col-introduction {
    background: #fff;
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
    box-sizing: border-box;
}

/* 교육 정보 컴럼 */
.kaice-expert-col-education-info {
    box-sizing: border-box;
}

/* 활동 사진 컴럼 */
.kaice-expert-col-activity-photos {
    box-sizing: border-box;
}

.kaice-expert-col-left-info .expert-card-header {
    margin-top: 20px;
    margin-bottom: 20px;
}

.kaice-expert-col-left-info .expert-card-title {
    font-size: 24px;
    margin: 0;
}

.kaice-expert-col-left-info .expert-card-position {
    font-size: 18px;
}

.kaice-expert-col-left-info .expert-card-company {
    font-size: 14px;
}

.kaice-expert-col-right-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 싱글 페이지 스타일 */
.kaice-expert-row {
    display: flex;
    gap: 30px;
}

/* 왼쪽 섹션 (기본 정보 + 교육 정보) */
.kaice-expert-left-section {
    flex: 0 0 350px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 싱글 페이지 전문가 정보 컬럼 */
.kaice-expert-col-left-info {
    background: #fff;
    border-radius: 8px;
    border: solid 1px #ccc;
    padding: 30px;
}

.kaice-expert-col-introduction {
    background: #fff;
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
}

.kaice-expert-col-left-info .expert-card-header {
    margin-top: 20px;
    margin-bottom: 20px;
}

.kaice-expert-col-left-info .expert-card-title {
    font-size: 24px;
    margin: 0;
}

.kaice-expert-col-left-info .expert-card-position {
    font-size: 18px;
}

.kaice-expert-col-left-info .expert-card-company {
    font-size: 14px;
}

.kaice-expert-col-right-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 프로필 이미지 */
.expert-member-thumbnail-wrapper {
    text-align: center;
    margin-bottom: 30px;
}

.expert-member-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* 이름과 직책 */
.kaice-expert-member-title {
    font-family: 'S-CoreDream-4', sans-serif !important;
    font-size: 30px !important;
    color: #333;
    text-align: center;
    margin: 20px 0 10px 0;
}

.kaice-expert-member-desig {
    font-family: 'S-CoreDream-3', sans-serif !important;
    font-size: 20px !important;
    color: #666;
    text-align: center;
    margin: 0 0 30px 0;
    font-weight: normal;
}

/* 연락처 정보 */
.expert-member-info-wrapper {
    margin-bottom: 20px;
}

.kaice-expert-member-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.kaice-expert-member-info li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-family: 'S-CoreDream-3', sans-serif !important;
    font-size: 14px;
}

.kaice-expert-info-label {
    display: inline-block;
    vertical-align: top;
}

.expert-info-label-icon {
    width: 30px;
    text-align: center;
    color: #408090;
}

.expert-info-label-text {
    min-width: 90px;
    margin-right: 10px;
    color: #408090 !important;
    font-family: 'S-CoreDream-4', sans-serif !important;
}

.kaice-expert-info-text {
    color: #666;
    text-decoration: none;
    font-family: 'S-CoreDream-3', sans-serif !important;
}

.kaice-expert-info-text:hover {
    color: #408090;
}

/* 추가 정보 구분선 */
.kaice-expert-info-top-border {
    border-top: 1px solid hsla(218, 3%, 49%, .4);
    padding-top: 20px;
}

/* 오른쪽 상세 정보 */
.kaice-expert-single-inner {
    background: #fff;
    border-radius: 8px;
    border: solid 1px #ccc;
    padding: 30px;
}

/* 메인 콘텐츠 */
.main-content {
    font-size: 20px !important;
    font-family: 'S-CoreDream-3', sans-serif !important;
    margin: 0 0 20px 0;
    line-height: 1.6;
}

/* 섹션 제목 */
.kaice-heading {
    margin-bottom: 15px;
    border-bottom: 1px solid #e8f4f8;
    position: relative;
}

.kaice-subtitle {
    font-size: 18px;
    font-family: 'S-CoreDream-5', sans-serif !important;
    color: #333;
    margin: 0 !important;
}

.kaice-expert-single-inner .kaice-subtitle {
    font-size: 18px;
    font-family: 'S-CoreDream-5', sans-serif !important;
    color: #333;
    margin: 0 !important;
    border-bottom: 2px solid #408090;
    display: inline-block;
    padding-bottom: 4px;
}

/* 콘텐츠 섹션 */
.expert-content-section {
    font-family: 'S-CoreDream-3', sans-serif !important;
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 35px; /* 그룹 간 간격 증가 */
}

/* 마지막 그룹의 여백 제거 */
.kaice-expert-member-details .expert-content-section:last-child {
    margin-bottom: 20px;
}





/* 아카이브 페이지 스타일 */
.kaice-expert-archive-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

/* 아카이브 헤더 제거됨 */

/* 필터 섹션 제거됨 */

/* 전문가 그리드 */
.kaice-expert-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

/* 전문가 카드 */
.kaice-expert-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kaice-expert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.expert-card-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 25/30;
}

.expert-card-image {
    width: 100%;
    height: 100%;
    aspect-ratio: 25/30;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.kaice-expert-card:hover .expert-card-image {
    transform: scale(1.05);
}

.expert-card-content {
    padding: 25px;
}

/* 카드 헤더 (이름/직책 + 회사) */
.expert-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 15px;
    gap: 15px;
}

.expert-title-position {
    flex: 1;
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.expert-card-title {
    font-family: 'S-CoreDream-4', sans-serif !important;
    font-size: 24px;
    margin: 0;
    line-height: 1.2;
}

.expert-card-title a {
    color: #333;
    text-decoration: none;
}

.expert-card-title a:hover {
    color: #408090;
}

.expert-card-position {
    font-family: 'S-CoreDream-4', sans-serif !important;
    font-size: 18px;
    color: #408090;
    margin: 0;
}

.expert-card-company {
    font-family: 'S-CoreDream-3', sans-serif !important;
    font-size: 14px;
    color: #666;
    text-align: right;
    flex-shrink: 0;
    margin: 0;
    margin-bottom: 2px;
    word-wrap: break-word;
    white-space: pre-line;
}

.expert-card-experience {
    font-family: 'S-CoreDream-3', sans-serif !important;
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    /* 두 줄까지만 표시 */
    max-height: 68px;
    overflow: hidden;
    line-height: 1.2;
}

.expert-card-experience .experience-tag {
    background: #e8f4f8;
    color: #408090;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
}

.expert-card-introduction {
    font-family: 'S-CoreDream-3', sans-serif !important;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 20px;
    /* 프로필 이미지 높이의 절반까지만 표시 */
    max-height: calc((100vw - 120px) / 4 * 30/25 / 2); /* 4열 그리드 기준 */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

/* 인증 배지 스타일 제거됨 */

/* 전문 분야 태그 */
.expert-card-fields {
    margin-bottom: 20px;
}

.expert-field-tag {
    display: inline-block;
    background: #e8f4f8;
    color: #408090;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-family: 'S-CoreDream-3', sans-serif !important;
    margin: 2px 4px 2px 0;
    transition: all 0.3s ease;
}

.expert-field-tag a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.expert-field-tag:hover {
    background: #408090;
    color: white;
}

.expert-field-tag:hover a {
    color: white;
}

.expert-card-experience .expert-field-tag {
    display: inline-block;
    background: #e8f4f8;
    color: #408090;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-family: 'S-CoreDream-3', sans-serif !important;
    margin: 2px 4px 2px 0;
    transition: all 0.3s ease;
}

.expert-card-experience .expert-field-tag a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.expert-card-experience .expert-field-tag:hover {
    background: #408090;
    color: white;
}

.expert-card-experience .expert-field-tag:hover a {
    color: white;
}

/* 전문가 교육 개수 제거됨 */

/* 연락처 버튼 */
.expert-card-contact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.expert-contact-email {
    color: #408090;
    font-size: 18px;
    text-decoration: none;
}

.expert-contact-email:hover {
    color: #357080;
}

.expert-view-profile {
    background: #408090;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-family: 'S-CoreDream-3', sans-serif !important;
    font-size: 14px;
    transition: background 0.3s ease;
}

.expert-view-profile:hover {
    background: #357080;
    color: white;
}

/* 결과 없음 */
.expert-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.expert-no-results h3 {
    font-family: 'S-CoreDream-5', sans-serif !important;
    font-size: 24px;
    margin-bottom: 15px;
}

.expert-no-results p {
    font-family: 'S-CoreDream-3', sans-serif !important;
    font-size: 16px;
}

/* 페이지네이션 */
.expert-pagination {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 40px;
}

.expert-pagination .page-numbers {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-family: 'S-CoreDream-3', sans-serif !important;
}

.expert-pagination .page-numbers:hover,
.expert-pagination .page-numbers.current {
    background: #408090;
    color: white;
}

/* 교육 프로그램 리스트 스타일 */
.education-programs-list-inner {
    padding: 0;
}

.education-program-item {
    border: 1px solid #f0f4f7;
    border-radius: 6px;
    padding: 24px;
    margin-bottom: 0;
    background: #fafbfc;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    text-decoration: none;
    display: block;
    color: inherit;
}

.education-program-item:not(:last-child) {
    margin-bottom: 20px;
}

.education-program-item:hover {
    background: white;
    border-color: #408090;
    box-shadow: 0 4px 12px rgba(64, 128, 144, 0.08);
    transform: translateY(-1px);
}

.education-item-header {
    margin-bottom: 16px;
}

.education-item-title {
    font-family: 'S-CoreDream-4', sans-serif !important;
    font-size: 18px !important;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    color: #333333;
}

.education-item-meta {
    margin-bottom: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.meta-item {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 14px;
    min-width: 0;
}

.meta-item.meta-period {
    background: #408090;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 500;
}

.meta-item.meta-period .meta-icon {
    color: white;
}

.meta-icon {
    margin-right: 6px;
    font-size: 13px;
    color: #408090;
    width: 14px;
    text-align: center;
}

.meta-text {
    font-family: 'S-CoreDream-3', sans-serif !important;
    color: #555;
}

.education-item-actions {
    display: none;
}

.btn-education-detail,
.btn-education-apply {
    display: none;
}

.education-footer-link {
    text-align: center;
}

.btn-all-programs {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #2d3748;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-family: 'S-CoreDream-4', sans-serif !important;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    letter-spacing: 0.2px;
}

.btn-all-programs:hover {
    background: #1a202c;
    color: white;
    transform: translateY(-1px);
}

.btn-all-programs i {
    font-size: 13px;
    transition: transform 0.2s ease;
}

.btn-all-programs:hover i {
    transform: translateX(2px);
}

/* 반응형 디자인 - 교육 정보 & 활동 사진 */
@media (max-width: 768px) {
    .education-program-item {
        margin: 20px;
        padding: 16px;
        margin-bottom: 0;
    }
    
    .education-program-item:not(:last-child) {
        margin-bottom: 16px;
    }
    
    .education-item-header {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .education-item-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .btn-education-detail,
    .btn-education-apply {
        width: 100%;
        text-align: center;
    }
    
    .activity-photos-grid-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .photo-info h4 {
        font-size: 10px;
    }
    
    .photo-info p {
        font-size: 8px;
    }
    
    .empty-state {
        padding: 30px 15px;
    }
    
    .empty-state p {
        font-size: 14px;
    }
    
    .empty-state small {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .activity-photos-grid-inner {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 6px;
    }
    
    .photo-overlay {
        display: none; /* 모바일에서는 오버레이 숨김 */
    }
}

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

.education-program-item {
    animation: slideInUp 0.5s ease forwards;
}

.education-program-item:nth-child(2) { animation-delay: 0.1s; }
.education-program-item:nth-child(3) { animation-delay: 0.2s; }
.education-program-item:nth-child(4) { animation-delay: 0.3s; }
.education-program-item:nth-child(5) { animation-delay: 0.4s; }

/* 접근성 개선 */
.education-program-item:focus-within {
    outline: 2px solid #408090;
    outline-offset: 2px;
}

.btn-education-detail:focus,
.btn-education-apply:focus,
.btn-all-programs:focus {
    outline: 2px solid #408090;
    outline-offset: 2px;
}

/* 교육 정보 컴럼 스타일 */
.education-column-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
}



/* 반응형 디자인 */
@media (max-width: 1400px) {
    .kaice-expert-row {
        flex-direction: column;
    }
    
    .kaice-expert-left-section {
        flex: none;
        max-width: 100%;
    }
    
    .education-programs-list-column {
        max-height: 400px;
    }
    
    .kaice-expert-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 1100px) {
    .kaice-expert-single-inner {
        padding: 20px;
    }
    
    .kaice-expert-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    

}

@media (max-width: 900px) {
    .kaice-expert-single-inner {
        padding: 20px;
    }
    
    /* 모바일에서 전체 레이아웃을 flexbox로 변경하고 순서 조정 */
    .kaice-expert-row {
        display: flex;
        flex-direction: column;
    }
    
    /* 왼쪽 섹션의 flexbox 설정을 해제하고 각 컬럼을 독립적으로 배치 */
    .kaice-expert-left-section {
        display: flex; /* flexbox로 변경하여 자식 요소들이 수직으로 배치되도록 함 */
        flex-direction: column;
        gap: 20px;
        flex: none;
        width: 100%;
        max-width: 100%;
    }
    
    /* 각 섹션별 순서 지정 */
    .kaice-expert-col-left-info {
        order: 1; /* 기본 정보 컬럼 */
        display: block;
        background: #fff;
        border-radius: 8px;
        border: solid 1px #ccc;
        margin-bottom: 0;
        padding: 20px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .kaice-expert-col-right-info {
        order: 2; /* 오른쪽 상세 정보 */
        margin-bottom: 0;
        width: 100%;
        flex: none;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    .education-column-header {
        padding: 16px;
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .education-count-badge {
        align-self: flex-end;
    }
    
    .education-programs-list-column {
        padding: 16px;
        max-height: 300px;
    }
    
    .education-card-header {
        flex-direction: column;
        gap: 8px;
    }
    
    .education-card-date {
        align-self: flex-start;
    }
    
    .education-card-actions {
        flex-direction: column;
        gap: 6px;
    }
    
    .btn-card-detail,
    .btn-card-apply {
        width: 100%;
        text-align: center;
    }
    
    /* 필터 섹션 관련 반응형 스타일 제거됨 */
    
    .kaice-expert-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .kaice-expert-col-left-info .expert-card-header {
        margin-top: 15px;
        margin-bottom: 15px;
    }
    
    .kaice-expert-col-left-info .expert-card-title {
        font-size: 26px;
    }
    
    .kaice-expert-col-left-info .expert-card-position {
        font-size: 18px;
    }
    
    .kaice-expert-col-left-info .expert-card-company {
        font-size: 14px;
    }
    
    .kaice-expert-member-title {
        font-size: 24px !important;
    }
    
    .main-content {
        font-size: 18px !important;
    }
    
    .kaice-expert-grid {
        padding: 20px 15px;
    }
}

@media (max-width: 750px) {
    .kaice-expert-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* 태블릿용 숨기기/보이기 */
@media (max-width: 1200px) {
    .kaice-expert-hide-tablet-small {
        display: none !important;
    }
    
    .kaice-expert-show-tablet-small {
        display: block !important;
    }
}

@media (min-width: 1201px) {
    .kaice-expert-show-tablet-small {
        display: none !important;
    }
}

/* 접근성 개선 */
.kaice-expert-card:focus-within {
    outline: 2px solid #408090;
    outline-offset: 2px;
}

.expert-view-profile:focus,
.expert-contact-email:focus {
    outline: 2px solid #408090;
    outline-offset: 2px;
}

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

.kaice-expert-card {
    animation: fadeInUp 0.6s ease forwards;
}

.kaice-expert-card:nth-child(2) { animation-delay: 0.1s; }
.kaice-expert-card:nth-child(3) { animation-delay: 0.2s; }
.kaice-expert-card:nth-child(4) { animation-delay: 0.3s; }
.kaice-expert-card:nth-child(5) { animation-delay: 0.4s; }
.kaice-expert-card:nth-child(6) { animation-delay: 0.5s; }

/* 활동 사진 그리드 스타일 */
.activity-photos-grid-inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.activity-photo-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #f5f5f5;
    border: 1px solid #e5e7eb;
}

.activity-photo-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #408090;
}

.activity-photo-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
}

.activity-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.activity-photo-item:hover img {
    transform: scale(1.08);
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
    padding: 20px 12px 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    transform: translateY(10px);
}

.activity-photo-item:hover .photo-overlay {
    opacity: 1;
    transform: translateY(0);
}

.photo-info {
    color: white;
}

.photo-info h4 {
    font-family: 'S-CoreDream-4', sans-serif !important;
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.photo-info p {
    font-family: 'S-CoreDream-3', sans-serif !important;
    font-size: 11px;
    margin: 0;
    opacity: 0.9;
    line-height: 1.2;
}

.activity-footer-link {
    text-align: center;
}

.btn-all-cases {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #2d3748;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-family: 'S-CoreDream-4', sans-serif !important;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    letter-spacing: 0.2px;
}

.btn-all-cases:hover {
    background: #1a202c;
    color: white;
    transform: translateY(-1px);
}

.btn-all-cases i {
    font-size: 13px;
    transition: transform 0.2s ease;
}

.btn-all-cases:hover i {
    transform: translateX(2px);
}

/* 빈 상태 스타일 */
.empty-state {
    text-align: center;
    padding: 48px 28px;
    color: #6b7280;
}

.empty-state i {
    font-size: 36px;
    color: #d1d5db;
    margin-bottom: 16px;
    display: block;
}

.empty-state p {
    font-family: 'S-CoreDream-4', sans-serif !important;
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 8px 0;
    color: #4b5563;
}

.empty-state small {
    font-family: 'S-CoreDream-3', sans-serif !important;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
    max-width: 280px;
    display: inline-block;
}

/* 라이트박스 스타일링 (선택사항 - lightbox 라이브러리 사용 시) */
.activity-photo-item a {
    display: block;
    width: 100%;
    height: 100%;
}







/* 교육 정보 배너 스타일 */
.education-programs-banner-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.education-banner-item {
    display: flex;
    flex-direction: column;
    padding: 16px 0;
    border-bottom: 1px solid #e5e7eb;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    gap: 8px;
}

.education-banner-item:first-child {
    border-top: 1px solid #e5e7eb;
}

.education-banner-item:hover {
    background-color: #f9fafb;
    padding-left: 12px;
    padding-right: 12px;
    margin: 0 -12px;
}

/* 상단 영역: 상태 배지 + 제목 */
.education-banner-top {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    font-family: 'S-CoreDream-5', sans-serif !important;
    line-height: 1.5;
    text-align: left;
}

/* 상태 배지 - 교육 아카이브와 동일한 스타일 */
.education-status {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    font-family: 'S-CoreDream-4', sans-serif !important;
    margin-right: 4px;
    vertical-align: middle;
}

.education-status.recruiting {
    background: #408090;
    color: white;
}

.education-status.ongoing {
    background: rgba(197, 197, 197, 0.9);
    color: white;
}

.education-status.ended {
    background: rgba(0, 0, 0, 0.7);
    color: white;
}

.education-banner-item:hover .education-banner-top {
    color: #408090;
}

/* 하단 영역: 기간과 장소 */
.education-banner-bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    text-align: left;
}

.education-period {
    font-size: 14px;
    color: #6b7280;
    font-family: 'S-CoreDream-4', sans-serif !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.education-period i {
    color: #9ca3af;
    font-size: 13px;
    width: 16px;
    text-align: center;
}

.education-location {
    font-size: 14px;
    color: #6b7280;
    font-family: 'S-CoreDream-4', sans-serif !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.education-location i {
    color: #9ca3af;
    font-size: 13px;
    width: 16px;
    text-align: center;
}

/* 전체 교육 과정 보기 버튼 */
.education-view-all {
    margin-top: 20px;
    text-align: right;
}

.btn-view-all-education {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #374151;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    font-family: 'S-CoreDream-4', sans-serif !important;
    transition: all 0.2s ease;
}

.btn-view-all-education:hover {
    color: #408090;
}

.btn-view-all-education i {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.btn-view-all-education:hover i {
    transform: translateX(3px);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .education-banner-item {
        padding: 12px 0;
    }
    
    .education-banner-top {
        font-size: 14px;
    }
    
    .education-status {
        display: inline;
        margin-right: 6px;
    }
    
    .education-banner-bottom {
        gap: 4px;
    }
    
    .education-period,
    .education-location {
        font-size: 13px;
    }
    
    .education-period i,
    .education-location i {
        font-size: 12px;
    }
}

/* 활동 사진 애니메이션 */
@keyframes photoFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.activity-photo-item {
    animation: photoFadeIn 0.4s ease forwards;
}

.activity-photo-item:nth-child(2) { animation-delay: 0.05s; }
.activity-photo-item:nth-child(3) { animation-delay: 0.1s; }
.activity-photo-item:nth-child(4) { animation-delay: 0.15s; }
.activity-photo-item:nth-child(5) { animation-delay: 0.2s; }
.activity-photo-item:nth-child(6) { animation-delay: 0.25s; }
.activity-photo-item:nth-child(7) { animation-delay: 0.3s; }
.activity-photo-item:nth-child(8) { animation-delay: 0.35s; }


