/*
Team section styles
*/

.team-section {
    padding-bottom: 0;
}

.team-content {
    padding-bottom: 5rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.team-info {
    background: rgba(0, 0, 0, 0.9);
    padding: 2rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.team-info h3 {
    color: var(--racing-white);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.team-info p, .team-info ul {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.team-info ul {
    padding-left: 1.25rem;
}

.team-info ul li {
    margin-bottom: 0.5rem;
}

/* FIX: A more specific selector to ensure the heading is white */
.team-section h2 {
    color: white;
}

/* Manager badge */
.manager {
    font-size: 1.125rem;
    text-transform: uppercase;
    padding: 10px;
    margin-bottom: 2rem;
    color: black;
    background: linear-gradient(100deg, rgba(175,127,40,1) 0%, rgba(213,185,97,1) 25%, rgba(138,94,2,1) 50%, rgba(165,121,10,1) 75%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Team gallery section */
.team-gallery {
    background: var(--racing-dark);
    padding: 3rem 0;
}

.team-gallery-carousel {
    position: relative;
    overflow: hidden;
    margin-top: 2rem;
}

.team-gallery-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 1rem;
}
/* Responsive adjustments for the main grid */
@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}