/*
==========================================================
FLEXIBLE CONTENT SECTION — flexible_content.css
==========================================================
WHAT IT IS:
A flexible, multi-layout content section block for
homepages and internal pages.

WHAT IT DOES:
Renders a full content section with optional eyebrow,
heading, body copy, media (image or video), repeater
items (stats, cards, linked cards), CTA buttons, and
background style. Supports 4 layout modes: centered,
split, cards-grid, and stats-row.

HOW TO USE:
1. Add the Flexible Content Section block to any page
2. Choose a layout mode from the Layout tab
3. Fill in heading and body copy in the Content tab
4. Optionally add media, items, and CTA buttons
5. Choose a background style from the Style tab
6. Save and preview

All values use boilerplate CSS tokens from style.css.
==========================================================
*/


/* ── Base Block ─────────────────────────────────────────────── */

.flexible_content_section {
    padding: var(--space-20) 0;
    background-color: var(--color-bg);
}

.fcs_content {
    width: 100%;
}

.fcs_eyebrow {
    font-size: var(--text-sm);
    font-weight: var(--weight-semi);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin-bottom: var(--space-3);
}

.fcs_heading {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: var(--weight-bold);
    color: var(--color-primary);
    margin-top: 0;
    margin-bottom: var(--space-5);
}

.fcs_body {
    font-size: var(--text-md);
    color: var(--color-text);
    margin-bottom: var(--space-6);
}

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

.fcs_ctas {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-top: var(--space-6);
}

.fcs_media {
    margin-top: var(--space-8);
    width: 100%;
}

.fcs_media img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    display: block;
}

.fcs_items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-6);
    margin-top: var(--space-10);
    width: 100%;
}

.fcs_item {
    background-color: var(--color-bg-alt);
    border-radius: var(--radius-md);
    padding: var(--space-6);
}

.fcs_item_number {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    font-weight: var(--weight-bold);
    color: var(--color-accent);
    margin-bottom: var(--space-2);
    line-height: 1;
}

.fcs_item_heading {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: var(--weight-semi);
    color: var(--color-primary);
    margin: 0 0 var(--space-3) 0;
}

.fcs_item_text {
    font-size: var(--text-base);
    color: var(--color-text-muted);
    margin-bottom: var(--space-4);
    line-height: var(--leading-normal);
}

.fcs_item_media {
    margin-bottom: var(--space-4);
}

.fcs_item_media img {
    display: block;
    width: 100%;
    max-width: 120px;
    height: auto;
    border-radius: var(--radius-sm);
}

.fcs_item_link {
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: var(--weight-semi);
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.fcs_item_link:hover {
    color: var(--color-accent-hover);
    text-decoration: underline;
}


/* ── Layout Variants — AFTER base block rule ─────────────────── */

/* Centered */
.fcs_layout_centered .fcs_wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fcs_layout_centered .fcs_content {
    max-width: 800px;
    text-align: center;
}

.fcs_layout_centered .fcs_ctas {
    justify-content: center;
}

/* Split */
.fcs_layout_split .fcs_split_row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--space-12);
}

.fcs_layout_split .fcs_content {
    flex: 1;
}

.fcs_layout_split .fcs_media {
    flex: 1;
    margin-top: 0;
}

/* Split — media position controls left/right */
.fcs_layout_split.fcs_media_right .fcs_split_row {
    flex-direction: row;
}

.fcs_layout_split.fcs_media_left .fcs_split_row {
    flex-direction: row-reverse;
}

/* Split — items always render full-width below the split row */
.fcs_layout_split .fcs_items {
    margin-top: var(--space-10);
    width: 100%;
}

/* Cards Grid */
.fcs_layout_cards_grid .fcs_items {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* Stats Row */
.fcs_layout_stats_row .fcs_items {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-8) 0;
    gap: 0;
}

.fcs_layout_stats_row .fcs_item {
    background: transparent;
    border-radius: 0;
    flex: 1;
    text-align: center;
    padding: var(--space-6) var(--space-4);
    border-right: 1px solid var(--color-border);
}

.fcs_layout_stats_row .fcs_item:last-child {
    border-right: none;
}


/* ── Background Variants — AFTER base block rule ─────────────── */

.fcs_bg_none {
    background-color: transparent;
}

.fcs_bg_alt {
    background-color: var(--color-bg-alt);
}

.fcs_bg_primary {
    background-color: var(--color-bg-dark);
}

.fcs_bg_primary .fcs_heading,
.fcs_bg_primary .fcs_item_heading {
    color: var(--color-text-inverse);
}

.fcs_bg_primary .fcs_body,
.fcs_bg_primary .fcs_item_text {
    color: var(--color-text-inverse);
}

.fcs_bg_primary .fcs_eyebrow {
    color: var(--color-accent);
}

.fcs_bg_primary .fcs_item {
    background-color: rgba(255, 255, 255, 0.08);
}

.fcs_bg_primary .fcs_layout_stats_row .fcs_item,
.fcs_layout_stats_row.fcs_bg_primary .fcs_item {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.2);
}

.fcs_bg_primary .fcs_items {
    border-color: rgba(255, 255, 255, 0.2);
}

.fcs_bg_accent {
    background-color: var(--color-accent);
}

.fcs_bg_accent .fcs_heading,
.fcs_bg_accent .fcs_item_heading {
    color: var(--color-text-inverse);
}

.fcs_bg_accent .fcs_body,
.fcs_bg_accent .fcs_item_text {
    color: var(--color-text-inverse);
}

.fcs_bg_accent .fcs_eyebrow {
    color: var(--color-text-inverse);
    opacity: 0.8;
}

