/**
 * Meet the Team Page Styles
 */

.team-page-container {
    padding-top: 0px;
    padding-bottom: 100px;
}

/* Hero Image */
.team-hero-image-wrapper {
    width: 100%;
    margin-bottom: 100px;
    overflow: hidden;
    border-radius: 24px;
    line-height: 0;
}

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

/* Intro Section */
.team-intro {
    /* max-width: 850px; */
    margin-bottom: 100px;
}

.team-page-title {
    font-size: 2.8125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.team-description p {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 25px;
}

/* Team Grid Area */
.team-grid-area {
    width: 100%;
    margin-bottom: 80px;
}

/* Bottom Content */
.team-bottom-content {
    margin-top: 40px;
    color: var(--text-muted);
}

.team-bottom-intro {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 60px;
}

.team-about-section {
    margin-bottom: 50px;
}

.team-subheading {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 25px;
}

.team-section-text p {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.team-section-text a {
    color: var(--accent-red);
    text-decoration: underline;
}

/* Featured Member */
.team-featured-member {
    display: flex;
    justify-content: center;
    margin-bottom: 80px;
}

.team-featured-member .member-card {
    width: 320px;
}

.team-featured-member .member-photo-wrapper {
    height: 320px;
}

/* Member Card General */
.member-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Featured Member */
.member-card .member-info {
    text-align: center;
}

/* Team Members Grid */
.team-members-grid .member-card {
    align-items: center;
}

.team-members-grid .member-card .member-info {
    text-align: center;
}

.member-photo-wrapper {
    width: 100%;
    height: 280px;
    margin-bottom: 25px;
    overflow: hidden;
    border-radius: 20px;
}

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

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

.member-photo-placeholder {
    width: 100%;
    height: 100%;
    background-color: #f0f0f0;
}

.member-role {
    font-size: 1rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 8px;
}

.member-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
}

/* Flex Grid for Others */
.team-members-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 60px 30px;
    width: 100%;
}

.team-members-grid .member-card {
    flex: 0 0 calc(25% - 30px);
    max-width: calc(25% - 30px);
}

/* Responsiveness */
@media (max-width: 1199px) {
    .team-members-grid .member-card {
        flex: 0 0 calc(33.333% - 30px);
        max-width: calc(33.333% - 30px);
    }
}

@media (max-width: 991px) {
    .team-page-title {
        font-size: 42px;
    }

    .team-members-grid .member-card {
        flex: 0 0 calc(50% - 30px);
        max-width: calc(50% - 30px);
    }
}

@media (max-width: 767px) {
    .team-page-title {
        font-size: 36px;
    }

    .team-hero-image {
        height: 250px;
        border-radius: 15px;
    }

    .team-members-grid .member-card {
        flex: 0 0 100%;
        max-width: 320px;
    }

    .team-featured-member .member-card {
        width: 100%;
    }

    .team-featured-member .member-photo-wrapper {
        height: auto;
        aspect-ratio: 1/1;
    }
}