.blog-related-posts>.content-wrapper>h1,
.blog-related-posts>.content-wrapper>h2,
.blog-related-posts>.content-wrapper>h3,
.blog-related-posts>.content-wrapper>h4,
.blog-related-posts>.content-wrapper>h5,
.blog-related-posts>.content-wrapper>h6 {
  margin-bottom: 60px;
}

.blog-related-posts__list {
  display: flex;
  overflow-x: auto;
  padding: 0.1rem;
  scroll-snap-type: x mandatory;
  gap: 1.5rem;
  scroll-behavior: smooth;
}


.blog-related-posts__list::-webkit-scrollbar {
  display: none; 
}

.blog-related-posts__post {
  flex: 0 0 auto;
  scroll-snap-align: start;
  background: #fff;
  padding: 15px !important;
  box-sizing: border-box;
  transition: transform 0.2s ease;
  margin: 0 auto; /* Center on smaller screens */
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  
  {#width: clamp(250px, 30vw, 300px); /* Responsive width */
  min-width: 250px;#}
  
  {#display: flex;
  flex-direction: column;
  justify-content: space-between; /* Ensures spacing between content and button */
  width: 300px;
  min-width: 300px;
  height: 100%; /* Use a fixed height if needed */
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-sizing: border-box;
  scroll-snap-align: start;
  margin: 0 3.5rem;#}
}

article.blog-related-posts__post {
  border-radius: 10px !important;
}

.blog-related-posts__post:hover {
  transform: scale(1.01);
  border-radius: 10px !important;
}

.blog-related-posts__image {
  height: 179px;
  object-fit: cover;
  width: 100%;
  background-position: 50% 50%;
  background-size: cover;
  padding: 0px 0px 0px 0px; 
  border-radius: 0px;
}

.blog-related-posts__title {
  margin: 2px 0;
  margin-top: 15px;
  font-size: 18px;
  line-height: 24px;
}

.in-blog__author .in-blog__author-name {
  margin-bottom: 14px;
}

.in-blog__author a.in-blog__author-name,
.blog-related-posts__content .in-blog__author span {
  font-weight: 100 !important;
  font-family: sans-serif !important;
  color: #53535B;
}

.in-blog__author {
  padding-top: 5px;
}

.blog-related-posts__content p:last-child,
.blog-related-posts__content p,
.blog-related-posts__content h3 {
  display: none;
  
}

.blog-related-posts__content {
  padding: 0 15px;  
}

h3.blog-related-posts__content {
  padding: 0 20px;
  
}

h3.content-wrapper {
  padding-left: 20px;
}

article.blog-related-posts__post a.blog-related-posts__title-link {
  font-size: 22px;
}

.blog-related-posts__btn {
  display: inline-block;
  position: relative;
}

.icon .blog-related-posts__btn-icon {
  display: inline-block; 
  height: 24px;
  transform: translateY(20%);
  width: 24px;
  position: static;
}

.icon {
  display: flex;
  justify-content: flex-end;
  color: #86b74c !important;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.slider-arrow svg {
  width: 20px;
  height: 20px;
  stroke: #334155;
}

.slider-arrow.disabled {
  opacity: 0;
  pointer-events: none;
}

.slider-arrow.prev {
  left: -10px;
}

.slider-arrow.next {
  right: -10px;
}

.blog-related-posts__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.blog-related-posts__dots .dot {
  width: 10px;
  height: 10px;
  background-color: #ccc;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  padding: 5px 5px;
  opacity: 0.4;
  background-color: #B91684;
}

.blog-related-posts__dots .dot.active {
  opacity: 1;
}

@media screen and (min-width: 768px) and (max-width: 991px) {
  .blog-related-posts__post:not(:nth-child(2n)) {
    margin-right: 0px;
  }
}

@media screen and (min-width: 992px) {
  .blog-related-posts__post {
    margin-bottom: 0;
  }

  .blog-related-posts__post:not(:nth-child(3n)) {
    margin-right: 0px;
  }
}

@media only screen and (max-width: 767px) {
  .blog-related-posts>.content-wrapper>h1,
  .blog-related-posts>.content-wrapper>h2,
  .blog-related-posts>.content-wrapper>h3,
  .blog-related-posts>.content-wrapper>h4,
  .blog-related-posts>.content-wrapper>h5,
  .blog-related-posts>.content-wrapper>h6 {
    margin-bottom: 40px;
  }
  
  .blog-header__inner {
    padding: 50px 15px;
  }
  
  .blog-related-posts {
    padding: 0px 15px 40px;
  }
  
  .blog-header__inner .content-wrapper, 
  .blog-related-posts .content-wrapper {
    padding: 0;
  }
  
  .blog-related-posts__post {
    padding: 14px 14px 30px;
  }
}

{# Slider styles #}
.blog-related-posts__post {
    background-color: #ffffff;
  }

.blog-related-posts__post:hover {
  box-shadow: 1px 0 4px 0 rgba(0, 0, 0, 0.1);
}

  

.blog-related-posts__post {
   flex: 0 0 auto;
   width: 300px;
   min-width: 300px;
   padding: 20px;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
  padding: 6px 10px;
  border: none;
}

.slider-arrow.prev { left: -5px; }
.slider-arrow.next { right: -5px; }

.blog-related-posts__slider-wrapper {
  position: relative;
  padding: 0 40px;
  display: flex;
  overflow: hidden;
}

.blog-related-posts__content {
  flex-grow: 1; /* Take up remaining space */
  display: flex;
  flex-direction: column;
}

p.blog-related-posts__content .{
  font-size: 16px;
}



.blog-related-posts__btn-icon path {
  stroke: #86b74c !important;
}

{# TAGS #}
.blog-related-posts__content .blog-post__tags svg {
  margin-right: 5px;
  vertical-align: middle;
}

.blog-related-posts__content .blog-post__tags svg g path {
  fill: #425b76 !important; {# #7E3FF2 #} 
  {#transform: rotate(-45deg);#}
}

.blog-related-posts__content .blog-post__tags {
  margin-top: 0px;
}

.blog-related-posts__content .blog-post__tags {
  padding-top: 0px;
  padding-bottom: 10px;
  font-family: 'Montserrat', sans-serif !important;
  display: none;
}

a.blog-post__tag-link {
  font-size: 15px;
}

.blog-related-posts__title-link,
.blog-index__post-author-name .in-blog__author-name a {
  font-family: 'Montserrat', sans-serif !important;
}

h4.blog-related-posts__title {
  font-size: 22px;
  font-weight: 600;
}

span.blog-date {
  font-size: 13px !important;
  font-family: sans-serif !important;
  color: #86b74c !important;
}
  
.blog-related-posts__content a.blog-post__tag-link {
  font-weight: 200;
} 

.blog-related-posts__content h4.blog-related-post__title {
  margin: 5px 0;
}

.blog-related-posts__title-link {
  color: #073763 !important;
}

.blog-related-posts__btn {
  margin-top: auto; /* Pushes it to the bottom */
}

.blog-related-post__Slider-wrapper {
    align-items: center;
    position: relative;
    display: flex;
    overflow: hidden;
}

/* Phone (1 item per slide) */
@media screen and (max-width: 767px),
/* Tablet (2 items per slide) */
@media screen and (min-width: 768px) and (max-width: 991px),
/* Desktop (3 items per slide) */
@media screen and (min-width: 992px) {
  .blog-related-posts__post {
    margin: 0; /* Clean since we use gap now */
  }
}


/* Default: 1 card per row (Mobile first) */
@media screen and (max-width: 767px) {
  .blog-related-posts__post {
     width: 100%;
     min-width: 100%;
  }   
  
  .blog-related-posts__slider-wrapper{
    position: relative;
    display: flex;    
    justify-content: center;
    padding: 15 0;
  }
  
  .blog-related-posts__list {
    max-width: 90%;
  } 
  
  .author-info__avatar img {
    max-width: 70% !important;
    border-radius: 50%;
  }
  
  article.blog-post .blog-post__tags div {
    padding-top: 20px;
    display: flex;
    justify-content: center;
  }
  
  .blog-related-posts .content-wrapper h3 {
    margin-bottom: 20px !important;
    color: #004360 !important; 
    margin-left: 30px;
  }
  
  article.blog-related-posts__post a.blog-related-posts__title-link {
    font-size: large !important;
    letter-spacing: 0;
  }
}

/* Tablet: 2 cards */
@media (min-width: 768px) and (max-width: 991px) {
  .blog-related-posts__post {
    width: calc(50% - 0.75rem); /* account for gap */
    min-width: calc(50% - 0.75rem);
  }
  
  .blog-related-posts .content-wrapper h3 {
    margin-bottom: 30px !important;
    color: #004360 !important; 
  }
}

/* Desktop: 3 cards */
@media (min-width: 992px) {
  .blog-related-posts__post {
    width: calc(33.333% - 1rem);
    min-width: calc(33.333% - 1rem);
  }
  
  .blog-related-posts__slider-wrapper{
    padding: 0 80px,
  }
  .blog-related-posts .content-wrapper h3 {
    color: #004360 !important; 
  }
}