.fcs_bg_accent .fcs_item_number {
    color: var(--color-text-inverse);
}

.fcs_bg_accent .fcs_item {
    background-color: rgba(255, 255, 255, 0.15);
}

.fcs_bg_accent .fcs_item_link {
    color: var(--color-text-inverse);
}

.fcs_bg_accent .fcs_item_link:hover {
    color: var(--color-text-inverse);
    opacity: 0.8;
}


/* ── Alignment Variants — AFTER base block rule ──────────────── */

/*
   Alignment — use center for most layouts.
   Right alignment not recommended with split layout + media.
   Apply cautiously on a per-project basis.
*/

.fcs_align_left .fcs_content {
    text-align: left;
}

.fcs_align_left .fcs_ctas {
    justify-content: flex-start;
}

.fcs_align_center .fcs_content {
    text-align: center;
}

.fcs_align_center .fcs_ctas {
    justify-content: center;
}

.fcs_align_right .fcs_content {
    text-align: right;
}

.fcs_align_right .fcs_ctas {
    justify-content: flex-end;
}


/* ── Homepage Feature Variant — AFTER base block rule ───────── */

.fcs_variant_homepage_feature {
    padding-top: var(--space-16);
    padding-bottom: var(--space-20);
}

.fcs_variant_homepage_feature .fcs_wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fcs_variant_homepage_feature.fcs_layout_split .fcs_split_row {
    display: flex;
    position: relative;
    width: 100%;
    max-width: 53.75rem;
    margin-bottom: var(--space-16);
    padding: clamp(2rem, 4vw, 3.5rem);
    flex-direction: row;
    align-items: center;
    gap: clamp(2rem, 4vw, 4rem);
    background:
        radial-gradient(circle at 18% 16%, rgba(108, 164, 255, 0.16), transparent 28%),
        linear-gradient(
            180deg,
            rgba(108, 164, 255, 0.28) 0%,
            rgba(162, 89, 255, 0.14) 38%,
            rgba(10, 15, 44, 0.88) 100%
        );
    border: 1px solid rgba(108, 164, 255, 0.22);
    border-radius: calc(var(--radius-xl) + var(--space-3));
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.34),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 0 34px rgba(108, 164, 255, 0.16),
        0 0 22px rgba(162, 89, 255, 0.10);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: visible;
}

.fcs_variant_homepage_feature.fcs_layout_split.fcs_media_right .fcs_split_row {
    flex-direction: row;
}

.fcs_variant_homepage_feature.fcs_layout_split.fcs_media_left .fcs_split_row {
    flex-direction: row-reverse;
}

.fcs_variant_homepage_feature .fcs_content {
    position: relative;
    width: 100%;
    max-width: 53.75rem;
    margin: 0 auto var(--space-16);
    padding: clamp(2rem, 4vw, 3.5rem);
    text-align: center;
    background:
        radial-gradient(circle at 18% 16%, rgba(108, 164, 255, 0.16), transparent 28%),
        linear-gradient(
            180deg,
            rgba(108, 164, 255, 0.28) 0%,
            rgba(162, 89, 255, 0.14) 38%,
            rgba(10, 15, 44, 0.88) 100%
        );
    border: 1px solid rgba(108, 164, 255, 0.22);
    border-radius: calc(var(--radius-xl) + var(--space-3));
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.34),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 0 34px rgba(108, 164, 255, 0.16),
        0 0 22px rgba(162, 89, 255, 0.10);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: visible;
}

.fcs_variant_homepage_feature.fcs_layout_split .fcs_content {
    position: static;
    flex: 1 1 0;
    max-width: none;
    margin: 0;
    padding: 0;
    text-align: left;
    background: none;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.fcs_variant_homepage_feature .fcs_heading {
    display: block;
    max-width: 14ch;
    margin: 0 auto var(--space-5);
    padding-bottom: 0;
    border-bottom: 0;
    font-size: clamp(2.1rem, 4vw, 3.35rem);
    line-height: 1.04;
    letter-spacing: -0.03em;
    color: var(--color-text-inverse);
    text-shadow:
        0 0 18px rgba(162, 89, 255, 0.08),
        0 10px 30px rgba(0, 0, 0, 0.32);
}

.fcs_variant_homepage_feature.fcs_layout_split .fcs_heading {
    max-width: 12ch;
    margin-left: 0;
    margin-right: 0;
}

.fcs_variant_homepage_feature .fcs_body {
    max-width: 34ch;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.75;
}

.fcs_variant_homepage_feature.fcs_layout_split .fcs_body {
    max-width: 34ch;
    margin-left: 0;
    margin-right: 0;
}

.fcs_variant_homepage_feature .fcs_body p {
    color: inherit;
}

.fcs_variant_homepage_feature .fcs_ctas {
    justify-content: center;
    margin-top: var(--space-8);
}

.fcs_variant_homepage_feature.fcs_layout_split .fcs_ctas {
    justify-content: flex-start;
}

.fcs_variant_homepage_feature .fcs_ctas .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.375rem;
    padding: 0.95rem 1.45rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-full);
    background: linear-gradient(
        135deg,
        rgba(162, 89, 255, 0.95),
        rgba(212, 114, 255, 0.96)
    );
    color: var(--color-text-inverse);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 0 26px rgba(162, 89, 255, 0.24);
}

.fcs_variant_homepage_feature .fcs_ctas .btn:hover {
    background: linear-gradient(
        135deg,
        rgba(212, 114, 255, 1),
        rgba(162, 89, 255, 1)
    );
    border-color: rgba(255, 255, 255, 0.18);
    color: var(--color-text-inverse);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.08) inset,
        0 0 30px rgba(162, 89, 255, 0.32);
}

