/* ------------------------------------------------------------------
   pages.css
   The v2 look for the site's content pages (About, Contact, Blog,
   Credit Score, EMI calculator, Partner, and the product detail
   pages). Built from the same pieces the home and service pages use:
   the indigo promo hero with the curved light panel, centred section
   headings with an indigo accent word, white rounded cards on a
   lavender tint, and the indigo pill buttons.

   Everything is namespaced pg- so it cannot leak into the home or
   service layouts, and it is loaded after bridge.css.
   ------------------------------------------------------------------ */

:root {
    --pg-indigo: #3b37d4;
    --pg-indigo-deep: #1e1b8c;
    --pg-indigo-soft: #ecebfb;
    --pg-tint: #f7f7fe;
    --pg-ink: #14142b;
    --pg-body: #4b5563;
    --pg-muted: #6b7280;
    --pg-line: #ececf6;
    --pg-orange: #f58219;
    --pg-green: #10b981;
    --pg-radius: 18px;
    --pg-shadow: 0 10px 30px rgba(30, 27, 140, 0.06);
    --pg-shadow-hover: 0 18px 40px rgba(30, 27, 140, 0.12);
}

/* website.css pins MabryPro on body with !important; bridge.css puts the
   v2 face back on headings, p, a and span. Cover the rest of the text
   elements the content pages use. Icons are <i>, so they keep theirs. */
body.v2-page .pg-main,
body.v2-page .pg-main div,
body.v2-page .pg-main li,
body.v2-page .pg-main td,
body.v2-page .pg-main th,
body.v2-page .pg-main label,
body.v2-page .pg-main input,
body.v2-page .pg-main select,
body.v2-page .pg-main textarea,
body.v2-page .pg-main button,
body.v2-page .pg-main strong,
body.v2-page .pg-main b,
body.v2-page .pg-main small,
body.v2-page .pg-main summary,
body.v2-page .pg-main output,
body.v2-page .pg-stickybar,
body.v2-page .pg-stickybar * {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.pg-main {
    color: var(--pg-ink);
    overflow-x: clip;
}

.pg-main img {
    max-width: 100%;
}

.pg-main a {
    text-decoration: none;
}

/* -- Layout --------------------------------------------------------- */
.pg-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 clamp(16px, 3vw, 40px);
}

.pg-section {
    padding: clamp(48px, 6vw, 88px) 0;
}

.pg-section--tint {
    background: var(--pg-tint);
}

.pg-section--tight {
    padding-top: clamp(24px, 3vw, 40px);
}

.pg-grid {
    display: grid;
    gap: clamp(16px, 2vw, 24px);
}

.pg-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pg-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pg-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pg-grid--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

/* for lists of unknown length: cards stretch to fill the row */
.pg-grid--auto { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.pg-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(32px, 5vw, 72px);
}

.pg-split--top {
    align-items: start;
}

.pg-split-media {
    text-align: center;
}

.pg-split-media img {
    width: 100%;
    max-width: 520px;
    height: auto;
}

/* -- Hero: the service-page promo card ------------------------------ */
.pg-hero-wrap {
    padding: 8px clamp(16px, 3vw, 40px) 0;
}

.pg-hero {
    position: relative;
    max-width: 1340px;
    min-height: 400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 24px;
    padding: clamp(32px, 4vw, 56px) clamp(24px, 4.5vw, 64px);
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(110deg, #17149e 0%, #2824c8 54%, #3d39dc 100%);
    border-radius: 24px;
    box-shadow: 0 12px 30px rgba(37, 34, 190, 0.10);
    isolation: isolate;
}

/* faint vertical rules, as on the home hero */
.pg-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: repeating-linear-gradient(90deg,
        rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.04) 1px,
        transparent 1px, transparent 56px);
    pointer-events: none;
}

/* the curved light panel the illustration sits on */
.pg-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: -42%;
    right: -1%;
    width: 46%;
    height: 184%;
    background: #f8f8ff;
    border-radius: 55% 0 0 55%;
}

.pg-hero-content {
    position: relative;
    max-width: 560px;
}

