.page.page-template-page-case-study .site-header {
    background-color: #FDEDE0;
}
.case-page {
    width: 100%;
    background: linear-gradient(180deg, #FDEDE0 0%, #fff 100%);
}

.case-hero {
    position: relative;
    padding: 10.5vw 8.28vw 5.5vw;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.case-hero__stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.case-hero__star {
    position: absolute;
}

.case-hero__star--blue {
    top: 5.5vw;
    left: 18.14vw;
    width: 4.5vw;
}

.case-hero__star--color {
    top: 23vw;
    right: 16.3vw;
    width: 3.7vw;
}

.case-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 45vw;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.case-hero__title {
    font-family: 'Spartan', sans-serif;
    font-size: 2.6vw;
    font-weight: 700;
    color: #070707;
    line-height: 1.2;
    margin-bottom: 1.25vw;
    letter-spacing: -0.03em;
}

.case-hero__title b,
.case-hero__title strong {
    font-family: 'ShantellSansBouncy';
    font-weight: 600;
    color: #920026;
    font-size: 2.86vw;
}

.case-hero__text {
    font-family: 'Spartan', sans-serif;
    font-size: 0.9375vw;
    font-weight: 600;
    color: #212121;
    line-height: 1.6;
    text-align: center;
    max-width: 26vw;
    margin-bottom: 2vw;
}

.case-hero__text p {
    margin: 0;
}

.case-hero__cta {
    position: relative;
    display: inline-block;
    font-family: 'Spartan', sans-serif;
    font-size: 0.9375vw;
    font-weight: 700;
    color: #920026;
    text-decoration: none;
    padding-bottom: 0;
}

.case-hero__cta::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #920026;
    transform-origin: center;
    transform: scaleX(1);
    transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1);
}

.case-hero__cta:hover::after {
    transform: scaleX(0);
}