.fcs_variant_homepage_feature .fcs_ctas .btn.btn-outline {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.16);
    color: var(--color-text-inverse);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 0 18px rgba(108, 164, 255, 0.08);
}

.fcs_variant_homepage_feature .fcs_ctas .btn.btn-outline:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.22);
    color: var(--color-text-inverse);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.06) inset,
        0 0 24px rgba(108, 164, 255, 0.12);
}

.fcs_variant_homepage_feature .fcs_eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 50%;
    bottom: calc(-1 * (var(--space-10) + var(--space-2)));
    transform: translateX(-50%);
    width: max-content;
    max-width: calc(100% - var(--space-8));
    z-index: 3;
    margin: 0 0 var(--space-6) 0;
    padding: 0.55rem 1rem;
    border: 1px solid rgba(162, 89, 255, 0.22);
    border-radius: var(--radius-full);
    background: rgba(44, 28, 92, 0.92);
    box-shadow:
        0 12px 24px rgba(0, 0, 0, 0.22),
        0 0 18px rgba(162, 89, 255, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.03) inset;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-family: var(--font-accent);
    font-size: 0.76rem;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.88);
}

.fcs_variant_homepage_feature .fcs_media {
    width: 100%;
    max-width: 53.75rem;
    margin-top: 0;
    margin-bottom: var(--space-8);
}

.fcs_variant_homepage_feature.fcs_layout_split .fcs_media {
    display: flex;
    flex: 1 1 0;
    width: auto;
    max-width: none;
    min-width: 0;
    margin-top: 0;
    margin-bottom: 0;
    align-self: stretch;
}

.fcs_variant_homepage_feature .fcs_media img,
.fcs_variant_homepage_feature .fcs_media .embed-responsive {
    overflow: hidden;
    border: 1px solid rgba(162, 89, 255, 0.14);
    border-radius: calc(var(--radius-xl) + var(--space-2));
    box-shadow:
        0 24px 54px rgba(0, 0, 0, 0.28),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 0 24px rgba(108, 164, 255, 0.10);
}

.fcs_variant_homepage_feature.fcs_layout_split .fcs_media img,
.fcs_variant_homepage_feature.fcs_layout_split .fcs_media .embed-responsive {
    width: 100%;
    min-height: 100%;
    border-radius: calc(var(--radius-xl) + var(--space-1));
    box-shadow:
        0 18px 38px rgba(0, 0, 0, 0.24),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 0 18px rgba(108, 164, 255, 0.10);
}

.fcs_variant_homepage_feature.fcs_layout_split .fcs_media img {
    display: block;
    height: 100%;
    min-height: 24rem;
    object-fit: cover;
}

.fcs_variant_homepage_feature .fcs_items {
    width: 100%;
    margin-top: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
    gap: var(--space-6);
    align-items: stretch;
}

.fcs_variant_homepage_feature .fcs_item {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: clamp(var(--space-5), 3vw, var(--space-8));
    overflow: hidden;
    background: rgba(18, 24, 58, 0.72);
    border: 1px solid rgba(162, 89, 255, 0.14);
    border-radius: 24px;
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.28),
        0 0 0 1px rgba(255, 255, 255, 0.03) inset,
        0 -10px 28px rgba(108, 164, 255, 0.10),
        0 -4px 14px rgba(162, 89, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition:
        transform 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}

.fcs_variant_homepage_feature .fcs_item::before {
    content: none;
}

.fcs_variant_homepage_feature .fcs_item::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.05) inset,
        0 0 0 1px rgba(162, 89, 255, 0.06) inset;
    pointer-events: none;
}

.fcs_variant_homepage_feature .fcs_item:hover {
    transform: translateY(-0.25rem);
    border-color: rgba(212, 114, 255, 0.24);
    box-shadow:
        0 22px 46px rgba(0, 0, 0, 0.32),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 -12px 32px rgba(108, 164, 255, 0.12),
        0 -6px 16px rgba(162, 89, 255, 0.10);
}

.fcs_variant_homepage_feature .fcs_item_number {
    position: relative;
    z-index: 1;
    background: linear-gradient(
        135deg,
        rgba(212, 114, 255, 1),
        rgba(108, 164, 255, 1)
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.fcs_variant_homepage_feature .fcs_item_media {
    position: relative;
    z-index: 1;
    isolation: isolate;
    margin-bottom: var(--space-5);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: calc(var(--radius-lg) + var(--space-1));
    background: rgba(10, 15, 44, 0.64);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.fcs_variant_homepage_feature .fcs_item_media img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 0;
}

/* Per-card outer glow — aura behind the square image panel, keyed to each icon's palette */
.fcs_variant_homepage_feature .fcs_item:nth-child(1) .fcs_item_media {
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.22),
        0 0 36px rgba(245, 150, 28, 0.50),
        0 0 72px rgba(245, 150, 28, 0.22);
}

.fcs_variant_homepage_feature .fcs_item:nth-child(2) .fcs_item_media {
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.22),
        0 0 36px rgba(55, 195, 125, 0.50),
        0 0 72px rgba(55, 195, 125, 0.22);
}

.fcs_variant_homepage_feature .fcs_item:nth-child(3) .fcs_item_media {
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.22),
        0 0 36px rgba(240, 85, 45, 0.50),
        0 0 72px rgba(240, 85, 45, 0.22);
}

/* Breathing glow overlay — screen blend sits above the image, clipped by overflow:hidden */
@keyframes fcs_glow_breathe {
    0%, 100% { opacity: 0.25; transform: scale(1);    }
    50%       { opacity: 0.65; transform: scale(1.08); }
}

