/* Fix for Elementor Editor */
.elementor-editor-active .netsurf-brand-carousel.splide {
    visibility: visible !important;
}

/* 
   Brand Carousel Styles 
   ========================================================================== */

.netsurf-brand-carousel {
    position: relative;
    padding-bottom: 80px; /* Space for bottom controls */
}
.netsurf-brand-carousel .splide__track {
    overflow: hidden;
}
.netsurf-brand-slide-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.netsurf-brand-image-col {
    display: flex;
    justify-content: center;
    align-items: center;
}

.netsurf-brand-image-col img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.netsurf-brand-text-col {
    flex: 1;
}

.netsurf-brand-description {
    font-size: 16px;
    line-height: 1.6;
}

/* Custom Controls Container (Bottom Center) */
.netsurf-brand-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.netsurf-brand-controls button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.netsurf-brand-controls button:hover {
    opacity: 0.7;
}

.netsurf-brand-controls .netsurf-brand-pagination {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Override Splide Pagination for Brand Carousel */
.netsurf-brand-carousel .splide__pagination {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    width: auto; /* Allow it to be inline */
}

.netsurf-brand-carousel .splide__pagination__page {
    width: 6px;
    height: 6px;
    border-radius: 999px; /* Pill shape fully rounded */
    margin: 0;
    opacity: 1;
    transition: all 0.3s ease;
    background: #ccc; /* Default color fallback */
}

.netsurf-brand-carousel .splide__pagination__page.is-active {
    width: 24px;
    background: #000; /* Default active color fallback */
    transform: scale(1); /* Reset any scale */
}

@media (max-width: 768px) {
    .netsurf-brand-slide-inner {
        flex-direction: column;
        text-align: center;
        gap: 30px !important; /* Override inline gap for mobile stacking */
    }

    .netsurf-brand-image-col {
        width: 100% !important;
        flex: 0 0 auto !important;
    }
}
