/* =============================================================
   CASH MANAGEMENT PAGE — scoped under .cash-management-page
   ============================================================= */

/* ── Hero ────────────────────────────────────────────────────── */
.cm-hero {
    position: relative;
    display: flex;
    align-items: center;
    padding: 100px 30px 40px;
    overflow: hidden;
    background: #003b70;
}

.cm-hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cm-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        rgba(0, 46, 95, .90) 0%,
        rgba(0, 46, 95, .72) 45%,
        rgba(0, 46, 95, .30) 100%);
}

.cm-hero__content {
    margin-top:20px;
    position: relative;
    z-index: 2;
    color: #fff;
}

.cm-hero__title {
    margin: 0;
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.18;
    font-weight: 400;
}

.cm-hero__title-accent {
    color: #00C4B3;
    display: block;
}

.cm-hero__subtitle {
    margin: 18px 0 0;
    max-width: 560px;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .85);
}

.cm-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.cm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 999px;
    padding: 0 20px 3px;
    text-decoration: none;
    font-weight: 400;
    font-size: 14px;
}

    .cm-btn:hover {
        border: 1px solid #fff;
        color: #fff;
    }

.cm-btn--primary {
    background: #7bdc4f;
    color: #FFFF;
}

.cm-btn--outline {
    border: 1px solid #fff;
    color: #fff;
}
/* ── Page wrapper ────────────────────────────────────────────── */
.cash-management-page {
    background: #f6f8fb;
}

/* ── Shared badge ────────────────────────────────────────────── */
.cm-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 59, 112, 0.08);
    color: #003b70;
    border-radius: 300px;
    padding: 10px 16px;
    font-family: 'Co Headline', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 28px;
    width: fit-content;}


/* ── Section centering ───────────────────────────────────────── */
.cm-section {
    max-width: 1280px;
    margin-inline: auto;
    padding: 40px 24px;
}

.cm-section--centered-badge {
    text-align: center;
}

/* ── Overview ────────────────────────────────────────────────── */
.cm-overview {
   /* padding: 32px 30px 48px;*/
    background: #fff;
}

.cm-overview__inner {
   
    margin-inline: auto;
}

.cm-overview__badge-wrap {/*
    text-align: center;*/
    margin-bottom: 32px;
}

.cm-overview__grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: stretch;
}

/* Feature cards — 3 across */
.cm-feature-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.cm-feature-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    /*justify-content: flex-end;*/
    padding: 16px;
    background: #003B70 !important;
    color: #fff;
}

.cm-feature-card__bg {
    display: none;
}

.cm-feature-card__overlay {
    display: none;
}

.cm-feature-card__body {
    position: relative;
    z-index: 2;
}

.cm-feature-card__icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
    margin-bottom: 16px;
    display: block;
}

.cm-feature-card__title {
    margin: 0 0 16px;
    font-family: Co Headline;
    font-weight: 400;
    font-size: 24px;
    line-height: 150%;
    letter-spacing: 0%;
    vertical-align: middle;
    color: #FFFFFF
}

.cm-feature-card__desc {
    margin: 0;
    font-family: Co Headline;
    font-weight: 400;
    font-size: 14px;
    line-height: 120%;
    letter-spacing: 0%;
    vertical-align: middle;
    color: #FFFFFF
}

/* Overview text side */
.cm-overview__text {
    height: 75%;
    display: flex;
    flex-direction: column;
   /* gap: 16px;*/
}

.cm-overview__intro {
    margin: 0;
    font-size: 17px;
    line-height: 1.65;
    color: #5F6674;
}

    .cm-overview__intro strong {
        color: #00C4B3;
        font-weight: 500;
        font-size: 22px;
    }
/* Arabic intro — full teal, large, right-aligned */
.cm-overview__intro--ar {
    font-family: 'Co Headline', sans-serif;
    font-size: 24px;
    font-weight: 500;
    line-height: 40px;
    color: #00C4B3;
    text-align: right;
    direction: rtl;
    width: 100%;
    margin: 0;
}

.cm-overview__body {
    margin-top: auto !important;
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: #5F6674;
}

/* ── Key Solutions ───────────────────────────────────────────── */
/*.cm-solutions {
    padding: 32px 30px 24px;
}*/

.cm-solutions__inner {
  
    margin-inline: auto;
}

.cm-solutions__badge-wrap {
    text-align: center;
    margin-bottom: 32px;
}

.cm-solutions__columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

/* Left column */
.cm-solutions__left-title {
    margin: 0 0 32px;
    color: #7bdc4f;
    font-family: Co Headline;
    font-weight: 400;
    font-size: 32px;
    line-height: 120%;
    letter-spacing: 0%;
    vertical-align: middle;
}

.cm-liquidity-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.cm-liquidity-item {
    display: flex;
    gap: 27px;
    align-items: flex-start;
}

