/* ================= Finance What Matters Template Styles ================= */

/* Fonts for this template */
:root {
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Montserrat', sans-serif;
}

.finance-what-matters {
    font-family: var(--font-body);
}

.fwm-title,
.fwm-why-title,
.cta-apply,
.fwm-feature h3,
.h5,
.fwm-site {
    font-family: var(--font-heading);
}

/* ================= HERO ================= */
.fwm-hero {
    background: url('../images/finance.jpg') no-repeat right center;
    background-size: cover;
    min-height: 72vh;
    display: flex;
    align-items: center;
    padding: 40px 0;
    position: relative;
}

.img-fluid-new {
    max-width: 140%;
    height: auto;
}

.fwm-hero-text {
    padding-left: 80px;
    max-width: 560px;
}

.fwm-title {
    font-size: 64px;
    line-height: 1.05;
    color: #1f6bff;
    font-weight: 700;
    margin-bottom: 16px;
}

.fwm-title strong {
    color: #0b2239;
    font-weight: 900;
}

.fwm-title .mobile-br {
    display: none;
}

.fwm-sub {
    font-size: 25px;
    margin-top: 20px;
}

.fwm-site {
    font-size: 23px;
}

.fwm-site-overlay {
    position: absolute;
    left: 182px;
    bottom: 24px;
    padding: 8px 12px;
    border-radius: 6px;
    z-index: 3;
}

/* ================= WHY ================= */
.fwm-why {
    padding: 21px 0;
}

.fwm-why-title {
    font-size: 36px;
    margin-bottom: 50px !important;
    margin-left: 192px;
}

.fwm-feature {
    margin-bottom: 40px;
}

.fwm-feature .icon {
    width: 90px;
    height: 90px;
    background: #eef6fb;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    margin-bottom: 15px;
}

.fwm-feature h3 {
    font-size: 18px;
    font-weight: 700;
    position: relative;
    padding-bottom: 12px;
}

.fwm-feature h3:after {
    content: '';
    width: 30px;
    height: 3px;
    background: #e11d2a;
    position: absolute;
    left: 0;
    bottom: 0;
}

.fwm-feature p {
    font-size: 14px;
    margin-top: 10px;
}

/* ================= CTA ================= */

