/*
 * Small corrections for the original public theme.
 * These rules retain the supplied app.css design and only resolve the added
 * navigation item's desktop fit and the 992px–1199px hero breakpoint gap.
 */

/* Responsive image wrappers must participate in the original image layouts. */
.main-wrapper picture {
    display: block;
    max-width: 100%;
}

.bc-life-hero__media > picture,
.hero-banner .slide-image > picture,
.event-details .main-thumbnail > picture,
.bc-error-visual > picture {
    height: 100%;
    width: 100%;
}

/* Original centered header proportions, with enough room for Sustainability. */
@media only screen and (min-width: 1200px) {
    .header-style-1 .header-navbar > .header-mainnav {
        min-width: 0;
    }

    .header-style-1 .mainmenu-nav .mainmenu {
        align-items: center;
        flex-wrap: nowrap;
        justify-content: center;
    }

    .header-style-1 .mainmenu-nav .mainmenu > li {
        flex: 0 0 auto;
    }

    .header-style-1 .mainmenu-nav .mainmenu > li > a {
        font-size: 15px;
        padding-right: 17px;
        padding-left: 17px;
        white-space: nowrap;
    }

    .header-style-1 .mainmenu-nav .mainmenu li.has-droupdown > a::after {
        right: 3px;
    }

    .header-style-1 .header-brand .logo {
        margin-right: 24px;
    }

    .header-style-1 .mainmenu-nav .mainmenu > li:nth-last-child(-n + 3) > .submenu {
        right: 0;
        left: auto;
    }
}

/* Restore the original light hero presentation, including after cached styles. */
.hero-banner.hero-style-9 {
    background: var(--color-white) !important;
}

