
/* Expert Detail Page Styles */

.expert-detail-wrapper {
    width: 100%;
    background-color: #fff;
    font-family: 'Nanum Gothic', sans-serif;
}

/* Header */
.expert-header {
    width: 100%;
    height: 77px;
    background-color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.expert-header-inner {
    width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.expert-logo {
    font-size: 40px;
    font-weight: 700;
    background: linear-gradient(90deg, #6531FF 0%, #008BFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 36px;
}

.expert-nav {
    display: flex;
    gap: 32px;
}

.expert-nav a {
    color: #364153;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
}

/* Main Container */
.expert-container {
    width: 1200px;
    margin: 100px auto 0;
    position: relative;
}

/* Hero Section (Images) */
.expert-hero {
    display: flex;
    gap: 8px;
    height: 391px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 68px;
    position: relative;
}

.expert-hero-main {
    flex: 1;
    position: relative;
}

.expert-hero-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.expert-hero-sub {
    width: 532px;
    display: flex;
    gap: 8px;
    position: relative;
}

.expert-hero-sub img {
    height: 100%;
    object-fit: cover;
}

.expert-hero-sub img:nth-child(1) {
    width: 264px;
}

.expert-hero-sub img:nth-child(2) {
    width: 260px;
}

/* Photo View All Button */
.btn-view-all-photos {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: transparent;
    padding: 0;
    cursor: pointer;
    border: none;
    z-index: 10;
}
.btn-view-all-photos .icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: #ffffff;
    border: 1px solid #101828;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}
.btn-view-all-photos img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}
.btn-view-all-photos:hover .icon-box {
    background-color: #f9fafb;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.1);
}

/* Photo Modal */
.photo-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    overflow-y: auto;
    padding: 40px 0;
}
.photo-modal-overlay.active {
    display: block;
}
.photo-modal-close {
    position: fixed;
    top: 24px;
    right: 24px;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    z-index: 10000;
    background: none;
    border: none;
    padding: 10px;
    line-height: 1;
}
.photo-modal-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 20px;
}
.photo-modal-content img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Profile Section */
.expert-profile-section {
    display: block;
    margin-bottom: 24px;
}

.expert-info {
    width: 760px;
}

.expert-name {
    font-size: 30px;
    font-weight: 700;
    color: #000;
    margin-bottom: 12px;
}

.expert-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.expert-tag {
    background-color: #f3f4f6;
    color: #687994;
    font-size: 14px;
    padding: 2px 6px;
    border-radius: 4px;
}

.expert-rating {
    display: flex;
    align-items: center;
    gap: 12px;
}

.expert-rating-stars {
    display: flex;
    gap: 4px;
}

.expert-rating-score {
    font-size: 18px;
    font-weight: 700;
    color: #000;
}

.expert-rating-count {
    font-size: 16px;
    color: #687994;
}

/* Quick Inquiry Card */
.expert-inquiry-card {
    width: 400px;
    border: 2px solid #6531FF;
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    background: #fff;

    /* Sticky 설정 */
    position: -webkit-sticky;
    position: sticky;
    top: 100px; /* 헤더 아래 고정 */

    float: right;
    z-index: 900;
}

.expert-inquiry-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #000;
}

.expert-inquiry-btn {
    display: block;
    width: 100%;
    background-color: #6531FF;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    padding: 12px 0;
    border-radius: 12px;
    border: none;
    text-decoration: none;
    transition: background-color 0.2s;
}

.expert-inquiry-btn:hover {
    background-color: #5225d3;
}

/* Content Tabs */
.expert-tabs {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(104, 121, 148, 0.2);
    padding-bottom: 20px;
    width: 760px;
}

.expert-tab {
    font-size: 20px;
    font-weight: 500;
    color: #687994;
    cursor: pointer;
    text-decoration: none;
    position: relative;
}

.expert-tab.active {
    font-weight: 700;
    color: #000;
}

.expert-tab.active::after {
    content: '';
    position: absolute;
    bottom: -21px; /* Adjust to align with border */
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #000;
}

/* Content Sections */
.expert-content-area {
    width: 760px;
}

.expert-section {
    margin-bottom: 80px;
}

.expert-section-title {
    font-size: 30px;
    font-weight: 700;
    color: #000;
    margin-bottom: 24px;
    letter-spacing: -0.9px;
}

/* Reviews */
.expert-reviews {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.expert-review-card {
    min-width: 266px;
    height: 106px;
    background-color: #f9fafb;
    border-radius: 16px;
    padding: 20px;
    position: relative;
    box-sizing: border-box;
}

.expert-review-avatar {
    width: 40px; height: 40px; border-radius: 50%; overflow: hidden; position: absolute; top: 20px; left: 20px; border: 1px solid rgba(104,121,148,0.2);
}

.expert-review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.expert-review-name {
    font-size: 14px;
    font-weight: 700;
    color: #000;
    margin-left: 52px;
    margin-bottom: 6px;
}

.expert-review-text {
    font-size: 14px;
    color: #687994;
    margin-left: 52px;
    line-height: 1.4;
}

/* Career & Broadcast List */
.expert-list-item {
    font-size: 16px;
    color: #000;
    margin-bottom: 12px;
}

.expert-text-content {
    font-size: 16px;
    color: #000;
    line-height: 32px;
    letter-spacing: -0.48px;
    white-space: pre-wrap;
    word-break: keep-all;
}

.expert-list-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 16px;
}

