/* =============================================
   Post Slider — post-slider.css
   Upload to: /wp-content/themes/YOUR-THEME/post-slider.css
   ============================================= */

.ps-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 0 20px;
    font-family: inherit;
    gap: 0;
}

/* The scrollable area sits between the two arrow buttons */
.ps-track-outer {
    overflow: hidden;
    flex: 1;
    min-width: 0;
}

.ps-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.ps-slide {
    flex: 0 0 calc(33.333% - 24px);
    margin: 0 12px;
    box-sizing: border-box;
}

/* Card */
.ps-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}



/* Thumbnail */
.ps-thumb {
    width: 100%;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    background: #e8e8e8;
    border-radius: 12px;
}

.ps-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.ps-card:hover .ps-thumb img {
    transform: scale(1.04);
}

.ps-thumb-placeholder {
    background: #d0d0d0;
}

/* Text below image */

.ps-title {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    text-decoration-color: var(--gcid-heading-color);
    color: var(--gcid-heading-color) ;
    font-size: 24px;
    letter-spacing: 0px;
    line-height: 32px;margin-bottom:6px;margin-top:20px;
}

.ps-date {
    color: #28261b;
    font-size: 17px;
    letter-spacing: 0px;
    line-height: 24px;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
}
/* Arrow buttons — sit flush left/right OUTSIDE the track */
.ps-arrow {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
    z-index: 2;
    transition: background 0.2s, box-shadow 0.2s;
    color: #333;
    /* Space between arrow and the slides */
    margin: 0 8px;
    padding: 0;
    line-height: 1;
}

.ps-arrow svg {
    display: block;
    flex-shrink: 0;
}

.ps-arrow:hover {
    background: #f5f5f5;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.ps-arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

    .ps-arrow svg{height:26px;width:26px;}

.ps-prev {
    position: absolute;
background: #F0F1F5;
    border: 1px solid #0B162C;
    border-radius: 100%;
    height: 50px;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    left: -20px;
}



.ps-next {
    position: absolute;
background: #F0F1F5;
    border: 1px solid #0B162C;
    border-radius: 100%;
    height: 50px;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    right: -20px;}
/* Tablet: 2 slides */
@media (max-width: 900px) {
.ps-slide {
    flex: 0 0 calc(50% - 10px);
    margin: 0 10px;
}

.ps-arrow svg{height:22px;width:22px;}

.ps-prev {
    height: 40px;
    width: 40px;
}



.ps-next {
    height: 40px;
    width: 40px;}
}

/* Mobile: 1 slide */
@media (max-width: 560px) {
    .ps-slide {
        flex: 0 0 calc(100% - 10px);
    }
    .ps-arrow {
        width: 34px;
        height: 34px;
        margin: 0 4px;
    }
}