/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto Condensed', sans-serif;
    color: #000000;
    line-height: 1;
    width: 100%;
    margin: 0 auto;
    overflow-x: hidden;
    background-color: #FFFFFF;
}

.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 182px;
}

/* Блок страницы */
.articles-page {
    width: 100%;
    min-height: 1109px;
    position: relative;
    overflow: hidden;
}

/* Фоновое изображение */
.background-image {
    position: absolute;
    width: 100%;
    height: 1109px;
    left: 0;
    top: 0;
    background: url('../img/image3.png') no-repeat center center;
    background-size: cover;
    z-index: 0;
}

/* Заголовок страницы */
.articles-header {
    position: relative;
    width: auto;
    top: 100px;
    z-index: 2;
    margin-bottom: 32px;
}

.articles-main-title {
    font-weight: 400;
    font-size: 40px;
    line-height: 47px;
    color: #000000;
    margin-bottom: 16px;
}

.articles-subtitle {
    font-weight: 400;
    font-size: 24px;
    line-height: 28px;
    color: #000000;
}

/* Основной контейнер для статей */
.articles-container {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* Сетка статей */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 50px;
    width: 100%;
}

/* Первый ряд статей */
.first-row {
    margin-top: 170px;
    margin-bottom: 40px;
}

/* Второй ряд статей */
.second-row {
    margin-bottom: 100px;
}

/* Карточка статьи с обводкой */
.article-card {
    display: block; 
    text-decoration: none; 
    width: 232px;
    height: 298px;
    background: #E4E3E6;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 5px solid transparent;
    background-clip: padding-box;
    background-image: linear-gradient(#E4E3E6, #E4E3E6), 
                      linear-gradient(90deg, #819A43 0%, #70A9BC 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    transition: transform 0.2s ease; /* Анимация */ 
}

.article-card:hover {
    transform: translateY(-5px); /* Анимация */
}

/* Контейнер для фото */
.article-image {
    width: 204px;
    height: 141px;
    margin: 16px auto 12px;
    background: #D2D2D2;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* Заглушка */
.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #D2D2D2;
    border-radius: 12px;
}

.placeholder-text {
    font-weight: 400;
    font-size: 48px;
    line-height: 56px;
    color: #8A8A8A;
}

/* Мета-информация статьи */
.article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 16px;
    margin-bottom: 12px;
    gap: 12px;
}
.article-date {
    font-weight: 400;
    font-size: 14px;
    line-height: 16px;
    text-align: center;
    color: #616161;
}

.article-views {
    display: flex;
    align-items: center;
    gap: 4px;
}

.views-icon {
    width: 18px;
    height: 18px;
    background: url('../img/eye.png') no-repeat center center;
    background-size: contain;
}

.views-count {
    font-weight: 400;
    font-size: 14px;
    line-height: 16px;
    text-align: center;
    color: #616161;
}

/* Заголовок статьи */
.article-title {
    font-weight: 400;
    font-size: 14px;
    line-height: 16px;
    text-align: center;
    color: #000000;
    padding: 0 16px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}


.navigation-pagination {
    margin: 50px 0 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    z-index: 2;
    position: relative;
}

.navigation-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #CCD3C4;
    font-weight: 400;
    font-size: 14px;
    line-height: 16px;
    color: #000000;
    text-decoration: none;
    transition: all 0.2s ease;
}

.navigation-pagination .page-numbers:hover {
    border-color: #809C53;
    color: #687E36;
}

.navigation-pagination .page-numbers.current {
    background: #809C53;
    color: #FFFFFF;
    border-color: #809C53;
    font-weight: 700;
}

.navigation-pagination .page-numbers.prev,
.navigation-pagination .page-numbers.next {
    padding: 0 14px;
    min-width: 60px;
}
