/* Team Page Styles */

/* Reuse global resets and font setup from styles.css */
.team-page {
    width: 100%;
    min-height: 100vh;
    background-color: #FFFFFF;
    position: relative;
    overflow-x: hidden;
    margin: 0;
    padding-top: 128px;
    /* Offset for Fixed Headers */
}

/* Team Hero */
.team-hero {
    width: 100%;
    height: 400px;
    background-color: #6B82AC;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/hero-v3.jpg');
    background-size: 107%;
    background-position: center;
}

.team-hero-content {
    max-width: 800px;
    padding: 0 24px;
    z-index: 2;
}

.team-hero-title {
    font-family: 'Manrope', sans-serif;
    font-size: 56px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 16px;
}

.team-hero-subtitle {
    font-family: 'Manrope', sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: #FFFFFF;
    line-height: 1.6;
}

/* Intro */
.team-intro {
    padding: 80px 24px 60px;
    background-color: #F9FAFB;
    display: flex;
    justify-content: center;
}

.intro-container {
    max-width: 900px;
    text-align: center;
}

.centered-desc {
    font-family: 'Manrope', sans-serif;
    font-size: 18px;
    color: #4B5563;
    line-height: 1.8;
}

/* Founder Section */
.founder-section {
    padding: 100px 40px;
    background-color: #FFFFFF;
}

.founder-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.founder-img-wrapper {
    height: 500px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.founder-text-col {
    display: flex;
    flex-direction: column;
}

.member-label {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #6B82AC;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.member-name {
    font-family: 'Manrope', sans-serif;
    font-size: 40px;
    font-weight: 800;
    color: #001F3F;
    margin-bottom: 24px;
}

.member-quote {
    font-family: 'Manrope', sans-serif;
    font-size: 24px;
    font-style: italic;
    color: #6B82AC;
    margin-bottom: 32px;
    line-height: 1.4;
    position: relative;
    padding-left: 20px;
    border-left: 4px solid #6B82AC;
}

.member-bio p {
    font-family: 'Manrope', sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: #4B5563;
    margin-bottom: 20px;
}

/* Featured Member Section (Side-by-Side) */
.featured-member-section {
    padding: 100px 40px;
    background-color: #F9FAFB;
}

.featured-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.featured-img-wrapper {
    height: 450px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Team Grid Header */
.team-grid-header {
    max-width: 1200px;
    margin: 0 auto 60px;
    text-align: center;
}

.team-grid-header h2 {
    font-family: 'Manrope', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: #001F3F;
    margin-bottom: 16px;
}

.header-line {
    width: 60px;
    height: 4px;
    background-color: #6B82AC;
    margin: 0 auto;
    border-radius: 2px;
}

.team-grid-section {
    padding: 100px 40px;
    background-color: #FFFFFF;
}

.team-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.team-card {
    background: #FFFFFF;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

.team-img-wrapper {
    width: 100%;
    height: 280px;
    background-color: #E5E7EB;
    overflow: hidden;
}

.team-img-placeholder {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}

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

.team-info {
    padding: 24px;
    text-align: center;
}

.team-name {
    font-family: 'Manrope', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 4px;
}

.team-role {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #6B82AC;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.team-bio {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    color: #5B5F64;
    line-height: 1.6;
}

/* CTA */
.join-team-cta {
    background-color: #6B82AC;
    padding: 80px 24px;
    text-align: center;
    color: #FFFFFF;
}

.cta-title {
    font-family: 'Manrope', sans-serif;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-subtitle {
    font-family: 'Manrope', sans-serif;
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.9;
}

.btn-join-team {
    display: inline-block;
    background-color: #FFFFFF;
    color: #000000;
    padding: 14px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-join-team:hover {
    background-color: #F3FAFF;
}

/* Responsive */
@media (max-width: 1024px) {

    .founder-container,
    .featured-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .featured-container .featured-text-col {
        order: 2;
    }

    .featured-container .featured-image-col {
        order: 1;
    }

    .team-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .team-container {
        grid-template-columns: 1fr;
    }
}

/* Mobile Spacing Optimization (< 510px) */
@media (max-width: 510px) {
    .team-hero-title {
        font-size: 36px;
    }

    .team-hero-subtitle {
        font-size: 16px;
    }

    .team-intro,
    .founder-section,
    .featured-member-section,
    .team-grid-section,
    .join-team-cta {
        padding: 48px 16px !important;
    }

    .founder-container,
    .featured-container,
    .team-container {
        gap: 24px !important;
    }

    .member-name {
        font-size: 32px;
    }

    .member-quote {
        font-size: 20px;
    }

    .team-name {
        font-size: 18px;
    }

    .cta-title {
        font-size: 28px;
    }

    .cta-title,
    .cta-subtitle {
        margin-bottom: 16px !important;
    }
}