/*--------------------------------------------------------------
 * Scrolling Section Widget — Nordic Elementor
 *------------------------------------------------------------*/

/* ── Swiper base rules (not loaded by Elementor for custom widgets) ── */
.nordic-ss-swiper.swiper {
    overflow: hidden;
}
.nordic-ss-swiper .swiper-wrapper {
    display: flex;
    flex-direction: row;
    box-sizing: content-box;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}
.nordic-ss-swiper .swiper-slide {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    position: relative;
    transition-property: transform;
    display: block;
}

:root {
    --nss-arrow-bg: #000000;
    --nss-arrow-color: #ffffff;
    --nss-dot-active: #FF3333;
    --nss-dot-border: #FF3333;
}

.nordic-ss {
    width: 100%;
}

/* ── Header ────────────────────────────────────────────────── */
.nordic-ss-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

/* ── Carousel Wrapper ─────────────────────────────────────── */
.nordic-ss-carousel-wrapper {
    position: relative;
    width: 100%;
    padding-right: 60px;
}

.nordic-ss-swiper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.nordic-ss-swiper .swiper-slide {
    height: auto; /* ensure equal heights for cards */
}

/* ── Cards ────────────────────────────────────────────────── */
.nordic-ss-card {
    background-color: #EFEBE1;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.nordic-ss-card__image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.nordic-ss-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nordic-ss-card__content {
    padding: 32px 24px;
    flex-grow: 1; /* Pushes content down properly */
}

.nordic-ss-card__title {
    font-size: 24px;
    font-weight: 900;
    text-transform: uppercase;
    margin: 0 0 16px;
    line-height: 1.2;
    color: #000;
}

.nordic-ss-card__subtitle {
    font-size: 16px;
    margin-bottom: 24px;
    color: #111;
}

.nordic-ss-card__desc {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
}

.nordic-ss-card__desc ul {
    margin: 0;
    padding-left: 20px;
}

.nordic-ss-card__desc li {
    margin-bottom: 12px;
}
.nordic-ss-card__desc li:last-child {
    margin-bottom: 0;
}

/* ── Controls (Arrow) ─────────────────────────────────────── */
.nordic-ss-nav {
    width: 48px;
    height: 48px;
    background-color: var(--nss-arrow-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    cursor: pointer;
    transition: transform 0.2s;
}

.nordic-ss-nav:hover {
    transform: translateY(-50%) scale(1.1);
}

.nordic-ss-nav.swiper-button-next:after {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    border-top: 2px solid var(--nss-arrow-color);
    border-right: 2px solid var(--nss-arrow-color);
    transform: rotate(45deg);
    margin-right: 4px;
}

/* ── Footer Plugins (Dots & Link) ────────────────────────── */
.nordic-ss-footer {
    text-align: center;
    margin-top: 32px;
}

.nordic-ss-dots {
    position: static; /* Let it sit naturally in document flow */
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: transparent;
    opacity: 1;
    border: 1px solid var(--nss-dot-border);
    margin: 0 !important;
    border-radius: 50%;
    cursor: pointer;
    display: inline-block;
}

.swiper-pagination-bullet-active {
    background-color: var(--nss-dot-active);
    border-color: var(--nss-dot-active);
}

.nordic-ss-footer a {
    display: inline-block;
    color: #FF3333;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.2s;
}

.nordic-ss-footer a:hover {
    opacity: 0.8;
}

/* ── Responsive logic ─────────────────────────────────────── */
@media (max-width: 1024px) {
    .nordic-ss-carousel-wrapper {
        padding-right: 0;
    }
    .nordic-ss-nav {
        display: none; /* Rely on swipe and dots */
    }
}

@media (max-width: 767px) {
    .nordic-ss-header {
        margin-bottom: 24px;
    }
    
    .nordic-ss-card__content {
        padding: 24px 20px;
    }
    
    .nordic-ss-card__title {
        font-size: 20px;
    }
}
