.team-img-square {
    width: 100%;
    max-width: auto; /* Increased from 250px to make the image larger */
    height: auto; /* Matching height for square shape */
    object-fit: cover;
    border: 3px solid #e0e0e0;
    transition: transform 0.3s ease;
    margin: 0 auto;
    display: block;
}

.team-img-square:hover {
    transform: scale(1.05);
}

.team-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    text-align: center;
}

.team-role {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    text-align: center;
}

.team-desc {
    font-size: 1.5rem;
    color: #34495e;
    line-height: 1.6;
    text-align: center;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.7;
    filter: invert(0);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: transparent;
    filter: brightness(0);
}

.carousel-control-prev {
    left: -20px;
}

.carousel-control-next {
    right: -20px;
}

.carousel-inner {
    padding: 2rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .team-img-square {
        width: 100%;
    max-width: 300px; /* Increased from 250px to make the image larger */
    height: 300px; /* Matching height for square shape */
        margin-bottom: 1rem;
    }

    .team-name {
        font-size: 1.25rem;
    }

    .team-role {
        font-size: 0.9rem;
    }

    .team-desc {
        font-size: 1.25rem;
        text-align: center;
        padding: 0 1rem;
    }

    .row {
        flex-direction: column;
        align-items: center;
    }

    .col-12,
    .col-12.col-md-4,
    .col-12.col-md-8 {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 0 10px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 15%;
        height: 40px;
        top: auto;
        bottom: -50px;
        background: none;
    }

    .carousel-control-prev {
        left: 20%;
        transform: translateX(-50%);
    }

    .carousel-control-next {
        right: 20%;
        transform: translateX(50%);
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 2rem;
        height: 2rem;
    }

    .carousel-inner {
        padding-bottom: 3rem;
    }
}