 
/* =========================
   SOLUTIONS SECTION
========================= */

.solutions-section {
    position: relative;
    padding: 60px 0;
    overflow: hidden;
    direction: rtl;
    background:
        linear-gradient(
            to bottom,
            #fff 0%,
            rgba(255, 255, 255, 0) 20%,
            rgba(255, 255, 255, 0) 80%,
            #fff 100%
        ),
        radial-gradient(
            ellipse at 15% 45%,
            rgba(69, 82, 166, .035),
            transparent 60%
        ),
        linear-gradient(
            125deg,
            #fcfcff 0%,
            #f8f9fe 48%,
            #f5f6fc 100%
        );
}

.solutions-section .row {
    align-items: stretch;
}

/* =========================
   HEADING
========================= */

.solutions-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 42px;
}

.solutions-heading-content {
    max-width: 760px;
}

.solutions-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 15px;
    margin-bottom: 17px;
    border: 1px solid rgba(69, 82, 166, .17);
    border-radius: 50px;
    background: rgba(255, 255, 255, .8);
    color: #39468f;
    font-size: 13px;
    font-weight: 800;
}

.solutions-heading h2 {
    color: #1c2548;
    font-size: clamp(29px, 3.4vw, 36px);
    line-height: 1.5;
    font-weight: 900;
    margin: 0 0 11px;
}

.solutions-heading h2 span {
    display: inline-block;
    color: #4552a6;
}

.solutions-heading p {
    max-width: 700px;
    color: #434d69;
    font-size: 15px;
    font-weight: 500;
    line-height: 2;
    margin: 0;
}

/* =========================
   ALL SOLUTIONS BUTTON
========================= */

.solutions-all-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    flex-shrink: 0;
    padding: 14px 21px;
    border: 1px solid #4552a6;
    border-radius: 12px;
    background: linear-gradient(135deg, #4552a6, #232c53);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(35, 44, 83, .17);
    transition: transform .25s ease, box-shadow .25s ease;
}

.solutions-all-btn:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 13px 27px rgba(35, 44, 83, .23);
}

.solutions-all-btn i {
    transition: transform .25s ease;
}

.solutions-all-btn:hover i {
    transform: translateX(-4px);
}

/* =========================
   SOLUTION CARDS
========================= */

.solution-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    min-height: 350px;
    padding: 30px 26px;
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(69, 82, 166, .13);
    border-radius: 18px;
    box-shadow: 0 10px 35px rgba(35, 44, 83, .06);
    overflow: hidden;
    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease,
        background .3s ease;
}

.solution-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #4552a6, #232c53);
    transform: scaleX(.25);
    transform-origin: right;
    transition: transform .35s ease;
}

.solution-card::after {
    content: "";
    position: absolute;
    top: -65px;
    left: -65px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(69, 82, 166, .045);
    pointer-events: none;
    transition: transform .35s ease;
}

.solution-card:hover {
    transform: translateY(-6px);
    background: #fff;
    border-color: rgba(69, 82, 166, .3);
    box-shadow: 0 22px 45px rgba(35, 44, 83, .12);
}

.solution-card:hover::before {
    transform: scaleX(1);
}

.solution-card:hover::after {
    transform: scale(1.25);
}

/* Hide numbers */
.solution-number {
    display: none !important;
}

/* =========================
   KOHA FEATURED CARD
   First card only
========================= */

