/* Case Studies Hero */

#case_studies_hero {
    padding: 0 100px;
    margin: 115px 0 180px;
}

#case_hero_inner {
    display: grid;
    grid-template-columns: 600px minmax(0, 810px);
    align-items: center;
    justify-content: space-between;
    column-gap: 60px;
}

.case_hero_title {
    font-size: 72px;
    line-height: 1.08em;
    font-weight: 700;
    grid-row: 1;
    grid-column: 1;
    padding-top: 100px;
    color: #ffffff;
}

.case_hero_img {
    grid-row: 1 / 4;
    grid-column: 2;
    max-width: 810px;
    aspect-ratio: 808 / 557;
    position: relative;
    width: 100%;
    max-height: 557px;
}

.case_hero_img_overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 20px;
}

.case_hero_img img {
    position: relative;
    z-index: 2;
    width: 100%;
}

.case_hero_txt {
    grid-column: 1;
    grid-row: 2;
    font-size: 22px;
    line-height: 140%;
    font-weight: 400;
    margin-bottom: 120px;
    margin-top: 24px;
    color: rgba(185, 192, 212, 1);
}

.case_hero_bottom {
    grid-column: 1;
    grid-row: 3;
    padding-bottom: 52px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    column-gap: 20px;
    row-gap: 20px;
}

.case_hero_clients {
    display: flex;
    column-gap: 10px;
    align-items: center;
}

.case_hero_clients_title {
    color: #ffffff;
    font-size: 22px;
    line-height: 140%;
    font-weight: 400;
}

.case_hero_clients_txt {
    color: rgba(185, 192, 212, 1);
    font-size: 14px;
    line-height: 110%;
    font-weight: 500;
}

#trusted_partners h2 {
    display: none;
}

/* Top Case Studies */

#top_case_studies {
    position: relative;
    z-index: 2;
    padding: 107px 100px 112px;
    border-radius: 60px;
    background-color: #ffffff;
}

.case_studies_bg_lines {
    position: absolute;
    top: 0px;
    left: 0px;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}

#case_studies_wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    row-gap: 60px;
}

.case_study_card {
    background-color: #E3EEF3;
    padding: 78px 74px;
    display: flex;
    justify-content: space-between;
    text-decoration: none;
    border-radius: 30px;
}

.case_study_card_inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 50px;
    align-items: center;
    width: 100%;
}

.case_study_card * {
    color: var(--say9-text-blue);
}

.case_study_card .logo {
    max-width: 168px;
    user-select: none;
    -webkit-user-select: none;
    display: flex;
    grid-row: 1;
    grid-column: 1 / 4;
    margin-bottom: 9px;
}

.card_title {
    font-size: 48px;
    line-height: 118%;
    font-weight: 700;
    grid-row: 2;
    grid-column: 1 / 4;
    margin-bottom: 24px;
    max-width: 630px;
    color: rgba(24, 31, 53, 1);
}

.card_stats {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    grid-row: 3;
    grid-column: 1 / 4;
    column-gap: 32px;
    margin-bottom: 110px;
    max-width: 520px;
}

.card_stat {
    font-size: 24px;
    line-height: 38px;
    font-weight: 600;
    display: flex;
    align-items: center;
    column-gap: 10px;
}

.card_stat span {
    color: rgba(24, 31, 53, 1);
    font-size: 24px;
    line-height: 1.6em;
    font-weight: 600;
}

.traffic_count {
    min-width: 60px;
    height: 27px;

    background-color: #fff;
    border-radius: 100px;
    padding: 2px 8px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    column-gap: 5px;
}

.traffic_count span {
    font-size: 16px !important;
    line-height: 1.2em !important;
    font-weight: 600 !important;
    color: rgba(22, 179, 100, 1) !important;
    margin-top: 4px;
}

.case_study_card .wp-post-image {
    grid-row: 1 / 5;
    grid-column: 4;
    max-width: 750px;
    height: unset;
}

