/* ==========================================================
   HERO SLIDER
========================================================== */

.hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero-slider .carousel-item {
    height: 100vh;
    min-height: 720px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.hero-mobile-image {
    display: none;
}

/* ==========================================================
   OVERLAY
========================================================== */

.carousel-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 40, 80, 0.55);
    z-index: 1;
}

/* ==========================================================
   HERO TOP CONTENT
========================================================== */

.hero-top {
    position: absolute;
    top: 110px; /* navbar safe */
    left: 0;
    width: 100%;
    z-index: 2;
}

/* Keep the carousel controls above the hero content layer so they remain clickable. */
.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
    z-index: 4;
    pointer-events: auto;
}

.hero-content {
    max-width: 1400px;
    margin: auto;
    padding: 0 24px;
    color: #ffffff;
}

/* Headline */
.hero-title {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 12px;
    max-width: 100%;
    position: relative;
    display: inline-block;
    padding-bottom: 16px;
}


/* Gradient underline */
.hero-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;

    width: 100%;            /* 🔥 full text width */
    height: 5px;

    background: linear-gradient(
        90deg,
        rgba(24,154,240,0) 0%,
        rgba(24,154,240,0.4) 20%,
        rgba(24,154,240,1) 50%,   /* 🔥 high density center */
        rgba(24,154,240,0.4) 80%,
        rgba(24,154,240,0) 100%
    );

    border-radius: 4px;
    transform: scaleX(0);
    transform-origin: center;
    animation: heroUnderlineReveal 1.3s ease-out forwards;
}

/* Reveal animation */
@keyframes heroUnderlineReveal {
    from {
        transform: scaleX(0);
        opacity: 0;
    }
    to {
        transform: scaleX(1);
        opacity: 1;
    }
}

/* Responsive tuning */
@media (max-width: 768px) {
    .hero-title {
        padding-bottom: 12px;
    }

    .hero-title::after {
        height: 4px;
    }
}



/* Subheadline */
.hero-subtitle {
    font-size: 17px;
    line-height: 1.6;
    max-width: 100%;
    color: rgba(255, 255, 255, 0.92);
}

/* ==========================================================
   TRUST STRIP (BOTTOM)
========================================================== */

.hero-trust-strip {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    /* Opaque background keeps the strip visually independent of the banner. */
    background: #123f78;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.22);
    z-index: 3;
}

.hero-trust-inner {
    max-width: 1400px;
    margin: auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.trust-item i {
    color: #ffd24d;
    font-size: 14px;
}

.trust-separator {
    opacity: 0.5;
}

/* CTA Button */
.hero-trust-cta {
    background: #189af0;
    color: #ffffff;
    border-radius: 20px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hero-trust-cta:hover {
    background: #0d6efd;
    color: #ffffff;
}

.hero-mobile-cta {
    display: none; /* hide by default */
}
/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 992px) {
    .hero-title {
        font-size: 26px;
    }

    .hero-subtitle {
        font-size: 16px;
    }
}

/* ==========================================================
   MOBILE HERO FIXES ONLY
========================================================== */
@media (max-width: 768px) {

    .hero-slider {
        margin-top: 72px;
    }

    /* Keep hero navigation available on touch screens as well. */
    .hero-slider .carousel-control-prev,
    .hero-slider .carousel-control-next {
        display: flex !important;
        width: 16%;
        z-index: 4;
    }

    /* Hide indicators / progress dots */
    .hero-slider .carousel-indicators {
        display: none !important;
    }

    /* Show trust strip below the banner on mobile. */
    .hero-trust-strip {
        position: relative;
        right: auto;
        bottom: auto;
        left: auto;
        display: block !important;
        background: #123f78;
    }

    .hero-trust-inner {
        gap: 5px 8px;
        padding: 7px 8px;
        font-size: 10px;
        line-height: 1.3;
    }

    .hero-trust-strip .trust-item i {
        font-size: 11px !important;
        animation: none !important;
        transform: none !important;
    }

    .hero-trust-strip .trust-item {
        gap: 4px;
    }

    .hero-trust-strip .trust-separator {
        display: none;
    }

    .hero-trust-strip .trust-item {
        flex: 1 1 calc(50% - 16px);
        justify-content: flex-start;
        min-width: 110px;
        white-space: normal;
        text-align: left;
    }

    .hero-trust-strip .trust-item:nth-child(3),
    .hero-trust-strip .trust-item:nth-child(7) {
        justify-content: flex-start;
        text-align: left;
    }

    /* Content-based height on mobile */
    .hero-slider .carousel-item {
        height: auto !important;
        min-height: 0 !important;
        padding: 0;
        background-image: none !important;
        background-color: #0b2a4a;
    }

    .hero-mobile-image {
        display: block;
        width: 100%;
        height: auto;
    }

    .hero-slider .carousel-item::after {
        position: absolute;
        inset: 0;
        z-index: 1;
        background: linear-gradient(90deg, rgba(7, 35, 67, .78), rgba(7, 35, 67, .18) 72%, rgba(7, 35, 67, .08));
        content: "";
        pointer-events: none;
    }

    /* Keep the headline layered over the complete mobile image. */
    .hero-top {
        position: absolute !important;
        top: 50% !important;
        right: 0;
        bottom: auto;
        left: 0;
        transform: translateY(-50%);
        padding: 0 8%;
    }

    /* Headline & subheadline sizing */
    .hero-title {
        font-size: 24px;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 15px;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    .hero-slider .carousel-item {
        min-height: 0 !important;
    }

    .hero-mobile-image {
        width: 100%;
        height: auto;
    }

    .hero-content {
        padding: 0 18px;
    }

    .hero-title {
        font-size: 22px;
    }

    .hero-subtitle {
        font-size: 14px;
    }
}


/* ==========================================================
   HERO TRUST STRIP ICONS – SIZE + ANIMATION
========================================================== */

.hero-trust-strip .trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    font-weight: 500;
    color: #ffffff;
}

/* ICON STYLE */
.hero-trust-strip .trust-item i {
    color: #189af0;               /* Logo blue */
    font-size: 35px;              /* ⬆ slightly bigger */
    line-height: 1;
    animation: trustPulse 1.5s infinite ease-in-out;
}

/* SOFT PULSE ANIMATION */
@keyframes trustPulse {
    0% {
        transform: scale(1);
        opacity: 0.85;
    }
    50% {
        transform: scale(1.15);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0.85;
    }
}

/* HOVER ENHANCEMENT */
.hero-trust-strip .trust-item:hover i {
    transform: scale(1.25);
    color: #4db3ff;
    animation-play-state: paused;
    transition: transform 0.3s ease, color 0.3s ease;
}

/* Separator */
.hero-trust-strip .trust-separator {
    opacity: 0.4;
    font-size: 14px;
}

/* CTA stays clean */
.hero-trust-cta {
    background: #189af0;
    color: #ffffff;
    border-radius: 20px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hero-trust-cta:hover {
    background: #0d6efd;
    color: #ffffff;
}
