/**
 * Responsive Card Slider - Main Stylesheet
 * Clean, modern card slider with side arrows & mobile swipe
 */

:root {
    --rcs-primary-color: #8A1515;
    --rcs-primary-hover: #5E0B0B;
    --rcs-card-bg: #ffffff;
    --rcs-card-border: #E8E8E8;
    --rcs-card-radius: 4px;
    --rcs-card-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    --rcs-card-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.1);
    --rcs-text-color: #4A4A4A;
    --rcs-title-color: #8A1515;
    --rcs-btn-color: #8A1515;
    --rcs-arrow-bg: #ffffff;
    --rcs-arrow-color: #8A1515;
    --rcs-arrow-hover-bg: #8A1515;
    --rcs-arrow-hover-color: #ffffff;
    --rcs-gap: 20px;
    --rcs-transition-speed: 0.45s;
}

/* Container Wrapper */
.rcs-slider-container {
    position: relative;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 20px 48px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Viewport clipping */
.rcs-slider-viewport {
    overflow: hidden;
    width: 100%;
    position: relative;
    border-radius: var(--rcs-card-radius);
    padding: 10px 0;
}

/* Sliding Track */
.rcs-slider-track {
    display: flex;
    gap: var(--rcs-gap);
    transition: transform var(--rcs-transition-speed) cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
    user-select: none;
    -webkit-user-select: none;
}

.rcs-slider-track.rcs-no-transition {
    transition: none !important;
}

/* Individual Card */
.rcs-card-item {
    flex: 0 0 calc((100% - (var(--rcs-gap) * 3)) / 4);
    box-sizing: border-box;
    background: var(--rcs-card-bg);
    border: 1px solid var(--rcs-card-border);
    border-radius: var(--rcs-card-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--rcs-card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rcs-card-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--rcs-card-shadow-hover);
}

/* Card Image Header */
.rcs-card-image-wrap {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background-color: #f7f7f7;
}

.rcs-card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.5s ease;
}

.rcs-card-item:hover .rcs-card-image-wrap img {
    transform: scale(1.06);
}

/* Card Content Body */
.rcs-card-content {
    padding: 22px 20px 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
    box-sizing: border-box;
}

/* Card Title */
.rcs-card-title {
    margin: 0 0 14px 0;
    padding: 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--rcs-title-color);
    letter-spacing: -0.2px;
}

.rcs-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.rcs-card-title a:hover {
    color: var(--rcs-primary-hover);
}

/* Card Description */
.rcs-card-description {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--rcs-text-color);
    margin: 0 0 20px 0;
    flex-grow: 1;
    word-break: break-word;
}

/* Card Learn More Action */
.rcs-card-action {
    margin-top: auto;
    padding-top: 6px;
}

.rcs-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--rcs-btn-color);
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}

.rcs-card-btn .rcs-arrow-icon {
    font-size: 14px;
    transition: transform 0.25s ease;
    display: inline-block;
    line-height: 1;
}

.rcs-card-btn:hover {
    color: var(--rcs-primary-hover);
}

.rcs-card-btn:hover .rcs-arrow-icon {
    transform: translateX(4px);
}

/* ========================================================
   NAVIGATION ARROWS (Both sides)
   ======================================================== */
.rcs-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    background: var(--rcs-arrow-bg);
    color: var(--rcs-arrow-color);
    border: 1px solid #E2E2E2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    outline: none;
    padding: 0;
}

.rcs-nav-arrow svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    transition: transform 0.2s ease;
}

.rcs-arrow-prev {
    left: 2px;
}

.rcs-arrow-next {
    right: 2px;
}

.rcs-nav-arrow:hover {
    background: var(--rcs-arrow-hover-bg);
    color: var(--rcs-arrow-hover-color);
    border-color: var(--rcs-arrow-hover-bg);
    box-shadow: 0 6px 20px rgba(138, 21, 21, 0.35);
    transform: translateY(-50%) scale(1.08);
}

.rcs-arrow-prev:hover svg {
    transform: translateX(-2px);
}

.rcs-arrow-next:hover svg {
    transform: translateX(2px);
}

.rcs-nav-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.rcs-nav-arrow.rcs-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

/* ========================================================
   DOTS PAGINATION (Optional bottom indicator)
   ======================================================== */
.rcs-dots-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
}

.rcs-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #d8d8d8;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rcs-dot.rcs-active {
    background: var(--rcs-primary-color);
    width: 24px;
    border-radius: 12px;
}

/* ========================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ======================================================== */

/* Large Tablets / Small Laptops (max-width: 1100px) */
@media (max-width: 1100px) {
    .rcs-card-item {
        flex: 0 0 calc((100% - (var(--rcs-gap) * 2)) / 3);
    }
    .rcs-slider-container {
        padding: 20px 42px;
    }
}

/* Medium Tablets & iPads (max-width: 860px) */
@media (max-width: 860px) {
    .rcs-card-item {
        flex: 0 0 calc((100% - var(--rcs-gap)) / 2);
    }
    .rcs-card-image-wrap {
        height: 170px;
    }
    .rcs-card-content {
        padding: 18px 16px 20px;
    }
    .rcs-card-title {
        font-size: 16px;
    }
    .rcs-card-description {
        font-size: 13px;
    }
    .rcs-slider-container {
        padding: 16px 40px;
    }
}

/* Mobile Phones (max-width: 600px) */
@media (max-width: 600px) {
    .rcs-slider-container {
        padding: 12px 36px;
    }
    .rcs-card-item {
        flex: 0 0 100%; /* Exactly 1 card per slide on mobile */
    }
    .rcs-card-image-wrap {
        height: 190px;
    }
    .rcs-card-content {
        padding: 20px 18px 22px;
    }
    .rcs-card-title {
        font-size: 16.5px;
    }
    .rcs-card-description {
        font-size: 13.5px;
        margin-bottom: 18px;
    }
    .rcs-nav-arrow {
        width: 36px;
        height: 36px;
    }
    .rcs-nav-arrow svg {
        width: 16px;
        height: 16px;
    }
    .rcs-arrow-prev {
        left: 0;
    }
    .rcs-arrow-next {
        right: 0;
    }
}

/* Small Mobile Screens (max-width: 380px) */
@media (max-width: 380px) {
    .rcs-slider-container {
        padding: 10px 30px;
    }
    .rcs-card-content {
        padding: 16px 14px 18px;
    }
    .rcs-card-title {
        font-size: 15.5px;
    }
    .rcs-card-description {
        font-size: 13px;
    }
    .rcs-nav-arrow {
        width: 32px;
        height: 32px;
    }
}