.pg-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px 5px 6px;
    margin-bottom: 20px;
    background: #ffffff;
    border-radius: 999px;
    color: var(--pg-indigo);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

.pg-badge-dot {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--pg-orange);
    color: #ffffff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
}

.pg-hero h1 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: clamp(30px, 3.6vw, 48px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.02em;
}

.pg-hero p {
    max-width: 500px;
    margin: 0 0 26px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(14px, 1.1vw, 16px);
    line-height: 1.7;
}

.pg-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.pg-hero-note {
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
}

.pg-hero-media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
}

.pg-hero-media img {
    display: block;
    width: 100%;
    max-width: 380px;
    max-height: 320px;
    height: auto;
    object-fit: contain;
}

/* -- Section headings ------------------------------------------------ */
.pg-head {
    max-width: 760px;
    margin: 0 auto clamp(28px, 4vw, 48px);
    text-align: center;
}

.pg-head--left {
    margin-left: 0;
    text-align: left;
}

.pg-eyebrow {
    display: inline-block;
    margin: 0 0 12px;
    color: var(--pg-indigo);
    font-size: 12px !important;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.pg-title {
    margin: 0 0 14px;
    color: var(--pg-ink);
    font-size: clamp(26px, 3vw, 40px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.pg-title .hl {
    color: var(--pg-indigo);
}

.pg-lead {
    margin: 0;
    color: var(--pg-muted);
    font-size: clamp(14px, 1.1vw, 16px);
    line-height: 1.7;
}

/* -- Buttons --------------------------------------------------------- */
.pg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 22px;
    border: 1px solid var(--pg-indigo);
    border-radius: 10px;
    background: var(--pg-indigo);
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.pg-btn:hover {
    background: #302dcc;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(59, 55, 212, 0.25);
    text-decoration: none;
}

.pg-btn:focus-visible {
    outline: 3px solid rgba(59, 55, 212, 0.35);
    outline-offset: 2px;
}

.pg-btn--outline {
    background: #ffffff;
    color: var(--pg-indigo) !important;
}

.pg-btn--outline:hover {
    background: var(--pg-indigo-soft);
    box-shadow: none;
}

/* white button on the indigo hero, with the boxed arrow */
.pg-btn--light {
    padding: 0 8px 0 22px;
    border-color: #ffffff;
    background: #ffffff;
    color: #302dcc !important;
}

.pg-btn--light:hover {
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.pg-btn-arrow {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: var(--pg-indigo);
    color: #ffffff;
}

.pg-btn--block {
    width: 100%;
}

.pg-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--pg-indigo) !important;
    font-size: 14px;
    font-weight: 600;
}

.pg-link:hover {
    text-decoration: underline;
}

/* -- Cards ----------------------------------------------------------- */
.pg-card {
    position: relative;
    height: 100%;
    padding: clamp(22px, 2.4vw, 30px);
    background: #ffffff;
    border: 1px solid var(--pg-line);
    border-radius: var(--pg-radius);
    box-shadow: var(--pg-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pg-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--pg-shadow-hover);
}

.pg-card--center {
    text-align: center;
}

.pg-card--center .pg-card-icon {
    margin-left: auto;
    margin-right: auto;
}

.pg-card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    background: var(--pg-indigo-soft);
    color: var(--pg-indigo);
    border-radius: 14px;
    font-size: 22px;
}

.pg-card-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.pg-card h3 {
    margin: 0 0 10px;
    color: var(--pg-ink);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
}

.pg-card p {
    margin: 0;
    color: var(--pg-muted);
    font-size: 14.5px;
    line-height: 1.7;
}

/* the filled indigo variant, like the active "Why choose us" card */
.pg-card--accent {
    background: linear-gradient(160deg, #2824c8 0%, #1e1b8c 100%);
    border-color: transparent;
}

.pg-card--accent h3 { color: #ffffff; }
.pg-card--accent p { color: rgba(255, 255, 255, 0.82); }

.pg-card--accent .pg-card-icon {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.pg-card--accent .pg-card-icon img {
    filter: brightness(0) invert(1);
}

/* horizontal card: icon left, text right */
.pg-card--row {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.pg-card--row .pg-card-icon {
    margin-bottom: 0;
    flex-shrink: 0;
}

/* -- Product tiles (Credit cards & loans) ---------------------------- */
.pg-product {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 100%;
    padding: 18px;
    background: #ffffff;
    border: 1px solid var(--pg-line);
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(20, 20, 43, 0.05);
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.pg-product:hover {
    transform: translateY(-3px);
    border-color: #dcdaf8;
    box-shadow: var(--pg-shadow-hover);
    text-decoration: none;
}

.pg-product-icon {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
}

.pg-product-icon img {
    width: 46px;
    height: 46px;
    object-fit: contain;
}

.pg-product-body {
    min-width: 0;
}

.pg-product-body h3 {
    margin: 0 0 4px;
    color: var(--pg-ink);
    font-size: 16px;
    font-weight: 700;
}

.pg-product-body p {
    margin: 0 0 8px;
    color: var(--pg-muted);
    font-size: 13px;
    line-height: 1.55;
}

/* the six loan tiles: icon on top, name under it, no blurb */
.pg-product--tile {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px;
    text-align: center;
}

.pg-product--tile .pg-product-icon {
    width: 100%;
    height: 110px;
}

.pg-product--tile .pg-product-icon img {
    width: 56px;
    height: 56px;
}

.pg-product--tile .pg-product-body h3 {
    font-size: 15px;
    line-height: 1.35;
}

/* -- Prose (admin-entered rich text, long copy) ---------------------- */
.pg-prose {
    color: var(--pg-body);
    font-size: 15.5px;
    line-height: 1.8;
}

.pg-prose p,
.pg-prose div {
    color: var(--pg-body);
    font-size: 15.5px;
    line-height: 1.8;
}

.pg-prose p {
    margin: 0 0 14px;
}

.pg-prose p:last-child {
    margin-bottom: 0;
}

.pg-prose ul,
.pg-prose ol {
    margin: 0 0 14px;
    padding-left: 22px;
}

.pg-prose li {
    margin-bottom: 6px;
}

.pg-prose h2,
.pg-prose h3,
.pg-prose h4 {
    margin: 22px 0 10px;
    color: var(--pg-ink);
    font-weight: 700;
}

.pg-prose a {
    color: var(--pg-indigo);
    text-decoration: underline;
}

.pg-prose img {
    height: auto;
    border-radius: 12px;
}

/* -- Tables ---------------------------------------------------------- */
.pg-table-wrap {
    width: 100%;
    overflow-x: auto;
    background: #ffffff;
    border: 1px solid var(--pg-line);
    border-radius: var(--pg-radius);
    box-shadow: var(--pg-shadow);
}

.pg-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
}

.pg-table th {
    padding: 16px 22px;
    background: #f2f2fd;
    color: var(--pg-indigo-deep);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-align: left;
    white-space: nowrap;
}

.pg-table td {
    padding: 18px 22px;
    border-top: 1px solid var(--pg-line);
    color: var(--pg-body);
    font-size: 14.5px;
    line-height: 1.6;
    vertical-align: top;
}

.pg-table td:first-child {
    color: var(--pg-ink);
    font-weight: 600;
    white-space: nowrap;
}

.pg-pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--pg-indigo-soft);
    color: var(--pg-indigo);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.pg-pill--excellent { background: #d9f7ec; color: #047857; }
.pg-pill--good      { background: #e3f4d7; color: #3f7a12; }
.pg-pill--fair      { background: #fff3d6; color: #a06d00; }
.pg-pill--poor      { background: #ffe6d3; color: #b45309; }
.pg-pill--verypoor  { background: #fde2e2; color: #b91c1c; }

/* -- Forms ----------------------------------------------------------- */
.pg-form-card {
    padding: clamp(22px, 3vw, 36px);
    background: #ffffff;
    border: 1px solid var(--pg-line);
    border-radius: 20px;
    box-shadow: var(--pg-shadow);
}

.pg-form-card h3 {
    margin: 0 0 6px;
    color: var(--pg-ink);
    font-size: 20px;
    font-weight: 700;
}

.pg-form-card > p {
    margin: 0 0 22px;
    color: var(--pg-muted);
    font-size: 14px;
}

.pg-field {
    margin-bottom: 16px;
}

.pg-field label {
    display: block;
    margin-bottom: 6px;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
}

.pg-form .form-control,
.pg-form input[type="text"],
.pg-form input[type="email"],
.pg-form input[type="tel"],
.pg-form textarea {
    width: 100%;
    height: auto;
    padding: 12px 14px;
    background: #ffffff;
    border: 1px solid #e3e3f0;
    border-radius: 10px;
    color: var(--pg-ink);
    font-size: 14.5px;
    line-height: 1.5;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pg-form textarea {
    min-height: 130px;
    resize: vertical;
}

.pg-form .form-control::placeholder {
    color: #9ca3af;
}

.pg-form .form-control:focus {
    border-color: var(--pg-indigo);
    box-shadow: 0 0 0 4px rgba(59, 55, 212, 0.12);
    outline: 0;
}

.pg-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--pg-body);
    font-size: 13.5px;
    line-height: 1.5;
    cursor: pointer;
}

.pg-check input {
    width: 17px;
    height: 17px;
    margin-top: 1px;
    flex-shrink: 0;
    accent-color: var(--pg-indigo);
}

.pg-form .invalid-feedback {
    font-size: 12.5px;
}

/* the consent box sits inside its label, so Bootstrap's sibling rule
   cannot reach the message */
.was-validated .pg-check:has(input:invalid) + .invalid-feedback {
    display: block;
}

/* -- FAQ (native details/summary) ----------------------------------- */
.pg-faq {
    max-width: 960px;
    margin: 0 auto;
}

.pg-faq details {
    border-bottom: 1px solid #e5e5ee;
}

.pg-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 0;
    color: #292929;
    font-size: clamp(16px, 1.4vw, 19px);
    font-weight: 600;
    list-style: none;
    cursor: pointer;
}

.pg-faq summary::-webkit-details-marker {
    display: none;
}

.pg-faq summary::after {
    content: "";
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    margin-right: 6px;
    border-right: 2.5px solid #123652;
    border-bottom: 2.5px solid #123652;
    transform: rotate(45deg);
    transition: transform 0.25s ease;
}

.pg-faq details[open] summary::after {
    transform: rotate(225deg);
}

.pg-faq summary:hover {
    color: var(--pg-indigo);
}

.pg-faq-answer {
    padding: 0 40px 24px 0;
}

/* -- Empty state ----------------------------------------------------- */
.pg-empty {
    padding: 40px 24px;
    border: 1px dashed #d9d9ec;
    border-radius: 16px;
    background: #fafaff;
    color: var(--pg-muted);
    font-size: 15px;
    text-align: center;
}

/* -- Steps ----------------------------------------------------------- */
.pg-steps {
    display: grid;
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pg-step {
    display: flex;
    gap: 18px;
}

.pg-step-num {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--pg-indigo);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
}

.pg-step h3 {
    margin: 0 0 6px;
    color: var(--pg-ink);
    font-size: 17px;
    font-weight: 700;
}

.pg-step p {
    margin: 0;
    color: var(--pg-muted);
    font-size: 14.5px;
    line-height: 1.65;
}

/* -- Logos ----------------------------------------------------------- */
.pg-logos {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.pg-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 88px;
    padding: 16px 20px;
    background: #ffffff;
    border: 1px solid var(--pg-line);
    border-radius: 14px;
}

.pg-logo img {
    max-height: 40px;
    width: auto;
    object-fit: contain;
}

/* -- About: team ----------------------------------------------------- */
.pg-team-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1.05;
    border-radius: var(--pg-radius);
    background: #e9e9f5;
}

.pg-team-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pg-team-card figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 48px 18px 16px;
    background: linear-gradient(to top, rgba(20, 18, 90, 0.88), rgba(20, 18, 90, 0));
}

.pg-team-card strong {
    display: block;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
}

.pg-team-card span {
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
}

/* -- Contact cards --------------------------------------------------- */
.pg-contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 100%;
    padding: 22px;
    background: #ffffff;
    border: 1px solid var(--pg-line);
    border-radius: var(--pg-radius);
    box-shadow: var(--pg-shadow);
    color: inherit;
}

a.pg-contact-card:hover {
    border-color: #dcdaf8;
    text-decoration: none;
}

.pg-contact-card .pg-card-icon {
    margin: 0;
    flex-shrink: 0;
}

.pg-contact-card small {
    display: block;
    margin-bottom: 4px;
    color: var(--pg-muted);
    font-size: 12.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.pg-contact-card strong {
    display: block;
    color: var(--pg-ink);
    font-size: 15.5px;
    font-weight: 700;
    word-break: break-word;
}

.pg-hours {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
    padding: 16px 18px;
    background: #ffffff;
    border: 1px solid var(--pg-line);
    border-radius: 14px;
    color: var(--pg-body);
    font-size: 14px;
}

.pg-hours i {
    color: var(--pg-indigo);
    font-size: 18px;
}

/* -- Blog ------------------------------------------------------------ */
.pg-blog-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 32px;
}

.pg-search {
    position: relative;
    flex: 0 1 360px;
}

.pg-search i {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: #9ca3af;
}

.pg-search input {
    width: 100%;
    height: 46px;
    padding: 0 16px 0 42px;
    border: 1px solid #e3e3f0;
    border-radius: 999px;
    background: #ffffff;
    font-size: 14px;
    outline: 0;
}

.pg-search input:focus {
    border-color: var(--pg-indigo);
    box-shadow: 0 0 0 4px rgba(59, 55, 212, 0.12);
}

.pg-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pg-chip {
    padding: 8px 16px;
    border: 1px solid #e3e3f0;
    border-radius: 999px;
    background: #ffffff;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pg-chip:hover {
    border-color: var(--pg-indigo);
    color: var(--pg-indigo);
}

.pg-chip.is-active {
    border-color: var(--pg-indigo);
    background: var(--pg-indigo);
    color: #ffffff;
}

.pg-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.pg-blog-grid .blog-card[hidden] {
    display: none;
}

.pg-blog-cat {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--pg-indigo);
    font-size: 12px !important;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

a.blog-card {
    color: inherit;
}

a.blog-card:hover {
    text-decoration: none;
}

.pg-article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: clamp(28px, 4vw, 56px);
    align-items: start;
}

.pg-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--pg-muted);
    font-size: 13px;
}

.pg-breadcrumb a {
    color: var(--pg-indigo);
    font-weight: 600;
}

.pg-article h1 {
    margin: 0 0 14px;
    color: var(--pg-ink);
    font-size: clamp(28px, 3.4vw, 44px);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.02em;
    word-break: break-word;
}

.pg-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
    margin-bottom: 26px;
    color: var(--pg-muted);
    font-size: 14px;
}

