/* Fix for Elementor Editor: Force visibility even if JS hasn't initialized yet */
.elementor-editor-active .netsurf-card-carousel.splide {
    visibility: visible !important;
}
.netsurf-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 0 rgba(0,0,0,0);
}

.netsurf-card-inner {
    position: relative;
    z-index: 2; /* Above background overlay */
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.netsurf-card-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 56px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.netsurf-card-icon svg {
    width: 100%;
    height: auto;
    fill: currentColor;
    transition: fill 0.3s ease;
}

.netsurf-card-icon i {
    font-size: 50px; /* Or whatever size fits */
    transition: color 0.3s ease;
}

.netsurf-card-title {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.netsurf-card-desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    color: #444;
    transition: color 0.3s ease;
}

/* Background Overlay for Hover */
.netsurf-card-bg-overlay {
    position: absolute;
    top: 10%;
    left: 32%;
    height: 90%;
    aspect-ratio: 1 / 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    /* Advanced animation setup: Start smaller and rotated */
    transform: scale(0.6) rotate(-80deg);
    /* Bezier curve for a "cool" bouncy entry */
    transition: all 0.75s cubic-bezier(0, -0.08, 0.52, 1.03);
    z-index: 1;
}

.netsurf-card:hover {
    box-shadow: 0px 0px 8px 0px rgba(255, 106, 0, 0.6);
    background: linear-gradient(0deg, #FF0000, #FF0000), linear-gradient(180deg, #FF0000 0%, #CE0000 100%);
}

.netsurf-card:hover .netsurf-card-bg-overlay {
    opacity: 1;
    /* Reset transform on hover for the "spin in" effect */
    transform: scale(1) rotate(0deg);
}

/* Header Layout */
.netsurf-carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 48px; /* Default gap, can be overridden by control */
}

.netsurf-card-carousel {
    position: relative;
}

.netsurf-card-carousel-title {
    position: static; /* Reset absolute */
    font-size: 48px;
    font-weight: 600;
    line-height: 120%;
    color: #000000;
}

/* Splide Arrows Customization (Flex Container) */
.netsurf-card-carousel .splide__arrows {
    position: static; /* Reset absolute */
    display: flex;
    gap: 10px;
    margin: 0;
}

.netsurf-card-carousel .splide__arrow {
    position: static;
    transform: none;
    background: #E2E2E2;
    opacity: 1;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
}
.netsurf-card-carousel .splide__arrow[disabled] {
    opacity: 0.3;
    cursor: not-allowed;
}
.netsurf-card-carousel .splide__arrow--prev svg {
    transform: scaleX(-1); /* Flip right arrow to make it left */
}

.netsurf-card-carousel .splide__arrow svg {
    fill: #333;
    width: 16px;
    height: 16px;
}

.netsurf-card-carousel .splide__arrow:hover {
    background: #FF0000;
}

.netsurf-card-carousel .splide__arrow:hover svg {
    fill: #fff;
}

/* Pagination - Hide or Style */
.netsurf-card-carousel .splide__pagination {
    bottom: -30px;
}
