/* ===== Content with Image Section ===== */

/* ── Section root ────────────────────────────────────────────────── */
.cwi {
    position: relative;
    overflow: hidden;
}

/* ── Background color tokens ────────────────────────────────────── */
/* background-color is applied to .cwi__body via --cwi-bg-color CSS variable */
/* These modifier classes remain for text-color selectors lower in this file */

/* ── Background image ────────────────────────────────────────────── */
.cwi--has-bg-image {
    background-image: var(--cwi-bg-image);
    background-size: cover;
    background-position: center;
}

/* ── Background overlay ──────────────────────────────────────────── */
.cwi__bg-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, var(--cwi-overlay-opacity, 0.4));
    z-index: 0;
    pointer-events: none;
}

/* Ensure content sits above overlay */
.cwi--has-bg-image .cwi__body,
.cwi--has-bg-image .cwi__breadcrumb,
.cwi--has-bg-image .cwi__wave-top,
.cwi--has-bg-image .cwi__wave-bottom {
    position: relative;
    z-index: 1;
}

/* ── Breadcrumb ──────────────────────────────────────────────────── */
.cwi__breadcrumb {
    padding-top: 1.5rem;
    padding-bottom: 0;
}

.cwi__breadcrumb-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

.cwi__breadcrumb-link {
    font-size: 0.875rem;
    color: var(--grey-blue, var(--mid-blue));
    text-decoration: none;
    transition: color 0.2s;
}

.cwi__breadcrumb-link:hover {
    color: var(--color-primary);
}

.cwi__breadcrumb-sep {
    font-size: 0.875rem;
    color: var(--grey-blue, var(--mid-blue));
}

.cwi__breadcrumb-current {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-body);
}

.cwi--bg-dark .cwi__breadcrumb-link,
.cwi--bg-dark .cwi__breadcrumb-sep,
.cwi--bg-dark .cwi__breadcrumb-current,
.cwi--has-bg-image .cwi__breadcrumb-link,
.cwi--has-bg-image .cwi__breadcrumb-sep,
.cwi--has-bg-image .cwi__breadcrumb-current {
    color: rgba(255, 255, 255, 0.7);
}

.cwi--bg-dark .cwi__breadcrumb-link:hover,
.cwi--has-bg-image .cwi__breadcrumb-link:hover {
    color: var(--white);
}

