/**
 * Dp-Carousel Styles
 * Matches the exact layout from the design
 * All styles are scoped to .elementor-widget-dp_carousel to avoid conflicts with Elementor and other plugins
 */

.elementor-widget-dp_carousel .dp-carousel-wrapper {
    width: 100%;
    position: relative;
    padding: 0;
    margin: 0 auto;
}

.elementor-widget-dp_carousel .dp-carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.elementor-widget-dp_carousel .dp-carousel-container.dp-carousel-dragging {
    cursor: grabbing;
}

.elementor-widget-dp_carousel .dp-carousel-container.dp-carousel-dragging a {
    pointer-events: none;
}

.elementor-widget-dp_carousel .dp-carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 20px;
    will-change: transform;
    touch-action: pan-y pinch-zoom;
}

.elementor-widget-dp_carousel .dp-carousel-item {
    flex: 0 0 auto;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    min-width: 300px;
    max-width: 100%;
}

.elementor-widget-dp_carousel .dp-carousel-item a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.elementor-widget-dp_carousel .dp-carousel-item-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.elementor-widget-dp_carousel .dp-carousel-item-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* Default gradient - will be overridden by Elementor background control */
    background: linear-gradient(to bottom, transparent 0%, rgba(211, 47, 47, 0.7) 50%, rgba(211, 47, 47, 0.95) 100%);
}

.elementor-widget-dp_carousel .dp-carousel-item-content {
    position: relative;
    z-index: 2;
    padding: 30px 25px;
    width: 100%;
    box-sizing: border-box;
}

.elementor-widget-dp_carousel .dp-carousel-item-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 10px 0;
    color: #ffffff;
    text-align: left;
}

.elementor-widget-dp_carousel .dp-carousel-item-description {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    margin: 0;
    color: #ffffff;
    text-align: left;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out, margin 0.3s ease-out, max-height 0.4s ease-out;
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
}

.elementor-widget-dp_carousel .dp-carousel-item-description + .dp-carousel-item-title {
    margin-top: 15px;
}

.elementor-widget-dp_carousel .dp-carousel-read-more {
    font-size: 14px;
    font-weight: 400;
    color: #ffffff;
    text-decoration: underline;
    margin-top: 0;
    cursor: pointer;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease-out 0.15s, transform 0.5s ease-out 0.15s, margin 0.3s ease-out 0.15s, max-height 0.4s ease-out 0.15s;
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
}

/* Show description and read more with fade-up animation */
.elementor-widget-dp_carousel .dp-carousel-item:hover .dp-carousel-item-description,
.elementor-widget-dp_carousel .dp-carousel-item:hover .dp-carousel-item-image .dp-carousel-item-description,
.elementor-widget-dp_carousel .dp-carousel-item a:hover .dp-carousel-item-description,
.elementor-widget-dp_carousel .dp-carousel-item-image:hover .dp-carousel-item-description {
    opacity: 0.95;
    transform: translateY(0);
    pointer-events: auto;
    margin: 0 0 10px 0;
    max-height: 200px;
}

.elementor-widget-dp_carousel .dp-carousel-item:hover .dp-carousel-read-more,
.elementor-widget-dp_carousel .dp-carousel-item:hover .dp-carousel-item-image .dp-carousel-read-more,
.elementor-widget-dp_carousel .dp-carousel-item a:hover .dp-carousel-read-more,
.elementor-widget-dp_carousel .dp-carousel-item-image:hover .dp-carousel-read-more {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    margin-top: 10px;
    max-height: 60px;
}

/* Navigation */
.elementor-widget-dp_carousel .dp-carousel-navigation {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: 30px;
    gap: 20px;
    padding: 0 10px;
}

.elementor-widget-dp_carousel .dp-carousel-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    max-width: 200px;
}

.elementor-widget-dp_carousel .dp-carousel-progress-current {
    height: 4px;
    background-color: #d32f2f;
    border-radius: 2px;
    transition: width 0.3s ease;
    min-width: 40px;
}

.elementor-widget-dp_carousel .dp-carousel-progress-total {
    height: 2px;
    background-color: #cccccc;
    border-radius: 1px;
    flex: 1;
}

.elementor-widget-dp_carousel .dp-carousel-nav-arrows {
    display: flex;
    align-items: center;
    gap: 10px;
}

.elementor-widget-dp_carousel .dp-carousel-nav-arrow {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999999;
    transition: color 0.3s ease;
    outline: none;
}

.elementor-widget-dp_carousel .dp-carousel-nav-arrow:hover {
    color: #666666;
}

.elementor-widget-dp_carousel .dp-carousel-nav-arrow.active {
    color: #d32f2f;
}

.elementor-widget-dp_carousel .dp-carousel-nav-arrow svg,
.elementor-widget-dp_carousel .dp-carousel-nav-arrow i {
    width: 24px;
    height: 24px;
    display: block;
    font-size: 24px;
    line-height: 1;
    color: inherit;
}

.elementor-widget-dp_carousel .dp-carousel-nav-arrow svg {
    fill: currentColor;
    stroke: currentColor;
}

.elementor-widget-dp_carousel .dp-carousel-nav-arrow i {
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
}

.elementor-widget-dp_carousel .dp-carousel-nav-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .elementor-widget-dp_carousel .dp-carousel-item {
        min-width: 280px;
    }
    
    .elementor-widget-dp_carousel .dp-carousel-item-title {
        font-size: 20px;
    }
    
    .elementor-widget-dp_carousel .dp-carousel-item-description {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .elementor-widget-dp_carousel .dp-carousel-item {
        min-width: 250px;
    }
    
    .elementor-widget-dp_carousel .dp-carousel-item-content {
        padding: 20px 15px;
    }
    
    .elementor-widget-dp_carousel .dp-carousel-item-title {
        font-size: 18px;
    }
    
    .elementor-widget-dp_carousel .dp-carousel-item-description {
        font-size: 12px;
    }
    
    .elementor-widget-dp_carousel .dp-carousel-navigation {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .elementor-widget-dp_carousel .dp-carousel-item {
        min-width: 100%;
    }
    
    .elementor-widget-dp_carousel .dp-carousel-track {
        gap: 15px;
    }
}
