/* Section styling */
#teams {
    background-color: black;
    color: white;
    padding: 50px 0;
    text-align: center;
}

/* Title styling */
#teams .title {
    margin-bottom: 20px;
}

/* Container for team cards */
.teams .teams-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Adjust to center the items */
    gap: 10px; /* Reduced gap between cards */
}

/* Individual team card styling */
.teams .teams-card {
    background: black;
    border: 1px solid #c59655;
    border-radius: 6px;
    color: #c59655;
    flex-basis: 20%; /* Adjusts card width */
    max-width: 250px; /* Maximum width */
    padding: 25px 35px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin: 5px; /* Reduced margin around cards */
    transition: transform 0.3s ease, background 0.3s, border-color 0.3s;
}

/* Image styling */
.teams .teams-card img {
    border-radius: 50%;
    height: 150px;
    width: 150px;
    object-fit: cover;
    border: 5px solid #c59655;
    margin-bottom: 10px;
    transition: border-color 0.3s ease;
    cursor: pointer;
}

/* Text styling */
.teams .teams-card h3 {
    font-size: 25px;
    font-weight: 500;
    margin-bottom: 10px;
}

.teams .teams-card p {
    margin-bottom: 10px;
}

/* Hover effect for card */
.teams .teams-card:hover {
    background: #9a7542;
    border-color: white;
    color: white;
    transform: scale(1.05);
}

/* Hover effect for image border */
.teams .teams-card:hover img {
    border-color: white;
}

/* Responsive Design for Smaller Screens */
@media screen and (max-width: 768px) {
    .teams .teams-card {
        flex-basis: 45%; /* Adjusts for two cards per row */
    }
}

@media screen and (max-width: 480px) {
    .teams .teams-card {
        flex-basis: 90%; /* Adjusts for one card per row */
    }
}
