:root {
  --white: #ffffff;
}

/* Custom Background Video Styles for First Slider in Hero Section */
.slide-bg .bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  /* Let it sit below the ::before overlay */
}

/* Ensure that the radial-gradient overlay in style.css sits above the video */
.banner-section .banner-slider .slide-bg::before {
  z-index: 1;
  /* Explicitly keep the overlay on top of the video */
}

/* Custom Styles for State of the Art Manufacturing Slider Pager */
.product-details .slider-pager {
  /* margin-top: 20px; */
  clear: both;
}

.product-details .slider-pager .thumb-box {
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}

.product-details .slider-pager .thumb-box li {
  position: relative;
  display: inline-block;
  width: 100px;
  height: 70px;
  overflow: hidden;
  border-radius: 4px;
  margin-right: 0 !important;
  margin-bottom: 0 !important;
}

.product-details .slider-pager .thumb-box li a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.product-details .slider-pager .thumb-box li a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Highlight active thumbnail */
.product-details .slider-pager .thumb-box li a.active {
  border-color: #008DD2;
  /* Biltube Brand Blue */
  box-shadow: 0 4px 8px rgba(0, 141, 210, 0.3);
}

.product-details .slider-pager .thumb-box li a:hover {
  border-color: rgba(0, 141, 210, 0.5);
}

/* Custom Styles for Banner Slider Pagination */
.banner-section .sec-shape,
.banner-section .arry {
  pointer-events: none !important;
}

.banner-pagination {
  bottom: 30px !important;
  z-index: 100 !important;
  pointer-events: auto !important;
}

.banner-pagination .swiper-pagination-bullet {
  pointer-events: auto !important;
  cursor: pointer !important;
}

/* Custom Dots for Product details bxSlider Pager */
.slider-pager .bx-pager-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  padding: 0;
  list-style: none;
}

