body {
  padding: 0;
  margin: 0;
  font-family: "Lato", sans-serif;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  box-sizing: border-box;
  height: fit-content;
  text-align: center;
}

.container h1 {
  font-size: 3rem;
  color: #4b2e2e;
  margin-top: 2rem;
}

.carousel {
  width: 100vw;
  height: 80vh;
  overflow: hidden;
  position: relative;
}

.carousel-slides {
  display: flex;
  width: 300vw;
  height: 100%;
  animation: slide 24s infinite;
}

.carousel-slides img {
  width: 100vw;
  height: 100%;
  object-fit: cover;
}

@keyframes slide {
  0% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-100vw);
  }
  45% {
    transform: translateX(-100vw);
  }

  50% {
    transform: translateX(-200vw);
  }
  70% {
    transform: translateX(-200vw);
  }

  75%,
  100% {
    transform: translateX(0);
  }
}

.info-section {
  margin-top: 3rem;
  text-align: left;
  padding: 0 2rem;
}

.info-section h2 {
  font-size: 1.5rem;
  color: #4b2e2e;
  margin-bottom: 2rem;
}

.info-section p {
  font-size: 1.2rem;
  color: #4b2e2e;
  line-height: 1.8;
  font-weight: 500;
  text-align: justify;
}

.history-button-wrapper {
  display: flex;
  justify-content: flex-end;
  padding: 1rem 2rem;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.featured-article {
  width: 100vw;
  background-color: #e7581a;
  color: #fff8f0;
  padding: 4rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
  box-sizing: border-box;
}

.article-text {
  max-width: 600px;
  text-align: justify;
  font-size: 1.2rem;
}

.article-text button {
  background-color: #c42021;
  color: #fff8f0;
  border: none;
  padding: 0.7rem 1.5rem;
  margin-top: 1rem;
  border-radius: 20px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.article-text button:hover {
  transform: scale(1.1);
}

.article-image {
  width: 400px;
  height: 250px;
  background-color: #e7581a;
  border-radius: 4px;
  object-fit: cover;
}

.carousel .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.navbar {
  z-index: 2;
}

@media (max-width: 768px) {
  .featured-article {
    flex-direction: column-reverse;
    text-align: center;
    padding: 2rem 1rem;
  }

  .article-text {
    max-width: 100%;
    padding: 0 1rem;
    text-align: center;
  }

  .article-image {
    width: 100%;
    height: auto;
    max-height: 300px;
    border-radius: 8px;
  }

  .carousel {
    height: 70vh;
  }

  .carousel-slides {
    animation: slide 18s infinite;
  }

  .info-cards {
    flex-direction: column;
    align-items: center;
    flex-wrap: nowrap;
  }

  .info-card {
    width: 90%;
  }

  .container h1 {
    font-size: 2rem;
  }

  .info-section h2 {
    font-size: 1.5rem;
    padding: 0;
  }

  .statistics-section {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .stat-box {
    width: 80%;
    margin: 0 auto;
  }

  .stat-box h3 {
    font-size: 2rem;
  }

  .stat-box p {
    font-size: 1rem;
  }
}

.history-button {
  padding: 1rem 2rem;
  background-color: #e7581a;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.history-button:hover {
  background-color: #c64513;
}

.statistics-section {
  padding: 3rem 1rem;
  background-color: #f3f3f3;
  text-align: center;
}

.statistics-title {
  width: 100%;
  text-align: center;
  font-size: 2.5rem;
  color: #8b4513;
  margin-bottom: 2rem;
}

.stat-wrapper {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
}

.stat-box {
  flex: 1;
  min-width: 150px;
  margin: 0;
}

.stat-box h3 {
  font-size: 2.5rem;
  color: #8b4513;
  margin-bottom: 0.5rem;
}

.stat-box p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 0;
}
