/* Case Studies */
.case-head-content {
    padding: 60px 0 40px;
}

.case-head__title {
    font-size: 64px;
    font-weight: 550;
    line-height: 115%;
    max-width: 690px;
}

.case-head__text {
    font-size: 18px;
    font-weight: 400;
    line-height: 155%;
    max-width: 930px;
    margin-top: 24px;
}

.case-filter {
    padding: 32px 0;
}

.case-filter-wrapper {
    display: flex;
    align-items: center;
}

.custom-select-industry .selected-item {
    z-index: 7;
}

.custom-select-industry .custom-select-items {
    z-index: 6;
}

.case-filter-wrapper .custom-select {
    width: 320px;
    margin-right: 16px;
}

.posts-wrapper {
    padding: 110px 0 50px;
}

.posts {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-left: -24px;
    margin-top: -60px;
    transition: var(--trans);
}

.posts.hidden {
    opacity: 0.3;
    pointer-events: none;
}

.post {
    width: calc(33.3% - 24px);
    padding: 32px 24px;
    border-radius: 40px;
    background: var(--orange-50);
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid var(--orange-200);
    text-decoration: none;
    color: var(--text-color);
    margin-left: 24px;
    margin-top: 60px;
    transition: var(--trans);
    order: 2;
}

.post:hover {
    background: var(--orange-100);
}

.open-pdf {
    visibility: hidden;
    opacity: 0;
    height: 0;
    font-size: 15px;
    font-weight: 550;
    line-height: 120%;
    text-transform: uppercase;
    color: var(--orange-700);
    text-align: center;
    border-top: 1px solid var(--orange-200);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--trans);
}

.post:hover .open-pdf {
    visibility: visible;
    opacity: 1;
    padding-top: 28px;
    margin-top: 32px;
    height: auto;
}

.open-pdf svg {
    margin-left: 13px;
}

.post-industry {
    color: var(--text-color);
    font-size: 15px;
    font-weight: 400;
    line-height: 20px;
    text-transform: uppercase;
}

.post-title {
    min-height: 108px;
    color: var(--text-color);
    font-size: 28px;
    font-weight: 400;
    line-height: 36px;
    margin: 12px 0 24px;
}

.post-info {
    display: flex;
}

.post-info__item {
    width: 145px;
    margin-right: 60px;
}

.post-info__item:last-child {
    margin-right: 0;
}

.post-info__item-number {
    font-size: 60px;
    font-weight: 700;
    line-height: 120%;
    color: var(--orange-700);
}

.post-info__item-text {
    font-size: 16px;
    font-weight: 400;
    line-height: 125%;
    color: var(--text-color);
    margin-top: 4px;
}

.post:nth-child(-n+5) {
    order: 0;
}

.postImage {
    height: 344px;
    padding: 0;
    box-shadow: none;
    border-radius: 40px;
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 32px 45px;
    color: #fff;
    order: 1;
    display: flex;
    flex-direction: column;
    justify-content: center !important;
}

