/* ========== SHARED STYLES FOR PROJECT PAGES ========== */

/* Breadcrumbs */
.project-breadcrumbs {
    padding: 24px 0;
    background: #ffffff;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 14px;
}

.breadcrumbs__link {
    text-decoration: none;
    transition: color 0.12s ease;
}

.breadcrumbs__link:hover {
    color: var(--primary);
}

.breadcrumbs__current {
    color: #1f2937;
    font-weight: 400;
}

/* Detail hero */
.project-case-hero {
    overflow: hidden;
    padding: 0 0 56px;
}

.project-case-hero__stage {
    position: relative;
}

.project-case-hero__content {
    color: #ffffff;
    max-width: 620px;
}

.project-case-hero__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 12px;
    line-height: 1;
    margin-bottom: 18px;
}

.project-case-hero__title {
    color: #ffffff;
    margin: 0 0 18px;
}

.project-case-hero__title--mobile {
    display: none;
}

.project-case-hero__text {
    margin: 0;
    color: rgba(248, 250, 252, 0.92);
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.5;
}

.project-case-hero__media {
    margin: 0;
    width: 100%;
}

.project-case-hero__media picture,
.project-case-hero__media img {
    display: block;
    width: 100%;
}

.project-case-hero__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding-bottom: 42px;
}

.project-case-hero__inner {
    width: 100%;
    padding-left: clamp(18px, 4vw, 64px);
    padding-right: clamp(18px, 4vw, 64px);
}

@media (min-width: 981px) {
    .project-case-hero {
        padding-bottom: 0;
    }

    .project-case-hero__overlay {
        align-items: center;
        padding-bottom: 0;
    }

    .project-case-hero__stage {
        height: var(--project-hero-fit-h, calc(100dvh - var(--header-h) - 72px));
    }

    .project-case-hero__media,
    .project-case-hero__media picture,
    .project-case-hero__media img {
        height: 100%;
    }

    .project-case-hero__media img {
        object-fit: cover;
    }
}

@media (max-width: 980px) {
    .project-case-hero {
        padding: 0 0 40px;
    }

    .project-case-hero__overlay {
        position: static;
        inset: auto;
        display: block;
        padding: 20px 0 0;
    }

    .project-case-hero__title {
        margin: 0 0 14px;
        color: var(--text);
        font-family: var(--font-body);
        font-weight: 500;
        font-size: 20px;
        line-height: 1.3;
    }

    .project-case-hero__title--desktop {
        display: none;
    }

    .project-case-hero__title--mobile {
        display: block;
    }

    .project-case-hero__text {
        font-size: 16px;
        color: var(--text);
    }

    .project-case-hero__inner {
        padding-left: 18px;
        padding-right: 18px;
    }

    .project-case-hero__content {
        max-width: none;
    }

    .project-case-hero__badge {
        border-color: rgba(15, 23, 42, 0.2);
        color: var(--text);
        background: #ffffff;
    }

    .project-breadcrumbs .breadcrumbs {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .project-breadcrumbs .breadcrumbs__link,
    .project-breadcrumbs .breadcrumbs__separator,
    .project-breadcrumbs .breadcrumbs__current {
        white-space: nowrap;
    }
}

@media (max-width: 640px) {
    .project-breadcrumbs {
        padding: 16px 0;
    }

    .project-case-hero__overlay {
        padding-top: 16px;
    }

    .project-case-hero__title {
        margin: 0 0 14px;
        font-size: 20px;
        line-height: 1.3;
    }

    .project-case-hero__text {
        font-size: 14px;
    }
}
