/* ══════════════════════════════════════════════════════════════
   personalPrivateSegment.cshtml page-specific overrides
   Moved out of that view's inline <style> block (same cascade position:
   linked right after the shared PersonalSegmentsPrivate.css, so these
   still win the same way they did inline). Content/order unchanged.
   ══════════════════════════════════════════════════════════════ */
        .Personal_Segment_CTA_Desc {
            max-width: 60%;
        }
        .Hero_Desc {
            font-size: 24px;
        }

        .Hero_Content {
            max-width: 70%;
        }

        .Hero_Title {
            flex-direction: row;
            margin: 0px !important;
            font-size: 48px;
            font-weight: 400;
            color: #ffffff;
            line-height: 1.12;
            display: flex;
            gap: 10px;
        }
        .offer-card__icon {
            background-color: #FFFFFF33;
        }

            .offer-card__icon img {
                width: 70%;
            }
            .offer-card__icon {
            padding: 5px;
        }
       
        /* Section pattern, keeping the existing #f5f8fc as the base colour. The SVG
           carries its own 0.1 opacity, so it needs no extra dimming. */
        .principles-section {
            background-color: #f5f8fc;
            background-image: url("/assets/NewFolder/private_pattern.svg");
            background-repeat: no-repeat;
            background-position: right bottom;
        }

        /* ── PRINCIPLES: three per row, an incomplete last row centres itself ──
           Flex rather than the shared 3-column grid, so the two leftover cards sit
           in the middle as in the design instead of hugging the left edge. */
        .principles-grid {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 16px;
        }

            .principles-grid .principle-card {
                flex: 0 0 calc((100% - 32px) / 3);
                max-width: calc((100% - 32px) / 3);
            }

        /* ── OFFERS: light green cards on white, replacing the navy panel ── */
        .offers-section {
            background: #FFFFFF;
        }

            /* The heading carries .white-c, which would be invisible on white */
            .offers-section .white-c,
            .offers-section .section-desc {
                color: #124734;
            }

            .offers-section .offer-card {
                    align-items: center;
                background: #1247341F;
                border: 1px solid #12473499;
                color: #124734;
            }

                .offers-section .offer-card:hover {
                    background: #1247342E;
                }

            .offers-section .offer-card__text {
                color: #124734;
            }

            /* The icons are white glyphs, so the chip stays dark to keep them legible */
            .offers-section .offer-card__icon {
                    border: 1px solid #12473480;
                    background-color: #124734C4;
            } 

            .offers-section .offer-TitleBox {
                color: #124734;
                background: #1247341F;
            }

            .offers-section .offer-dot {
                background-color: #124734;
            }

        /* The shared sheet drops these grids to 2 and 1 columns with
           grid-template-columns, which a flex container ignores — restated here. */
        @media (max-width: 991.98px) {
            .principles-grid .principle-card {
                flex-basis: calc((100% - 16px) / 2);
                max-width: calc((100% - 16px) / 2);
            }
        }

        @media (max-width: 575.98px) {
            .principles-grid .principle-card {
                flex-basis: 100%;
                max-width: 100%;
            }
        }

        /* ── CTA: photo + #124734B2 wash ──
           The gradient overlay rides in the inline background-image; this only sizes
           it and replaces the shared navy gradient with flat green as the fallback
           for a page with no ctaImg set. */
        .Personal_Segment_CTA--private {
            background: #124734;
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
        }

        /* ── Image cards fill their box ──
           GeneralStyle gives .sb-img-card a fixed 400px height and then an
           aspect-ratio per position (4/3 first child, 3/3 last), so the right-hand
           card resolves to a different height than the photo inside it and the image
           stops short. Dropping the ratio makes both columns exactly 400px, and
           cover fills them without the stretching object-fit: fill caused. */
        .sb-img-grid .sb-img-card:first-child,
        .sb-img-grid .sb-img-card:last-child {
            aspect-ratio: auto;
            height: 400px;
        }