.fcs_variant_homepage_feature .fcs_item:nth-child(1) .fcs_item_media::after,
.fcs_variant_homepage_feature .fcs_item:nth-child(2) .fcs_item_media::after,
.fcs_variant_homepage_feature .fcs_item:nth-child(3) .fcs_item_media::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 2;
    mix-blend-mode: screen;
    animation: fcs_glow_breathe 5.5s ease-in-out infinite;
}

/* Card 1 — amber centre → violet edge — screen adds warm orange light wash */
.fcs_variant_homepage_feature .fcs_item:nth-child(1) .fcs_item_media::after {
    background: radial-gradient(circle at 50% 50%,
        #ffb030        0%,
        rgba(162, 89, 255, 0.80) 52%,
        rgba(0, 0, 0, 0) 76%);
    animation-duration: 5s;
}

/* Card 2 — teal centre → blue edge — screen adds cool green-blue light wash */
.fcs_variant_homepage_feature .fcs_item:nth-child(2) .fcs_item_media::after {
    background: radial-gradient(circle at 50% 50%,
        #32dc8c        0%,
        rgba(108, 164, 255, 0.80) 52%,
        rgba(0, 0, 0, 0) 76%);
    animation-duration: 6s;
}

/* Card 3 — coral centre → magenta edge — screen adds red-orange light wash */
.fcs_variant_homepage_feature .fcs_item:nth-child(3) .fcs_item_media::after {
    background: radial-gradient(circle at 50% 50%,
        #ff6430        0%,
        rgba(212, 114, 255, 0.80) 52%,
        rgba(0, 0, 0, 0) 76%);
    animation-duration: 5s;
}

@media (prefers-reduced-motion: reduce) {
    .fcs_variant_homepage_feature .fcs_item:nth-child(1) .fcs_item_media::after,
    .fcs_variant_homepage_feature .fcs_item:nth-child(2) .fcs_item_media::after,
    .fcs_variant_homepage_feature .fcs_item:nth-child(3) .fcs_item_media::after {
        animation: none;
        opacity: 0.30;
    }
}

.fcs_variant_homepage_feature .fcs_item_heading {
    position: relative;
    z-index: 1;
    font-size: clamp(1.25rem, 1.8vw, 1.5rem);
    line-height: 1.14;
    color: var(--color-text-inverse);
    text-shadow: 0 0 16px rgba(162, 89, 255, 0.08);
}

.fcs_variant_homepage_feature .fcs_item_text {
    position: relative;
    z-index: 1;
    margin-bottom: var(--space-5);
    color: rgba(255, 255, 255, 0.74);
    line-height: 1.7;
}

.fcs_variant_homepage_feature .fcs_item_text p:last-child {
    margin-bottom: 0;
}

.fcs_variant_homepage_feature .fcs_item_link {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: auto;
    color: var(--color-accent);
    text-decoration: none;
    text-shadow: 0 0 16px rgba(162, 89, 255, 0.18);
}

.fcs_variant_homepage_feature .fcs_item_link:hover {
    color: var(--color-accent-hover);
    text-decoration: none;
}

/* ── Homepage Feature: Section Pills ──────────────────────────── */

.fcs_variant_homepage_feature .fcs_section_pills {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    list-style: none;
    padding: 0;
    margin: var(--space-5) 0 0;
    justify-content: center;
}

.fcs_variant_homepage_feature.fcs_layout_split .fcs_section_pills {
    justify-content: flex-start;
}

.fcs_variant_homepage_feature .fcs_section_pill {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    background: rgba(162, 89, 255, 0.10);
    border: 1px solid rgba(162, 89, 255, 0.22);
    border-radius: var(--radius-full);
    box-shadow:
        0 0 12px rgba(162, 89, 255, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.03) inset;
    color: rgba(255, 255, 255, 0.84);
    font-family: var(--font-accent);
    font-size: var(--text-xs);
    letter-spacing: 0.06em;
    line-height: 1.2;
    white-space: nowrap;
}

/* ── Homepage Feature: Item Tagline ───────────────────────────── */

.fcs_variant_homepage_feature .fcs_item_tagline {
    display: block;
    position: relative;
    z-index: 1;
    margin: 0 0 var(--space-3);
    color: rgba(108, 164, 255, 0.80);
    font-family: var(--font-accent);
    font-size: var(--text-xs);
    font-weight: var(--weight-normal);
    letter-spacing: 0.04em;
    line-height: 1.45;
}

/* ── Homepage Feature: Item Text contrast fix ─────────────────── */

.fcs_variant_homepage_feature .fcs_item_text p {
    color: inherit;
}

