/**
 * Role Slider Widget Styles
 */

.elbc-role-slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.elbc-role-slider {
    position: relative;
    width: 100%;
    height: 450px;
}

.elbc-role-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    visibility: hidden;
    transform: translateX(100%);
    transition: transform 0.5s ease;
}

.elbc-role-slide.is-active {
    visibility: visible;
    transform: translateX(0);
}

.elbc-role-slide.slide-out-left {
    visibility: visible;
    transform: translateX(-100%);
}

.elbc-role-slide.slide-out-right {
    visibility: visible;
    transform: translateX(100%);
}

.elbc-role-slide.slide-in-left {
    transform: translateX(-100%);
}

.elbc-role-slide.slide-in-right {
    transform: translateX(100%);
}

.elbc-role-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.elbc-role-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(145deg, rgba(85, 80, 65, 0.8) 10%, rgba(62, 55, 31, 0.4) 55%, rgba(0, 0, 0, 0.4) 100%);
}

.elbc-role-slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
}

.elbc-role-slide-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 56px;
}

.elbc-role-slide-row {
    display: flex;
    flex-wrap: wrap;
    height: 100%;
    direction: rtl;
}

.elbc-role-slide-header {
    width: 50%;
    padding-top: 64px;
    align-self: flex-start;
}

.elbc-role-header-subtitle,
.elbc-role-header-title {
    color: var(--elbc-text-white);
    font-size: 1.25rem;
    margin: 0;
    line-height: 1.4;
}

.elbc-role-header-title {
    font-weight: 900;
}

.elbc-role-slide-body {
    width: 50%;
    align-self: center;
}

.elbc-role-slide-title-wrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 12px;
}

.elbc-role-slide-number {
    color: var(--elbc-primary);
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
}

.elbc-role-slide-divider {
    width: 5px;
    height: 69px;
    background-color: var(--elbc-primary);
    margin: 0 8px;
    margin-top: 16px;
    align-self: center;
}

.elbc-role-slide-title {
    color: var(--elbc-text-white);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    padding-top: 8px;
    white-space: pre-line;
    line-height: 1.3;
}

.elbc-role-slide-desc {
    color: var(--elbc-text-white);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

.elbc-role-slide-title-link {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.elbc-role-slide-title-link:hover {
    opacity: 0.85;
}

.elbc-role-slide-read-more {
    display: inline-block;
    margin-top: 16px;
    color: var(--elbc-primary) !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.elbc-role-slide-read-more:hover {
    color: var(--elbc-text-white);
}

.elbc-role-slider-empty {
    padding: 40px;
    text-align: center;
    background: var(--elbc-bg-gray);
    color: var(--elbc-text-muted);
    border-radius: var(--elbc-radius-sm);
}

/* Arrows */
.elbc-role-slider-arrows {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 16px;
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.elbc-role-slider-arrows button {
    padding: 0;
    min-width: 48px;
}

.elbc-role-slider-wrapper:hover .elbc-role-slider-arrows {
    opacity: 1;
}

.elbc-role-slider-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--elbc-text-white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    box-shadow: var(--elbc-shadow-sm);
    transition: transform var(--elbc-transition-base), box-shadow var(--elbc-transition-base);
}

.elbc-role-slider-arrow:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.elbc-role-slider-arrow svg {
    width: 24px;
    height: 24px;
    fill: var(--elbc-text-gray);
}

/* Dots */
.elbc-role-slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.elbc-role-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.elbc-role-slider-dot:hover {
    transform: scale(1.2);
}

.elbc-role-slider-dot.is-active {
    background-color: var(--elbc-text-white);
}

/* Responsive */
@media (max-width: 768px) {
    .elbc-role-slide-container {
        padding: 0 24px;
    }

    .elbc-role-slide-header,
    .elbc-role-slide-body {
        width: 100%;
    }

    .elbc-role-slide-header {
        padding-top: 32px;
    }

    .elbc-role-slide-number {
        font-size: 2.5rem;
    }

    .elbc-role-slide-title {
        font-size: 1.125rem;
    }

    .elbc-role-slide-divider {
        height: 50px;
    }

    .elbc-role-slider-arrows {
        padding: 0 8px;
    }

    .elbc-role-slider-arrow {
        width: 28px !important;
        height: 28px !important;
        padding: 0 !important;
        min-width: 28px !important;
    }

    .elbc-role-slider-arrow svg {
        width: 18px !important;
        min-width: 18px !important;
        height: 18px !important;
        flex-shrink: 0;
    }
}