/*@media (max-width: 900px) {
    .sb-img-grid .sb-img-card:first-child,
    .sb-img-grid .sb-img-card:last-child {
        height: auto;
        aspect-ratio: 16 / 9;
    }
}*/
            .sb-img-card img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                display: block;
            }

        /* ── PARTNERSHIPS, OFFERS & CAMPAIGNS ──
           Same section as primeSegments.cshtml — .pp-partners carries the unified
           30px/15px section padding and the title reuses .Bluetitle, both wired
           through GeneralStyle.css's shared selector lists. Only the offer card's
           wash is page-specific: green (#124734) here instead of prime's purple. */
        .pp-partners {
            background: #FFFFFF;
        }

        .pp-partners__grid {
            display: grid;
            grid-template-columns: 2fr 1fr;
            gap: 16px;
            align-items: stretch;
        }

        /* The button lives inside the left column (not spanning the full grid), so
           this column and .pp-offer-card are the two grid items in the same row —
           grid's default stretch then makes them the same height automatically. */
        .pp-partners__left {
            display: flex;
            flex-direction: column;
            gap: 24px;
        }

        .pp-partners__cards {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 16px;
        }

        .pp-partner-card {
            border: 1px solid #CBCBCB;
            border-radius: 16px;
            padding: 20px;
            background: #fff;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .pp-partner-card__logo {
            width: 44px;
            height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 10px;
            background: #F0F0F0;
        }

            .pp-partner-card__logo img {
                max-width: 100%;
                max-height: 100%;
                object-fit: contain;
            }

            .pp-partner-card__logo i {
                font-size: 18px;
                color: #124734;
            }

        .pp-partner-card__title {
            margin: 0;
            color: #003B70;
            font-family: Co Headline;
            font-weight: 400;
            font-size: 16px;
        }

        .pp-partner-card__desc {
            margin: 0;
            color: #5F6674;
            font-family: Co Headline;
            font-weight: 300;
            font-size: 14px;
            line-height: 1.5;
        }

        /* Offers & Campaigns card — same green wash as this page's own CTA (#124734) */
        .pp-offer-card {
            background: #124734;
            border-radius: 16px;
            padding: 24px;
            display: flex;
            flex-direction: column;
            gap: 12px;
            color: #fff;
            position: relative;
            overflow: hidden;
        }

            .pp-offer-card > * {
                position: relative;
                z-index: 1;
            }

            .pp-offer-card::after {
                filter: brightness(0) invert(1);
                content: "";
                position: absolute;
                inset: 0;
                background-image: url("/assets/NewFolder/EG_BANK_LINES.svg");
                background-repeat: no-repeat;
                background-position: center bottom;
                background-size: 220% 18%;
                opacity: 0.5;
                mix-blend-mode: screen;
                pointer-events: none;
            }

        .pp-offer-card__icon {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: #FFFFFF26;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            color: #fff;
        }

            .pp-offer-card__icon img {
                max-width: 60%;
                max-height: 60%;
                object-fit: contain;
            }

        .pp-offer-card__title {
            margin: 0;
            font-family: Co Headline;
            font-weight: 400;
            font-size: 20px;
        }

        .pp-offer-card__desc {
            margin: 0;
            font-family: Co Headline;
            font-weight: 400;
            font-size: 14px;
            line-height: 1.5;
            opacity: 0.85;
        }

        /* Sizing (font-size/padding/width) for both buttons below comes from the
           shared .ButtonClass group in GeneralStyle.css — only color/shape here. */
        .pp-offer-card__btn,
        .pp-partners__explore-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 999px;
            background: #8BDC64;
            color: #F7FAFA;
            font-weight: 700;
            text-transform: uppercase;
            text-decoration: none;
            text-align: center;
            transition: opacity var(--transition-fast, 0.2s ease);
        }

            .pp-offer-card__btn:hover,
            .pp-partners__explore-btn:hover {
                opacity: 0.88;
                color: #F7FAFA;
            }

        .pp-offer-card__btn {
            align-self: flex-start !important;
        }

        .pp-partners__footer {
            display: flex;
            justify-content: end;
        }

        /* Mobile carousel arrows — same control as Cards.css's .cards-cards-nav /
           .cards-cards-nav__btn (navy chip, chevron, greys out via .hidden at the
           scroll ends), reused here under its own pp- names per this page's prefix. */
        .pp-partners__nav {
            display: none;
            justify-content: center;
            align-items: center;
            gap: 12px;
            margin-top: 12px;
        }

        .pp-partners__nav-btn {
            flex-shrink: 0;
            width: 44px;
            height: 44px;
            border: none;
            border-radius: 10px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            background: #003B70;
            color: #fff;
            cursor: pointer;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
            transition: background-color 0.3s;
        }

            .pp-partners__nav-btn.hidden {
                background: #DDDDDD;
                cursor: not-allowed;
            }

        @media (max-width: 768px) {
            .pp-partners__grid {
                display: flex;
                flex-direction: column;
            }

            .pp-partners__left {
                gap: 20px;
            }

            .pp-partners__cards {
                display: flex;
                flex-wrap: nowrap;
                overflow-x: auto;
                scroll-snap-type: x mandatory;
                -webkit-overflow-scrolling: touch;
                scrollbar-width: none;
                gap: 12px;
                padding-bottom: 4px;
            }

                .pp-partners__cards::-webkit-scrollbar {
                    display: none;
                }

                .pp-partners__cards .pp-partner-card {
                    flex: 0 0 85%;
                    scroll-snap-align: start;
                }

            .pp-partners__nav {
                display: flex;
            }

            .pp-partners__nav-btn {
                width: 35px;
                height: 35px;
                font-size: 14px;
            }

            .pp-partners__footer {
                justify-content: center;
            }
        }

        @media (max-width: 768px) {
            .Personal_Segment_CTA_Desc {
                max-width: 100% !important;
            }
          /*  .Hero_ImgWrapper img {
                object-position: 60% center !important;
            }*/
            .Hero_Desc {
                font-size: 14px;
            }

            .Hero_Content {
                max-width: 100% !important;
            }

           /*  .Hero_Section {
                height: 600px !important;
                min-height: 280px;
                padding: 35px 15px;
                margin-top: 80px;
            } */

            .Hero_Title {
                flex-direction: column;
                margin: 0px !important;
                font-size: 24px;
                font-weight: 400;
                color: #ffffff;
                line-height: 1.12;
                display: flex;
                gap: 7px;
            }
        }
