.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.news-card {
    border: 0px solid #ddd;
    padding: 15px;
    border-radius: 5px;
    background: #fff;
}

.news-card time {
    color: #666;
    font-size: 0.9em;
}

.news-card a {
    margin: 10px 0;
    font-size: 1.1em;
    color: #333;
    font-weight: none;
    text-decoration: none;
}

.news-card a:hover {
    color: darkred;
    font-weight: bold;
}

.news-card-title {
    font-weight: none;
    text-decoration: none;
}
.news-card-title a:hover {
    color: darkred;
    font-weight: bold;
}

.news-card-link {
    color: #333;
    text-decoration: none;
}
.news-card-link a:hover {
    color: darkred;
    font-weight: bold;
}

/* Пагинация */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.page-link {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: #f9f9f9;
    color: #333;
    text-decoration: none;
    border-radius: 3px;
}

.page-link.current {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.page-link:hover {
    background: #e9e9e9;
}

.news-thumbnail {
    width: 100%;
    height: 145px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}


/* Элемент документации */
.doc-list {
    display: flex; 
    flex-direction: row;
    flex-wrap: wrap;
    justify-content:flex-start;
    align-items: stretch;
    vertical-align:top;
    column-gap: 1%;
    margin-top: 15px;
    margin-bottom: 10px;
}

.doc-item {
    display: flex;
    flex-direction: column;
    max-width: 250px;
    align-items: stretch;
    border: 0px solid #ddd;
    padding: 15px;
    border-radius: 5px;
    flex-wrap: wrap;
    column-gap: 5%;
    justify-content: flex-start;
    vertical-align:top;
}

.doc-item a {
    font-size: 1.1em;
    font-weight: none;
    color: #0066cc;
    text-decoration: none;
}

.doc-item a:hover {
    color: darkred;
    font-weight: bold;
}

.doc-item-img {
    display: flex;
    max-width: 250px;
    border: 1px solid #ddd;
    background: #f9f9f9;
    color: #333;
    text-decoration: none;
    border-radius: 3px;
}.doc-item-img a:hover{
    color: darkred;
}
.doc-item-title {
    display: flex; 
    flex-shrink: 3;
    flex-wrap: wrap;
    color: #0066cc;
    text-decoration: none;
}
.doc-item-title a:hover {
    color: darkred;
    font-weight: bold;
}
