/*
 * Loan product pages (personal, payday, business, EDI, vehicle, LAP, shopkeeper, city/location landings).
 * loan.css is linked inside <body> after this file, so rules are prefixed with `html body`
 * to win on specificity rather than on load order.
 */
:root {
    --lp-navy: #062b5d;
    --lp-blue: #18529c;
    --lp-blue-soft: #eff6ff;
    --lp-ink: #0f172a;
    --lp-text: #475569;
    --lp-line: #e2e8f0;
    --lp-bg: #f8fafc;
    --lp-card-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 28px rgba(15, 23, 42, .06);
}

/* ---------- Hero: grow with its content instead of clipping it ---------- */
html body .prop-sec { height: auto !important; min-height: 380px; overflow: visible !important; }
html body .prop-left { padding: 56px 80px 56px 120px; }
html body .prop-text { max-width: 540px; }
html body .prop-text h1 { font-size: clamp(28px, 2.5vw, 38px) !important; line-height: 1.2; font-weight: 700; margin: 0 0 14px; }
html body .prop-text p { font-size: 16px; line-height: 1.65; color: rgba(255, 255, 255, .92); margin-bottom: 20px; }
html body .prop-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 0 28px !important; border-radius: 10px !important;
    font-size: 16px; font-weight: 700 !important; transition: background-color .2s ease !important;
}
html body .prop-btn:hover { transform: none; background: #e0ecff !important; }
html body .prop-btn.d-inline-block { display: inline-flex !important; padding: 0 28px !important; }
html body .prop-btn:focus-visible { outline: 3px solid #fcd34d; outline-offset: 3px; }
html body .prop-right { align-self: stretch; }
html body .prop-right img { top: 0 !important; max-height: none; height: 100%; width: 100%; object-fit: cover; }

/*
 * Desktop diagonal. The old skewed strip (.prop-left::after) only lined up at a fixed 310px height and
 * left a dark sliver of photo when the hero grew. The photo now carries the diagonal itself with
 * clip-path, which stays clean at any height, and it no longer sets the hero height by its aspect ratio.
 */
@media (min-width: 769px) {
    html body .prop-sec { min-height: 420px; }
    html body .prop-left { z-index: 1; }
    html body .prop-left::after { display: none !important; }
    html body .prop-right {
        position: relative; z-index: 2; overflow: hidden; height: auto !important; padding: 0 !important;
        margin-left: -110px; width: calc(50% + 110px) !important;
        -webkit-clip-path: polygon(110px 0, 100% 0, 100% 100%, 0 100%);
        clip-path: polygon(110px 0, 100% 0, 100% 100%, 0 100%);
    }
    html body .prop-right img {
        position: absolute !important; inset: 0; width: 100% !important; height: 100% !important;
        max-width: none !important; max-height: none !important; object-fit: cover !important;
        object-position: center 30%; filter: none !important;
    }
}

/* ---------- Section headings: one accent colour ---------- */
html body .gradient-text { color: var(--lp-blue) !important; }

/* ---------- Feature / benefit cards: borderless, even grid, centred last row ---------- */
html body .choose_wrap {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 24px;
}
html body .choose_wrap > * { flex: 0 1 calc((100% - 48px) / 3); min-width: 0; }
html body .choose_wrap .choose_card,
html body .choose_card {
    border: 0 !important; border-radius: 18px !important; padding: 28px 26px;
    background: #fff; box-shadow: var(--lp-card-shadow) !important;
    transition: box-shadow .2s ease; height: 100%;
}
/* Cards are not links, so they do not lift or change colour on hover. */
html body .choose_wrap .choose_card:hover,
html body .choose_card:hover { transform: none !important; border-color: transparent; background: #fff; box-shadow: var(--lp-card-shadow) !important; }
html body .choose_wrap .choose_card:hover h3 { color: var(--lp-ink); }
html body .choose_card h3 { font-size: 18px; font-weight: 700; color: var(--lp-ink); line-height: 1.4; margin: 0 0 10px; }
html body .choose_card p { font-size: 15px; line-height: 1.65; color: var(--lp-text); margin: 0 0 10px; }
html body .choose_card ul { margin: 6px 0 0; padding: 0; display: grid; gap: 8px; }
html body .choose_card ul li {
    position: relative; padding-left: 24px; margin: 0;
    font-size: 14.5px !important; line-height: 1.55; color: var(--lp-text) !important;
}
html body .choose_card ul li::before {
    content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900;
    position: absolute; left: 0; top: 1px; font-size: 12px; color: var(--lp-blue);
}

/* ---------- Generic cards ---------- */
html body .ui-card { border: 0 !important; box-shadow: var(--lp-card-shadow) !important; }
html body .ui-card:hover { transform: none !important; box-shadow: var(--lp-card-shadow) !important; }

/* ---------- How-to-apply steps: numbered, aligned, no pulsing ---------- */
html body .process_wrap { counter-reset: lp-step; }
html body .process_wrap::before { top: 13px; height: 2px; background: var(--lp-line) !important; left: 12.5%; width: 75%; }
html body .process_wrap .process_card {
    counter-increment: lp-step; border: 0 !important; box-shadow: var(--lp-card-shadow) !important; border-radius: 18px !important;
    margin-top: 20px;
}
html body .process_wrap .process_card:hover { transform: none !important; border-color: transparent; box-shadow: var(--lp-card-shadow) !important; }
html body .process_wrap .process_card::before {
    content: counter(lp-step); animation: none !important;
    top: -48px; width: 28px; height: 28px; line-height: 28px;
    background: var(--lp-blue); color: #fff; font-size: 13px; font-weight: 800; text-align: center;
    box-shadow: 0 0 0 5px #fff;
}
html body .process_card .process_icon { border-radius: 12px; }
html body .process-badge { background: var(--lp-blue-soft); color: var(--lp-blue); font-weight: 600; font-size: 12.5px; }

/* "Average disbursement time" is information, not an error: no red. */
html body .sub-title {
    background: var(--lp-blue-soft); border: 1px solid #bfdbfe; color: var(--lp-navy);
    font-weight: 500; font-size: 15px; border-radius: 14px !important; line-height: 1.5; max-width: 900px;
}

/* ---------- Soft background blobs looked like pink stains ---------- */
html body .bg-wrapper .bg-blob { display: none; }

/* ---------- Buttons: one primary style ---------- */
html body .apply-btn,
html body a.btn-danger {
    background: var(--lp-blue) !important; border-color: var(--lp-blue) !important; color: #fff !important;
    border-radius: 10px !important; font-weight: 700; box-shadow: none !important;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    transition: background-color .2s ease !important;
}
html body .apply-btn:hover, html body a.btn-danger:hover { background: var(--lp-navy) !important; transform: none !important; }
html body .apply-btn-secondary {
    border: 2px solid var(--lp-blue) !important; color: var(--lp-blue) !important; background: #fff !important;
    border-radius: 10px !important; font-weight: 700;
}
html body .apply-btn-secondary:hover { background: var(--lp-blue-soft) !important; }
/* A full-width red bar for "Check your eligibility" was louder than the primary "Apply" action. */
html body .apply-btn.w-100 { width: auto !important; padding-left: 32px !important; padding-right: 32px !important; }
html body .apply-btn:focus-visible, html body a.btn-danger:focus-visible, html body .apply-btn-secondary:focus-visible {
    outline: 3px solid #93c5fd; outline-offset: 2px;
}

/* ---------- Reading width: about 75 characters per line, no justified text ---------- */
html body .why_wrap .col-lg-8.text-center { flex: 0 0 auto; width: 100%; max-width: 820px; margin-left: auto; margin-right: auto; }
html body .why_wrap .col-lg-8.text-center > p { text-align: center; }
/* Several paragraphs in a row are prose: left-align them for easier reading. */
html body .why_wrap .col-lg-8.text-center:has(> p + p) > p { text-align: left; }
html body .loan-charges .text-center p, html body .process-section .process-h p,
html body .eligibility-section .text-center > p, html body .blog-section .text-center > p { text-align: center; max-width: 820px; margin-left: auto; margin-right: auto; }
html body .business-content-section .content-copy { max-width: 820px; margin-left: auto; margin-right: auto; }
html body .section-light .col-lg-12 > p.text-muted { max-width: 820px; margin-left: auto; margin-right: auto; }

/* ---------- Article cards: no gradient strip ---------- */
html body .blog-section .blog-card::before { display: none; }
html body .blog-section .blog-card { border: 0; box-shadow: var(--lp-card-shadow); }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
    html body .prop-left { padding: 48px 64px 48px 56px; }
}
@media (max-width: 991px) {
    html body .choose_wrap > * { flex-basis: calc((100% - 24px) / 2); }
}
@media (max-width: 768px) {
    html body .prop-sec { min-height: 0; }
    html body .prop-left { padding: 36px 20px; }
    html body .prop-text { max-width: none; }
    html body .prop-text h1 { font-size: 26px !important; }
    html body .prop-btn { width: 100%; }
}
@media (max-width: 767px) {
    html body .choose_wrap { gap: 16px; }
    html body .choose_wrap > * { flex-basis: 100%; }
    html body .choose_card { padding: 22px 20px; }
    html body .process_wrap::before { left: 13px; top: 0; width: 2px; height: 100%; }
    html body .process_wrap { padding-left: 48px; }
    html body .process_wrap .process_card { margin-top: 0; }
    html body .process_wrap .process_card::before { top: 24px; left: -35px; }
    html body .apply-btn.w-100 { width: 100% !important; }
}
@media (prefers-reduced-motion: reduce) {
    html body .choose_card, html body .apply-btn, html body .prop-btn { transition: none !important; }
}
