/**
 * Basic Divi Theme Compatibility Styles
 * Simple CSS fixes to ensure carousel works with Divi theme
 */

/* ==========================================================================
   Basic Divi Compatibility
   ========================================================================== */

/* Reset Divi's default styles that might interfere */
.et_pb_section .plc-carousel,
.et_pb_row .plc-carousel,
.et_pb_column .plc-carousel {
    max-width: 100%;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* Ensure carousel doesn't inherit Divi's module padding */
.et_pb_module .plc-carousel {
    padding: 0;
    margin-bottom: 30px;
}

/* Fix Divi's interference with Splide structure */
.plc-carousel .splide__track {
    overflow: visible;
    position: relative;
}

.plc-carousel .splide__list {
    align-items: center;
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

.plc-carousel .splide__slide {
    flex-shrink: 0;
    list-style: none;
    margin: 0;
    position: relative;
}

/* ==========================================================================
   Divi Logo Image Fixes
   ========================================================================== */

/* Override Divi's image styling */
.plc-carousel .plc-logo-image {
    display: block;
    opacity: 1;
    max-width: 100%;
    height: auto;
    border: none;
    outline: none;
}

/* Fix Divi's link styling */
.plc-carousel .plc-logo-link {
    display: block;
    text-decoration: none;
    border: none;
    outline: none;
    background: none;
    box-shadow: none;
}

/* ==========================================================================
   Responsive Adjustments for Divi
   ========================================================================== */

/* Tablet adjustments */
@media (max-width: 980px) and (min-width: 768px) {
    .plc-carousel .plc-logo-image {
        max-height: 60px;
    }
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .plc-carousel .plc-logo-image {
        max-height: 50px;
    }
    
    .plc-carousel {
        margin: 0;
    }
}