/* News detail — linked company application cards */

.news-co-cards {
    margin-top: 0.5rem;
}

.news-co-cards__grid {
    --bs-gutter-y: 1.25rem;
}

.news-co-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid #e8eeed;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(15, 42, 41, 0.04);
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.news-co-card:hover {
    border-color: #d5e3e1;
    box-shadow: 0 8px 24px rgba(15, 42, 41, 0.07);
}

.news-co-card__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 1.375rem 1.25rem 1.25rem;
    height: 100%;
}

.news-co-card__logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 118px;
    height: 118px;
    padding: 0.625rem;
    border-radius: 12px;
    background: #f5f8f7;
    border: 1px solid #e9efed;
    text-decoration: none;
    flex-shrink: 0;
}

.news-co-card__logo-link img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.news-co-card__logo-fallback {
    font-size: 1.15rem;
    font-weight: 700;
    color: #005d5b;
    letter-spacing: 0.02em;
}

.news-co-card__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    width: 100%;
    min-width: 0;
}

.news-co-card__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    color: #0f2a29;
    letter-spacing: -0.01em;
}

.news-co-card__title a {
    color: inherit;
    text-decoration: none;
}

.news-co-card__title a:hover {
    color: #005d5b;
}

.news-co-card__budget {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
    width: 100%;
    min-height: 52px;
    padding: 0.625rem 0.75rem;
    border-radius: 10px;
    background: #f5f8f7;
    border: 1px solid #e9efed;
}

.news-co-card__budget.is-empty {
    background: #f8fafa;
    border-style: dashed;
    border-color: #e2e9e7;
}

.news-co-card__budget-label {
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #8aa09e;
    line-height: 1.3;
}

.news-co-card__budget-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: #0f2a29;
    letter-spacing: -0.01em;
    line-height: 1.35;
}

.news-co-card__budget-value.is-muted {
    color: #8aa09e;
    font-weight: 500;
}

.news-co-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    margin-top: auto;
    padding: 0.7rem 1.25rem;
    border-radius: 10px;
    border: 1px solid #005d5b;
    background: #005d5b;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    flex-shrink: 0;
}

.news-co-card__cta:hover,
.news-co-card__cta:focus {
    background: #fff;
    color: #005d5b;
    border-color: #005d5b;
}

.news-co-card__cta i {
    font-size: 0.78rem;
    opacity: 0.9;
    transition: transform 0.2s ease;
}

.news-co-card__cta:hover i,
.news-co-card__cta:focus i {
    transform: translateX(2px);
}

/* Featured — single company (desktop strip layout) */
.news-co-card--featured {
    background: linear-gradient(180deg, #fff 0%, #fafcfc 100%);
    border-color: #e2e9e7;
}

.news-co-card--featured .news-co-card__inner {
    padding: 1.375rem 1.25rem;
}

@media (min-width: 768px) {
    .news-co-card--featured .news-co-card__inner {
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 1.25rem;
        padding: 1.125rem 1.375rem;
    }

    .news-co-card--featured .news-co-card__logo-link {
        width: 102px;
        height: 102px;
        padding: 0.5rem;
        background: #fff;
        border-color: #e8eeed;
        box-shadow: 0 1px 4px rgba(15, 42, 41, 0.04);
    }

    .news-co-card--featured .news-co-card__content {
        align-items: flex-start;
        gap: 0.2rem;
        flex: 1;
    }

    .news-co-card--featured .news-co-card__title {
        font-size: 1.125rem;
        line-height: 1.3;
    }

    .news-co-card--featured .news-co-card__budget {
        flex-direction: row;
        align-items: baseline;
        flex-wrap: wrap;
        gap: 0.3rem 0.45rem;
        width: auto;
        min-height: 0;
        padding: 0;
        background: transparent;
        border: none;
        border-radius: 0;
    }

    .news-co-card--featured .news-co-card__budget.is-empty {
        background: transparent;
        border: none;
    }

    .news-co-card--featured .news-co-card__budget-label {
        text-transform: none;
        letter-spacing: 0;
        font-size: 0.8125rem;
        font-weight: 500;
        color: #8aa09e;
    }

    .news-co-card--featured .news-co-card__budget-label::after {
        content: ':';
    }

    .news-co-card--featured .news-co-card__budget-value {
        font-size: 0.9375rem;
        font-weight: 600;
        color: #0f2a29;
    }

    .news-co-card--featured .news-co-card__cta {
        width: auto;
        margin-top: 0;
        padding: 0.625rem 1rem;
        white-space: nowrap;
    }
}

@media (min-width: 992px) {
    .news-co-card--featured .news-co-card__inner {
        gap: 1.5rem;
        padding: 1.25rem 1.5rem;
    }

    .news-co-card--featured .news-co-card__logo-link {
        width: 110px;
        height: 110px;
    }

    .news-co-card--featured .news-co-card__title {
        font-size: 1.2rem;
    }
}
