/* ============================================
   Location Page — hero + overrides
   (reuses /loan-emi-calculator/index.css for the rest)
   ============================================ */

/* HERO — default skyline placeholder (LocationPlaceholder.png); CMS can replace via --hero-bg. */
.loc-hero {
    background-color: #05070f;
    background-image: var(--hero-bg, url('/assets/LocationPlaceholder.png'));
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    padding: 140px 24px 250px;
    position: relative;
    text-align: center;
}

/* Subtle top-down scrim: darkens behind the nav/text, fades out so the skyline stays visible
   (also keeps text readable if the CMS swaps in a brighter custom image). */
.loc-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 7, 15, 0.55) 0%, rgba(5, 7, 15, 0.15) 45%, rgba(5, 7, 15, 0) 75%);
    pointer-events: none;
}

.loc-hero-inner {
    max-width: 880px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Match the loan-page badge style (.salaried-loan-badge / .personal-loan-badge). */
.loc-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: transparent;
    border: 1px solid #E1E1E1;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #E1E1E1;
    backdrop-filter: blur(10px);
    margin: 0 0 18px;
}
.loc-hero-badge .spark { color: #E1E1E1; font-size: 16px; }

.loc-hero-title {
    font-family: 'Bricolage Grotesque', sans-serif;
    color: #ffffff;
    font-size: 46px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -1px;
    max-width: 720px;
    margin: 0 auto;
}
.loc-hero-title span { color: #93aef2; }

.loc-hero-sub {
    color: rgba(255, 255, 255, 0.72);
    font-size: 17px;
    line-height: 1.6;
    max-width: none;
    white-space: nowrap;
    margin: 30px auto 0;
}

.loc-hero-btn {
    display: inline-block;
    margin-top: 24px;
    background: linear-gradient(180deg, #0256DB 0%, #031450 100%);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 15px 34px;
    border-radius: 10px;
}
/* No hover states on the location page (buttons & blog/article cards).
   The hero button is an <a>, so a global a:hover recolours it — pin it white on every state. */
.loc-hero-btn,
.loc-hero-btn:link,
.loc-hero-btn:visited,
.loc-hero-btn:hover,
.loc-hero-btn:focus,
.loc-hero-btn:active {
    color: #fff !important;
    transition: none !important;
}
.loc-page .emi-blog-card { transition: none; }
.loc-page .emi-blog-card:hover { box-shadow: none; }

/* Content sits on white below the hero (no overlap, unlike the calculator page). */
.loc-page .emi-body { padding-top: 40px; }
.loc-page .emi-layout { margin-top: 0; }

/* Give the calculator widget breathing room when embedded mid-content. */
.loc-page .emi-card { margin: 16px 0; }
.loc-section-heading { font-family: 'Geist', sans-serif; font-size: 32px; font-weight: 700; color: #000000; margin: 56px 0 20px; line-height: 1.3; }
/* Mid-content calculator heading sits closer to the surrounding prose. */
.loc-calc-heading { margin: 32px 0 16px; }

@media (max-width: 900px) {
    .loc-hero { padding: 130px 18px 170px; }
    .loc-hero-title { font-size: 32px; }
}
@media (max-width: 640px) {
    .loc-hero { padding: 110px 16px 140px; }
    .loc-hero-title { font-size: 26px; letter-spacing: -0.5px; }
    .loc-hero-sub { font-size: 15px; white-space: normal; max-width: 340px; }
    .loc-hero-badge { font-size: 13px; }
}

/* ---- CMS prose styling for the content blob (overrides legacy inline styles) ---- */
.loc-page .emi-content { background: transparent; }
.loc-page .emi-content div[style*="#f5f5f5"],
.loc-page .emi-content div[style*="#f5f5f5"] *:not(.triggerPopup):not(.emi-apply-btn):not(.emi-eligibility-btn):not(.acc-icon) { background: transparent !important; }
.loc-page .emi-content div[style*="#f5f5f5"] { padding: 0 !important; box-shadow: none !important; }

/* Content typography: Geist. Body = Regular 14/28; headings = Geist Bold 32, with generous
   top spacing so each section is clearly separated from the previous one. */
.loc-page .emi-content { font-family: 'Geist', sans-serif; }
.loc-page .emi-content h1,
.loc-page .emi-content h2 { font-family: 'Geist', sans-serif; font-size: 32px; font-weight: 700; color: #000000; margin: 56px 0 20px; line-height: 1.3; }
.loc-page .emi-content h3 { font-family: 'Geist', sans-serif; font-size: 22px; font-weight: 700; color: #000000; margin: 36px 0 14px; line-height: 1.35; }
.loc-page .emi-content h4 { font-family: 'Geist', sans-serif; font-size: 18px; font-weight: 600; color: #000000; margin: 28px 0 12px; }
.loc-page .emi-content p { font-family: 'Geist', sans-serif; font-size: 14px; font-weight: 400; line-height: 28px; letter-spacing: 0; color: #6B6B7C; margin: 0 0 20px; }
.loc-page .emi-content ul,
.loc-page .emi-content ol { margin: 0 0 20px; padding-left: 22px; }
.loc-page .emi-content li { font-family: 'Geist', sans-serif; font-size: 14px; font-weight: 400; line-height: 28px; letter-spacing: 0; color: #6B6B7C; margin: 0 0 10px; }
.loc-page .emi-content > *:first-child { margin-top: 0; }
.loc-page .emi-content a { color: #2156e5; text-decoration: none; }
.loc-page .emi-content a:hover { text-decoration: underline; }
.loc-page .emi-content strong { color: #000000; }
.loc-page .emi-content img { max-width: 100%; height: auto; border-radius: 10px; }
.loc-page .emi-content table { width: 100%; border-collapse: collapse; margin: 0 0 16px; }
.loc-page .emi-content th,
.loc-page .emi-content td { border: 1px solid #e6e9f2; padding: 10px 12px; text-align: left; font-size: 14px; color: #6B6B7C; }
.loc-page .emi-content th { background: #f5f7fb; color: #000000; font-weight: 700; }

/* All location-page CTAs use the brand gradient (031450 → 0256DB). Scoped to .loc-page so the
   calculator page keeps its own styling. Fixes the hero button colour, the uncoloured
   eligibility/apply buttons, and the previously-invisible (transparent) .triggerPopup. */
.loc-page .emi-eligibility-btn,
.loc-page .emi-apply-btn,
.loc-page .triggerPopup {
    background: linear-gradient(180deg, #0256DB 0%, #031450 100%) !important;
    color: #fff !important;
}
.loc-page .triggerPopup {
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
    margin: 18px 0;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(3, 20, 80, 0.25);
}
