/*
 * StarFlow public homepage presentation.
 *
 * This file is intentionally limited to the public surface. It adapts the
 * migrated PageBuilder markup to the light, spacious Banta/StarTechno visual
 * language without changing widget data or Blade structure.
 */
.sv-public-shell {
    --sf-home-bg: #f6f9fd;
    --sf-home-surface: #ffffff;
    --sf-home-line: #e7edf5;
    --sf-home-ink: #13243d;
    --sf-home-muted: #788ba4;
    --sf-home-accent: var(--startechno-main-color, #3d86ed);
    --sf-home-radius: 22px;
    background: var(--sf-home-bg);
}

.sv-public-shell,
.sv-public-shell main,
.sv-public-shell #main-content {
    background: var(--sf-home-bg);
}

.sv-public-shell .stx-public-header {
    position: sticky;
    top: 0;
    z-index: 1180;
    padding: 0;
    border: 0;
}

.sv-public-shell .stx-container {
    width: min(100% - 40px, 1280px);
}

.sv-public-shell .stx-desktop-logo img {
}

.sv-public-shell .stx-main-nav__item > a {
    color: #33445c;
}

.sv-public-shell .stx-main-nav__item > a:hover,
.sv-public-shell .stx-main-nav__item:focus-within > a {
    color: var(--sf-home-accent);
    background: transparent;
}

.sv-public-shell .stx-action-button--login {
    color: var(--sf-home-accent);
}

