/* =========================================================
   CASE STUDY PAGE
   Page-specific styles only.

   IMPORTANT:
   Do NOT define or override:
   .web-heading
   .process-content
   .process-title
========================================================= */


/* =========================================================
   HERO
========================================================= */

.hero-bg-2 {
    position: relative;
    background-image: url('../images/case-study-background.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    overflow: hidden;
}

.hero-bg-2::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.08);
    pointer-events: none;
}

.hero-bg-2 .container {
    position: relative;
    z-index: 1;
}


/* =========================================================
   CATEGORY FILTERS
========================================================= */

.case-study-filter {
    min-width: 145px;
    min-height: 38px;
    padding: 7px 22px;

    border: 1px solid #777777;
    border-radius: 30px;

    background: #ffffff;
    color: #222222;

    font-family: inherit;
    font-size: 16px;
    font-weight: 500;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.case-study-filter:hover {
    border-color: #0878d5;
    color: #0878d5;
    transform: translateY(-1px);
}

.case-study-filter.active {
    border-color: #0878d5;
    background: #0878d5;
    color: #ffffff;
}


/* =========================================================
   CARD
========================================================= */

/* =========================================================
   CARD
========================================================= */

.case-study-card {
    display: flex;
    flex-direction: column;

    width: 100%;
    height: 100%;

    padding: 0 !important;
    margin: 0 !important;

    overflow: hidden;

    border: 1px solid #d8d8d8;
    border-radius: 15px;

    background: #ffffff;

    box-sizing: border-box;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.case-study-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}


/* =========================================================
   IMAGE AREA
========================================================= */

.case-study-image-wrapper {
    position: relative;

    width: 100% !important;
    height: 290px;
    min-height: 290px;
    flex: 0 0 290px;

    padding: 0 !important;
    margin: 0 !important;

    overflow: hidden;

    background: #f5f9ff;

    box-sizing: border-box;

    border-radius: 14px 14px 0 0;
}


/* =========================================================
   IMAGE
========================================================= */

.case-study-image {
    display: block;

    width: 100% !important;
    height: 100% !important;

    max-width: none !important;

    padding: 0 !important;
    margin: 0 !important;

    border: 0 !important;

    object-fit: cover !important;
    object-position: center center;

    transition: transform 0.3s ease;
}

.case-study-card:hover .case-study-image {
    transform: scale(1.035);
}


/* =========================================================
   IMAGE AREA
========================================================= */

.case-study-image-wrapper {
    position: relative;

    width: 100%;
    height: 290px;
    min-height: 290px;
    flex: 0 0 290px;

    padding: 0;
    margin: 0;

    overflow: hidden;

    background: #f5f9ff;

    box-sizing: border-box;

    border-radius: 14px 14px 0 0;
}

.case-study-image {
    background: primary-subtle;
}


/* =========================================================
   IMAGE
========================================================= */

.case-study-image {
    display: block;

    /* width: 500px;
    height: 290px; */

       width: 100% !important;
    height: 100% !important;

    margin: 0;
    padding: 0;

    border: 0;

    object-fit: cover;
    object-position: center center;

    transition: transform 0.3s ease;
}

.case-study-card:hover .case-study-image {
    transform: scale(1.035);
}


/* =========================================================
   CATEGORY LABEL
========================================================= */

.case-study-category {
    position: absolute;

    top: 12px;
    left: 12px;

    display: inline-flex;
    align-items: center;

    padding: 6px 12px;

    border-radius: 20px;

    background: rgba(255, 255, 255, 0.95);
    color: #222222;

    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;

    z-index: 2;
}


/* =========================================================
   CARD CONTENT
========================================================= */

.case-study-card-body {
    display: flex;
    flex-direction: column;

    flex: 1 1 auto;

    padding: 18px 16px 16px;

    background: #ffffff;
}


/*
 * This is NOT a typography class.
 *
 * process-content remains responsible for
 * the font size of the text.
 */

.case-study-card-subtitle {
    color: #171717;
}


/*
 * Same principle here:
 * process-content controls typography.
 */

.case-study-card-description {
    color: #444444;
}

.case-study-card-description strong {
    color: #222222;
    font-weight: 700;
}


/* =========================================================
   VIEW CASE STUDY
========================================================= */

.case-study-view-btn {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    width: 100%;

    padding: 11px 15px;

    border-radius: 11px;

    background: #0878d5;
    color: #ffffff;

    text-decoration: none;

    font-size: 13px;
    font-weight: 600;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.case-study-view-btn:hover {
    background: #0567b8;
    color: #ffffff;

    transform: translateY(-1px);
}

.case-study-view-btn span:last-child {
    font-size: 17px;
    line-height: 1;
}


/* =========================================================
   PAGINATION
========================================================= */

.case-study-page-btn {
    width: 38px;
    height: 38px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid #d2d2d2;
    border-radius: 7px;

    background: #ffffff;
    color: #333333;

    font-family: inherit;
    font-size: 13px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.case-study-page-btn:hover:not(:disabled) {
    border-color: #0878d5;
    color: #0878d5;

    transform: translateY(-1px);
}

.case-study-page-btn.active {
    border-color: #0878d5;

    background: #0878d5;
    color: #ffffff;
}

.case-study-page-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}


/* =========================================================
   CTA
========================================================= */

.case-study-cta {
    position: relative;

    overflow: hidden;

    background-color: #a5d7f1;

    /* background-image: url('../images/case-study-background.svg'); */

    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.case-study-cta::before {
    content: "";

    position: absolute;
    inset: 0;

    background: rgba(210, 239, 255, 0.86);

    pointer-events: none;
}

.case-study-cta .container {
    position: relative;
    z-index: 1;
}


/* =========================================================
   CTA IMAGE
========================================================= */

.case-study-cta-image {
    width: 100%;
    max-width: 300px;

    height: 200px;

    display: inline-block;

    object-fit: cover;

    border-radius: 15px;
}


/* =========================================================
   TEXT OVERFLOW
========================================================= */

.overflow-4 {
    display: -webkit-box;

    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;

    overflow: hidden;
}

.overflow-2 {
    display: -webkit-box;

    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;
}

.overflow-1 {
    display: -webkit-box;

    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;

    overflow: hidden;
}


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

@media (max-width: 767px) {

    .case-study-filter {
        min-width: 120px;

        padding-left: 14px;
        padding-right: 14px;

        font-size: 16px;
    }


    .case-study-image-wrapper {
        height: 220px;
        min-height: 220px;
        flex-basis: 220px;
    }


    .case-study-card-body {
        padding: 17px 15px 15px;
    }


    .case-study-page-btn {
        width: 36px;
        height: 36px;
    }


    .case-study-cta-image {
        max-width: 100%;
        height: 190px;
    }
}