/* Homepage hero carousel — premium manufacturing / agriculture style */

.hero-banner {
  position: relative;
  width: 100%;
  min-height: 70vh;
  padding-top: 137px;
}

@media (min-width: 992px) {
  .hero-banner {
    min-height: 85vh;
  }
}

.hero-banner .carousel,
.hero-banner .carousel-inner,
.hero-banner .carousel-item {
  min-height: inherit;
}

.hero-banner__slide {
  position: relative;
  min-height: inherit;
  background-color: #1a2e1f;
  overflow: hidden;
}

.hero-banner__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  transition: transform 8s ease-out;
}

.hero-banner .carousel-item.active .hero-banner__bg {
  transform: scale(1.08);
}

.hero-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(8, 28, 18, 0.82) 0%,
    rgba(8, 28, 18, 0.55) 45%,
    rgba(8, 28, 18, 0.25) 100%
  );
  z-index: 1;
}

.hero-banner__content {
  position: relative;
  z-index: 2;
  min-height: inherit;
  display: flex;
  align-items: center;
  padding: 4rem 0 5rem;
}

.hero-banner__inner {
  max-width: 720px;
  color: #fff;
  text-align: left;
}

.hero-banner__title {
  font-size: clamp(1.75rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
  color: #FFF;
}

.hero-banner__desc {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.65;
  opacity: 0.92;
  margin-bottom: 1.75rem;
  max-width: 560px;
}

.hero-banner__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  background: linear-gradient(135deg, #2d8f4e 0%, #1e6b38 100%);
  border: none;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(30, 107, 56, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.hero-banner__cta:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(30, 107, 56, 0.55);
  background: linear-gradient(135deg, #34a358 0%, #247a42 100%);
}

.hero-banner__cta i {
  font-size: 1.15rem;
  transition: transform 0.25s ease;
}

.hero-banner__cta:hover i {
  transform: translateX(4px);
}

/* Indicators */
.hero-banner .carousel-indicators {
  margin-bottom: 1.5rem;
  gap: 0.35rem;
}

.hero-banner .carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  opacity: 1;
  transition: background 0.3s ease, transform 0.3s ease;
}

.hero-banner .carousel-indicators .active {
  background: #fff;
  border-color: #fff;
  transform: scale(1.15);
}

/* Controls */
.hero-banner .carousel-control-prev,
.hero-banner .carousel-control-next {
  width: 56px;
  height: 56px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  opacity: 0.9;
  transition: background 0.25s ease;
}

.hero-banner .carousel-control-prev {
  left: 1rem;
}

.hero-banner .carousel-control-next {
  right: 1rem;
}

.hero-banner .carousel-control-prev:hover,
.hero-banner .carousel-control-next:hover {
  background: rgba(255, 255, 255, 0.22);
}

@media (max-width: 767.98px) {
  .hero-banner .carousel-control-prev,
  .hero-banner .carousel-control-next {
    width: 44px;
    height: 44px;
  }

  .hero-banner__content {
    padding: 3rem 0 4rem;
  }
}

/* Fallback static banner when DB has no slides */
.hero-banner-fallback {
  min-height: 70vh;
  background: #1a2e1f;
}

@media (min-width: 992px) {
  .hero-banner-fallback {
    min-height: 85vh;
  }
}

.hero-banner-fallback img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: inherit;
}
