/**
Theme Name: Astra Child
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
Template: astra
*/

/* ============================================
   Блоки постов на кастомной главной
   ============================================ */

.home-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

/* Карточка */
.home-posts-grid .home-post-card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease;
}

.home-posts-grid .home-post-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Изображение */
.home-posts-grid .home-post-card__image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.home-posts-grid .home-post-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.home-posts-grid .home-post-card:hover .home-post-card__image img {
    transform: scale(1.03);
}

/* Заголовок */
.home-posts-grid .home-post-card__title {
    padding: 16px 18px 18px;
    margin: 0;
    font-size: 1.05em;
    line-height: 1.4;
}

.home-posts-grid .home-post-card__title a {
    color: inherit;
    text-decoration: none;
}

.home-posts-grid .home-post-card__title a:hover {
    color: #0274be; /* цвет ссылок Astra по умолчанию — можно заменить */
}

/* Адаптив */
@media (max-width: 921px) {
    .home-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 544px) {
    .home-posts-grid {
        grid-template-columns: 1fr;
    }
}

/* Заголовки на кастомной главной — в стиле постов Astra + по центру */
.home-content h1,
.home-content h2 {
    text-align: center;
}

/* При необходимости можно подогнать размеры под себя.
   По умолчанию Astra использует H1 = 48px, H2 = 42px (desktop)[citation:8].
   Если на главной они кажутся слишком крупными — раскомментируйте и измените: */

.home-content h1 {
    font-size: 34px;
	font-weight: 600;
	margin-bottom: 30px;
}

.home-content h2 {
    font-size: 28px;
}

.home-intro-box {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 24px 28px;
    margin-bottom: 30px; /* отступ до следующего блока, как у сетки */
}

/* Кнопка-бейдж под блоком карточек на главной */
.home-posts-more {
    text-align: center;
    margin: 20px 0 50px;
}

.home-posts-more .home-badge {
    display: inline-block;
    padding: 10px 22px;
    background: #cd4e4e;
    color: #fff;
    font-size: 0.95em;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.home-posts-more .home-badge:hover,
.home-posts-more .home-badge:focus {
    background: #92001a;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.home-posts-more .home-badge:focus-visible {
    outline: 2px solid #92001a;
    outline-offset: 2px;
}