/* ---------- RESET & BASE ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #0a0c10;
    color: #ffffff;
    line-height: 1.6;
}

.hero-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/photos/background.webp');
    background-size: cover;
    background-position: 85% 30%;
    z-index: -2;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.6) 60%, rgba(0,0,0,0.4) 100%);
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem 1rem;
}

/* ---------- HEADER & NAVBAR ---------- */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(233, 196, 106, 0.2);
    padding-bottom: 0.5rem;
}

.logo img {
    max-height: 110px;
    width: auto;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    text-decoration: none;
    color: #f5f5f5;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.2s;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #e9c46a;
    transition: width 0.2s;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.main-nav a:hover,
.main-nav a.active {
    color: #e9c46a;
}

.hamburger {
    display: none;
    background: rgba(0,0,0,0.5);
    border: none;
    cursor: pointer;
    padding: 0.7rem;
    border-radius: 50%;
    backdrop-filter: blur(4px);
    z-index: 200;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background-color: #ffffff;
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* ---------- عنوان صفحه ---------- */
.title-block {
    text-align: center;
    margin-bottom: 3rem;
}

.title-block h1 {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff, #e9c46a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.separator {
    text-align: center;
    font-size: 1.8rem;
    color: #e9c46a;
    margin: 0.5rem 0;
    letter-spacing: 4px;
    opacity: 0.7;
}

/* ---------- کارت‌های مربیان (دسکتاپ) ---------- */
.coaches-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: center;
    margin: 2rem 0 4rem;
}

.coach-card {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(233,196,106,0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.coach-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px rgba(0,0,0,0.4);
    border-color: #e9c46a;
}

.coach-img {
    width: 100%;
    height: 440px;
    overflow: hidden;
    flex-shrink: 0;
}

.coach-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s;
}

.coach-card:hover .coach-img img {
    transform: scale(1.03);
}

.coach-info {
    padding: 1.8rem;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.coach-info h2 {
    font-size: 1.7rem;
    font-weight: 700;
    color: #e9c46a;
    margin-bottom: 0.5rem;
}

.coach-title {
    font-size: 1rem;
    color: #ddd;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.btn-more {
    background: transparent;
    border: 2px solid #e9c46a;
    color: #e9c46a;
    padding: 0.6rem 1.8rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: auto;
    align-self: center;
}

.btn-more:hover {
    background: #e9c46a;
    color: #0a0c10;
}

/* ---------- مودال ---------- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #0a0c10;
    max-width: 700px;
    width: 90%;
    border-radius: 28px;
    border: 1px solid #e9c46a;
    padding: 2rem;
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
    color: #eee;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: #e9c46a;
}

.close-modal:hover {
    color: #fff;
}

#modal-body p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

#modal-body strong {
    color: #e9c46a;
}

/* ---------- بخش Board of Directors ---------- */
.board-section {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(233, 196, 106, 0.2);
}

.board-title {
    text-align: center;
    margin-bottom: 2.5rem;
}

.board-title h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #e9c46a;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

/* ===== Board of Directors Grid ===== */
.board-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: center;
    margin: 2rem 0;
}

.board-member {
    flex: 1;
    min-width: 200px;
    max-width: 280px;
    text-align: center;
}

.board-img {
    width: 250px;
    height: 250px;
    margin: 0 auto 1.2rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(233, 196, 106, 0.4);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.board-img:hover {
    transform: scale(1.03);
    border-color: #e9c46a;
    box-shadow: 0 12px 28px rgba(233, 196, 106, 0.2);
}

.board-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.board-member h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.3rem;
}

.board-role {
    font-size: 0.9rem;
    color: #e9c46a;
    font-weight: 500;
    margin-bottom: 0;
}

/* ---------- فوتر ---------- */
.site-footer {
    border-top: 1px solid rgba(233, 196, 106, 0.3);
    padding-top: 1.5rem;
    margin-top: 2rem;
    text-align: center;
}

.footer-contact {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 0.8rem;
}

.contact-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #f0f0f0;
}

