/* Finance, loans, and guidance hero cards matching the ITR-5 reference. */
html body.finance-hero-reference {
    background: #f6f4ea !important;
}

html body.finance-hero-reference main > section:first-child[class$="-hero"] {
    width: min(1620px, calc(100% - 48px)) !important;
    max-width: none !important;
    min-height: 371px !important;
    height: auto !important;
    margin: 8px auto 0 !important;
    padding: 40px 0 !important;
    border-radius: 36px !important;
}

/* Nested finance heroes must fill their existing page shell, not shrink twice. */
html body.finance-hero-reference main > section:first-child > [class$="-hero"] {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Exact shared desktop hero geometry requested for finance/support pages. */
html body.finance-hero-reference main > section:first-child[class$="-hero"],
html body.finance-hero-reference main > section:first-child > [class$="-hero"] {
    width: min(1620px, calc(100vw - 48px)) !important;
    height: 371px !important;
    min-height: 371px !important;
    max-width: none !important;
}

html body.finance-hero-reference main > section:first-child > [class$="-hero"] {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

html body.finance-hero-reference main > section:first-child[class$="-hero"] [class$="-hero-inner"] {
    width: min(980px, calc(100% - 32px)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

html body.finance-hero-reference main > section:first-child[class$="-hero"] h1 {
    margin-top: 24px !important;
    font-family: "Poppins", sans-serif !important;
    font-size: clamp(3.2rem, 4.7vw, 5.8rem) !important;
    font-weight: 500 !important;
    line-height: .96 !important;
    letter-spacing: -.03em !important;
}

html body.finance-hero-reference main > section:first-child[class$="-hero"] [class$="-subtitle"] {
    margin-top: 16px !important;
    font-size: clamp(1.35rem, 2vw, 2.1rem) !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
}

html body.finance-hero-reference main > section:first-child[class$="-hero"] p {
    max-width: 920px !important;
    margin-top: 18px !important;
    font-size: 18px !important;
    line-height: 1.7 !important;
}

html body.finance-hero-reference main > section:first-child[class$="-hero"] [class$="-hero-inner"]::before {
    display: table;
    margin: 0 auto 24px;
    padding: 6px 18px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    color: #d8ac37;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    white-space: nowrap;
}

html body.finance-hero-reference main > section:first-child[class$="-hero"] [class$="-hero-inner"]::before { content: "current financial year FINANCE & ADVISORY STANDARDS"; }

@media (max-width:720px) {
    html body.finance-hero-reference main > section:first-child[class$="-hero"] {
        width: calc(100% - 24px) !important;
        min-height: 0 !important;
        padding: 28px 16px !important;
        border-radius: 24px !important;
    }

    html body.finance-hero-reference main > section:first-child > [class$="-hero"] {
        width: calc(100% - 24px) !important;
        height: auto !important;
        min-height: 0 !important;
        left: auto;
        transform: none;
    }
}

/* Keep the complete PMEGP and working-capital hero copy inside the card on
   phones and tablets. Laptop/desktop geometry remains unchanged. */
@media (max-width: 1100px) {
    html body.finance-hero-reference main > section:first-child.pmegp-hero[class$="-hero"],
    html body.finance-hero-reference main > section:first-child.wc-hero[class$="-hero"],
    html body.finance-hero-reference main > section:first-child.cg-hero[class$="-hero"],
    html body.finance-hero-reference main > section:first-child.personal-hero[class$="-hero"],
    html body.finance-hero-reference main > section:first-child.lap-hero[class$="-hero"],
    html body.finance-hero-reference main > section:first-child.tenders-hero[class$="-hero"],
    html body.finance-hero-reference main > section:first-child.schemes-hero[class$="-hero"],
    html body.finance-hero-reference main > section:first-child.startup-hero[class$="-hero"],
    html body.finance-hero-reference main > section:first-child.samadhan-hero[class$="-hero"],
    html body.finance-hero-reference main > section:first-child.closure-hero[class$="-hero"] {
        height: auto !important;
        min-height: 0 !important;
        padding-bottom: clamp(64px, 8vw, 86px) !important;
    }
}
/* Shared section-heading and numbering treatment for finance and support pages. */
html body.finance-hero-reference main [class$="-heading"] h2,
html body.finance-hero-reference main [class$="-head"] h2 {
    font-size: 28px !important;
}

html body.finance-hero-reference main [class$="-badge"],
html body.finance-hero-reference main [class$="-number"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 52px !important;
    min-width: 52px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #e8f0ea !important;
    color: #2f8d57 !important;
    font-size: 0 !important;
}

html body.finance-hero-reference main [class$="-badge"] strong,
html body.finance-hero-reference main [class$="-number"] strong {
    color: #2a7f4e !important;
    font-size: 14px !important;
    line-height: 1 !important;
}

html body.finance-hero-reference main [class$="-number"] {
    font-size: 14px !important;
    line-height: 1 !important;
}

html body.finance-hero-reference main [class$="-badge"]::before,
html body.finance-hero-reference main [class$="-badge"]::after,
html body.finance-hero-reference main [class$="-number"]::before,
html body.finance-hero-reference main [class$="-number"]::after {
    content: none !important;
    display: none !important;
}
