.f1il-drivers-wrapper,
.f1il-drivers-archive,
.f1il-driver-single {
    max-width: 1600px;
    margin: 32px auto 48px;
    padding: 0 16px;
    box-sizing: border-box;
}

/* גריד נהגים – 2 בעמודה בדסקטופ, 1 במובייל */
.f1il-drivers-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width: 900px) {
    .f1il-drivers-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.f1il-driver-card {
    display: block;
    border-radius: 18px;
    padding: 20px 24px;
    text-decoration: none;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.f1il-driver-card-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.f1il-driver-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.f1il-driver-name {
    font-size: 24px;
    font-weight: 700;
}

.f1il-driver-team {
    font-size: 16px;
    opacity: 0.9;
}

.f1il-driver-photo img {
    display: block;
    max-height: 160px;
    width: auto;
}

/* צבעי קבוצות – תוכל להתאים */
.team-מקלארן,
.team-mclaren { background: #ff8700; }

.team-מרצדס,
.team-mercedes { background: #00a19c; }

.team-רד-בול,
.team-red-bull,
.team-רד-בול-רד-בול,
.team-רד-בול-racing { background: #0015ff; }

.team-פרארי,
.team-ferrari { background: #e10600; }

.team-אסטון-מרטין,
.team-aston-martin { background: #006f62; }

.team-וויליאמס,
.team-williams { background: #00a0de; }

.team-רייסינג-בולס,
.team-racing-bulls { background: #2e2a72; }

.team-הaas,
.team-האס,
.team-haas { background: #b6babd; }

.team-no-team { background: #444; }

/* כותרת + קו אדום – סנכרון עם התבנית */
.f1il-section-title {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 700;
}
.f1il-section-underline,
.f1il-title-underline {
    display: block;
    height: 3px;
    background: #ff1e00;
    margin-top: 4px;
    margin-inline-start: auto;
}

/* פרופיל נהג */
.f1il-driver-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
    margin-bottom: 32px;
}

.f1il-driver-header-photo img {
    max-height: 260px;
    width: auto;
}

@media (max-width: 900px) {
    .f1il-driver-header {
        flex-direction: column-reverse;
        align-items: flex-start;
    }
}

.f1il-driver-team-line {
    margin-top: 6px;
    font-size: 16px;
}

/* סטטיסטיקה */
.f1il-driver-stats {
    margin-bottom: 32px;
}

.f1il-driver-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width: 900px) {
    .f1il-driver-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 600px) {
    .f1il-driver-stats-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.f1il-stat-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    text-align: center;
}
.f1il-stat-item .label {
    display: block;
    font-size: 14px;
    color: #444;
    margin-bottom: 4px;
}
.f1il-stat-item .value {
    font-size: 22px;
    font-weight: 700;
}

/* תוכן חופשי */
.f1il-driver-content {
    margin-top: 24px;
}
