/* Sustainable Practices Slider Block Styles */
.sustainable-slider-block {
    position: relative !important;
    width: 100vw !important;
    max-width: none !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding: 40px 0 !important;
    overflow: hidden !important;
    left: 0 !important;
    right: 0 !important;
}

/* Override WordPress container constraints */
.wp-block-group .sustainable-slider-block,
.wp-block-group__inner-container .sustainable-slider-block,
.entry-content .sustainable-slider-block,
.wp-block-post-content .sustainable-slider-block,
.is-layout-constrained .sustainable-slider-block,
.sustainable-slider-block.alignfull {
    width: 100vw !important;
    max-width: none !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    left: 0 !important;
    right: 0 !important;
}

/* Force full-width for all containers */
.alignfull.sustainable-slider-block {
    width: 100vw !important;
    max-width: none !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
}

/* Additional overrides for theme constraints */
.wp-block-group__inner-container,
.wp-block-group,
.entry-content,
.wp-block-post-content,
.is-layout-constrained {
    overflow: visible !important;
}

.sustainable-slider-block {
    position: relative !important;
    z-index: 1 !important;
}

.sustainable-slider-container {
    /* max-width: 1344px; */
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.sustainable-slider {
    position: relative;
    z-index: 2;
}

.slider-card {
    background: #ffffff;
    /* border-radius: 8px; */
    padding: 40px 20px;
    text-align: center;
    border: 1px solid #e0e0e0;
    transition: none;
    height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0;
    min-width: 280px;
    gap: 15px;
}

.slider-card:hover {
    transform: none;
    box-shadow: none;
}

.card-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    transition: background-color 0.3s ease;
}

.card-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.card-content {
    /* flex-grow: 1; */
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-text {
    font-size: 24px;
    font-weight: 600;
    color: #000000;
    line-height: 1.4;
    margin: 0;
    text-align: center;
    max-width: 100%;
}

/* Owl Carousel Dots Styling */
.sustainable-slider-block .owl-dots {
    text-align: center;
    margin-top: 30px;
    position: relative;
    z-index: 3;
}

.sustainable-slider-block .owl-dots .owl-dot {
    display: inline-block;
    margin: 0 5px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cccccc;
    transition: all 0.3s ease;
    cursor: pointer;
}

.sustainable-slider-block .owl-dots .owl-dot:hover {
    background: #999999;
    transform: scale(1.1);
}

.sustainable-slider-block .owl-dots .owl-dot.active {
    background: #000000;
    transform: scale(1.2);
}

/* Owl Carousel Navigation (hidden by default) */
.sustainable-slider-block .owl-nav {
    display: none;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .sustainable-slider-block {
        padding: 30px 0;
    }
    
    .sustainable-slider-container {
        padding: 0 15px;
    }
    
    .slider-card {
        height: 220px;
        padding: 30px 15px;
        min-width: 250px;
    }
    
    .card-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 15px;
    }
    
    .card-icon img {
        width: 70px;
        height: 70px;
    }
    
    .card-text {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .sustainable-slider-block {
        padding: 20px 0;
    }
    
    .sustainable-slider-container {
        padding: 0 10px;
    }
    
    .slider-card {
        height: 160px;
        padding: 20px 15px;
        margin: 0;
    }
    
    .card-icon {
        width: 45px;
        height: 45px;
        margin-bottom: 12px;
    }
    
    .card-icon img {
        width: 24px;
        height: 90px;
    }
    
    .card-text {
        font-size: 14px;
        line-height: 1.4;
    }
    
    .sustainable-slider-block .owl-dots {
        margin-top: 25px;
    }
    
    .sustainable-slider-block .owl-dots .owl-dot {
        width: 10px;
        height: 10px;
        margin: 0 3px;
    }
}

@media (max-width: 480px) {
    .sustainable-slider-block {
        padding: 15px 0;
    }
    
    .sustainable-slider-container {
        padding: 0 5px;
    }
    
    .slider-card {
        height: 140px;
        padding: 15px 10px;
        margin: 0;
    }
    
    .card-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 10px;
    }
    
    .card-icon img {
        width: 20px;
        height: 95px;
    }
    
    .card-text {
        font-size: 13px;
        line-height: 1.3;
    }
}

/* Animation for smooth transitions */
.sustainable-slider .owl-stage-outer {
    overflow: hidden;
}

.sustainable-slider .owl-item {
    transition: all 0.3s ease;
}

/* Focus states for accessibility */
.slider-card:focus-within {
    outline: 2px solid #000000;
    outline-offset: 2px;
}

.sustainable-slider-block .owl-dots .owl-dot:focus {
    outline: 2px solid #000000;
    outline-offset: 2px;
}
