/*
Theme Name: GeneratePress Child
Template: generatepress
Version: 1.0
*/

/* ================== ОБЩЕЕ ================== */

/* Фон сайта — слегка голубоватый */
body {
    background-color: #e8f4fb;

    background-image:
        repeating-linear-gradient(
            -45deg, /* поменяли направление */
            rgba(0,0,0,0.025) 0px,
            rgba(0,0,0,0.025) 2px,
            transparent 2px,
            transparent 10px /* увеличили расстояние */
        );
}

/* Содержимое сайта с эффектом «лист бумаги» */
#page {
    background-color: #fff;
    margin: 20px auto;
    padding: 20px;
    max-width: 1250px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.9); /* усиленная тень */
}


/* Меню */
.main-navigation .main-nav ul {
    display: flex;
    flex-wrap: nowrap;
}

.main-navigation .main-nav ul li {
    white-space: nowrap;
}

.main-navigation {
    width: 100%;
    background: var(--main-blue);
}

.main-navigation a {
    color: #fff !important;
}

.main-navigation a:hover {
    background: var(--dark-blue);
}

/* ================== ОБЩИЕ СТИЛИ ДЛЯ РЕКЛАМНЫХ БЛОКОВ СВЕРХУ И СНИЗУ ================== */
.top-ads, .after-menu-ads, .bottom-ads {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    background: #f1f7fb;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05); /* тень для блоков */
}

.top-ads .ad-block,
.after-menu-ads .ad-block,
.bottom-ads .ad-block {
    width: 100%;
    max-width: 1200px;
}

@media (max-width: 768px) {
    .top-ads .ad-block,
    .after-menu-ads .ad-block,
    .bottom-ads .ad-block {
        flex: 1 1 100%;
    }
}

/* ================== МЫ УБРАЛИ ВСЕ СТАНДАРТНЫЕ СТАТЬИ С ГЛАВНОЙ ================== */
/* ================== ТЕПЕРЬ НАДО СКРЫТЬ НАДПИСЬ "НИЧЕГО НЕ НАЙДЕНО" ================== */
.home .no-results {
    display: none;
}


/* ================== БЛОК РУБРИКИ ================== */

/* Блок как часть контента */
.category-block {
    margin: 0 0 20px 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

/* Заголовок рубрики */
.category-title {
    background: linear-gradient(90deg, #0aa3ff, #0077cc);
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    padding: 15px 20px;
    margin-bottom: 20px;
    display: block;
    width: 100%;
}

/* Главный пост */
.category-main-post {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 20px;
    margin-bottom: 20px;
	padding-left: 10px;  /* новый отступ слева */
    padding-right: 10px; /* новый отступ справа */
}

.category-main-post img {
    width: 100%;
}

.category-main-title {
    font-size: 22px;
    font-weight: bold;
    color: #000;
    text-decoration: none;
}

.category-main-excerpt {
    font-size: 16px;
    color: #333;
    margin-right: 15px; /* отступ справа, чтобы не налезало на край */
}

/* Сетка мелких новостей */
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0px 15px; /* 25px вертикально, 15px горизонтально */
}

.category-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background-color: #f8fcff;
    padding: 5px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.04); /* тень для карточек мелких новостей */
}

.category-item img {
    width: 160px;
    height: auto;
}

.category-item-title {
    font-size: 14px;
    color: #000;
    text-decoration: none;
    font-weight: normal;
}

@media (max-width: 768px) {
    .category-main-post {
        grid-template-columns: 1fr;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }
}

/* ================== Заголовок рубрики на странице архива ================== */

.archive .page-title,
.tax-category .page-title {
    background: linear-gradient(90deg, #0aa3ff, #0077cc);
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    padding: 15px 20px;
    margin-bottom: 20px;
    display: block;
    width: 100%;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

/* ================== КАРТОЧКИ ПОСТОВ ================== */

.gp-post {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 20px;

    background-color: #fff;
    padding: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    transition: transform 0.2s ease;
}

.gp-post:hover {
    transform: translateY(-3px);
}

.gp-left-column {
    flex: 0 0 120px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.gp-left-column img {
    width: 120px;
    height: auto;
}

.gp-meta {
    font-size: 12px;
    color: #555;
}

.gp-right-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.gp-title {
    font-size: 16px;
    color: #000;
    text-decoration: none;
    font-weight: bold;
}

.gp-excerpt {
    font-size: 14px;
    color: #000;
}

/* ================== АДАПТИВ ================== */

@media (max-width: 768px) {
    .gp-post {
        flex-direction: column;
    }

    .gp-left-column {
        flex: 1;
        flex-direction: row;
        gap: 10px;
        align-items: center;
    }

    .gp-left-column img {
        width: 80px;
    }

    #primary,
    .custom-sidebar {
        float: none;
        width: 100%;
    }
}

/* ================== САЙДБАР ================== */

#primary {
    float: left;
    width: 70%;
    margin-top: 0px;
}

.custom-sidebar {
    float: right;
    width: 28%;
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* clearfix */
#primary::after,
.custom-sidebar::after {
    content: "";
    display: table;
    clear: both;
}

/* ================== КАРТОЧКИ В САЙДБАРЕ ================== */

.custom-sidebar .widget {
    background: #fff;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #e5e5e5;
    box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}

.custom-sidebar .widget-title {
    font-size: 14px;
    font-weight: bold;
    color: #0af;
    margin-bottom: 8px;
}

.custom-sidebar .widget .widget {
    all: unset;
}

.custom-sidebar .widget > * {
    margin: 0;
}

.custom-sidebar img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== ГОЛУБАЯ ТЕМА ===== */

:root {
    --main-blue: #0aa3ff;
    --dark-blue: #0077cc;
}

/* Ссылки */
a {
    color: var(--main-blue);
}

/* Кнопка Read more */
.read-more {
    color: var(--main-blue);
    font-size: 13px;
}