.case_study_card .icon_btn_wrapper {
    grid-row: 4;
    grid-column: 1 / 4;
    justify-content: flex-start;
}

.read_more {
    background: transparent;
    border: 2px solid var(--say9-primary-blue);
}

.read_more span {
    color: var(--say9-primary-blue);
    transition: color 0.3s ease-out;
}

.case_study_card:hover .read_more {
    background-color: var(--say9-primary-blue);
}

.case_study_card:hover .read_more span {
    color: #ffffff;
}

.read_more svg rect {
    transition: fill 0.3s ease-in-out;
}

.read_more svg path {
    transition: stroke 0.3s ease-in-out;
}

.case_study_card:hover .read_more svg rect {
    fill: #ffffff;
}

.case_study_card:hover .read_more svg path {
    stroke: #031D3D;
}

#result {
    padding-top: 160px;
}

@media screen and (max-width: 1600px) {
    #case_hero_inner {
        column-gap: 50px;
        grid-template-columns: 550px minmax(0, 810px);
    }

    .case_study_card .wp-post-image {
        max-width: 650px;
    }

    .case_study_card .logo {
        margin-top: 50px;
    }

    .read_more {
        margin-bottom: 50px;
    }
}

@media screen and (max-width: 1440px) {
    #case_studies_hero {
        margin: 70px 0 110px;
    }

    .case_hero_title,
    .case_hero_txt,
    .case_hero_bottom {
        max-width: 510px;
        width: 100%;
    }

    .case_hero_title {
        font-size: 44px;
    }

    .case_hero_txt {
        font-size: 20px;
        line-height: 1.5em;
        margin-bottom: 80px;
    }

    #case_hero_inner {
        grid-template-columns: 510px minmax(0, 810px);
    }

    .case_hero_bottom {
        padding-bottom: 50px;
        row-gap: 40px;
    }

    /* Top Case Studies */

    .case_study_card {
        padding: 60px 30px;
    }

    .card_title {
        font-size: 24px;
    }

    .card_stat span {
        font-size: 20px;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .case_study_card .wp-post-image {
        width: 600px;
    }

    .card_stats {
        margin-bottom: 80px;
    }
}

@media screen and (max-width: 1300px) {
    #case_hero_inner {
        grid-template-columns: 460px minmax(0, 810px);
    }

    .case_hero_title {
        padding-top: 30px;
    }

    .case_hero_bottom {
        padding-bottom: 40px;
    }

    .case_study_card .wp-post-image {
        width: 530px;
    }

    .case_study_card .logo {
        margin-top: 20px;
    }

    .read_more {
        margin-bottom: 20px;
    }
}

@media screen and (max-width: 1200px) {
    #case_studies_hero {
        margin: 60px 0 80px;
        padding: 0 40px;
    }

    /* Top Case Studies */

    #top_case_studies {
        padding: 58px 70px;
    }

    .case_study_card {
        padding: 50px 20px;
    }

    .case_study_card .wp-post-image {
        width: 500px;
    }
}

