/* ========================================
   Homepage Hero Banner (Modern Slider)
   ======================================== */

:root {
    --hcs-desktop-aspect: 16 / 5;
    --hcs-desktop-image-position: center center;
    --hcs-mobile-aspect: 16 / 9;
    --hcs-mobile-image-position: center top;
    --hcs-mobile-min-height: 0px;
    --hcs-mobile-max-height: none;
}

.hero-section {
    position: relative;
    background: transparent !important;
    line-height: 0;

    padding-top: 48px;
}

.hero-section::before {
    display: none !important;
}

.hero-banner-shell {
    position: relative;
    width: 100%;
    padding: 0;
    margin-bottom: 0;
}

.hero-section,
.hero-banner-shell,
.hcs-swiper,
.hcs-swiper .swiper-wrapper,
.hcs-swiper .swiper-slide,
.hcs-banner-card {
    margin-bottom: 0 !important;
}

.hcs-swiper {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: var(--hcs-desktop-aspect);
    height: auto;
    margin: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.hcs-swiper .swiper-wrapper,
.hcs-swiper .swiper-slide,
.hcs-banner-card {
    height: 100%;
}

.hcs-slide {
    width: 100%;
}

.hcs-banner-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    aspect-ratio: auto;
    min-height: 0;
    max-height: none;
    overflow: hidden;
    background: transparent;
    line-height: 0;
}

.hcs-banner-media {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 0;
    line-height: 0;
    background: transparent;
}

.hcs-banner-bg {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--hcs-desktop-image-position);
    background: transparent;
}

/* Gradient scrim so CTA overlay stays readable over any image */
.hcs-banner-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.38) 0%, transparent 40%);
    pointer-events: none;
    z-index: 2;
}

.hcs-banner-fallback {
    display: block;
    min-height: 100%;
}

.hcs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.01em;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: transform 0.24s ease, box-shadow 0.24s ease, background-color 0.24s ease, border-color 0.24s ease, color 0.24s ease;
}

.hcs-btn i {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.hcs-btn-primary {
    padding: 11px 22px;
    color: #ffffff;
    background: linear-gradient(145deg, #33b9ff 0%, #1088d1 100%);
    border-color: rgba(144, 224, 255, 0.42);
    box-shadow: 7px 7px 16px rgba(7, 16, 37, 0.35), -6px -6px 14px rgba(70, 106, 173, 0.18), inset 1px 1px 0 rgba(255, 255, 255, 0.22);
}

.hcs-btn-primary:hover {
    color: #ffffff;
    transform: translateY(-2px) scale(1.01);
    box-shadow: 10px 12px 20px rgba(6, 14, 34, 0.4), -7px -7px 16px rgba(93, 145, 219, 0.22), inset 1px 1px 0 rgba(255, 255, 255, 0.28);
}

.hcs-btn-primary i {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0.14) 100%);
    box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.35), inset -1px -1px 2px rgba(10, 73, 123, 0.38);
}

.hcs-btn-ghost {
    padding: 11px 20px;
    color: #edf7ff;
    border-color: rgba(188, 225, 255, 0.24);
    background: linear-gradient(145deg, rgba(33, 56, 95, 0.88) 0%, rgba(19, 36, 64, 0.9) 100%);
    backdrop-filter: blur(8px);
    box-shadow: 6px 6px 14px rgba(6, 12, 30, 0.34), -5px -5px 12px rgba(80, 112, 172, 0.16), inset 1px 1px 0 rgba(255, 255, 255, 0.16);
}

.hcs-btn-ghost:hover {
    color: #ffffff;
    transform: translateY(-2px) scale(1.01);
    background: linear-gradient(145deg, rgba(38, 66, 112, 0.92) 0%, rgba(22, 44, 76, 0.94) 100%);
    border-color: rgba(207, 235, 255, 0.4);
    box-shadow: 9px 10px 18px rgba(6, 12, 28, 0.38), -6px -6px 14px rgba(93, 139, 207, 0.2), inset 1px 1px 0 rgba(255, 255, 255, 0.2);
}

