/* Container & Nav Styling */
.tabs-container {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  max-width: 1140px;
  margin: 20px auto;
  padding: 0 16px;
  box-sizing: border-box;
  overflow: visible;
}

.tabs-nav {
  list-style: none;
  display: flex;
  justify-content: start;
  align-items: center;
  gap: 20px;
  padding: 0;
  margin-bottom: 0;
  overflow-x: auto;
  flex-wrap: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; 
  max-width: 100%;
}

.tabs-nav::-webkit-scrollbar { display: none; }

.tab-link {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
  font-weight: 700;
  font-size: 1.5rem; /* Adjusted from 2.5rem for better balance */
  margin-bottom: 1.5rem;
  text-align: center;
  line-height: 1.2;
  transition: color 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
  color: #333;
  font-size: 3rem;
    line-height: 3rem;
    font-weight: 700;
}

.tab-link.active {
  color: #009661;
  border-bottom: 3px solid #009661;
}

.tab-divider {
  border: 0;
  border-top: 1px solid #ddd;
  margin-top: -1px;
}

/* Content Visibility */
.tab-content {
  display: none;
  padding: 20px 0;
  animation: fadeIn 0.5s ease;
}

.tab-content.active { display: block; }

/* Owl Carousel Styling Fixes */
.image-wrapper {
  position: relative;
  width: 100%;
  margin: 0;
}

/* Force images to maintain aspect ratio within the carousel */
.image-wrapper .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 8px;
}

/* Download overlay */
.img-download-wrap {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 8px;
}

.img-download-wrap .download-btn,
.video-container .download-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  color: #fff;
  text-decoration: none;
  z-index: 5;
  pointer-events: none;
}

.img-download-wrap .download-btn svg,
.video-container .download-btn svg {
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.img-download-wrap:hover .download-btn,
.img-download-wrap:focus-within .download-btn,
.video-container:hover .download-btn,
.video-container:focus-within .download-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.05);
  pointer-events: auto;
}

.img-download-wrap .download-btn:hover,
.video-container .download-btn:hover {
  background: rgba(0, 150, 97, 0.85);
}

/* Responsive Video Container for mixed media */
.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
}

.video-container iframe,
.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Owl Navigation Customization */
.tabs-container .image-wrapper {
  position: relative;
}

.tabs-container .owl-nav {
  display: flex !important;
  justify-content: space-between;
  position: absolute;
  top: 50%;
  left: 8px;
  right: 8px;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 10;
}

.tabs-container .owl-nav button {
  pointer-events: all;
  background: rgba(255, 255, 255, 0.92) !important;
  color: #9f9f9f !important;
  border: 1px solid #d8d8d8 !important;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 1.7rem;
  cursor: pointer;
  display: flex !important;
  align-items: center;
  justify-content: center;
  opacity: 1 !important;
  visibility: visible !important;
}

.tabs-container .owl-nav button:hover {
  background: #ffffff !important;
  color: #7c7c7c !important;
}

.tabs-container .owl-nav button .owl-arrow {
  display: inline-block;
  line-height: 1;
  font-weight: bold;
}
.item{
  width: 100%;
  padding: 0;
}

.tabs-container .owl-item {
  opacity: 0.4;
  transform: scale(0.76);
  transition: transform 0.35s ease, opacity 0.35s ease;
}

/* center item when center:true in Owl */
.tabs-container .owl-item.active.center {
  opacity: 1;
  transform: scale(1);
}

.tabs-container .owl-item .img-download-wrap {
  transition: transform 0.35s ease;
}

.tabs-container .owl-item.active.center .img-download-wrap {
  transform: scale(1);
}

.tabs-container .owl-item:not(.center) .img-download-wrap {
  transform: scale(0.9);
}

/* fallback: when only 1 item is active (items:1 mode), always highlight */
.tabs-container .owl-item.active:not(.owl-item + .owl-item.active) {
  opacity: 1;
  transform: scale(1);
}

.tabs-container .owl-stage-outer {
  overflow: hidden;
}
.video-container iframe,
.video-container video {
  width: 100%;
  height: 100%;
}

.image-wrapper.owl-carousel.row {
  display: flex;
  gap: 20px;
}
.owl-dots{
  display: none;
}
@media screen and (max-width: 767px) {
  .tabs-nav {
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    padding: 0 8px 8px;
  }

  .tab-link {
    font-size: 1.55rem;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    white-space: nowrap;
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .tabs-container .owl-nav {
    left: 10px;
    right: 10px;
  }
  .tabs-container .owl-nav button {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
}