/* Large Desktop Screens */
@media (max-width: 1200px) {
    .team-intro {
        padding: 100px 5%;
    }

    .team-image img {
        width: 400px;
    }

    .team-content h1 {
        font-size: 2.5rem;
    }

    .mentors-section,
    .members-section {
        padding: 80px 5%;
    }

    .section-title {
        font-size: 2.5rem;
    }
}

/* Tablet Screen Layout */
@media (max-width: 992px) {
    .team-intro {
        padding: 90px 5% 60px;
    }

    /* Stack Image Container */
    .team-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .team-image img {
        width: 80%;
        max-width: 450px;
    }

    .team-content h1 {
        font-size: 2.2rem;
    }

    .team-content p {
        text-align: center;
        font-size: 1.05rem;
    }

    .section-title {
        font-size: 2.2rem;
        margin-bottom: 35px;
    }

    .mentors-section,
    .members-section {
        padding: 60px 5%;
    }

    /* Two Column Cards */
    .mentor-card,
    .member-card {
        width: calc(50% - 20px);
        max-width: 320px;
    }

    /* Touch Device Hover */
    .mentor-card:hover,
    .member-card:hover {
        transform: none;
    }
}

/* Mobile Phone Screens */
@media (max-width: 768px) {
    .team-intro {
        padding: 80px 4% 50px;
    }
    .team-container{
        display: flex;
        flex-direction: column;
    }

    .team-image img {
        width: 90%;
    }

    .team-content h1 {
        font-size: 1.8rem;
    }

    .team-content p {
        font-size: 1rem;
        line-height: 1.7;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .mentors-section,
    .members-section {
        padding: 50px 4%;
    }

    /* Single Column Cards */
    .mentor-container,
    .member-container {
        gap: 20px;
    }

    .mentor-card,
    .member-card {
        width: 85%;
        max-width: 350px;
    }

    .mentor-card img,
    .member-card img {
        width: 120px;
        height: 120px;
    }

    .team-name .btn {
        padding: 12px 26px;
        font-size: 0.9rem;
    }
}

/* Small Mobile Phones */
@media (max-width: 480px) {
    .team-intro {
        padding: 75px 4% 40px;
    }

    .team-container {
        gap: 20px;
        display: flex;
        flex-direction: column;
    }
    
    .team-image img {
        width: 95%;
    }

    .team-content h1 {
        font-size: 1.5rem;
    }

    .team-content p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }

    .mentors-section,
    .members-section {
        padding: 40px 3%;
    }

    .mentor-card,
    .member-card {
        width: 95%;
        padding: 20px 15px;
    }

    .mentor-card img,
    .member-card img {
        width: 100px;
        height: 100px;
    }

    .member-card h3 {
        font-size: 1rem;
    }

    .team-name .btn {
        padding: 10px 22px;
        font-size: 0.85rem;
        margin: 8px 5px;
    }

    .team-name {
        margin-top: 20px;
    }
}

/* Extra Small Phones */
@media (max-width: 360px) {
    .team-content h1 {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .mentor-card,
    .member-card {
        width: 100%;
    }

    .mentor-card img,
    .member-card img {
        width: 85px;
        height: 85px;
    }
}

.mgmt-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

/* Modal Box */
.mgmt-team {
    background: #fff;
    width: 400px;
    max-width: 90%;
    padding: 25px;
    border-radius: 10px;
    position: relative;
    animation: popup 0.3s ease;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #666;
}

@keyframes popup {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}
