.news-block-final {
    --news-primary-color: #2c7f2e;
    --news-text-color: #2c3e50;
    --news-background: #fff;
    --news-shadow: 0 3px 10px rgba(0,0,0,0.1);
    font-family: 'Manrope', sans-serif;
    max-width: 100%;
    margin: 40px 0;
    padding: 0 20px;
    color: var(--news-text-color);
}

.news-block-final .news-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 20px;
}

.news-block-final .news-item {
    background: var(--news-background);
    overflow: hidden;
    box-shadow: var(--news-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.news-block-final .news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.news-block-final .news-thumb {
    position: relative;
    aspect-ratio: 400/240;
    overflow: hidden;
}
.news-block-final .news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-block-final .news-date {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: var(--news-primary-color);
    color: #fff;
    text-align: center;
    padding: 8px 10px;
    font-weight: 700;
    line-height: 1.2;
    z-index: 2;
}
.news-block-final .news-day { font-size: 18px; display:block; }
.news-block-final .news-month { font-size: 12px; text-transform: uppercase; display:block; }

.news-block-final .news-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-block-final .news-title { font-size: 18px; font-weight: 600; line-height: 1.4; margin-bottom: 15px; }
.news-block-final .title-inner {
    position: relative;
    display: inline-block;
}
.news-block-final .title-inner::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--news-primary-color);
    transition: width 1.4s ease;
}
.news-block-final .news-title-link:hover .title-inner::after {
    width: 100%;
}
.news-block-final .news-title-link { text-decoration: none; }

.news-block-final .news-excerpt { font-size: 14px; color: #555; line-height: 1.5; margin-bottom: 20px; flex: 1; }

.news-block-final .news-read-more {
    position: relative;
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    margin-top: auto;
    color: inherit;
}

.news-block-final .news-read-text-wrapper {
    position: relative;
    display: inline-block;
}

.news-block-final .news-read-text {
    position: relative;
    display: inline-block;
    transition: color 0.3s ease;
}

.news-block-final .news-read-text::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background-color: var(--news-primary-color);
    transition: width 0.7s ease;
}

.news-block-final .news-read-more:hover .news-read-text::after {
    width: 100%;
}

.news-block-final .news-read-text.hide-underline::after {
    width: 0 !important;
    transition: none !important;
}

.news-block-final .news-read-arrow { 
    margin-left: 8px; 
    transition: transform 0.3s ease, color 0.3s ease; 
}

.news-block-final .news-read-more:hover .news-read-arrow {
    transform: translateX(3px);
    color: var(--news-primary-color);
}

.news-block-final .news-read-more:hover .news-read-text {
    color: var(--news-primary-color);
}

/* Стили для ссылки "Ко всем новостям" с новой анимацией */
.news-block-final .news-all-container { 
    text-align: center; 
    margin-top: 40px; /* Подняли контейнер вверх */
}

.news-block-final .news-all-link {
    display: inline-flex;
    align-items: center;
    font-size: 22px;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--news-text-color);
    text-decoration: none;
    position: relative;
    padding-bottom: 6px;
    transition: color 0.5s ease 0.7s;
}

.news-block-final .news-all-text {
    position: relative;
    transition: color 0.3s ease;
}

.news-block-final .news-all-text::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--news-primary-color);
    transform-origin: left;
    transition: transform 0.7s ease;
    transform: scaleX(1);
}

.news-block-final .news-all-link:hover .news-all-text::after {
    transform-origin: right;
    transform: scaleX(0);
}

.news-block-final .news-all-arrow {
    margin-left: 10px;
    opacity: 0;
    width: 0;
    overflow: hidden;
    transition: opacity 0.5s ease, width 0.5s ease;
    color: var(--news-primary-color);
    font-size: 22px; /* Такой же размер, как у текста */
    font-weight: 500;
    line-height: 1;
}

.news-block-final .news-all-link:hover .news-all-arrow {
    opacity: 1;
    width: 20px;
    transition-delay: 0.7s;
}

.news-block-final .news-all-arrow::before {
    content: '>';
}

.news-block-final .news-all-link:hover {
    color: var(--news-primary-color);
    transition-delay: 0s;
}

/* Адаптация */
@media (max-width:1024px) { .news-block-final .news-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width:600px) {
    .news-block-final .news-grid { grid-template-columns: 1fr; }
    .news-block-final .news-thumb { aspect-ratio: 400/240; }
    .news-block-final .news-all-link { font-size: 18px; }
    .news-block-final .news-all-arrow { font-size: 18px; }
    .news-block-final .news-title { font-size: 16px; }
    .news-block-final .title-inner { word-break: break-word; white-space: normal; }
    .news-block-final .title-inner::after { height: 1.5px; }
}