/* =============================================
   LoansBazaar UI Alignment Fixes
   fixes.css - loaded after app.min.css
   ============================================= */

/* Header: Fix ul.header-action as proper flex list */
ul.header-action {
    display: flex !important;
    align-items: center !important;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}
ul.header-action > li {
    list-style: none;
}

/* Sticky header alignment & Gap Fix */
.edu-header {
    min-height: unset !important;
}
.edu-header .header-mainmenu {
    display: flex;
    align-items: center;
}

/* WhatsApp floating button - fixed position */
a.scrollup-1 {
    position: fixed !important;
    z-index: 999;
}
@media only screen and (max-width: 600px) {
    a.scrollup-1 {
        right: auto !important;
        left: 15px !important;
        bottom: 20px !important;
        top: auto !important;
    }
}
@media only screen and (min-width: 601px) {
    a.scrollup-1 {
        right: 35px !important;
        bottom: 100px !important;
        left: auto !important;
        top: auto !important;
    }
}

/* =============================================
   Footer - Copyright bar flex layout
   ============================================= */
.bg_blue_copy {
    background: #2066a9;
}
.bg_blue_copy .container {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}
.bg_blue_copy .inner.text-center.zfooter-left {
    display: flex !important;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 0 !important;
}
.bg_blue_copy .inner.text-center.zfooter-left ul.footer-link {
    display: flex !important;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 4px;
}
.bg_blue_copy .inner.text-center.zfooter-left ul.footer-link li {
    float: none !important;
}
.bg_blue_copy .zfooter-right p {
    color: rgba(255,255,255,0.75);
    font-size: 12px;
    margin: 0 !important;
}
@media only screen and (max-width: 767px) {
    .bg_blue_copy .container {
        flex-direction: column !important;
        text-align: center !important;
    }
    .bg_blue_copy .inner.text-center.zfooter-left {
        justify-content: center;
    }
    .bg_blue_copy .inner.zfooter-right {
        margin-top: 8px;
        float: none !important;
        padding-right: 0 !important;
    }
}

/* Footer columns: proper heading margin */
.col-lg-6.ftr-title > h5.widget-title.ftr-head {
    margin-left: 0;
    padding-bottom: 8px;
    margin-bottom: 16px !important;
}
@media only screen and (max-width: 767px) {
    .col-lg-6.ftr-title {
        margin-bottom: 20px;
    }
}

/* Prevent horizontal scroll */
body {
    overflow-x: hidden !important;
}

/* Section heading */
h2.title {
    display: inline-block;
}
h5.widget-title.ftr-head {
    display: inline-block;
}

/* =============================================
   Hero Section - Banner Size Fix
   =============================================
   Layout: col-lg-4 (text) | col-lg-8 (image)
   Banner image: 1080 x 565 px (natural ratio)
   ============================================= */

.hero_section.hero_car_insurance {
    padding: 55px 0 60px !important;
    min-height: 480px;
    display: flex !important;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.hero_section.hero_car_insurance .container {
    position: relative;
    z-index: 2;
}
.hero_section.hero_car_insurance .row {
    align-items: center !important;
    flex-wrap: wrap;
    margin: 0 -12px;
}

/* ---- Left: text column ---- */
.hero_section.hero_car_insurance .col-lg-4 {
    padding: 0 12px;
}
.hero_section h1.hero_title {
    font-size: 34px !important;
    line-height: 1.35 !important;
    font-weight: 700;
    margin-bottom: 16px;
    color: #fff !important;
}
.hero_section p {
    font-size: 16px !important;
    line-height: 1.6 !important;
    color: rgba(255,255,255,0.9) !important;
    margin-bottom: 20px !important;
}
.hero_section .rating_block {
    margin-top: 16px;
}
.hero_section .greview img {
    max-width: 200px;
    height: auto;
}

/* ---- Right: image column ---- */
.hero_section.hero_car_insurance .col-lg-8 {
    padding: 0;
    overflow: hidden;
}
/* The image fills the full col-lg-8 width, respecting its 1080:565 ratio */
.banner-right-image {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    display: block;
    object-fit: fill;
}

/* Decorative shape */
.decoration_item.shape_nate_1 {
    position: absolute;
    left: 0;
    top: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.25;
}

/* ---- Large desktop (1400px+) ---- */
@media only screen and (min-width: 1400px) {
    .hero_section h1.hero_title {
        font-size: 38px !important;
    }
}

/* ---- Tablet landscape (992px - 1199px) ---- */
@media only screen and (max-width: 1199px) {
    .hero_section.hero_car_insurance {
        padding: 55px 0 50px !important;
    }
    .hero_section h1.hero_title {
        font-size: 28px !important;
    }
    .hero_section p {
        font-size: 15px !important;
    }
}

/* ---- Tablet portrait / stacked (max 991px) ---- */
@media only screen and (max-width: 991px) {
    .hero_section.hero_car_insurance {
        padding: 65px 0 35px !important;
        min-height: unset;
    }
    /* On tablet and below, both cols go full-width */
    .hero_section.hero_car_insurance .col-lg-4,
    .hero_section.hero_car_insurance .col-lg-8 {
        width: 100%;
        text-align: center;
    }
    .hero_section.hero_car_insurance .col-lg-8 {
        padding: 20px 0 0;
    }
    .banner-right-image {
        margin: 0 auto;
        max-width: 90% !important;
    }
    .hero_section h1.hero_title {
        font-size: 26px !important;
    }
}

/* ---- Mobile (max 767px) ---- */
@media only screen and (max-width: 767px) {
    .hero_section.hero_car_insurance {
        padding: 60px 0 25px !important;
        text-align: center;
    }
    .hero_section h1.hero_title {
        font-size: 22px !important;
        line-height: 1.3 !important;
        margin-bottom: 12px;
    }
    .hero_section p {
        font-size: 14px !important;
    }
    .banner-right-image {
        max-width: 100% !important;
    }
    .hero_section .rating_block {
        display: flex;
        justify-content: center;
    }
    .decoration_item.shape_nate_1 {
        display: none;
    }
}