.hero-banner.hero-style-9 .slider .health-slider-content .swiper-slide .inner {
    max-width: 100%;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.hero-banner.hero-style-9 .slider .health-slider-content .swiper-slide .inner .title {
    color: var(--color-heading) !important;
    overflow-wrap: normal;
    word-break: normal;
}

.hero-banner.hero-style-9 .slider .health-slider-content .swiper-slide .inner .para,
.hero-banner.hero-style-9 .slider .health-slider-content .swiper-slide .inner .para p,
.hero-banner.hero-style-9 .slider .health-slider-content .swiper-slide .inner .para span {
    color: var(--color-heading) !important;
}

.hero-banner.hero-style-9 .slider .health-slider-main .slide-image {
    align-items: flex-end;
    display: flex !important;
    justify-content: center;
}

.hero-banner.hero-style-9 .slider .health-slider-main .slide-image picture,
.hero-banner.hero-style-9 .slider .health-slider-main .slide-image .slide-image__asset {
    display: block;
    height: 100%;
    width: 100%;
}

.hero-banner.hero-style-9 .slider .health-slider-main .slide-image .slide-image__asset {
    object-fit: contain;
    object-position: center bottom;
}

.hero-banner.hero-style-9 .health-slider-mobile {
    display: none;
}

.hero-banner.hero-style-9.hero-single-slide .hero-slider-bg-controls {
    display: none !important;
}

/* Keep the desktop composition close to the header and size the image frame
   to the uploaded hero artwork. This avoids a visible empty band above it. */
@media only screen and (min-width: 1200px) {
    .hero-banner.hero-style-9 {
        min-height: 0;
    }

    .hero-banner.hero-style-9 .slider {
        height: clamp(520px, 32vw, 640px);
        min-height: 0;
        z-index: 1;
    }

    .hero-banner.hero-style-9 .slider .container {
        height: 100%;
        padding-top: clamp(48px, 4vw, 80px);
        padding-bottom: 0;
    }

    .hero-banner.hero-style-9 .slider .health-slider-content {
        align-self: flex-start;
        z-index: 2;
    }

    .hero-banner.hero-style-9 .slider .health-slider-main {
        width: calc(48vw + 90px);
        left: calc(55% - 90px);
        top: clamp(24px, 2vw, 40px);
        height: auto;
        max-height: calc(100% - 70px);
        aspect-ratio: 1344 / 715;
        z-index: 2;
    }

    .hero-banner.hero-style-9 > .shape-group,
    .hero-banner.hero-style-9 .slider .container > .shape-group {
        pointer-events: none;
    }

    .hero-banner.hero-style-9 > .shape-group > li,
    .hero-banner.hero-style-9 .slider .container > .shape-group > li {
        z-index: 0 !important;
    }

    .hero-banner.hero-style-9 .slider .health-slider-main .swiper-wrapper,
    .hero-banner.hero-style-9 .slider .health-slider-main .swiper-slide,
    .hero-banner.hero-style-9 .slider .health-slider-main .slide-image {
        height: 100%;
    }

    .hero-banner.hero-style-9 .hero-slider-bg-controls {
        display: flex;
        gap: 12px;
        top: auto;
        bottom: 28px;
        left: max(15px, calc((100vw - 1200px) / 2 + 15px));
        transform: none;
        z-index: 3;
    }

    .hero-banner.hero-style-9 .hero-slider-bg-controls .slide-prev,
    .hero-banner.hero-style-9 .hero-slider-bg-controls .slide-next {
        position: static;
        width: 56px !important;
        height: 56px;
        margin: 0;
        line-height: 56px;
    }

    .hero-banner.hero-style-9 .hero-slider-bg-controls .swiper-slide-controls i {
        line-height: 54px;
    }
}

/* The original hero switched at 991px, but the header switches at 1199px.
   Stack both hero columns at the same breakpoint so no narrow desktop layout remains. */
@media only screen and (max-width: 1199px) {
    .hero-banner.hero-style-9 {
        min-height: 0;
    }

    .hero-banner.hero-style-9 .slider {
        height: auto;
        min-height: 0;
    }

    .hero-banner.hero-style-9 .slider .container {
        display: block;
        padding-top: 55px;
        padding-bottom: 105px;
    }

    .hero-banner.hero-style-9 .slider .health-slider-content,
    .hero-banner.hero-style-9 .slider .health-slider-main {
        display: none !important;
    }

    .hero-banner.hero-style-9 .health-slider-mobile {
        display: block;
        width: 100%;
        margin: 0;
        overflow: hidden;
        touch-action: pan-y !important;
        overscroll-behavior-x: contain;
    }

    .hero-banner.hero-style-9 .health-slider-mobile .swiper-wrapper,
    .hero-banner.hero-style-9 .health-slider-mobile .swiper-slide {
        touch-action: pan-y !important;
    }

    .hero-banner.hero-style-9 .health-mobile-slide {
        display: flex;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .hero-banner.hero-style-9 .health-slider-mobile .inner {
        width: 100%;
        max-width: 720px;
        margin-right: auto;
        margin-left: auto;
        text-align: center;
    }

    .hero-banner.hero-style-9 .health-slider-mobile .inner .title {
        color: var(--color-heading) !important;
        font-size: clamp(38px, 6vw, 50px);
        line-height: 1.15;
        overflow-wrap: normal;
        word-break: normal;
    }

    .hero-banner.hero-style-9 .health-slider-mobile .inner .para,
    .hero-banner.hero-style-9 .health-slider-mobile .inner .para p,
    .hero-banner.hero-style-9 .health-slider-mobile .inner .para span {
        color: var(--color-heading) !important;
    }

    .hero-banner.hero-style-9 .health-slider-mobile .slide-image {
        display: block;
        width: 100%;
        height: auto;
        margin: 0 auto;
        object-fit: contain;
    }

    .hero-banner.hero-style-9 .health-slider-mobile picture {
        display: block;
        width: 100%;
    }

    .hero-banner.hero-style-9 .hero-slider-bg-controls {
        display: flex;
        gap: 10px;
        top: auto;
        bottom: 28px;
        left: 50%;
        transform: translateX(-50%);
    }

    .hero-banner.hero-style-9 .hero-slider-bg-controls .slide-prev,
    .hero-banner.hero-style-9 .hero-slider-bg-controls .slide-next {
        position: static;
        width: 52px !important;
        height: 52px;
        margin: 0;
        line-height: 52px;
    }

    .hero-banner.hero-style-9 .hero-slider-bg-controls .swiper-slide-controls i {
        line-height: 50px;
    }

    .features-area-5 {
        padding-top: clamp(36px, 6vw, 60px);
    }
}

@media only screen and (max-width: 767px) {
    .hero-banner.hero-style-9 .slider .container {
        width: 100%;
        padding-top: 32px;
        padding-right: 15px;
        padding-bottom: 92px;
        padding-left: 15px;
    }

    .hero-banner.hero-style-9 .health-slider-mobile .inner {
        padding: 15px 15px 0 !important;
    }

    .hero-banner.hero-style-9 .health-slider-mobile .inner .pre-title {
        font-size: 13px;
        letter-spacing: 2px;
    }

    .hero-banner.hero-style-9 .health-slider-mobile .inner .title {
        padding-top: 10px;
        font-size: clamp(32px, 9vw, 38px);
        line-height: 1.18;
    }

    .hero-banner.hero-style-9 .health-slider-mobile .inner p {
        font-size: 16px;
        line-height: 1.65;
    }

    .hero-banner.hero-style-9 .health-slider-mobile .slider-custom2 br {
        display: none;
    }

    .hero-banner.hero-style-9 .health-slider-mobile .slider-custom2 a {
        display: table;
        margin: 20px auto 0;
    }

    .hero-banner.hero-style-9 > .shape-group,
    .hero-banner.hero-style-9 .slider .container > .shape-group {
        display: none;
    }
}

@media only screen and (min-width: 992px) {
    .mainmenu-nav .mainmenu > li.bc-nav-sustainability > .bc-nav-sustainability__submenu {
        border: 1px solid rgba(16, 40, 90, 0.08);
        border-radius: 8px;
        box-shadow: 0 24px 54px rgba(16, 40, 90, 0.16);
        padding: 12px !important;
    }

    .mainmenu-nav .mainmenu > li.bc-nav-sustainability > .bc-nav-sustainability__submenu li + li {
        margin-top: 4px;
    }

    .mainmenu-nav .mainmenu > li.bc-nav-sustainability > .bc-nav-sustainability__submenu li a {
        border-radius: 6px;
        font-size: 15px;
        line-height: 1.28;
        padding: 10px 14px;
    }

    .mainmenu-nav .mainmenu > li.bc-nav-sustainability > .bc-nav-sustainability__submenu li a:hover,
    .mainmenu-nav .mainmenu > li.bc-nav-sustainability > .bc-nav-sustainability__submenu li a.active {
        background: #eef8f3;
        color: var(--color-primary) !important;
    }
}
