.advanced-banner-section {
    padding: 18px 0;
}

.advanced-banner-heading {
    margin-bottom: 18px;
    text-align: center;
}

.advanced-banner-heading h2 {
    margin: 0;
    color: #1f2937;
    font-size: 26px;
    font-weight: 800;
}

.advanced-banner-heading p {
    max-width: 620px;
    margin: 8px auto 0;
    color: #667085;
    font-size: 15px;
}

.advanced-banner-shell {
    position: relative;
    width: 100%;
}

.advanced-banner-slider,
.advanced-banner-slider .owl-stage-outer,
.advanced-banner-slider .owl-stage,
.advanced-banner-slider .owl-item {
    width: 100%;
}

.advanced-banner-slider .owl-stage-outer {
    transition: height .25s ease;
}

.advanced-banner-card {
    position: relative;
    display: block;
    width: 100%;
    min-height: 120px;
    overflow: hidden;
    color: inherit;
    background: #f4f6f8;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .08);
    text-decoration: none;
}

.advanced-banner-picture,
.advanced-banner-picture img {
    display: block;
    width: 100%;
}

.advanced-banner-picture img {
    height: auto;
    max-width: 100%;
}

/*
 * Hero images must keep their original ratio.
 * These !important values override theme files that set a fixed aspect-ratio,
 * min-height or object-fit: cover.
 */
.placement-home_hero .advanced-banner-card,
.placement-hero .advanced-banner-card {
    min-height: 0 !important;
}

.placement-home_hero .advanced-banner-picture img,
.placement-hero .advanced-banner-picture img {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
}

.advanced-banner-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    padding: 36px 48px;
    color: #fff;
    pointer-events: none;
}

.advanced-banner-text {
    max-width: 520px;
}

.advanced-banner-badge {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 6px 12px;
    color: #111827;
    background: rgba(255, 255, 255, .92);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.advanced-banner-title {
    margin: 0 0 10px;
    color: inherit;
    font-size: 42px;
    font-weight: 900;
    line-height: 1.05;
}

.advanced-banner-subtitle {
    margin: 0 0 18px;
    color: inherit;
    font-size: 17px;
    line-height: 1.55;
}

.advanced-banner-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 22px;
    color: #fff;
    background: #111827;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
    pointer-events: auto;
}

.advanced-banner-btn:hover {
    color: #fff;
    opacity: .92;
}

.advanced-banner-grid {
    display: grid;
    gap: 18px;
}

.advanced-banner-grid.columns-1 {
    grid-template-columns: 1fr;
}

.advanced-banner-grid.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.advanced-banner-grid.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.advanced-banner-grid.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.advanced-banner-grid.columns-5 {
    grid-template-columns: repeat(5, 1fr);
}

.advanced-banner-grid.columns-6 {
    grid-template-columns: repeat(6, 1fr);
}

.advanced-banner-section .owl-nav button {
    position: absolute;
    top: 50%;
    width: 40px;
    height: 40px;
    color: #111827 !important;
    background: #fff !important;
    border-radius: 50% !important;
    box-shadow: 0 10px 20px rgba(15, 23, 42, .16) !important;
    transform: translateY(-50%);
}

.advanced-banner-section .owl-nav .owl-prev {
    left: 14px;
}

.advanced-banner-section .owl-nav .owl-next {
    right: 14px;
}

/* Owl dots are fully styled here, so they remain visible in every theme. */
.advanced-banner-section .owl-dots:not(.disabled) {
    position: relative;
    z-index: 5;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 24px;
    margin: 10px 0 2px !important;
    text-align: center;
}

.advanced-banner-section .owl-dots.disabled {
    display: none !important;
}

.advanced-banner-section .owl-dots .owl-dot {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    margin: 0 !important;
    padding: 4px !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 999px !important;
    box-shadow: none !important;
}

.advanced-banner-section .owl-dots .owl-dot span {
    display: block !important;
    width: 9px !important;
    height: 9px !important;
    margin: 0 !important;
    background: #cbd5e1 !important;
    border-radius: 999px !important;
    transition: width .2s ease, background-color .2s ease;
}

.advanced-banner-section .owl-dots .owl-dot.active span {
    width: 26px !important;
    background: var(--wn-theme-primary, var(--sc-primary, #FC8934)) !important;
}

.advanced-banner-section .owl-dots .owl-dot:focus-visible {
    outline: 2px solid var(--wn-theme-primary, var(--sc-primary, #FC8934));
    outline-offset: 2px;
}

@media (max-width: 991px) {
    .advanced-banner-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .advanced-banner-content {
        padding: 24px;
    }

    .advanced-banner-title {
        font-size: 30px;
    }

    .advanced-banner-subtitle {
        font-size: 15px;
    }
}

@media (max-width: 767.98px) {
    .advanced-banner-section {
        padding: 10px 0;
    }

    .advanced-banner-shell,
    .advanced-banner-slider,
    .advanced-banner-slider .owl-stage-outer,
    .advanced-banner-slider .owl-item,
    .advanced-banner-card,
    .advanced-banner-picture {
        height: auto !important;
        min-height: 0 !important;
    }

    .advanced-banner-card {
        border-radius: 12px;
    }

    .advanced-banner-picture img,
    .placement-home_hero .advanced-banner-picture img,
    .placement-hero .advanced-banner-picture img {
        display: block;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        aspect-ratio: auto !important;
        object-fit: contain !important;
        border-radius: inherit;
    }

    .advanced-banner-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }

    .advanced-banner-content {
        padding: 18px;
    }

    .advanced-banner-title {
        font-size: 23px;
    }

    .advanced-banner-subtitle {
        margin-bottom: 12px;
        font-size: 13px;
    }

    .advanced-banner-btn {
        padding: 8px 15px;
        font-size: 13px;
    }

    .advanced-banner-heading h2 {
        font-size: 20px;
    }

    .advanced-banner-heading p {
        font-size: 13px;
    }

    .advanced-banner-badge {
        padding: 4px 9px;
        font-size: 12px;
    }

    .advanced-banner-section .owl-dots:not(.disabled) {
        min-height: 26px;
        margin-top: 8px !important;
    }
}
