/* ===============================
   Swiper JS Showcase Styles
   =============================== */
.custom-slider {
  width: 100%;
  position: relative;
  overflow: visible !important; /* allow shadow to escape */

}

/* allow wrapper overflow so pseudo shadow is visible */
.custom-slider .swiper-wrapper {
  overflow: visible !important;
}

.swiper-slide {
  background: transparent;
  width: 500px;
  position: relative;
  overflow: visible;
  transition: all 0.5s ease;
  filter: blur(4px) brightness(0.8);
  transform: scale(0.9);
  opacity: 0.7;
}

/* active slide */
.swiper-slide-active {
  filter: blur(0) brightness(1);
  transform: scale(1);
  opacity: 1;
  z-index: 30; /* higher so slide (and its shadow) sit above neighbors */
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.35) !important;
  /* ensure pseudo-element sits visually under the image but above caption */
  overflow: hidden;
}

/* pseudo-element: strong soft bottom shadow for active slide */
.swiper-slide-active::after {
  content: "";
  position: absolute;
  left: 6%;            /* horizontal inset so shadow doesn't touch edges */
  right: 6%;
  bottom: -26px;       /* place below the image */
  height: 52px;        /* thickness of shadow area */
  background: rgba(0, 0, 0, 0.28);
  filter: blur(24px);  /* soft falloff */
  z-index: 20;         /* below the image (image uses z-index:21 below) */
  pointer-events: none;
  transform: translateZ(0);
  transition: all 0.45s ease;
}

/* ensure image sits above the pseudo-element */
.swiper-slide img {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 21;
}

.swiper-slide span {
  position: absolute;
  bottom: 10px;
  left: 18px;
  color: white;
  font-weight: 500;
  z-index: 22;
  font-family: glorify-regular !important;
}

/* Caption - keep below the slide/shadow visually */
.slider-caption {
  text-align: center;
  position: relative;
  z-index: 10;     /* lower than active slide's z-index so shadow remains visible */
  margin-top: 12px; /* give a little space so caption doesn't overlap shadow */
}

.slider-caption h3,
.slider-caption p,
.slider-caption span {
  color: #004631;
}

.custom-slider .swiper-pagination {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  text-align: center;
  width: auto;
  padding: 4px 8px;
  line-height: 0;
  z-index: 20;
  pointer-events: auto;
}

.custom-slider .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: #ccc;
  opacity: 0.3;
  transition: opacity 0.25s ease;
  margin: 0 3px;
}

.custom-slider .swiper-pagination-bullet-active {
  background: #e5b6ad;
  opacity: 1;
}

/* SLIDER CAPTION SECTION */
.slider-caption {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 500px;
  margin: 8px auto 0 auto;
  color: #004631;
  background-color: transparent;
  font-family: inherit;
}

/* Left side text */
.slider-caption-left {
  display: block;
  text-align: left;
}

.slider-caption-left h3 {
  font-size: 19px !important;
  font-weight: 600;
  color: #004631;
  line-height: 1.2;
  padding-bottom: 0;
}

.slider-caption-left p {
  font-size: 13px !important;
  color: #004631;
  margin: 0 !important;
  font-weight: 600 !important;
  line-height: 1.3;
  font-family: glorify-regular !important;
}

/* Right side counter */
.slider-caption-right {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  font-size: 17.5px !important;
  color: #004631;
  line-height: 1.3;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

/* Desktop (min-width: 1025px) */
@media (min-width: 1025px) {
  .slider-caption {
    width: 500px;
  }

  .slider-caption-left h3 {
    font-size: 24px;
    font-weight: 600;
  }

  .slider-caption-left p {
    font-size: 14px;
  }

  .slider-caption-right {
    font-size: 17.5px !important;
  }
}

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
  .custom-slider {
    padding: 20px 0 48px 0;
  }

  .swiper-slide {
    width: 360px;
  }

  .slider-caption {
    width: 360px;
  }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
  .custom-slider {
    padding: 10px 0;
  }

  .custom-slider .swiper-wrapper {
    justify-content: center !important;
  }

  .swiper-slide {
    width: 100% !important;
    max-width: 400px;
    margin: 0 auto !important;
    filter: none !important;
    transform: scale(1) !important;
    cursor: pointer;
    overflow: hidden;
    box-shadow: none !important;
  }

  .swiper-slide-active {
    filter: none !important;
    opacity: 1 !important;
    transform: scale(1) !important;
  }

  /* hide the large bottom shadow on small screens */
  .swiper-slide-active::after {
    display: none;
  }

  .slider-caption {
    align-items: flex-start;
    text-align: left;
    width: 90%;
    max-width: 400px;
    margin: 6px auto 0 auto;
    padding: 0;
  }

  .slider-caption-left h3 {
    font-size: 18px;
    margin-bottom: 2px;
  }

  .slider-caption-left p {
    font-size: 13px;
  }

  .slider-caption-right {
    margin-top: 4px;
    font-size: 17.5px !important;
    font-weight: 600 !important;
  }

  .slider-caption .slide-counter,
  .slider-caption-right,
  .slider-caption-right span {
    font-size: 17.5px !important;
    font-weight: 600 !important;
    color: #004631 !important;
  }
}

/* Pagination visibility */
@media (min-width: 769px) {
  .custom-slider .swiper-pagination {
    display: none;
  }
}

@media (max-width: 768px) {
  .custom-slider .swiper-pagination {
    display: block;
  }
  .btVerticalHeaderTop .btLogoArea {
	display: flex;
	justify-content: center; /* Centers content horizontally */
	align-items: flex-start; /* Aligns content to the top */
	width: 80%; /* Ensure the container takes full width */
	padding-top: 0; /* Remove any unwanted top padding */
	margin-top: 0; /* Remove any unwanted top margin */
  }
  .btVerticalHeaderTop .btLogoArea .logo img {
		display: block;
		margin: 0;
		padding: 0;
		vertical-align: middle;
	}
}

/* Mobile full image overlay */
.mobile-image-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 9999;
}

.mobile-image-overlay.show {
  opacity: 1;
  visibility: visible;
}

.mobile-image-overlay img {
  width: 90%;
  max-width: 500px;
}

.mobile-image-overlay .close-btn {
  position: absolute;
  top: 20px;
  right: 25px;
  color: white;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
}