.postImage::before {
    content: '';
    width: 100%;
    height: 100%;
    border-radius: 40px;
    background: rgba(0, 0, 0, 0.50);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.postImage img {
    border-radius: 40px;
    position: absolute;
    bottom: 0;
    left: 0;
    min-width: 100%;
    min-height: 100%;
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.postImage-content {
    position: relative;
    z-index: 2;
}

.postImage-content p {
    font-size: 36px;
    font-weight: 550;
    line-height: 1.2;
    margin-bottom: 32px;
}

.postImage:hover .btn {
    background: var(--orange-hover);
}

.actionBlock {
    overflow: hidden;
    padding: 100px 0;
}

.actionBlock-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.actionBlock-content {
    position: relative;
    color: #fff;
    margin-left: 80px;
    margin-right: 80px;
}

.actionBlock-content__img {
    line-height: 0;
}

.actionBlock-content__img img {
    max-width: 180px;
}

.actionBlock-content .title {
    font-weight: 550;
    line-height: 120%;
    text-transform: none;
}

.actionBlock-text {
    font-size: 32px;
    font-weight: 400;
    line-height: 150%;
    margin-top: 16px;
}

.actionBlock-btn {
    position: relative;
}

.actionBlock-btn .btn {
    min-width: 210px;
}

.actionBlock-btn-lines {
    position: absolute;
    bottom: 40px;
    right: -120px;
    max-width: 109px;
    height: auto;
}

.full-page-file {
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.full-page-file iframe,
.full-page-file object {
    width: 100%;
    height: 100%;
    border: 0;
}

.case-pagination {
    margin-top: 60px;
    display: flex;
    align-items: center;
}

.case-pagination .page-numbers {
    font-size: 15px;
    font-weight: 400;
    line-height: 140%;
    text-transform: capitalize;
    text-decoration: none;
    color: #0F1B24;
    margin: 0 8px;
    opacity: 0.3;
    transition: var(--trans);
}

.case-pagination .page-numbers:hover {
    opacity: 1;
}

.case-pagination .page-numbers.current {
    opacity: 1;
}

.case-pagination .page-numbers:has(> .arrow-prev),
.case-pagination .page-numbers:has(> .arrow-next) {
    line-height: 0;
    opacity: 1;
}

.case-pagination .page-numbers:has(> .arrow-prev) {
    margin-right: 16px;
}

.case-pagination .page-numbers:has(> .arrow-next) {
    margin-left: 16px;
}

.case-pagination .page-numbers:has(> .arrow-next) span {
    margin-left: 24px;
    transition: var(--trans);
}

.case-pagination .page-numbers:has(> .arrow-next) span:hover {
    opacity: 0.3;
}



/* Custom select */
.custom-select {
    width: 100%;
    position: relative;
}

.custom-select select {
    visibility: hidden;
    opacity: 0;
    position: absolute;
}

.selected-item {
    background: #fff;
    padding: 16px 16px 14px;
    padding-right: 32px;
    color: rgba(15, 27, 36, 0.60);
    cursor: pointer;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 400;
    line-height: 20px;
    position: relative;
    border: 1px solid var(--orange-200);
    z-index: 9;
}

.selected-item:after {
    content: "";
    width: 15px;
    height: 8px;
    background-image: url('data:image/svg+xml,<svg viewBox="0 0 15 8" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M14 1L7.5 7L1 1" stroke="%230F1B24" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    position: absolute;
    top: calc(50% - 4px);
    right: 14px;
    transition: var(--trans);
}

.selected-item.active:after {
    transform: rotate(-180deg);
    opacity: 0.3;
}

.selected-item.selected {
    color: #0F1B24;
}

select.error-text~.selected-item {
    border: 1px solid red;
    color: rgba(255, 0, 0, 0.7);
}

.custom-select-items {
    position: absolute;
    top: calc(100% - 2px);
    left: 0;
    width: 100%;
    z-index: 8;
    background: var(--white);
    border-radius: 0px 0px 4px 4px;
    border: 1px solid var(--orange-200);
    border-top: none;
    max-height: 292px;
    padding: 12px 0 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: auto;
    transition: max-height 0.5s ease;
    visibility: visible;
    opacity: 1;
}

.custom-select-items-hide {
    opacity: 0;
    max-height: 0;
    visibility: hidden;
}

.custom-select-items::before {
    content: '';
    width: 100%;
    height: 12px;
    background: #fff;
    position: absolute;
    top: 0;
    left: 0;
}

.custom-select-items::-webkit-scrollbar {
    width: 12px;
}

.custom-select-items::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 6px;
}

.custom-select-items::-webkit-scrollbar-track {
    background-color: #f1f1f1;
}

.custom-select-option {
    padding: 12px 16px;
    cursor: pointer;
    color: #0F1B24;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
}

.custom-select-option:hover {
    background: var(--orange);
    color: #fff;
}

.custom-select-items .custom-select-option:first-child {
    font-weight: 550;
}

.custom-select-option.disabled {
    color: rgba(15, 27, 36, 0.30);
    pointer-events: none;
}

.scroll-hint {
    position: sticky;
    bottom: 0px;
    left: 0;
    text-align: center;
    padding: 13px;
    background: #fff;
    border-top: 1px solid var(--orange-200);
    display: flex;
    justify-content: center;
}

.scroll-hint__text {
    position: relative;
    font-size: 12px;
    font-weight: 400;
    line-height: 14px;
    text-transform: uppercase;
    color: var(--orange);
}

.scroll-hint__text::after {
    content: '';
    width: 10px;
    height: 6px;
    background-image: url('data:image/svg+xml,<svg viewBox="0 0 10 6" fill="none" xmlns="http://www.w3.org/2000/svg"><path opacity="0.3" d="M9 1L5 5L1 1" stroke="%23ED6B2D" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    background-position: center;
    background-repeat: no-repeat;
    position: absolute;
    top: calc(50% - 3px);
    right: -18px;
}


@media screen and (max-width: 1439px) {

    .post-info {
        justify-content: space-between;
    }

    .post-info__item {
        margin-right: 16px;
    }

    .post-title {
        font-size: 26px;
    }

    .postImage-content p {
        font-size: 32px;
    }

    .postImage {
        padding: 32px 24px;
    }

    .actionBlock-btn-lines {
        display: none;
    }

    .actionBlock-content {
        margin-left: 50px;
        margin-right: 50px;
    }

    .actionBlock-text {
        font-size: 28px;
    }
}


@media screen and (max-width: 1199px) {

    .case-head-content {
        padding: 40px 0;
    }

    .case-head__title {
        font-size: 44px;
        max-width: 450px;
    }

    .case-head__text {
        font-size: 16px;
        line-height: 24px;
        max-width: 574px;
    }

    .post {
        width: calc(50% - 24px);
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        margin-top: 40px;
    }

    .posts-wrapper {
        padding: 90px 0 30px;
    }

    .post .open-pdf {
        visibility: visible;
        opacity: 1;
        padding-top: 28px;
        margin-top: 32px;
        height: auto;
    }

    .post-title {
        min-height: auto;
    }

    .posts {
        align-items: unset;
        margin-top: -40px;
    }

    .post-info__item {
        margin-right: 60px;
    }

    .post-info {
        justify-content: unset;
    }

    .postImage {
        height: auto;
    }


    .post-title {
        font-size: 28px;
    }

    .postImage-content p {
        font-size: 36px;
    }

    .actionBlock-content__img {
        position: absolute;
        right: 0;
        bottom: 0;
    }

    .actionBlock-wrapper {
        position: relative;
        flex-direction: column;
        align-items: flex-start;
    }

    .actionBlock-content {
        margin-right: 0;
        margin-left: 0;
        max-width: 700px;
    }

    .actionBlock-btn {
        margin-top: 40px;
    }
}


@media screen and (max-width: 991px) {


    .post-type-archive-agency .title {
        font-size: 28px;
    }

    .case-filter-wrapper .custom-select {
        width: 300px;
    }

    .post-title {
        font-size: 24px;
        line-height: 32px;
    }

    .post-info__item {
        margin-right: 16px;
    }

    .post-info {
        justify-content: space-between;
    }

    .post .open-pdf,
    .post:hover .open-pdf {
        padding-top: 24px;
    }

    .post-info__item {
        width: 140px;
    }

    .case-pagination {
        margin-top: 40px;
    }

    .postImage-content p {
        font-size: 32px;
    }

    .postImage {
        padding: 32px 16px;
    }

    .post-info__item-number {
        font-size: 50px;
    }

    .actionBlock-content {
        max-width: 595px;
    }

    .actionBlock {
        padding: 90px 0;
    }

    .actionBlock-content__img img {
        max-width: 160px;
    }

    .actionBlock-content__img {
        bottom: -50px;
    }

    .actionBlock-content .title {
        max-width: 450px;
    }
}


@media screen and (max-width: 767px) {

    .case-filter-wrapper .custom-select {
        width: 205px;
    }

    .post {
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        margin-top: 24px;
        max-width: 450px;
    }

    .posts {
        margin-left: 0;
        margin-top: -24px;
    }

    .post-info {
        justify-content: unset;
    }

    .post-info__item {
        width: 145px;
        margin-right: 60px;
    }

    .postImage {
        height: 330px;
        padding: 32px 45px;
    }

    .postImage-content p {
        font-size: 36px;
    }

    .case-pagination {
        justify-content: center;
    }

    .actionBlock-text {
        max-width: 410px;
    }

    .actionBlock-content .title {
        max-width: 100%;
    }

    .posts-wrapper {
        padding: 60px 0 30px;
    }
}


@media screen and (max-width: 575px) {

    .case-head__title {
        font-size: 36px;
    }

    .case-head__text {
        margin-top: 16px;
    }

    .case-head-content {
        padding: 40px 0 32px;
    }

    .case-filter-wrapper {
        flex-direction: column;
    }

    .case-filter-wrapper .custom-select {
        width: 100%;
        margin-right: 0;
        margin-bottom: 16px;
    }

    .case-filter-wrapper .btn {
        width: 100%;
    }

    .post-industry {
        font-size: 13px;
        line-height: 18px;
    }

    .post-info {
        justify-content: space-between;
    }

    .post-info__item {
        margin-right: 16px;
    }

    .post .open-pdf,
    .post:hover .open-pdf {
        margin-top: 24px;
    }

    .post-info__item-number {
        font-size: 48px;
    }

    .post-info__item-text {
        font-size: 15px;
        line-height: 20px;
    }

    .postImage-content p {
        font-size: 32px;
        margin-bottom: 24px;
    }

    .postImage {
        padding: 32px 30px;
    }

    .actionBlock-content__img img {
        display: none;
    }

    .actionBlock-content .title {
        font-size: 32px;
    }

    .actionBlock-text {
        font-size: 20px;
    }

    .actionBlock-btn {
        width: 100%;
    }

    .actionBlock {
        padding: 60px 0;
    }
}


@media screen and (max-width: 410px) {

    .post {
        padding: 24px 20px;
    }

    .post-title {
        font-size: 20px;
        line-height: 28px;
    }

    .post-info__item {
        width: 130px;
    }

    .postImage {
        height: 320px;
    }

    .postImage-content p {
        font-size: 29px;
    }
}


@media screen and (max-width: 359px) {

    .case-head__title {
        font-size: 34px;
    }

    .case-head__text {
        font-size: 15px;
        line-height: 22px;
    }


    .post-info__item-number {
        font-size: 44px;
    }

    .post-info__item-text {
        font-size: 13px;
        line-height: 18px;
    }

    .post-info__item {
        width: 115px;
        margin-right: 12px;
    }

    .postImage {
        height: 300px;
        padding: 24px 16px;
    }

    .postImage-content p {
        font-size: 26px;
    }

    .actionBlock-content .title {
        font-size: 28px;
    }
}