.pg-meta i {
    margin-right: 6px;
    color: var(--pg-indigo);
}

.pg-article-cover {
    width: 100%;
    max-height: 460px;
    margin-bottom: 28px;
    object-fit: cover;
    border-radius: 20px;
    display: block;
}

.pg-article-lead {
    margin: 0 0 22px;
    color: var(--pg-ink);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.7;
}

.pg-aside {
    position: sticky;
    top: 24px;
}

.pg-aside h2 {
    margin: 0 0 16px;
    color: var(--pg-ink);
    font-size: 18px;
    font-weight: 700;
}

.pg-mini-post {
    display: flex;
    gap: 14px;
    padding: 14px;
    margin-bottom: 12px;
    background: #ffffff;
    border: 1px solid var(--pg-line);
    border-radius: 14px;
    color: inherit;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.pg-mini-post:hover {
    border-color: #dcdaf8;
    box-shadow: var(--pg-shadow);
    text-decoration: none;
}

.pg-mini-post img {
    width: 84px;
    height: 72px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 10px;
}

.pg-mini-post strong {
    display: block;
    margin-bottom: 6px;
    color: var(--pg-ink);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.pg-mini-post span {
    color: var(--pg-muted);
    font-size: 12px;
}

/* -- EMI calculator -------------------------------------------------- */
.pg-emi {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 56px);
    padding: clamp(22px, 3.5vw, 44px);
    background: #ffffff;
    border: 1px solid var(--pg-line);
    border-radius: 24px;
    box-shadow: var(--pg-shadow);
}

.pg-range {
    margin-bottom: 30px;
}

.pg-range-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.pg-range-head label {
    margin: 0;
    color: #374151;
    font-size: 15px;
    font-weight: 600;
}

.pg-range-value {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 10px;
    background: var(--pg-indigo-soft);
    color: var(--pg-indigo);
    font-size: 15px;
    font-weight: 700;
}

.pg-range-value input {
    width: 110px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 15px;
    font-weight: 700;
    text-align: right;
    outline: 0;
}

.pg-range-value input.is-short {
    width: 52px;
}

.pg-range input[type="range"] {
    width: 100%;
    height: 8px;
    appearance: none;
    -webkit-appearance: none;
    border-radius: 999px;
    background: linear-gradient(to right, var(--pg-indigo) 0%, var(--pg-indigo) var(--fill, 50%), #e8e8f8 var(--fill, 50%), #e8e8f8 100%);
    outline: none;
    cursor: pointer;
}

.pg-range input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border: 4px solid #ffffff;
    border-radius: 50%;
    background: var(--pg-indigo);
    box-shadow: 0 2px 8px rgba(30, 27, 140, 0.35);
}

.pg-range input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border: 4px solid #ffffff;
    border-radius: 50%;
    background: var(--pg-indigo);
    box-shadow: 0 2px 8px rgba(30, 27, 140, 0.35);
}

