/* Slider CSS – Clean design with fixed slide height and title clamp */
/* Additional tweaks */

/* Ensure the Swiper container has no bottom margin */
.mySwiper {
    margin-bottom: 0;
}

/* Reduce bottom padding of the wrapper to close the gap */
.post-slider-wrapper {
    padding-bottom: 0;
}

/* Ensure slide content hides overflow */
.slide-content {
    overflow: hidden;
}

/* Ensure title clamp works even on very long words */
.slide-title {
    word-break: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
}

:root {
    --slider-gap: 1.5rem;
    --slide-bg: #181818; /* dark background matching theme */
    --slide-radius: 8px;
    --title-color: #fff; /* white title */
    --meta-color: #bbb; /* lighter meta */
    --title-font: 'Inter', sans-serif;
    --meta-font: 'Roboto', sans-serif;
    --transition: all 0.3s ease;
    --slide-min-height: 350px; /* ensures uniform height */
    --accent-color: #1abc9c; /* cyan accent */
}

.post-slider-wrapper {
    max-width: 1600px;
    /* increased for larger cards */
    margin: 0 auto;
    padding: 2rem 1rem;
    font-family: var(--title-font);
}

/* Swiper overrides width; we rely on Swiper breakpoints, not CSS grid */
.swiper-slide {
    display: flex;
    flex-direction: column;
    min-height: var(--slide-min-height);
    box-sizing: border-box;
    padding: 0.5rem;
}

.slide-card {
    background: var(--slide-bg);
    border-radius: var(--slide-radius);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition);
}

.slide-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.slide-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.slide-thumb img.thumb-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
    /* push meta to bottom */
}

.slide-title {
    font-size: 1.1rem;
    margin: 0 0 0.5rem;
    color: var(--title-color);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    /* limit to three lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 4.2em;
    /* approximate 3 lines */
    text-overflow: ellipsis;
}

.slide-title a {
    text-decoration: none;
    color: #ffffff !important;
    /* white title link */
    transition: color 0.2s;
}

.slide-title a:hover {
    color: #0073aa !important;
    /* WP admin blue */
}

.slide-excerpt {
    color: #ffffff;
    /* white excerpt text */
}


.slide-meta {
    margin-top: 20px;
    font-size: 0.85rem;
    color: #3CFFD0; /* cyan accent for meta */
    font-family: var(--meta-font);
    display: flex;
    justify-content: space-between;
    text-transform: uppercase;
}

/* Swiper navigation styling */
.swiper-button-next,
.swiper-button-prev {
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.8);
}


.swiper-pagination-bullet {
    background: #bbb;
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: #333;
}

/* Remove custom grid styles – Swiper manages layout via breakpoints */
/* No additional media queries required */