.blog-page-grid-filter-buttons button:hover,
.blog-page-grid-filter-buttons button.active,
.blog-page-grid-filter-buttons a:hover,
.blog-page-grid-filter-buttons a.active {
    color: #fefefe;
    background-color: #0d1118;
}

.blog-page-grid-filter-buttons button,
.blog-page-grid-filter-buttons a {
    text-decoration: none;
    padding: 20px 32px;
    background-color: #f3f5fb;
    border-radius: 40px;
    line-height: 1;
    color: #0d1118;
    white-space: nowrap;
}

.blog-page-grid-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.case-studies-item-link {
    text-decoration: unset;
}

.case-studies-description {
    color: #0d1118;
    text-align: start;
}

ul.wp-block-list {
    margin: 0;
    margin-top: -8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-left: 0;
    text-decoration: unset;
}

.wp-block-list {
    position: relative;
    padding-left: 24px;
}

.wp-block-list li {
    position: relative;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.4;
    letter-spacing: 0;
    color: #4f4f4f;
    list-style: none;
    margin-bottom: 8px;
    padding-left: 18px;
}

.wp-block-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    margin-right: 12px;
    background-image: url("https://new.meduzzen.pp.ua/wp-content/uploads/2025/02/Javascript-software-marker.svg");
    background-size: contain;
    background-repeat: no-repeat;
}

.project-single {
    padding-top: 135px;
    padding-bottom: 80px;
}

.project-single__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
    border-bottom: 1px solid #cfcfcf;
    padding-bottom: 80px;
}

.project-single__head h1 {
    margin-bottom: 0;
}

.project-single__category {
    max-width: 198px;
    color: #0d1118;
    font-weight: 400;
    font-size: 17px;
    line-height: 1.4;
    letter-spacing: 0;
}

.project-meta__image {
    max-width: 717px;
    max-height: 411px;
    overflow: hidden;
    border-radius: 8px;
}

.project-meta__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-meta__head {
    padding-top: 40px;
    padding-bottom: 40px;
    display: flex;
    justify-content: space-between;
    gap: 32px;
    align-items: center;
}

.project-meta__head p {
    max-width: 545px;
    font-weight: 400;
    font-size: 18px;
    line-height: 160%;
    letter-spacing: 0;
    color: #4f4f4f;
}

.project__article {
    padding-top: 80px;
    padding-bottom: 80px;
    background-color: #fafafa;
}

.project__bottom-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.project__bottom-content li::before {
    content: "";
    width: 6px;
    height: 6px;
    background-image: url("https://new.meduzzen.pp.ua/wp-content/uploads/2025/02/Javascript-software-marker.svg");
    background-size: contain;
    background-repeat: no-repeat;
    display: inline-block;
}

.project__bottom-content p {
    color: #4f4f4f;
}

.project__bottom-content img {
    width: 100%;
    min-width: 802px;
    margin-left: -76px;
    max-height: 460px;
    object-fit: cover;
    border-radius: 12px;
}

.project-single .pagination {
    margin-top: 60px;
}

@media screen and (max-width: 1024px) {
    .project__bottom-content img {
        min-width: unset;
        margin-left: unset;
    }

    .project-meta__head {
        flex-direction: column;
    }
}

@media screen and (max-width: 768px) {
    .project-single .pagination {
        display: none;
    }

    .project-single__category {
        color: #4f4f4f;
    }

    .project-meta__head p {
        font-size: 15px;
    }

    .project-single {
        padding-top: 100px;
        padding-bottom: 40px;
    }

    .project-single__head {
        padding-bottom: 32px;
        flex-direction: column;
        align-items: start;
    }

    .project-single__head h1 {
        font-size: 34px;
    }

    .project-single__head p {
        font-weight: 400;
        font-size: 18px;
        color: #4f4f4f;
    }

    .project-meta__head {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .project__head h1 {
        font-size: 34px;
    }

    .project__details p {
        font-size: 18px;
    }

    .project__excerpt p {
        font-size: 18px;
    }

    .project__article p {
        font-size: 18px;
    }

    .project__article {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .project-single .pagination {
        margin-top: 32px;
    }
}

@media screen and (max-width: 420px) {
    .project__bottom-content img {
        max-height: 196px;
    }

    .project-meta__image {
        width: 100%;
    }

    .project-meta__image img {
        max-height: 196px;
    }
}

.project-single__other {
    padding-top: 60px;
}

.case-studies-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    row-gap: 56px;
    column-gap: 24px;
}

.case-studies-item {
    display: flex;
    flex-direction: column;
}

.case-studies-image {
    border-radius: 8px;
}

.case-studies-image img {
    height: 469px;
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.case-studies-title {
    text-decoration: none;
    color: #0d1118;
}

.case-studies-categories-list {
    color: #4f4f4f;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.4;
    display: flex;
    letter-spacing: 0;
    gap: 8px;
    flex-wrap: wrap;
}

.case-studies-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
    margin-top: 32px;
}

.case-studies-categories {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    white-space: nowrap;
}

.case-studies-category {
    background-color: #f3f5fb;
    padding: 20px 32px;
    border-radius: 40px;
    font-weight: 400;
    font-size: 17px;
    line-height: 1;
    letter-spacing: 0;
    text-decoration: none;
    color: #141111;
}

.case-studies-category:hover {
    background-color: #0d1118;
    color: #fefefe;
}

.case-studies-title {
    margin-bottom: 0;
}

@media (max-width: 1024px) {
    .case-studies-list {
        grid-template-columns: repeat(1, 1fr);
        row-gap: 24px;
    }
}

@media (max-width: 768px) {
    .project-single__other {
        padding-top: 40px;
    }

    .case-studies-title {
        font-size: 24px;
    }

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

@media (max-width: 520px) {
    .case-studies-image img {
        height: 200px;
    }

    .blog-page-grid-filter-buttons {
        justify-content: unset;
        flex-wrap: nowrap;
        overflow: scroll;
        flex-wrap: nowrap;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .case-studies-categories {
        align-items: flex-start;
        overflow: scroll;
        flex-wrap: nowrap;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
}
