/* Sections */
.about-section {
    padding: 80px 0;
}

.about-section h2 {
    text-align: left;
    margin: 0 0 30px 0;
    font-weight: 600;
    font-size: 34px;
    color: var(--color-green);
}

.about-section h3 {
    text-align: left;
    color: var(--color-grey);
    margin: 0 0 24px 0;
    font-weight: 600;
    font-size: 18px;
    line-height: 1.5;
}

.about-section.muted {
    background-color: #f6f9fa;
}

.banner-image {
    width: 40%;
    min-width: 400px;
    height: auto;
    height: fit-content;
    border-radius: 16px;
    background-size: cover;
}

/* Team grid */
team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
    gap: 32px;
    width: 100%;
    justify-content: center;
    justify-items: stretch;
}

.team-member {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    transition: transform 200ms ease-out, box-shadow 200ms ease-out;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.team-member:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.team-member .img {
    width: 100%;
    aspect-ratio: 3 / 4;
    background-position: center top;
    background-size: cover;
    background-color: #f0f0f0;
}

.member-details {
    background: var(--color-green);
    color: #ffffff;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    height: 92px;
}

.member-details .title {
    font-size: 12px;
    letter-spacing: 0.08em;
    color: #e0f2f1;
    text-transform: uppercase;
}

.member-details .name {
    font-size: 18px;
    font-weight: 700;
}

/* Team overlay */
#team-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 21;
    background-color: rgba(0, 0, 0, 0.4);
}

.profile {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    width: 92%;
    max-width: 1080px;
    max-height: 80vh;
}

.profile .img {
    width: 100%;
    background-position: center;
    background-size: cover;
}

.profile .profile-txt {
    display: flex;
    flex-direction: column;
    padding: 30px;
    gap: 12px;
    overflow-y: auto;
}

.profile .name {
    font-size: 36px;
    margin: 0;
}

.profile .title {
    font-size: 18px;
    color: #6c757d;
    margin: 0;
}

.profile .intro {
    padding: 10px 0 0;
    line-height: 1.6;
}

.profile .close {
    all: unset;
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    color: #000000;
    transition: opacity 200ms ease-out;
}

.profile .close:hover {
    opacity: 0.6;
}

/* Partners */
#community-partners {
    background-color: #f6f9fa;
}

.partners-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.partner-card {
    display: flex;
    flex-direction: row;
    gap: 24px;
    align-items: center;
    background: #ffffff;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

.partner-logo {
    width: 280px;
    max-width: 320px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 12px;
    padding: 12px 16px;
}

.partner-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.partner-text h4 {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--color-green);
}

.partner-text p {
    margin: 0;
    line-height: 1.6;
    color: var(--color-grey);
}

/* States */
.error-message,
.no-team-message {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    width: 100%;
    min-height: 200px;
    font-size: 18px;
    font-weight: 500;
}

.error-message {
    color: #dc3545;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    margin: 20px 0;
}

.no-team-message {
    color: #6c757d;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin: 20px 0;
}

/* Responsive */
@media screen and (min-width: 901px) {

    .about-section h2,
    .about-section h3 {
        text-align: left;
    }

    team-grid {
        justify-content: flex-start;
    }

    .profile {
        grid-template-columns: 40% 60%;
    }

    .profile .img {
        min-height: 100%;
    }
}

@media screen and (max-width: 900px) {

    .about-section h2,
    .about-section h3 {
        text-align: center;
    }

    team-grid {
        justify-content: center;
    }

    .partner-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .partner-logo {
        width: 100%;
        max-width: 320px;
    }

    .profile {
        grid-template-columns: 1fr;
        width: 94%;
    }

    .profile .img {
        height: 40vh;
    }
}

@media screen and (max-width: 600px) {
    .banner-image {
        display: none;
    }
}