/* Reset CSS pro základní stylování */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  background-color: #ffffff;
  color: #333;
  font-size: 18px;
  line-height: 1.6;
}



header {
  background-color: #ff4b3e;
  padding: 10px 0;
  text-align: center;
}

.header-title {
  font-size: 2.5rem;
  color: #fff;
  padding: 20px 10px;
  border: 2px solid #fff;
  border-radius: 10px;
}

nav ul {
  list-style-type: none;
  display: flex;
  justify-content: center;
  background-color: #ff4b3e;
  padding: 12px 0;
  flex-wrap: wrap;
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  text-decoration: none;
  font-size: 1.2rem;
  color: #fff;
  padding: 8px 15px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

nav ul li a:hover {
  background-color: #fff;
  color: #e10600;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

nav ul li a:active {
  color: #ffdd00;
}


/* Videa index */
.video-section {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto; /* zarovnání na střed */
}

.video-section h3 {
  text-align: center;
  margin-bottom: 1rem;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}



.video-grid figure {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  max-width: 360px;
  margin: 0;
  padding: 12px;
  text-align: center;
  transition: transform 0.3s ease;
  
}

.video-grid figure:hover {
  transform: translateY(-5px);
}

.video-grid video {
  width: 100%;
  border-radius: 6px;
   height: auto;
}

.video-grid figcaption {
  margin-top: 10px;
  font-size: 15px;
  color: #333;
}







.news-section {
  padding: 40px 20px;
  background-color: #fff;
}

.news-section h3 {
  text-align: center;
  margin-bottom: 30px;
  color: #e10600;
}

.news-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 20px;
}

.news-card {
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  max-width: 300px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

.news-card:hover {
  transform: translateY(-5px);
}

.news-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.news-card h4 {
  padding: 15px;
  font-size: 1.2rem;
  color: #333;
}

.article-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
  background-color: #fff;
}

.article-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
}

.article-image {
  display: block;
  max-width: 100%;
  margin: 0 auto 20px;
  border-radius: 10px;
}

.article-text p {
  font-size: 1.3rem;
  line-height: 1.8;
  margin-bottom: 18px;
}

.news-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.news-link:hover h4 {
  text-decoration: underline;
}

.related-articles {
  max-width: 800px;
  margin: 50px auto;
  padding: 20px;
  background-color: #f5f5f5;
  border-radius: 12px;
  box-shadow: 5px 2px 8px rgba(0,0,0,0.1);
}

.related-articles h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 20px;
}

.related-item {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
}

.related-item img {
  width: 180px;
  height: 130px;
  object-fit: cover;
  border-radius: 6px;
  margin-right: 15px;
}

.related-item a {
  font-size: 19px;
  color: #000;
  text-decoration: none;
  transition: color 0.2s;
}

.related-item a:hover {
  color: #d10000;
}

.teams-section {
  padding: 50px 20px;
  background-color: #f7f7f7;
}

.teams-description {
  text-align: center;
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #555;
}

.teams-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  padding: 0 20px;
  justify-content: center;
}

.team-card {
  background-color: #ffffff;
  border-radius: 15px;
  padding: 20px;
  position: relative;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s;
}

.team-card:hover {
  transform: translateY(-8px);
}

.team-rank {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: #e10600;
  color: white;
  font-size: 1.1rem;
  padding: 6px 12px;
  border-radius: 50px;
  font-weight: bold;
}

.team-points {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: #222;
  color: white;
  font-size: 1.1rem;
  padding: 6px 12px;
  border-radius: 50px;
  font-weight: bold;
}

.team-logo {
  width: 55px;
  height: 55px;
  object-fit: contain;
  position: absolute;
  top: 150px;
  left: 50%;
  transform: translateX(-50%);
}

.team-name {
  font-size: 1.6rem;
  margin-top: 80px;
  margin-bottom: 15px;
  font-weight: bold;
  color: #000;
}

.driver-image2 {
  width: 80px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  
}

.driver-name {
  margin-top: 10px;
  font-weight: bold;
  color: #222;
  font-size: 1rem;
}

.team-car {
  margin-top: 25px;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

h2 {
  font-size: 2.5rem;
  text-align: center;
  margin: 20px 0;
}

.page-title {
  text-align: center;
  font-size: 2rem;
  margin-top: 20px;
  margin-bottom: 20px;
  color: #000;
  font-weight: bold;
}

.hero {
  background-image: url('');
  background-size: cover;
  background-position: center;
  color: #000;
  text-align: center;
  padding: 120px 20px;
}

.driver-image {
  width: 200px;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  margin: 30px auto;
}

.drivers-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 20px;
}

.driver {
  text-align: center;
}

#hamilton-section img {
  max-width: 100%;
  height: auto;
  float: none;
  display: block;
  margin: 0 auto 20px auto;
}

.zoom-img {
  transition: transform 0.3s ease;
}

.zoom-img:hover {
  transform: scale(1.05);
}

@media (min-width: 769px) {
  #hamilton-section img {
    float: left;
    margin: 0px 20px 20px 40px;
    width: 250px;
  }
}

iframe {
  width: 100%;
  max-width: 560px;
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
  margin: 0 auto;
}

footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 20px 0;
  font-size: 1rem;
}

footer p {
  margin: 0;
}

@media (max-width: 768px) {
  .header-title {
    font-size: 2rem;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
  }

  nav ul li {
    margin: 10px 0;
  }

  .page-title {
    font-size: 2rem;
  }

  .teams-container {
    grid-template-columns: 1fr;
  }

   .video-grid {
    flex-direction: column;
    align-items: center;
  }
}