@charset "UTF-8";

/* =========================================
   1. Experts List Page (.mentoring-wrapper)
   ========================================= */
.mentoring-wrapper {
    --primary-color: #002F6C; /* Corporate Navy/Blue */
    --primary-hover: #004090;
    --accent-color: #00875a;  /* Keep University Green for specific call-to-actions */
    --text-main: #222;
    --text-sub: #555;
    --bg-body: #fff; /* Pure White Background */
    --border-color: #ddd;
    
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    color: var(--text-main);
    box-sizing: border-box;
    background-color: var(--bg-body);
    
    /* Reset */
    line-height: 1.5;
    text-align: left;
}

.mentoring-wrapper * {
    box-sizing: border-box;
}

.mentoring-wrapper .mentoring-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px;
}

/* Intro */
.mentoring-wrapper .intro-section {
    text-align: left !important;
    margin-bottom: 15px;
    display: block !important;
    justify-content: flex-start !important;
}
.mentoring-wrapper .intro-title {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    width: 100% !important;
    font-size: 2.4rem !important;
    font-weight: 700 !important;
    color: #111 !important;
    margin-bottom: 0 !important;
    letter-spacing: -0.5px;
}
.mentoring-wrapper .intro-desc {
    font-size: 1.05rem !important;
    color: #666 !important;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Search Bar - Minimalist */
.mentoring-wrapper .search-group {
    position: relative;
    margin: 0 auto 20px auto; 
    max-width: 700px;
    display: flex;
    gap: 12px;
}

.mentoring-wrapper .search-input {
    width: 100%;
    padding: 16px 20px;
    border-radius: 4px; /* Sharper corners for corporate look */
    border: 1px solid #ccc;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}
.mentoring-wrapper .search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 47, 108, 0.1);
}

.mentoring-wrapper .search-icon {
    position: absolute;
    right: 15px; 
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: #888;
    pointer-events: none;
    left: auto;
}
.mentoring-wrapper .search-input {
     padding-right: 40px; /* Space for icon inside input */
}

.mentoring-wrapper .btn-create {
    flex-shrink: 0;
    background: var(--accent-color); /* Green for 'Create' action */
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 0 24px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 1rem;
}
.mentoring-wrapper .btn-create:hover { background: #006040 !important; }

/* Filter Chips - Clean Tabs Style */
.mentoring-wrapper .filter-chips {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    border-bottom: 1px solid #eee; /* Tab-like feel */
    padding-bottom: 20px;
}
.mentoring-wrapper .chip {
    padding: 8px 16px;
    border-radius: 20px;
    background: transparent;
    border: 1px solid #ddd;
    color: #666;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
}
.mentoring-wrapper .chip:hover {
    border-color: #bbb;
    color: #333;
}
.mentoring-wrapper .chip.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    font-weight: 600;
}

/* Grid */
.mentoring-wrapper .mentors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* White Card Design */
.mentoring-wrapper .mentor-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px; /* Standard corporate radius */
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.mentoring-wrapper .mentor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    border-color: #ccc;
}

/* Minimal Header Image Area */
.mentoring-wrapper .card-header-img {
    height: 60px; /* Reduced height */
    background: #f4f6f8; /* Neutral gray/blue tint */
    border-bottom: 1px solid #eee;
    position: relative;
}

.mentoring-wrapper .mentor-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 3px solid #fff;
    object-fit: cover;
    position: absolute;
    bottom: -36px; /* Half overlapping */
    left: 20px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Corporate Badge */
.mentoring-wrapper .expert-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 4px 12px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--accent-color);
    color: #fff;
    border: none;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.mentoring-wrapper .card-body {
    padding: 45px 20px 25px 20px; /* Top padding clears avatar */
    flex: 1;
}

.mentoring-wrapper .mentor-name {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    color: #222 !important;
    margin: 0 0 4px 0 !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Category Badge next to name */
.mentoring-wrapper .mentor-name .badge-category {
     background: #f0f4f8; 
     color: var(--primary-color);
     font-size: 0.75rem; 
     padding: 2px 6px; 
     border-radius: 4px; 
     font-weight: normal;
     vertical-align: middle;
}

.mentoring-wrapper .mentor-dept {
    font-size: 0.85rem !important;
    color: #888 !important;
    margin-bottom: 15px !important;
    display: block;
    font-weight: 500;
}

.mentoring-wrapper .expertise-area {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto; /* Push to bottom if flex needed */
}
.mentoring-wrapper .exp-pill {
    background: #fff;
    border: 1px solid #eee;
    color: #666;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    transition: all 0.2s;
}
.mentoring-wrapper .mentor-card:hover .exp-pill {
    background: #f9f9f9;
    border-color: #ddd;
    color: #333;
}

.mentoring-wrapper .no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px;
    border-radius: 8px;
    color: #888;
}