.cm-liquidity-item__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    object-fit: contain;
    align-self: center;
}

.cm-liquidity-item__text {
    flex: 1;
}

.cm-liquidity-item__title {
    margin: 0 0 4px;
    color: #8BDC64;
    font-family: Co Headline;
    font-weight: 400;
    font-size: 24px;
    line-height: 150%;
    letter-spacing: 0%;
    vertical-align: middle;
}

.cm-liquidity-item__desc {
    margin: 0;
    color: #5F6674;
    font-family: Co Headline;
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    letter-spacing: 0%;
    vertical-align: middle;
}

/* Right dark card */
.cm-solutions__right-card {
    background: #003B70;
    border-radius: 16px;
    overflow: hidden;
    color: #fff;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}
.cm-solutions__left-card-body {
    padding: 24px 24px 16px;
}
.cm-solutions__left-card {
    background-color: #fff;
    border-radius: 16px;
    overflow: hidden;
    color: #fff;
    display: flex;
    flex-direction: column;
  /*  height: 530px;*/
    width: 100%;
}

.cm-solutions__right-card-body {
    padding: 32px;
    background: #003B70;
    border-radius: 16px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.cm-solutions__right-title {
    margin: 0 0 24px;
    font-family: Co Headline;
    font-weight: 400;
    font-size: 32px;
    line-height: 120%;
    color: #fff;
}

.cm-collection-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    gap: 24px;
    margin-bottom: 8%;
}

.cm-collection-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.cm-collection-item__icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    object-fit: contain;
    margin-top: 4px;
    align-self: center;

}

.cm-collection-item__title {
    margin: 0 0 8px;
    font-family: Co Headline;
    font-weight: 400;
    font-size: 24px;
    line-height: 150%;
    color: #fff;
    white-space: normal;
}

.cm-collection-item__desc {
    margin: 0;
    font-family: Co Headline;
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    text-align: left;
    color: rgba(255, 255, 255, .85);
}

/* ── Inquiry Form ────────────────────────────────────────────── */
.cm-inquiry {
    padding: 48px 24px;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    background-color: #002e5f;
    background-image: url("/assets/NewFolder/CorporateFormBg.svg"), linear-gradient(to bottom, #002e5f 8.98%, rgba(0, 90, 156, 1) 80.74%);
    background-repeat: no-repeat, no-repeat;
    background-position: left bottom, center;
    background-size: 100% auto, cover;
    overflow: hidden;
}

.cm-inquiry__inner {
    max-width: 900px;
    margin-inline: auto;
    align-items: center;
    color: white;
}

.cm-inquiry__title {
    text-align: center;
    margin: 0 0 28px;
    font-size: 24px;
    font-weight: 400;
    color: #fff;
}

.cm-inquiry__form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.cm-inquiry__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.cm-inquiry__row--full {
    grid-template-columns: 1fr;
}

.cm-inquiry__field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cm-inquiry__field input,
.cm-inquiry__field textarea {
    width: 100%;
    padding: 13px 16px;
    border-radius: 8px;
    border: 0;
    background: #f1f4f8;
    color: #44566f;
    font-size: 14px;
    outline: none;
    transition: background .2s;
}

.cm-inquiry__field input:focus,
.cm-inquiry__field textarea:focus {
    background: #fff;
}

.cm-inquiry__field input::placeholder,
.cm-inquiry__field textarea::placeholder {
    color: #8fa3b8;
}

.cm-inquiry__field textarea {
    min-height: 96px;
    resize: vertical;
}

.cm-inquiry__field .text-danger {
    font-size: 12px;
    color: #ff8080;
}

.cm-inquiry__submit-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}


.cm-inquiry__note {
    font-size: 16px;
    color: rgba(255, 255, 255, .95);
    text-align: center;
    font-weight: 400;
}

/* ── RTL overrides ───────────────────────────────────────────── */
[dir="rtl"] .cm-hero__overlay {
    background: linear-gradient(270deg,
        rgba(0, 46, 95, .90) 0%,
        rgba(0, 46, 95, .72) 45%,
        rgba(0, 46, 95, .30) 100%);
}

/* Overview text column — RTL */
[dir="rtl"] .cm-overview__text {
    align-items: flex-end;
    text-align: right;
}

[dir="rtl"] .cm-overview__intro,
[dir="rtl"] .cm-overview__intro--ar,
[dir="rtl"] .cm-overview__body {
    text-align: right;
    width: 100%;
}

/* Liquidity list — RTL */
[dir="rtl"] .cm-liquidity-item {
    flex-direction: row-reverse;
    text-align: right;
}

[dir="rtl"] .cm-liquidity-item__icon {
    order: 1;
}

[dir="rtl"] .cm-liquidity-item__text {
    order: 0;
}

[dir="rtl"] .cm-liquidity-item__title,
[dir="rtl"] .cm-liquidity-item__desc {
    text-align: right;
}

