* {
  box-sizing: border-box;
  cursor: default;
}

body {
  margin: 0;
  font-family: "Roboto", sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

main {
  flex: 1;
  background-color: #f3f2ed;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.nav__hamburger {
  font-size: 1.8rem;
  color: white;
  cursor: pointer;
  margin-left: auto;
  display: none;
  align-self: center;
}

.nav__hamburger--white {
  font-size: 1.8rem;
  color: white;
  cursor: pointer;
  margin-left: auto;
  display: none;
  align-self: center;
}

.nav__hamburger--white i {
  color: #d60b04;
}

.nav__header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  position: relative;
}

.nav__logo--white {
  height: 35px;
  width: auto;
  display: block;
}

.nav__logo--black {
  height: 35px;
  width: auto;
  display: block;
}

.nav--blue {
  background: #181a26;
  padding: 20px 0px;
}

.nav--white {
  background: white;
  padding: 20px 0px;
}

.nav__header-content {
  padding: 0;
  width: 90%;
  max-width: 1500px;
  margin: 0 auto;
}

.nav__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 30px;
}

.nav__nav-link {
  text-decoration: none;
  color: #e3e1e2;
  font-weight: 600;
  font-size: 16px;
  padding-bottom: 5px;
  transition: color 0.3s ease;
  position: relative;
  font-family: "Titillium Web", sans-serif !important;

  padding-bottom: 5px;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.nav__nav-link.black {
  color: black;
}

.nav__nav-link:hover {
  color: #ff1801;
  border-bottom-color: #ff1801;
  cursor: pointer;
}

.nav__nav-link.active {
  color: #ff1801;
  border-bottom-color: #ff1801;
}

.hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("../assets/images/w11-mercedes.jpg");
  background-size: cover;
  background-position: center;
  height: 60vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
}

.hero__title {
  font-size: 5vh;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 25px;
}

.hero__btn--red {
  font-size: 17px;
  font-weight: 700;
  color: white;
  background-color: #d60b04;
  border-radius: 5px;
  border: none;
  padding: 15px 30px;
  text-decoration: none;
}

.hero__btn--red:hover {
  background-color: #a10702;
  cursor: pointer;
}

.features-section {
  background-color: white;
  padding: 60px 0;
}

.features-section__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.features-section__item {
  flex: 1 1 300px;
  max-width: 400px;
  text-align: left;
}

.features-section__icon-box {
  font-size: 40px;
  color: #d60b04;
  margin-bottom: 20px;
}

.features-section__title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.features-section__paragraf {
  color: #555;
  line-height: 1.6;
  font-size: 1.2rem;
}

.about-section {
  padding: 60px 0;
}

.about__page-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 30px;
  text-transform: uppercase;
}

.about__title {
  font-size: 1.5rem;
  margin-bottom: 15px;
  text-transform: uppercase;
  color: black;
}
.about__paragraph {
  margin-bottom: 15px;
  color: #555;
  max-width: 800px;
  line-height: 1.6;
}
.about__video-container {
  margin: 40px 0;
  display: flex;
  justify-content: center;
}

.about__video-container video {
  width: 100%;
  max-width: 800px;
  border-radius: 12px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  outline: none;
  display: block;
}
.about__partners-section {
  text-align: center;
  margin-top: 60px;
}

.about__partners-title {
  font-size: 1.7rem;
  text-transform: uppercase;
  margin-bottom: 30px;
  color: #15151e;
}

.about__partners-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 70px;
  flex-wrap: wrap;
}

.about__partner-logo {
  height: 220px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s ease;
  padding: 10px;
}

.about__partner-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  border: 2px solid #ff1801;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(255, 24, 1, 0.2);
}

.footer {
  background-color: #1c1d21;
  color: white;
  padding: 30px 0 10px 0;
  border-top: 3px solid #ff1801;
}

.footer__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer__nav {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__copyright {
  color: #666666;
  font-size: 0.85rem;
  border-top: 1px solid #333;
  padding-top: 20px;
  width: 100%;
  text-align: center;
  margin: 0;
  margin-bottom: 10px;
}

.footer__link {
  text-decoration: none;
  color: #b0b0b0;
  text-transform: uppercase;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.5s ease;
}

.footer__link:hover {
  color: #ff1801;
}

.footer__logo--white {
  height: 20px;
  width: auto;
  display: block;
}

.contacts-section {
  padding: 60px 0;
}

.contacts__page-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 40px;
  text-transform: uppercase;
}
.contact__wrapper {
  display: flex;
  gap: 50px;
}
.contact__form-col {
  flex: 1;
  padding-right: 50px;
  border-right: 1px solid #ccc;
}
.contact__contact-info-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact__form-group {
  margin-bottom: 20px;
}

.contact__form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 8px;
  text-transform: uppercase;
  color: #15151e;
}

.contact__form-group input,
.contact__form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  background-color: white;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.contact__btn-submit {
  background-color: #d60b04;
  color: white;
  border: none;
  padding: 12px 0;
  width: 100%;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s;
}

.contact__btn-submit:hover {
  background-color: #9f1306;
}

.contact__info-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 10px;
}

