/* 전문가 사진 호버 및 프로필 효과 */

.expert-interactive {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.expert-interactive:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(9, 159, 151, 0.3);
}

/* 프로필 모달 */
.expert-profile-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
}

.expert-profile-modal.active {
    opacity: 1;
}

/* 배경 오버레이 - 너무 어둡지 않게 */
.profile-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

/* 모달 컨텐츠 */
.profile-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    z-index: 10000;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.expert-profile-modal.active .profile-modal-content {
    transform: scale(1);
}

.profile-modal-content img {
    max-width: 100%;
    max-height: 90vh;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* X 닫기 버튼 - 이미지 오른쪽 상단 */
.profile-modal-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    background: #099F97;
    color: white;
    border: 3px solid white;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 10001;
}

.profile-modal-close:hover {
    background: #0bb8af;
    transform: rotate(90deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .profile-modal-content {
        max-width: 95%;
        max-height: 85%;
    }
    
    .profile-modal-close {
        width: 35px;
        height: 35px;
        font-size: 20px;
        top: -10px;
        right: -10px;
    }
}


/* ── curriculum bullet span ── */
.curriculum-bullet {
    color: #099F97 !important;
    font-weight: bold !important;
    margin-right: 4px;
}

/* ── curriculum-list li bullet 겹침 방지 ── */
.curriculum-list li {
    padding-left: 1.4rem !important;
    position: relative !important;
}
.curriculum-list li:before {
    display: inline !important;
    content: "•" !important;
    position: absolute !important;
    left: 0 !important;
    color: #099F97 !important;
    font-weight: bold !important;
}

/* ── 모바일 로고 중앙 정렬 ── */
@media (max-width: 768px) {
    .nav-wrapper {
        position: relative;
        justify-content: center;
    }
    .nav-wrapper .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    .nav-wrapper .mobile-menu-toggle {
        position: absolute;
        right: 0;
    }
}

/* ── 리뷰 페이지네이션 ── */
.finsync-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 3rem 0 1rem;
}

.finsync-pagination .page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1B3559;
    border: 2px solid #e0e0e0;
    background: white;
    text-decoration: none;
    transition: all 0.2s ease;
}

.finsync-pagination .page-btn:hover {
    border-color: #099F97;
    color: #099F97;
}

.finsync-pagination .page-btn.current {
    background: #099F97;
    border-color: #099F97;
    color: white;
    cursor: default;
}

.finsync-pagination .page-dots {
    color: #999;
    font-size: 1rem;
    padding: 0 0.3rem;
}

/* ── 리뷰 더보기 버튼 ── */
.review-more-btn {
    display: inline-block;
    margin: 0.5rem auto 0;
    padding: 0.35rem 1.2rem;
    background: transparent;
    border: 1.5px solid #099F97;
    border-radius: 20px;
    color: #099F97;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: auto;
}

.review-more-btn:hover {
    background: #099F97;
    color: white;
}

/* ── 리뷰 모달 (expert 모달 재사용) ── */
.review-modal .profile-modal-content {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    padding-top: 3.5rem;
    max-width: 540px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    overflow-x: hidden;
    overflow: visible;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    box-sizing: border-box;
    font-family: 'Spoqa Han Sans Neo', 'Spoqa Han Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    font-style: normal;
}

.review-modal .review-modal-rating {
    text-align: center;
    margin-bottom: 1.2rem;
    color: #f5a623;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.review-modal .review-modal-text {
    color: #333;
    line-height: 1.9;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    white-space: pre-line;
    font-family: 'Spoqa Han Sans Neo', 'Spoqa Han Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    font-style: normal;
    font-weight: 400;
}

.review-modal .review-modal-author {
    padding-top: 1.2rem;
    border-top: 1px solid #eee;
    text-align: center;
}

.review-modal .review-modal-author strong {
    color: #1B3559;
    font-size: 1rem;
    display: block;
    margin-bottom: 0.6rem;
}

.review-modal .review-modal-hashtags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
}

.review-modal .review-modal-hashtags .hashtag {
    background: #f0f9f8;
    color: #099F97;
    border-radius: 15px;
    padding: 0.25rem 0.7rem;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ── 리뷰 모달 닫기 버튼 (content 안에 위치) ── */
.review-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    background: #099F97;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
    z-index: 10001;
    line-height: 1;
}

.review-close-btn:hover {
    background: #0bb8af;
    transform: rotate(90deg);
}

/* ── 리뷰 카드 글씨체 강제 적용 ── */
.testimonials-grid .testimonial-text,
.testimonials-grid-preview .testimonial-text {
    font-family: 'Spoqa Han Sans Neo', 'Spoqa Han Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif !important;
    font-style: normal !important;
    font-weight: 400 !important;
    text-align: left !important;
}


/* ── 리뷰 그리드 카드 크기 고정 ── */
.page-reviews-grid {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)) !important;
    align-items: start !important;
}

/* ── 베스트수기 버튼 ── */
.hashtag-btn-best {
    background: linear-gradient(135deg, #C9A84C, #E8C96A) !important;
    color: white !important;
    border-color: #C9A84C !important;
    font-weight: 700 !important;
}
.hashtag-btn-best.active,
.hashtag-btn-best:hover {
    background: linear-gradient(135deg, #B8933A, #C9A84C) !important;
    color: white !important;
}
