/* Team Page Specific Styles */

/* Team Hero Section */
.team-hero {
    height: 60vh;
    min-height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    overflow: hidden;
}

.team-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.team-hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.team-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgb(45, 90, 74), rgba(45, 90, 74, 0.7));
    z-index: 2;
}

.team-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
    max-width: 900px;
    padding: 2rem 1.5rem;
    margin: 0 auto;
}

.team-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.team-hero-subtitle {
    font-size: 1.35rem;
    line-height: 1.6;
    color: var(--white);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Team Introduction Section */
.team-intro-section {
    padding: var(--section-padding);
    background-color: var(--white);
}

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

.team-intro-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-green);
}

.team-intro-content .lead-text {
    font-size: 1.25rem;
    line-height: 1.9;
    color: var(--primary-green);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.team-intro-content p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-color);
    margin-bottom: 1rem;
}

/* Leadership & Management Sections */
.leadership-section,
.management-section {
    padding: var(--section-padding);
    background-color: var(--neutral-light);
}

.management-section {
    background-color: var(--white);
}

/* Team Grid */
.team-grid {
    display: grid;
    gap: 2.5rem;
    margin-top: 3rem;
}

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

.management-grid {
    grid-template-columns: repeat(3, 1fr);
}

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

/* Team Member Card */
.team-member-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.team-member-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.team-member-image {
    position: relative;
    width: 100%;
    padding-top: 100%; /* Square aspect ratio */
    overflow: hidden;
    background-color: var(--light-green);
}

.team-member-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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


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

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

.team-member-role {
    font-size: 1rem;
    color: var(--highlight);
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.team-member-bio {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
    flex-grow: 1;
    font-style: italic;
}

/* Community Section */
.community-section {
    padding: 4rem 0;
    background-color: var(--neutral-light);
}

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

.community-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

/* Image Break Section */
.image-break-section {
    padding: 3rem 0;
    background-color: var(--neutral-light);
}

.image-break-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.image-break-content img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    display: block;
}

/* Team Values Section */
.team-values-section {
    padding: var(--section-padding);
    background-color: var(--white);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.value-item {
    text-align: center;
    padding: 2rem 1.5rem;
    background-color: var(--neutral-light);
    border-radius: var(--border-radius);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--highlight);
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    background-color: var(--white);
}

.value-icon {
    color: var(--primary-green);
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.value-item h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--primary-green);
    font-family: var(--heading-font);
}

.value-item p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-color);
    margin: 0;
}

/* Join Team CTA Section */
.join-team-section {
    padding: var(--section-padding);
    position: relative;
    overflow: hidden;
}

.join-team-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.join-team-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.join-team-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(45, 90, 74, 0.85), rgba(45, 90, 74, 0.9));
    z-index: 2;
}

.join-team-section .container {
    position: relative;
    z-index: 3;
}

.join-team-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    color: var(--white);
}

.join-team-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.join-team-content p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.95);
}

.join-team-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.join-team-buttons .btn-primary {
    background-color: var(--white);
    color: var(--primary-green);
}

.join-team-buttons .btn-primary:hover {
    background-color: var(--highlight);
    color: var(--white);
}

.join-team-buttons .btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.join-team-buttons .btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-green);
}

