body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background-color: #f6f6f6;
  color: #222;
}
header {
  background-color: #1f3a93;
  color: white;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
header h1 {
  margin: 0;
  font-size: 2rem;
}
nav a {
  color: white;
  margin-left: 20px;
  text-decoration: none;
  font-weight: 600;
  background-color: #3a60d1;
  padding: 8px 16px;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}
nav a:hover {
  background-color: #5b7df2;
}
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("https://images.unsplash.com/photo-1578926375605-eaf7559b1453")
      center/cover no-repeat;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}
.hero h2 {
  font-size: 3rem;
  max-width: 90%;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 20px;
  border-radius: 12px;
}
.section {
  padding: 40px 20px;
  max-width: 1100px;
  margin: auto;
}
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 30px;
}
.card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
}
.card h3 {
  margin-top: 10px;
}
footer {
  background-color: #1f3a93;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}
/* new css */
.carousel {
  position: relative;
  width: 100%;
  max-width: 90%;
  text-align: center;
}

.carousel-slide {
  font-size: 2.2rem;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 25px;
  border-radius: 12px;
  display: none;
  animation: fadeIn 0.6s ease-in-out;
}

.carousel-slide.active {
  display: block;
}

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

.carousel-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 30px;
}

.carousel-controls button {
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 8px 16px;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.carousel-controls button:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.carousel-dots {
  position: absolute;
  bottom: 20px;
  width: 100%;
  text-align: center;
}

.carousel-dots .dot {
  display: inline-block;
  height: 12px;
  width: 12px;
  margin: 0 6px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s;
}

.carousel-dots .dot.active {
  background-color: #fff;
}
/* mobile first design additions */
@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden;
  }

  header {
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
  }

  nav {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  nav a {
    display: block;
    width: 100%;
    text-align: center;
    margin: 0;
    box-sizing: border-box;
    font-size: 1rem;
  }

  .hero {
    height: auto;
    padding: 60px 20px;
    text-align: center;
  }

  .carousel-slide {
    font-size: 1.4rem;
    padding: 20px;
  }

  .carousel-controls {
    padding: 0 10px;
  }

  .carousel-controls button {
    font-size: 1.5rem;
    padding: 6px 12px;
  }

  .section {
    padding: 30px 15px;
  }

  ul {
    padding-left: 20px;
  }

  .features {
    grid-template-columns: 1fr;
  }
}
