/* Team Section Styling */
.team-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Three members per row for larger screens */
    gap: 2rem; /* Space between team members */
    padding: 3rem 2rem; /* Padding inside the section */
    justify-items: center; /* Center content inside each item */
    border-radius: 12px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 1200px; /* Constrain the width of the container */
    margin: 0 auto; /* Center the container */
}

.team-member .image {
    width: 180px; /* Adjust image size */
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e8d1fe; /* Match the pink background color */
}

.team-member .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Button Styling for Team Members */
.team-member .button {
    display: inline-block;
    margin-top: 1rem; /* Add spacing above the button */
    padding: 0.5rem 1.5rem; /* Adjust padding for the button */
    font-size: 1rem; /* Adjust font size */
    font-weight: bold;
    color: #fff; /* White text color */
    background-color: #ce9efb; /* Primary button color */
    border: none;
    border-radius: 8px; /* Rounded corners */
    text-decoration: none; /* Remove underline */
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
}

.team-member .button:hover {
    background-color: #e8d1fe; /* hover shade */
    transform: scale(1.05); /* Slightly enlarge the button on hover */
}

.team-member .button:active {
    transform: scale(0.95); /* Slightly shrink the button on click */
}

/* Responsive Adjustments */
@media screen and (max-width: 1024px) {
    .team-container {
        grid-template-columns: repeat(2, 1fr); /* Two members per row for medium screens */
        gap: 1.5rem; /* Adjust spacing */
    }

    .team-member .image {
        width: 150px; /* Reduce image size */
        height: 150px;
    }
}

@media screen and (max-width: 768px) {
    .team-container {
        grid-template-columns: repeat(2, 1fr); /* Two members per row for smaller screens */
        gap: 1.5rem; /* Adjust spacing */
        padding: 2rem; /* Adjust padding */
    }

    .team-member .image {
        width: 130px; /* Further reduce image size */
        height: 130px;
    }

    .team-member .button {
        font-size: 0.9rem; /* Adjust font size for smaller screens */
        padding: 0.4rem 1.2rem; /* Adjust padding for smaller screens */
    }
}

@media screen and (max-width: 480px) {
    .team-container {
        grid-template-columns: repeat(2, 1fr); /* Two members per row for very small screens */
        gap: 1rem; /* Reduce spacing */
        padding: 1.5rem; /* Further reduce padding */
    }

    .team-member .image {
        width: 100px; /* Further reduce image size */
        height: 100px;
    }

    .team-member .button {
        font-size: 0.8rem; /* Adjust font size for very small screens */
        padding: 0.3rem 1rem; /* Adjust padding for very small screens */
    }
}