.expert-list-left {
    color: #000;
}

.expert-list-right {
    color: #687994;
}

/* Videos/Images Grid */
.expert-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.expert-grid-item {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 24px;
}

.expert-grid-item iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.expert-category-html {
    width: 100%;
    margin-bottom: 80px;
}

.expert-category-html img {
    max-width: 100%;
    height: auto;
    display: block;
}

.expert-grid-item {
    position: relative;
    width: 100%;            /* 부모 너비에 맞춤 */
    padding-bottom: 56.25%; /* 16:9 비율 (9 / 16 * 100) */
    height: 0;
    overflow: hidden;
}

.expert-grid-item iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;     /* 영역에 꽉 차게 맞춤 */
}

/* Footer */
.expert-footer {
    background-color: #101828;
    color: #fff;
    padding: 72px 360px;
    margin-top: 100px;
    width: 100%;
}

.footer-inner {
    width: 1200px;
    margin: 0 auto;
    position: relative;
}

.footer-logo {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 24px;
}

.footer-desc {
    color: #d1d5dc;
    font-size: 14px;
    margin-bottom: 60px;
}

.footer-links {
    position: absolute;
    right: 0;
    top: 0;
    display: flex;
    gap: 64px;
}

.footer-link-group h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 24px;
}

.footer-link-group a {
    display: block;
    color: #d1d5dc;
    font-size: 14px;
    margin-bottom: 8px;
    text-decoration: none;
}

.footer-info {
    color: #6a7282;
    font-size: 14px;
    line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 1200px) {

    .expert-container, .expert-header-inner, .footer-inner {
        width: 100%;
        padding: 0 20px;
        box-sizing: border-box;
    }
    .expert-info, .expert-tabs, .expert-content-area {
        width: 100%;
        box-sizing: border-box;
    }
    .expert-footer {
        padding: 40px 20px;
        box-sizing: border-box;
    }
}

@media (max-width: 768px) {
    .expert-container {
        margin-top: 0px;
    }
    .expert-hero {
        height: 240px;
        margin-bottom: 24px;
        border-radius: 0;
        margin-left: -20px;
        margin-right: -20px;
    }
    .expert-hero-sub {
        display: none;
    }
    .expert-tabs {
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        gap: 16px;
        padding-bottom: 12px;
        margin-bottom: 32px;
    }
    .expert-tab {
        font-size: 16px;
    }
    .expert-tab.active::after {
        bottom: -13px;
    }
    .expert-name {
        font-size: 24px;
    }
    .expert-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .expert-grid-item {
        height: 200px;
    }
    .expert-grid-item iframe {
        width: 100%;
        height: 100%;
    }
    .expert-section-title {
        font-size: 20px;
        margin-bottom: 16px;
    }
    .expert-text-content {
        font-size: 14px;
        line-height: 24px;
    }
    .btn-view-all-photos {
        bottom: 8px;
        right: 8px;
    }
    .btn-view-all-photos .icon-box {
        width: 36px;
        height: 36px;
    }
    .btn-view-all-photos img {
        width: 18px;
        height: 18px;
    }
    /* Fixed bottom inquiry bar for mobile */
    .expert-inquiry-card {
        width: 100%;
        position: fixed;
        bottom: 0;
        left: 0;
        top: auto;
        margin: 0;
        padding: 16px 36px;
        border: 2px solid #6531FF;
        border-radius: 20px 20px 0 0;
        background: #fff;
        z-index: 1000;
        box-shadow: 0 -4px 12px rgba(0,0,0,0.05);
        box-sizing: border-box;
        transition: transform 0.3s ease-in-out;
        float: none;
        position: fixed; /* Ensure fixed for mobile */
        transform: none; /* Reset desktop transform */
    }
    .expert-inquiry-card.hide-on-scroll {
        transform: translateY(100%);
    }
    .expert-inquiry-title {
        display: block;
        font-size: 20px;
        font-weight: 700;
        margin-bottom: 18px;
        color: #000;
        text-align: center;
    }
    .expert-inquiry-btn {
        font-size: 16px;
        padding: 14px 0;
        border-radius: 8px;
        border: none;
    }
    .expert-content-area {
        padding-bottom: 100px; /* Space for the fixed bottom bar */
    }
    .expert-section {
        margin-bottom: 40px;
    }
    .footer-links {
        position: static;
        flex-direction: row;
        gap: 32px;
        margin-top: 32px;
        width: 100%;
    }
}