/* External Expert Button - List Page */
.mentoring-wrapper .btn-external-wrapper {
    display: flex; 
    justify-content: flex-end; 
    margin-bottom: 20px;
}

.mentoring-wrapper a.btn-external {
    background: #333 !important;
    color: #fff !important;
    padding: 8px 16px !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    transition: background 0.2s !important;
    white-space: nowrap !important;
    border: none !important;
    box-shadow: none !important;
    font-size: 0.9rem !important;
}
.mentoring-wrapper a.btn-external:hover {
    background: #000 !important;
    color: #fff !important;
    text-decoration: none !important;
}

/* Pagination */
.mentoring-wrapper .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 50px;
}

.mentoring-wrapper .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    text-decoration: none;
    color: #777;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    background: #fff;
    border: 1px solid #eee;
}

.mentoring-wrapper .page-link.active {
    background-color: var(--accent-color) !important;
    color: #fff !important;
    font-weight: 700;
    border-color: var(--accent-color);
}

.mentoring-wrapper .page-link:hover:not(.active) {
    background-color: #f0f0f0;
    color: #333;
}

.mentoring-wrapper .page-nav {
    display: flex;
    align-items: center;
    color: #999;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 0 10px;
    transition: color 0.2s;
    cursor: pointer;
}
.mentoring-wrapper .page-nav:hover:not(.disabled) {
    color: #333;
}
.mentoring-wrapper .page-nav.disabled {
    color: #ddd;
    cursor: default;
    pointer-events: none;
}


/* =========================================
   2. Experts Detail Page (.profile-wrapper)
   ========================================= */
.profile-wrapper {
    --primary-color: #00875a;
    --primary-light: #e6f3ef;
    --secondary-bg: #f7f9fc;
    --text-main: #333;
    --text-sub: #666;
    
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
}

.profile-wrapper * {
    box-sizing: border-box;
}

.profile-wrapper .container-custom {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.profile-wrapper .breadcrumb {
    margin-bottom: 20px;
    font-size: 0.9rem;
    opacity: 0.9;
    padding-top: 20px;
}
.profile-wrapper .breadcrumb a {
    color: #555;
    text-decoration: none;
    font-weight: 500;
}
.profile-wrapper .breadcrumb i {
    margin: 0 8px;
    font-size: 0.8rem;
}

.profile-wrapper .profile-layout {
    display: flex;
    gap: 40px;
    margin-top: 0;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.profile-wrapper .profile-sidebar {
    flex: 0 0 320px;
}

.profile-wrapper .sidebar-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    padding: 30px;
    text-align: center;
}

.profile-wrapper .sidebar-sticky-content {
    position: sticky;
    top: 100px; /* Adjusted for GNB */
}

.profile-wrapper .profile-photo-frame {
    width: 160px;
    height: 160px;
    margin: 0 auto 20px auto;
    border-radius: 50%;
    border: 6px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    background: #eee;
}
.profile-wrapper .profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-wrapper .profile-name {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: #222;
}

.profile-wrapper .profile-role {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 25px;
    display: block;
}

.profile-wrapper .contact-box {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px 15px;
    text-align: left;
    margin-bottom: 25px;
}

.profile-wrapper .contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 12px;
}
.profile-wrapper .contact-item:last-child {
    margin-bottom: 0;
}
.profile-wrapper .contact-item i {
    color: var(--primary-color);
    width: 16px;
    text-align: center;
}

.profile-wrapper .btn-consult {
    display: block;
    width: 100%;
    padding: 16px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(0, 135, 90, 0.3);
}
.profile-wrapper .btn-consult:hover {
    background: #006040;
    transform: translateY(-2px);
}

.profile-wrapper .btn-list {
    display: block;
    width: 100%;
    margin-top: 15px;
    padding: 14px;
    background: #fff;
    color: #555;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.profile-wrapper .btn-list:hover {
    background: #f1f3f5;
    color: #333;
    border-color: #ccc;
}

.profile-wrapper .profile-content {
    flex: 1;
    padding-top: 10px;
}

.profile-wrapper .content-section {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    margin-bottom: 30px;
}

.profile-wrapper .section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}
.profile-wrapper .section-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #222;
    margin: 0;
}
.profile-wrapper .section-icon {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.profile-wrapper .bio-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
    white-space: pre-line;
}

.profile-wrapper .keyword-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.profile-wrapper .keyword-tag {
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
}

