: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 Step Accordion for Biltube (6 steps)
   ========================================================================== */
.biltube-accordion {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 600px;
  gap: 12px;
  overflow: hidden;
  position: relative;
  padding: 10px 0;
}

.step-panel {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(180deg, #09202f 0%, #03080f 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: flex 0.6s cubic-bezier(0.25, 1, 0.3, 1),
    background 0.4s ease,
    border-color 0.4s ease,
    box-shadow 0.4s ease;
  cursor: pointer;
  position: relative;
}

.step-panel:hover {
  border-color: rgba(0, 141, 210, 0.25);
  box-shadow: 0 5px 15px rgba(0, 141, 210, 0.05);
}

.step-panel.active {
  flex: 6;
  background: linear-gradient(180deg, #0b2d42 0%, #030d14 100%);
  border-color: rgba(0, 141, 210, 0.6);
  box-shadow: 0 12px 35px rgba(0, 141, 210, 0.25);
  cursor: default;
}

/* Vertical collapsed header */
.panel-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 30px 10px;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.step-panel.active .panel-header {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.header-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.step-icon-collapsed {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: brightness(0.9) contrast(1.1);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 3px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.step-panel:hover .step-icon-collapsed {
  transform: scale(1.08);
  border-color: rgba(0, 141, 210, 0.4);
}

.panel-header .step-num {
  font-family: var(--title-font, sans-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: #008DD2;
  letter-spacing: 0.5px;
  line-height: 1;
}

.panel-header .step-title-vertical {
  writing-mode: vertical-rl;
  text-orient: mixed;
  transform: rotate(180deg);
  font-family: var(--title-font, sans-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

/* Active panel content */
.panel-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px 30px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease 0.25s, visibility 0.4s ease 0.25s;
  z-index: 1;
}

.step-panel.active .panel-content {
  opacity: 1;
  visibility: visible;
}

.content-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.content-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 10px;
}

.step-num-large {
  font-family: var(--title-font, sans-serif);
  font-size: 2rem;
  font-weight: 800;
  color: #008DD2;
  line-height: 1;
}

.step-icon-expanded {
  width: auto;
  height: 120px;

  border-radius: 8px;

}

.step-title {
  font-family: var(--title-font, sans-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 2px 0;
  line-height: 1.25;
}

.step-desc {
  font-family: var(--text-font, sans-serif);
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.step-stat-box {
  display: flex;
  flex-direction: column;
  background: rgba(0, 141, 210, 0.08);
  border-left: 4px solid #008DD2;
  padding: 8px 12px;
  border-radius: 0 8px 8px 0;
  margin-top: 4px;
}

.step-stat-value {
  font-family: var(--title-font, sans-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
}

.step-stat-label {
  font-family: var(--text-font, sans-serif);
  font-size: 0.76rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 3px;
}

.content-photo-wrap {
  width: 100%;
  height: 200px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 15px;
  position: relative;
}

.step-photo-full {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.3, 1);
}

.step-panel.active:hover .step-photo-full {
  transform: scale(1.05);
}

/* ==========================================================================
   Responsive Accordion Layout
   ========================================================================== */
@media (max-width: 991.98px) {
  .biltube-accordion {
    flex-direction: column;
    height: auto;
    gap: 12px;
    padding: 10px 0;
  }

  .step-panel {
    flex: none;
    width: 100%;
    height: 60px;
    transition: height 0.5s cubic-bezier(0.25, 1, 0.3, 1),
      background 0.4s ease,
      border-color 0.4s ease;
  }

  .step-panel.active {
    height: auto;
    min-height: auto;
    background: linear-gradient(180deg, #0b2d42 0%, #030d14 100%);
  }

  /* Header horizontal on mobile */
  .panel-header {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    height: 60px;
  }

  .header-top {
    flex-direction: row;
    width: auto;
    gap: 15px;
  }

  .step-icon-collapsed {
    width: 28px;
    height: 28px;
  }

  .panel-header .step-title-vertical {
    writing-mode: horizontal-tb;
    transform: none;
    margin: 0;
    font-size: 1.1rem;
  }

  .panel-content {
    position: relative;
    opacity: 0;
    visibility: hidden;
    height: auto;
    padding: 25px 25px 30px 25px;
    transition: opacity 0.4s ease 0.15s;
  }

  .step-panel.active .panel-content {
    opacity: 1;
    visibility: visible;
  }

  .content-photo-wrap {
    height: 240px;
  }
}

@media (max-width: 575.98px) {
  .panel-content {
    padding: 20px 20px 25px 20px;
  }

  .content-photo-wrap {
    height: 180px;
  }
}