/* Collection card — RTL */
[dir="rtl"] .cm-solutions__right-card-body {
    display: flex;
    flex-direction: column;
    align-items: flex-end;/*
    height: 370px;*/
}

[dir="rtl"] .cm-solutions__right-title {
    font-size: 32px;
    line-height: 120%;
    font-weight: 400;
    text-align: right;
    width: 100%;
}

[dir="rtl"] .cm-collection-list {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: 100%;
}

[dir="rtl"] .cm-collection-item {
    flex-direction: row-reverse;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    text-align: right;
}

[dir="rtl"] .cm-collection-item > div {
    order: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    width: 100%;
}
[dir="rtl"] .cm-collection-item__title {
    font-size: 24px;
    font-weight: 400;
    line-height: 150%;
    text-align: right;
    color: #fff;
    width: 100%;
}
.cm-inquiry {
    padding: 48px 15px;
}

    [dir="rtl"] .cm-collection-item__desc {
        font-size: 16px;
        font-weight: 400;
        line-height: 150%;
        text-align: right;
        color: rgba(255, 255, 255, .85);
        width: 100%;
    }

    [dir="rtl"] .cm-collection-item__icon {
        order: 1;
        flex-shrink: 0;
        /* tint icon green to match #8BDC64 */
        filter: brightness(0) saturate(100%) invert(80%) sepia(40%) saturate(500%) hue-rotate(60deg) brightness(105%);
    }
    html[dir="rtl"] .cm-solutions__left-card {
        background-position: left bottom;
    }

    [dir="rtl"] .cm-hero__title {
        font-size: 59px;
        line-height: 1.4;
    }
    /* ── Alerts ──────────────────────────────────────────────────── */
    .cm-alert {
        padding: 12px 18px;
        border-radius: 8px;
        margin-bottom: 14px;
        font-size: 14px;
    }

    .cm-alert--success {
        background: rgba(123, 220, 79, .15);
        color: #7bdc4f;
        border: 1px solid rgba(123, 220, 79, .3);
    }

    .cm-alert--error {
        background: rgba(255, 80, 80, .12);
        color: #ff8080;
        border: 1px solid rgba(255, 80, 80, .25);
    }
    /* ── Responsive ──────────────────────────────────────────────── */
    @media (max-width: 768px) {
        .cm-solutions__left-card-body {
            padding: 16px;
        }
        .cm-hero__content {
            margin-top: 40px;

        }
        [dir="rtl"] .cm-hero__title {
            margin-bottom: 35px;
            margin-top: 40px;
            font-size: 30px;
            line-height: 1.4;
        }
        .cm-overview {
          /*  padding: 24px 16px;*/
        }
        .cm-hero__title {
            margin-bottom: 35px;
            margin-top: 40px;
            font-size: 30px;
            line-height: 1.4;
        }

        .cm-hero {
            min-height: 440px;
            padding: 32px 18px;
        }

        .cm-hero__title {
            padding-top: 36px;
        }

        .cm-overview__badge-wrap {
            text-align: center;
        }

        .cm-overview__body {
            text-align: center;
            font-size: 16px;
        }

        .cm-feature-card__title {
            font-size: 20px;
        }

        .cm-feature-card__desc {
            font-size: 16px;
        }
        .cm-overview__intro {
            text-align: center;
            font-size: 16px;
        }

        .cm-solutions__left-card {
            height: auto;
        }

/*        .cm-solutions {
            padding: 24px 16px;
        }*/

        .cm-solutions__right-card {
            height: auto;
        }

        .cm-solutions__right-card-body {
            padding:16px;
            height: auto;
        }

        .cm-solutions__columns {
            grid-template-columns: 1fr;
        }

        .cm-feature-cards {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .cm-inquiry__row {
            grid-template-columns: 1fr;
        }

        .cm-solutions__left-card {
            background-image: none !important;
        }

        [dir="rtl"] .cm-overview__intro, [dir="rtl"] .cm-overview__intro--ar, [dir="rtl"] .cm-overview__body {
            text-align: center;
        }

        .cm-overview__intro--ar {
            font-size: 25px;
            line-height: 35px;
        }


        /* Left column */
        .cm-solutions__left-title {
            margin: 0 0 16px;
            color: #7bdc4f;
            font-size: 24px;
            line-height: 150%;
        }
        .cm-liquidity-item {
            gap: 24px;
        }
        .cm-liquidity-item__desc {
            font-size: 16px;
            line-height: 150%;
        }
        .cm-liquidity-item__title{
            font-size: 16px;
        }
        .cm-solutions__right-title {
            font-size: 24px;
        }
        .cm-collection-item__title {
            font-size: 20px;
        }
    }

    @media (max-width: 480px) {
        .cm-feature-cards {
            grid-template-columns: 1fr;
        }

        .cm-solutions__left-card {
            background-image: none !important;
        }
    }
