/* =============================================
   Card Slider Widget - Styles
   ============================================= */

.csw-slider-wrapper {
    position: relative;
    padding: 10px 0 50px;
}

/* Swiper Container */
.csw-swiper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

/* Card */
.csw-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px 25px 25px;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.csw-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.csw-card.csw-card-clickable {
    cursor: pointer;
}

/* Logo */
.csw-card-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 16px;
}

.csw-card-logo img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    display: block;
}

/* Card Body */
.csw-card-body {
    flex: 1;
}

/* Title */
.csw-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

/* Description */
.csw-card-description {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* Divider */
.csw-card-divider {
    border: none;
    border-top: 1px solid #e5e5e5;
    margin: 20px 0;
}

/* Footer / Button */
.csw-card-footer {
    margin-top: auto;
    padding-top: 0;
}

.csw-card-btn {
    display: inline-block;
    color: #c0392b;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.csw-card-btn:hover {
    color: #922b21;
    text-decoration: none;
}

/* =============================================
   Arrow Navigation
============================================= */
.csw-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-60%);
    z-index: 10;
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: background 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    padding: 0;
    outline: none;
}

.csw-arrow:hover {
    background: #f5f5f5;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.csw-arrow.swiper-button-disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.csw-arrow svg {
    width: 18px;
    height: 18px;
    fill: #333;
    display: block;
}

.csw-arrow-prev {
    left: -20px;
}

.csw-arrow-next {
    right: -20px;
}

/* =============================================
   Pagination / Dots
============================================= */
.csw-pagination {
    position: relative !important;
    bottom: auto !important;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #ccc;
    opacity: 1;
    border-radius: 50%;
    transition: background 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    display: inline-block;
}

.swiper-pagination-bullet-active {
    background: #c0392b;
    transform: scale(1.3);
}

/* =============================================
   Swiper slide height fix
============================================= */
.swiper-slide {
    height: auto !important;
}

.swiper-wrapper {
    align-items: stretch;
}

/* =============================================
   Responsive
============================================= */
@media (max-width: 1024px) {
    .csw-arrow-prev { left: -10px; }
    .csw-arrow-next { right: -10px; }
}

@media (max-width: 767px) {
    .csw-arrow-prev { left: 0; }
    .csw-arrow-next { right: 0; }
}
