/* =====================================================
   HERO CAROUSEL - SLIDER (Desktop + Mobile)
   Çalışan örnekten alınan yapı
   ===================================================== */

#heroCarousel {
  position: relative;
  height: 100%;
}

#heroCarousel .carousel-inner {
  position: relative;
  height: 100%;
}

#heroCarousel .carousel-item {
  height: 100%;
  transition: transform 0.6s ease-in-out;
}

#heroCarousel .carousel-item .hero-container {
  height: 100%;
  display: flex;
  align-items: center;
}

/* Mobilde slider düzenini düzelt */
@media (max-width: 991px) {
  #heroCarousel {
    overflow: hidden;
    width: 100%;
  }

  #heroCarousel .carousel-inner {
    overflow: visible;
    width: 100%;
  }

  #heroCarousel .carousel-item {
    min-height: auto;
    width: 100%;
  }

  #heroCarousel .carousel-item .hero-container {
    height: auto;
    min-height: 620px;
    padding-top: 2rem;
    padding-bottom: 4rem;
    width: 100%;
    max-width: 100%;
  }

  .hero-section {
    overflow: hidden;
    width: 100%;
  }

  .hero-section .hero-background {
    width: 100%;
  }
}

/* Right arrow navigation only */
.custom-arrow {
  position: absolute;
  right: 3.125rem;
  top: 50%;
  transform: translateY(-50%);
  width: 3.125rem;
  height: 3.125rem;
  background-color: transparent;
  border: none;
  z-index: 10;
  cursor: pointer;
  transition: opacity 0.3s ease;
  opacity: 0.8;
}

.custom-arrow:hover {
  opacity: 1;
}

.custom-arrow .slider-arrow-icon {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.carousel-control-next-icon {
  display: none;
}

/* Custom indicators at bottom right */
.carousel-indicators.custom-indicators {
  position: absolute;
  bottom: 2.1875rem;
  right: 3.125rem;
  display: flex;
  gap: 0.5rem;
  margin: 0;
  z-index: 10;
  left: auto;
  transform: none;
  width: auto;
  height: auto;
}

.carousel-indicators.custom-indicators button {
  width: 0.875rem !important;
  height: 0.875rem !important;
  border-radius: 50% !important;
  border: 2px solid rgba(255, 255, 255, 0.6) !important;
  background-color: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  text-indent: 0 !important;
  opacity: 0.6;
  box-sizing: border-box;
}

.carousel-indicators.custom-indicators button.active {
  background-color: #ffffff !important;
  border-color: #ffffff !important;
  opacity: 1 !important;
  width: 0.875rem !important;
  height: 0.875rem !important;
}

.carousel-indicators.custom-indicators button:hover {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.9);
}

/* Responsive */
@media (max-width: 1200px) {
  .hero-container {
    padding-left: 50px;
    padding-right: 50px;
  }

  .hero-image .slider-image {
    max-width: 350px;
  }
}

@media (max-width: 992px) {
  .hero-container {
    padding-left: 30px;
    padding-right: 30px;
  }

  .hero-content {
    margin-bottom: 40px;
  }

  .hero-image .slider-image {
    max-width: 300px;
  }

  .hero-image {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .slide-content {
    padding: 3.75rem 0;
  }

  .hero-container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .custom-arrow {
    right: 1.25rem;
    width: 2.5rem;
    height: 2.5rem;
  }

  .custom-arrow .slider-arrow-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .carousel-indicators.custom-indicators {
    bottom: 1.5625rem;
    right: 1.25rem;
    gap: 0.5rem;
  }

  .carousel-indicators.custom-indicators button {
    width: 0.75rem !important;
    height: 0.75rem !important;
    border-width: 1.5px !important;
  }

  .carousel-indicators.custom-indicators button.active {
    width: 0.75rem !important;
    height: 0.75rem !important;
  }

  .hero-image .slider-image {
    max-width: 15.625rem;
  }
}

/* Mobilde görselleri küçült */
@media (max-width: 991px) {
  .hero-image .slider-image {
    max-width: 90% !important;
    height: auto !important;
  }

  .one {
    width: 100% !important;
    max-width: 54.6875rem !important;
  }
}

.one-desc {
  margin-bottom: 5rem !important;
}

@media (max-width: 767px) {
  .hero-image .slider-image {
    max-width: 90% !important;
    height: auto !important;
  }

  .one-desc {
    margin-bottom: 15px !important;
  }
}

@media (max-width: 575px) {
  .hero-image .slider-image {
    max-width: 90% !important;
    height: auto !important;
  }
}

h1.hero-title.one {
  width: 100%;
  max-width: 60rem;
}

@media (max-width: 1600px) {
  h1.hero-title.one {
    width: 100%;
    max-width: 60rem;
  }
}

/* Mobilde indicator'ların daha iyi görünmesi için */
@media (max-width: 575px) {
  .carousel-indicators.custom-indicators {
    bottom: 1.25rem;
    right: 1rem;
    gap: 0.375rem;
  }

  .carousel-indicators.custom-indicators button {
    width: 0.625rem !important;
    height: 0.625rem !important;
    border-width: 1.5px !important;
  }

  .carousel-indicators.custom-indicators button.active {
    width: 0.625rem !important;
    height: 0.625rem !important;
  }

  .custom-arrow {
    right: 1rem;
    width: 2rem;
    height: 2rem;
  }
}
