/* Team Page Hero Section */
.team-hero-section {
    background: linear-gradient(rgba(7, 35, 68, 0.85), rgba(7, 35, 68, 0.85)), url('../assets/006.jpg') center/cover no-repeat;
    padding: 8rem 1.5rem 4rem;
    text-align: center;
    color: var(--white);
}

.team-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.team-hero-title {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.team-hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Team Main Section */
.team-main-section {
    padding: 5rem 0;
    background-color: #f9f9f9;
}

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

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

.team-intro-title {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
    display: inline-block;
}

.team-intro-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

.team-intro-description {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Team Member Grid */
.team-member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Team Member Cards */
.team-member-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
    cursor: pointer;
    display: block;
    text-decoration: none;
    color: inherit;
}

.team-member-card:hover {
    transform: translateY(-10px);
}

.team-member-image {
    width: 100%;
    height: 320px;
    overflow: hidden;
    position: relative;
}

.team-member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.team-member-info {
    padding: 1.5rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.team-member-name {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.team-member-title {
    color: var(--secondary-color);
    font-size: 1rem;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.team-member-location {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-member-location i {
    margin-right: 0.5rem;
    color: var(--secondary-color);
}

.team-learn-more {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--primary-color);
    color: white;
    padding: 0.8rem 0;
    text-align: center;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 2;
}

.team-learn-more i {
    margin-left: 0.5rem;
    transition: transform 0.2s ease;
}

.team-member-card:hover .team-learn-more {
    transform: translateY(0);
}

.team-member-card:hover .team-learn-more i {
    transform: translateX(3px);
}

/* Team CTA Section */
.team-cta-section {
    background-color: #f5f7fa;
    padding: 4rem 0;
}

.team-cta-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 1.5rem;
}

.team-cta-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.team-cta-subtitle {
    display: block;
    font-size: 1.1rem;
    font-weight: normal;
    color: #555;
    margin-top: 0.5rem;
}

.team-cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
    margin-top: 1rem;
}

.team-cta-button:hover {
    background-color: var(--secondary-color);
}

/* Team Modal Styles */
.team-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    padding: 20px;
}

.team-modal-content {
    background-color: white;
    border-radius: 10px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: team-modal-fade 0.3s ease-in-out;
}

@keyframes team-modal-fade {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.team-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 30px;
    color: #666;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
}

.team-modal-close:hover {
    color: var(--secondary-color);
}

.team-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
}

.team-modal-image {
    padding: 0;
    border-radius: 10px 0 0 10px;
    overflow: hidden;
    max-height: 600px;
}

.team-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.team-modal-info {
    padding: 2.5rem 2rem 2.5rem 0;
}

.team-modal-name {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.team-modal-title {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.team-modal-contact {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.team-modal-contact p {
    margin-bottom: 0.8rem;
    color: #555;
    display: flex;
    align-items: center;
}

.team-modal-contact i {
    margin-right: 1rem;
    color: var(--secondary-color);
    font-size: 1.1rem;
    width: 20px;
}

.team-modal-about-title {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.team-modal-about-list {
    list-style-type: none;
    padding-left: 0;
}

.team-modal-about-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: #555;
    line-height: 1.5;
}

.team-modal-about-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 992px) {
    .team-member-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 2rem;
    }
    
    .team-member-image {
        height: 280px;
    }
    
    .team-intro {
        margin-bottom: 3rem;
    }
}

@media (max-width: 768px) {
    .team-hero-title {
        font-size: 2.2rem;
    }
    
    .team-main-section {
        padding: 3rem 0;
    }
    
    .team-intro-title {
        font-size: 1.8rem;
    }
    
    .team-intro-description {
        font-size: 1rem;
    }
    
    .team-member-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1.5rem;
    }
    
    .team-member-image {
        height: 250px;
    }
    
    .team-member-info {
        padding: 1.2rem;
    }
    
    .team-member-name {
        font-size: 1.1rem;
    }
    
    .team-modal-grid {
        grid-template-columns: 1fr;
    }
    
    .team-modal-image {
        border-radius: 10px 10px 0 0;
        max-height: 400px;
    }
    
    .team-modal-info {
        padding: 1.5rem;
    }
    
    .team-modal-name {
        font-size: 1.5rem;
    }
    
    .team-modal-close {
        top: 10px;
        right: 10px;
        font-size: 24px;
    }

    .team-cta-title {
        font-size: 1.6rem;
    }
}