/* ============================================================
   fintech.css  –  custom values outside Tailwind's default
   scale + ALL responsive overrides (no max-* Tailwind needed)
   ============================================================ */

/* ── prevent any child from blowing out the viewport ── */
.fintech-page {
    overflow-x: hidden;
    width: 100%;
}
/* Decorative dotted background artwork — 1305 × 735 px, pinned to the top-right */
.ind-hero-bg {
    position: absolute;
    top: 100px;
    /* right: 0px; */
    left: 630px;
    width: 1305px;
    height: 735px;
    max-width: none;
    opacity: 1;
    transform: rotate(0deg);
    pointer-events: none;
    user-select: none;
    z-index: 0;
}
.fintech-page .hero-section {
    position: relative;
    overflow: hidden;
}

.hero-max-w {
    position: relative;
    z-index: 1;
    max-width: 992px;
}
/* ============================================================
   TYPOGRAPHY TOKENS
   ============================================================ */
.text-display {
    font-size: 90px;
    line-height: 83px;
    letter-spacing: 0;
}

.banner-heading { font-size: 53px; line-height: 53px; }
.banner-body    { font-size: 30px; line-height: 30px; }

.convenience-body { font-size: 30px; line-height: 30px; }

.body-25 { font-size: 25px; line-height: 110%; letter-spacing: 0; }
.body-22 { font-size: 22px; line-height: 160%; letter-spacing: 0; }

.btn-label { font-size: 22.17px; line-height: 100%; }

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.hero-max-w      { max-width: 992px; }
.banner-heading-w{ max-width: 247px; }
.banner-body-w   { max-width: 845px; }

/* ---- Micro Bank image strip ---- */
.micro-images-wrap {
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 60px;
    margin-top: 80px;
    margin-bottom: 140px;
    overflow: visible;
}
.micro-img-top  { position: relative; flex-shrink: 0; z-index: 1; }
.micro-img-mid  { position: relative; flex-shrink: 0; z-index: 2; }
.micro-img-raised {
    position: relative;
    bottom: 290px;
    flex-shrink: 0;
    z-index: 1;
}

