/* CAROUSEL SCOPE - Transparent Container (No Outer Block) */
.carousel-scope {
  margin-bottom: 20px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  position: relative;
  overflow: visible; 
}

/* Heading */
.carousel-scope .fancy-heading {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  text-transform: uppercase;
  margin: 0 0 15px 5px;
  padding-left: 10px;
  border-left: 3px solid #333;
  letter-spacing: 0.5px;
}

/* BUBBLE ITEM STYLING - Compact & Fitted */
.carousel-scope .banner-thumb {
  background: #ffffff;
  /* Fine black outline (Default fallback, overridden by inline style) */
  border: 1px solid #333; 
  /* Elevated Curved Bubble */
  border-radius: 18px; 
  /* Subtle Shadow */
  box-shadow: 0 3px 6px rgba(0,0,0,0.08); 
  overflow: hidden;
  text-align: center;
  padding: 5px 12px; /* Tighter padding */
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: inline-flex; /* Fit to content */
  align-items: center;
  justify-content: center;
  height: 60px; /* Compact Height */
  width: auto; /* Shrink to content */
  min-width: 80px; /* Small minimum width to ensure consistency */
  margin: 5px 2px; /* Tiny margin for shadow breathing room */
}

/* Image Styling - Original Colors */
.carousel-scope .banner-thumb img {
  max-width: 120px; /* Constraint to prevent huge logos */
  max-height: 60px;  /* Increase to 60px or 70px for larger icons */
  width: auto;
  height: auto;
  opacity: 1; /* Full visibility */
  filter: none; /* Original Colors */
  transition: all 0.3s ease;
  display: block;
}

/* Hover Effect */
.carousel-scope .banner-thumb:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.12); 
  border-color: #000; 
  background: #fff;
}

.carousel-scope .banner-thumb:hover img {
  transform: scale(1.08);
}

/* SLIDER LAYOUT FIXES - GAP REMOVAL & CENTERING */
.carousel-scope .swiper-viewport {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0;
  margin: 0;
  overflow: visible !important; 
}
.carousel-scope .swiper-inner {
    padding: 10px 0;
    margin: -10px 0;
}

/* CRITICAL: Centers the track content */
.carousel-scope .swiper-wrapper {
    display: flex;
    justify-content: center; /* This centers the items horizontally */
}

/* CRITICAL FIX: Forces slide to shrink to content width */
.carousel-scope .swiper-slide {
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center; 
  width: auto !important; 
}

/* NAVIGATION ARROWS - Floating Circles */
.carousel-scope .swiper-pager .swiper-button-next,
.carousel-scope .swiper-pager .swiper-button-prev {
  width: 28px !important;
  height: 28px !important;
  background-color: #333 !important;
  border: 2px solid #fff;
  border-radius: 50% !important;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2) !important;
  background-image: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0; 
  transition: all 0.3s;
  top: 50% !important;
  transform: translateY(-50%);
  z-index: 10;
}
.carousel-scope .swiper-pager .swiper-button-next::after {
  content: "\f105"; font-family: FontAwesome; color: #fff; font-size: 14px;
}
.carousel-scope .swiper-pager .swiper-button-prev::after {
  content: "\f104"; font-family: FontAwesome; color: #fff; font-size: 14px;
}
.carousel-scope:hover .swiper-pager .swiper-button-next,
.carousel-scope:hover .swiper-pager .swiper-button-prev {
  opacity: 1;
}
.carousel-scope .swiper-pager .swiper-button-next:hover,
.carousel-scope .swiper-pager .swiper-button-prev:hover {
    background-color: #000 !important;
    transform: translateY(-50%) scale(1.1);
}

.carousel-scope .swiper-pager .swiper-button-next { right: -5px; }
.carousel-scope .swiper-pager .swiper-button-prev { left: -5px; }


/* --- NEWS TICKER STYLES --- */
.marquee-container {
  background: #fdfdfd;
  border: 1px solid #e0e0e0;
  border-radius: 50px; 
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  color: #333;
  font-size: 13px;
  height: 34px; 
  line-height: 32px;
  overflow: hidden;
  position: relative;
  margin-bottom: 25px; 
  display: flex;
  align-items: center;
  max-width: 100%;
}

.marquee-label {
  background: #333; 
  color: #fff;
  padding: 0 15px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  border-radius: 50px 0 0 50px; 
  z-index: 2;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  height: 100%;
  letter-spacing: 0.5px;
}

.marquee-label i { margin-right: 6px; font-size: 12px; color: #FFC107; }

.marquee-content {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  flex-grow: 1;
  background: transparent;
  mask-image: linear-gradient(to right, transparent, black 15px, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15px, black 95%, transparent);
}

.marquee-content span {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 20s linear infinite; 
  color: #555;
  font-weight: 500;
  line-height: 34px;
}

.marquee-content:hover span {
  animation-play-state: paused;
}

@keyframes marquee {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(-100%, 0); }
}

/* FLEX GRID */
.row-flex {
    display: flex;
    flex-wrap: wrap;
    margin-right: -10px;
    margin-left: -10px;
}
.row-flex > [class*='col-'] {
    padding-right: 10px;
    padding-left: 10px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

/* TILE TRANSITION */
.banner-transition-item {
    transition: opacity 0.5s ease-in-out;
    height: 100%; /* Ensure it fills column */
    display: flex;
    flex-direction: column;
}

@media (max-width: 767px) {
    /* 1. Change height from 50px to 80px */
    .carousel-scope .banner-thumb { 
        height: 80px;         /* <-- CHANGE THIS (Was 50px) */
        min-width: 90px;      /* Optional: Make it slightly wider */
        padding: 5px 8px; 
        border-radius: 12px; 
    }

    /* 2. Change max-height from 30px to 60px */
    .carousel-scope .banner-thumb img { 
        max-height: 60px;     /* <-- CHANGE THIS (Was 30px) */
    }

    /* Keep the rest the same */
    .marquee-label { padding: 0 12px; font-size: 10px; }
    .marquee-label span { display: none; }
    .marquee-label i { margin: 0; }
}