.our-team-div {
    display: flex;
    width: 100%;
    height: 100dvh;
    justify-content: center;
    align-items: center;
}

.our-team-background {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    height: 100dvh;
    width: 75%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    transition: background-image 0.3s linear;
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3));
    pointer-events: none;
    z-index: 1;
}

.team-header {
    position: relative;
    z-index: 1010 !important;
    margin: 2px !important;
    cursor: pointer;
    user-select: none;
}

.team-header.active {
    opacity: 1 !important;
    color: #e5a93c !important; /* Brand accent highlight */
}

#team-reset-message {
    cursor: pointer;
    user-select: none;
}

.our-team-background h1 {
    text-align: right;
    color: white;
    margin-bottom: 5px !important;
    margin: 0;
    opacity: 0.6;
    transition: opacity 0.3s ease-in-out, color 0.3s ease-in-out;
    z-index: 10;
}

.our-team-background h6 {
    text-align: right;
    color: white;
    margin: 0;
    opacity: 0.6;
    transition: opacity 0.3s ease-in-out, color 0.3s ease-in-out;
    z-index: 10;
}

.our-team-background h1:hover {
    opacity: 1;
    color: white !important;
}

.paragraph-section {
    width: 25%;
    height: 60vh;
    background-color: rgba(255, 255, 255, 0.429);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: black;
    font-size: 2.5vw;
    text-align: center;
}

.paragraph-section h1 {
    margin-bottom: 15px;
    font-size: 3vw;
}

/* Media Queries for smaller screens */
@media (max-height: 600px) {
    .paragraph-section {
        font-size: 1vw;
    }

    .paragraph-section h1 {
        font-size: 1.5vw;
    }
}

@media (max-height: 400px) {
    .paragraph-section {
        font-size: 1vw;
    }

    .paragraph-section h1 {
        font-size: 1vw;
    }
}

@media (max-width: 600px) {
    .paragraph-section {
        font-size: 1vw;
    }

    .paragraph-section h1 {
        font-size: 1.5vw;
    }

    .paragraph-section h4 {
        font-size: 2vw;
    }
}

@media (max-height: 700px) {
    p {
        font-size: 1rem !important;
    }

    h4 {
        font-size: 1.5rem !important;
    }
}

@media (max-width: 992px) {
    .our-team-background {
        display: none !important;
        /* width: 100%;
        justify-content: flex-start;
        padding-top: 70vh; */
        /* Position content 30% from bottom */
    }

    .paragraph-section {
        display: none !important;
    }
}

/* MOBILE */
@media (max-width: 992px) {
    .overlay {
        width: 100%;
        height: auto;
        position: fixed;
        bottom: 100px;
        left: 0;
        right: 0;
        z-index: auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        z-index: 10;
    }

    .overlay h1 {
        position: relative;
        text-align: right;
        color: white;
        margin: 0 0 5px 0;
        opacity: 0.8;
        transition: opacity 0.3s ease-in-out, color 0.3s ease-in-out;
        z-index: 10;
        font-size: 2.5rem;
    }

    .overlay p {
        z-index: 10;
        margin-top: 20px;
        color: #e0e0e0;
        font-size: 0.9rem;
    }

    .our-team-div .swiper-slide {
        position: relative;
    }

    .our-team-div .swiper-slide::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
        z-index: 1;
    }

    .team-category {
        --is-phone: 1;
    }

    .team-category p {
        display: none;
    }

    .team-category.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: #000;
        padding: 1.5rem;
        border-radius: 16px;
        z-index: 1000;
        width: 90%;
        height: 70%;
        overflow: hidden;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
        animation: popupFadeIn 0.3s ease-in-out;
        justify-content: center;
    }

    .team-category.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(20, 20, 25, 0.85);
        z-index: 999;
        animation: fadeIn 0.3s ease-in-out;
    }

    .team-category h1,
    .team-category h6 {
        display: block;
    }

    .team-category.active h1,
    .team-category.active h6 {
        display: none;
    }

    .team-category.active p {
        display: block;
        z-index: 1000;
        max-height: 60vh;
        padding-right: 10px;
        overflow-y: auto;
    }
}