.about-hero {
    width: 100%;
    height: 100%;
    padding: 16rem 20rem 16rem 20rem;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    margin-top: -5.2rem;
    gap: 1rem;
    background-image: url("../assets/images/aboute-hero.png");
    background-size: cover;
    /* makes image fill the box */
    background-position: center;
    /* keeps subject centered */
    background-repeat: no-repeat;
    /* prevents tiling */

}

.about-hero h1 {
    color: #FFF;
    text-align: center;
    font-size: 2rem;
    font-style: normal;
    font-weight: 600;
    line-height: normal;

}

.about-hero p {
    color: #FFF;
    text-align: center;
    font-size: 1.125rem;
    font-style: normal;
    font-weight: 500;
    line-height: normal;

}

.impact-body {

    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(199deg, #E8E8E8 -0.59%, #EAF3FA 100%);

}

.about-text {
    color: #000;
    font-family: Poppins;
    font-size: 1.125rem;
    font-style: normal;
    font-weight: 300;
    line-height: 2rem;
    /* 177.778% */
}

.teamsec {
    width: 95%;
    /* margin-bottom: 6rem; */
}

.team {
    display: flex;
    /* flex-direction: column; */
    flex-wrap: wrap;
    gap: 3rem;
    padding: 0 1rem;
}

.team-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #eaeaea;
    cursor: pointer;
    /* Minimal border */
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    align-items: center;
    /* Center items for clean look */
    text-align: center;
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.05);
    /* Very subtle hover shadow */
    border-color: #e0e0e0;
}

.team-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: top;
    background-color: #fafafa;
}

.team-text {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}

.person-name {
    color: #1a1a1a;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
}

.desg {
    color: #096;
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;

    letter-spacing: 0.05em;
    /* margin-bottom: 0.75rem; */
}

.person-about {
    display: none;
    /* Hide description by default */
}

/* Modal Styles */
.team-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: none;
    /* Flex when open */
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-modal-overlay.open {
    display: flex;
    opacity: 1;
}

.team-modal-content {
    background: #fff;
    padding: 3rem;
    border-radius: 1.5rem;
    width: 90%;
    max-width: 700px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.team-modal-overlay.open .team-modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2.5rem;
    cursor: pointer;
    color: #999;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #000;
}

.modal-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    border: 4px solid #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.modal-info {
    text-align: center;
}

.modal-name {
    font-size: 2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.3rem;
    font-family: 'Poppins', sans-serif;
}

.modal-desg {
    color: #096;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: 'Poppins', sans-serif;
}

.modal-about {
    font-size: 1.1rem;
    /* Large readable font */
    color: #333;
    line-height: 1.8;
    font-weight: 300;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

.social-links {
    margin-top: auto;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.social-links a img {
    width: 40px;
    height: 40px;
    opacity: .8;
    transition: opacity 0.3s ease;
    padding: 0;
    border-radius: 0;
    background: none;
}

.social-links a:hover img {
    opacity: 1;
    background: none;
    transform: none;
    filter: none;
}

/* Tablet & Desktop Layout */
@media (min-width: 768px) {
    /* ... keep your previous columns logic if desired ... */

    /* Just ensuring card height fits since text is gone */
    .team-card {
        min-height: auto;
    }
}

/* Tablet (Portrait) */
@media (min-width: 768px) and (max-width: 1024px) {
    .team-card {
        flex-direction: row;
        align-items: center;
        text-align: left;
    }

    .team-card img {
        width: 200px;
        height: 200px;
        border-right: 1px solid #eaeaea;
    }

    .team-text {
        align-items: flex-start;
        padding: 2rem;
    }

    .social-links {
        justify-content: flex-start;
    }
}

/* Desktop */
@media (min-width: 1025px) {
    .team {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 2rem;
        max-width: 1200px;
    }

    .team-card {
        width: calc(25% - 2rem);
        /* vertical cards now better since description is hidden */
        flex-direction: column;
        min-width: 250px;
    }

    .team-card img {
        width: 100%;
        height: 280px;
        border-right: none;
        border-bottom: 1px solid #eaeaea;
    }
}