/* Detail page hero gallery styles */

.bd-blog-hero {
  position: relative;
}

.bd-blog-hero .bd-hero-swiper {
  width: 100%;
  height: 100%;
}

.bd-blog-hero .swiper-wrapper,
.bd-blog-hero .swiper-slide {
  height: 100%;
}

.bd-blog-hero .bd-hero-image,
.bd-blog-hero .bd-hero-video-thumb,
.bd-blog-hero iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

/* YouTube slide overlay and play icon */
.bd-blog-hero a[data-type="youtube"] {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
}

.bd-blog-hero a[data-type="youtube"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 2;
  transition: background 0.25s ease;
  border-radius: 12px;
}

.bd-blog-hero a[data-type="youtube"]::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 76px;
  height: 76px;
  z-index: 3;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  /* Inline SVG: dark circle + white play triangle */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='76' height='76' viewBox='0 0 76 76'%3E%3Ccircle cx='38' cy='38' r='38' fill='rgba(0,0,0,0.6)'/%3E%3Cpolygon points='32,25 32,51 54,38' fill='%23ffffff'/%3E%3C/svg%3E");
}

.bd-blog-hero a[data-type="youtube"]:hover::before {
  background: rgba(0, 0, 0, 0.45);
}

@media (max-width: 768px) {
  .bd-blog-hero a[data-type="youtube"]::after {
    width: 48px;
    height: 48px;
  }
}



/* Navigation positioned vertically centered and stuck to edges */
.bd-blog-hero .navigation-field {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 15px;
  padding-right: 15px;
  pointer-events: none;
  z-index: 50;
}

.bd-blog-hero .navigation-field > .bd-hero-prev,
.bd-blog-hero .navigation-field > .bd-hero-next,
.bd-blog-hero .navigation-field > .hero-prev,
.bd-blog-hero .navigation-field > .hero-next {
  pointer-events: auto;
  position: relative;
  z-index: 100;
  background: #4e0bd9 !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #fff;
}

/* Ensure buttons are sizable and clickable even if utility classes are unavailable */
.bd-blog-hero .navigation-field > .hero-prev,
.bd-blog-hero .navigation-field > .hero-next {
  width: 60px;
  height: 60px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
}

.bd-blog-hero .swiper-autoheight, .swiper-autoheight .swiper-slide {
    height: 630px !important;
}

.bd-blog-hero a[data-type="youtube"] {
    height: 630px !important;
}

.bd-blog-hero [class*=icon-]:before {
    color: #d9e506;
}

@media (max-width: 768px) {
  .bd-blog-hero .navigation-field {
    padding-left: 8px;
    padding-right: 8px;
  }

  .bd-blog-hero .navigation-field > .hero-prev, .bd-blog-hero .navigation-field > .hero-next {
    width: 40px;
    height: 40px;
  }
  
}

@media screen and (max-width: 768px) { 
    .bd-blog-hero .swiper-autoheight, .swiper-autoheight .swiper-slide {
        height: 230px !important;
        overflow: hidden;
    }

    .bd-blog-hero a[data-type="youtube"] {
        height: 230px !important;
        overflow: hidden;
    }

     .bd-blog-hero .bd-hero-video-thumb {
        scale: 1.2;
    }

    
}

@media screen and (min-width: 768px) and (max-width: 1024px) { 
    .bd-blog-hero .swiper-autoheight, .swiper-autoheight .swiper-slide {
        height: 500px !important;
        overflow: hidden;
    }

    .bd-blog-hero a[data-type="youtube"] {
        height: 500px !important;
        overflow: hidden;   
    }

    .bd-blog-hero {
        height: 500px !important;   
    }

    .bd-blog-hero .bd-hero-video-thumb {
        scale: 1.2;
    }

    
}

/* ==========================
   Blog Pagination Styles
   ========================== */
.blog-pagination {
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sg-pagination {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #e6e8ec;
  border-radius: 10px;
  padding: 6px 10px;
  box-shadow: 0 4px 12px rgba(16, 24, 40, 0.04);
}

.sg-page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: #101828;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: all .15s ease-in-out;
}

.sg-page-btn:hover {
  background: #f2f4f7;
}

.sg-page-btn.disabled,
.sg-page-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.sg-page-btn.active,
.sg-page-btn.sg-number.active {
  background: #4E0BD9;
  color: #fff;
}

.sg-page-list {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 6px;
  padding: 0;
}

.sg-page-item {
  display: inline-flex;
}

/* Ellipsis */
.sg-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 36px;
  color: #667085;
  padding: 0 6px;
  user-select: none;
}

/* Responsive tweaks */
@media (max-width: 575.98px) {
  .sg-pagination {
    gap: 6px;
    padding: 4px 8px;
  }
  .sg-page-btn {
    min-width: 32px;
    height: 32px;
    font-size: 14px;
  }
}