@media screen and (max-width: 1024px) {
    /* Case Studies Hero */

    #case_studies_hero {
        margin: 40px 0 120px;
        padding: 0 70px;
    }

    #case_hero_inner {
        grid-template-columns: 1fr;
    }

    .case_hero_title,
    .case_hero_txt,
    .case_hero_img,
    .case_hero_bottom {
        grid-column: 1;
        max-width: 100%;
        width: 100%;
    }

    .case_hero_title {
        font-size: 82px;
        line-height: 108%;
        font-weight: 700;
        grid-row: 2;
        margin: 70px 0 14px;
        padding-top: 0;
    }

    .case_hero_txt {
        margin: 0 0 60px;
        font-weight: 400;
        font-size: 22px;
        line-height: 140%;
        grid-row: 3;
    }

    .case_hero_img {
        grid-row: 1;
    }

    .case_hero_bottom {
        grid-row: 4;
        padding-bottom: 0;
    }

    /* Trusted Partners */

    #trusted_partners {
        margin-bottom: 75px;
    }

    /* Top Case Studies */

    #top_case_studies {
        padding: 58px 70px 95px;
        border-radius: 32px;
    }

    .case_study_card {
        padding: 78px 64px 78px 74px;
        justify-content: center;
    }

    .case_study_card_inner {
        grid-template-columns: 1fr;
        row-gap: 24px;
    }

    .case_study_card .logo,
    .card_title,
    .card_stats,
    .case_study_card .icon_btn_wrapper,
    .case_study_card .wp-post-image {
        grid-column: 1;
        width: 100%;
        max-width: 712px;
    }

    .case_study_card .logo,
    .card_title,
    .card_stats {
        margin: 0;
    }

    .case_study_card .wp-post-image {
        grid-row: 1;
        max-width: 100%;
        margin-bottom: 33px;
    }

    .case_study_card .logo {
        grid-row: 2;
    }

    .card_title {
        grid-row: 3;
        font-size: 48px;
    }

    .card_stats {
        grid-row: 4;
        justify-content: flex-start;
        column-gap: 32px;
        margin-bottom: 32px;
    }

    .card_stat span {
        font-size: 24px;
        line-height: 160%;
        font-weight: 600;
    }

    .case_study_card .icon_btn_wrapper {
        grid-row: 5;
    }

    .read_more {
        margin-bottom: 0;
    }

    #result {
        padding-top: 120px;
    }
}

@media screen and (max-width: 900px) {
    /* Case Studies Hero */

    .case_hero_title {
        font-size: 60px;
    }

    /* Top Case Studies */

    .card_title {
        font-size: 38px;
    }
}

@media screen and (max-width: 768px) {
    /* Case Studies Hero */

    #case_studies_hero {
        margin: 32px 0 70px;
        padding: 0 16px;
    }

    .case_hero_title {
        font-size: 48px;
        line-height: 1.2em;
    }

    /* Top Case Studies */

    #top_case_studies {
        margin-bottom: 0;
        padding: 30px 16px;
    }

    #case_studies_wrapper {
        row-gap: 30px;
    }

    .case_study_card {
        padding: 21px 14px;
        border-radius: 24px;
    }

    #clients_feedback {
        margin-top: -50px;
    }
}

@media screen and (max-width: 600px) {
    /* Case Studies Hero */

    .case_hero_title {
        margin-top: 45px;
        font-size: 34px;
    }

    /* Top Case Studies */

    .case_study_card {
        padding: 20px 15px;
    }

    .case_study_card .wp-post-image {
        width: 100%;
        margin-bottom: 6px;
    }

    .card_title {
        font-size: 34px;
    }

    .card_stats {
        margin-bottom: 31px;
    }
}

@media screen and (max-width: 480px) {
    /* Case Studies Hero */

    .case_hero_bottom {
        flex-direction: column;
        align-items: flex-start;
        row-gap: 31px;
    }

    .case_hero_bottom .icon_btn_wrapper {
        max-width: 340px;
        width: 100%;
        margin: 0 auto;
    }

    /* Top Case Studies */

    .card_title {
        font-size: 26px;
        line-height: 140%;
    }

    .card_stats {
        flex-direction: column;
        row-gap: 14px;
        align-items: flex-start;
        margin-bottom: 12px;
    }

    .read_more {
        margin: 0 auto;
        max-width: 320px;
    }

    .read_more svg {
        display: none;
    }

    .case_study_card:hover .read_more {
        background: transparent;
    }

    .case_study_card:active .read_more {
        /* background-color: var(--say9-primary-blue); */
    }

    .case_study_card:hover .read_more span {
        color: var(--say9-primary-blue);
    }

    .case_study_card:active .read_more span {
        /* color: #ffffff; */
    }
}