/* =====================================================
   SLIDER POSITION
===================================================== */

.home-banner-section {
    position: relative;
}


/* =====================================================
   SLIDER BOTTOM NAV
===================================================== */

.home-banner-section > .home-banner-custom-nav {
    position: absolute;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);

    width: calc(100% - 180px);
    max-width: 1560px;

    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 24px;

}


/* =====================================================
   NAV ITEM
===================================================== */

.home-banner-nav-item {
    position: relative;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 14px 0 0;

    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;

    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;

    appearance: none;
    -webkit-appearance: none;

    text-align: left;
}


/* =====================================================
   BAR
===================================================== */

.banner-line {
    position: absolute;
    top: 0;
    left: 0;

    display: block;

    width: 100%;
    height: 1px;

    overflow: hidden;

    background: rgba(255, 255, 255, 0.25);
}


/* =====================================================
   PROGRESS
===================================================== */

.banner-line-fill {
    position: absolute;
    top: 0;
    left: 0;

    display: block;

    width: 0;
    height: 2px;

    background: #ffffff;
}

.home-banner-nav-item.active .banner-line-fill.running {
    animation: fiveStarBannerProgress 10s linear forwards;
}

@keyframes fiveStarBannerProgress {

    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}


/* =====================================================
   LABEL
===================================================== */

.banner-label {
    display: block;

    width: 100%;
    min-width: 0;

    font-family: var(--e-global-typography-text-font-family), Sans-serif;
    font-size: var(--e-global-typography-text-font-size);
    font-weight: var(--e-global-typography-text-font-weight);
    line-height: var(--e-global-typography-text-line-height);

    color: #ffffff !important;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 1025px) {

    .banner-label {
        white-space: normal;
        overflow: visible;
        overflow-wrap: anywhere;
        word-break: normal;
        text-overflow: clip;
    }
}


/* =====================================================
   OWL
===================================================== */

.home_banner_slider .owl-stage-outer,
.home_banner_slider .owl-stage,
.home_banner_slider .owl-item {
    height: 100%;
}


/* =====================================================
   LAPTOP
===================================================== */

@media (max-width: 1366px) {

    .home-banner-section > .home-banner-custom-nav {
        width: calc(100% - 100px);
        bottom: 30px;
        column-gap: 18px;
    }

}


/* =====================================================
   RESPONSIVE NAVIGATION
===================================================== */

@media (max-width: 1024px) {

    .home-banner-section {
        overflow: hidden !important;
    }

    .home_banner_slider .owl-item > div {
        padding-bottom: 65px;
        box-sizing: border-box;
    }

    .home-banner-section > .home-banner-custom-nav {
        position: absolute;
        left: 50% !important;
        right: auto !important;
        bottom: 18px;

        width: min(220px, calc(100% - 30px)) !important;
        max-width: 220px !important;

        transform: translateX(-50%) !important;

        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 20px;

        margin: 0;
        padding: 0;
        overflow: visible;

    }

    .home-banner-nav-item {
        position: relative;

        width: 100% !important;
        min-width: 0 !important;
        height: 12px;

        margin: 0 !important;
        padding: 0 !important;
        overflow: visible;
    }

    .banner-line {
        position: absolute;
        top: 50%;
        left: 0;

        width: 100% !important;
        height: 2px;

        transform: translateY(-50%);

        background: rgba(255, 255, 255, .35);
        overflow: hidden;
    }

    .banner-line-fill {
        height: 2px;
    }

    .banner-label {
        display: none !important;
    }
}
@media(max-width:767px){
.home-banner-section > .home-banner-custom-nav {
    bottom: 45px;

}
}


/* =====================================================
   NATIONAL SERVICE CARDS
   Scoped here so the shared property-cards styles stay unchanged.
===================================================== */

.national-cards {
    --national-card-divider: rgba(24, 42, 31, 0.14);
    --national-card-divider-highlight: rgba(255, 255, 255, 0.55);

    overflow: hidden;
    border-color: var(--national-card-divider);
}

.national-cards > .elementor-widget {
    box-sizing: border-box;
    border-right: 1px solid var(--national-card-divider);
    border-bottom: 1px solid var(--national-card-divider);
    box-shadow: inset 0 -1px 0 var(--national-card-divider-highlight);
}

/* Three-column desktop layout: clear the outside edges and final row. */
.national-cards > .elementor-widget:nth-child(3n) {
    border-right: 0;
}

.national-cards > .elementor-widget:nth-last-child(-n + 3) {
    border-bottom: 0;
    box-shadow: none;
}

@media (max-width: 767px) {

    /* A single clean separator between stacked cards on mobile. */
    .national-cards > .elementor-widget {
        width: 100%;
        border-right: 0;
        border-bottom: 1px solid var(--national-card-divider);
        box-shadow: inset 0 -1px 0 var(--national-card-divider-highlight);
    }

    .national-cards > .elementor-widget:nth-last-child(-n + 3) {
        border-bottom: 1px solid var(--national-card-divider);
        box-shadow: inset 0 -1px 0 var(--national-card-divider-highlight);
    }

    .national-cards > .elementor-widget:last-child {
        border-bottom: 0;
        box-shadow: none;
    }
}
