/* =========================================
   صفحه کمیته تخصصی
   ========================================= */

.committee-section {
    padding: 80px 0;
    background: var(--page-bg, linear-gradient(135deg, #f0f4fc 0%, #e8eef8 100%));
    min-height: 100vh;
}

.committee-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.committee-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--page-text, var(--primary-blue));
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 15px;
}

.committee-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 3px;
    background: var(--light-blue);
    border-radius: 3px;
}

.committee-subtitle {
    text-align: center;
    font-size: 1.3rem;
    color: var(--light-blue);
    margin-bottom: 50px;
    font-weight: normal;
}

/* تب‌ها */
.committee-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.tab-btn {
    background: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.tab-btn:hover {
    background: var(--light-blue);
    color: #fff;
    transform: translateY(-2px);
}

.tab-btn.active {
    background: var(--primary-blue);
    color: #fff;
    box-shadow: 0 4px 12px rgba(30, 60, 140, 0.3);
}

/* محتوای تب‌ها */
.tab-contents {
    position: relative;
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

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

/* کارت کمیته */
.committee-card {
    background: var(--page-card-bg, #fff);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.committee-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    padding: 25px 30px;
    text-align: center;
}

.committee-header i {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 10px;
    display: inline-block;
}

.committee-header h3 {
    font-size: 1.5rem;
    color: #fff;
    margin: 0;
}

/* جدول */
.table-wrapper {
    overflow-x: auto;
    padding: 20px;
}

.members-table {
    width: 100%;
    border-collapse: collapse;
    text-align: right;
}

.members-table thead tr {
    background: #f0f4fc;
    border-bottom: 2px solid var(--light-blue);
}

.members-table th {
    padding: 12px 12px;
    font-size: 0.95rem;
    font-weight: bold;
    color: var(--page-text, var(--primary-blue));
    line-height: 1.45;
    vertical-align: middle;
}

.members-table td {
    padding: 12px 12px;
    border-bottom: 1px solid #eee;
    color: var(--page-text, #444);
    vertical-align: middle;
}

.members-table th.th-member-type {
    max-width: 8.5rem;
    white-space: normal;
}

.members-table td.member-cell {
    white-space: pre-wrap;
}

.members-table td.member-background {
    max-width: 16rem;
    white-space: pre-wrap;
}

.members-table tbody tr:hover {
    background: #f8f9ff;
}

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

.member-resume-cell {
    text-align: center;
    white-space: nowrap;
}

.view-resume-btn {
    background: none;
    border: 1px solid var(--light-blue);
    color: var(--light-blue);
    padding: 6px 14px;
    border-radius: 25px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.view-resume-btn:hover {
    background: var(--light-blue);
    color: #fff;
}

tr.member-resume-open td {
    background: #f0f4fc;
}

.member-resume-row td {
    padding: 0 20px 16px !important;
    border-bottom: 1px solid #eee;
    background: #f8f9ff;
}

.resume-panel {
    position: relative;
    background: linear-gradient(135deg, var(--primary-blue), #2a4ba8);
    color: #fff;
    border-radius: 16px;
    padding: 16px 20px 16px 48px;
    animation: fadeIn 0.3s ease;
}

.resume-text {
    font-size: 0.9rem;
    line-height: 1.8;
    white-space: pre-wrap;
}

.close-resume {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.close-resume:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg);
}

body.lang-en .close-resume {
    left: auto;
    right: 12px;
}

body.lang-en .resume-panel {
    padding: 16px 48px 16px 20px;
}

/* واکنش‌گرا */
@media (max-width: 768px) {
    .committee-section {
        padding: 40px 0;
    }
    
    .committee-title {
        font-size: 1.8rem;
    }
    
    .committee-subtitle {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }
    
    .tab-btn {
        padding: 8px 18px;
        font-size: 0.85rem;
    }
    
    .committee-header {
        padding: 18px 20px;
    }
    
    .committee-header h3 {
        font-size: 1.2rem;
    }
    
    .members-table th,
    .members-table td {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
}
body.lang-en .committee-member-info,
body.lang-en .committee-member-info h3,
body.lang-en .committee-member-info p {
    text-align: left;
}