.solution-card-featured {
    background: linear-gradient(145deg, #232c53 0%, #35447f 100%);
    border-color: #35447f;
    box-shadow: 0 14px 38px rgba(35, 44, 83, .16);
}

.solution-card-featured::before {
    transform: scaleX(1);
    background: linear-gradient(90deg, #a8b0ff, #777fd0);
}

.solution-card-featured::after {
    background: rgba(255, 255, 255, .045);
}

.solution-card-featured:hover {
    background: linear-gradient(145deg, #232c53 0%, #35447f 100%);
    border-color: #626fb4;
    box-shadow: 0 20px 42px rgba(35, 44, 83, .23);
}

/* Featured card text: always readable */
.solution-card-featured h3,
.solution-card-featured:hover h3 {
    color: #fff;
}

.solution-card-featured p,
.solution-card-featured:hover p {
    color: #e0e4f5;
}

/* =========================
   ICON
========================= */

.solution-icon {
    position: relative;
    z-index: 1;
    width: 62px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-bottom: 22px;
    border-radius: 16px;
    background: linear-gradient(145deg, #f0f1fc, #e3e6f8);
    border: 1px solid rgba(69, 82, 166, .1);
    color: #39468f;
    font-size: 24px;
    transition:
        background .3s ease,
        color .3s ease,
        transform .3s ease;
}

.solution-card:hover .solution-icon {
    background: linear-gradient(135deg, #4552a6, #232c53);
    color: #fff;
    transform: translateY(-3px);
}

/* Featured icon */
.solution-card-featured .solution-icon {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .17);
    color: #c3c9ff;
}

.solution-card-featured:hover .solution-icon {
    background: #fff;
    border-color: #fff;
    color: #35447f;
}

/* =========================
   TITLE
========================= */

.solution-card h3 {
    position: relative;
    z-index: 1;
    width: 100%;
    color: #1c2548;
    font-size: 19px;
    font-weight: 900;
    line-height: 1.7;
    margin: 0 0 12px;
}

/* =========================
   DESCRIPTION
========================= */

.solution-card p {
    position: relative;
    z-index: 1;
    width: 100%;
    color: #434d69;
    font-size: 14px;
    font-weight: 500;
    line-height: 2;
    margin: 0 0 18px;
}

/* =========================
   FEATURES LIST
========================= */

.solution-features {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

.solution-features li {
    position: relative;
    padding-right: 24px;
    color: #535c73;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.9;
}

.solution-features li::before {
    content: "\f00c";
    position: absolute;
    top: 5px;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #eef0fb;
    color: #4552a6;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 9px;
    content: "✓";
}

/* Featured features */
.solution-card-featured .solution-features li,
.solution-card-featured:hover .solution-features li {
    color: #e0e4f5;
}

.solution-card-featured .solution-features li::before,
.solution-card-featured:hover .solution-features li::before {
    background: rgba(255, 255, 255, .14);
    color: #c3c9ff;
}

/* =========================
   DETAILS LINK
========================= */

.solution-link {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #eceef6;
    color: #39468f;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
    transition: gap .25s ease, color .25s ease;
}

.solution-link i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #39468f;
    font-size: 12px;
    transition: background .25s ease, color .25s ease;
}

.solution-link:hover {
    color: #232c53;
    gap: 17px;
}

.solution-link:hover i {
    /* color: #fff; */
    /* background: #4552a6; */
}

/* Featured link: always readable */
.solution-card-featured .solution-link,
.solution-card-featured:hover .solution-link {
    border-color: rgb(255 255 255 / 44%);
    color: #d6dbff;
}

.solution-card-featured .solution-link i,
.solution-card-featured:hover .solution-link i {
    /* background: rgba(255, 255, 255, .13); */
    color: #fff;
}

.solution-card-featured .solution-link:hover,
.solution-card-featured:hover .solution-link:hover {
    color: #fff;
}

.solution-card-featured .solution-link:hover i,
.solution-card-featured:hover .solution-link:hover i {
    /* background: #fff; */
    /* color: #35447f; */
}

/* =========================
   TABLET
========================= */

@media (max-width: 991.98px) {
    .solutions-section {
        padding: 50px 0;
    }

    .solutions-heading {
        align-items: flex-start;
        margin-bottom: 35px;
    }

    .solutions-heading h2 {
        font-size: 32px;
    }

    .solutions-heading p {
        font-size: 14px;
    }

    .solutions-all-btn {
        padding: 12px 15px;
        font-size: 13px;
    }

    .solution-card {
        min-height: 340px;
        padding: 25px 22px;
    }

    .solution-card h3 {
        font-size: 17px;
    }

    .solution-card p {
        font-size: 13.5px;
    }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 575.98px) {
    .solutions-section {
        padding: 35px 0;
    }

    .solutions-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 28px;
    }

    .solutions-kicker {
        font-size: 11px;
        padding: 7px 12px;
        margin-bottom: 14px;
    }

    .solutions-heading h2 {
        font-size: 25px;
        line-height: 1.6;
        margin-bottom: 10px;
    }

    .solutions-heading p {
        font-size: 13px;
        line-height: 1.9;
    }

    .solutions-all-btn {
        padding: 12px 16px;
        font-size: 13px;
    }

    .solution-card {
        min-height: auto;
        padding: 24px 21px;
        border-radius: 16px;
    }

    .solution-card:hover {
        transform: translateY(-3px);
    }

    .solution-icon {
        width: 54px;
        height: 54px;
        font-size: 21px;
        margin-bottom: 17px;
        border-radius: 14px;
    }

    .solution-card h3 {
        font-size: 17px;
        margin-bottom: 9px;
    }

    .solution-card p {
        font-size: 13px;
        line-height: 1.9;
        margin-bottom: 17px;
    }

    .solution-features {
        gap: 8px;
        margin-bottom: 18px;
    }

    .solution-features li {
        font-size: 12px;
        line-height: 1.9;
    }

    .solution-link {
        font-size: 13px;
        gap: 10px;
    }

    .solution-link i {
        width: 29px;
        height: 29px;
        font-size: 11px;
    }
}

/* =========================
   ACCESSIBILITY
========================= */

@media (prefers-reduced-motion: reduce) {
    .solution-card,
    .solution-card::before,
    .solution-card::after,
    .solution-icon,
    .solution-link,
    .solution-link i,
    .solutions-all-btn,
    .solutions-all-btn i {
        transition: none;
    }
}

/* ==================== Case Studies Section ======================== */
 .case-studies-section {
    padding: 60px 0;
    background: #f7f8fc;
    font-family: "Almarai", "Roboto", sans-serif;
    direction: rtl;
    overflow: hidden;
}

/* Header - Keep Existing Design */
.case-studies-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.case-studies-heading {
    max-width: 650px;
}
 

.case-studies-heading h2 {
    margin: 0 0 8px;
    color: #232c53;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.5;
}

.case-studies-heading h2 span {
    color: #4552a6;
}

.case-studies-heading p {
    margin: 0;
    color: #69718a;
    font-size: 15px;
    line-height: 1.9;
}

.case-studies-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    flex-shrink: 0;
    padding: 12px 20px;
    border: 1px solid #4552a6;
    border-radius: 7px;
    background: #4552a6;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: .3s ease;
}

.case-studies-all:hover {
    background: #232c53;
    border-color: #232c53;
    color: #fff;
}

/* ==============================
   Cards Grid
============================== */

.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    height: auto;
    align-items: stretch;
    direction: rtl;
}

/* ==============================
   Card Design
============================== */

.case-card,
.case-card-featured,
.case-card-horizontal {
    position: relative;
    display: flex;
    flex-direction: column;
    grid-column: auto;
    grid-row: auto;
    min-width: 0;
    min-height: 100%;
    height: auto;
    overflow: hidden;
    border: 1px solid #e7eaf3;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 5px 20px rgb(35 44 83 / 5%);
    transition: transform .3s ease, box-shadow .3s ease;
}

.case-card::before,
.case-card-featured::before,
.case-card-horizontal::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 3;
    width: 170px;
    height: 4px;
    border-radius: 0 0 5px 5px;
    background: linear-gradient(90deg, #4552a6, #858de0);
    transform: translateX(-50%);
    transition: width .3s ease;
}

.case-card:hover,
.case-card-featured:hover,
.case-card-horizontal:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 32px rgb(35 44 83 / 11%);
}