@media (max-width: 768px) {

    .fcs_variant_homepage_feature {
        padding-top: var(--space-12);
    }

    .fcs_variant_homepage_feature .fcs_content {
        margin-bottom: calc(var(--space-12) + var(--space-2));
        padding: var(--space-8) var(--space-6);
    }

    .fcs_variant_homepage_feature.fcs_layout_split .fcs_split_row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: var(--space-8);
        margin-bottom: calc(var(--space-12) + var(--space-2));
        padding: var(--space-8) var(--space-6);
    }

    .fcs_variant_homepage_feature.fcs_layout_split .fcs_content {
        width: 100%;
        text-align: center;
    }

    .fcs_variant_homepage_feature.fcs_layout_split.fcs_media_right .fcs_split_row,
    .fcs_variant_homepage_feature.fcs_layout_split.fcs_media_left .fcs_split_row {
        flex-direction: column;
    }

    .fcs_variant_homepage_feature .fcs_heading {
        max-width: none;
        font-size: clamp(1.95rem, 10vw, 2.8rem);
    }

    .fcs_variant_homepage_feature.fcs_layout_split .fcs_heading {
        margin-left: auto;
        margin-right: auto;
    }

    .fcs_variant_homepage_feature .fcs_body {
        max-width: 32ch;
    }

    .fcs_variant_homepage_feature.fcs_layout_split .fcs_body {
        margin-left: auto;
        margin-right: auto;
    }

    .fcs_variant_homepage_feature .fcs_eyebrow {
        bottom: calc(-1 * (var(--space-8) + var(--space-2)));
        max-width: calc(100% - var(--space-6));
        white-space: normal;
    }

    .fcs_variant_homepage_feature .fcs_ctas {
        flex-direction: column;
        align-items: stretch;
    }

    .fcs_variant_homepage_feature.fcs_layout_split .fcs_ctas {
        justify-content: center;
    }

    .fcs_variant_homepage_feature .fcs_ctas .btn {
        width: 100%;
    }

    .fcs_variant_homepage_feature.fcs_layout_split .fcs_media {
        width: 100%;
        margin-top: var(--space-6);
    }

    .fcs_variant_homepage_feature.fcs_layout_split .fcs_media img {
        min-height: 0;
        height: auto;
    }
}

@media (max-width: 640px) {

    .fcs_variant_homepage_feature .fcs_items {
        grid-template-columns: 1fr;
    }
}


/* ── Value Cards Variant — AFTER base block rule ────────────── */

.fcs_variant_value_cards .fcs_items {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-top: var(--space-10);
}