.pg-range-scale {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    color: #9ca3af;
    font-size: 12px;
}

.pg-toggle {
    display: inline-flex;
    padding: 3px;
    border-radius: 10px;
    background: #f2f2fd;
}

.pg-toggle label {
    margin: 0;
    padding: 5px 14px;
    border-radius: 8px;
    color: var(--pg-muted);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.pg-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pg-toggle input:checked + label {
    background: #ffffff;
    color: var(--pg-indigo);
    box-shadow: 0 2px 6px rgba(30, 27, 140, 0.12);
}

.pg-toggle input:focus-visible + label {
    outline: 2px solid var(--pg-indigo);
}

.pg-emi-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(20px, 3vw, 32px);
    background: var(--pg-tint);
    border-radius: 20px;
}

.pg-emi-result h3 {
    margin: 0 0 22px;
    color: var(--pg-ink);
    font-size: 17px;
    font-weight: 700;
}

.pg-donut {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: conic-gradient(var(--pg-indigo) 0 var(--principal, 70%), var(--pg-orange) var(--principal, 70%) 100%);
}

.pg-donut::after {
    content: "";
    position: absolute;
    inset: 32px;
    border-radius: 50%;
    background: var(--pg-tint);
}

.pg-donut-center {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.pg-donut-center small {
    color: var(--pg-muted);
    font-size: 12px;
    font-weight: 600;
}

.pg-donut-center strong {
    color: var(--pg-ink);
    font-size: 22px;
    font-weight: 800;
}

.pg-legend {
    display: flex;
    gap: 18px;
    margin: 20px 0 22px;
    color: var(--pg-body);
    font-size: 13px;
}

.pg-legend span::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 6px;
    border-radius: 3px;
    background: var(--pg-indigo);
}

