/* ===============================
   START: Stories & Features Posts Custom Styles
   =============================== */
.stories-features-wrapper {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 40px 20px !important;
}
/* Stories Grid Container - 3 columns */
.stories-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 36px !important;
  margin: 0 auto !important;
  max-width: 1100px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
/* Individual Grid Item - Flex Container */
.stories-grid .stories-grid-item {
  flex: 0 1 340px !important;
  max-width: 340px !important;
  text-align: left !important;
  display: flex !important;
  flex-direction: column !important;
}
/* Grid Thumbnail Container - Enable Zoom Effect */
.stories-grid .stories-grid-thumb {
  overflow: hidden !important;
  border-radius: 16px !important;
  width: 85% !important;
  margin: 0 auto 5px auto !important;
}
/* Grid Thumbnail */
.stories-grid .stories-grid-thumb img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 4 / 3 !important;
  border-radius: 16px !important;
  object-fit: cover !important;
  margin: 0 !important;
  display: block !important;
  transition: transform 0.3s ease !important;
}
.stories-grid .stories-grid-thumb:hover img {
  transform: scale(1.1) !important;
}
/* Grid Meta (Category | Date) */
.stories-grid .stories-grid-meta {
  padding: 0 7.5% !important;
  margin-bottom: 8px !important;
  font-size: 0.85rem !important;
  color: #004130 !important;
  font-weight: 400 !important;
  letter-spacing: 0.3px !important;
}
/* Grid Title */
.stories-grid .stories-grid-title {
  padding: 0 7.5% !important;
  margin: 0 0 16px 0 !important;
  font-size: 1.4rem !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  flex-grow: 1 !important;
}
.stories-grid .stories-grid-title a {
  color: #004130 !important;
  text-decoration: none !important;
  transition: color 0.18s ease !important;
}
.stories-grid .stories-grid-title a:hover {
  color: #e5b1a3 !important;
}
/* Read More Button - Pushed to Bottom */
.stories-grid .btn-read-more {
  display: inline-block !important;
  margin: 0 7.5% !important;
  padding: 3px 16px !important;
  border-radius: 7px !important;
  background: #004130 !important;
  color: #fffef1 !important;
  text-decoration: none !important;
  transition: all 0.18s ease !important;
  font-size: 0.9rem !important;
  align-self: flex-start !important;
}
.stories-grid .btn-read-more__arrow {
  margin-left: 8px;
  font-size: 1.6em;
  padding-bottom: 2px;
  line-height: 0;
  display: inline-block;
  transform: scale(1.8);
  transform-origin: center;
  transition: transform .18s ease;
}
.stories-grid .btn-read-more:hover .btn-read-more__arrow {
  transform: scale(1.8) translateX(4px);
}
.stories-grid .btn-read-more:hover {
  transform: translateY(-2px) !important;
  filter: brightness(1.06) !important;
}
/* Responsive Adjustments */
@media (max-width: 992px) {
  .stories-grid {
    gap: 32px !important;
  }
  
  .stories-grid .stories-grid-item {
    flex: 0 1 calc(50% - 16px) !important;
    max-width: calc(50% - 16px) !important;
  }
}
@media (max-width: 576px) {
  .stories-features-wrapper {
    padding: 20px 10px !important;
  }
  
  .stories-grid {
    gap: 28px !important;
  }
  
  .stories-grid .stories-grid-item {
    flex: 0 1 100% !important;
    max-width: 100% !important;
  }
  
  .stories-grid .stories-grid-thumb {
    width: 85% !important;
  }
  
  .stories-grid .stories-grid-thumb img {
    aspect-ratio: 16 / 10 !important;
  }
  
  .stories-grid .stories-grid-title {
    font-size: 1.3rem !important;
  }
  
  .stories-grid .stories-grid-meta {
    font-size: 0.8rem !important;
  }
}
/* ===============================
   END: Stories & Features Posts Custom Styles
   =============================== */

/* ===============================
   START: Events Posts Custom Styles
   =============================== */

.events-posts-wrapper {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 40px 20px !important;
}

/* Featured Post Layout */
.events-posts-wrapper .featured-post {
  display: flex !important;
  gap: 40px !important;
  align-items: center !important;
  margin-bottom: 60px !important;
  flex-wrap: wrap !important;
}

/* Featured Thumb Container */
.events-posts-wrapper .featured-thumb {
  position: relative !important;
  overflow: hidden !important;
  border-radius: 18px !important;
}

/* Featured Thumb Link with Gradient Overlay */
.events-posts-wrapper .featured-thumb a {
  position: relative !important;
  display: block !important;
}

/* Gradient ONLY appears when image exists */
.events-posts-wrapper .featured-thumb a:has(img)::after {
  content: '' !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 30% !important;
  background: linear-gradient(to top, rgba(9, 40, 27, 0.95), rgba(9, 40, 27, 0.75) 35%, rgba(9, 40, 27, 0.4) 65%, transparent 100%) !important;
  border-radius: 0 0 18px 18px !important;
  pointer-events: none !important;
  z-index: 1 !important;
}

/* Featured Image — fixed size but responsive */
.events-posts-wrapper .featured-thumb img {
  border-radius: 18px !important;
  width: 520px !important;
  height: 360px !important;
  max-width: 100% !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.3s ease !important;
}

.events-posts-wrapper .featured-thumb:hover img {
  transform: scale(1.1) !important;
}

.events-posts-wrapper .featured-content {
  flex: 1 1 320px !important;
  min-width: 320px !important;
}

