.post-carousel-block {
    padding: 40px 0 60px 0;
    position: relative;
    background: lightgrey;
}

.post-carousel-section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: var(--font-size-h2, 4.5rem);
    font-weight: 400;
    margin: 0 0 40px 0;
}

.post-carousel-section-subtitle {
    text-align: center;
    padding: 6px 20px;
    margin-bottom: 28px;
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0 auto 28px auto;
    width: max-content;
}

.post-carousel-block .post-carousel-container.swiper-container {
    margin-left: auto;
    margin-right: auto;
    max-width: 1320px;
    width: 100%;
    padding: 0;
    position: relative;
}

.post-carousel-block .swiper-wrapper {
    align-items: stretch;
}

.post-carousel-block .swiper-slide {
    width: 375px !important;
    height: auto;
    display: flex;
}

.post-carousel-block .post-carousel-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: none;
    min-height: auto;
    margin: 10px;
    width: 100%;
}

.post-carousel-block .post-carousel-card:hover {
    transform: none !important;
}

.post-carousel-block .post-carousel-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.post-carousel-block .post-carousel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-carousel-block .post-carousel-content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 20px;
}

.post-carousel-block .post-carousel-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 14px;
}

.post-carousel-block .post-carousel-date {
    background-color: #fdca6e;
    color: #111;
    padding: 4px 12px;
    font-weight: 500;
}

.post-carousel-block .post-carousel-category {
    background-color: #002f5d;
    color: #fff;
    padding: 4px 12px;
    font-weight: 500;
}

.post-carousel-block .post-carousel-title {
    margin: 0 0 12px;
    font-size: 20px;
    line-height: 1.4;
    font-weight: 600;
}

.post-carousel-block .post-carousel-title a {
    color: inherit;
    text-decoration: none;
}

.post-carousel-block .post-carousel-excerpt {
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.6;
    color: #444;
}

.post-carousel-block .post-carousel-read-more {
    display: inline-block;
    margin-top: auto;
    color: #fff;
    background: #002f5d;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s, color 0.3s;
    padding: 12px 24px;
    border: 2px solid #002f5d;
    text-align: center;
}

.post-carousel-block .post-carousel-read-more:hover {
    color: #002f5d;
    background: #fff;
    border: 2px solid #002f5d;
}

/* Navigation arrows */
.post-carousel-block .post-carousel-arrows {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    position: relative;
    bottom: 0;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding-top: 20px;
    padding-bottom: 20px;
}

.post-carousel-block .swiper-button-next,
.post-carousel-block .swiper-button-prev {
    background-color: #fdca6e;
    color: #002f5d;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background 0.2s, color 0.2s;
}

.post-carousel-block .swiper-button-next:after,
.post-carousel-block .swiper-button-prev:after {
    font-size: 20px;
    color: #002f5d;
}

.post-carousel-block .swiper-button-next:hover,
.post-carousel-block .swiper-button-prev:hover {
    background-color: #fff;
    color: #002f5d;
}

.post-carousel-block .swiper-button-next:hover:after,
.post-carousel-block .swiper-button-prev:hover:after {
    color: #002f5d;
}

.post-carousel-block .post-carousel-arrows .swiper-pagination {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 16px;
    z-index: 10;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .post-carousel-block .post-carousel-container.swiper-container {
        max-width: 848px; /* 2 slides * (400px + 24px gap) adjust as needed */
        padding: 0 40px;
    }
}
@media (max-width: 768px) {
    .post-carousel-block .post-carousel-container.swiper-container {
        max-width: 424px; /* 1 slide * (400px + 24px gap) adjust as needed */
        padding: 0 20px;
    }
}

@media (max-width: 1024px) {
    .post-carousel-block .post-carousel-content {
        padding: 20px;
    }
    
    .post-carousel-block .post-carousel-title {
        font-size: 18px;
    }
}

@media (max-width: 640px) {
    .post-carousel-section-title {
        font-size: 24px;
    }
    
    .post-carousel-section-subtitle {
        font-size: 16px;
        padding: 10px 15px;
    }
    .post-carousel-block .post-carousel-container.swiper-container {
        max-width: 100vw;
        width: 100vw;
        padding: 0;
    }
    .post-carousel-block .swiper-slide {
        width: 100vw !important;
        max-width: 100vw !important;
        margin: 0 auto;
        display: flex;
        justify-content: center;
    }
    .post-carousel-block .post-carousel-card {
        width: 100vw !important;
        max-width: 100vw !important;
        margin: 0 auto;
    }
    .post-carousel-block .post-carousel-arrows {
        justify-content: center;
    }
}

/* Custom Carousel Styles */
.post-carousel-container.custom-carousel {
    position: relative;
    padding: 20px 0;
    margin: 0 auto;
    overflow: visible;
    max-width: 100vw;
    width: 100%;
}

.custom-carousel__container {
    display: flex;
    transition: transform 0.6s ease;
    gap: 12px;
    align-items: stretch;
    padding: 0 20px;
}

.custom-carousel__slide {
    flex: 0 0 360px;
    min-width: 360px;
    height: auto;
    display: flex;
    align-items: stretch;
}

@media (max-width: 1199px) and (min-width: 768px) {
    .custom-carousel__slide {
        flex: 0 0 340px;
        min-width: 340px;
    }
}

@media (max-width: 767px) {
    .custom-carousel__slide {
        flex: 0 0 90vw;
        min-width: 90vw;
    }
    .custom-carousel__container {
        gap: 5px;
    }
}

.custom-carousel__prev,
.custom-carousel__next {
    position: static;
    width: 40px;
    height: 40px;
    margin-top: 0;
    background-color: transparent;
    border: 2px solid #facc6e;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, border-color 0.3s, color 0.3s;
}

.custom-carousel__prev:after,
.custom-carousel__next:after {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
}

.custom-carousel__prev:after {
    border-width: 6px 8px 6px 0;
    border-color: transparent #facc6e transparent transparent;
    margin-left: 2px;
}

.custom-carousel__next:after {
    border-width: 6px 0 6px 8px;
    border-color: transparent transparent transparent #facc6e;
    margin-right: 2px;
}

.custom-carousel__prev:hover,
.custom-carousel__next:hover {
    background-color: #002f5d;
    border-color: #facc6e;
}

.custom-carousel__prev:hover:after {
    border-color: transparent #fff transparent transparent;
}
.custom-carousel__next:hover:after {
    border-color: transparent transparent transparent #fff;
}