.pg-legend span.is-interest::before {
    background: var(--pg-orange);
}

.pg-emi-rows {
    width: 100%;
    margin: 0;
}

.pg-emi-rows div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid #e6e6f4;
}

.pg-emi-rows dt {
    color: var(--pg-muted);
    font-size: 14px;
    font-weight: 500;
}

.pg-emi-rows dd {
    margin: 0;
    color: var(--pg-ink);
    font-size: 15px;
    font-weight: 700;
}

.pg-emi-rows .is-total dd {
    color: var(--pg-indigo);
    font-size: 17px;
}

/* -- Product detail pages -------------------------------------------- */
.pg-detail {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: clamp(24px, 4vw, 48px);
    padding: clamp(22px, 3vw, 36px);
    background: #ffffff;
    border: 1px solid var(--pg-line);
    border-radius: 24px;
    box-shadow: var(--pg-shadow);
}

.pg-detail-media {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pg-detail-img {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1.45 / 1;
    padding: 18px;
    background: var(--pg-tint);
    border-radius: 18px;
}

.pg-detail-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

.pg-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--pg-muted);
    font-size: 13px;
}

.pg-rating .stars {
    color: #f5a524;
    letter-spacing: 2px;
}

.pg-detail-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.pg-detail h1 {
    margin: 0;
    color: var(--pg-ink);
    font-size: clamp(24px, 2.6vw, 34px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.pg-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-bottom: 22px;
    padding: 18px 0;
    border-top: 1px solid var(--pg-line);
    border-bottom: 1px solid var(--pg-line);
}

.pg-stat {
    padding: 4px 28px 4px 0;
    margin-right: 28px;
    border-right: 1px solid var(--pg-line);
}

.pg-stat:last-child {
    margin-right: 0;
    border-right: 0;
}

.pg-stat small {
    display: block;
    margin-bottom: 6px;
    color: var(--pg-muted);
    font-size: 12px;
    font-weight: 600;
}

.pg-stat strong {
    color: var(--pg-ink);
    font-size: clamp(18px, 1.8vw, 24px);
    font-weight: 700;
    white-space: nowrap;
}

.pg-detail-label {
    margin: 0 0 10px;
    color: var(--pg-ink);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pg-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.pg-perks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin: 0 0 4px;
    padding: 0;
    list-style: none;
}

.pg-perks li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--pg-body);
    font-size: 14.5px;
}

