/* ============================================================
   Conn Service Block
   ============================================================ */

.itb-block {
    /* padding: 35px 36px;   balanced top/bottom; only the component edges get full 70px */
    padding: 50px 36px 0;
    background: #ffffff;
}

/* ---- Inner grid ---- */
.itb-inner {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

/* Only the last block in a sequence gets bottom spacing */
/* .itb-block:not(:has(+ .itb-block)) .itb-inner {
    padding-bottom: 5rem;
} */

/* Full top spacing only when the itb-block is the very first section of the
   component. If a .bcc-block (or anything else) sits above it, it stays balanced
   at 35px so it doesn't read top-heavy. */
.itb-block:first-child {
    padding-top: 70px;
}
/* Optional extra top padding, per-panel via the "Add padding top" ACF toggle.
   Class selector outranks :first-child, so it also wins on the first block.
   Adjust the value below to taste. */
.itb-block.itb-pad-top {
    padding-top: 80px;
}
/* Bottom padding for the no-background (white) variant only, via the
   "Add padding bottom white" ACF toggle. Background panels use the JS-driven
   data-pad-bottom instead. */
.itb-block.itb-pad-bottom {
    padding-bottom: 80px;
}

/* base bottom padding commented out for now
.itb-block:not(:has(+ .itb-block)):not(:has(+ .bcc-block)) {
    padding-bottom: 70px;
}
*/

/* itb-swap: image on the right, text on the left */
.itb-block.itb-swap .itb-image-wrap { order: 2; }
.itb-block.itb-swap .itb-content    { order: 1; }

/* ---- Gray ellipse — inside .itb-content, top-left corner, behind text ---- */
.deco-gray-ellipse {
    position: absolute;
    top: -24px;
    left: -50px;
    width: 170px;
    height: 170px;
    pointer-events: none;
    z-index: 0;          /* text elements use z-index: 1 to sit above this */

    /* Initial state — hidden and scaled down */
    opacity: 0;
    transform: scale(0.25);
    transform-origin: center;
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Animate to final state when block scrolls into view */
.itb-block.is-visible .deco-gray-ellipse {
    opacity: 1;
    transform: scale(1);
}

/* Swapped layout: content is on the LEFT — keep ellipse at content's top-left */
.itb-block.itb-swap .deco-gray-ellipse {
    left: -30px;         /* smaller overflow so it stays within section padding */
}

/* ---- Image column ---- */
.itb-image-wrap {
    position: relative;
    padding: 20px 0 20px 20px;
    overflow: visible;
    z-index: 1;
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
}

.itb-photo {
    position: relative;
    z-index: 1;
    margin: auto;
    width: auto;
    height: auto;
    display: block;
}

/* Decorative orange ellipse — behind the photo, top-left corner */
.deco-ellipse {
    position: absolute;
    top: -10px;
    left: -25px;
    width: 200px;
    height: 200px;
    pointer-events: none;
    z-index: 0;

    /* Initial state: hidden, shifted outside left edge of image */
    opacity: 0;
    transform: translate(-120px, 0);
    transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1),
                transform 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Swapped layout: image on right → orange ellipse mirrors to top-right */
/* scaleX(-1) flips x-axis, so translate(-120px) moves visually to the RIGHT */
.itb-block.itb-swap .deco-ellipse {
    left: auto;
    right: -25px;
    transform: scaleX(-1) translate(-120px, 0);
}

/* Decorative blue pill — in front of the photo, bottom area */
.deco-rect {
    position: absolute;
    bottom: 60px;
    right: -35px;
    width: 240px;
    height: auto;
    pointer-events: none;
    z-index: 2;

    /* Initial state: hidden, shifted outside right edge of image */
    opacity: 0;
    transform: translate(120px, 0);
    transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1),
                transform 2s cubic-bezier(0.22, 1, 0.36, 1);
    mix-blend-mode: multiply;
}

/* Swapped layout: image on right → blue pill mirrors to bottom-left */
/* scaleX(-1) flips x-axis, so translate(120px) moves visually to the LEFT */
.itb-block.itb-swap .deco-rect {
    right: auto;
    left: -35px;
    transform: scaleX(-1) translate(120px, 0);
    mix-blend-mode: multiply;
}

/* ---- Scroll-in: slide to final positions when block enters viewport ---- */
.itb-block.is-visible .deco-ellipse {
    opacity: 1;
    transform: translate(0, 0);
}
.itb-block.is-visible .deco-rect {
    opacity: 1;
    transform: translate(0, 0);
}
/* Swap overrides — restore scaleX(-1) flip at final position */
.itb-block.is-visible.itb-swap .deco-ellipse {
    opacity: 1;
    transform: scaleX(-1);
}
.itb-block.is-visible.itb-swap .deco-rect {
    opacity: 1;
    transform: scaleX(-1);
}

/* ---- Content column ---- */
.itb-content {
    position: relative;
    z-index: 1;
    overflow: visible; /* allow gray ellipse to overflow beyond the column */
}

/* Text elements sit above the gray ellipse (z-index: 0) */
.itb-content h2 {
    position: relative;
    z-index: 1;
    font-size: clamp(34px, 2.5vw, 44px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 18px;
    color: #0E0D6A;
}

/* WYSIWYG wrapper — styles paragraphs output by the content field */
.itb-body {
    position: relative;
    z-index: 1;
}
.itb-body p {
    font-size: 15px;
    line-height: 1.75;
    color: #05001C;
    margin-bottom: 14px;
}
.itb-body ul {
    list-style: none;
    padding-left: 0;
    margin: 0 0 14px;
}
.itb-body ul li {
    position: relative;
    padding-left: 26px;
    color: #05001C;
    font-size: 15px;
    line-height: 1.75;
    margin-bottom: 8px;
}
.itb-body ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 14px;
    height: 14px;
    background-image: url("../../images/sub_services_new/ArrowCircleRight.svg");
    background-repeat: no-repeat;
    background-size: 14px 14px;
}
.itb-body ol li {
    color: #05001C;
    font-size: 15px;
}
/* ---- Link ---- */
.itb-link {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 600;
    color: #FF7722;
    text-decoration: none;
}
.itb-link:hover { text-decoration: underline; }

/* ---- Background mode ---- */
.itb-block.itb-has-bg {
    background: linear-gradient(to bottom, #05001C, #3051E6); /* fallback / single block */
}

.itb-block.itb-has-bg .itb-content h2,
.itb-block.itb-has-bg .itb-body p,
.itb-block.itb-has-bg .itb-link {
    color: #ffffff !important;
}

.itb-block.itb-has-bg ol li,
.itb-block.itb-has-bg ul li {
    color: #ffffff;
    font-size: 15px;
}
.itb-block.itb-has-bg .itb-body ul li::before {
    background-image: url("../../images/sub_services_new/ArrowCircleRightWhite.svg");
}
.itb-block.itb-has-bg .itb-link:hover { color: #EA5729 !important; text-decoration: underline; }

/* Dim the blue pill so it reads against the dark background */
.itb-block.itb-has-bg .deco-rect {
    filter: brightness(0.7) contrast(1.1);
}

/* ---- Responsive ---- */

/* Tablet */
@media screen and (max-width: 1024px) and (min-width: 769px) {
    .itb-inner {
        gap: 40px;
    }
    /* .deco-gray-ellipse {
        width: 220px;
        height: 220px;
        top: -40px;
        left: -30px;
    } */
    .deco-ellipse {
        width: 160px;
        height: 160px;
    }
    .deco-rect {
        width: 180px;
    }
}

/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .deco-gray-ellipse,
    .deco-ellipse,
    .deco-rect {
        opacity: 1;
        transition: none;
    }
    .deco-gray-ellipse { transform: none; }
    .deco-ellipse      { transform: none; }
    .deco-rect         { transform: none; }
    .itb-block.itb-swap .deco-ellipse { transform: scaleX(-1); }
    .itb-block.itb-swap .deco-rect    { transform: scaleX(-1); }
}

/* Mobile */
@media screen and (max-width: 768px) {
    .itb-block {
        --itb-pad: 30px;
        padding: var(--itb-pad) 36px;
    }
    .itb-block.itb-pad-top {
        padding-top: var(--itb-pad);
    }
    .itb-inner {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* Hide image column and all decorative shapes on mobile */
    .itb-image-wrap,
    .deco-rect {
        display: none;
    }
    .deco-gray-ellipse, .itb-block.itb-swap .deco-gray-ellipse {
        top: 0px;
        left: -9px;
        width: 100px;
        height: 100px;
    }

    /* Reset column ordering on mobile */
    .itb-block.itb-swap .itb-image-wrap { order: 0; }
    .itb-block.itb-swap .itb-content    { order: 0; }

    /* Opt-in via the "Show image on mobile" ACF toggle: reveal the photo and
       place it BELOW the text. Decorative shapes stay hidden so nothing
       overflows on small screens. Overrides the swap resets above. */
    .itb-block.itb-show-mobile-img .itb-image-wrap,
    .itb-block.itb-show-mobile-img.itb-swap .itb-image-wrap {
        display: block;
        order: 2;
        margin-top: 28px;
        padding: 0;
        width: 100%;
    }
    .itb-block.itb-show-mobile-img .itb-content,
    .itb-block.itb-show-mobile-img.itb-swap .itb-content {
        order: 1;
    }
    .itb-block.itb-show-mobile-img .itb-photo {
        width: 100%;
        max-width: 100%;
        height: auto;
    }
    /* Keep the animated decorative shapes hidden even when the photo shows */
    .itb-block.itb-show-mobile-img .deco-ellipse,
    .itb-block.itb-show-mobile-img .deco-rect,
    .itb-block.itb-show-mobile-img .deco-gray-ellipse {
        display: none;
    }
}
@media (min-width: 769px) {
    .bgi-deco-mobile { display: none; }
}

@media (max-width: 768px) {
    /* Overlay the content column — itb-content already has position:relative */
    .bgi-deco-mobile {
        position: absolute;
        inset: 0;
        pointer-events: none;
        overflow: visible;
        z-index: 0;
    }

    .bgi-shape-mobile-blue,
    .bgi-shape-mobile-orange {
        position: absolute;
        opacity: 0;
        transition: transform 1.2s ease, opacity 1.2s ease;
    }

    /* Left edge, upper-middle — mirrors the blue blob in the screenshot */
    .bgi-shape-mobile-blue {
        left: -36px;
        top: 45%;
        width: auto;
        transform: translateX(-80px);
    }

    /* Right edge, lower area — mirrors the orange blob in the screenshot */
    .bgi-shape-mobile-orange {
        right: -36px;
        bottom: 3%;
        width: auto;
        transform: translateX(80px);
    }

    .itb-content.itb-shapes-visible .bgi-shape-mobile-blue,
    .itb-content.itb-shapes-visible .bgi-shape-mobile-orange {
        opacity: 1;
        transform: translateX(0);
    }

    .itb-content.itb-shapes-visible .bgi-shape-mobile-orange {
        transition-delay: 0.8s;
    }
}

/* ============================================================
   Blue Content with Cards (bcc-)
   ============================================================ */

.bcc-block {
    /* padding: 80px 36px; */
    padding: 50px 36px 0;
    background: linear-gradient(to bottom, #05001C, #3051E6);
}

/* Reverse gradient: blue at top, dark blue at the bottom. Per-panel via the "Reverse gradient" ACF toggle. */
.bcc-block.bcc-reverse-gradient {
    background: linear-gradient(to bottom, #3051E6, #05001C) !important;
}

/* Optional extra top padding, per-panel via the "Add padding top" ACF toggle. */
.bcc-block.bcc-pad-top {
    padding-top: 80px;
}

.bcc-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

/* ---- Section heading ---- */

.bcc-title {
    font-size: clamp(34px, 3.5vw, 52px);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 24px;
    max-width: 800px;
    margin-inline: auto;
}

/* ---- Body text above cards ---- */

.bcc-content-1 {
    font-size: 15px;
    line-height: 1.75;
    color: #ffffff;
    max-width: 740px;
    margin: 0 auto 8px;
}

.bcc-content-1 p {
    margin: 0 0 14px;
}

.bcc-content-1 p:last-child {
    margin-bottom: 0;
}

/* ---- Subtitle (e.g. "Common use cases include:") ---- */

.bcc-subtitle {
    font-size: 30px;
    font-weight: 700;
    color: #ffffff;
    margin: 40px 0;
}

/* ---- Cards grid ---- */

.bcc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* default: 3 cols */
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 40px;
    text-align: left;
}

/* 2 cards */
.bcc-grid[data-count="2"] {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* 4 cards: 2×2 by default */
.bcc-grid[data-count="4"] {
    grid-template-columns: repeat(2, 1fr);
    /* max-width: 941px;
    margin-left: auto;
    margin-right: auto; */
}

/* 4 cards: single row when cards_layout ACF field = "row" */
.bcc-grid[data-count="4"][data-layout="row"] {
    grid-template-columns: repeat(4, 1fr);
}

/* 5 cards: 3 on top, 2 centered below (6-col base trick) */
.bcc-grid[data-count="5"] {
    grid-template-columns: repeat(6, 1fr);
}

.bcc-grid[data-count="5"] .bcc-card {
    grid-column: span 2;
}

.bcc-grid[data-count="5"] .bcc-card:nth-child(4) {
    grid-column: 2 / span 2;
}

.bcc-grid[data-count="5"] .bcc-card:nth-child(5) {
    grid-column: 4 / span 2;
}

/* 6 cards: 3×2 (same as default 3-col) */
.bcc-grid[data-count="6"] {
    grid-template-columns: repeat(3, 1fr);
}

/* 7 cards: 4 on top, 3 centered below.
   Flexbox (not grid) so the trailing row auto-centers under the top row. */
.bcc-grid[data-count="7"] {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    /* gap: 20px inherited from .bcc-grid */
}

.bcc-grid[data-count="7"] .bcc-card {
    /* 4 per row — subtract the 3 gaps (3 × 20px) between them */
    width: calc((100% - 60px) / 4);
    box-sizing: border-box; /* width must include the card's padding + border */
}

/* ---- Card ---- */

.bcc-card {
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 30px;
    padding: 28px;
    gap: 16px;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    /* entrance animation */
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.bcc-card:nth-child(1) { transition-delay: 0s; }
.bcc-card:nth-child(2) { transition-delay: 0.08s; }
.bcc-card:nth-child(3) { transition-delay: 0.16s; }
.bcc-card:nth-child(4) { transition-delay: 0.24s; }
.bcc-card:nth-child(5) { transition-delay: 0.32s; }
.bcc-card:nth-child(6) { transition-delay: 0.40s; }
.bcc-card:nth-child(7) { transition-delay: 0.48s; }

.bcc-grid.is-visible .bcc-card {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .bcc-card {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ---- Card icon ---- */

.bcc-card-icon {
    flex-shrink: 0;
}

.bcc-card-icon img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    display: block;
}

/* ---- Card header ---- */

.bcc-card-header {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
}

/* ---- Card content (WYSIWYG) ---- */

.bcc-card-content {
    font-size: 14px;
    line-height: 1.75;
    color: #FFFFFF;
    flex: 1;
}

.bcc-card-content p {
    margin: 0 0 10px;
}

.bcc-card-content p:last-child {
    margin-bottom: 0;
}

.bcc-card-content a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
}

/* ---- Body text below cards ---- */

.bcc-content-2 {
    font-size: 15px;
    line-height: 1.75;
    color: #FFFFFF;
    max-width: 740px;
    margin: 0 auto;
}

.bcc-content-2 p {
    margin: 0 0 14px;
}

.bcc-content-2 p:last-child {
    margin-bottom: 0;
}

.small-logo-megaport {
    position: absolute;
    bottom: 0;
    height: 28px;
    margin-left: 5px;
}

.itb-block.itb-has-bg.itb-reverse-gradient {
    background: linear-gradient(to top, #05001C 0%, #3051E6 100%) !important;
}

/* ---- Tablet (769–1100px) ---- */

@media screen and (min-width: 769px) and (max-width: 1100px) {

    .bcc-grid[data-count="4"],
    .bcc-grid[data-count="4"][data-layout="row"] {
        grid-template-columns: repeat(2, 1fr);
    }

    .bcc-grid[data-count="5"],
    .bcc-grid[data-count="6"] {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Reset 5-card special positioning */
    .bcc-grid[data-count="5"] .bcc-card,
    .bcc-grid[data-count="5"] .bcc-card:nth-child(4),
    .bcc-grid[data-count="5"] .bcc-card:nth-child(5) {
        grid-column: auto;
    }

    /* 7 cards: 2 per row on tablet */
    .bcc-grid[data-count="7"] .bcc-card {
        width: calc((100% - 20px) / 2);
    }
}

/* ---- Mobile (≤768px) ---- */

@media screen and (max-width: 768px) {

    .bcc-block {
        padding: 56px 20px 20px;
    }

    .bcc-grid,
    .bcc-grid[data-count="2"],
    .bcc-grid[data-count="4"],
    .bcc-grid[data-count="4"][data-layout="row"],
    .bcc-grid[data-count="5"],
    .bcc-grid[data-count="6"] {
        gap: 16px;
        max-width: none;
    }

    /* Single column by default (and for 5 cards) */
    .bcc-grid,
    .bcc-grid[data-count="5"] {
        grid-template-columns: 1fr;
    }

    /* Two columns for 2, 4 and 6 cards */
    .bcc-grid[data-count="2"],
    .bcc-grid[data-count="4"],
    .bcc-grid[data-count="4"][data-layout="row"],
    .bcc-grid[data-count="6"] {
        /* grid-template-columns: repeat(2, 1fr); */
        grid-template-columns: 1fr;
    }

    /* Reset 5-card special positioning */
    .bcc-grid[data-count="5"] .bcc-card,
    .bcc-grid[data-count="5"] .bcc-card:nth-child(4),
    .bcc-grid[data-count="5"] .bcc-card:nth-child(5) {
        grid-column: auto;
    }

    /* 7 cards: 1 per row on mobile */
    .bcc-grid[data-count="7"] .bcc-card {
        width: 100%;
    }

    .bcc-card {
        transition-delay: 0s !important;
        padding: 18px;
    }

    .bcc-subtitle {
        margin-bottom: 28px;
    }
}

/* ============================================================
   Circle Feature Grid (cfg-)
   ============================================================ */

.cfg-block {
    /* padding: 90px 36px; */
    padding: 50px 36px 0;
    background: linear-gradient(to bottom, #05001C, #3051E6);
}

/* Optional extra top padding, per-panel via the "Add padding top" ACF toggle. */
.cfg-block.cfg-pad-top {
    padding-top: 80px;
}

.cfg-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 56px;
    text-align: center;
}

/* ---- Header ---- */

.cfg-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 770px;
}

.cfg-title {
    font-size: clamp(30px, 3.2vw, 44px);
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    margin: 0;
}

.cfg-subtitle {
    font-size: clamp(14px, 1.3vw, 16px);
    font-weight: 700;
    line-height: 1.5;
    color: #ffffff;
    max-width: 600px;
    margin: 0 auto;
}

/* ---- Circles row ---- */

.cfg-circles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 0;
    row-gap: 40px;
    width: 100%;
    max-width: 1100px;
}

.cfg-circle-wrap {
    position: relative;
    width: 101%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;

    /* Entrance animation: appear from bottom to top */
    opacity: 0;
    transform: translateY(48px);
    transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.cfg-circles.is-visible .cfg-circle-wrap {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .cfg-circle-wrap {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Decorative arcs — faint halo ring behind the circle + a small colored arc */
.cfg-arc {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 1;
}

.cfg-arc-halo {
    top: 0;
    width: 101%;
    height: 50%;
}

.cfg-circle-wrap.cfg-alt .cfg-arc-halo {
    top: auto;
    bottom: 0;
    transform: translateX(-50%) scaleY(-1);
}

.cfg-arc-small {
    bottom: 0;
    width: 82.5%;
    height: 20%;
}

.cfg-circle-wrap.cfg-alt .cfg-arc-small {
    bottom: auto;
    top: 0;
}

/* ---- Circle ---- */

.cfg-circle {
    position: relative;
    z-index: 2;
    width: 83%;
    aspect-ratio: 1 / 1;
    box-sizing: border-box;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7%;
    padding: 10%;
    text-align: center;
}

.cfg-icon {
    height: auto;
    object-fit: contain;
}

.cfg-label {
    font-size: clamp(14px, 1.55vw, 18px);
    font-weight: 700;
    line-height: 1.2;
    color: #05001C;
    max-width: 100%;
    margin: 0;
}

/* ---- Powered by ---- */

.cfg-powered {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

.cfg-powered-label {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}

.cfg-powered-logo {
    height: 32px;
    width: auto;
    display: block;
}

/* ---- Closing text ---- */

.cfg-closing {
    font-size: 16px;
    line-height: 1.7;
    color: #ffffff;
    max-width: 680px;
    margin: 0 auto;
}

.cfg-closing p {
    margin: 0 0 14px;
}

.cfg-closing p:last-child {
    margin-bottom: 0;
}

/* ---- Tablet ---- */

@media screen and (min-width: 769px) and (max-width: 1100px) {
    .cfg-circles {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 40px;
        row-gap: 56px;
        max-width: 560px;
    }
}

/* ---- Mobile ---- */

@media screen and (max-width: 768px) {
    .cfg-block {
        padding: 56px 24px;
    }

    .cfg-inner {
        gap: 40px;
    }

    .cfg-header {
        gap: 16px;
    }

    .cfg-circles {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 48px;
        /* max-width: 280px; */
    }

    .cfg-powered {
        gap: 12px;
    }
}

/* ============================================================
   CTA Panel (cta-)
   ============================================================ */

.cta-block {
    position: relative;
    padding: 80px 20px;
    color: #fff;
    text-align: center;
    /* Fallback dark bg in case the gradient JS hasn't run yet */
    background: linear-gradient(to bottom, #05001C, #3051E6);
}

.cta-inner {
    max-width: 938px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.cta-title {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(28px, 3.6vw, 52px);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.15;
    margin: 0;
}

/* Button look comes from the theme's global .btn .button .orange-button classes */
.cta-btn-wrap {
    display: flex;
    justify-content: center;
}

/* ---- Mobile ---- */
@media screen and (max-width: 768px) {
    .cta-block {
        padding: 55px 25px 20px;
    }
}
@media (min-width: 769px) and (max-width: 1440px) {
    .bgi-block {
            width: 76.4%;
    }
}

/* ============================================================
   ORIGINAL (pre-change) decorative-shape rules — kept for reference.
   These anchored .itb-image-wrap to the full grid column, which made the
   orange ellipse / blue pill drift on narrower (e.g. 1280) laptop screens.
   Replaced by the photo-hugging wrap + photo-relative offsets above.
   ============================================================

.itb-image-wrap {
    position: relative;
    padding: 20px 0 20px 20px;
    overflow: visible;
    z-index: 1;
}

.deco-ellipse {
    position: absolute;
    top: 20px;
    left: 35px;
    width: 200px;
    height: 200px;
    pointer-events: none;
    z-index: 0;

    opacity: 0;
    transform: translate(-120px, 0);
    transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1),
                transform 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.itb-block.itb-swap .deco-ellipse {
    left: auto;
    right: 0;
    transform: scaleX(-1) translate(-120px, 0);
}

.deco-rect {
    position: absolute;
    bottom: 60px;
    right: 55px;
    width: 240px;
    height: auto;
    pointer-events: none;
    z-index: 2;

    opacity: 0;
    transform: translate(120px, 0);
    transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1),
                transform 2s cubic-bezier(0.22, 1, 0.36, 1);
    mix-blend-mode: multiply;
}

.itb-block.itb-swap .deco-rect {
    right: auto;
    left: 60px;
    transform: scaleX(-1) translate(120px, 0);
    mix-blend-mode: multiply;
}

   ============================================================ */