.fcs_variant_value_cards .fcs_item {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    cursor: pointer;
    border-radius: 0;
    padding: 0;
    background: linear-gradient(160deg, #19103C 0%, #0A0F2C 100%);
}

/* Outer corner rounding */
.fcs_variant_value_cards .fcs_item:first-child { border-radius: var(--radius-xl) 0 0 var(--radius-xl); }
.fcs_variant_value_cards .fcs_item:last-child  { border-radius: 0 var(--radius-xl) var(--radius-xl) 0; }

/* Per-card gradient backgrounds */
.fcs_variant_value_cards .fcs_item:nth-child(1) {
    background:
        radial-gradient(circle at 25% 20%, rgba(162,89,255,0.55) 0%, transparent 55%),
        radial-gradient(circle at 75% 85%, rgba(108,164,255,0.25) 0%, transparent 50%),
        linear-gradient(160deg, #19103C 0%, #0A0F2C 100%);
}

.fcs_variant_value_cards .fcs_item:nth-child(2) {
    background:
        radial-gradient(circle at 75% 15%, rgba(108,164,255,0.6) 0%, transparent 55%),
        radial-gradient(circle at 25% 80%, rgba(162,89,255,0.25) 0%, transparent 50%),
        linear-gradient(160deg, #0D1B40 0%, #0A0F2C 100%);
}

.fcs_variant_value_cards .fcs_item:nth-child(3) {
    background:
        radial-gradient(circle at 50% 10%, rgba(212,114,255,0.5) 0%, transparent 55%),
        radial-gradient(circle at 80% 85%, rgba(108,164,255,0.3) 0%, transparent 50%),
        linear-gradient(160deg, #1A0D3C 0%, #0A0F2C 100%);
}

.fcs_variant_value_cards .fcs_item:nth-child(4) {
    background:
        radial-gradient(circle at 20% 75%, rgba(108,164,255,0.55) 0%, transparent 55%),
        radial-gradient(circle at 75% 15%, rgba(162,89,255,0.3) 0%, transparent 50%),
        linear-gradient(160deg, #0A1940 0%, #0A0F2C 100%);
}

/* Inset border — uses ::before so it sits above card content */
.fcs_variant_value_cards .fcs_item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(162,89,255,0.2);
    z-index: 4;
    pointer-events: none;
    transition: border-color 0.35s ease;
}

.fcs_variant_value_cards .fcs_item:hover::before,
.fcs_variant_value_cards .fcs_item:focus-visible::before {
    border-color: rgba(212,114,255,0.45);
}

/* Ghost number */
.fcs_item_ghost {
    position: absolute;
    top: 14%;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-accent);
    font-size: clamp(5rem, 8vw, 7rem);
    font-weight: 500; /* intentional — between --weight-normal (400) and --weight-semi (600), no matching token */
    color: #ffffff;
    opacity: 0.07;
    line-height: 1;
    pointer-events: none;
    user-select: none;
    z-index: 1;
    transition: opacity 0.35s ease;
}

.fcs_variant_value_cards .fcs_item:hover .fcs_item_ghost,
.fcs_variant_value_cards .fcs_item:focus-visible .fcs_item_ghost {
    opacity: 0;
}

/* Front face */
.fcs_item_front {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: var(--space-6);
    z-index: 2;
    text-align: center;
    transition: opacity 0.35s ease;
}

.fcs_variant_value_cards .fcs_item:hover .fcs_item_front,
.fcs_variant_value_cards .fcs_item:focus-visible .fcs_item_front {
    opacity: 0;
}

/* Heading inside front face — overrides base fcs_item_heading */
.fcs_variant_value_cards .fcs_item_heading {
    font-size: clamp(1.4rem, 1.8vw, 1.75rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
    margin: 0 0 var(--space-2) 0;
}

/* Tagline */
.fcs_item_tagline {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.8rem; /* intentional — smaller than --text-xs (0.75rem) target, no matching token */
    font-weight: 600;
    color: rgba(212,114,255,0.85);
    line-height: 1.3;
}

/* Reveal overlay */
.fcs_item_reveal {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-8);
    z-index: 3;
    text-align: center;
    background: linear-gradient(160deg, rgba(8,12,38,0.96) 0%, rgba(12,8,40,0.94) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.fcs_variant_value_cards .fcs_item:hover .fcs_item_reveal,
.fcs_variant_value_cards .fcs_item:focus-visible .fcs_item_reveal {
    opacity: 1;
}

.fcs_item_reveal_text {
    font-size: var(--text-sm);
    line-height: var(--leading-normal);
    color: var(--color-text-inverse);
    max-width: 22ch;
    transform: translateY(8px);
    transition: transform 0.4s ease 0.06s;
}

.fcs_item_reveal_text p {
    color: inherit;
    margin: 0;
}

.fcs_variant_value_cards .fcs_item:hover .fcs_item_reveal_text,
.fcs_variant_value_cards .fcs_item:focus-visible .fcs_item_reveal_text {
    transform: translateY(0);
}

@media (max-width: 768px) {

    /* 2-column grid, natural card height — switch from aspect-ratio box to static layout */
    .fcs_variant_value_cards .fcs_items {
        grid-template-columns: repeat(2, 1fr);
    }

    .fcs_variant_value_cards .fcs_item {
        aspect-ratio: auto;
        min-height: 240px;
        justify-content: flex-end; /* ghost floats in bg; text content anchors to bottom */
    }

    /* Corner radii for 2×2 grid */
    .fcs_variant_value_cards .fcs_item:first-child       { border-radius: var(--radius-xl) 0 0 0; }
    .fcs_variant_value_cards .fcs_item:nth-child(2)      { border-radius: 0 var(--radius-xl) 0 0; }
    .fcs_variant_value_cards .fcs_item:nth-last-child(2) { border-radius: 0 0 0 var(--radius-xl); }
    .fcs_variant_value_cards .fcs_item:last-child        { border-radius: 0 0 var(--radius-xl) 0; }

    /* Switch front + reveal from absolute overlay to normal flow — no more z-index stacking */
    .fcs_variant_value_cards .fcs_item_front {
        position: static;
        opacity: 1;
        padding: 0 var(--space-5) var(--space-3);
        justify-content: flex-start;
        z-index: auto;
    }

    .fcs_variant_value_cards .fcs_item_reveal {
        position: static;
        opacity: 1;
        background: none;
        padding: 0 var(--space-5) var(--space-5);
        justify-content: flex-start;
        z-index: auto;
    }

    .fcs_variant_value_cards .fcs_item_reveal_text {
        transform: none;
        max-width: none;
    }
}

@media (max-width: 520px) {

    /* Single column on small mobile */
    .fcs_variant_value_cards .fcs_items {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }

    /* All corners rounded on single-column cards */
    .fcs_variant_value_cards .fcs_item:first-child,
    .fcs_variant_value_cards .fcs_item:nth-child(2),
    .fcs_variant_value_cards .fcs_item:nth-last-child(2),
    .fcs_variant_value_cards .fcs_item:last-child {
        border-radius: var(--radius-xl);
    }
}


/* ── Process Path Variant — AFTER base block rule ───────────── */

.fcs_variant_process_path {
    padding: var(--space-20) 0;
    background:
        radial-gradient(circle at 18% 12%, rgba(162, 89, 255, 0.18), transparent 30%),
        radial-gradient(circle at 86% 18%, rgba(108, 164, 255, 0.13), transparent 32%),
        var(--color-bg-dark);
}

.fcs_variant_process_path .fcs_wrapper {
    max-width: min(72rem, calc(100vw - (var(--wrapper-padding) * 2)));
}

.fcs_process_header {
    position: relative;
    max-width: 52rem;
    margin: 0 auto var(--space-10);
    text-align: center;
}

.fcs_process_header .fcs_eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin: 0 auto var(--space-4);
    padding: 0.55rem 1rem;
    color: rgba(255, 255, 255, 0.92);
    font-family: var(--font-accent);
    font-size: var(--text-xs);
    letter-spacing: 0.16em;
    line-height: 1;
    background: rgba(162, 89, 255, 0.20);
    border: 1px solid rgba(187, 135, 255, 0.34);
    border-radius: var(--radius-full);
    box-shadow: 0 0 22px rgba(162, 89, 255, 0.16);
}

.fcs_process_header .fcs_heading {
    margin-bottom: var(--space-5);
    color: var(--color-text-inverse);
    font-size: clamp(2.4rem, 5vw, 4.5rem);
    line-height: 1;
}

.fcs_process_header .fcs_body {
    max-width: 46rem;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.74);
    font-size: clamp(1rem, 1.35vw, 1.16rem);
    line-height: 1.75;
}

.fcs_process_header .fcs_body p {
    color: rgba(255, 255, 255, 0.74);
}

.fcs_process_pills {
    position: relative;
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-2);
    max-width: 100%;
    padding: 0.75rem 1rem;
    margin: var(--space-6) auto 0;
    list-style: none;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035)),
        rgba(9, 13, 35, 0.48);
    border: 1px solid rgba(162, 89, 255, 0.22);
    border-radius: var(--radius-full);
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.22),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.fcs_process_pill {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: rgba(255, 255, 255, 0.84);
    font-family: var(--font-accent);
    font-size: var(--text-xs);
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
    white-space: nowrap;
}

.fcs_process_pill:not(:last-child)::after {
    content: "";
    width: 0.38rem;
    height: 0.38rem;
    margin-left: var(--space-2);
    background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
    border-radius: var(--radius-full);
    box-shadow: 0 0 14px rgba(162, 89, 255, 0.36);
}