.sv-public-shell .public-page {
    min-height: 72vh;
    padding: clamp(3.2rem, 7vw, 6.5rem) 0 clamp(5rem, 10vw, 9rem);
    background:
        radial-gradient(circle at 14% 8%, rgba(91, 151, 235, .09), transparent 24rem),
        linear-gradient(180deg, #f8fbff 0%, var(--sf-home-bg) 72%);
}

.sv-public-shell .public-template-preview .public-page__shell {
    width: min(calc(100% - 32px), 1240px);
    max-width: none;
}

/* The public homepage uses the same PageBuilder surface as the preview, but
 * its vertical rhythm follows Banta's real home page rather than the preview
 * shell's minimum-height presentation. */
.sv-public-shell main:has(.public-homepage) {
    min-height: 0;
}

.sv-public-shell .public-homepage {
    min-height: 0;
    padding: clamp(2.5rem, 5vw, 5rem) 0 0;
}

.sv-public-shell .public-homepage > .public-page__shell {
    width: min(calc(100% - 32px), 1400px);
}

.sv-public-shell .public-homepage .section {
    margin-block: 0;
}

.sv-public-shell .public-homepage .section > .custom-container,
.sv-public-shell .public-homepage .section > .custom-container > .row {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
}

.sv-public-shell .public-template-preview .public-page-header {
    max-width: 780px;
    margin: 0 auto clamp(2.5rem, 6vw, 5rem);
    padding-bottom: 1.9rem;
    border-color: #dfe8f3;
    text-align: center;
}

.sv-public-shell .public-template-preview .public-page-header__eyebrow {
    color: var(--sf-home-accent);
    font-size: .8rem;
}

.sv-public-shell .public-template-preview .public-page-header h1 {
    max-width: none;
    margin-top: .45rem;
    color: var(--sf-home-ink);
    font-size: clamp(2.25rem, 5vw, 4.25rem);
    line-height: 1.25;
}

.sv-public-shell .public-template-preview .public-page-header__excerpt {
    max-width: none;
    margin-top: 1rem;
    color: var(--sf-home-muted);
    font-size: 1rem;
}

.sv-public-shell .public-template-preview .section {
    margin-block: clamp(1.5rem, 4vw, 3.75rem);
}

.sv-public-shell .public-template-preview .section > .custom-container,
.sv-public-shell .public-template-preview .section > .custom-container > .row {
    width: 100%;
    max-width: 1120px;
    margin-inline: auto;
}

.sv-public-shell .public-template-preview .alert {
    max-width: 900px;
    margin-inline: auto;
    border: 1px dashed #cfddec;
    border-radius: 16px;
    background: #fff;
    color: var(--sf-home-muted);
}

/* The active PageBuilder slider owns one predictable visual viewport. */
.sv-public-shell .public-homepage .widget-section {
    margin-block: 0;
}

.sv-public-shell .public-homepage .widget-slider-grid {
    display: grid;
    width: 100%;
    max-width: 100%;
    gap: 1rem;
}

.sv-public-shell .public-homepage .widget-slider-grid--with-side {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}

.sv-public-shell .public-homepage .widget-slider-grid__main,
.sv-public-shell .public-homepage .widget-slider-grid__side {
    min-width: 0;
}

.sv-public-shell .public-homepage .js-widget-slider {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 4 / 1;
    margin-inline: auto;
    overflow: hidden;
    border: 1px solid var(--sf-home-line);
    border-radius: var(--sf-home-radius);
    background: #edf3fa;
    box-shadow: 0 18px 42px rgba(34, 65, 103, .09);
    isolation: isolate;
}

.sv-public-shell .public-homepage .public-widget-row--full .js-widget-slider {
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.sv-public-shell .public-homepage .js-widget-slider .swiper-wrapper,
.sv-public-shell .public-homepage .js-widget-slider .swiper-slide,
.sv-public-shell .public-homepage .js-widget-slider .slide-item,
.sv-public-shell .public-homepage .js-widget-slider picture {
    height: 100%;
    display: block;
    overflow: hidden;
    border-radius: inherit;
}

.sv-public-shell .public-homepage .js-widget-slider .banner-item {
    display: block;
    width: 100%;
    height: 100%;
}

.sv-public-shell .public-homepage .js-widget-slider .banner-image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    border: 0;
    border-radius: 0;
    object-fit: cover;
    background: #f0f4f8;
}

.sv-public-shell .public-homepage .js-widget-slider .custom-swiper-button-prev,
.sv-public-shell .public-homepage .js-widget-slider .custom-swiper-button-next {
    width: 42px;
    height: 58px;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 13px;
    background: rgba(255, 255, 255, .9);
    color: #385170;
    box-shadow: 0 8px 22px rgba(24, 48, 79, .13);
    opacity: 0;
    transition: opacity .2s ease, transform .2s ease;
}

.sv-public-shell .public-homepage .js-widget-slider:hover .custom-swiper-button-prev,
.sv-public-shell .public-homepage .js-widget-slider:hover .custom-swiper-button-next {
    opacity: 1;
}

.sv-public-shell .public-homepage .js-widget-slider .custom-swiper-button-prev {
    right: 16px;
    left: auto;
}

.sv-public-shell .public-homepage .js-widget-slider .custom-swiper-button-next {
    right: auto;
    left: 16px;
}

.sv-public-shell .public-homepage .js-widget-slider .swiper-pagination {
    bottom: 12px;
    width: auto;
    padding: 5px 8px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px;
    background: rgba(17, 35, 59, .22);
    line-height: 0;
    transform: translateX(50%);
}

.sv-public-shell .public-homepage .js-widget-slider .swiper-pagination-bullet {
    width: 7px;
    height: 7px;
    margin: 0 3px;
    background: #fff;
    opacity: .7;
}

.sv-public-shell .public-homepage .js-widget-slider .swiper-pagination-bullet-active {
    width: 22px;
    border-radius: 99px;
    opacity: 1;
}

/* Widget rails follow the same quiet card language as the reference page. */
.sv-public-shell .public-template-preview .categories-swiper,
.sv-public-shell .public-template-preview .featured-products-swiper,
.sv-public-shell .public-template-preview .products-swiper-categories,
.sv-public-shell .public-template-preview .posts-swiper,
.sv-public-shell .public-template-preview .small-stories-swiper {
    overflow: hidden;
}

.sv-public-shell .public-template-preview .categories-swiper .swiper-slide,
.sv-public-shell .public-template-preview .featured-products-swiper .swiper-slide,
.sv-public-shell .public-template-preview .products-swiper-categories .swiper-slide,
.sv-public-shell .public-template-preview .posts-swiper .swiper-slide,
.sv-public-shell .public-template-preview .small-stories-swiper .swiper-slide {
    height: auto;
}

.sv-public-shell .public-template-preview .category-item,
.sv-public-shell .public-template-preview .product-item,
.sv-public-shell .public-template-preview .post-entry {
    border: 1px solid var(--sf-home-line);
    border-radius: 17px;
    background: var(--sf-home-surface);
    box-shadow: 0 9px 25px rgba(40, 69, 103, .055);
}

.sv-public-shell .public-template-preview .widget-heading,
.sv-public-shell .public-template-preview .section-title {
    color: var(--sf-home-ink);
}

.sv-public-shell .public-template-preview .custom-swiper-button-prev,
.sv-public-shell .public-template-preview .custom-swiper-button-next {
    border-radius: 11px;
    background: #fff;
    color: var(--sf-home-accent);
    box-shadow: 0 8px 20px rgba(40, 69, 103, .1);
}

/* Footer: one centered card plus the four benefit tiles above it. */
.sv-public-shell .st-footer {
    margin-top: 0;
    padding: 0 16px 28px;
    border: 0;
    background: transparent;
}

.sv-public-shell:has(.public-homepage) .st-footer {
    margin-top: 60px;
}

.sv-public-shell .st-footer > .stx-container {
    width: min(100%, 1332px);
}

.sv-public-shell .st-footer__benefits {
    gap: .8rem;
    margin-bottom: 1rem;
}

.sv-public-shell .st-footer__benefit,
.sv-public-shell .st-footer__main {
    border-color: var(--sf-home-line);
    background: var(--sf-home-surface);
    box-shadow: 0 8px 25px rgba(38, 62, 91, .045);
}

.sv-public-shell .st-footer__benefit {
    min-height: 66px;
    border-radius: 15px;
}

.sv-public-shell .st-footer__benefit img.sf-media-missing {
    display: none;
}

.sv-public-shell .st-footer__benefit.is-media-missing::before {
    content: '';
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border: 1px solid #dce8f5;
    border-radius: 11px;
    background: linear-gradient(135deg, #edf5ff, #f8fbff);
}

.sv-public-shell .st-footer__main {
    padding: clamp(1.25rem, 3vw, 2.25rem);
    border-radius: 24px;
}

.sv-public-shell .st-footer__grid {
    gap: clamp(1.25rem, 3vw, 3rem);
}

.sv-public-shell .st-footer__bottom {
    border-color: var(--sf-home-line);
}

@media (max-width: 991.98px) {
    .sv-public-shell .stx-public-header {
        padding: 0;
    }

    .sv-public-shell .stx-mobile-header {
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .sv-public-shell .public-homepage .widget-slider-grid--with-side {
        grid-template-columns: minmax(0, 1fr);
    }

    .sv-public-shell .public-homepage .js-widget-slider {
        aspect-ratio: 3 / 1;
    }

    .sv-public-shell .public-homepage .js-widget-slider .custom-swiper-button-prev,
    .sv-public-shell .public-homepage .js-widget-slider .custom-swiper-button-next {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .sv-public-shell .public-page {
        padding-top: 2.8rem;
    }

    .sv-public-shell .public-template-preview .public-page__shell {
        width: min(calc(100% - 20px), 1240px);
    }

    .sv-public-shell .public-homepage > .public-page__shell {
        width: min(calc(100% - 20px), 1400px);
    }

    .sv-public-shell .public-template-preview .public-page-header {
        margin-bottom: 2.5rem;
    }

    .sv-public-shell .public-template-preview .public-page-header h1 {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .sv-public-shell .public-homepage .js-widget-slider {
        aspect-ratio: 16 / 9;
        border-radius: 16px;
    }

    .sv-public-shell .st-footer__benefits,
    .sv-public-shell .st-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .sv-public-shell .st-footer__benefits,
    .sv-public-shell .st-footer__grid {
        grid-template-columns: 1fr;
    }

    .sv-public-shell .st-footer__main {
        padding: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sv-public-shell .image-slider-widget *,
    .sv-public-shell .js-widget-slider *,
    .sv-public-shell .stx-action-button,
    .sv-public-shell .custom-swiper-button-prev,
    .sv-public-shell .custom-swiper-button-next {
        transition: none !important;
    }
}

/* The page provides the available surface; each row owns its layout contract. */
.sv-public-shell .public-homepage .public-widget-row {
    width: 100%;
    max-width: none;
    margin-inline: 0;
}

.sv-public-shell .public-homepage .public-widget-row--full {
    width: 100%;
    max-width: none;
}

.sv-public-shell .public-homepage .public-widget-row--contained {
    width: 100%;
    max-width: none;
}

.sv-public-shell .public-homepage .public-widget-container {
    width: min(calc(100% - 32px), 1400px);
    max-width: 1400px;
    margin-inline: auto;
}

@media (max-width: 767.98px) {
    .sv-public-shell .public-homepage .public-widget-container {
        width: min(calc(100% - 20px), 1400px);
    }
}

/* Shared scoped contract for the remaining PageBuilder widgets. */
.sv-public-shell .public-homepage .sf-widget {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.sv-public-shell .public-homepage .sf-widget > .section {
    width: 100%;
    max-width: 100%;
    margin-block: 0;
}

.sv-public-shell .public-homepage .sf-widget-empty {
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
}

.sv-public-shell .public-homepage .sf-widget-heading__text {
    max-width: 100%;
    margin: 0;
    overflow-wrap: anywhere;
    font-size: clamp(1.25rem, min(5vw, var(--sf-heading-font-size, 2rem)), var(--sf-heading-font-size, 2rem));
    line-height: 1.5;
}

.sv-public-shell .public-homepage .sf-widget-heading__text--right { text-align: right; }
.sv-public-shell .public-homepage .sf-widget-heading__text--center { text-align: center; }
.sv-public-shell .public-homepage .sf-widget-heading__text--left { text-align: left; }

.sv-public-shell .public-homepage .sf-banner-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1rem;
    width: 100%;
    max-width: 100%;
}

.sv-public-shell .public-homepage .sf-banner-grid__item {
    grid-column: span var(--sf-banner-desktop-columns);
    min-width: 0;
}

.sv-public-shell .public-homepage .sf-banner-grid__item picture,
.sv-public-shell .public-homepage .sf-banner-grid__item .banner-item,
.sv-public-shell .public-homepage .sf-banner-grid__item .banner-image {
    display: block;
    width: 100%;
    max-width: 100%;
}

.sv-public-shell .public-homepage .sf-banner-grid__item .banner-image {
    height: auto;
    object-fit: cover;
}

.sv-public-shell .public-homepage .sf-widget--featured-categories-carousel .categories-swiper,
.sv-public-shell .public-homepage .sf-widget--stories .small-stories-swiper,
.sv-public-shell .public-homepage .sf-widget--products-carousel .products-swiper-categories,
.sv-public-shell .public-homepage .sf-widget--featured-products .featured-products-swiper,
.sv-public-shell .public-homepage .sf-widget--posts .posts-swiper {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

.sv-public-shell .public-homepage .sf-widget--featured-categories-carousel .swiper-slide,
.sv-public-shell .public-homepage .sf-widget--stories .swiper-slide,
.sv-public-shell .public-homepage .sf-widget--products-carousel .swiper-slide,
.sv-public-shell .public-homepage .sf-widget--featured-products .swiper-slide,
.sv-public-shell .public-homepage .sf-widget--posts .swiper-slide {
    min-width: 0;
    height: auto;
}

.sv-public-shell .public-homepage .sf-widget--featured-categories-carousel .category-item,
.sv-public-shell .public-homepage .sf-widget--featured-categories-carousel .category-item img,
.sv-public-shell .public-homepage .sf-widget--products-carousel .swiper-slide > *,
.sv-public-shell .public-homepage .sf-widget--featured-products .swiper-slide > *,
.sv-public-shell .public-homepage .sf-widget--posts .swiper-slide > * {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.sv-public-shell .public-homepage .sf-widget--featured-categories-carousel .category-item img {
    height: auto;
    object-fit: cover;
}

.sv-public-shell .public-homepage .sf-category-grid {
    display: grid;
    grid-template-columns: repeat(var(--sf-category-grid-desktop), minmax(0, 1fr));
    gap: 1rem;
    width: 100%;
    max-width: 100%;
}

.sv-public-shell .public-homepage .sf-category-grid__item {
    min-width: 0;
}

.sv-public-shell .public-homepage .sf-category-grid__item .category-item,
.sv-public-shell .public-homepage .sf-category-grid__item .category-item img {
    display: block;
    width: 100%;
    max-width: 100%;
}

.sv-public-shell .public-homepage .sf-category-grid__item .category-item img {
    height: auto;
    object-fit: cover;
}

.sv-public-shell .public-homepage .sf-widget--editor .content-area,
.sv-public-shell .public-homepage .sf-widget--faq .content-area {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
}

.sv-public-shell .public-homepage .sf-widget--editor .content-area img,
.sv-public-shell .public-homepage .sf-widget--faq .content-area img {
    display: block;
    max-width: 100%;
    height: auto;
}

.sv-public-shell .public-homepage .sf-widget--editor .content-area table,
.sv-public-shell .public-homepage .sf-widget--faq .content-area table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
}

.sv-public-shell .public-homepage .sf-widget--editor .content-area pre,
.sv-public-shell .public-homepage .sf-widget--editor .content-area code {
    max-width: 100%;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.sv-public-shell .public-homepage .sf-widget--faq .accordion,
.sv-public-shell .public-homepage .sf-widget--faq .accordion-item,
.sv-public-shell .public-homepage .sf-widget--faq .accordion-button {
    max-width: 100%;
}

.sv-public-shell .public-homepage .sf-widget--faq .accordion-button {
    text-align: right;
}

.sv-public-shell .public-homepage .public-widget-row--full .sf-widget--editor .content-area,
.sv-public-shell .public-homepage .public-widget-row--full .sf-widget--faq .content-area {
    border-radius: 0;
    box-shadow: none;
}

@media (max-width: 991.98px) {
    .sv-public-shell .public-homepage .sf-banner-grid__item {
        grid-column: span var(--sf-banner-tablet-columns);
    }

    .sv-public-shell .public-homepage .sf-category-grid {
        grid-template-columns: repeat(var(--sf-category-grid-tablet), minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .sv-public-shell .public-homepage .sf-banner-grid {
        gap: .75rem;
    }

    .sv-public-shell .public-homepage .sf-banner-grid__item {
        grid-column: span var(--sf-banner-mobile-columns);
    }

    .sv-public-shell .public-homepage .sf-category-grid {
        grid-template-columns: repeat(var(--sf-category-grid-mobile), minmax(0, 1fr));
        gap: .75rem;
    }

    .sv-public-shell .public-homepage .sf-widget--featured-categories-carousel .swiper-slide,
    .sv-public-shell .public-homepage .sf-widget--stories .swiper-slide,
    .sv-public-shell .public-homepage .sf-widget--products-carousel .swiper-slide,
    .sv-public-shell .public-homepage .sf-widget--featured-products .swiper-slide,
    .sv-public-shell .public-homepage .sf-widget--posts .swiper-slide {
        overflow-wrap: anywhere;
    }
}