.pg-perks li::before {
    content: "";
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--pg-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.pg-perks--stack {
    flex-direction: column;
}

.pg-resources {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.pg-resource {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid var(--pg-line);
    border-radius: 16px;
    color: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pg-resource:hover {
    border-color: #dcdaf8;
    box-shadow: var(--pg-shadow);
    text-decoration: none;
}

.pg-resource .pg-card-icon {
    width: 46px;
    height: 46px;
    margin: 0;
    flex-shrink: 0;
    font-size: 18px;
}

.pg-resource strong {
    display: block;
    color: var(--pg-ink);
    font-size: 14.5px;
    font-weight: 700;
}

.pg-resource span {
    color: var(--pg-indigo);
    font-size: 13px;
    font-weight: 600;
}

.pg-cta-row {
    margin-top: 32px;
    text-align: center;
}

/* compact bar that follows the reader down a detail page */
.pg-stickybar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--pg-line);
    box-shadow: 0 8px 24px rgba(30, 27, 140, 0.08);
    backdrop-filter: blur(8px);
    transform: translateY(-110%);
    transition: transform 0.25s ease;
}

.pg-stickybar.is-visible {
    transform: translateY(0);
}

.pg-stickybar-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 10px clamp(16px, 3vw, 40px);
}

.pg-stickybar img {
    width: 64px;
    height: 42px;
    object-fit: contain;
    border-radius: 6px;
    background: var(--pg-tint);
}

