/* ============================================
   CEC SLIDER — CSS
   Adaugă în fișierul CSS al temei Drupal
   ============================================ */

.cec-slider {
    position: relative;
    width: 100%;
    max-width: 1200px;
    border-radius: 0px;
    overflow: hidden;
   
}

.cec-slider__track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.45, 0, 0.15, 1);
    will-change: transform;
}

/* ---------- SLIDE ---------- */
.cec-slide {
    min-width: 100%;
    display: flex;
    flex-direction: row;
    min-height: 320px;
}

.cec-slide__image {
    width: 55%;
    position: relative;
    overflow: hidden;
    background: #1a3a5c;
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
    z-index: 2;
}

.cec-slide__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cec-slide__content {
    width: 55%;
    margin-left: -10%;
    background: #2b7cba;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 48px 40px 120px;
    position: relative;
    z-index: 1;
}

.cec-slide__title {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 28px;
    letter-spacing: -0.3px;
}

.cec-slide__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border: 2px solid #ffffff;
    border-radius: 4px;
    color: #ffffff;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    text-decoration: none;
    transition: background 0.25s, color 0.25s;
    align-self: flex-start;
    cursor: pointer;
}

.cec-slide__btn:hover {
    background: #ffffff;
    color: #2b7cba;
}

.cec-slide__btn i {
    font-size: 12px;
    transition: transform 0.25s;
}

.cec-slide__btn:hover i {
    transform: translateX(4px);
}

/* ---------- ARROWS ---------- */
.cec-slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s;
    backdrop-filter: blur(4px);
}

.cec-slider__arrow:hover {
    background: rgba(255, 255, 255, 0.5);
}

.cec-slider__arrow--prev {
    left: 16px;
}

.cec-slider__arrow--next {
    right: 16px;
}

/* ---------- DOTS ---------- */
.cec-slider__dots {
    position: absolute;
    bottom: 20px;
    right: 48px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.cec-slider__dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    padding: 0;
}

.cec-slider__dot:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.15);
}

.cec-slider__dot--active {
    background: #f5c518;
    transform: scale(1.15);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    .cec-slide {
        flex-direction: column;
        min-height: auto;
    }

    .cec-slide__image {
        width: 100%;
        height: 220px;
        clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    }

    .cec-slide__content {
        width: 100%;
        margin-left: 0;
        margin-top: -30px;
        padding: 28px 24px 60px;
    }

    .cec-slide__title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .cec-slider__dots {
        right: 50%;
        transform: translateX(50%);
        bottom: 14px;
    }

    .cec-slider__arrow {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .cec-slider__arrow--prev { left: 8px; }
    .cec-slider__arrow--next { right: 8px; }
}
