/* =============================================
   Content Slider - Main Styles
   ============================================= */

.ecs-content-slider {
    --ecs-transition-speed: 500ms;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.ecs-slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.ecs-slides-container {
    display: flex;
    transition: transform var(--ecs-transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.ecs-slide {
    flex: 0 0 100%;
    width: 100%;
    order: 0;
}

/* =============================================
   Slide Base
   ============================================= */

.ecs-slide {
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.ecs-slide-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ecs-slide-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* =============================================
   Single Layout (Text + Image)
   ============================================= */

.ecs-single-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.ecs-single-layout.ecs-has-image {
    grid-template-columns: 1fr 1fr;
}

.ecs-single-layout.ecs-has-image.ecs-image-left {
    direction: rtl;
}

.ecs-single-layout.ecs-has-image.ecs-image-left > * {
    direction: ltr;
}

.ecs-text-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ecs-image-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ecs-image-content img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* =============================================
   Typography
   ============================================= */

.ecs-slide-subtitle {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 8px;
    opacity: 0.8;
}

.ecs-slide-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 16px;
}

.ecs-slide-description {
    font-size: 18px;
    line-height: 1.7;
    margin: 0;
}

.ecs-slide-description p {
    margin: 0 0 12px;
}

.ecs-slide-description p:last-child {
    margin-bottom: 0;
}

/* =============================================
   Columns Layout
   ============================================= */

.ecs-columns-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ecs-columns-layout .ecs-slide-title {
    text-align: left;
}

.ecs-columns-layout .ecs-slide-description {
    max-width: 800px;
}

.ecs-columns-grid {
    display: grid;
    gap: 30px;
    margin-top: 20px;
}

.ecs-columns-grid.ecs-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.ecs-columns-grid.ecs-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.ecs-columns-grid.ecs-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* =============================================
   Column Card
   ============================================= */

.ecs-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ecs-column-image {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.ecs-column-image img {
    max-width: 100%;
    height: 200px;
    object-fit: contain;
}

.ecs-column-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.ecs-column-text {
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    opacity: 0.9;
}

/* =============================================
   Image Only Layout
   ============================================= */

.ecs-image-only-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.ecs-image-only-layout img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* =============================================
   Button
   ============================================= */

.ecs-button-wrapper {
    margin-top: 24px;
}

.ecs-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #1a1a1a;
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.ecs-button:hover {
    background-color: #333333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* =============================================
   Navigation - Arrows
   ============================================= */

.ecs-navigation {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
    z-index: 10;
}

.ecs-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: transparent;
    border: 2px solid currentColor;
    border-radius: 50%;
    color: #1a1a1a;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
}

.ecs-arrow:hover {
    background-color: rgba(0, 0, 0, 0.1);
    transform: scale(1.1);
}

.ecs-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.ecs-arrow svg {
    width: 24px;
    height: 24px;
}

/* =============================================
   Navigation - Dots
   ============================================= */

.ecs-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    padding: 10px 0;
}

.ecs-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #cccccc;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.ecs-dot:hover {
    background-color: #999999;
    transform: scale(1.2);
}

.ecs-dot.active {
    background-color: #1a1a1a;
    transform: scale(1.2);
}

/* =============================================
   Navigation - Progress Bar
   ============================================= */

.ecs-progress-bar {
    width: 100%;
    height: 4px;
    background-color: rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    border-radius: 2px;
    overflow: hidden;
}

.ecs-progress-fill {
    height: 100%;
    background-color: #1a1a1a;
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 2px;
}

/* =============================================
   Responsive - Tablet
   ============================================= */

@media (max-width: 1024px) {
    .ecs-slide-title {
        font-size: 36px;
    }

    .ecs-slide-description {
        font-size: 16px;
    }

    .ecs-single-layout.ecs-has-image {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .ecs-single-layout.ecs-has-image.ecs-image-left {
        direction: ltr;
    }

    .ecs-columns-grid.ecs-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .ecs-navigation {
        padding: 0 10px;
    }

    .ecs-arrow {
        width: 40px;
        height: 40px;
    }
}

/* =============================================
   Responsive - Mobile
   ============================================= */

@media (max-width: 767px) {
    .ecs-slide {
        min-height: 400px;
    }

    .ecs-slide-title {
        font-size: 28px;
    }

    .ecs-slide-description {
        font-size: 15px;
    }

    .ecs-columns-grid.ecs-cols-2,
    .ecs-columns-grid.ecs-cols-3,
    .ecs-columns-grid.ecs-cols-4 {
        grid-template-columns: 1fr;
    }

    .ecs-column-title {
        font-size: 18px;
    }

    .ecs-column-text {
        font-size: 14px;
    }

    .ecs-navigation {
        display: none;
    }

    .ecs-dots {
        gap: 8px;
    }

    .ecs-dot {
        width: 10px;
        height: 10px;
    }
}

/* =============================================
   Touch/Swipe Support
   ============================================= */

.ecs-content-slider.is-grabbing {
    cursor: grabbing;
}

.ecs-content-slider.is-grabbing .ecs-slides-container {
    transition: none;
}

/* =============================================
   Responsive Visibility
   ============================================= */

/* Desktop: > 1024px */
@media (min-width: 1025px) {
    .ecs-slide.ecs-hide-desktop {
        display: none !important;
    }
}

/* Tablet: 768px - 1024px */
@media (min-width: 768px) and (max-width: 1024px) {
    .ecs-slide.ecs-hide-tablet {
        display: none !important;
    }
}

/* Mobile: < 768px */
@media (max-width: 767px) {
    .ecs-slide.ecs-hide-mobile {
        display: none !important;
    }
}

/* =============================================
   Reduced Motion
   ============================================= */

@media (prefers-reduced-motion: reduce) {
    .ecs-slides-container {
        transition: none;
    }

    .ecs-button:hover {
        transform: none;
    }

    .ecs-arrow:hover {
        transform: none;
    }

    .ecs-dot:hover,
    .ecs-dot.active {
        transform: none;
    }
}
