/* =========================================
   صفحه اعضای هیئت مدیره
   ========================================= */

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

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

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

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

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* کارت اعضا */
.member-card {
    background: var(--page-card-bg, #fff);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    min-height: 320px;
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* سمت جلو کارت (حالت عادی) */
.card-front {
    padding: 30px 20px;
    text-align: center;
    background: var(--page-card-bg, #fff);
    transition: all 0.3s ease;
}

/* آواتار */
.member-avatar {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #fff;
    box-shadow: 0 8px 20px rgba(30, 60, 140, 0.3);
    overflow: hidden;
    flex-shrink: 0;
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.member-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--page-text, #1a2a4f);
    margin-bottom: 8px;
    text-align: center;
}

.member-position {
    font-size: 0.9rem;
    color: var(--light-blue);
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    text-align: center;
}

.view-resume-btn {
    background: none;
    border: 1px solid var(--light-blue);
    color: var(--light-blue);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

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

/* —— کارت رزومه (مودال شبیه قالب چاپی) —— */
.resume-sheet-modal {
    position: fixed;
    inset: 0;
    z-index: 2200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.resume-sheet-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.resume-sheet-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 24, 48, 0.55);
    backdrop-filter: blur(2px);
}

.resume-sheet {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: row;
    width: min(920px, 100%);
    max-height: min(88vh, 720px);
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 28px 80px rgba(10, 30, 70, 0.35);
    direction: rtl;
    transform: translateY(14px) scale(0.98);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.resume-sheet-modal.is-open .resume-sheet {
    transform: translateY(0) scale(1);
}

.resume-sheet__close {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: rgba(26, 42, 79, 0.08);
    color: #1a2a4f;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.resume-sheet__close:hover {
    background: rgba(26, 42, 79, 0.16);
    transform: rotate(90deg);
}

.resume-sheet__brand {
    position: relative;
    flex: 0 0 32%;
    max-width: 270px;
    min-width: 190px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    padding: 48px 22px 40px;
    background: linear-gradient(180deg, #0b1c44 0%, #143a7a 42%, #1e5bb8 72%, #3aa0d8 100%);
    color: #fff;
    text-align: center;
}

.resume-sheet__brand::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(90% 50% at 50% 0%, rgba(255, 255, 255, 0.08), transparent 55%),
        radial-gradient(80% 45% at 50% 100%, rgba(120, 200, 240, 0.22), transparent 60%);
    pointer-events: none;
}

.resume-sheet__brand::after {
    content: '';
    position: absolute;
    top: 78px;
    left: -11px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 12px 13px 12px 0;
    border-color: transparent #0f2a58 transparent transparent;
    z-index: 1;
}

.resume-sheet__logo-wrap {
    position: relative;
    z-index: 1;
    width: min(100%, 210px);
    height: auto;
    min-height: 0;
    border-radius: 0;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    overflow: visible;
    padding: 0;
}

.resume-sheet__logo {
    width: 100%;
    max-width: 188px;
    height: auto;
    max-height: 110px;
    object-fit: contain;
    filter: none;
    /* PNG لوگو پس‌زمینه مشکی دارد؛ مشکی را شفاف می‌کند تا روی گرادیان بنشیند */
    mix-blend-mode: screen;
}

.resume-sheet__brand-name {
    display: none;
}

.resume-sheet__body {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    padding: 44px 40px 36px 32px;
    overflow: auto;
    background: #fff;
}

.resume-sheet__waves {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.55;
    background:
        radial-gradient(130px 80px at 6% 4%, rgba(170, 195, 220, 0.35), transparent 70%),
        radial-gradient(150px 90px at 2% 98%, rgba(170, 195, 220, 0.28), transparent 72%);
}

.resume-sheet__identity {
    position: relative;
    z-index: 1;
    margin-bottom: 30px;
    padding: 0;
    text-align: right;
    background: transparent !important;
    color: inherit;
    box-shadow: none;
    border: none;
    min-height: 0;
}

.resume-sheet__name {
    margin: 0 0 10px;
    font-size: clamp(1.75rem, 2.8vw, 2.25rem);
    font-weight: 900;
    color: #0b1220 !important;
    line-height: 1.4;
    letter-spacing: -0.01em;
    text-shadow: none;
    background: transparent !important;
}

.resume-sheet__position {
    margin: 0;
    font-size: 1.05rem;
    color: #334155 !important;
    font-weight: 600;
    background: transparent !important;
}

.resume-sheet__block {
    position: relative;
    text-align: center;
}

.resume-sheet__heading {
    margin: 0 0 10px;
    font-size: 1.15rem;
    font-weight: 800;
    color: #1e5bb8;
}

.resume-sheet__education-text {
    margin: 0;
    font-size: 1rem;
    color: #2d3748;
    font-weight: 600;
}

.resume-sheet__divider {
    border: none;
    border-top: 1px solid #d8dee8;
    margin: 22px 8% 20px;
}

.resume-sheet__list {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.resume-sheet__list li {
    position: relative;
    padding-right: 18px;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #3a4558;
}

.resume-sheet__list li::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0.72em;
    width: 10px;
    height: 2px;
    background: #4a5568;
    border-radius: 1px;
}

.resume-sheet__list li.is-empty {
    color: #94a3b8;
    text-align: center;
    padding-right: 0;
}

.resume-sheet__list li.is-empty::before {
    display: none;
}

body.resume-sheet-open {
    overflow: hidden;
}

body.lang-en .resume-sheet {
    direction: ltr;
}

body.lang-en .resume-sheet__identity,
body.lang-en .resume-sheet__list {
    text-align: left;
}

body.lang-en .resume-sheet__list li {
    padding-right: 0;
    padding-left: 18px;
}

body.lang-en .resume-sheet__list li::before {
    right: auto;
    left: 0;
}

body.lang-en .resume-sheet__brand::after {
    left: auto;
    right: -10px;
    border-width: 11px 0 11px 12px;
    border-color: transparent transparent transparent #0f2a58;
}

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

body.lang-en .resume-sheet__body {
    padding: 40px 28px 32px 36px;
}

/* واکنش‌گرا */
@media (max-width: 768px) {
    .board-section {
        padding: 40px 0;
    }
    .board-title {
        font-size: 1.8rem;
    }
    .member-avatar {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }
    .member-name {
        font-size: 1.1rem;
    }

    .resume-sheet-modal {
        padding: 12px;
        align-items: flex-start;
    }

    .resume-sheet {
        flex-direction: column;
        max-height: calc(100vh - 24px);
        width: 100%;
    }

    .resume-sheet__brand {
        flex: 0 0 auto;
        max-width: none;
        min-width: 0;
        width: 100%;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 14px;
        padding: 18px 16px;
        background: linear-gradient(90deg, #0b1c44 0%, #1a4fa8 55%, #3aa0d8 100%);
    }

    .resume-sheet__brand::after {
        display: none;
    }

    .resume-sheet__logo-wrap {
        width: auto;
        max-width: 150px;
        min-height: 0;
        padding: 0;
        border-radius: 0;
        background: transparent;
        border: none;
        box-shadow: none;
    }

    .resume-sheet__logo {
        max-width: 140px;
        max-height: 58px;
    }

    .resume-sheet__body {
        padding: 28px 20px 24px;
    }

    .resume-sheet__name {
        font-size: 1.55rem;
        color: #0b1220;
    }

    .resume-sheet__position {
        font-size: 0.98rem;
        color: #334155;
    }

    .resume-sheet__close {
        top: 10px;
        left: 10px;
        background: rgba(255, 255, 255, 0.92);
        color: #0b2a5c;
    }

    body.lang-en .resume-sheet__close {
        right: 8px;
        left: auto;
    }
}
body.lang-en .board-member-info,
body.lang-en .board-member-info h3 {
    text-align: left;
}
body.lang-en .member-position,
body.lang-en .member-name {
    text-align: center;
}
