/* Homepage only: sticky header (moved from script.js runtime injection) */
.main-header.sticky-nav,
.mobile-header.sticky-nav {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    background: #fff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

.main-header,
.mobile-header {
    transition: all 0.3s ease;
}

/* Reserve hero height + layout before deferred carousel.css loads */
.main-slider .slider {
    min-height: 100vh;
    height: 100vh;
    position: relative;
}

.slider .list {
    position: relative;
    height: 100%;
}

.slider .list .item {
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: 0;
}

.slider .list .item img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.slider .list .item picture {
    position: absolute;
    inset: 0;
    display: block;
}

.slider .list .item picture img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.slider .list .item.active {
    opacity: 1;
    z-index: 10;
}

.slider .list .item::after {
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    bottom: 0;
    background-image: linear-gradient(to left, rgba(255, 255, 255, 0) 42.21%, #fff 100%);
}

.slider .list .item .content {
    position: absolute;
    left: 10%;
    top: 20%;
    width: 500px;
    max-width: 80%;
    z-index: 1;
}

.slider .list .item .content h1,
.slider .list .item .content h2 {
    font-size: 32px;
    margin: 0;
    color: #354789;
}

.slider .list .item .content p:first-child {
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #f58634;
}

.thumbnail {
    position: absolute;
    bottom: 15px;
    z-index: 11;
    display: flex;
    gap: 10px;
    width: 100%;
    height: 250px;
    padding: 0 50px;
    box-sizing: border-box;
    overflow: auto;
    justify-content: flex-start;
    cursor: pointer;
}

.thumbnail .item {
    width: 150px;
    height: 220px;
    flex-shrink: 0;
}

@media (min-width: 769px) {
    .thumbnail {
        bottom: 50px;
        justify-content: flex-end;
    }
}

/* Mobile header + hide desktop nav before deferred responsive.css */
.mobile-header {
    padding: 13px 15px;
    display: none;
    z-index: 99;
    background-color: #fff;
    width: 100%;
}

.mobile-header .logo img {
    max-height: 50px;
}

img {
    display: inline-block;
    max-width: 100%;
    height: auto;
}

.preloader {
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background-color: #fafafa;
    z-index: 9999;
    background-image: url(../images/icons/page-loader.gif);
    background-size: 200px;
    background-repeat: no-repeat;
    background-position: center;
    transition: opacity 0.15s ease-out;
}

@media only screen and (max-width: 1023px) {
    .main-header .main-box,
    .sticky-header {
        display: none !important;
    }

    .mobile-header,
    .nav-outer .mobile-nav-toggler {
        display: block;
    }
}

/* Mobile: skip hero text blur animation before deferred carousel.css */
@media (max-width: 768px) {
    .slider .list .item.active h1,
    .slider .list .item.active h2,
    .slider .list .item.active p:first-child,
    .slider .list .item.active p:nth-child(3),
    .slider .list .item.active p:nth-child(4) {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

button.scroll-to-top {
    border: none;
    padding: 0;
    font: inherit;
}