.profile-wrapper .history-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.profile-wrapper .history-item {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}
.profile-wrapper .year-label {
    font-weight: 800;
    color: var(--primary-color);
    width: 100px;
    flex-shrink: 0;
}
.profile-wrapper .history-desc {
    font-size: 1rem;
    color: #555;
}
.profile-wrapper .history-role {
    display: block;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}

@media (max-width: 900px) {
    .profile-wrapper .profile-layout {
        flex-direction: column;
        margin-top: -30px;
    }
    .profile-wrapper .profile-sidebar {
        flex: auto;
        width: 100%;
    }
    .profile-wrapper .sidebar-card {
        position: static;
        text-align: center;
    }
    .profile-wrapper .contact-box {
        display: inline-block;
        text-align: left;
        min-width: 280px;
    }
}


/* =========================================
   3. Shared & Modal Components
   ========================================= */

/* Modal Styles */
.modal {
    display: none; 
    position: fixed; 
    z-index: 9999; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.4); 
    backdrop-filter: blur(2px);
}
.modal-content {
    background-color: #fff;
    margin: 4vh auto; 
    padding: 0;
    border-radius: 8px;
    width: 90%; 
    max-width: 650px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
}
.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    background: #fdfdfd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-title { margin: 0; font-size: 1.25rem; color: #333; font-weight: 700; }
.close-btn {
    font-size: 24px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    position: static;
}
.close-btn:hover { color: #333; }

.modal-body {
    padding: 25px;
    max-height: 75vh;
    overflow-y: auto;
}

.form-group { margin-bottom: 25px; }
.form-label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.95rem; color: #444; }
.form-input { 
    width: 100%; 
    padding: 12px; 
    border: 1px solid #ddd; 
    border-radius: 4px;
    font-size: 0.95rem; 
    color: #333;
    transition: border-color 0.2s;
}
.form-input:focus { border-color: #002F6C; outline: none; }
.form-textarea { resize: vertical; min-height: 100px; }

.btn-submit {
    width: 100%;
    padding: 15px !important;
    background: #00875a !important;
    color: #fff !important;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-submit:hover { background: #006040 !important; }

/* Custom Select Style */
select.form-input {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    color: #000 !important;
    background-color: #fff !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 16px !important;
    padding: 5px 30px 5px 12px !important;
    height: auto !important;
    opacity: 1 !important;
}
select.form-input option {
    color: #000 !important;
    background: #fff !important;
}

/* History UI in Modal */
.hist-list {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 10px;
    display: none; /* Hidden by default until items added */
}
.hist-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 8px;
    cursor: move;
}
.hist-item:last-child { border-bottom: none; margin-bottom: 0; }
.hist-content { font-size: 0.9rem; flex: 1; }
.hist-meta { font-weight: 600; margin-bottom: 2px; color: #333; }
.hist-desc { color: #777; font-size: 0.85rem; }
.btn-del-hist {
    background: none; border: none; color: #aaa; font-size: 1.2rem; cursor: pointer;
}
.btn-del-hist:hover { color: #e74c3c; }
.hist-item.dragging { background: #f0f7ff; opacity: 0.7; border: 1px dashed #00875a; }

.history-input-wrapper {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #eee;
}
.hist-row { display: flex; gap: 10px; margin-bottom: 10px; align-items: center; }
.hist-row:last-child { margin-bottom: 0; }
.hist-input { flex: 1; min-width: 0; font-size: 0.9rem; padding: 10px; }

/* History Add Button (Fixed) */
button.btn-add-hist, .btn-add-hist {
    padding: 0 !important;
    border: none !important;
    background-color: #00875a !important; /* Solid Green */
    color: #fff !important;
    width: 34px !important; 
    height: 34px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    box-shadow: 0 2px 5px rgba(0, 135, 90, 0.2) !important;
    transition: all 0.2s !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 24px !important;
    line-height: 1 !important;
}
button.btn-add-hist:hover, .btn-add-hist:hover {
    background-color: #006040 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 135, 90, 0.3) !important;
}

/* Action Buttons (Detail Page) */
.action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}
.btn-action {
    flex: 1;
    padding: 12px !important;
    border-radius: 10px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    font-size: 0.95rem;
}
.btn-edit { background: #e9ecef !important; color: #495057 !important; }
.btn-edit:hover { background: #dee2e6 !important; color: #212529 !important; }
.btn-delete { background: #ffe3e3 !important; color: #e03131 !important; }
.btn-delete:hover { background: #ffc9c9 !important; color: #c92a2a !important; }

/* Bio text in Modal */
.bio-text {
    white-space: pre-wrap; 
    margin-top: 10px;
    line-height: 1.6;
    width: 100%;
    display: block;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
