/* Home hero slider (Swiper, fade) and the banner tabs under it */

.mx-hero { position: relative; overflow: hidden; background: #081a33; }
.mx-hero .swiper { width: 100%; }

.mx-hero-slide {
    position: relative;
    display: flex;
    align-items: center;
    height: calc(100vh - 112px); /* top bar (36px) + main header bar (76px) sit above the slider */
    min-height: 660px;
    max-height: 880px;
    padding: 80px 0 260px; /* room for the arrows and the tab card at the bottom */
    overflow: hidden;
}
.mx-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    transition: transform 8s ease-out;
}
.swiper-slide-active .mx-hero-bg { transform: scale(1); } /* slow zoom-out while a slide is shown */

/* Dark gradient for legible text, plus a soft dot texture on the left */
.mx-hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(circle at 15% 85%, rgba(30, 127, 228, 0.35) 0%, rgba(30, 127, 228, 0) 45%),
        linear-gradient(90deg, rgba(6, 20, 40, 0.96) 0%, rgba(8, 30, 60, 0.82) 42%, rgba(11, 46, 87, 0.35) 75%, rgba(11, 46, 87, 0.15) 100%);
}
.mx-hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px);
    background-size: 24px 24px;
    -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 55%);
    mask-image: linear-gradient(90deg, #000 0%, transparent 55%);
    pointer-events: none;
}
.mx-hero-slide .hp-container { position: relative; z-index: 2; }

.mx-hero-grid { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.mx-hero-content { max-width: 740px; }

.mx-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 18px 9px 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.mx-hero-badge i {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #1e7fe4;
    color: #fff;
    font-size: 13px;
    line-height: 28px;
    text-align: center;
}

.mx-hero-content .mx-hero-title {
    margin: 24px 0 20px;
    font-family: 'Raleway', sans-serif;
    font-size: 58px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.015em;
    color: #fff;
}
.mx-hero-content p {
    max-width: 600px;
    margin: 0;
    padding-left: 18px;
    border-left: 3px solid #1e7fe4;
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.82);
}