.fcs_process_panel {
    position: relative;
    overflow: hidden;
    padding: clamp(2rem, 4vw, 3rem);
    background:
        radial-gradient(circle at 12% 8%, rgba(162, 89, 255, 0.18), transparent 28%),
        radial-gradient(circle at 90% 18%, rgba(108, 164, 255, 0.14), transparent 30%),
        linear-gradient(135deg, rgba(12, 15, 42, 0.94), rgba(18, 26, 61, 0.90) 54%, rgba(8, 12, 34, 0.96));
    border: 1px solid rgba(162, 89, 255, 0.30);
    border-radius: calc(var(--radius-xl) + var(--space-2));
    box-shadow:
        0 28px 78px rgba(0, 0, 0, 0.34),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 0 38px rgba(108, 164, 255, 0.10),
        0 0 34px rgba(162, 89, 255, 0.13);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.fcs_process_panel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(108, 164, 255, 0.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(108, 164, 255, 0.09) 1px, transparent 1px);
    background-size: 4.5rem 4.5rem;
    opacity: 0.22;
}

.fcs_process_steps {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1.25rem, 2vw, 2rem);
    padding: 0;
    margin: 0;
    list-style: none;
}

.fcs_process_steps::before {
    content: "";
    position: absolute;
    top: 2rem;
    left: 8%;
    right: 8%;
    height: 2px;
    background: linear-gradient(
        90deg,
        rgba(162, 89, 255, 0.06) 0%,
        rgba(108, 164, 255, 0.12) 14%,
        rgba(162, 89, 255, 0.40) 28%,
        rgba(212, 114, 255, 0.95) 50%,
        rgba(162, 89, 255, 0.40) 72%,
        rgba(108, 164, 255, 0.12) 86%,
        rgba(162, 89, 255, 0.06) 100%
    );
    box-shadow:
        0 0 10px rgba(212, 114, 255, 0.28),
        0 0 24px rgba(162, 89, 255, 0.18);
}

.fcs_process_step {
    position: relative;
    min-width: 0;
    padding-top: var(--space-16);
    text-align: center;
}

.fcs_process_step_number {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    color: var(--color-text-inverse);
    font-family: var(--font-accent);
    font-size: var(--text-sm);
    font-weight: var(--weight-bold);
    line-height: 1;
    background:
        linear-gradient(135deg, rgba(162, 89, 255, 0.96), rgba(108, 164, 255, 0.90));
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: var(--radius-full);
    box-shadow:
        0 0 0 0.75rem rgba(162, 89, 255, 0.10),
        0 0 24px rgba(108, 164, 255, 0.22);
}

.fcs_process_step_title {
    margin: 0 0 var(--space-3);
    color: var(--color-text-inverse);
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    line-height: 1.1;
}

.fcs_process_step_text {
    color: rgba(255, 255, 255, 0.70);
    font-size: var(--text-base);
    line-height: 1.65;
}

.fcs_process_step_text p {
    color: inherit;
    margin: 0;
}

@media (max-width: 900px) {
    .fcs_process_steps {
        grid-template-columns: 1fr 1fr;
    }

    .fcs_process_steps::before {
        display: none;
    }

    .fcs_process_step {
        padding-top: 0;
        padding-left: var(--space-20);
        text-align: left;
    }

    .fcs_process_step_number {
        left: 0;
        transform: none;
    }
}

@media (max-width: 620px) {
    .fcs_variant_process_path {
        padding: var(--space-12) 0;
    }

    .fcs_process_header {
        margin-bottom: var(--space-8);
    }

    .fcs_process_header .fcs_heading {
        font-size: clamp(2rem, 11vw, 3rem);
    }

    .fcs_process_pills {
        border-radius: var(--radius-xl);
    }

    .fcs_process_steps {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .fcs_process_steps::after {
        content: "";
        position: absolute;
        top: 2rem;
        bottom: 2rem;
        left: 2rem;
        width: 1px;
        background: linear-gradient(180deg, rgba(162, 89, 255, 0.20), rgba(108, 164, 255, 0.50), rgba(241, 166, 69, 0.24));
    }

    .fcs_process_step {
        padding-left: var(--space-20);
    }
}


/* ── Agency Support Variant — AFTER base block rule ─────────── */

.fcs_variant_agency_support {
    padding: var(--space-12) 0 var(--space-16);
    background: transparent;
}

.fcs_variant_agency_support .fcs_wrapper {
    max-width: min(72rem, calc(100vw - (var(--wrapper-padding) * 2)));
}

.fcs_agency_panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.8fr);
    align-items: center;
    gap: clamp(2rem, 4vw, 4rem);
    padding: clamp(2rem, 4vw, 3.25rem);
    overflow: hidden;
    background:
        radial-gradient(circle at 14% 10%, rgba(162, 89, 255, 0.30), transparent 30%),
        radial-gradient(circle at 92% 24%, rgba(108, 164, 255, 0.20), transparent 32%),
        linear-gradient(135deg, rgba(12, 15, 42, 0.94), rgba(20, 28, 66, 0.88) 52%, rgba(9, 13, 35, 0.96));
    border: 1px solid rgba(162, 89, 255, 0.32);
    border-radius: calc(var(--radius-xl) + var(--space-2));
    box-shadow:
        0 28px 78px rgba(0, 0, 0, 0.34),
        0 0 0 1px rgba(255, 255, 255, 0.06) inset,
        0 0 42px rgba(108, 164, 255, 0.12),
        0 0 34px rgba(162, 89, 255, 0.16);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.fcs_agency_panel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(108, 164, 255, 0.10) 1px, transparent 1px),
        linear-gradient(90deg, rgba(108, 164, 255, 0.10) 1px, transparent 1px);
    background-size: 4.5rem 4.5rem;
    opacity: 0.26;
}

