/**
 * Owl Carousel Styles for News & Promos Section
 */

/* Owl Carousel Core Styles */
.owl-carousel {
  display: none;
  width: 100%;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  z-index: 1;
}

.owl-carousel.owl-loaded {
  display: block;
}

.owl-carousel .owl-stage-outer {
  position: relative;
  overflow: hidden;
  -webkit-transform: translate3d(0, 0, 0);
}

.owl-carousel .owl-stage {
  position: relative;
  -ms-touch-action: pan-Y;
  touch-action: manipulation;
  -moz-backface-visibility: hidden;
}

.owl-carousel .owl-item {
  position: relative;
  min-height: 1px;
  float: left;
  -webkit-backface-visibility: hidden;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

.owl-carousel .owl-item img {
  display: block;
  width: 100%;
}

/* Navigation Buttons */
.owl-carousel .owl-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  pointer-events: none;
  z-index: 10;
}

.owl-carousel .owl-nav button.owl-prev,
.owl-carousel .owl-nav button.owl-next {
  pointer-events: all;
  position: absolute;
  background: rgba(0, 0, 0, 0.5) !important;
  color: #fff !important;
  border: none;
  padding: 10px !important;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.owl-carousel .owl-nav button.owl-prev:hover,
.owl-carousel .owl-nav button.owl-next:hover {
  background: rgba(204, 0, 0, 0.9) !important;
}

.owl-carousel .owl-nav button.owl-prev {
  left: -15px;
}

.owl-carousel .owl-nav button.owl-next {
  right: -15px;
}

.owl-carousel .owl-nav button.disabled {
  opacity: 0.5;
  cursor: default;
}

.owl-carousel .owl-nav button svg {
  width: 24px;
  height: 24px;
}

/* Dots */
.owl-carousel .owl-dots {
  text-align: center;
  margin-top: 20px;
}

.owl-carousel .owl-dots button.owl-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d6d6d6 !important;
  border: none;
  margin: 0 4px;
  padding: 0 !important;
  cursor: pointer;
  transition: all 0.3s ease;
}

.owl-carousel .owl-dots button.owl-dot.active,
.owl-carousel .owl-dots button.owl-dot:hover {
  background: #cc0000 !important;
}

/* Card Height Fix for Carousel */
.owl-carousel .owl-stage {
  display: flex;
  align-items: stretch;
}

.owl-carousel .owl-item {
  display: flex;
  height: auto;
}

.owl-carousel .item {
  height: 100%;
  display: flex;
  padding: 20px 0 !important;
  width: 100%;
}

.owl-carousel .item .card {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.owl-carousel .item .card .figure {
  flex-shrink: 0;
}

.owl-carousel .item .card h4{
  font-size: 16px !important;
}

.owl-carousel .item .card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.owl-carousel .item .card-body p:not(.news-read-more) {
  flex-grow: 1;
}

.owl-carousel .item .card-body .news-read-more {
  margin-top: auto;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .owl-carousel .owl-nav button.owl-prev {
    left: 0;
  }

  .owl-carousel .owl-nav button.owl-next {
    right: 0;
  }
}

/* Loading state */
.owl-carousel:not(.owl-loaded) {
  opacity: 0;
}

.owl-carousel.owl-loaded {
  opacity: 1;
  transition: opacity 0.3s ease;
}

