*{
    box-sizing: border-box;
}
body{
    margin:0;
    background-color: black;
    color: white;
    font-family: Arial, Helvetica, sans-serif;
    
}
nav{
    height:80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 50px;
    background-color: black;
    border-bottom: 1px solid #333333;
    }
    nav > a{
        color: white;
        font-size: 32px;
        font-weight: 700;
        text-decoration: none;
            }
nav div{
    display: flex;
    gap: 40px;

}
nav div a{
    color: white;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing:1px;
    text-decoration: none;
}
nav div a:hover{
    color: #e10600;
}
nav > a img{
    width: 180px;
}
.hero{
    min-height: calc(100vh - 80px);
    background-image:url("images/hero3.jpg");
    background-size: cover;
    background-position: center;

    display: flex;
    align-items:center;
    padding: 0 8%;

    position:relative;
}
.hero-content{
    max-width: 600px;
}
.hero p{
    font-size: 28px;
    font-weight: 700;
    letter-spacing:3px;
    margin-bottom:30px;
}
.hero a{
    display: inline-block;
    background-color: #e10600;
    color:white;
    text-decoration: none;
    padding: 15px 28px;
    font-weight: 700;
    letter-spacing: 1px;
}
.hero a:hover{
    transform: translateY(-3px);
}
.championship{
    padding: 100px 8%;
    background-color: #1111;
}
.section-heading{
    margin-bottom: 60px;
}
.section-heading p{
    color: #e10600;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    margin: 0 0 10px;
}
.section-heading h2{
    font-size: 48px;
    margin: 0;
    letter-spacing: 2px;
    }
    .championship-content{
        display: flex;
        gap: 80px;
    }
    .championship-text,
    .championship-info{
        flex: 1;
    }
    .championship-text h3,
    .championship-info h3{
        font-size: 24px;
        margin-top: 0;
    }
.championship-text p{
    color: #b5b5b5;
    font-size: 17px;
    line-height: 17px;
    max-width: 550px;
}
.championship-text a{
    display: inline-block;
    margin-top: 20px;
    color: white;
    text-decoration: none;
    border-bottom: 2px solid #e10600;
    padding-bottom: 5px;
}
.championship-info{
    border-left: 3px solid #e10600;
    padding-left: 30px;
}
.championship-info ul{
    padding-left: 20px;
}
.championship-info li{
    color: #b5b5b5;
    margin-bottom: 15px;
    line-height: 1.5;
}
.calendar{
    padding: 100px 8%;
    background-color: black;
}
.calendar table{
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}
.calendar th{
    text-align: left;
    color: #b5b5b5;
    font-size: 14px;
    letter-spacing: 1px;
    padding: 18px 15px;
    border-bottom: 2px solid #e10600;
}
.calendar td{
    padding: 22px 15px;
    border-bottom: 1px solid #333333;
    font-size: 16px;
}
.race-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 60px;
}

.flag-card {
    background-color: #111111;
    padding: 20px 25px;
    min-width: 300px;
    text-align: center;
    border: 1px solid #333333;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.flag-card p {
    margin: 10px 0 0;
    color: #b5b5b5;
    font-size: 20px;
}

.flag-card:hover {
    transform: translateY(-5px);
    border-color: #e10600;
}
.flag-card img {
    width: 300px;
    height: 150px;
    object-fit: cover;
}
.teams{
    padding: 100px 8%;
    background-color: #111111;
}
.team-grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}
.team-card{
    background-color: black;
    overflow: hidden;
    border: 1px solid #333333;
}
.team-card img{
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}
.team-info{
    padding: 25px;
}
.team-info h3{
    font-size: 28px;
    margin: 0 0 20px;
}
.drivers{
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #333333;
    padding-top: 15px;
}
.form-section{
    padding: 100px 8%;
    background-color: #111111;
}
.form-section form{
    max-width: 750px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}
.form-section label{
    margin-top: 25px;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
}
.form-section input,
.form-section select,
.form-section textarea{
    width: 100%;
    padding: 15px;
    background-color: #111111;
    color: white;
    border: 1px solid #444444;
    font-size: 15px;
}
.form-section textarea{
    resize: vertical;
}
.form-section button{
    margin-top: 30px;
    padding: 16px;
    background-color: #e10600;
    color: white;
    border:none;
    transition: transform 0.3s ease;
}
.form-section button:hover{
    transform: translateY(-3px);
}
#form-message{
    color: #e10600;
    text-align: center;
    font-weight: 700;
    margin-top: 20px;
}
.community{
    padding: 100px 8%;
    background-color: black;
    text-align: center;
}
.community img{
    width: 100%;
    max-width: 1000px;
    height: 500px;
    object-fit: cover;
    border-radius: 5px;
    margin-top: 50px; 
}
.community-text{
    max-width: 750px;
    margin: 0 auto;
}
.community-text p:first-child{
    color: #e10600;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
}
.community-text h2{
    font-size: 42px;
    margin: 10px 0 20px;
}
.community-text p:last-child{
    color: #b5b5b5;
    font-size: 17px;
    line-height: 1.7;
}
footer{
    padding: 25px 8%;
    background-color: #111111;
    border-top: 1px solid #333333;
    text-align: center;
}
footer p{
    color: #b5b5b5;
    font-size: 13px;
    margin: 0 0 12px;
}
footer a{
    color: #777777;
    text-decoration: none;
    font-size: 13px;
    margin: 0 10px;
}
footer a:hover{
    color: #e10600;
}
@media(max-width:768px){
    nav{
        padding:0 20px;
        height: auto;
        min-height: 70px;
    }
    nav div{
        gap:15px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    .hero{
        min-height: calc(100vh-70px);
    }
    .hero-content img{
        width: 140px;
    }
    .championship-content{
        flex-direction: column;
        gap: 40px;
    }
    .calendar{
        padding: 70ps 5%;
        overflow-x: auto;
    }
    .calendar table{
        min-width: 650px;
    }
    .track-gallery{
        flex-wrap: wrap;
    }
    .track-gallery img{
        width: calc(25% - 12px);
        height: 90px;
    }
    .form-section{
        padding:70px 6%;
    }
    .community img{
        height: 220px;
    }
}