.teams-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 20px;
    text-align: center;
}

.teams-section h1 {
    font-size: 40px;
    margin-bottom: 30px;
    color: #38bdf8;
}


.team-search {
    display: flex;
    gap: 12px;
    max-width: 600px;
    margin: 0 auto 35px;
    background: #f8fafc;
    padding: 12px 14px;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.15);
}

.team-search input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 16px;
    color: #020617;
}

.team-search input::placeholder {
    color: #94a3b8;
}

.team-search button {
    padding: 10px 22px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.team-search button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.45);
}

.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
}

.team-card {
    background: rgba(255, 255, 255, 0.2); /* Semi-transparent */
    backdrop-filter: blur(10px); /* Blur effect */
    border-radius: 15px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden; /* Ensures nothing overflows */
    width: 85%; /* Container width */
    padding: 20px;
    transition: 0.3s;
    margin: auto;
}

.team-card:hover {
    transform: translateY(-6px);
}

.team-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 10px;
}

.team-card h3 {
    font-size: 18px;
}

@media (max-width: 768px) {
    .teams-section h1 {
        font-size: 32px;
    }

    .team-search {
        flex-direction: column;
    }

    .team-search button {
        width: 100%;
    }
}
