
.ajm-stiri-wrap {
    --ajm-blue: #0c54a0;
    --ajm-text: #202a33;
    --ajm-muted: #667380;
    --ajm-border: #e3e7eb;
    width: 100%;
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

.ajm-stiri-heading {
    margin: 0 0 24px;
    color: #15191d;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    line-height: 1.15;
}

.ajm-stiri-list {
    width: 100%;
}

.ajm-stire-card {
    padding: 0 0 24px;
    margin: 0 0 24px;
    border-bottom: 1px solid var(--ajm-border);
}

.ajm-stire-title {
    margin: 0 0 10px;
    color: var(--ajm-text);
    font-size: clamp(21px, 2.4vw, 29px);
    font-weight: 700;
    line-height: 1.18;
}

.ajm-stire-title a {
    color: inherit;
    text-decoration: none;
}

.ajm-stire-title a:hover {
    color: var(--ajm-blue);
}

.ajm-stire-body {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 20px;
    align-items: stretch;
}

/* Știrile fără imagine ocupă automat toată lățimea. */
.ajm-stire-card--no-image .ajm-stire-body {
    grid-template-columns: minmax(0, 1fr);
}

.ajm-stire-card--no-image .ajm-stire-content {
    width: 100%;
}

.ajm-stire-image {
    display: block;
    width: 190px;
    height: 116px;
    overflow: hidden;
    border-radius: 6px;
    background: #f3f5f7;
}

.ajm-stire-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ajm-stire-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ajm-stire-excerpt {
    color: #3f4b56;
    font-size: 14px;
    line-height: 1.65;
}

.ajm-stire-footer {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 37px;
    margin-top: auto;
    padding: 0 12px;
    background: #f5f6f7;
    border: 1px solid #e1e5e9;
    border-radius: 4px;
}

.ajm-stire-date {
    color: #71808e;
    font-size: 12px;
    font-weight: 500;
}

.ajm-stire-readmore {
    margin-left: auto;
    color: var(--ajm-blue);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.ajm-stire-readmore:hover {
    text-decoration: underline;
}

.ajm-stiri-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 28px;
}

.ajm-stiri-pagination .page-numbers {
    display: inline-flex;
    min-width: 36px;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border: 1px solid #dfe4e8;
    text-decoration: none;
    color: #33404b;
    background: #fff;
}

.ajm-stiri-pagination .page-numbers.current,
.ajm-stiri-pagination a.page-numbers:hover {
    color: #fff;
    background: var(--ajm-blue);
    border-color: var(--ajm-blue);
}

.ajm-stiri-empty {
    padding: 14px 16px;
    background: #f6f7f8;
    border-left: 4px solid var(--ajm-blue);
}

@media (max-width: 700px) {
    .ajm-stire-body {
        grid-template-columns: 120px minmax(0, 1fr);
        gap: 12px;
    }

    .ajm-stire-card--no-image .ajm-stire-body {
        grid-template-columns: minmax(0, 1fr);
    }

    .ajm-stire-image {
        width: 120px;
        height: 92px;
    }

    .ajm-stire-excerpt {
        font-size: 13px;
        line-height: 1.5;
    }

    .ajm-stire-footer {
        padding: 6px 9px;
        flex-wrap: wrap;
    }
}

@media (max-width: 520px) {
    .ajm-stire-card {
        padding-bottom: 18px;
        margin-bottom: 18px;
    }

    .ajm-stire-body {
        display: block;
    }

    .ajm-stire-image {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        margin-bottom: 10px;
    }

    .ajm-stire-footer {
        margin-top: 10px;
    }
}
