/**
 * Related Posts Carousel Styles
 * Styles for the Accessible Slick carousel showing related blog posts
 */

/* Container */
.related-posts-section {
    /* margin: 3rem 0; */
    padding: 2rem 0;
    padding-top: 3rem;
    padding-bottom: 4rem;
    /* border-top: 1px solid #e0e0e0; */
}

.related-posts-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* Carousel wrapper */
.related-posts-carousel {
    margin: 0 -15px;
}

/* Post card */
.related-post-card {
    /* padding: 0 15px; */
    /* outline: none; */
    /* padding: 20px; */
    padding-left: 20px;
    padding-right: 20px;
}

.related-post-card-inner {
    background: #E5E5E5;
    padding: 20px;
    /* border: 1px solid #e0e0e0; */
    /* border-radius: 8px; */
    /* overflow: hidden; */
    /* transition: transform 0.3s ease, box-shadow 0.3s ease; */
    height: 100%;
    display: flex;
    flex-direction: column;
}

.related-post-card-inner:hover {
    /* transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); */
}

/* Category label - positioned above image */
.related-post-card .category-label {
  color: #013E42;
  font-weight: 900;
  position: static;
  width: auto;
  font-size: 15px;
}

.related-post-card .category-label a {
    /* color: #F7941D; */
    text-decoration: none;
    /* transition: opacity 0.3s ease; */
}


/* Post image */
.related-post-image {
    position: relative;
    /* overflow: hidden; */
    aspect-ratio: 3/2;
    margin-bottom: 10px;
    /* background-color: #f5f5f5; */
    /* margin: 0 1rem; */
}

.related-post-image a {
    /* position: absolute; */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.related-post-image img {
    /* position: absolute;
    top: 0;
    left: 0; */
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-post-card-inner:hover .related-post-image img {
    /* transform: scale(1.05); */
}

/* Post content */
.related-post-content {
    /* padding: 1.5rem; */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding-bottom: 1rem;
}

@media screen and (min-width: 768px) {
  .related-post-card .related-post-content .category-label,
  .related-post-card .related-post-content p {
      width: auto;
      position: static;
  }
}


/* Post title - using event-title class to match */
.related-post-card .related-post-content .event-title {
  margin: 0 0 1rem 0;
  font-size: 1.25rem;
  line-height: 1.4;
}
.related-post-card .related-post-content .event-title a {
  font-family: "moret", serif !important;  
  font-size: clamp(21px, 3vw, 24px);

}

.related-post-card .event-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}



/* Post meta info */
.post-meta-info {
    /* font-size: 0.875rem; */
    color: #666;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.meta-author {
    font-weight: 400;
}
.related-posts-carousel .slick-slide > div > .related-post-card,
.related-posts-carousel .slick-slide > div {
    height: 100%;
}
.meta-date {
    /* color: #999; */
}

/* Arrow link - matching event cards */
.related-post-card .arrow-link {
    display: block;
    margin-top: auto;
    /* margin-bottom: 1rem; */
}

.related-post-card .arrow-link img {
    width: 32px;
    margin-left: 0;
    height: auto;
    transition: transform 0.3s ease;
}

/* .related-post-card-inner:hover .arrow-link img {
    transform: translateX(5px);
} */

/* Slick carousel customization */
.related-posts-carousel .slick-dots {
    bottom: -40px;
    display: flex !important;
    justify-content: center;
    gap: 8px;
    padding: 0;
    list-style: none;
}

.related-posts-carousel .slick-dots li {
    margin: 0;
    width: auto;
    height: auto;
}

.related-posts-carousel .slick-dots li button:hover {
    background-color: transparent;
}

/* .related-posts-carousel .slick-dots li button:hover,
.related-posts-carousel .slick-dots li button:focus {
    border-color: #F7941D;
} */

.related-posts-carousel .slick-dots li.slick-active button {
    /* background: #F7941D;
    border-color: #F7941D; */
}

/* Arrow buttons */
.related-posts-carousel .slick-prev,
.related-posts-carousel .slick-next {
    width: 40px;
    height: 40px;
    background: #fff;
    /* border: 2px solid #e0e0e0; */
    border-radius: 50%;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.related-posts-carousel .slick-arrow {
  /* background-image: url(/wp-content/uploads/elementor/thumbs/arrow-orange-rb0g13afe4m9afax4ry4qce3ovlutqc1x3wnyjjtsw.png);
  background-repeat: no-repeat;
  background-position: center center; */
  border: none;
  padding: 10px;
  span[class*="slick-"]::before {
    content: '';
    background-image: url(/wp-content/themes/hello-elementor/assets/icons/chevron-right.svg);
    background-repeat: no-repeat;
    background-position: center center;
    width: 20px;
    height: 20px;
    display: block;
    background-size: 20px;
  }
}
.related-posts-carousel .slick-arrow.slick-prev span::before {
    transform: rotate(180deg);
}

.slick-next .slick-next-icon::before, 
.slick-next .slick-prev-icon::before, 
.slick-prev .slick-next-icon::before, 
.slick-prev .slick-prev-icon::before {
	color: #222;
}

.related-posts-carousel .slick-prev {
    left: -27px;
}

.related-posts-carousel .slick-next {
    right: -27px;
}

.related-posts-carousel .slick-prev:before,
.related-posts-carousel .slick-next:before {
    content: '';
}

/* No posts message */
.no-related-posts {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .related-posts-carousel .slick-prev {
        left: -10px;
    }
    
    .related-posts-carousel .slick-next {
        right: -10px;
    }
}

@media (max-width: 768px) {
    .related-posts-section h2 {
        font-size: 1.5rem;
    }
    
    .related-post-title {
        font-size: 1.125rem;
    }
    
    .related-posts-carousel .slick-prev,
    .related-posts-carousel .slick-next {
        width: 35px;
        height: 35px;
    }
}
