/* About Us Hero */
.aboutus-hero-section {
    position: relative;
    width: 100%;
    background: #ffffff;
    overflow: hidden;
}

.aboutus-hero-image {
    display: block;
    width: 100%;
    height: calc(100vh - var(--whif-header-height, 160px));
    height: calc(100dvh - var(--whif-header-height, 160px));
    object-fit: cover;
    object-position: center 30%;
}

.aboutus-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Global Team Card */
.global-team-heading-card {
    max-width: 1120px;
    margin: 0 auto;
    padding: 34px 28px;
}

.global-team-description {
    max-width: 920px;
    margin: 14px auto 0;
    color: #333333;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.65;
    text-align: center;
}

/* About Us Section */
.about-us {
    text-align: center;
    padding: 15px;
    border-radius: 12px;
    line-height: 1.6;
    color: #333;
    transition: transform 0.3s ease-in-out;
    font-size: 17px;
}

.highlight {
    color: #4096D9;
    font-size: 17px;
}

.global-team-heading-section {
    width: 100%;
    text-align: center;
    padding: 18px 15px 10px;
}

.global-team-heading {
    display: inline-block;
    position: relative;
    margin: 0;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.25;
    color: #123D78;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.global-team-heading::after {
    content: "";
    display: block;
    width: 90px;
    height: 4px;
    margin: 12px auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #7d86c6, #4096D9);
}

/* Grid System */
.member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    justify-content: center;
    padding: 20px;
}

/* Individual Member */
.member {
    text-align: center;
    position: relative;
    width: 100%;
    max-width: 280px;
    margin: 10px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.member:hover {
    transform: translateY(-5px);
    box-shadow: 0px 6px 14px rgba(0, 0, 0, 0.2);
}

.member-img {
    position: relative;
    width: 100%;
    height: auto;
}

.member-img img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
}

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

/* Overlay sliding from the left */
.overlay {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: left 0.4s ease-in-out;
}

.member:hover .overlay {
    left: 0;
}

.member-info {
    color: white;
    text-align: center;
    padding: 15px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out 0.2s;
}

.member:hover .member-info {
    opacity: 1;
}

.member-info .position {
    color: #B7CE32;
    font-size: 17px;
    margin: 3px 0;
    font-weight: 500;
    font-family: "Roboto", sans-serif;
    text-align: center;
    letter-spacing: 0.7px;
    line-height: 1.3;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 3px;
    transition: color 0.3s ease-in-out;
}

.member-info .designation {
    font-size: 16px;
    margin: 3px 0;
    font-weight: 600;
    font-family: "Roboto", sans-serif;
    text-align: center;
    letter-spacing: 0.7px;
    line-height: 1.5;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 3px;
    transition: color 0.3s ease-in-out;
}

/* Name Below Image */
.member-name {
    font-size: 20px;
    font-weight: 700;
    margin-top: 15px;
    text-align: center;
    letter-spacing: 0.7px;
    background: linear-gradient(90deg, #7d86c6, #4096D9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.15);
}

.aboutus-heading {
    font-size: 17px;
    font-weight: bold;
    display: inline;
}

@media (max-width: 991px) {
    .about-hero-image {
        height: 300px;
    }

    .about-global-team-card-section {
        padding-top: 42px;
    }

    .about-global-team-card {
        padding: 58px 22px 62px;
    }

    .about-global-team-card h1 {
        font-size: 34px;
        letter-spacing: 3px;
    }

    .about-global-team-card p {
        font-size: 23px;
    }

    .global-team-heading-section {
        padding: 16px 15px 8px;
    }

    .global-team-heading {
        font-size: 28px;
    }

    .global-team-heading::after {
        width: 78px;
        height: 4px;
        margin-top: 10px;
    }
}

@media (max-width: 767px) {
    .about-hero-image {
        height: 240px;
    }

    .about-global-team-card-section {
        padding-top: 34px;
    }

    .about-global-team-card {
        padding: 44px 18px 48px;
    }

    .about-global-team-card h1 {
        font-size: 27px;
        letter-spacing: 2px;
        margin-bottom: 16px;
    }

    .about-global-team-card p {
        font-size: 19px;
        line-height: 1.45;
    }

    .about-us {
        padding: 12px 18px;
        font-size: 16px;
        line-height: 1.6;
    }

    .highlight {
        font-size: 16px;
    }

    .aboutus-heading {
        font-size: 16px;
    }

    .global-team-heading-section {
        padding: 14px 15px 6px;
    }

    .global-team-heading {
        font-size: 24px;
        letter-spacing: 0.7px;
    }

    .global-team-heading::after {
        width: 68px;
        height: 3px;
    }

    .member {
        max-width: 300px;
        margin: 12px auto;
    }

    .member-name {
        font-size: 18px;
        margin-top: 12px;
    }

    .member-info .position {
        font-size: 15px;
    }

    .member-info .designation {
        font-size: 14px;
    }
}

@media (max-width: 575px) {
    .about-hero-image {
        height: 200px;
    }

    .about-global-team-card-section {
        padding-top: 26px;
    }

    .about-global-team-card {
        padding: 36px 16px 40px;
    }

    .about-global-team-card h1 {
        font-size: 24px;
        letter-spacing: 1.4px;
    }

    .about-global-team-card p {
        font-size: 17px;
    }

    .about-us {
        padding: 10px 14px;
        font-size: 15px;
        text-align: center;
    }

    .highlight {
        font-size: 15px;
    }

    .aboutus-heading {
        font-size: 15px;
    }

    .global-team-heading-section {
        padding: 12px 12px 4px;
    }

    .global-team-heading {
        font-size: 22px;
        letter-spacing: 0.5px;
    }

    .global-team-heading::after {
        width: 60px;
        height: 3px;
        margin-top: 9px;
    }

    .member {
        max-width: 280px;
        margin: 12px auto;
    }

    .member-info {
        padding: 12px;
    }

    .member-info .position {
        font-size: 14px;
        line-height: 1.3;
    }

    .member-info .designation {
        font-size: 13px;
        line-height: 1.4;
    }

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

/* About Us Hero/Card Responsive */
@media (max-width: 991px) {
    .aboutus-hero-image {
        height: 390px;
    }

    .global-team-heading-card {
        padding: 28px 22px;
        border-radius: 16px;
    }

    .global-team-description {
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    .aboutus-hero-image {
        height: 300px;
    }

    .global-team-heading-card {
        padding: 24px 18px;
    }
}

@media (max-width: 575px) {
    .aboutus-hero-image {
        height: 230px;
    }

    .global-team-description {
        font-size: 15px;
        line-height: 1.55;
    }
}