.contact__info-item i {
  color: #d60b04;
  font-size: 1.2rem;
  margin-top: 5px;
}

.contact__info-item p {
  color: #555;
  line-height: 1.5;
  margin: 0;
}

.contact__map-container {
  margin-top: 20px;
  border: 2px solid #d60b04;
}

.gallery-section {
  padding: 60px 0;
  background-color: #f9f9f9;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.gallery__item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  height: 250px;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery__overlay span {
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
  text-transform: uppercase;
  border: 2px solid #ff1801;
  padding: 10px 20px;
}

.gallery__item:hover .gallery__overlay {
  opacity: 1;
}

.gallery__item:hover img {
  transform: scale(1.1);
}

.news__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  padding: 40px 0;
}

.news__card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
}

.news__card:hover {
  transform: translateY(-5px);
}

.news__image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news__content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news__content h3 {
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.news__date {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 15px;
}

.news__content p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

.news__btn-read-more {
  display: inline-block;
  background-color: #ff1801;
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 4px;
  text-align: center;
  font-weight: bold;
  text-transform: uppercase;
  transition: background 0.3s;
  align-self: flex-start;
}

.news__btn-read-more:hover {
  background-color: #cc1200;
}

.single-article-section {
  padding: 60px 0;
  max-width: 800px;
  margin: 0 auto;
}

.back-link {
  display: block;
  margin-bottom: 20px;
  color: #555;
  text-decoration: none;
  font-weight: bold;
}

.back-link:hover {
  color: #cc1200;
  transition: color 0.5s;
  cursor: pointer;
}

.article__title {
  font-size: 2.5rem;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.article__main-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px 0;
}

.article__body p {
  margin-bottom: 15px;
  line-height: 1.8;
  font-size: 1.1rem;
  color: #333;
}

.calendar-section {
  padding: 60px 0;
}

.calendar__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.calendar__race-card {
  background-color: #1c1d21;
  color: #fff;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.calendar__race-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 15px 30px rgba(255, 24, 1, 0.15);
}

.calendar__card-top-accent {
  height: 4px;
  background-color: #ff1801;
  width: 100%;
}

.calendar__race-header {
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.calendar__round-number {
  color: #ff1801;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.calendar__race-date {
  font-weight: 600;
  color: #ccc;
}

.calendar__track-visual {
  padding: 30px;
  text-align: center;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calendar__track-visual img {
  max-width: 100%;
  max-height: 100%;
  opacity: 0.8;
  transition: 0.3s;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
}

.calendar__race-card:hover .calendar__track-visual img {
  opacity: 1;
  transform: scale(1.05);
}

.calendar__race-info {
  padding: 0 25px 25px 25px;
  flex-grow: 1;
}

.calendar__race-info h3 {
  margin: 0 0 10px 0;
  font-size: 1.4rem;
  text-transform: uppercase;
  font-weight: 700;
}

.calendar__location {
  color: #999;
  margin: 0;
  font-size: 0.95rem;
}

.calendar__location i {
  color: #ff1801;
  margin-right: 8px;
}

.calendar__race-footer {
  padding: 15px 25px;
  background-color: rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calendar__status-badge {
  background-color: #ff1801;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.calendar__race-card.finished .calendar__status-badge {
  background-color: #555;
}

.calendar__race-card.finished .calendar__card-top-accent {
  background-color: #555;
}

.calendar__btn-details {
  color: #ccc;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: 0.3s;
  display: none;
}

.calendar__btn-details:hover {
  color: #ff1801;
}

.calendar__btn-details i {
  font-size: 0.8rem;
  margin-left: 5px;
}

@media (max-width: 768px) {
  .nav__logo--white {
    height: 20px;
  }

  .nav__logo--black {
    height: 20px;
  }

  .nav__main-nav {
    position: absolute;
    top: 100%;

    width: 100vw;
    left: 50%;
    transform: translateX(-50%);

    background-color: #15151e;
    padding: 20px 0;
    display: none;
    z-index: 1000;
    text-align: center;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);

    margin-top: 20px;
  }

  .nav__main-nav--white {
    position: absolute;
    top: 100%;

    width: 100vw;
    left: 50%;
    transform: translateX(-50%);

    background-color: white;
    padding: 20px 0;
    display: none;
    z-index: 1000;
    text-align: center;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);

    margin-top: 20px;
  }

  .nav__hamburger {
    display: block;
  }

  .nav__hamburger--white {
    display: block;
  }

  .nav__main-nav.active {
    display: block;
  }

  .nav__main-nav--white.active {
    display: block;
  }

  .nav__list {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 0;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .nav__main-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
  }
}

@media (max-width: 600px) {
  .footer__nav {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .features-section {
    padding: 60px 30px;
  }
}

@media (max-width: 768px) {
  .contact__wrapper {
    flex-direction: column;
    gap: 40px;
  }

  .contact__form-col {
    border-right: none;
    padding-right: 0;
    border-bottom: 1px solid #ccc;
    padding-bottom: 40px;
  }
}

@media (max-width: 768px) {
  .calendar__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero h1,
  .page-title {
    font-size: 32px;
  }

  body {
    font-size: 16px;
  }
}
