/*
Theme Name: Astra Child
Template: astra
Author: Territory
Description: Дочерняя тема для блога Территория
Version: 1.0.0
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600&display=swap');

body, h1, h2, h3, h4, p, a, span {
    font-family: 'Montserrat', sans-serif !important;
}

/* Шапка */
.site-header, .ast-primary-header-bar {
    background-color: #000000 !important;
    border-bottom: none !important;
}
.main-header-menu a {
    color: #ffffff !important;
    text-transform: uppercase !important;
    font-size: 13px !important;
    letter-spacing: 1px !important;
}
.main-header-menu a:hover {
    color: #A96641 !important;
}

/* Заголовки и ссылки */
.entry-title a, h1, h2, h3 {
    color: #000000 !important;
    font-weight: 500 !important;
    text-transform: uppercase;
}
.entry-title a:hover {
    color: #A96641 !important;
}

/* Кнопки */
button, input[type="submit"], .wp-block-button__link {
    background-color: #A96641 !important;
    color: #ffffff !important;
    border-radius: 71px !important;
    padding: 15px 30px !important;
    text-transform: uppercase;
    font-weight: 600 !important;
    font-size: 14px;
    border: none;
}

/* Подвал */
.site-footer, .ast-footer-copyright {
    background-color: #000000 !important;
    color: #ffffff !important;
}
.site-footer a {
    color: #ffffff !important;
}

/* Стили для блога (карточки статей) */
.blog-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
    transition: box-shadow 0.3s;
}
.blog-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.blog-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}
.blog-card-content {
    padding: 20px;
}
.blog-card-date {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}
.blog-card h2 {
    font-size: 22px;
    margin-bottom: 10px;
    line-height: 1.3;
}
.blog-card p {
    color: #333;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

/* Блок похожих статей */
.related-posts {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #A96641;
}
.related-posts h3 {
    margin-bottom: 20px;
    font-size: 24px;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}
.related-item a {
    color: #000;
    font-weight: 600;
    text-decoration: none;
}
.related-item a:hover {
    color: #A96641;
}