#heroCarousel {
  width: 100%;
  overflow: hidden;
}

/* Masaüstü için */
#heroCarousel img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: center;
  filter: brightness(80%);
  transition: transform 6s ease;
}

.carousel-item.active img {
  transform: scale(1.05);
}

/* Yazılar */
.carousel-caption {
  background: rgba(0, 0, 0, 0.45);
  border-radius: 1rem;
  padding: 1rem 2rem;
  backdrop-filter: blur(5px);
}

.carousel-caption h2 {
  font-size: 2.4rem;
  font-weight: 700;
  color: #fff;
}

.carousel-caption p {
  color: #f1f1f1;
  font-size: 1.2rem;
  margin-top: 0.5rem;
}

/* Tablet görünüm */
@media (max-width: 992px) {
  #heroCarousel img {
    height: 400px;
    object-fit: cover;
  }

  .carousel-caption {
    padding: 0.8rem 1.5rem;
  }

  .carousel-caption h2 {
    font-size: 1.8rem;
  }

  .carousel-caption p {
    font-size: 1rem;
  }
}

/* === Mobil görünüm === */
@media (max-width: 576px) {
  #heroCarousel img {
    height: auto;              /* otomatik yükseklik */
    object-fit: contain;       /* resmi kırpma, tamamını göster */
    object-position: center;
  }

  .carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    padding: 0.5rem 1rem;
    bottom: 10px;
  }

  .carousel-caption h2 {
    font-size: 1.3rem;
  }

  .carousel-caption p {
    font-size: 0.9rem;
  }

  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    width: 25px;
    height: 25px;
  }
}

html, body {
  overflow-x: hidden; /* yatay scroll'u engeller */
}
