/* ==========================================================================
   Vivasoft Case Study Slider — case-study-slider.css
   CSS prefix: vcsg-slider-
   ========================================================================== */

/* Wrapper */
.vcsg-slider-wrapper {
    width: 100%;
    margin: 0 auto;
    padding: 20px 0;
}

/* Header */
.vcsg-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 0 10px;
}

.vcsg-slider-header h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #333;
}

/* Navigation Buttons */
.vcsg-slider-nav {
    display: flex;
    gap: 10px;
}

.vcsg-slider-nav button {
    width: 45px;
    height: 45px;
    border: 2px solid #333;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
    color: #333;
}

.vcsg-slider-nav button:hover,
.vcsg-slider-nav button:focus {
    background: #333;
    color: #fff;
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: #333;
    outline: none;
}

.vcsg-slider-nav button:active {
    transform: scale(0.98);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.vcsg-slider-nav button:focus-visible {
    box-shadow: 0 0 0 4px rgba(51, 51, 51, 0.15);
}

.vcsg-slider-nav button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.vcsg-slider-nav button svg {
    width: 20px;
    height: 20px;
    transition: transform 0.25s ease;
}

.vcsg-slider-nav button:hover svg {
    transform: translateX(1px);
}

.vcsg-slider-nav button[aria-label="Previous"]:hover svg {
    transform: translateX(-1px);
}

/* Swiper Container */
.vcsg-slider-wrapper .swiper {
    width: 100%;
    overflow: visible;
    box-sizing: border-box;
}

.vcsg-slider-wrapper .swiper-wrapper {
    display: flex;
}

.vcsg-slider-wrapper .swiper-slide {
    height: auto;
    box-sizing: border-box;
    display: flex;
}

/* Slide Item */
.vcsg-slider-item {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
    box-sizing: border-box;
    height: 100%;
}

.vcsg-slider-item:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Card Link (whole card) */
.vcsg-slider-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: inherit;
}

/* Image */
.vcsg-slider-image {
    width: 100%;
    height: auto;
    min-height: 200px;
    overflow: hidden;
    position: relative;
    background-size: cover;
    background-position: center;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Overlay layer — controlled by Elementor "Overlay Color / Gradient" control */
.vcsg-slider-image::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.vcsg-slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 0;
    min-height: inherit;
}

.vcsg-slider-item:hover img {
    transform: scale(1.03);
}

/* Content */
.vcsg-slider-content {
    padding: 25px;
    background: #fff;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    width: 100%;
}

.vcsg-slider-content h3 {
    margin: 0 0 12px 0;
    font-size: 22px;
    font-weight: 700;
    color: #333;
    line-height: 1.3;
    word-break: break-word;
}

.vcsg-slider-content p {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    word-break: break-word;
}

/* Client Info Grid */
.vcsg-slider-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 20px 25px;
    background: transparent;
    box-sizing: border-box;
    width: 100%;
    margin-top: auto;
}

.vcsg-slider-info-item {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.vcsg-slider-label {
    font-size: 12px;
    font-weight: 500;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.4;
    word-break: break-word;
    display: block;
}

.vcsg-slider-value {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
    word-break: break-word;
    display: block;
}

/* No results */
.vcsg-slider-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #888;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .vcsg-slider-header h2 {
        font-size: 22px;
    }

    .vcsg-slider-nav button {
        width: 38px;
        height: 38px;
    }

    .vcsg-slider-info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .vcsg-slider-info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}