.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 15px;
}

.news-item {
    position: relative;
    z-index: 0;
    border-radius: 2px;
    overflow: hidden;
    background: transparent;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.news-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2;
    pointer-events: none;
}

.news-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transition: transform 0.3s ease;
}

.news-item:hover .news-img {
    transform: scale(1.05);
}

.news-text-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-left: 20px;
    padding-bottom: 37px;
    padding-right: 20px;
    min-width: 0;
}

.news-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    flex-shrink: 1;
    width: 100%;
}

.news-date {
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    gap: 5px;
}

.news-date .bi-calendar {
    font-size: 1rem;
    color: #fff;
}

.news-label {
    padding: 2px 8px;
    font-size: 12px;
    color: #fff;
    border-radius: 2px;
    white-space: nowrap;
    font-weight: 600;
}

.read-more-wrapper {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 4;
    color: #fff;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 5px;
    pointer-events: auto;
}

.read-more-text {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.read-more-arrow {
    background-color: transparent;
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.read-more-arrow i {
    font-size: 16px;
}


.badge-news { background-color: #d11c1c; }
.badge-success { background-color: #138551; }
.badge-blue { background-color: #007bff; }
.badge-orange { background-color: #fd7e14; }

.big-square { grid-column: span 2; grid-row: span 2; }
.rectangle  { grid-column: span 2; grid-row: span 1; }
.small-square { grid-column: span 1; grid-row: span 1; }

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
        gap: 15px;
    }

    .big-square,
    .rectangle,
    .small-square {
        grid-column: span 1;
        grid-row: span 1;
    }

    .news-item {
        height: 300px;
    }

    .news-item:nth-child(4) {
        display: none;
    }
}