/*
	Theme Name: Hardweb (put theme name here) 
	Theme URI: http://hardweb.pro
	Author: Hardweb Group
	Author URI: http://hardweb.pro
	Description: Hardweb Group Theme
	Text Domain: text domain here
	Version: 1.0
	License: GNU General Public License v2 or later
	Tags: TAGS
	License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* Основные стили */
.news-main {
    padding: 40px 0;
    background-color: #f4f4f4;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    justify-items: center;
}

.news-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.news-card-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.news-card-content {
    padding: 20px;
    text-align: center;
}

.news-card-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.news-card-date {
    font-size: 14px;
    color: #888;
    margin-bottom: 15px;
}

.news-card-excerpt {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
}

/* Hover эффект для карточки */
.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Адаптивность */
@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}