.case-card:hover::before,
.case-card-featured:hover::before,
.case-card-horizontal:hover::before {
    width: 110px;
}

/* ==============================
   Card Image
============================== */

.case-card-image {
    position: relative;
    display: block;
    width: 100%;
    height: 230px;
    min-height: 230px;
    flex-shrink: 0;
    overflow: hidden;
    background: #e9ecf6;
}

.case-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .5s ease;
}

.case-card:hover .case-card-image img,
.case-card-featured:hover .case-card-image img,
.case-card-horizontal:hover .case-card-image img {
    transform: scale(1.05);
}

/* ==============================
   Card Number
============================== */

.case-card-number {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgb(255 255 255 / 30%);
    border-radius: 9px;
    background: rgb(35 44 83 / 90%);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    direction: ltr;
    backdrop-filter: blur(5px);
}

/* ==============================
   Card Content
============================== */

.case-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding: 25px 24px 24px;
    direction: rtl;
}

.case-card-content h3 {
    position: relative;
    margin: 0 0 12px;
    color: #232c53;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.case-card-content p {
    margin: 0 0 22px;
    color: #69718a;
    font-size: 15px;
    line-height: 2;
    overflow-wrap: anywhere;
}

/* ==============================
   Card Button
============================== */

.case-card-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: auto;
    padding: 11px 17px;
    border: 1px solid #e1e5f3;
    border-radius: 8px;
    background: #f5f6fc;
    color: #4552a6;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: background .3s ease, color .3s ease,
                border-color .3s ease, gap .3s ease;
}

.case-card-link:hover {
    gap: 14px;
    border-color: #4552a6;
    background: #4552a6;
    color: #fff;
}

.case-card-link i {
    font-size: 13px;
}

/* Override old horizontal card rules */
.case-card-horizontal {
    display: flex;
    flex-direction: column;
}

.case-card-horizontal .case-card-image {
    width: 100%;
    height: 230px;
    min-height: 230px;
}

.case-card-horizontal .case-card-content {
    justify-content: flex-start;
    padding: 25px 24px 24px;
}

.case-card-horizontal .case-card-content h3 {
    margin-bottom: 12px;
    font-size: 21px;
    line-height: 1.8;
}

.case-card-horizontal .case-card-content p {
    margin-bottom: 22px;
    font-size: 15px;
    line-height: 2;
}

.case-card-horizontal .case-card-link {
    margin-top: auto;
    padding: 11px 17px;
    font-size: 14px;
}

/* ==============================
   Tablet
============================== */

