/* Professional OwlCarousel Styles */
.main-owl-carousel .item {
  position: relative;
  min-height: 500px;
  box-shadow: 0 8px 32px rgba(40, 40, 90, 0.15);
  border-radius: 18px;
  overflow: hidden;
  margin: 0 10px;
}
.main-owl-carousel .item img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
  filter: brightness(0.92) contrast(1.05);
  transition: filter 0.3s;
}
.main-owl-carousel .item:hover img {
  filter: brightness(1) contrast(1.1) saturate(1.1);
}
/* Overlay gradient for modern look */
.main-owl-carousel .item::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0; top: 0;
  background: linear-gradient(to top, rgba(28,30,50,0.65) 0%, rgba(28,30,50,0.05) 60%);
  z-index: 1;
}
/* Caption styling */
.main-owl-carousel .carousel-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  background: none;
  padding: 2.2rem 2.5rem 2.5rem 2.5rem;
  text-align: center;
  opacity: 0.96;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  animation: carouselFadeUp 1.1s cubic-bezier(0.23, 1, 0.32, 1);
}
@keyframes carouselFadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 0.96;
    transform: translateY(0);
  }
}
.main-owl-carousel .carousel-caption h3, .main-owl-carousel .carousel-caption p {
  animation: carouselWordFade 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}
@keyframes carouselWordFade {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.main-owl-carousel .carousel-caption h3 {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #fff;
  margin-bottom: 0.7rem;
  text-shadow: 0 6px 24px rgba(28,30,50,0.55);
  line-height: 1.1;
}
.main-owl-carousel .carousel-caption p {
  font-size: 1.18rem;
  color: #e0e0e0;
  margin-bottom: 0;
  text-shadow: 0 2px 8px rgba(28,30,50,0.25);
}
/* OwlCarousel dots - modern style */
.main-owl-carousel .owl-dots {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 5;
}
.main-owl-carousel .owl-dot {
  width: 14px;
  height: 14px;
  margin: 0 5px;
  background: #fff;
  border-radius: 50%;
  border: 2px solid #28a745;
  opacity: 0.6;
  transition: background 0.3s, border 0.3s, opacity 0.3s;
}
.main-owl-carousel .owl-dot.active {
  background: #28a745;
  border-color: #fff;
  opacity: 1;
}
/* OwlCarousel nav arrows - professional look */
.main-owl-carousel .owl-nav {
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 10;
}
.main-owl-carousel .owl-nav button {
  background: rgba(40, 167, 69, 0.95);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.6rem;
  margin: 0 16px;
  box-shadow: 0 4px 16px rgba(40,167,69,0.12);
  pointer-events: all;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.main-owl-carousel .owl-nav button:hover {
  background: #1C1E32;
  color: #28a745;
  transform: scale(1.12);
}
/* Responsive height for mobile */
@media (max-width: 768px) {
  .main-owl-carousel .item {
    min-height: 280px;
  }
  .main-owl-carousel .item img {
    height: 260px;
  }
  .main-owl-carousel .carousel-caption {
    padding: 1.1rem 1.2rem 1.5rem 1.2rem;
    text-align: center;
    width: 100%;
  }
  .main-owl-carousel .carousel-caption h3 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1.15;
  }
  .main-owl-carousel .carousel-caption p {
    font-size: 0.98rem;
  }
}
