/* =========================
   TEAM PAGE
========================= */

.team-page {
    background: #f5f7fb;
    padding-bottom: 80px;
}

/* Hero */
.team-hero {
    text-align: center;
    padding: 70px 20px 40px;
    background: linear-gradient(135deg, #0b2470, #0b3ea8);
    color: white;
}

.team-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.team-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Grid */
.team-grid {
    max-width: 1200px;
    margin: 60px auto 0;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}

/* Card */
.team-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.18);
    cursor: pointer;
    transition: transform 0.4s ease;
}

.team-card:hover {
    transform: translateY(-8px);
}

.team-card img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
}

/* Overlay */
.team-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(11, 36, 112, 0.95),
        rgba(11, 36, 112, 0.4)
    );
    color: white;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.team-card:hover .team-overlay {
    opacity: 1;
}

.team-overlay h3 {
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.team-overlay span {
    font-size: 0.95rem;
    opacity: 0.85;
    margin-bottom: 10px;
}

.team-overlay p {
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Mobile */
@media (max-width: 768px) {
    .team-card img {
        height: 320px;
    }

    .team-overlay {
        opacity: 1;
        background: rgba(11, 36, 112, 0.85);
    }
}


/* =========================
   TEAM MODAL
========================= */

.team-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.team-modal.show {
    display: flex;
}

.team-modal-content {
    background: white;
    border-radius: 18px;
    max-width: 900px;
    width: 90%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

.team-modal-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-modal-info {
    padding: 40px;
}

.team-modal-info h2 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.team-modal-info h4 {
    color: #0b3ea8;
    margin-bottom: 20px;
}

.team-modal-info p {
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
}

.team-modal-close {
    position: absolute;
    top: 25px;
    right: 35px;
    font-size: 42px;
    color: white;
    cursor: pointer;
}

/* Mobile */
@media (max-width: 768px) {
    .team-modal-content {
        grid-template-columns: 1fr;
    }

    .team-modal-content img {
        height: 320px;
    }

    .team-modal-info {
        padding: 25px;
    }
}
