/* DIGIrabbits Business Showcase Styles - Fixed Version */
:root {
    --drbs-primary-color: #00d4ff;
    --drbs-active-color: #00d4ff;
    --drbs-hover-color: #00a8d6;
}

.drbs-business-showcase {
    position: relative;
    width: 100%;
    min-height: 600px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drbs-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.drbs-section-heading {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    font-size: 48px;
    font-weight: 300;
    letter-spacing: 8px;
    text-transform: uppercase;
    z-index: 10;
    margin: 0;
}

.drbs-carousel-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 5;
    padding: 120px 0 140px;
}

.drbs-carousel-wrapper {
    position: relative;
    height: 400px;
    margin: 0 auto;
    will-change: contents;
}

/* Carousel Item Animations */
.drbs-carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(30px);
}

.drbs-carousel-item.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.drbs-item-content {
    display: flex;
    align-items: center;
    gap: 60px;
    height: 100%;
}

.drbs-item-image {
    flex: 0 0 45%;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.drbs-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.drbs-carousel-item.active .drbs-item-image img {
    transform: scale(1.05);
}

.drbs-item-text {
    flex: 1;
    padding: 20px;
}

.drbs-item-title {
    color: #ffffff;
    font-size: 42px;
    font-weight: 600;
    margin: 0 0 20px;
}

.drbs-item-description {
    color: #e0e0e0;
    font-size: 18px;
    line-height: 1.8;
    margin: 0 0 30px;
}

.drbs-read-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 12px 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.drbs-read-more:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--drbs-primary-color);
    color: var(--drbs-primary-color);
    transform: translateY(-2px);
}

/* Bottom Navigation */
.drbs-bottom-navigation {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 40px;
    z-index: 10;
    width: 90%;
    max-width: 900px;
    justify-content: center;
    min-height: 80px;
}

.drbs-bottom-navigation::before {
    content: "";
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1000px;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3) 20%, rgba(255, 255, 255, 0.3) 80%, transparent);
}

/* Navigation Arrows */
.drbs-nav-prev,
.drbs-nav-next {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #ffffff;
    flex-shrink: 0;
}

.drbs-nav-prev:hover,
.drbs-nav-next:hover {
    background: var(--drbs-primary-color);
    border-color: var(--drbs-primary-color);
    transform: scale(1.15);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.4);
}

.drbs-nav-prev svg,
.drbs-nav-next svg {
    width: 24px;
    height: 24px;
    stroke-width: 2;
}

/* Slide Titles Navigation - Fixed for scrolling */
.drbs-slide-titles {
    display: flex;
    gap: 25px;
    align-items: center;
    position: relative;
    max-width: 600px;
    padding: 10px 20px;
    margin: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
}

/* Custom scrollbar for slide titles */
.drbs-slide-titles::-webkit-scrollbar {
    height: 4px;
}

.drbs-slide-titles::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.drbs-slide-titles::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.drbs-slide-titles::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Slide Title Buttons */
.drbs-slide-title {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    padding: 10px 15px;
    position: relative;
    white-space: nowrap;
    flex-shrink: 0;
    text-align: center;
    line-height: 1.4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 45px;
    transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.drbs-slide-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 3px;
    background: var(--drbs-active-color);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.drbs-slide-title.active {
    color: var(--drbs-active-color);
    background: transparent !important;
}

.drbs-slide-title.active::after {
    transform: scaleX(1);
}

.drbs-slide-title:hover {
    color: var(--drbs-hover-color);
    background: transparent !important;
}

/* Global overflow prevention */
html, body {
    max-width: 100% !important;
    overflow-x: hidden !important;
}

/* Elementor specific overrides */
.elementor-widget-drbs-business-showcase {
    overflow: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
}

.elementor-widget-drbs-business-showcase .drbs-slide-title {
    background: transparent !important;
}

.elementor-widget-drbs-business-showcase .drbs-slide-title.active,
.elementor-widget-drbs-business-showcase .drbs-slide-title:hover {
    background-color: transparent !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .drbs-carousel-container {
        padding: 100px 0 120px;
    }
    
    .drbs-item-content {
        gap: 40px;
    }
    
    .drbs-item-title {
        font-size: 36px;
    }
    
    .drbs-slide-titles {
        max-width: 500px;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .drbs-section-heading {
        font-size: 28px;
        letter-spacing: 4px;
        top: 30px;
    }
    
    .drbs-carousel-container {
        width: 95%;
        padding: 80px 0 100px;
    }
    
    .drbs-carousel-wrapper {
        height: auto;
        min-height: 500px;
    }
    
    .drbs-item-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .drbs-item-image {
        flex: 0 0 auto;
        width: 100%;
        height: 250px;
    }
    
    .drbs-item-title {
        font-size: 24px;
    }
    
    .drbs-item-description {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .drbs-nav-prev,
    .drbs-nav-next {
        width: 44px;
        height: 44px;
    }
    
    .drbs-nav-prev svg,
    .drbs-nav-next svg {
        width: 20px;
        height: 20px;
    }
    
    .drbs-slide-titles {
        max-width: calc(100% - 120px);
        gap: 15px;
        padding: 10px;
    }
    
    .drbs-slide-title {
        font-size: 12px;
        padding: 8px 10px;
    }
    
    .drbs-bottom-navigation {
        gap: 20px;
        bottom: 15px;
        min-height: 70px;
    }
}

@media (max-width: 480px) {
    .drbs-section-heading {
        font-size: 20px;
        letter-spacing: 2px;
    }
    
    .drbs-carousel-container {
        padding: 70px 0 90px;
    }
    
    .drbs-carousel-wrapper {
        min-height: 450px;
    }
    
    .drbs-item-image {
        height: 180px;
    }
    
    .drbs-item-title {
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .drbs-item-description {
        font-size: 13px;
        margin-bottom: 20px;
    }
    
    .drbs-read-more {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .drbs-bottom-navigation {
        bottom: 10px;
        gap: 15px;
        min-height: 60px;
        width: 95%;
    }
    
    .drbs-nav-prev,
    .drbs-nav-next {
        width: 40px;
        height: 40px;
    }
    
    .drbs-nav-prev svg,
    .drbs-nav-next svg {
        width: 18px;
        height: 18px;
    }
    
    .drbs-slide-titles {
        gap: 10px;
        max-width: calc(100% - 100px);
    }
    
    .drbs-slide-title {
        font-size: 11px;
        padding: 5px 8px;
        letter-spacing: 1px;
    }
}