/* Page header */

.page-header {
    padding-top: calc(var(--landing-header-height) + 50px);
    padding-bottom: 50px;
}

.page-header__title {
    font-size: 45px;
    font-weight: 700;
    margin-bottom: 16px;
    color: white;
}

.page-header__desc {
    color: white;
    opacity: .5;
    max-width: 700px;
    line-height: 1.5;
}

@media (max-width: 991px) {
    .page-header {
        padding-top: calc(var(--landing-header-height) + 40px);
        padding-bottom: 30px;
    }

    .page-header__title {
        font-size: 30px;
    }
}

/* Cases */

.cases {
    padding-bottom: 70px;
}

.cases-inner {
    display: flex;
    flex-direction: column;
    gap: 70px;
}

.case {
    display: flex;
    flex-direction: column;
    gap: 24px;
    scroll-margin-top: calc(var(--landing-header-height) + 30px);
}

.case-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.case-info {
    max-width: 90%;
}

.case-category {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 100px;
    background: var(--yurba-brand-color-opacity);
    color: #8aa8ff;
    margin-bottom: 16px;
}

.case-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    color: white;
}

.case-desc {
    color: white;
    opacity: .5;
    line-height: 1.5;
}

.case-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
}

.case-tag {
    font-size: 13px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 100px;
    background: #ffffff0d;
    color: #ffffffcc;
}

.case-link {
    flex-shrink: 0;
}

.case-link .material-symbols-rounded {
    font-size: 18px;
}

.case-shots {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.case-shot {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #ffffff08;
    border-radius: 20px;
    overflow: hidden;
}

.case-shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.case-shot__label {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 4px 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 100px;
    background: #0d0d0dcc;
    color: #ffffff;
    backdrop-filter: blur(4px);
}

.case-shot__label--after {
    background: var(--yurba-brand-color);
    color: #ffffff;
}

@media (max-width: 991px) {
    .cases {
        padding-bottom: 50px;
    }

    .cases-inner {
        gap: 40px;
    }

    .case {
        gap: 20px;
    }

    .case-head {
        align-items: flex-start;
    }

    .case-shots {
        grid-template-columns: 1fr;
    }

    .case-title {
        font-size: 22px;
    }
}

/* Cases other */

.cases-other {
    padding-bottom: 100px;
}

/* Divider spans the content width, not the viewport — hence on inner, not the section */
.cases-other-inner {
    border-top: 1px solid #ffffff14;
    padding-top: 60px;
}

.cases-other-title {
    font-size: 35px;
    font-weight: 700;
    margin-bottom: 40px;
    color: white;
    line-height: 1;
}

.cases-other-list {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.cases-other-list .portfolio-case {
    scroll-margin-top: calc(var(--landing-header-height) + 30px);
}

@media (max-width: 991px) {
    .cases-other {
        padding-bottom: 50px;
    }

    .cases-other-inner {
        padding-top: 40px;
    }

    .cases-other-title {
        font-size: 25px;
        margin-bottom: 25px;
    }

    .cases-other-list {
        gap: 40px;
    }
}