.slider-pager .bx-pager-dots li {
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

.slider-pager .bx-pager-dots li a {
  display: block !important;
  width: 12px !important;
  height: 12px !important;
  border-radius: 50% !important;
  background-color: #d6d1d1 !important;
  border: 1px solid transparent !important;
  transition: all 0.3s ease;
}

.slider-pager .bx-pager-dots li a.active {
  background-color: #008DD2 !important;
  /* Biltube Brand Blue */
  border-color: #008DD2 !important;
  transform: scale(1.2);
}

.slider-pager .bx-pager-dots li a:hover {
  background-color: #008DD2 !important;
}

/* Leadership UI (April Asia style grid with dynamic bio card) */
.leadership-grid {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.leader-card {
  width: 250px;
  max-width: 100%;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

@media (max-width: 575.98px) {
  .leader-card {
    width: 100%;
  }
}

.leader-info {
  margin-bottom: 12px;
}

.leader-name {
  font-family: var(--title-font);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--headings-color);
  margin-bottom: 4px;
}

.leader-title {
  font-family: var(--text-font);
  font-size: 0.9rem;
  color: #777777;
  display: block;
  line-height: 1.4;
}

.leader-photo-wrap {
  position: relative;
  border: 1px solid #e2e8f0;
  background-color: #f8fafc;
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 1 / 1;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.leader-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.leader-card:hover .leader-photo-wrap,
.leader-card.active .leader-photo-wrap {
  border-color: #008DD2;
  /* Biltube Brand Blue */
  box-shadow: 0 10px 25px rgba(0, 141, 210, 0.15);
}

.leader-card:hover .leader-photo,
.leader-card.active .leader-photo {
  filter: grayscale(0%);
  transform: scale(1.04);
}

.leader-details-box {
  position: relative;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 35px;
  margin-top: 25px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

/* Upward pointing arrow/pointer */
.leader-details-pointer {
  position: absolute;
  top: -11px;
  left: 0;
  width: 20px;
  height: 20px;
  background-color: #ffffff;
  border-left: 1px solid #e2e8f0;
  border-top: 1px solid #e2e8f0;
  transform: translateX(0) rotate(45deg);
  transform-origin: center;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 2;
}

.leader-bio-content {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.leader-bio-content.active {
  display: block;
  opacity: 1;
}

.leader-bio-content .text {
  font-family: var(--text-font);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-color);
}

/* Custom Background Video Styles for Page Title Section */
.page-title-video {
  height: 330px;
  padding: 0 !important;
  display: flex;
  align-items: center;
}

.page-title-video .auto-container {
  width: 100%;
}

.page-title .bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.page-title::before {
  z-index: 1;
  /* Keep the radial-gradient on top of the video */
}

.page-title::after {
  z-index: 2;
  /* Keep the pattern overlay on top of the video */
  pointer-events: none;
}

.page-title .auto-container {
  position: relative;
  z-index: 3;
  /* Keep content on top of everything */
}

/* Remove down arrow from top-level dropdown menus on desktop main menu */
.main-menu .navigation>li.dropdown>.dropdown-btn {
  display: none !important;
}

/* State of the Art Manufacturing Section (Bilcare UI style) */
.slider-outer-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 8px 0 0 0;
  /* Rounded top-left only (pager will have bottom-left) */
}

.product-details .bxslider .image-box {
  margin-right: 0 !important;
  margin-bottom: 0 !important;
}

.slider-outer-wrap .bxslider {
  margin: 0;
  padding: 0;
}

.slider-outer-wrap .slider-content figure {
  margin: 0;
}

.slider-outer-wrap .slider-content img {
  width: 100%;
  height: 500px;
  /* set a nice premium height for the main image */
  object-fit: cover;
}

/* Custom Overlaid Outline Navigation Arrows */
.slider-nav-arrows {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 25px;
  pointer-events: none;
  z-index: 10;
}

.slider-arrow {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  color: #ffffff !important;
  font-size: 24px;
  background-color: rgba(0, 0, 0, 0.15) !important;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: auto;
  cursor: pointer;
}

.slider-arrow:hover {
  border-color: #ffffff !important;
  background-color: rgba(0, 141, 210, 0.85) !important;
  /* Biltube Brand Blue overlay */
  transform: scale(1.08);
}

.slider-arrow a.bx-prev,
.slider-arrow a.bx-next {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  text-indent: -9999px;
  overflow: hidden;
  z-index: 2;
  cursor: pointer;
}

/* Custom Pager (Horizontal Scroll list of thumbnails) */
.slider-pager-wrap {
  background-color: #eef2f5;
  /* Premium light grey background matching the screenshot */
  padding-left: 20px;
  /* Give it nice padding */
  border-radius: 0 0 0 8px;
  /* Rounded bottom-left corner only */
}

.product-details .slider-pager,
.product-details .slider-pager .thumb-box {
  scrollbar-width: none !important;
  /* Hide default scrollbar Firefox */
  -ms-overflow-style: none !important;
  /* Hide default scrollbar IE/Edge */
}

.product-details .slider-pager::-webkit-scrollbar,
.product-details .slider-pager .thumb-box::-webkit-scrollbar {
  display: none !important;
  /* Hide default scrollbar Chrome/Safari/Opera */
}

.product-details .slider-pager .thumb-box {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 12px !important;
  overflow-x: auto !important;
  padding: 5px 0 !important;
  margin: 0;
  list-style: none;
}

.product-details .slider-pager .thumb-box li {
  flex: 0 0 130px !important;
  width: 130px !important;
  height: 80px !important;
  border-radius: 6px !important;
  overflow: hidden;
  border: none !important;
  margin-right: 0 !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
  transition: all 0.3s ease;
}

.product-details .slider-pager .thumb-box li a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  border: 2px solid transparent !important;
  border-radius: 6px !important;
  overflow: hidden;
  transition: all 0.3s ease;
}

.product-details .slider-pager .thumb-box li a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.product-details .slider-pager .thumb-box li a.active {
  border-color: #008DD2 !important;
  box-shadow: 0 4px 10px rgba(0, 141, 210, 0.3) !important;
}

.product-details .slider-pager .thumb-box li a:hover {
  border-color: rgba(0, 141, 210, 0.5) !important;
}

/* Stats panel style matching the screenshot */
.manufacturing-stats-panel {
  background-color: #4b89d4;
  /* Bilcare style medium blue background */
  color: #ffffff;
  padding: 50px 45px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 0 8px 8px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.stat-item {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
  /* Spaced out but compact */
  border-bottom: none !important;
  /* No border lines between stats */
  padding-bottom: 0 !important;
}

.stat-item:last-of-type {
  margin-bottom: 0;
}

.stat-value {
  font-size: 2.6rem;
  /* Restored to previous correct size */
  font-weight: 700;
  /* Restored to previous correct weight */
  font-family: var(--title-font);
  color: #ffffff;
  text-align: right;
  margin-right: 30px;
  flex: 0 0 45%;
  /* Restored to previous correct width to prevent wrap */
  line-height: 1.1;
  letter-spacing: -1px;
}

.stat-label {
  font-size: 1.4rem;
  /* Restored to previous correct size */
  font-family: var(--text-font);
  color: #ffffff;
  /* Restored to previous correct color */
  flex: 0 0 55%;
  /* Restored to previous correct width */
  line-height: 1.4;
  font-weight: 500;
  /* Restored to previous correct weight */
}

.stats-description {
  margin-top: 40px;
  padding-top: 0;
  border-top: none !important;
  /* No border above description */
}

.stats-description p {
  font-size: 0.95rem;
  font-family: var(--text-font);
  color: rgba(255, 255, 255, 0.85);
  /* Slightly transparent white for secondary text */
  line-height: 1.6;
  margin: 0;
  font-weight: 300;
}

/* Ensure the columns stretch to equal height and stats panel fills it */
@media (min-width: 992px) {
  .manufacturing-section .row.align-items-stretch>.col-lg-5 {
    display: flex !important;
    flex-direction: column !important;
  }

  .manufacturing-section .row.align-items-stretch>.col-lg-5>.manufacturing-stats-panel {
    flex: 1 !important;
    height: auto !important;
  }
}

/* Responsive adjustment for stats panel */
@media (max-width: 991.98px) {
  .slider-outer-wrap {
    border-radius: 8px 8px 0 0;
  }

  .slider-pager-wrap {
    border-radius: 0;
  }

  .manufacturing-stats-panel {
    border-radius: 0 0 8px 8px;
    padding: 50px 30px;
  }

  .stat-value {
    font-size: 2.6rem;
    /* Restored to previous */
    text-align: right;
  }
}

@media (max-width: 575.98px) {
  .stat-item {
    flex-direction: column;
    align-items: flex-start;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 25px;
  }

  .stat-value {
    text-align: left;
    flex: 0 0 100%;
    margin-right: 0;
    margin-bottom: 5px;
    font-size: 2.5rem;
  }

  .stat-label {
    flex: 0 0 100%;
    font-size: 1rem;
  }
}

/* Thin orange strip at the bottom of main menu header and sticky header */
.main-header .main-box,
.main-header .sticky-header {
  /* border-bottom: 2px solid var(--theme-color1) !important; */
}

/* Custom Manufacturing Section background/text adjustments to match Bilcare UI (solid layout, no gradient) */
.manufacturing-section {
  background-color: #ffffff !important;
}

.manufacturing-section::after {
  display: none !important;
}

.manufacturing-section .title {
  color: #575757 !important;
  font-family: var(--title-font);
  font-weight: 700;
}

/* Annual Returns Tab Styling */
.annual-returns-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  padding: 30px 0;
  justify-content: flex-start;
}

.annual-return-link {
  font-family: var(--text-font, 'Segoe UI', sans-serif);
  font-size: 2rem;
  /* Large and premium, matching screenshot */
  font-weight: 300;
  /* Light weight for elegance */
  color: #247ec5;
  /* Theme blue color matching website design */
  text-decoration: none !important;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: inline-block;
  line-height: 1;
}

.annual-return-link:hover {
  color: #ef7f1a;
  /* Orange theme hover color */
  transform: translateY(-3px);
  /* Subtle hover lift */
}

@media (max-width: 767.98px) {
  .annual-return-link {
    font-size: 2rem;
    /* Responsive sizing for tablets/mobile */
  }

  .annual-returns-grid {
    gap: 25px;
    padding: 20px 0;
  }
}

/* ==========================================================================
   Interactive Map for About Image (6 segments with premium hover effects)
   ========================================================================== */
.about-interactive-map {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  background-color: #fff;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), 
              box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.about-interactive-map img.base-image {
  display: block;
  width: 100%;
  height: auto;
  transition: filter 0.45s ease, opacity 0.45s ease;
}

/* Dim and slightly blur the non-focused sectors on hover, making the zoomed sector pop out clearly */
.about-interactive-map:hover img.base-image {
  opacity: 0.55;
  filter: brightness(0.9) contrast(0.98);
}

.about-map-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

/* Interactive Infographic Sector Groups & Hover Zoom */
.svg-sector-group {
  cursor: pointer;
  transform-origin: 686px 700px;
  transition: transform 0.45s cubic-bezier(0.25, 0.8, 0.25, 1), 
              filter 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
  pointer-events: auto;
}

.svg-sector-group:hover {
  transform: scale(1.18); /* Zoom/Pop-out the active sector by 18% to make text highly readable */
  filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.35)) drop-shadow(0 0 15px rgba(0, 141, 210, 0.45));
  z-index: 100;
}

.map-sector-highlight {
  fill: rgba(0, 141, 210, 0); /* transparent by default */
  stroke: rgba(0, 141, 210, 0);
  stroke-width: 4;
  transition: fill 0.35s ease, stroke 0.35s ease;
}

.svg-sector-group:hover .map-sector-highlight {
  fill: rgba(0, 141, 210, 0.12); /* soft brand blue overlay matching branding (#008DD2) */
  stroke: rgba(0, 141, 210, 0.85); /* brand blue border */
}