/* Styles for portrait video carousel */
.video-carousel-section {
    background-color: #191a20;
}



.video-carousel-section .section-heading h2 {
  color: #fff;
  margin-bottom: 20px;
}
.video-carousel .item {
  padding: 8px;
}
.video-wrap {
  position: relative;
  width: 100%;
  padding-top: 177.78%; /* 9:16 portrait aspect ratio (height = 16/9 * width) */
  overflow: hidden;
  border-radius: 10px;
  background: #000;
}
.portrait-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* smaller portrait cards on narrow screens */
@media (max-width: 767px) {
  .video-wrap { padding-top: 160%; }
}

/* adjust owl nav color to be visible */
.video-carousel.owl-theme .owl-nav button.owl-prev,
.video-carousel.owl-theme .owl-nav button.owl-next {
  background: rgba(255,255,255,0.9);

  color: #111;
  border-radius: 50%;
  width: 36px;
  height: 36px;
}
.video-carousel-section {
  padding: 60px 0;
}
.video-carousel .item video { display: block; }

/* Place video-carousel navigation under the carousel, centered */
.video-carousel.owl-theme {
  position: relative; /* make absolute children position relative to carousel */
}
.video-carousel.owl-theme .owl-nav {
  /* place nav overlay across the full width, but allow per-section overrides */
  position: absolute !important;
  top: 50% !important;
  left: 0 !important;
  right: 0 !important;
  transform: translateY(-50%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 12px !important;
  z-index: 2000; /* ensure nav sits above videos and other content */
  pointer-events: auto;
  width: 100% !important;
}
.video-carousel.owl-theme .owl-nav button {
  background: rgba(0,0,0,0.55) !important; /* dark translucent background so white arrows are visible */
  color: #fff !important;
  border-radius: 50% !important;
  width: 44px !important;
  height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: none !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.28) !important;
  z-index: 2001 !important; /* put buttons above the nav group */
}
.video-carousel.owl-theme .owl-nav button:focus { outline: none; }
@media (max-width: 767px) {
  .video-carousel.owl-theme .owl-nav { top: 50%; transform: translate(-50%, -50%); }
  .video-carousel.owl-theme .owl-nav button { width: 36px; height: 36px; }
}

/* Force center nav inside the section and cancel any inherited absolute offsets */
.video-carousel-section {
  position: relative; /* ensure absolute .owl-nav is positioned relative to the section */
}
.video-carousel-section .owl-nav {
  /* override to put arrows at the extreme left/right of the section */
  position: absolute !important;
  top: 50% !important;
  left: 0 !important;
  right: 0 !important;
  transform: translateY(-50%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 12px !important;
  width: 100% !important;
  z-index: 9999 !important;
  pointer-events: auto !important;
}
.video-carousel-section .owl-nav .owl-prev,
.video-carousel-section .owl-nav .owl-next {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  margin: 0 !important;
  background: rgba(0,0,0,0.55) !important;
  color: #fff !important;
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 3px 8px rgba(0,0,0,0.35) !important;
}

/* Extra safeguard: ensure nav icons (FontAwesome/pseudo) are visible */
.video-carousel-section .owl-nav span,
.video-carousel.owl-theme .owl-nav span {
  color: #fff !important;
  font-size: 20px !important;
  z-index: 2002 !important;
}


/* Styles for the small categories carousel (image + one video) */
.categories-carousel .item { padding: 6px; }
.categories-carousel .media {
  width: 100%;
  height: 630px;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.categories-carousel .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.categories-carousel .media video.category-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 767px) {
  .categories-carousel .media { height: 260px; }
}

/* Position navigation arrows above the media for categories carousel */
.categories-carousel {
  position: relative;
  margin-top: 12px;
}
.categories-carousel .owl-nav {
  position: absolute;
  top: 50%; /* vertically center the nav */
  transform: translateY(-50%);
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 8px;
  z-index: 50;
  pointer-events: none; /* allow clicks only on buttons */
}

.owl-nav span {
font-size: 30px;
}
.categories-carousel .owl-nav button {
  pointer-events: all;
  background: rgba(255,255,255,0.95);
  color: #ffffff !important;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}
.categories-carousel .owl-nav button:focus { outline: none; }

@media (max-width: 767px) {
  .categories-carousel .owl-nav { top: 50%; transform: translateY(-50%); }
  .categories-carousel .owl-nav button { width: 30px; height: 30px; }
  .categories-carousel .media { height: 500px; }
}