/* Featured Title */
.events-posts-wrapper .featured-title,
.events-posts-wrapper .featured-title a {
  padding: 0 !important;
  font-size: 2rem !important;
  font-weight: 600 !important;
  color: #004130 !important;
  text-decoration: none !important;
  transition: color 0.18s ease !important;
}

.events-posts-wrapper .featured-content b,
.events-posts-wrapper .featured-content strong {
  font-weight: 600 !important;
}

.events-posts-wrapper .featured-title a:hover {
  color: #e5b1a3 !important;
}

.events-posts-wrapper .featured-excerpt {
  margin: 14px 0 !important;
  color: #004631 !important;
  line-height: 1.6 !important;
}

/* Read More Button */
.events-posts-wrapper .btn-read-more {
  display: inline-block !important;
  padding: 5px 20px !important;
  border-radius: 7px !important;
  background: #004130 !important;
  color: #fffef1 !important;
  transition: all 0.18s ease !important;
}

.events-posts-wrapper .btn-read-more__arrow {
  margin-left: 10px;
  font-size: 1.6em;
  padding-bottom: 2px;
  line-height: 0;
  display: inline-block;
  transform: scale(1.8);
  transform-origin: center;
  transition: transform .18s ease;
}

.events-posts-wrapper .btn-read-more:hover .btn-read-more__arrow {
  transform: scale(1.8) translateX(4px);
}

.events-posts-wrapper .btn-read-more:hover {
  transform: translateY(-2px) !important;
  filter: brightness(1.06) !important;
}

.events-posts-wrapper .post-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 36px !important;
  margin: 0 auto !important;
  max-width: 1100px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.events-posts-wrapper .post-grid .grid-item {
  flex: 0 1 340px !important;
  max-width: 340px !important;
  text-align: left !important;
}

.events-posts-wrapper .grid-meta {
  font-size: 0.9rem !important;
  color: #004130 !important;
  margin-bottom: 8px !important;
}

/* Grid Thumb Container - Enable Zoom Effect */
.events-posts-wrapper .grid-thumb {
  overflow: hidden !important;
  border-radius: 16px !important;
  width: 85% !important;
  margin: 0 auto 14px auto !important;
}

.events-posts-wrapper .grid-thumb img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 4 / 3 !important;
  border-radius: 16px !important;
  object-fit: cover !important;
  margin: 0 !important;
  display: block !important;
  transition: transform 0.3s ease !important;
}

.events-posts-wrapper .grid-item:hover .grid-thumb img {
  transform: scale(1.1) !important;
}

.events-posts-wrapper .grid-title {
  padding-bottom: 0 !important;
  font-size: 1.4rem !important;
  font-weight: 600 !important;
  color: #004130 !important;
  transition: color 0.18s ease !important;
}

.events-posts-wrapper .grid-item:hover .grid-title {
  color: #e5b1a3 !important;
}

.events-posts-wrapper .grid-excerpt {
  color: #004631 !important;
  font-size: 0.95rem !important;
  line-height: 1.5 !important;
}

.events-posts-wrapper .grid-meta,
.events-posts-wrapper .grid-title,
.events-posts-wrapper .grid-excerpt {
  padding: 0 7.5% !important;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .events-posts-wrapper .featured-post {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 20px !important;
  }

  .events-posts-wrapper .featured-thumb img {
    width: 100% !important;
    height: 340px !important;
    object-fit: cover !important;
  }

  .events-posts-wrapper .featured-content {
    flex: 1 1 100% !important;
    min-width: 0 !important;
    width: 100% !important;
  }
}

@media (max-width: 576px) {
  .events-posts-wrapper {
    padding: 20px 10px !important;
  }

  .events-posts-wrapper .featured-title a {
    font-size: 1.6rem !important;
  }

  .events-posts-wrapper .featured-thumb img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    object-fit: cover !important;
  }

  /* Increase grid image width on mobile only */
  .events-posts-wrapper .grid-thumb {
    width: 85% !important;
  }
  
  .events-posts-wrapper .grid-thumb img {
    aspect-ratio: 16 / 10 !important;
  }

  .events-posts-wrapper .featured-content {
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }
}

/* ===============================
   END: Events Posts Custom Styles
   =============================== */

/* ===============================
   START: Reusable Pagination Styles
   =============================== */
.updates-pagination {
  text-align: center !important;
  margin-top: 50px !important;
  font-family: inherit;
}
/* UL container */
.updates-pagination .page-numbers {
  display: inline-flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
}
/* Links & spans */
.updates-pagination .page-numbers a,
.updates-pagination .page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #e5b1a3;
  background: #ffffff;
  color: #004130;
  text-decoration: none;
  font-size: 0.95rem;
  transition: transform .12s ease, box-shadow .12s ease;
}
/* Current page */
.updates-pagination .page-numbers .current {
  background: #004130;
  color: #fffef1;
  font-weight: 600;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,65,48,0.08);
}
/* Prev/Next arrows - rectangular with centered icons */
.updates-pagination .prev,
.updates-pagination .next {
  border-radius: 6px !important;
  font-size: 2rem !important;
  line-height: 0 !important;
  justify-content: center !important;
  padding-bottom: 5px !important;
}
/* Hover */
.updates-pagination .page-numbers a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,65,48,0.08);
}
/* Small screens */
@media (max-width: 480px) {
  .updates-pagination .page-numbers {
    gap: 6px;
  }
  .updates-pagination .page-numbers a,
  .updates-pagination .page-numbers span {
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
  }
}
/* ===============================
   END: Reusable Pagination Styles
   =============================== */

/* ===============================
   START: Swiper JS Showcase
   =============================== */
.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;
}
/* ===============================
   END: Swiper JS Showcase
   =============================== */