.copyright {
    font-size: 0.75rem;
    opacity: 0.6;
}

/* ===== دکمه بازگشت به بالا ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: linear-gradient(145deg, #e9c46a, #d4a832);
    color: #0a0c10;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    z-index: 1000;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    border: none;
    font-family: monospace;
    text-decoration: none;
}

.back-to-top .arrow {
    font-size: 40px;
    font-weight: bolder;
    transition: transform 0.3s ease;
    display: inline-block;
}

.back-to-top:hover {
    background: linear-gradient(145deg, #f4d078, #e9c46a);
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(233, 196, 106, 0.4);
}

.back-to-top:hover .arrow {
    transform: translateY(-4px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* ===== RESPONSIVE MOBILE ===== */
@media (max-width: 992px) {
    .coach-card {
        min-width: 280px;
        max-width: 450px;
    }
    .coach-img {
        height: 380px;
    }
    .board-member {
        max-width: 240px;
    }
    .board-img {
        width: 160px;
        height: 160px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    .logo img {
        max-height: 70px;
    }
    .hamburger {
        display: block;
    }
    .main-nav ul {
        position: fixed;
        top: 0;
        left: -100%;
        width: 75%;
        max-width: 300px;
        height: 100vh;
        background: rgba(8,10,15,0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: left 0.35s;
        z-index: 150;
        border-radius: 0 20px 20px 0;
        padding: 2rem 1rem;
    }
    .main-nav ul.active {
        left: 0;
    }
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px,6px);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px,-6px);
    }
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.7);
        z-index: 140;
        backdrop-filter: blur(4px);
    }
    .title-block h1 {
        font-size: 2.2rem;
    }

    /* ===== مربیان در موبایل ===== */
    .coaches-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        justify-items: center;
        margin: 1rem 0 2rem;
        align-items: stretch;
    }
    .coach-card {
        flex: unset;
        width: 100%;
        max-width: 100%;
        min-width: unset;
        border-radius: 20px;
        margin: 0;
        height: 100%;
    }
    .coach-img {
        height: 200px;
    }
    .coach-info {
        padding: 0.8rem;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    .coach-info h2 {
        font-size: 1rem;
        margin-bottom: 0.4rem;
    }
    .coach-title {
        font-size: 0.7rem;
        margin-bottom: 0.6rem;
    }
    .btn-more {
        padding: 0.3rem 0.8rem;
        font-size: 0.65rem;
        margin-top: auto;
        align-self: center;
    }
    .mo-card .coach-title {
        margin-top: 0.5rem;
    }

    /* ===== Board of Directors در موبایل (دو ستونه کنار هم) ===== */
    .board-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        justify-items: center;
        margin: 1rem 0 2rem;
        align-items: start;
    }
    .board-member {
        width: 100%;
        max-width: 180px;
        min-width: 120px;
    }
    .board-img {
        width: 130px;
        height: 130px;
        margin: 0 auto 1rem;
    }
    .board-member h3 {
        font-size: 1rem;
    }
    .board-role {
        font-size: 0.8rem;
    }

    .footer-contact {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
    }
    .back-to-top .arrow {
        font-size: 28px;
    }
}

/* ===== موبایل خیلی کوچک (عرض کمتر از 480px) ===== */
@media (max-width: 480px) {
    .coaches-grid {
        gap: 0.8rem;
    }
    .coach-img {
        height: 160px;
    }
    .coach-info h2 {
        font-size: 0.85rem;
        margin-bottom: 0.3rem;
    }
    .coach-title {
        font-size: 0.6rem;
    }
    .btn-more {
        font-size: 0.55rem;
        padding: 0.2rem 0.6rem;
    }
    .mo-card .coach-title {
        margin-top: 0.4rem;
    }

    .board-grid {
        gap: 0.8rem;
    }
    .board-member {
        max-width: 150px;
        min-width: 100px;
    }
    .board-img {
        width: 140px;
        height: 140px;
    }
    .board-member h3 {
        font-size: 0.85rem;
    }
    .board-role {
        font-size: 0.65rem;
    }
}