/**
 * Cards Slider — CSS (Slick Slider Integration)
 *
 * Enqueue in your theme functions.php:
 *   wp_enqueue_style(
 *       'cards-slider-style',
 *       get_stylesheet_directory_uri() . '/custom-addons/assets/css/cards-slider.css',
 *       [ 'slick-theme' ], '1.0.2'
 *   );
 */

/* ── Wrapper ─────────────────────────────────────────────────────────────── */
.cs-slider-wrapper {
    width: 100%;
    position: relative;
    outline: none;
}

/* ── Section title ───────────────────────────────────────────────────────── */
.cs-section-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a2540;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    text-align: center;
    margin: 0 0 28px;
}

/* ── Slick track override ────────────────────────────────────────────────── */
.cs-slider-track {
    opacity: 0;
    transition: opacity 0.25s;
}

.cs-slider-track.slick-initialized {
    opacity: 1;
}

.cs-slider-track .slick-slide {
    padding: 0 8px; /* gap between cards */
    box-sizing: border-box;
}

.cs-slider-track .slick-list {
    margin: 0 -8px;
    overflow: hidden;
}

/* ── Card ────────────────────────────────────────────────────────────────── */
.cs-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    height: 100%;
}

.cs-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.13);
}

/* ── Card image ──────────────────────────────────────────────────────────── */
.cs-card-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #dde3ec;
    display: block;
}

.cs-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.cs-card:hover .cs-card-image img {
    transform: scale(1.04);
}

/* ── Card body ───────────────────────────────────────────────────────────── */
.cs-card-body {
    padding: 16px;
}

/* ── Card title ──────────────────────────────────────────────────────────── */
.cs-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #1a2540;
    margin: 0 0 10px;
}

/* ── Dot ─────────────────────────────────────────────────────────────────── */
.cs-card-dot {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #00c98d;
    display: inline-block;
}

/* ── Card body text ──────────────────────────────────────────────────────── */
.cs-card-text {
    font-size: 12px;
    color: #5a6a80;
    line-height: 1.7;
    margin: 0 0 16px;
}

/* ── CTA button ──────────────────────────────────────────────────────────── */
.cs-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    background-color: #2563eb;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
    line-height: 1;
}

.cs-card-btn:hover {
    opacity: 0.88;
    transform: translateX(2px);
}

/* ── Navigation arrows ───────────────────────────────────────────────────── */
.cs-slider-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.cs-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid #c5cdd8;
    background: #ffffff;
    color: #5a6a80;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    padding: 0;
    z-index: 10;
    position: relative;
}

.cs-nav-btn:hover:not(:disabled) {
    border-color: #1a2540;
    color: #1a2540;
    background: #f5f8fc;
}

.cs-nav-btn:disabled,
.cs-nav-btn.slick-disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* ── Dot indicators (slick dots override) ────────────────────────────────── */
.cs-dots {
    display: flex !important;
    justify-content: center;
    gap: 8px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.cs-dots li {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    width: auto;
    height: auto;
}

.cs-dots li button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #c5cdd8;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 0;
    line-height: 0;
    transition: background 0.25s, transform 0.25s, width 0.25s;
}

.cs-dots li button::before {
    display: none; /* hide slick default dot */
}

.cs-dots li.slick-active button {
    background: #2563eb;
    transform: scale(1.35);
    width: 20px;
    border-radius: 4px;
}

.cs-dots li button:hover {
    background: #2563eb;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media ( max-width: 1024px ) {
    .cs-card-image {
        height: 160px;
    }
}

@media ( max-width: 640px ) {
    .cs-section-title {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .cs-card-image {
        height: 140px;
    }

    .cs-card-body {
        padding: 14px;
    }
}
