.hero-slider {
  position: relative;
  width: 100%;
  height: 70vh;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.6);
  padding: 40px 50px;
  border-radius: 6px;
  text-align: center;
  color: #fff;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.overlay h2 {
  font-size: 2.2rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.overlay p {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.buttons {
  display: flex;
  gap: 14px;
}

.btn {
  padding: 10px 22px;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  font-size: 15px;
  transition: all 0.25s ease;
}

.btn.red {
  background: #b91c1c;
  color: #fff;
}

.btn.red:hover {
  background: #991b1b;
}

.btn.white {
  background: #fff;
  color: #111;
}

.btn.white:hover {
  background: #f3f4f6;
}

.btn.outline {
  border: 2px solid #fff;
  color: #fff;
  background: transparent;
}

.btn.outline:hover {
  background: #fff;
  color: #111;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 8px 14px;
  cursor: pointer;
  z-index: 2;
}

.slider-btn:hover {
  background: rgba(0, 0, 0, 0.6);
}

.slider-btn.prev {
  left: 20px;
}

.slider-btn.next {
  right: 20px;
}

.feature-cards {
  margin-top: -10vh;
  position: relative;
  z-index: 5;
}

.cards-wrapper {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  flex: 1 1 370px;
  max-width: 400px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1f2937;
  padding: 16px;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

@media (max-width: 992px) {
  .cards-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    justify-items: center;
  }

  .feature-cards .card {
    max-width: 100%;
  }

  .feature-cards .card img {
    height: 200px;
  }
}

@media (max-width: 600px) {
  .cards-wrapper {
    grid-template-columns: 1fr;
  }

  .feature-cards .card {
    width: 100%;
    max-width: 100%;
  }

  .feature-cards .card img {
    height: 180px;
    object-fit: cover;
  }
}

@media (max-width: 768px) {
  .overlay {
    width: 96%;
    max-width: none;
    padding: 22px 16px;
    background: rgba(0, 0, 0, 0.55);
    border-radius: 8px;
  }

  .overlay h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
  }

  .overlay p {
    font-size: 0.95rem;
    margin-bottom: 16px;
    line-height: 1.4;
  }

  .buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .btn {
    width: 100%;
    font-size: 14px;
    padding: 10px 0;
  }

  .slider-btn {
    top: 78%;
    font-size: 1.6rem;
    padding: 6px 10px;
  }
}

@media (max-width: 480px) {
  .overlay {
    width: 98%;
    max-width: none;
    padding: 18px 12px;
    border-radius: 6px;
  }

  .overlay h2 {
    font-size: 1.3rem;
  }

  .overlay p {
    font-size: 0.9rem;
  }

  .slider-btn {
    top: 70%;
    font-size: 1.4rem;
    padding: 5px 8px;
  }
}
