/* Post Carousel Section */
.post-carousel-section {
  padding: 40px 0 80px 0;
  position: relative;
  overflow: visible;
}

/* Carousel Container */
.post-carousel-wrapper {
  position: relative;
  padding-top: 50px;
  overflow: visible;
}

@media (max-width: 1024px) {
  .post-carousel-wrapper {
    padding-top: 30px;
  }
}
.slick-list {
    padding-left: 0px !important;
}

/* Individual Carousel Item */
.post-carousel-item {
  padding: 0 10px;
  height: 100%;
  flex-shrink: 0;
  transition: opacity 0.3s ease-in-out;
}

.post-carousel-wrapper .slick-slide {
  height: auto;
  /* centerMode handles all width calculations */
}

/* Link Wrapper */
.post-carousel-link-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease-in-out;
}

.post-carousel-link-wrapper:hover {
  opacity: 0.8;
}

/* Featured Image - Square */
.post-carousel-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
  background-color: #f0f0f0;
  margin-bottom: 16px;
}

.post-carousel-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Content Container */
.post-carousel-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  padding: 0;
}

/* Title */
.post-carousel-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
  margin-top: 0;
  color: #000101;
  text-decoration: none;
}

@media (min-width: 1200px) {
  .post-carousel-title {
    font-size: 18px;
  }
}

/* Excerpt */
.post-carousel-excerpt {
  flex-grow: 1;
  font-size: 14px;
  line-height: 1.5;
  color: #444444;
  margin-bottom: 0;
}

/* Slick Carousel Overrides */
.post-carousel-wrapper .slick-list {
  margin: 0;
	width: 100VW;
}

.post-carousel-wrapper .slick-track {
  display: flex;
}

/* Navigation Arrows - Top Right Corner */
.carousel-arrow {
  position: absolute !important;
  top: 0 !important;
  z-index: 9 !important;
  width: 25px !important;
  height: 25px !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  font-size: 0 !important;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  outline: none !important;
  box-shadow: none !important;
  left: auto !important;
  margin: 0 !important;
  margin-bottom: 20px !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.carousel-arrow img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

.carousel-arrow--prev {
  right: 40px !important;
  transform: rotate(180deg) !important;
}

.carousel-arrow--next {
  right: 0 !important;
  transform: rotate(0deg) !important;
}

/* Pagination Dots */
.post-carousel-wrapper .slick-dots {
  position: relative;
  bottom: auto;
  left: 0;
  right: 0;
  display: flex !important;
  justify-content: center;
  list-style: none;
  margin: 30px 0 0 0;
  padding: 0;
  gap: 8px;
}

.post-carousel-wrapper .slick-dots li {
  display: inline-block;
  width: 12px;
  height: 12px;
  background-color: #cccccc;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.post-carousel-wrapper .slick-dots li.slick-active {
  background-color: #000101;
  width: 28px;
  border-radius: 6px;
}

.post-carousel-wrapper .slick-dots button {
  display: none;
}

/* Ensure carousel items work properly */
.post-carousel-wrapper .slick-initialized .slick-slide {
  display: flex;
}

/* Responsive Design */
@media (max-width: 1199px) {
  .post-carousel-wrapper {
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .post-carousel-section {
    padding: 30px 0;
  }

  .post-carousel-title {
    font-size: 14px;
  }

  .post-carousel-wrapper .slick-dots {
    margin-top: 30px;
  }
}

/* Loading state */
.post-carousel-wrapper.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Empty placeholder item */
.post-carousel-item--empty {
  visibility: hidden;
}

/* Minimal carousel mode (1-2 slides) */
.post-carousel-wrapper.carousel-minimal .slick-list {
  width: 100%;
  margin: 0;
}

.post-carousel-wrapper.carousel-minimal .slick-track {
  display: flex;
  justify-content: flex-start;
  transform: none !important;
  margin-left: 0 !important;
}

.post-carousel-wrapper.carousel-minimal .post-carousel-item {
  padding: 0 10px;
  flex: 0 0 auto;
}

/* For single slide, make it take appropriate width */
.post-carousel-wrapper.carousel-minimal .post-carousel-item:only-child {
  width: 100%;
  max-width: 400px;
}

/* For two slides, split space more evenly */
.post-carousel-wrapper.carousel-minimal .slick-track > .post-carousel-item:nth-child(2) {
  margin-left: auto;
}