.cta-inner {
    background: linear-gradient(180deg,
            #eef6fb 0%,
            #f4f9fc 35%,
            #ffffff 100%);
    border-radius: 12px;
    padding: 34px 50px 0px !important;
}

.cta-apply {
    color: #e11d2a;
    font-size: 42px;
    font-weight: 800;
}

.cta-sub {
    font-size: 28px;
}

.cta-phone {
    font-size: 24px;
}

.cta-qr {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 156px;
    height: 156px;
    border: 7px solid #b1cdf3;
    border-radius: 5px;
    background: transparent;
    box-sizing: border-box;
    overflow: hidden;
}

.cta-qr img {
    width: 140px;
    height: 140px;
    display: block;
    border: 4px solid #ffffff;

}


.cta-link a {
    font-size: 22px;
    text-decoration: underline;
    color: #0b66c2;
}

.fine-print {
    margin-top: 20px;
    font-size: 12px;
    color: #6b7f8f;
}

.fwm-hr {
    margin-top: 1rem;
    margin-bottom: 1rem;
    border: 0;
    border-top: 1px solid rgba(0, 34, 72, 0.1);
    width: 569px;
    margin-left: 0px;
    margin-right: 0;
}

/* ===== Responsive adjustments for hero/banner ===== */
@media (max-width: 991px) {
    .fwm-hero {
        background-position: center 30%;
        min-height: 56vh;
        align-items: flex-end;
        padding: 36px 16px;
    }

    .fwm-hero::before {
        content: '';
        position: absolute;
        inset: 0;
        pointer-events: none;
        z-index: 1;
        background: radial-gradient(ellipse at center,
                rgba(238, 247, 255, 0.6) 0%,
                rgba(217, 236, 251, 0.35) 70%,
                rgba(217, 236, 251, 0) 100%);
    }

    .fwm-hero-text {
        padding-left: 18px;
        max-width: 100%;
        position: relative;
        z-index: 2;
    }

    .fwm-site-overlay {
        left: 20px;
        bottom: 18px
    }

    .fwm-title {
        font-size: 44px;
    }

    .fwm-sub {
        font-size: 18px
    }
}

@media (max-width: 575px) {
    .fwm-hero {
        background-position: center 35%;
        min-height: 48vh;
        padding: 30px 12px;
    }

    .fwm-hero-text {
        /* Remove negative offset and keep consistent left padding */
        margin-left: 0;
        padding-left: 8px;
        max-width: 100%;
    }

    .fwm-title {
        font-size: 32px;
        line-height: 1.03
    }

    .fwm-title .mobile-br {
        display: block;
        width: 100%;
        height: 0;
    }

    .fwm-sub {
        font-size: 21px
    }

    .fwm-why-title {
        margin-left: 0;
        margin-bottom: 25px !important;
        font-size: 28px;
    }

    /* On small screens we want headings to keep their manual breaks, but paragraph
           internal <br> tags should be removed so the paragraph begins as a single block
           beneath the heading. */
    .fwm-why h3.h5.remove-line br {
        display: block;
        line-height: 1;
    }

    .fwm-why p br {
        display: none !important;
    }

    /* Make `.fwm-hr` full-width on small screens */
    .fwm-hr {
        width: 100% !important;
        max-width: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .grid-container {
        max-width: 100%;
        padding: 0 10px;
    }

    .cta-sub {
        font-size: 22px !important;
    }

    .cta-phone {
        font-size: 17px !important;
    }

    .cta-link a {
        font-size: 19px;
    }

    .fwm-site-overlay {
        bottom: 0px;
        margin-left: 0;
        font-size: 21px;

    }

    /* Mobile-only CTA & QR adjustments */
    .cta-inner {
        padding-left: 18px !important;
        padding-right: 18px !important;
        text-align: center;
    }

    .cta-qr {
        margin-top: 12px;
        margin-bottom: 8px;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        background: #fff;
        box-shadow: 0 6px 18px rgba(3, 17, 34, 0.06);
        padding: 10px;
        border-radius: 10px;
    }

    .cta-qr img {
        width: 44vw;
        max-width: 160px;
        height: auto;
        display: block;
    }

    .cta-link a {
        display: block;
        word-break: break-word;
        margin-top: 8px;
    }
}

@media (max-width: 360px) {
    .cta-sub {
        font-size: 20px !important;
    }

    .cta-phone {
        font-size: 16px !important;
    }

    .fwm-why-title {
        font-size: 25px;
    }

    .cta-link a {
        font-size: 19px;
    }

    .fwm-site-overlay {
        bottom: 0px !important;

    }
}

/* Very small screens */
@media (max-width: 420px) {
    .fwm-hero {
        min-height: 42vh;
        padding: 24px 10px
    }

    .fwm-title {
        font-size: 28px;
        margin-bottom: 8px;
        line-height: 1.02;
    }

    .fwm-sub {
        font-size: 18px;
        margin-top: 6px;
    }

    .fwm-site {
        font-size: 18px;
        margin-left: 0;
    }

    .cta-apply {
        font-size: 28px
    }

    .cta-qr img {
        width: 40vw;
        max-width: 140px;
    }

    .cta-sub {
        font-size: 25px;
    }

    .cta-phone {
        font-size: 20px;
    }

    .cta-link a {
        font-size: 19px;
    }
}

/* @media (max-width: 400px) {
        .fwm-hero-text {
        margin-left: -31px !important;
    }
    .fwm-site {
        font-size: 18px;
        margin-left: -12px;
}
    
} */
/* Desktop only (>= 1024px) */
@media (min-width: 1024px) {
    .cta-inner {
        background: linear-gradient(180deg,
                #eef6fb 0%,
                #f4f9fc 35%,
                #ffffff 100%);
        border-radius: 12px;
        padding: 49px 77px 0 !important;
    }
}