.team-banner {
    background-position: center;
    background-size: cover;
    position: relative;
    padding: 0; 
    height: 100vh; 
    color: white;
    text-align: center;
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.banner-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0; 
}

.team-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.banner-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    font-weight: 800;
    color: var(--accent);
}

.team-intro {
    padding: 5rem 0;
    background-color: white;
}

.team-intro-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-size: clamp(2rem, 3vw, 2.5rem);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2rem;
}

.intro-text {
    font-size: 1.1rem;
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.team-members-section {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.team-card {
    background-color: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

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

.member-photo {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: all 0.5s ease;
}

.team-card:hover .member-photo {
    transform: scale(1.05);
}

.member-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.member-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.member-role {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.view-more-btn {
    margin-top: auto;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.view-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.view-more-btn i {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.view-more-btn:hover i {
    transform: translateX(3px);
}


.member-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.member-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: white;
    border-radius: 1rem;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(50px);
    transition: all 0.3s ease;
}

.member-modal.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
}

.modal-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.modal-title {
    flex: 1;
}

.modal-name {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.modal-role {
    color: var(--accent);
    font-weight: 600;
    font-size: 1.25rem;
}

.modal-body {
    padding: 2rem;
}

.modal-bio {
    color: var(--text-medium);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.modal-bio p {
    margin-bottom: 1rem;
}

.modal-qualifications {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 1.5rem;
}

.modal-qualification-title {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.modal-qualification-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.75rem;
}

.modal-qualification-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text-medium);
}

.modal-qualification-item i {
    color: var(--primary);
    margin-top: 0.25rem;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-light);
    color: var(--text-dark);
    border-radius: 50%;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background-color: var(--accent);
    color: white;
    transform: rotate(90deg);
}


@media (max-width: 992px) {
    .modal-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .modal-close {
        top: 1rem;
        right: 1rem;
    }
}

@media (max-width: 768px) {
    .team-intro, .team-members-section {
        padding: 3rem 0;
    }

    .modal-qualification-list {
        grid-template-columns: 1fr;
    }
    
    .member-photo {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .modal-content {
        width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }

    .member-modal {
        padding: 0;
    }
    
    .member-photo {
        height: 250px;
    }
}