/* ── Wave shapes ─────────────────────────────────────────────────── */
.cwi__wave-top,
.cwi__wave-bottom {
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.cwi__wave-top-shape,
.cwi__wave-bottom-shape {
    display: block;
    width: 100%;
    height: 4rem;
    background-color: var(--cwi-bg-color, transparent);
    border-radius: 50% 50% 0 0 / 4rem 4rem 0 0;
}

.cwi__wave-bottom-shape {
    border-radius: 0 0 50% 50% / 0 0 4rem 4rem;
    margin-bottom: 4rem;
}

@media (min-width: 1024px) {
    .cwi__wave-top-shape,
    .cwi__wave-bottom-shape {
        height: 6rem;
    }
}

/* ── Body ────────────────────────────────────────────────────────── */
.cwi__body {
    padding-top: 4rem;
    padding-bottom: 4rem;
    background-color: var(--cwi-bg-color, transparent);
}

@media (min-width: 768px) {
    .cwi__body {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
}

@media (min-width: 1024px) {
    .cwi__body {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
}

.cwi__container {
    padding-left: 1rem;
    padding-right: 1rem;
}

/* ── Grid (two-column layout) ────────────────────────────────────── */
.cwi__grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

@media (min-width: 1024px) {
    .cwi__grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: 4rem;
    }

    .cwi__text-col,
    .cwi__image-col,
    .cwi__stats-col {
        width: auto;
        min-width: 0;
    }
}

/* ── Column ordering ─────────────────────────────────────────────── */
/* Mobile: text always first, image second */
.cwi__text-col--order-1   { order: 1; }
.cwi__text-col--order-2   { order: 1; } /* text always first on mobile */
.cwi__image-col--order-1  { order: 2; }
.cwi__image-col--order-2  { order: 2; }
.cwi__stats-col--order-1  { order: 2; }
.cwi__stats-col--order-2  { order: 2; }

/* Desktop: respect configured order */
@media (min-width: 1024px) {
    .cwi__text-col--order-1   { order: 1; }
    .cwi__text-col--order-2   { order: 2; }
    .cwi__image-col--order-1  { order: 1; }
    .cwi__image-col--order-2  { order: 2; }
    .cwi__stats-col--order-1  { order: 1; }
    .cwi__stats-col--order-2  { order: 2; }
}

/* ── Text inner ──────────────────────────────────────────────────── */
.cwi__text-inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ── Header (badge + title) ──────────────────────────────────────── */
.cwi__header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* ── Badge ───────────────────────────────────────────────────────── */
.cwi__badge {
    display: inline-block;
    width: fit-content;
    border-radius: 1.25rem 0 1.25rem 0;
    background-color: var(--color-primary);
    padding: 0.35rem 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--white, #fff);
    line-height: 1.4;
}

/* ── Title ───────────────────────────────────────────────────────── */
.cwi__title {
    font-size: 2rem;
    line-height: 1.2;
    font-weight: 800;
    margin: 0;
    color: var(--color-body);
}

@media (min-width: 768px) {
    .cwi__title { font-size: 2.5rem; }
}

@media (min-width: 1024px) {
    .cwi__title { font-size: 3rem; }
}

.cwi--bg-dark .cwi__title,
.cwi--bg-pink .cwi__title,
.cwi--has-bg-image .cwi__title {
    color: var(--white, #fff);
}

.cwi--bg-teal .cwi__title,
.cwi--bg-light .cwi__title {
    color: var(--color-body);
}

/* ── Prose ───────────────────────────────────────────────────────── */
.cwi__prose {
    color: var(--color-body);
}

.cwi__prose p {
    font-size: 1.125rem;
    line-height: 1.75;
    margin: 0 0 1rem 0;
}

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

.cwi__prose strong {
    font-weight: 700;
    color: var(--color-primary);
}

.cwi__prose ul,
.cwi__prose ol {
    font-size: 1.125rem;
    line-height: 1.75;
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.cwi__prose ul {
    list-style: disc;
}

.cwi__prose ol {
    list-style: decimal;
}

.cwi__prose li {
    margin-bottom: 0.4rem;
}

.cwi__prose h3,
.cwi__prose h4 {
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.cwi--bg-dark .cwi__prose,
.cwi--bg-dark .cwi__prose p,
.cwi--bg-pink .cwi__prose,
.cwi--bg-pink .cwi__prose p,
.cwi--has-bg-image .cwi__prose,
.cwi--has-bg-image .cwi__prose p {
    color: rgba(255, 255, 255, 0.85);
}

.cwi--bg-dark .cwi__prose strong,
.cwi--bg-pink .cwi__prose strong {
    color: var(--color-teal, var(--color-blue-100));
}

/* ── Two-column text blocks ──────────────────────────────────────── */
.cwi__text-columns {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .cwi__text-columns {
        flex-direction: row;
        gap: 2rem;
    }

    .cwi__text-column {
        flex: 1;
    }
}

.cwi__text-column-heading {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-body);
    margin: 0 0 0.5rem 0;
}

.cwi--bg-dark .cwi__text-column-heading,
.cwi--bg-pink .cwi__text-column-heading,
.cwi--has-bg-image .cwi__text-column-heading {
    color: var(--white, #fff);
}

.cwi__text-column-prose {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-body);
}

.cwi--bg-dark .cwi__text-column-prose,
.cwi--bg-pink .cwi__text-column-prose,
.cwi--has-bg-image .cwi__text-column-prose {
    color: rgba(255, 255, 255, 0.8);
}

.cwi__text-column-prose p {
    margin: 0 0 0.5rem 0;
}

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

/* ── Social links ────────────────────────────────────────────────── */
.cwi__social {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.cwi__social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-body);
    transition: color 0.2s;
}

.cwi__social-link:hover {
    color: var(--color-primary);
}

.cwi__social-icon {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
    display: block;
}

.cwi--bg-dark .cwi__social-link,
.cwi--bg-pink .cwi__social-link {
    color: rgba(255, 255, 255, 0.85);
}

.cwi--bg-dark .cwi__social-link:hover,
.cwi--bg-pink .cwi__social-link:hover {
    color: var(--white);
}

/* ── Buttons ─────────────────────────────────────────────────────── */
.cwi__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.cwi__btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 0.75rem 0.75rem 1.75rem;
    height: 3.5rem;
    border-radius: 9999px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    transition: background-color 0.2s, transform 0.15s;
    outline: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.cwi__btn:focus-visible {
    outline: 2px solid var(--color-teal, var(--color-blue-100));
    outline-offset: 3px;
}

/* Pink variant */
.cwi__btn--pink {
    background-color: var(--color-primary);
    color: var(--white, #fff);
}

.cwi__btn--pink:active {
    transform: translateY(0);
}

/* Grey-blue variant */
.cwi__btn--grey-blue {
    background-color: #eff8f8;
    color: var(--color-heading);
}

.cwi__btn--grey-blue:hover {
    opacity: .5;
}

.cwi__btn--grey-blue:active {
    transform: translateY(0);
}

.cwi__btn-label {
    flex: 1;
}

.cwi__btn--grey-blue .cwi__btn-icon {
    background-color: #7abdb7;
}

.cwi__btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    background-color: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
    transition: transform 0.2s;
}

.cwi__btn:hover .cwi__btn-icon {
    transform: translateX(.2rem);
}

.cwi__btn-icon svg {
    width: 1rem;
    height: 1rem;
    fill: var(--white, #fff);
}

/* ── Image column ────────────────────────────────────────────────── */
.cwi__image-wrap {
    border-radius: 1.25rem;
    overflow: hidden;
    line-height: 0;
}

.cwi__image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

/* ── Stats card ──────────────────────────────────────────────────── */
.cwi__stats-col {
    display: flex;
    justify-content: center;
    width: 100%;
}

.cwi__stats-card {
    background-color: var(--color-body);
    border-radius: 0.3125rem 4.7rem;
    padding: 2.5rem;
    width: 100%;
}

/* Background color modifiers */
.cwi__stats-card--bg-dark  { background-color: var(--color-body); }
.cwi__stats-card--bg-green { background-color: var(--bg-green); }
.cwi__stats-card--bg-teal  { background-color: var(--color-blue-100, #7abdb7); }
.cwi__stats-card--bg-light { background-color: var(--bg-standard); }
.cwi__stats-card--bg-white { background-color: var(--white, #ffffff); }

/* Text color adapts for light backgrounds */
.cwi__stats-card--bg-light .cwi__stats-text,
.cwi__stats-card--bg-white .cwi__stats-text,
.cwi__stats-card--bg-light .cwi__stats-title,
.cwi__stats-card--bg-white .cwi__stats-title,
.cwi__stats-card--bg-light .cwi__stats-number,
.cwi__stats-card--bg-white .cwi__stats-number {
    color: var(--color-body);
}

@media (min-width: 1024px) {
    .cwi__stats-card {
        padding: 3rem;
    }
}

.cwi__stats-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.cwi__stats-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cwi__stats-icon-wrap {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cwi__stats-icon {
    width: 2.5rem;
    height: 2.5rem;
    display: block;
    object-fit: contain;
}

.cwi__stats-icon-wrap--svg svg {
    width: 2.5rem;
    height: 2.5rem;
    display: block;
    fill: #cf457e;
}

.cwi__stats-body {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.cwi__stats-number {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    color: var(--white, #fff);
}

.cwi__stats-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--white, #fff);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cwi__stats-text {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--white, #fff);
    margin: 0;
}

/* ── Decorative wave line ─────────────────────────────────────────── */
.cwi__decorative-line {
    display: block;
    position: absolute;
    pointer-events: none;
    z-index: 0;
    width: 40%;
    max-width: 28rem;
    top: 50%;
    transform: translateY(-50%);
}

.cwi__decorative-stats-line {
    display: block;
    position: absolute;
    pointer-events: none;
    z-index: 0;
    width: 40%;
    max-width: 28rem;
    top: 50%;
    left: 80%;
}

@media (max-width: 1023px) {
    .cwi__decorative-line {
        opacity: 0;
    }

    .cwi__decorative-stats-line {
        opacity: 0;
    }
}

.cwi__decorative-line--right {
    left: 85%;
}

@media (min-width: 2300px) {
    .cwi__decorative-line--right {
        left: 75%;
    }

    .cwi__decorative-stats-line {
        left: 75%;
    }
}

.cwi__decorative-line--left {
    right: 90%;
}

@media (min-width: 2300px) {
    .cwi__decorative-line--left {
        right: 75%;
    }
}

.cwi__decorative-line--flip {
    transform: translateY(-50%) scaleX(-1);
}

.cwi__decorative-svg {
    width: 100%;
    height: auto;
    display: block;
}

.cwi__path-pink {
    stroke: var(--color-primary);
}

/* ── Wave shapes (top/bottom) ────────────────────────────────────── */
.cwi__wave-top {
    position: relative;
    z-index: 1;
}

.cwi__wave-bottom {
    position: relative;
    z-index: 1;
}

/* ── No-text: center the media column ────────────────────────────── */

/* Hide the empty text column */
.cwi--no-text .cwi__text-col {
    display: none;
}

/* On mobile the grid is already a single flex column — just center items */
.cwi--no-text .cwi__grid {
    align-items: center;
}

/* On desktop override to single centered column */
@media (min-width: 1024px) {
    .cwi--no-text .cwi__grid {
        grid-template-columns: minmax(0, 40rem);
        justify-content: center;
    }
}

.cwi__image-col--stretched {
    width: 100%;
    height: 100% !important;
}

.cwi__image-col--stretched .cwi__image-wrap {
    width: 100%;
    height: 100%;
}

.cwi__image-col--stretched img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Give image/stats columns a sensible max-width and center them on mobile */
.cwi--no-text .cwi__image-col,
.cwi--no-text .cwi__stats-col {
    width: 100%;
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
}

/* ── No-media: text column spans full width ──────────────────────── */
@media (min-width: 1024px) {
    .cwi--no-media .cwi__grid {
        grid-template-columns: 1fr;
    }
}