@media (max-width: 991px) {
    .case-studies-section {
        padding: 45px 0;
    }

    .case-studies-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .case-card-image,
    .case-card-horizontal .case-card-image {
        height: 220px;
        min-height: 220px;
    }

    .case-card-content,
    .case-card-horizontal .case-card-content {
        padding: 22px 20px;
    }

    .case-card-content h3,
    .case-card-horizontal .case-card-content h3 {
        font-size: 19px;
    }

    .case-card-content p,
    .case-card-horizontal .case-card-content p {
        font-size: 14px;
    }
}

/* ==============================
   Mobile
============================== */

@media (max-width: 767px) {
    .case-studies-section {
        padding: 35px 0;
    }

    .case-studies-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
        margin-bottom: 22px;
    }

    .case-studies-heading h2 {
        font-size: 28px;
    }

    .case-studies-heading p {
        font-size: 14px;
    }

    .case-studies-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .case-card-image,
    .case-card-horizontal .case-card-image {
        height: 250px;
        min-height: 250px;
    }

    .case-card-content,
    .case-card-horizontal .case-card-content {
        padding: 22px;
    }

    .case-card-content h3,
    .case-card-horizontal .case-card-content h3 {
        font-size: 21px;
    }

    .case-card-content p,
    .case-card-horizontal .case-card-content p {
        margin-bottom: 18px;
        font-size: 15px;
        line-height: 1.9;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .case-studies-heading h2 {
        font-size: 25px;
    }

    .case-card-image,
    .case-card-horizontal .case-card-image {
        height: 215px;
        min-height: 215px;
    }

    .case-card-content,
    .case-card-horizontal .case-card-content {
        padding: 20px;
    }

    .case-card-content h3,
    .case-card-horizontal .case-card-content h3 {
        font-size: 19px;
    }
}
.solution-card-featured p{
    color: #e0e4f5;
}.solution-card-featured h3 {
    color: #fff;
}
/* Solution Request Button */
.solution-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 15px;
    border: 1px solid #4552a6;
    border-radius: 38px;
    /* background: #4552a6; */
    color: #4552a6;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all .25s ease;
}

.solution-link:hover {
    color: #4552a6;
    /* background: #fff; */
    transform: translateY(-2px);
}

.solution-link i {
    transition: transform .25s ease;
}

.solution-link:hover i {
    /* transform: translateX(-4px); */
}

/* Modal */
.solution-modal-content {
    overflow: hidden;
    border: 1px solid #e8eaf2;
    border-radius: 16px;
    direction: rtl;
}

.solution-modal-content .modal-header {
    padding: 22px 25px;
    background: #f7f8fc;
    border-bottom: 1px solid #e8eaf2;
}

.solution-modal-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #4552a6;
    font-size: 12px;
    font-weight: 700;
}

.solution-modal-content .modal-title {
    color: #232c53;
    font-size: 22px;
    font-weight: 800;
}

.solution-modal-description {
    margin-bottom: 22px;
    color: #687286;
    font-size: 14px;
    line-height: 1.9;
}

.solution-modal-content .modal-body {
    padding: 25px;
}

.solution-modal-content .form-label {
    display: block;
    margin-bottom: 8px;
    color: #232c53;
    font-size: 13px;
    font-weight: 700;
}

.solution-modal-content .form-control,
.solution-modal-content .form-select {
    min-height: 45px;
    border: 1px solid #dfe3ed;
    border-radius: 8px;
    color: #232c53;
    font-family: inherit;
    font-size: 14px;
    text-align: right;
}

.solution-modal-content textarea.form-control {
    min-height: 95px;
    resize: vertical;
}

.solution-modal-content .form-control:focus,
.solution-modal-content .form-select:focus {
    border-color: #4552a6;
    box-shadow: 0 0 0 3px rgba(69, 82, 166, .12);
}

.solution-modal-content .modal-footer {
    gap: 10px;
    padding: 18px 25px;
    border-top: 1px solid #e8eaf2;
}

.solution-cancel-btn,
.solution-submit-btn {
    padding: 10px 18px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
}

.solution-cancel-btn {
    color: #596276;
    background: #f0f2f7;
}

.solution-cancel-btn:hover {
    background: #e5e8f0;
}

.solution-submit-btn {
    color: #fff;
    background: #4552a6;
}

.solution-submit-btn:hover {
    color: #fff;
    background: #343f89;
}

@media (max-width: 575px) {
    .solution-modal-content .modal-header,
    .solution-modal-content .modal-body {
        padding: 20px;
    }

    .solution-modal-content .modal-footer {
        padding: 15px 20px;
    }

    .solution-modal-content .modal-title {
        font-size: 19px;
    }
}
@media (min-width: 576px) {
    .modal-dialog {
        max-width: 700px;
        margin: 1.75rem auto;
    }
}