.pg-stickybar strong {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    color: var(--pg-ink);
    font-size: 15px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* -- Responsive ------------------------------------------------------ */
@media (max-width: 1100px) {
    .pg-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pg-grid--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .pg-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pg-logos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .pg-detail { grid-template-columns: 280px minmax(0, 1fr); }
}

@media (max-width: 900px) {
    .pg-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pg-split,
    .pg-article,
    .pg-emi,
    .pg-detail { grid-template-columns: minmax(0, 1fr); }
    .pg-split-media { order: -1; }
    .pg-split-media.is-after { order: 0; }
    .pg-aside { position: static; }
    .pg-detail-media { max-width: 420px; }
}

@media (max-width: 768px) {
    .pg-hero {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
        padding-bottom: 0;
        border-radius: 20px;
    }

    /* the curved panel would run into the copy once the columns stack,
       so the illustration gets its own light cap instead */
    .pg-hero::after {
        display: none;
    }

    .pg-hero-media {
        min-height: 0;
        margin: 8px calc(-1 * clamp(24px, 4.5vw, 64px)) 0;
        padding: 28px 16px 24px;
        background: #f8f8ff;
        border-radius: 50% 50% 0 0 / 36px 36px 0 0;
    }

    .pg-hero-media img {
        max-width: 260px;
        max-height: 220px;
    }

    .pg-stat {
        padding-right: 18px;
        margin-right: 18px;
    }

    .pg-detail-top {
        flex-direction: column;
    }

    .pg-stickybar .pg-btn {
        padding: 0 14px;
    }
}

@media (max-width: 640px) {
    .pg-grid--2,
    .pg-grid--3,
    .pg-grid--4,
    .pg-blog-grid { grid-template-columns: minmax(0, 1fr); }
    .pg-grid--6 { gap: 10px; }
    .pg-product--tile { padding: 0; gap: 8px; border: 0; box-shadow: none; background: none; }
    .pg-product--tile .pg-product-icon { height: 84px; }
    .pg-product--tile .pg-product-icon img { width: 46px; height: 46px; }
    .pg-product--tile .pg-product-body h3 { font-size: 12px; }
    .pg-product--tile .pg-link { display: none; }
    .pg-grid--team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pg-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pg-card--row { flex-direction: column; }
    .pg-card--row .pg-card-icon { margin-bottom: 4px; }
    .pg-search { flex-basis: 100%; }
    .pg-stats { flex-direction: column; gap: 14px; }
    .pg-stat { padding: 0; margin: 0; border-right: 0; }
    .pg-faq-answer { padding-right: 0; }
    .pg-donut { width: 170px; height: 170px; }
    .pg-donut::after { inset: 28px; }
}

/* -- Legal pages (privacy, terms, disclaimer) ------------------------ */
.pg-container--narrow {
    max-width: 880px;
}

.pg-legal-updated {
    margin: 0 0 8px;
    color: var(--pg-muted);
    font-size: 13px;
}

.pg-legal h2 {
    margin-top: 32px;
    font-size: 20px;
}

.pg-legal h2:first-child {
    margin-top: 0;
}

/* -- Blog list: search centred under the heading, short rows centred - */
.pg-blog-tools {
    justify-content: center;
}

.pg-blog-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.pg-blog-grid .blog-card {
    flex: 0 1 calc((100% - 48px) / 3);
    min-width: 0;
}

@media (max-width: 1100px) {
    .pg-blog-grid .blog-card { flex-basis: calc((100% - 24px) / 2); }
}

@media (max-width: 640px) {
    .pg-blog-grid .blog-card { flex-basis: 100%; }
}

/* -- Blog article: title band in the hero colours -------------------- */
.pg-hero--article {
    display: block;
    min-height: 0;
    padding-top: clamp(28px, 3.5vw, 48px);
    padding-bottom: clamp(28px, 3.5vw, 48px);
}

.pg-hero--article::after {
    display: none;
}

.pg-hero--article h1 {
    max-width: 900px;
    margin: 0 0 14px;
    color: #ffffff;
    font-size: clamp(26px, 3.2vw, 42px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    word-break: break-word;
}

.pg-hero--article .pg-breadcrumb,
.pg-hero--article .pg-breadcrumb a,
.pg-hero--article .pg-meta,
.pg-hero--article .pg-meta i {
    color: rgba(255, 255, 255, 0.82);
}

.pg-hero--article .pg-blog-cat {
    padding: 4px 12px;
    background: #ffffff;
    border-radius: 999px;
}

.pg-hero--article .pg-meta {
    margin-bottom: 0;
}

/* -- Content-page hero on phones: shorter illustration panel --------- */
@media (max-width: 640px) {
    .pg-hero-media {
        padding: 16px 16px 14px;
    }

    .pg-hero-media img {
        max-height: 150px;
    }
}