/* Responsive Styles for Team Page */
@media (max-width: 1200px) {
    .management-grid,
    .team-grid-main {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .team-hero {
        height: auto;
        min-height: 65vh;
        padding: 90px 0 2rem 0;
        overflow: visible;
    }
    
    .team-hero-background,
    .team-hero-overlay {
        min-height: 100%;
        height: 100%;
    }
    
    .team-hero .container {
        align-items: flex-start;
        padding-top: 2.5rem;
        height: auto;
    }
    
    .team-hero-content {
        padding-top: 1.5rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding-left: 0;
        padding-right: 0;
    }
    
    .team-hero-title {
        font-size: 2.5rem;
        line-height: 1.3;
        margin-bottom: 1rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
    }
    
    .team-hero-subtitle {
        font-size: 1.1rem;
        line-height: 1.6;
        word-wrap: break-word;
        overflow-wrap: break-word;
        text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
    }
    
    .team-intro-content h2 {
        font-size: 2rem;
    }
    
    .leadership-grid {
        grid-template-columns: 1fr;
    }
    
    .management-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .team-hero {
        height: auto;
        min-height: 60vh;
        padding: 80px 0 2rem 0;
        overflow: visible;
    }
    
    .team-hero-background {
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        height: 100%;
        min-height: 100%;
    }
    
    .team-hero-overlay {
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        height: 100%;
        min-height: 100%;
    }
    
    .team-hero .container {
        align-items: flex-start;
        justify-content: flex-start;
        padding-top: 3rem;
        height: auto;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .team-hero-content {
        padding-top: 1.5rem;
        margin-top: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding-left: 0;
        padding-right: 0;
    }
    
    .team-hero-title {
        font-size: 2rem;
        line-height: 1.3;
        margin-bottom: 1rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        padding: 0;
        text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
    }
    
    .team-hero-subtitle {
        font-size: 1rem;
        line-height: 1.6;
        padding: 0;
        word-wrap: break-word;
        overflow-wrap: break-word;
        margin-bottom: 0;
        text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
    }
    
    .team-intro-content {
        text-align: left;
    }
    
    .team-intro-content h2 {
        font-size: 1.75rem;
        text-align: center;
    }
    
    .team-intro-content .lead-text {
        font-size: 1.1rem;
    }
    
    .team-intro-content p {
        font-size: 1rem;
    }
    
    .leadership-grid,
    .management-grid,
    .team-grid-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .team-member-info {
        padding: 1.5rem;
    }
    
    .team-member-name {
        font-size: 1.25rem;
    }
    
    .team-member-role {
        font-size: 0.9rem;
    }
    
    .team-member-bio {
        font-size: 0.9rem;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .value-item {
        padding: 1.5rem;
    }
    
    .join-team-content h2 {
        font-size: 2rem;
    }
    
    .join-team-content p {
        font-size: 1rem;
    }
    
    .join-team-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .join-team-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .team-hero {
        height: auto;
        min-height: 55vh;
        padding: 70px 0 1.5rem 0;
        overflow: visible;
    }
    
    .team-hero-background {
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        height: 100%;
        min-height: 100%;
    }
    
    .team-hero-overlay {
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        height: 100%;
        min-height: 100%;
    }
    
    .team-hero .container {
        align-items: flex-start;
        justify-content: flex-start;
        padding-top: 2rem;
        height: auto;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .team-hero-content {
        padding-top: 1rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding-left: 0;
        padding-right: 0;
    }
    
    .team-hero-title {
        font-size: 1.75rem;
        line-height: 1.25;
        margin-bottom: 0.75rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        padding: 0;
        text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
    }
    
    .team-hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.5;
        padding: 0;
        word-wrap: break-word;
        overflow-wrap: break-word;
        margin-bottom: 0;
        text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
    }
    
    .team-intro-content h2 {
        font-size: 1.5rem;
    }
    
    .team-intro-content .lead-text {
        font-size: 1rem;
    }
    
    .team-member-info {
        padding: 1.25rem;
    }
    
    .team-member-name {
        font-size: 1.1rem;
    }
    
    .team-member-role {
        font-size: 0.85rem;
    }
    
    .team-member-bio {
        font-size: 0.85rem;
    }
    
    .value-item {
        padding: 1.25rem;
    }
    
    .value-item h4 {
        font-size: 1.1rem;
    }
    
    .value-item p {
        font-size: 0.9rem;
    }
    
    .join-team-content h2 {
        font-size: 1.75rem;
    }
    
    .join-team-content p {
        font-size: 0.95rem;
    }
}

/* Modern image-free team redesign */
.team-intro-section {
    background: linear-gradient(180deg, #ffffff 0%, #f6faf7 100%);
}

.team-metrics {
    margin-top: 1.8rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.team-metric {
    background: #ffffff;
    border: 1px solid rgba(45, 90, 74, 0.12);
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 10px 20px rgba(18, 36, 29, 0.08);
}

.team-metric h3 {
    margin-bottom: 0.25rem;
    font-size: 1.2rem;
}

.team-metric p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.55;
}

.leadership-section {
    background: linear-gradient(180deg, #edf5f1 0%, #f8fbf9 100%);
}

.modern-team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem;
}

.team-member-card {
    border: 1px solid rgba(45, 90, 74, 0.12);
    border-radius: 1rem;
    padding: 1.1rem;
    background: linear-gradient(165deg, #ffffff, #f2f8f4);
    box-shadow: 0 16px 28px rgba(20, 42, 34, 0.09);
}

.team-member-image {
    display: none;
}

.team-member-avatar {
    width: 62px;
    height: 62px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.04em;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-green), #6ea182);
    box-shadow: 0 10px 18px rgba(45, 90, 74, 0.25);
    margin-bottom: 0.75rem;
}

.team-member-info {
    text-align: left;
    padding: 0;
}

.team-member-role {
    text-transform: none;
    letter-spacing: 0;
    color: #3f6a58;
    margin-bottom: 0.7rem;
}

.team-member-bio {
    font-style: normal;
    font-size: 0.94rem;
    line-height: 1.65;
    margin-bottom: 0.45rem;
}

.team-member-bio:last-of-type {
    margin-bottom: 0;
}

.team-member-tags {
    margin-top: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.team-member-tags span {
    font-size: 0.75rem;
    font-weight: 700;
    color: #335c4b;
    background: rgba(247, 195, 95, 0.32);
    border: 1px solid rgba(247, 195, 95, 0.62);
    border-radius: 999px;
    padding: 0.22rem 0.58rem;
}

.community-section {
    background: #ffffff;
    padding: 3.2rem 0;
}

.community-content {
    max-width: 900px;
}

.community-content h2 {
    margin-bottom: 0.65rem;
}

.support-pill-list {
    margin-top: 1.15rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.55rem;
}

.support-pill-list span {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(45, 90, 74, 0.18);
    background: rgba(45, 90, 74, 0.08);
    color: var(--primary-green);
    font-size: 0.82rem;
    font-weight: 600;
}

@media (max-width: 991px) {
    .team-metrics,
    .modern-team-grid {
        grid-template-columns: 1fr;
    }
}

