/* YES CMS 2.0.19.5 — project logo / cover containment */
.project-profile .project-cover {
    display: grid !important;
    place-items: center;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    padding: clamp(.85rem, 2.5vw, 1.75rem);
    overflow: hidden;
    background: #fff;
}

.project-profile .project-cover img {
    position: static !important;
    inset: auto !important;
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 30rem !important;
    margin: 0 auto;
    object-fit: contain !important;
    object-position: center !important;
    transform: none !important;
}

@media (max-width: 767.98px) {
    .project-profile .project-cover {
        padding: .75rem;
    }

    .project-profile .project-cover img {
        max-height: 20rem !important;
    }
}

/* YES CMS 2.0.19.7 — unified project content with category icons */
.project-content-section .project-content-main-heading {
    margin-bottom: clamp(1.35rem, 3vw, 2.25rem);
}

.project-content-main-heading h2 {
    display: flex;
    align-items: center;
    gap: .85rem;
    margin-bottom: .45rem;
}

.project-content-main-heading p {
    max-width: 52rem;
    margin: 0;
    color: var(--bs-secondary-color, #667085);
}

.project-content-main-icon,
.project-content-group-icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 1rem;
    color: var(--bs-primary, #0d6efd);
    background: rgba(13, 110, 253, .10);
}

.project-content-main-icon {
    width: 3rem;
    height: 3rem;
    font-size: 1.25rem;
    box-shadow: inset 0 0 0 1px rgba(13, 110, 253, .12);
}

.project-content-groups {
    display: grid;
    gap: clamp(2rem, 4vw, 3.5rem);
}

.project-content-group {
    --project-group-color: var(--bs-primary, #0d6efd);
    position: relative;
    min-width: 0;
}

.project-content-group + .project-content-group {
    padding-top: clamp(1.75rem, 3vw, 2.5rem);
    border-top: 1px solid rgba(15, 23, 42, .10);
}

.project-content-group-news { --project-group-color: #2563eb; }
.project-content-group-event { --project-group-color: #7c3aed; }
.project-content-group-video { --project-group-color: #dc2626; }
.project-content-group-resource { --project-group-color: #0f766e; }
.project-content-group-call { --project-group-color: #d97706; }
.project-content-group-gallery { --project-group-color: #be185d; }

.project-content-group-heading {
    display: flex;
    align-items: center;
    gap: .9rem;
    margin-bottom: 1.15rem;
}

.project-content-group-icon {
    width: 2.85rem;
    height: 2.85rem;
    font-size: 1.15rem;
    color: var(--project-group-color);
    background: color-mix(in srgb, var(--project-group-color) 11%, white);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--project-group-color) 18%, transparent);
}

.project-content-group-heading h3 {
    margin: 0 0 .18rem;
    font-size: clamp(1.15rem, 2.1vw, 1.45rem);
    line-height: 1.2;
}

.project-content-count {
    display: inline-flex;
    align-items: center;
    min-height: 1.45rem;
    padding: .12rem .55rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
    line-height: 1;
    color: var(--project-group-color);
    background: color-mix(in srgb, var(--project-group-color) 9%, white);
}

@supports not (background: color-mix(in srgb, red 10%, white)) {
    .project-content-group-icon,
    .project-content-count {
        background: #f3f6fb;
    }
}

@media (max-width: 575.98px) {
    .project-content-main-heading h2 {
        align-items: flex-start;
        gap: .7rem;
    }

    .project-content-main-icon {
        width: 2.55rem;
        height: 2.55rem;
        border-radius: .8rem;
        font-size: 1.05rem;
    }

    .project-content-groups {
        gap: 1.75rem;
    }

    .project-content-group + .project-content-group {
        padding-top: 1.5rem;
    }

    .project-content-group-heading {
        gap: .7rem;
        margin-bottom: .9rem;
    }

    .project-content-group-icon {
        width: 2.45rem;
        height: 2.45rem;
        border-radius: .75rem;
        font-size: 1rem;
    }
}