.hcs-btn-ghost i {
    background: linear-gradient(145deg, rgba(170, 209, 255, 0.22) 0%, rgba(82, 140, 216, 0.14) 100%);
    box-shadow: inset 1px 1px 2px rgba(228, 242, 255, 0.28), inset -1px -1px 2px rgba(16, 42, 80, 0.5);
}

.hcs-btn:focus-visible {
    outline: 2px solid rgba(124, 217, 255, 0.9);
    outline-offset: 2px;
}

.hcs-btn-prev,
.hcs-btn-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: none;
    z-index: 6;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.hcs-btn-prev { left: 16px; }
.hcs-btn-next { right: 16px; }

.hcs-btn-prev:hover,
.hcs-btn-next:hover {
    background: rgba(255, 255, 255, 0.28);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-50%) scale(1.06);
}

/* CTA overlay — sits on top of banner, inside hero-banner-shell */
.hcs-cta-overlay {
    position: absolute;
    bottom: 20px;
    left: 24px;
    z-index: 10;
}

.hcs-cta-overlay-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: rgba(255, 255, 255, 0.18);
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 999px;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: background 0.2s, border-color 0.2s, gap 0.2s;
}

.hcs-cta-overlay-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.75);
    color: #ffffff;
    gap: 12px;
}

.hcs-cta-overlay-btn i {
    font-size: 1.1rem;
    transition: transform 0.2s;
}

.hcs-cta-overlay-btn:hover i {
    transform: translateX(3px);
}

.hcs-toolbar {
    display: none;
}

/* Search form inside toolbar */
.hcs-toolbar-search {
    flex: 1;
    min-width: 0;
}

.hcs-sf {
    display: flex;
    align-items: center;
    background: #f4f6f8;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 999px;
    overflow: hidden;
    transition: background .18s, border-color .18s, box-shadow .18s;
}

.hcs-sf:focus-within {
    background: #fff;
    border-color: #008fd7;
    box-shadow: 0 0 0 3px rgba(0, 143, 215, 0.1);
}

.hcs-sf-ico {
    flex-shrink: 0;
    padding: 0 8px 0 14px;
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.35);
    pointer-events: none;
    line-height: 1;
}

.hcs-sf-input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    padding: 10px 8px 10px 0;
    font-size: 0.875rem;
    color: #1a1a2e;
    min-width: 0;
}

.hcs-sf-input::placeholder { color: rgba(0, 0, 0, 0.38); }

.hcs-sf-btn {
    flex-shrink: 0;
    border: none;
    background: #008fd7;
    color: #fff;
    width: 34px;
    height: 34px;
    margin: 3px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .18s, transform .15s;
}