.fcs_agency_panel::after {
    content: "";
    position: absolute;
    top: -30%;
    right: -14%;
    width: 22rem;
    height: 22rem;
    pointer-events: none;
    background: radial-gradient(circle, rgba(241, 166, 69, 0.18), transparent 64%);
    opacity: 0.85;
}

.fcs_agency_content,
.fcs_agency_actions {
    position: relative;
    z-index: 1;
}

.fcs_agency_panel .fcs_eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin: 0 0 var(--space-4);
    padding: 0.55rem 1rem;
    color: rgba(255, 255, 255, 0.92);
    font-family: var(--font-accent);
    font-size: var(--text-xs);
    letter-spacing: 0.16em;
    line-height: 1;
    background: rgba(162, 89, 255, 0.20);
    border: 1px solid rgba(187, 135, 255, 0.34);
    border-radius: var(--radius-full);
    box-shadow: 0 0 22px rgba(162, 89, 255, 0.16);
}

.fcs_agency_panel .fcs_heading {
    max-width: 13ch;
    margin-bottom: var(--space-5);
    color: var(--color-text-inverse);
    font-size: clamp(2.1rem, 4vw, 4.25rem);
    line-height: 0.98;
}

.fcs_agency_panel .fcs_body {
    max-width: 42rem;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: clamp(1rem, 1.35vw, 1.18rem);
    line-height: 1.7;
}

.fcs_agency_panel .fcs_body p {
    color: rgba(255, 255, 255, 0.76);
    margin-bottom: var(--space-4);
}

.fcs_agency_panel .fcs_body p:last-child {
    margin-bottom: 0;
}

.fcs_agency_actions {
    padding: clamp(1.25rem, 2.5vw, 2rem);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035)),
        rgba(9, 13, 35, 0.36);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-xl);
    box-shadow:
        0 18px 46px rgba(0, 0, 0, 0.24),
        0 0 0 1px rgba(108, 164, 255, 0.08) inset;
}

.fcs_agency_pills {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    padding: 0;
    margin: 0;
    list-style: none;
}

.fcs_agency_pill {
    display: inline-flex;
    align-items: center;
    min-height: 2.6rem;
    padding: 0.72rem 1rem;
    color: rgba(255, 255, 255, 0.90);
    font-size: var(--text-sm);
    font-weight: var(--weight-semi);
    line-height: 1.2;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.045)),
        rgba(108, 164, 255, 0.08);
    border: 1px solid rgba(187, 135, 255, 0.24);
    border-radius: var(--radius-full);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}

.fcs_agency_pill:nth-child(3n) {
    border-color: rgba(108, 164, 255, 0.26);
}

.fcs_agency_pill:nth-child(4n) {
    border-color: rgba(241, 166, 69, 0.28);
}

.fcs_agency_actions .fcs_ctas {
    justify-content: flex-start;
    margin-top: var(--space-6);
}

@media (max-width: 900px) {
    .fcs_agency_panel {
        grid-template-columns: 1fr;
    }

    .fcs_agency_panel .fcs_heading,
    .fcs_agency_panel .fcs_body {
        max-width: none;
    }
}

@media (max-width: 560px) {
    .fcs_variant_agency_support {
        padding: var(--space-10) 0 var(--space-12);
    }

    .fcs_variant_agency_support .fcs_wrapper {
        max-width: calc(100vw - (var(--wrapper-padding) * 2));
    }

    .fcs_agency_panel {
        padding: var(--space-6);
        border-radius: var(--radius-xl);
    }

    .fcs_agency_panel .fcs_heading {
        font-size: clamp(2rem, 12vw, 2.75rem);
    }

    .fcs_agency_pills,
    .fcs_agency_actions .fcs_ctas {
        justify-content: center;
    }

    .fcs_agency_pill {
        justify-content: center;
        text-align: center;
    }
}


/* ── Responsive ──────────────────────────────────────────────── */

@media (max-width: 768px) {

    .fcs_heading {
        font-size: var(--text-2xl);
    }

    .fcs_layout_split .fcs_split_row,
    .fcs_layout_split.fcs_media_left .fcs_split_row,
    .fcs_layout_split.fcs_media_right .fcs_split_row {
        flex-direction: column;
    }

    .fcs_layout_split .fcs_media {
        margin-top: var(--space-8);
    }

    .fcs_layout_stats_row .fcs_items {
        flex-direction: column;
    }

    .fcs_layout_stats_row .fcs_item {
        border-right: none;
        border-bottom: 1px solid var(--color-border);
    }

    .fcs_layout_stats_row .fcs_item:last-child {
        border-bottom: none;
    }

    .fcs_bg_primary .fcs_layout_stats_row .fcs_item,
    .fcs_layout_stats_row.fcs_bg_primary .fcs_item {
        border-color: rgba(255, 255, 255, 0.2);
    }
}

@media (max-width: 480px) {

    .flexible_content_section {
        padding: var(--space-12) 0;
    }

    .fcs_heading {
        font-size: var(--text-xl);
    }

    .fcs_items {
        grid-template-columns: 1fr;
    }

    .fcs_ctas {
        flex-direction: column;
    }
}

/* Mobile: center item text content and section pills across all FCS variants */
@media (max-width: 767px) {
    .fcs_item_heading,
    .fcs_item_tagline,
    .fcs_item_number {
        text-align: center;
    }

    .fcs_item_text,
    .fcs_item_text p {
        text-align: center;
    }

    .fcs_section_pills {
        justify-content: center;
    }

    /* Specificity fix: split layout forces flex-start (0-3-0) — match it to override on mobile */
    .fcs_variant_homepage_feature.fcs_layout_split .fcs_section_pills {
        justify-content: center;
    }
}