/* ---- Wallet purple card ---- */
.wallet-card {
    position: relative;
    width: 820px;
    height: 836px;
    background-color: #4026B8;
    border-radius: 24px;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wallet-glow-tl {
    position: absolute;
    right: 600px; bottom: 600px;
    width: 280px; height: 280px;
    background: rgba(145,31,205,.53);
    border-radius: 50%;
    filter: blur(75.85px);
    z-index: 0;
    pointer-events: none;
}
.wallet-glow-br {
    position: absolute;
    top: 600px; right: 0;
    width: 280px; height: 280px;
    background: rgba(145,31,205,.53);
    border-radius: 50%;
    filter: blur(75.85px);
    z-index: 0;
    pointer-events: none;
}
.wallet-img {
    position: relative;
    z-index: 1;
    width: 782px;
    height: 667px;
    object-fit: contain;
    display: block;
}

/* ---- Core Banking 2×2 grid ---- */
.grid-row   { display: flex; gap: 20px; }
.grid-row-1 { align-items: flex-end;   margin-bottom: 20px; }
.grid-row-2 { align-items: flex-start; }

/* ---- CTA button ---- */
.cta-btn {
    width: 326px;
    height: 61px;
    background-color: #4026B8;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}

/* ============================================================
   RESPONSIVE  — tablet  ≤ 1024 px
   ============================================================ */
@media (max-width: 1024px) {

    /* Typography scale down */
    .text-display    { font-size: 60px; line-height: 64px; }
    .banner-heading  { font-size: 38px; line-height: 42px; }
    .banner-body     { font-size: 20px; line-height: 26px; }
    .convenience-body{ font-size: 20px; line-height: 26px; }
    .body-25         { font-size: 18px; }
    .body-22         { font-size: 18px; }

    /*
     * Hero padding fix — TWO-class selector (.fintech-page .hero-section)
     * gives specificity (0,2,0) which beats Tailwind's single arbitrary
     * class (0,1,0) regardless of stylesheet load order. No !important needed.
     */
    /* navbar is 110px tall + 50px breathing room = 160px */
    .fintech-page .hero-section {
        padding-top: 160px;
        padding-bottom: 80px;
        padding-left: 40px;
        padding-right: 40px;
    }
    .hero-max-w { max-width: 100%; }

    /* Banner – stack vertically */
    .banner-section {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 24px !important;
        padding-left: 40px !important;
        padding-right: 40px !important;
    }
    .banner-heading-w,
    .banner-body-w   { max-width: 100%; }

    /* Generic content sections */
    .content-section {
        padding-left: 40px !important;
        padding-right: 40px !important;
        padding-top: 80px !important;
    }
    .content-section-with-bottom {
        padding-left: 40px !important;
        padding-right: 40px !important;
        padding-top: 80px !important;
        padding-bottom: 80px !important;
    }

    /* Two-col layouts → stack */
    .two-col-layout {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    .two-col-layout > * { max-width: 100% !important; width: 100% !important; }

    /* Micro Bank images – disable stagger, wrap */
    .micro-images-wrap {
        flex-wrap: wrap;
        justify-content: center;
        overflow: hidden;
        margin-bottom: 80px;
    }
    .micro-img-raised { bottom: 0; }
    .micro-img-top img,
    .micro-img-mid img,
    .micro-img-raised img {
        width: 100% !important;
        max-width: 480px !important;
        height: auto !important;
    }

    /* Wallet card */
    .wallet-card {
        width: 100% !important;
        height: auto !important;
        padding: 48px 24px !important;
    }
    .wallet-img {
        width: 100% !important;
        height: auto !important;
    }

    /* Core Banking image grid */
    /* Core Banking image grid — force equal 2×2 squares */
    .grid-row {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    .grid-row-1 { margin-bottom: 20px !important; }
    .grid-row img {
        width: 100% !important;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        height: auto !important;
        border-radius: 1rem !important;
    }

/* Digital Transformation images — 2 up top, 1 centered below */
    .transform-images-wrap {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        width: 100% !important;
    }
    .transform-images-wrap > div:first-child {
        grid-column: 1;
        grid-row: 1;
    }
    .transform-right-col {
        display: contents;
    }
    .transform-right-col img:first-of-type {
        grid-column: 2;
        grid-row: 1;
    }
    .transform-right-col img:last-of-type {
        grid-column: 1 / -1;
        grid-row: 2;
        max-width: 280px;
        margin: 0 auto;
    }
    .transform-images-wrap img {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1 / 1;
        object-fit: cover;
    }

    /* Why Choose */
    .why-section {
        padding-left: 40px !important;
        padding-right: 40px !important;
        padding-top: 80px !important;
        padding-bottom: 80px !important;
    }
}
@media (min-width: 1025px) and (max-width: 1535px) {

    .fintech-page .hero-section,
    .banner-section,
    .content-section,
    .content-section-with-bottom,
    .why-section {
        padding-left: 60px !important;
        padding-right: 60px !important;
    }
/* ---- Micro Bank heading/paragraph row — stack vertically ---- */
    .micro-section .two-col-layout {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 20px !important;
    }
    .micro-section .two-col-layout > div:first-child,
    .micro-section .two-col-layout > div:last-child {
        max-width: 100% !important;
    }
    .two-col-layout {
        gap: 40px !important;
    }

    /* ---- Core Banking (unchanged, already working) ---- */
    .grid-row img { width: auto !important; height: auto !important; }
    .grid-row-1 img:first-child { width: 300px !important; height: 286px !important; }
    .grid-row-1 img:last-child  { width: 158px !important; height: 286px !important; }
    .grid-row-2 img:first-child { width: 204px !important; height: 200px !important; }
    .grid-row-2 img:last-child  { width: 254px !important; height: 200px !important; }

    /* ---- Micro Bank: scale 3-image row down to fit ---- */
    .micro-images-wrap {
        gap: 30px !important;
        margin-top: 50px !important;
        margin-bottom: 90px !important;
    }
    .micro-img-top img,
    .micro-img-raised img {
        width: 348px !important;
        height: 281px !important;
    }
    .micro-img-mid img {
        width: 403px !important;
        height: 499px !important;
    }
    .micro-img-raised {
        bottom: 214px !important;
    }

    /* ---- Wallet Application ---- */
    .wallet-card {
        width: 480px !important;
        height: 489px !important;
    }
    .wallet-img {
        width: 458px !important;
        height: 391px !important;
    }
    .wallet-section .two-col-layout > div:first-child,
    .wallet-section .two-col-layout > div:first-child h2,
    .wallet-section .two-col-layout > div:first-child p {
        max-width: 460px !important;
    }

    /* ---- Digital Transformation ---- */
    .transform-images-wrap { gap: 16px !important; }
    .transform-right-col   { gap: 16px !important; }
    .transform-images-wrap > div:first-child img { width: 260px !important; height: 279px !important; }
    .transform-right-col img:first-child          { width: 260px !important; height: 279px !important; }
    .transform-right-col img:last-child           { width: 288px !important; height: 315px !important; }
    .transform-section .two-col-layout > div:first-child,
    .transform-section .two-col-layout > div:first-child h2,
    .transform-section .two-col-layout > div:first-child p {
        max-width: 460px !important;
    }
}
/* ============================================================
   RESPONSIVE  — phone  ≤ 640 px
   ============================================================ */
@media (max-width: 640px) {

    /* Typography scale down further */
    .text-display    { font-size: 36px; line-height: 40px; }
    .banner-heading  { font-size: 28px; line-height: 34px; }
    .banner-body     { font-size: 16px; line-height: 22px; }
    .convenience-body{ font-size: 16px; line-height: 22px; }
    .body-25         { font-size: 15px; }
    .body-22         { font-size: 15px; }

    /* navbar is 110px tall + 30px breathing room = 140px */
    .fintech-page .hero-section {
        padding-top: 140px;
        padding-bottom: 48px;
        padding-left: 20px;
        padding-right: 20px;
    }

    /* Banner */
    .banner-section {
        padding-left: 20px !important;
        padding-right: 20px !important;
        padding-top: 28px !important;
        padding-bottom: 28px !important;
    }

    /* Content sections */
    .content-section,
    .content-section-with-bottom {
        padding-left: 20px !important;
        padding-right: 20px !important;
        padding-top: 48px !important;
    }
    .content-section-with-bottom { padding-bottom: 48px !important; }

    /* Micro Bank – vertical stack */
    .micro-images-wrap {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        margin-top: 32px;
        margin-bottom: 48px;
    }
    .micro-img-raised { bottom: 0; }
    .micro-img-top img,
    .micro-img-mid img,
    .micro-img-raised img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }

    /* Core Banking – single column */
    .grid-row          { flex-direction: column; }
    .grid-row img      { width: 100% !important; height: auto !important; flex: none; }
    .grid-row-1        { margin-bottom: 12px; }

    /* Transformation images – single column */
    .transform-images-wrap { flex-direction: column !important; }

    /* CTA button */
    .cta-btn { width: 100%; max-width: 326px; }

    /* Why section */
    .why-section {
        padding-left: 20px !important;
        padding-right: 20px !important;
        padding-top: 48px !important;
        padding-bottom: 48px !important;
    }
}