.hcs-sf-btn i { font-size: 0.88rem; }
.hcs-sf-btn:hover { background: #0077b6; transform: scale(1.05); }

.hcs-cta-bar {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    flex-shrink: 0;
}

.hcs-cta-bar .hcs-btn {
    transition: all 0.3s ease;
}

[data-theme="light"] .hcs-swiper {
    box-shadow: none;
}

/* Light theme: toolbar is already white, just tune search input */
[data-theme="light"] .hcs-sf {
    background: #f4f6f8;
    border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .hcs-sf:focus-within {
    background: #fff;
    border-color: #008fd7;
    box-shadow: 0 0 0 3px rgba(0, 143, 215, 0.1);
}

[data-theme="light"] .hcs-sf-ico { color: rgba(0, 0, 0, 0.35); }

[data-theme="light"] .hcs-sf-input {
    color: #1a1a2e;
}

[data-theme="light"] .hcs-sf-input::placeholder { color: rgba(0, 0, 0, 0.38); }

[data-theme="light"] .hcs-btn-ghost {
    color: #15314f;
    background: linear-gradient(145deg, #f7fbff 0%, #e8f2ff 100%);
    border-color: rgba(42, 78, 119, 0.2);
    box-shadow: 7px 7px 16px rgba(163, 180, 201, 0.42), -6px -6px 14px rgba(255, 255, 255, 0.9), inset 1px 1px 0 rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .hcs-btn-ghost i {
    background: linear-gradient(145deg, rgba(214, 230, 248, 0.9) 0%, rgba(240, 247, 255, 0.95) 100%);
    box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.92), inset -1px -1px 2px rgba(120, 150, 184, 0.2);
}

[data-theme="light"] .hcs-btn-primary {
    box-shadow: 7px 7px 16px rgba(145, 167, 194, 0.38), -6px -6px 14px rgba(255, 255, 255, 0.78), inset 1px 1px 0 rgba(255, 255, 255, 0.28);
}

[data-theme="light"] .hcs-btn-prev,
[data-theme="light"] .hcs-btn-next {
    color: #ffffff;
    background: rgba(0, 0, 0, 0.18);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: none;
}

@media (max-width: 991px) {
    .hero-banner-shell {
        padding: 0;
    }

    .hcs-banner-card {
        min-height: 0;
        max-height: none;
    }

    .hcs-toolbar {
        display: none;
    }

    .hcs-toolbar-search { flex: 1; }
    .hcs-cta-bar { flex-wrap: nowrap; }

    .hcs-btn-prev,
    .hcs-btn-next {
        width: 40px;
        height: 40px;
    }

    .hcs-btn-prev { left: 12px; }
    .hcs-btn-next { right: 12px; }
}

@media (max-width: 767px) {
    .hero-banner-shell {
        padding: 0;
    }

    .hcs-swiper {
        border-radius: 0;
        width: 100%;
        aspect-ratio: var(--hcs-mobile-aspect);
        height: auto;
    }

    .hcs-swiper .swiper-wrapper,
    .hcs-swiper .swiper-slide {
        height: 100%;
    }

    .hcs-banner-card {
        aspect-ratio: auto;
        min-height: 0;
        max-height: none;
        height: 100%;
    }

    .hcs-banner-bg {
        object-fit: contain;
        object-position: var(--hcs-mobile-image-position);
    }

    .hcs-btn {
        width: auto;
        justify-content: center;
        font-size: 0.8rem;
        padding: 10px 14px;
    }

    .hcs-btn i {
        width: 22px;
        height: 22px;
        font-size: 0.95rem;
    }

    .hcs-btn-prev,
    .hcs-btn-next {
        width: 34px;
        height: 34px;
        top: 50%;
        bottom: auto;
        transform: translateY(-50%);
    }

    .hcs-btn-prev:hover,
    .hcs-btn-next:hover {
        transform: translateY(-50%) scale(1.04);
    }

    .hcs-btn-prev { left: 10px; }
    .hcs-btn-next { right: 10px; }

    .hcs-toolbar {
        display: none;
    }

    .hcs-cta-bar {
        flex-wrap: nowrap;
        gap: 8px;
    }

    .hcs-cta-overlay {
        bottom: 14px;
        left: 16px;
    }

    .hcs-cta-overlay-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    :root {
        --hcs-mobile-aspect: 16 / 9;
        --hcs-mobile-min-height: 0px;
        --hcs-mobile-max-height: none;
    }

    .hero-banner-shell {
        padding: 0;
    }

    .hcs-swiper {
        width: 100%;
        aspect-ratio: var(--hcs-mobile-aspect);
        height: auto;
    }

    .hcs-btn {
        width: 100%;
        font-size: 0.76rem;
        padding: 9px 12px;
        gap: 6px;
        justify-content: flex-start;
    }

    .hcs-btn-primary {
        padding: 9px 12px;
    }

    .hcs-btn-ghost {
        padding: 9px 12px;
    }

    .hcs-toolbar {
        display: none;
    }

    .hcs-cta-bar {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }

    .hcs-cta-overlay {
        bottom: 10px;
        left: 12px;
    }

    .hcs-cta-overlay-btn {
        padding: 7px 14px;
        font-size: 0.76rem;
    }

    .hcs-btn-prev,
    .hcs-btn-next {
        width: 30px;
        height: 30px;
        top: 50%;
        bottom: auto;
        transform: translateY(-50%);
    }
}