.mx-hero-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; margin-top: 36px; }
.mx-hero-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 50px;
    background: linear-gradient(135deg, #1e7fe4 0%, #1565c0 100%);
    box-shadow: 0 16px 34px rgba(30, 127, 228, 0.4);
    color: #fff;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}
.mx-hero-btn::before { /* light sweep on hover */
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
}
.mx-hero-btn:hover, .mx-hero-btn:focus { color: #fff; transform: translateY(-2px); box-shadow: 0 20px 40px rgba(30, 127, 228, 0.5); }
.mx-hero-btn:hover::before { left: 140%; }
.mx-hero-link { display: inline-flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.35); color: #fff; font-weight: 600; }
.mx-hero-link i { transition: transform 0.3s ease; }
.mx-hero-link:hover, .mx-hero-link:focus { color: #9ccbff; border-color: #9ccbff; }
.mx-hero-link:hover i { transform: translateX(5px); }

/* Glass fact card on the right */
.mx-hero-card {
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 30px 28px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05));
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
    color: #fff;
}
.mx-hero-card strong { font-family: 'Raleway', sans-serif; font-size: 44px; font-weight: 800; line-height: 1; }
.mx-hero-card span { font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, 0.85); }
.mx-hero-card em {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.7);
}
.mx-hero-card em i { margin-right: 6px; color: #9ccbff; }

/* Staggered entrance for the active slide */
.mx-hero-content > *, .mx-hero-card { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.mx-hero-card { transform: translateX(40px); }
.swiper-slide-active .mx-hero-content > *, .swiper-slide-active .mx-hero-card { opacity: 1; transform: none; }
.swiper-slide-active .mx-hero-content > *:nth-child(2) { transition-delay: 0.15s; }
.swiper-slide-active .mx-hero-content > *:nth-child(3) { transition-delay: 0.3s; }
.swiper-slide-active .mx-hero-content > *:nth-child(4) { transition-delay: 0.45s; }
.swiper-slide-active .mx-hero-card { transition-delay: 0.5s; }

/* Arrows on the left and right edges, centred on the slide content (which sits above the tab card) */
.mx-hero-controls { position: absolute; left: 0; right: 0; top: calc(50% - 90px); z-index: 5; transform: translateY(-50%); pointer-events: none; }
.mx-hero-controls-inner { display: flex; align-items: center; justify-content: space-between; padding: 0 20px; }
.mx-hero-arrow { pointer-events: auto; }
.mx-hero-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.mx-hero-arrow:hover, .mx-hero-arrow:focus-visible { border-color: #1e7fe4; background: #1e7fe4; outline: none; }

/* Banner tabs: a white card along the bottom of the slider, with the banner image behind it */
.mx-hero-tabs { position: absolute; left: 0; right: 0; bottom: 40px; z-index: 6; }
.mx-hero-tabs-box {
    display: grid;
    grid-auto-flow: column; /* one equal column per tab, however many there are */
    grid-auto-columns: 1fr;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(4, 16, 34, 0.28);
    overflow: hidden;
}
.mx-hero-tab {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 26px 20px 24px;
    border: 0;
    border-right: 1px solid #e9eef4;
    background: #fff;
    text-align: left;
    cursor: pointer;
    transition: background 0.3s ease;
}
.mx-hero-tab:last-child { border-right: 0; }
.mx-hero-tab:hover { background: #f4f8fd; }
.mx-hero-tab:focus-visible { outline: 2px solid #1e7fe4; outline-offset: -2px; }
.mx-hero-tab-bar { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: transparent; }
.mx-hero-tab-bar i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #1e7fe4, #0b2e57); }
.mx-hero-tab-icon {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: #e8f2fd;
    color: #1e7fe4;
    font-size: 19px;
    line-height: 46px;
    text-align: center;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.mx-hero-tab-text { min-width: 0; }
.mx-hero-tab-text strong { display: block; font-family: 'Raleway', sans-serif; font-size: 15px; font-weight: 700; line-height: 1.3; color: #16202c; }
.mx-hero-tab-text small { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.45; color: #66707c; }

.mx-hero-tab.is-active { background: #f4f8fd; }
.mx-hero-tab.is-active .mx-hero-tab-bar { background: #dce9f8; }
.mx-hero-tab.is-active .mx-hero-tab-icon { background: #1e7fe4; color: #fff; transform: scale(1.05); }

@media (max-width: 1339px) {
    .mx-hero-slide .hp-container { padding: 0 76px; } /* keep the text clear of the side arrows */
}
@media (max-width: 575px) {
    .mx-hero-slide .hp-container { padding: 0 24px; }
}
@media (max-width: 1399px) {
    .mx-hero-card { flex-basis: 250px; }
    .mx-hero-content .mx-hero-title { font-size: 52px; }
}
@media (max-width: 1199px) {
    .mx-hero-card { display: none; }
    .mx-hero-content .mx-hero-title { font-size: 48px; }
    .mx-hero-tab { padding: 22px 14px 20px; gap: 10px; }
    .mx-hero-tab-icon { flex-basis: 40px; width: 40px; height: 40px; line-height: 40px; font-size: 17px; }
    .mx-hero-tab-text small { display: none; }
}
@media (max-width: 991px) {
    .mx-hero-slide { height: auto; min-height: 620px; padding: 70px 0 260px; }
    .mx-hero-tabs { bottom: 30px; }
    .mx-hero-content .mx-hero-title { font-size: 40px; }
    .mx-hero-content p { font-size: 16px; }
    /* Tabs become a swipeable row */
    .mx-hero-tabs-box { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .mx-hero-tabs-box::-webkit-scrollbar { display: none; }
    .mx-hero-tab { flex: 0 0 auto; min-width: 210px; scroll-snap-align: start; }
    .mx-hero-tab-text small { display: block; }
}
@media (max-width: 575px) {
    .mx-hero-slide { min-height: 600px; padding: 56px 0 240px; }
    .mx-hero-tabs { bottom: 20px; }
    .mx-hero-content .mx-hero-title { font-size: 30px; }
    .mx-hero-badge { font-size: 12.5px; }
    .mx-hero-content p { font-size: 15px; padding-left: 14px; }
    .mx-hero-btn { padding: 14px 24px; }
    .mx-hero-controls { display: none; } /* no room beside the text on phones; swipe changes slides */
    .mx-hero-tab { min-width: 190px; padding: 20px 14px 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .mx-hero-bg, .mx-hero-content > *, .mx-hero-card { transition: none; transform: none; }
}
