* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

header {
    background-color: #e10600;
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-top {
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;

}

.logo img {
    height: 40px;
    width: 40px;
}

.logo-name {
    font-size: 1.5rem;
    font-weight: bold;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 3px;
    transition: background-color 0.3s;
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.next-race-header {
    background-color: #c10500;
    padding: 8px 0;
    text-align: center;
    font-size: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.next-race-header span {
    margin: 0 15px;
    font-weight: bold;
}

a {
    text-decoration: none;
}

main {
    padding: 20px 0;
    flex: 1 0 auto;
}

h1 {
    text-align: center;
    margin: 20px 0 20px;
    color: #e10600;
    font-size: 2.5rem;
}

h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #e10600;
}

.block {
    margin-bottom: 40px;
    background-color: white;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.section-title {
    display: block;
    margin: 0 auto 30px;
    font-size: 1.6rem;
    color: #e10600;
    border-bottom: 2px solid #e10600;
    padding-bottom: 5px;
    text-align: center;
}
.btn {
    display: inline-block;
    background-color: #e10600;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #ffcc00;
    color: #333;
}

.country-flag {
    width: 30px;
    height: 20px;
    margin-right: 10px;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.country-name {
    font-weight: bold;
    color: #333;
}

.year-select {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    gap: 15px;
}

.year-dropdown {
    padding: 10px 15px;
    border: 2px solid #e10600;
    border-radius: 5px;
    background-color: white;
    color: #333;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.year-dropdown:hover {
    background-color: #f9f9f9;
}

.year-dropdown:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(225, 6, 0, 0.3);
}

.drivers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.driver-card {
    background: linear-gradient(135deg, var(--team-color), var(--team-secondary));
    color: white;
    padding: 25px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    height: 220px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s, box-shadow 0.3s;
}

.driver-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.driver-card:hover .driver-name {
    text-decoration: underline;
}

.driver-info {
    flex: 1;
    z-index: 2;
    min-width: 180px;
}

.driver-name {
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 5px;
    margin: 0;
}

.driver-team {
    font-size: 1.1rem;
    margin-bottom: 10px;
    opacity: 0.9;
    margin: 0 0 10px 0;
}

.driver-number {
    font-size: 2rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
    display: block;
}

.driver-flag {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.driver-photo-wrapper {
    position: absolute;
    right: 0;
    height: 100%;
    width: 60%;
    z-index: 1;
}

.driver-photo-img {
    width: 100%;
}

.red-bull {
    --team-color: #3671C6;
    --team-secondary: #1E5BC6;
}

.ferrari {
    --team-color: #E80020;
    --team-secondary: #DC0000;
}

.mclaren {
    --team-color: #FF8000;
    --team-secondary: #FF8700;
}

.mercedes {
    --team-color: #27F4D2;
    --team-secondary: #00D2BE;
}

.aston-martin {
    --team-color: #229971;
    --team-secondary: #006F62;
}

.racing-bulls {
    --team-color: #6692FF;
    --team-secondary: #4B7BFF;
}

.haas {
    --team-color: #1a1a1a;
    --team-secondary: #3a3a3a;
}

.alpine {
    --team-color: #0093CC;
    --team-secondary: #006FCC;
}

.williams {
    --team-color: #64C4FF;
    --team-secondary: #005AFF;
}

.kick-sauber {
    --team-color: #52E252;
    --team-secondary: #2ECC71;
}


.stats-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.stats-card {
    background-color: #f0f0f0;
    color: #000;
    border-radius: 12px;
    padding: 20px;
    flex: 1 1 300px;
    min-width: 280px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.stats-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #e10600;
    text-align: center;
}

.stats-card ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.stats-card ul li {
    padding: 6px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
}

.stats-card .stat-label {
    font-weight: bold;
    color: #e10600;
}

.stats-divider {
    width: 2px;
    background-color: #e10600;
    border-radius: 2px;
    margin: 0 10px;
}

.season-2025 .stats-columns {
    display: flex;
    gap: 20px;
}

.season-2025 .stats-columns ul {
    flex: 1;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.news-card {
    background-color: #f9f9f9;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.news-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #e10600;
}

.news-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.news-card .btn {
    margin-top: auto;
    align-self: flex-start;
}

.show-more {
    text-align: center;
}

#loadMoreBtn {
    display: inline-block;
    ;
    margin-top: 20px;
    padding: 10px 25px;
    background: #e10600;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

#loadMoreBtn:hover {
    background: #b80000;
}

.scroll-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    padding: 10px 15px;
    font-size: 24px;
    background-color: #e10600;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: none;
    transition: opacity 0.3s;
    z-index: 999;
}

.scroll-top:hover {
    opacity: 0.8;
}

footer {
    background-color: #333;
    color: white;
    padding: 40px;
    margin: 30px 0 0 0;
    text-align: center;

}

footer a {
    color: #ccc;
    text-decoration: none;
    font-size: 2rem;
}

footer a:hover {
    color: #ffcc00;
}

footer .socials img {
    width: 48px;
    height: 48px;
    vertical-align: middle;
}

/* === VOTE WIDGET === */

.vote-widget {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 360px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    overflow: hidden;
    font-family: 'Arial', sans-serif;
}

.vote-widget__header {
    background: #e10600;
    color: white;
    padding: 14px 18px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 0.9rem;
    user-select: none;
    letter-spacing: 0.02em;
}

.vote-widget__header:hover {
    background: #c10500;
}

.vote-widget__arrow {
    display: inline-block;
    transition: transform 0.3s ease;
    font-size: 0.75rem;
}

.vote-widget.collapsed .vote-widget__arrow {
    transform: rotate(180deg);
}

.vote-widget__body {
    padding: 16px 18px;
}

.vote-widget.collapsed .vote-widget__body {
    display: none;
}

.vote-widget__question {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 14px;
    text-align: center;
}

.vote-btn {
    display: block;
    width: 100%;
    padding: 9px 12px;
    margin-bottom: 7px;
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Arial', sans-serif;
    font-size: 0.85rem;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.vote-btn:hover {
    background: #e10600;
    border-color: #e10600;
    color: white;
}

.vote-btn:last-child {
    margin-bottom: 0;
}

.progress-item {
    margin-bottom: 10px;
}

.progress-item:last-child {
    margin-bottom: 0;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    font-size: 0.82rem;
    color: #333;
}

.team-label {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 6px;
}

.progress-percent {
    font-size: 0.75rem;
    color: #555;
    flex-shrink: 0;
}

.progress-item.voted-team .team-label {
    font-weight: bold;
    color: #e10600;
}

.progress-item.voted-team .progress-percent {
    font-weight: bold;
    color: #e10600;
}

.progress-bar-track {
    background: #f0f0f0;
    border-radius: 5px;
    height: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    background: #e10600;
    height: 100%;
    width: 0;
    border-radius: 5px;
    transition: width 0.6s ease;
}

.progress-item.voted-team .progress-bar-fill {
    background: #c10500;
}

.vote-widget__footer-note {
    margin-top: 10px;
    font-size: 0.72rem;
    color: #888;
    text-align: center;
}

/* === END VOTE WIDGET === */