.case-hero__cta::before {
    content: '';
    position: absolute;
    top: -1.6vw;
    right: -0.6vw;
    width: 1.24vw;
    height: 1.65vw;
    background-image: url('../img/arrow.svg');
    background-size: contain;
    background-repeat: no-repeat;
    transform: scaleX(-1);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.case-hero__cta:hover::before {
    transform: scaleX(-1) translateY(0.10vw) rotate(-10deg);
}

.cases-section {
    padding: 4.2vw 1.3vw 0;
}

.cases-grid {
    display: flex;
    gap: 1.04vw;
        max-width: 1900px;
    width: 100%;
    margin-bottom: 1.6vw;
}

.case-item {
    flex: 1;
    border-radius: 1.04vw;
    overflow: hidden;
    display: block;
    aspect-ratio: 0.82;
}

.case-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.case-item:hover img {
    transform: scale(1.04);
}

.cases-cta {
    text-align: center;
}

.cases-cta .btn-animated {
    font-family: 'Spartan', sans-serif;
    font-size: 0.9375vw;
    font-weight: 700;
    color: #920026;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.portfolio-section {
    padding: 4.2vw 8.28vw 4vw;
}

.portfolio-filter {
    text-align: center;
    margin-bottom: 5.5vw;
}

.portfolio-filter__bar {
    display: inline-flex;
    align-items: center;
    gap: 3.5vw;
    border: 0.5px solid #920026;
    border-radius: 1.56vw;
    padding: 0.82vw 2.8vw 0.75vw;
}

.portfolio-filter__label {
    font-family: 'Spartan', sans-serif;
    font-size: 0.9375vw;
    font-weight: 700;
    color: #920026;
    white-space: nowrap;
}

.portfolio-filter__items {
    display: flex;
    align-items: center;
    gap: 3.5vw;
}

.portfolio-filter__btn {
    font-family: 'Spartan', sans-serif;
    font-size: 0.9375vw;
    font-weight: 500;
    color: #212121;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.portfolio-filter__btn::after {
    content: '';
    position: absolute;
    bottom: 1px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #212121;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1);
}

.portfolio-filter__btn:hover::after {
    transform: scaleX(1);
}

.portfolio-filter__btn.is-active {
    font-weight: 600;
}

.portfolio-filter__btn.is-active::after {
    transform: scaleX(1);
}

.portfolio-filter__clear {
    font-family: 'Spartan', sans-serif;
    font-size: 0.78vw;
    font-weight: 500;
    color: #434343;
    text-decoration: underline;
    background: none;
    border: none;
    cursor: pointer;
    margin-top: 0.83vw;
    display: inline-block;
    position: absolute;
    bottom: -2vw;
    left: 45%;
}

.portfolio-filter__mobile-toggle {
    display: none;
}

.portfolio-filter__mobile-dropdown {
    display: none;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.83vw;
}

.portfolio-card {
    border-radius: 1.04vw;
    overflow: hidden;
    display: block;
    aspect-ratio: 388 / 448;
}

.portfolio-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.portfolio-card:hover img {
    transform: scale(1.04);
}

@media only screen and (max-width: 767px) {
    .case-hero {
        min-height: unset;
        padding: 15vw 6% 12vw;
    }

    .case-hero__content {
        max-width: 100%;
    }

    .case-hero__title {
        font-size: 7vw;
        margin-bottom: 3vw;
    }

    .case-hero__title b,
    .case-hero__title strong {
        font-size: 7.5vw;
    }

    .case-hero__text {
        font-size: 3.1vw;
        margin-bottom: 5vw;
        max-width: 100%;
    }

    .case-hero__star--blue {
        top: 1vw;
        left: 3vw;
        width: 12vw;
    }

    .case-hero__star--color {
        top: auto;
        right: 3vw;
        bottom: 5vw;
        width: 9vw;
    }

    .case-hero__cta {
        font-size: 3.2vw;
    }

    .case-hero__cta::before {
        width: 4vw;
        height: 5.5vw;
        top: -5vw;
        right: -2vw;
    }

   .cases-section {
        padding: 12vw 0 8vw 5%;
        overflow: hidden;
    }

    .cases-grid {
        display: none;
    }

    .cases-grid-mobile {
        display: block;
        margin-bottom: 5vw;
    }

    .cases-grid-mobile .slick-slide {
        padding: 0 3vw 0 0;
            height: 70vw;
    }

    .case-item {
        border-radius: 5vw;
                height: 100%;
        width: 100%;
        aspect-ratio: 0.75;
        display: block;
    }

    .cases-cta .btn-animated {
        font-size: 3.2vw;
    }

    .portfolio-section {
        padding: 7vw 5% 20vw;
    }

    .portfolio-filter__bar {
        display: none;
    }

    .portfolio-filter__clear {
        display: none !important;
    }

    .portfolio-filter {
        position: relative;
        z-index: 999;
    }

    .portfolio-filter__mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        border: 0.5px solid #920026;
        border-radius: 8vw;
        padding: 3.2vw 5vw 2.5vw;
        cursor: pointer;
        margin-bottom: 3vw;
        position: relative;
        z-index: 11;
    }

    .portfolio-filter__mobile-label {
        font-family: 'Spartan', sans-serif;
        font-size: 3.1vw;
        font-weight: 600;
        color: #920026;
    }

    .portfolio-filter__mobile-arrow {
        width: 3vw;
        height: auto;
        transition: transform 0.3s ease;
    }

    .portfolio-filter__mobile-toggle.is-open .portfolio-filter__mobile-arrow {
        transform: rotate(180deg);
    }

    .portfolio-filter__mobile-dropdown {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 4vw;
        padding: 5vw 5vw 4vw;
        position: absolute;
        top: 110%;
        left: 0;
        right: 0;
        z-index: 100;
        background: #fff;
        border-radius: 4vw;
        box-shadow: 0 2vw 4vw rgba(0, 0, 0, 0.08);
    }

    .portfolio-filter__mobile-dropdown.is-open {
        display: flex;
    }

    .portfolio-filter__mobile-dropdown .portfolio-filter__btn {
        font-size: 3.2vw;
        text-align: left;
    }

    .portfolio-filter__mobile-dropdown .portfolio-filter__clear {
        display: none;
        font-size: 3vw;
        margin-top: 1vw;
        text-align: left;
    }

    .portfolio-filter__mobile-dropdown .portfolio-filter__clear[style*="inline-block"],
    .portfolio-filter__mobile-dropdown .portfolio-filter__clear.is-visible {
        display: block !important;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5vw;
    }

    .portfolio-card {
      border-radius: 3vw;
        aspect-ratio: auto;
    }
    .portfolio-card img {
            object-position: center;
        object-fit: contain;
    }
}
