/* ===== SECTION WRAPPER (FULL WIDTH) ===== */
.gcs-slider-section {
    width: 100%;
    padding: 30px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow: hidden;
}

/* ===== MAIN SLIDER CONTAINER ===== */
.gcs-slider {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 32px 80px; /* extra bottom space for buttons */
    box-sizing: border-box;
    position: relative;
}

/* Window – wider view so left/right slides are slightly visible */
.gcs-slider .slick-list {
    position: relative;
    overflow: visible;
    margin: 0 -180px;
    padding: 0 180px;
}

/* Track that moves horizontally */
.gcs-slider .slick-track {
    display: flex;
    gap: 24px;
    transition: transform 0.4s ease;
    will-change: transform;
    align-items: stretch;
}

/* Each slide wrapper */
.gcs-slider .wp-block-cb-slide {
    display: flex;
    height: 100%;
}

/* ===== CARD ===== */
.gcs-slider .epi-feature-single-card__wrapper {
    background: #ffffff;
    border-radius: 11px; /* half of previous 22px */
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    width: 100%;
}

.gcs-slider .card_wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Image area */
.gcs-slider .epi-card__image img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.gcs-slider .gcs-card-placeholder {
    width: 100%;
    height: 220px;
    background: #e3e3e3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666666;
    font-size: 14px;
}

/* Card body */
.gcs-slider .epi-card__content {
    padding: 24px 28px 28px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

/* Title – primary accent: #008700 */
.gcs-slider .epi-single-title {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 700;
}

.gcs-slider .epi-single-title a {
    color: #008700;
    text-decoration: none;
}

/* Description text */
.gcs-slider .epi-card__content p {
    margin: 0 0 18px;
    font-size: 15px;
    line-height: 1.55;
    color: #444444;
}

/* Learn More link area */
.gcs-slider .epi-card__bottom {
    padding: 0 28px 28px;
    margin-top: auto;
}

.gcs-slider .epi-card__bottom a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 600;
    color: #008700;
    text-decoration: none;
}

/* ===== NAV BUTTONS (BELOW SLIDER, CENTER, GREEN) ===== */

/* Base style */
.gcs-nav-btn {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 2px solid #008700;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.15s ease;
    color: #008700;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.10);

    position: absolute;
    bottom: 18px;               /* sits in extra padding below cards */
    font-size: 0;               /* hide text if using icons */
}

/* Center the pair of buttons using calc from 50% */
.gcs-nav-prev {
    left: calc(50% - 40px);     /* 40px to the left of center */
}

.gcs-nav-next {
    left: calc(50% + 40px);     /* 40px to the right of center */
}

/* Make sure any slick default styles don't turn them blue */
.gcs-slider .slick-prev,
.gcs-slider .slick-next {
    border-color: #008700;
    color: #008700;
    background: #ffffff;
}

/* Hover / focus / active = green background, white text */
.gcs-nav-btn:hover:not(:disabled),
.gcs-nav-btn:focus:not(:disabled),
.gcs-nav-btn:active:not(:disabled),
.gcs-slider .slick-prev:hover:not(:disabled),
.gcs-slider .slick-next:hover:not(:disabled),
.gcs-slider .slick-prev:focus:not(:disabled),
.gcs-slider .slick-next:focus:not(:disabled),
.gcs-slider .slick-prev:active:not(:disabled),
.gcs-slider .slick-next:active:not(:disabled) {
    background: #008700;
    color: #ffffff;
    border-color: #008700;
    outline: none;
    transform: translateY(-1px);
}

.gcs-nav-btn:disabled {
    cursor: default;
    opacity: 0.45;
    box-shadow: none;
}

/* ===== RESPONSIVE CARD WIDTHS ===== */

/* Desktop: 3 cards visible, each ~31% width */
@media (min-width: 1025px) {
    .gcs-slider .wp-block-cb-slide {
        flex: 0 0 31%;
    }
}

/* Tablet: 2 cards visible */
@media (min-width: 768px) and (max-width: 1024px) {
    .gcs-slider {
        padding: 0 24px 80px;
    }

    .gcs-slider .slick-list {
        margin: 0 -96px;
        padding: 0 96px;
    }

    .gcs-slider .wp-block-cb-slide {
        flex: 0 0 calc(50% - 16px);
    }
}

/* Mobile: 1 card full width */
@media (max-width: 767px) {
    .gcs-slider {
        padding: 0 16px 80px;
    }

    .gcs-slider .slick-list {
        margin: 0 -48px;
        padding: 0 48px;
    }

    .gcs-slider .wp-block-cb-slide {
        flex: 0 0 100%;
    }

    .gcs-slider .epi-card__image img,
    .gcs-slider .gcs-card-placeholder {
        height: 210px;
    }

    /* keep buttons centered but a bit tighter on mobile if needed */
    .gcs-nav-prev {
        left: calc(50% - 36px);
    }

    .gcs-nav-next {
        left: calc(50% + 36px);
    }
}

/* ===== LINK UNDERLINE BEHAVIOUR ===== */

/* No underline by default */
.gcs-slider .epi-single-title a,
.gcs-slider .epi-card__bottom a {
    text-decoration: none !important;
}

/* Underline only when hovering heading OR Learn More separately */
.gcs-slider .epi-single-title a:hover,
.gcs-slider .epi-card__bottom a:hover {
    text-decoration: underline !important;
    text-decoration-thickness: 2px;
}



/* ===== ARROWS INSIDE PREV / NEXT BUTTONS ===== */

.gcs-nav-prev::before,
.gcs-nav-next::before {
    display: inline-block;
    font-size: 18px;      /* visible size */
    line-height: 1;
}

/* Left arrow */
.gcs-nav-prev::before {
    content: "\2039";     /* ‹ */
}

/* Right arrow */
.gcs-nav-next::before {
    content: "\203A";     /* › */
}
