/*
Theme Name: Eparchy Child Theme
Description: Дочерняя тема для eparchy на основе Twenty Twenty-Four
Template: twentytwentyfour
Version: 1.0.0
Text Domain: eparchy
Domain Path: /languages
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-background, custom-colors, custom-header, custom-logo, custom-menu, featured-images, flexible-header, full-site-editing, full-width-template, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready
*/

/*
 * Основные стили дочерней темы
 * Переопределяют стили родительской темы twentytwentyfour
 */

/* === ОБЩИЕ СТИЛИ === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === ГЛАВНАЯ СТРАНИЦА === */

/* Основной контент */
.main-content {
    margin: 0;
    padding: 0;
}

/* Блоки главной страницы */
.home-block {
    padding: 40px 0;
    margin-bottom: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.home-block--slider {
    padding: 0;
    margin-bottom: 0;
}

.home-block--banner {
    padding: 20px 0;
    background-color: #f8f9fa;
}

/* Заголовок с ссылкой */
.home-block__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
}

.home-block__title {
    font-family: 'Classic Russian', 'Times New Roman', Times, serif;
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.home-block__header-link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #4a9eff 0%, #1e88e5 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(74, 158, 255, 0.3);
}

.home-block__header-link:hover {
    background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
    box-shadow: 0 4px 15px rgba(74, 158, 255, 0.4);
    color: white;
    text-decoration: none;
}

/* Главная статья */
.home-block__main-item {
    margin-bottom: 30px;
}

.home-block__main-article {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-block__main-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.home-block__main-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.home-block__main-image img {
    width: 100%;
    max-height: 100%;
    height: auto;
    object-fit: scale-down;
    transition: transform 0.3s ease;
}

.home-block__main-article:hover .home-block__main-image img {
    transform: scale(1.05);
}

.home-block__main-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-block__main-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
}

.home-block__main-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.home-block__main-title a:hover {
    color: #4a9eff;
}

.home-block__main-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 1rem;
}

.home-block__main-meta {
    margin-top: auto;
}

/* Сетка элементов */
.home-block__items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

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

.home-block__item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.home-block__item-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.home-block__item-image img {
    width: 100%;
    max-height: 100%;
    height: auto;
    object-fit: scale-down;
    transition: transform 0.3s ease;
}

.home-block__item:hover .home-block__item-image img {
    transform: scale(1.05);
}

/* Заглушка для постов без изображения */
.home-block__item-placeholder {
    display: block;
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #4a9eff 0%, #1e88e5 100%);
    position: relative;
}

.home-block__item-no-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 3rem;
    opacity: 0.7;
}

.home-block__item-content {
    padding: 20px;
}

.home-block__item-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.home-block__item-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.home-block__item-title a:hover {
    color: #4a9eff;
}

.home-block__item-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.home-block__item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #999;
}

.home-block__item-date {
    color: #666;
}

.home-block__item-time {
    color: #999;
}

.home-block__item-categories {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.home-block__item-category {
    padding: 2px 8px;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 12px;
    font-size: 0.75rem;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
}

.home-block__item-category:hover {
    background: #1976d2;
    color: white;
}

/* Сетка для отображения в виде карточек */
.home-block__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.home-block__grid-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.home-block__grid-item:hover {
    transform: translateY(-3px);
}

.home-block__grid-link {
    text-decoration: none;
    color: inherit;
}

.home-block__grid-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
    position: relative;
}

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

.home-block__grid-placeholder {
    background: linear-gradient(135deg, #4a9eff 0%, #1e88e5 100%);
}

.home-block__grid-content {
    padding: 15px;
}

.home-block__grid-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    color: #2c3e50;
}

.home-block__grid-excerpt {
    font-size: 0.875rem;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Кнопка "Показать еще" */
.home-block__more {
    text-align: center;
}

.home-block__more-link {
    display: inline-block;
    padding: 12px 30px;
    background: #4a9eff;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.3s ease;
}

.home-block__more-link:hover {
    background: #1e88e5;
    transform: translateY(-2px);
    color: white;
}

/* Адаптивность для главной страницы */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .home-block {
        padding: 30px 0;
    }

    .home-block__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .home-block__header .home-block__title {
        text-align: center;
        width: 100%;
    }

    .home-block__main-article {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .home-block__main-image {
        height: 200px;
    }

    .home-block__main-content {
        padding: 20px;
    }

    .home-block__main-title {
        font-size: 1.3rem;
    }

    .home-block__items {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .home-block__grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .home-block__item-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .home-block {
        padding: 20px 0;
    }

    .home-block__header-link {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .home-block__main-content {
        padding: 15px;
    }

    .home-block__main-title {
        font-size: 1.2rem;
    }

    .home-block__items {
        gap: 15px;
    }

    .home-block__grid {
        gap: 10px;
    }

    .home-block__item-content {
        padding: 15px;
    }

    .home-block__grid-content {
        padding: 12px;
    }

    .home-block__item-title {
        font-size: 1.1rem;
    }

    .home-block__grid-title {
        font-size: 0.9rem;
    }

    .home-block__item-no-image {
        font-size: 2rem;
    }

    .home-block__item-categories {
        gap: 3px;
    }

    .home-block__item-category {
        font-size: 0.7rem;
        padding: 1px 6px;
    }
}

/* === СЛАЙДЕР === */
.home-block--slider,
.home-block--slider .home-block__items {
    margin: 0;
    padding: 0;
}

/* === БАННЕРЫ === */
.banners {
    display: grid;
    gap: 20px;
    margin: 0 0 20px;
    background: white;
}

.banners--header {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.banners--middle {
    grid-template-columns: 1fr;
}

.banners--footer {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.banners--mitropolit {
    grid-template-columns: 1fr;
}

.banner-item {
    background: #fff;
    border-radius: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.banner-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.banner-content-container {
    padding: 30px;
    background: linear-gradient(135deg, #4a9eff 0%, #1e88e5 100%);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 200px;
    text-align: center;
}

.banner-content-container .banner-title {
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 15px;
}

.banner-content-container .banner-content {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
}

.banner-image-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
/*
.banner-item:hover .banner-image {
    transform: scale(1.05);
} */

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.4) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    color: white;
    transition: background 0.3s ease;
}
/*
.banner-item:hover .banner-overlay {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%);
} */

.banner-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    color: #fff;
}

.banner-content {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 20px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    opacity: 0.9;
}

/* Специфичные стили для разных позиций */

/* Баннеры в хедере - горизонтальная лента */
.banners--header {
    text-align: center;
}

.banners--header .banner-item {
    display: inline-block;
    margin: 0 10px 10px 0;
    max-width: 100%;
}

.banners--header .banner-image-container {
    height: 120px;
}

.banners--header .banner-overlay {
    padding: 15px;
}

.banners--header .banner-title {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.banners--header .banner-content {
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.banners--header .banner-button {
    padding: 6px 12px;
    font-size: 0.8rem;
}

/* Баннеры посередине - полная ширина */
.banners--middle .banner-item {
    margin-bottom: 20px;
}

.banners--middle .banner-image-container {
    height: 300px;
}

/* Баннеры в футере - компактные */
.banners--footer {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.banners--footer .banner-item {
    display: inline-block;
    margin: 0 15px 15px 0;
    max-width: 300px;
}

.banners--footer .banner-image-container {
    height: 80px;
}

.banners--footer .banner-overlay {
    padding: 10px;
}

.banners--footer .banner-title {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.banners--footer .banner-content {
    font-size: 0.75rem;
    margin-bottom: 8px;
}

.banners--footer .banner-button {
    padding: 4px 8px;
    font-size: 0.7rem;
}

/* Баннеры Митрополита - большие */
.banners--mitropolit .banner-image-container {
    height: 500px;
}

.banners--mitropolit .banner-overlay {
    padding: 40px;
}

.banners--mitropolit .banner-title {
    font-size: 2rem;
    margin-bottom: 20px;
}

.banners--mitropolit .banner-content {
    font-size: 1.5rem;
    margin-bottom: 25px;
}

.banners--mitropolit .banner-button {
    padding: 12px 25px;
    font-size: 1rem;
}

/* Адаптивность для баннеров */
@media (max-width: 1024px) {
    .banners--mitropolit .banner-image-container {
        height: 350px;
    }

    .banners--mitropolit .banner-overlay {
        padding: 30px;
    }

    .banners--mitropolit .banner-title {
        font-size: 1.7rem;
    }

    .banner-content-container {
        padding: 25px;
        min-height: 180px;
    }
}

@media (max-width: 768px) {
    /* Скрываем баннер митрополита в мобильной версии */
    .banners--mitropolit {
        display: none !important;
    }

    .banners--header .banner-item,
    .banners--footer .banner-item {
        display: block;
        margin: 0 0 10px 0;
        max-width: 100%;
    }

    .banners--header .banner-image-container,
    .banners--footer .banner-image-container {
        height: 100px;
    }

    .banners--middle .banner-image-container {
        height: 150px;
    }

    .banners--mitropolit .banner-image-container {
        height: 250px;
    }

    .banners--mitropolit .banner-overlay {
        padding: 20px;
    }

    .banners--mitropolit .banner-title {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }

    .banners--mitropolit .banner-content {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .banner-overlay {
        padding: 20px;
    }

    .banner-title {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }

    .banner-content {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .banner-button {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .banner-content-container {
        padding: 20px;
        min-height: 150px;
    }

    .banner-content-container .banner-title {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .banner-content-container .banner-content {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .banners {
        margin: 15px 0;
        padding: 15px;
    }

    .banners--middle .banner-image-container {
        height: 120px;
    }

    .banners--mitropolit .banner-image-container {
        height: 200px;
    }

    .banners--mitropolit .banner-overlay {
        padding: 15px;
    }

    .banners--mitropolit .banner-title {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .banners--mitropolit .banner-content {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .banner-overlay {
        padding: 15px;
    }

    .banner-title {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }

    .banner-content {
        font-size: 0.8rem;
        margin-bottom: 12px;
    }

    .banner-button {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .banner-content-container {
        padding: 15px;
        min-height: 120px;
    }

    .banner-content-container .banner-title {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .banner-content-container .banner-content {
        font-size: 0.8rem;
        margin-bottom: 12px;
    }
}

/* === ОСНОВНОЙ КОНТЕНТ === */
.site-main {
    padding: 40px 0;
    min-height: 60vh;
    background-color: #fff;
}

/* Контейнер для основного контента */
.site-main .container {
    background: white;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

/* Статьи */
.entry-header {
    margin-bottom: 20px;
}

.entry-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2c3e50;
}

.entry-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.entry-title a:hover {
    color: #4a9eff;
}

.entry-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.entry-meta span {
    margin-right: 15px;
}

.cleargy-content {
    display: flex;
    flex-direction: row;
    gap: 40px;
}

.entry-content {
    line-height: 1.8;
    color: #333;
}

.entry-content p {
    margin-bottom: 1rem;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    margin: 2rem 0 1rem;
    color: #2c3e50;
}

.entry-content h1 { font-size: 2rem; }
.entry-content h2 { font-size: 1.75rem; }
.entry-content h3 { font-size: 1.5rem; }
.entry-content h4 { font-size: 1.25rem; }
.entry-content h5 { font-size: 1.1rem; }
.entry-content h6 { font-size: 1rem; }

.entry-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    font-size: 0.9rem;
    color: #666;
}

.entry-footer span {
    margin-right: 15px;
}

/* Миниатюры постов */
.post-thumbnail {
    margin-bottom: 20px;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Кнопка "Читать далее" */
.read-more {
    display: inline-block;
    padding: 10px 20px;
    background: #4a9eff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
    margin-top: 15px;
}

.read-more:hover {
    background: #1e88e5;
    color: white;
}

/* Сайдбар */
.widget-area {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 40px;
}

.widget {
    margin-bottom: 30px;
}

.widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2c3e50;
    border-bottom: 2px solid #4a9eff;
    padding-bottom: 5px;
}

/* Навигация по страницам */
.navigation {
    margin: 40px 0;
    text-align: center;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.nav-previous,
.nav-next {
    color: white;
    text-decoration: none;
    transition: background 0.3s ease;
}

/* Сообщение "Ничего не найдено" */
.no-results {
    text-align: center;
    padding: 60px 20px;
}

.page-title {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.page-content {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
}

.page-content p {
    margin-bottom: 20px;
}

.page-header {
    /* background: #f7f7f8;
    padding: 20px 0 40px;
    border-bottom: 1px solid #e0e0e0; */
}

/* Адаптивность для основного контента */
@media (max-width: 768px) {
    .site-main {
        padding: 20px 0;
    }

    .entry-title {
        font-size: 1.5rem;
    }

    .entry-content h1 { font-size: 1.5rem; }
    .entry-content h2 { font-size: 1.3rem; }
    .entry-content h3 { font-size: 1.2rem; }

    .widget-area {
        margin-top: 20px;
    }

    .cleargy-content {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .entry-title {
        font-size: 1.3rem;
    }

    .entry-content h1 { font-size: 1.3rem; }
    .entry-content h2 { font-size: 1.2rem; }
    .entry-content h3 { font-size: 1.1rem; }

    .nav-links {
        flex-direction: column;
        align-items: center;
    }
}

/* === BREADCRUMBS === */
.breadcrumbs-container {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumbs {
    font-size: 14px;
    padding: 12px 0;
    background-color: transparent;
    border: none;
}

.breadcrumbs ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.breadcrumbs li {
    display: inline-block;
}

.breadcrumbs li:not(:last-child)::after {
    content: '/';
    margin: 0 10px;
    color: #999;
}

.breadcrumbs a {
    color: #777;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: #1e88e5;
    text-decoration: underline;
}

.breadcrumbs li.breadcrumbs__item--current {
    color: #333;
    font-weight: 500;
}

.archive-entry {
    margin-bottom: 40px;
}

/* === ARCHIVE LIST ITEM (category, archive pages) === */
.archive-list-item {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    padding: 30px 0;
    border-bottom: 1px solid #e9ecef;
}

.archive-list-item:first-of-type {
    padding-top: 10px;
}

.archive-list-item:last-of-type {
    border-bottom: none;
    padding-bottom: 10px;
}

.archive-list-item__thumbnail {
    flex: 0 0 30%;
    max-width: 30%;
}

.archive-list-item__thumbnail a {
    display: block;
}

/* Предотвращает растягивание маленьких изображений */
.archive-list-item__thumbnail img {
    max-width: 100%; /* Не выходить за пределы 30% контейнера */
    width: auto;     /* Использовать натуральную ширину */
    height: auto;    /* Сохранять пропорции */
    display: block;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin: 0 auto;
}

/* Дополнительные стили для обтекания текста */
.archive-list-item__thumbnail {
    float: left;
    margin-right: 30px;
    margin-bottom: 15px;
}

.archive-list-item__content {
    flex: 1;
    min-width: 0; /* Предотвращает переполнение flex-элемента */
    overflow: hidden; /* Для правильного обтекания */
}

.archive-list-item__title {
    margin: 0 0 15px 0;
    font-size: 1.5rem;
    font-weight: 700; /* Жирный шрифт */
    line-height: 1.3;
}

.archive-list-item__title a {
    text-decoration: none;
    color: #2c3e50;
    transition: color 0.2s;
}

.archive-list-item__title a:hover {
    color: #4a9eff;
}

.archive-list-item__meta {
    margin-bottom: 20px;
}

.archive-list-item__date-badge {
    display: inline-block;
    background-color: #f1f1f1;
    color: #555;
    padding: 5px 12px;
    border-radius: 2px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* === CLERGY REGISTRATION PAGE === */
.clergy-registration-page .acf-input-wrap {
    display: flex;
    align-items: center;
}

.clergy-registration-page .entry-content {
    /* max-width: 800px;
    margin: 0 auto; */
}

.clergy-registration-form .acf-form {
}

.clergy-registration-form .acf-fields>.acf-field:first-child {
    padding-top: 16px;
}

.clergy-registration-form .acf-fields {
    border: none;
    padding: 0;
}

.clergy-registration-form .acf-field {
    border-top: 1px solid #eee;
    padding: 20px 0;
}

.clergy-registration-form .acf-field:first-child {
    border-top: none;
    padding-top: 0;
}

.clergy-registration-form .acf-label {
    margin-bottom: 10px;
}

.clergy-registration-form .acf-label label {
    font-weight: 600;
    color: #333;
}

.clergy-registration-form .acf-required {
    color: #e74c3c;
}

.clergy-registration-form .acf-field.acf-field-required .acf-label label:after {
    content: ' *';
    color: #e74c3c;
    font-weight: normal;
}

.clergy-registration-form .acf-field-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.clergy-registration-form .acf-error-message {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 10px;
    border-radius: 4px;
    margin-top: 5px;
    font-size: 0.9rem;
}

/* Стили для поля пароля */
.clergy-registration-form .password-field .acf-input {
    display: flex;
    align-items: center;
}

.clergy-registration-form .password-field input[type="password"],
.clergy-registration-form .password-field input[type="text"] {
    flex: 1;
    margin-right: 10px;
}

.clergy-registration-form .toggle-password {
    background: #f8f9fa;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
    min-width: 40px;
    height: 38px;
}

.clergy-registration-form .toggle-password:hover {
    background: #e9ecef;
    border-color: #3498db;
}

/* Стили для информации о приходах */
.clergy-registration-form .parishes-info {
    background: #e8f4fd;
    border: 1px solid #bee5eb;
    color: #0c5460;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    font-style: italic;
}

/* .clergy-registration-form .acf-field[data-name="user_clergy_parish"],
.clergy-registration-form .acf-field[data-name="user_clergy_position"] {
    opacity: 0.6;
    transition: opacity 0.3s ease;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    margin: 0;
} */

/* .clergy-registration-form .acf-field[data-name="user_clergy_parish"].show,
.clergy-registration-form .acf-field[data-name="user_clergy_position"].show {
    opacity: 1;
    max-height: 200px;
    padding: 16px;
    margin: inherit;
} */

.clergy-registration-form .acf-field[data-name="user_clergy_parish"].show:first-child,
.clergy-registration-form .acf-field[data-name="user_clergy_position"].show:first-child {
    padding-top: 0;
}
/*
.clergy-registration-form .filters.-f3 .filter.-post_type {
    display: none;
} */

.clergy-registration-form .filters.-f3 .filter.-taxonomy {
    width: 50%;
}








.clergy-registration-form .acf-input input[type="text"],
.clergy-registration-form .acf-input input[type="email"],
.clergy-registration-form .acf-input input[type="password"],
.clergy-registration-form .acf-input select,
.clergy-registration-form .acf-input textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* ====== СТИЛИ ДЛЯ ОБЫЧНЫХ SELECT (БЕЗ SELECT2) ====== */
/* Select2 полностью удален для упрощения и надежности */

/* Принудительно скрываем Select2 ТОЛЬКО в поле приходов */
.clergy-registration-form .acf-field[data-name="user_clergy_parish"] .select2-container,
.clergy-registration-form .acf-field[data-name="user_clergy_parish"] .select2-dropdown,
.clergy-registration-form .acf-field[data-name="user_clergy_parish"] .select2-results {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    z-index: -1 !important;
}

/* Показываем обычные select элементы в поле приходов */
.clergy-registration-form .acf-field[data-name="user_clergy_parish"] select {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
}

/* Улучшенные стили для select элементов */
.clergy-registration-form select {
    font-size: 14px;
    line-height: 1.4;
    background-color: white;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 38px;
}

.clergy-registration-form select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.clergy-registration-form select:disabled {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.7;
}

.clergy-registration-form select:hover:not(:disabled) {
    border-color: #3498db;
}

/* Специальные стили для поля приходов */
.clergy-registration-form .acf-field[data-name="user_clergy_parish"] select,
.clergy-registration-form .acf-field[data-name="user_clergy_position"] select {
    border: 2px solid #ddd;
    border-radius: 6px;
    padding: 12px;
    font-weight: 500;
}

.clergy-registration-form .acf-field[data-name="user_clergy_parish"] select:focus,
.clergy-registration-form .acf-field[data-name="user_clergy_position"] select:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
}

/* Стили для загрузки */
.clergy-registration-form select[disabled] {
    background-image: linear-gradient(45deg, transparent 25%, rgba(255,255,255,.2) 25%, rgba(255,255,255,.2) 50%, transparent 50%, transparent 75%, rgba(255,255,255,.2) 75%, rgba(255,255,255,.2));
    background-size: 20px 20px;
    animation: loading-animation 1s linear infinite;
}

@keyframes loading-animation {
    0% { background-position: 0 0; }
    100% { background-position: 20px 20px; }
}

/* Стили для поля изображения */
.clergy-registration-form .acf-image-uploader {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: border-color 0.3s ease;
}

.clergy-registration-form .acf-image-uploader:hover {
    border-color: #3498db;
}

.clergy-registration-form .acf-image-uploader .image-wrap {
    max-width: 200px;
    margin: 0 auto;
}

.clergy-registration-form .acf-image-uploader .image-wrap img {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.clergy-registration-form .acf-image-uploader .acf-button {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.3s ease;
}

.clergy-registration-form .acf-image-uploader .acf-button:hover {
    background: #2980b9;
}

.clergy-registration-form .acf-image-uploader .hide-if-value {
    color: #666;
    font-style: italic;
}

.clergy-registration-form .acf-form-submit {
    margin-top: 20px;
    text-align: right;
}

.clergy-registration-form .acf-button {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

/* === ФУТЕР === */
.site-footer {
    background: linear-gradient(135deg, #455a64 0%, #37474f 100%);
    color: #ffffff;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column {
    min-width: 0;
}

.footer-title {
    font-size: 14px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 15px;
    line-height: 1.4;
    transition: all 0.3s ease;
    display: block;
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 5px;
    text-decoration: underline;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 15px;
}

.footer-info {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.age-rating {
    display: flex;
    align-items: center;
}

.rating-badge {
    background: #ffffff;
    color: #333;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.site-creator {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

.creator-link {
    color: #4a9eff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.creator-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-icons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.social-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Адаптивные стили для футера */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 30px 0 15px;
        margin-top: 40px;
    }

    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
        margin-bottom: 25px;
    }

    .footer-title {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .footer-links a {
        font-size: 12px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .footer-info {
        justify-content: center;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .footer-title {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .footer-links a {
        font-size: 11px;
    }

    .site-creator {
        font-size: 12px;
    }

    .footer-icons {
        gap: 8px;
    }

    .social-icon {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
}

/* === СТИЛИ ДЛЯ ССЫЛОК НА ПРОФИЛИ СВЯЩЕННИКОВ === */

/* Ссылка на профиль священника */
.clergy-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

.clergy-link:hover .clergy-name {
    color: #4a9eff;
}

.clergy-link:hover .clergy-photo .no-photo {
    background-color: #4a9eff;
    color: white;
}

.clergy-photo .no-photo {
    /* transition: background-color 0.3s ease, color 0.3s ease; */
}

/* Анимация для имени */
.clergy-name {
    transition: color 0.3s ease;
}

/* Стили для карточки священника с ссылкой */
.clergy-card {
    position: relative;
    overflow: hidden;
}

.clergy-card .clergy-link {
    position: relative;
    z-index: 1;
}

/* Стили для заголовков блоков */
.home-block__header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
}

.home-block__header-link {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #4a9eff 0%, #1e88e5 100%);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1.3rem;
    text-transform: none;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 158, 255, 0.3);
}

.home-block__header-link:hover {
    background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
    box-shadow: 0 4px 15px rgba(74, 158, 255, 0.4);
    color: white;
    text-decoration: none;
}

.home-block__header-link:active {
    box-shadow: 0 2px 8px rgba(74, 158, 255, 0.3);
}

/* Адаптивные стили для заголовков */
@media (max-width: 768px) {
    .home-block__header {
        justify-content: center;
        text-align: center;
    }

    .home-block__header-link {
        padding: 0.8rem 1.5rem;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .home-block__header-link {
        padding: 0.6rem 1.2rem;
        font-size: 1rem;
    }
}

/* === СТИЛИ ДЛЯ ЕПАРХИЙ === */

.eparchies {
    padding: 4rem 0;
}

.eparchies__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.eparchy-item {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    background: white;
}

.eparchy-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.eparchy-container {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.eparchy-image-container {
    position: relative;
    width: 100%;
    height: 100%;
}

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

.eparchy-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 2rem 1.5rem 1.5rem;
    color: white;
}

.eparchy-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    color: #fff;
}

.eparchy-content-container {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
    background: linear-gradient(135deg, #4a9eff 0%, #1e88e5 100%);
    color: white;
}

.eparchy-description {
    margin-top: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.9;
}

/* Адаптивные стили для епархий */
@media (max-width: 1200px) {
    .eparchies__grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .eparchies {
        padding: 3rem 0;
    }

    .eparchies__title {
        font-size: 2rem;
    }

    .eparchies__grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }

    .eparchy-container {
        height: 200px;
    }

    .eparchy-title {
        font-size: 1.2rem;
    }

    .eparchy-overlay {
        padding: 1.5rem 1rem 1rem;
    }
}

@media (max-width: 480px) {
    .eparchies {
        padding: 2rem 0;
    }

    .eparchies__title {
        font-size: 1.8rem;
    }

    .eparchies__grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .eparchy-container {
        height: 180px;
    }

    .eparchy-title {
        font-size: 1.1rem;
    }

    .eparchy-overlay {
        padding: 1rem 0.8rem 0.8rem;
    }
}

/* === ОБЩИЕ СТИЛИ ПАГИНАЦИИ === */
.pagination,
.news-pagination {
    margin: 2rem 0;
    text-align: center;
}

.pagination-info {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 1rem;
}

/* Стили для WordPress paginate_links() */
.pagination ul {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pagination li {
    margin: 0;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.pagination a:hover {
    background: #e0e0e0;
    border-color: #bbb;
}

.pagination .current {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.pagination .prev,
.pagination .next {
    background: #3498db;
    color: white;
}

.pagination .prev:hover,
.pagination .next:hover {
    background: #2980b9;
}

/* Стили для кастомной пагинации (single-parish, single-department) */
.pagination-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pagination-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.pagination-link:hover {
    background: #e0e0e0;
    border-color: #bbb;
}

.pagination-link.current {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.pagination-link.prev,
.pagination-link.next {
    background: #3498db;
    color: white;
}

.pagination-link.prev:hover,
.pagination-link.next:hover {
    background: #2980b9;
}

.pagination-dots {
    display: inline-block;
    padding: 0 0.5rem;
    color: #555;
}

/* Мобильные стили для пагинации */
@media (max-width: 768px) {
    .pagination ul,
    .pagination-links {
        gap: 0.25rem;
    }
    
    .pagination a,
    .pagination span,
    .pagination-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .pagination-info {
        font-size: 0.8rem;
    }
    
    .pagination-link .prev,
    .pagination-link .next {
        display: none; /* Скрываем текст "Предыдущая"/"Следующая" на мобильных */
    }
    
    /* Адаптивные стили для новостей */
    .archive-list-item {
        flex-direction: column;
        gap: 20px;
        padding: 20px 0;
    }
    
    .archive-list-item__thumbnail {
        flex: none;
        max-width: 100%;
        float: none;
        margin-right: 0;
        margin-bottom: 0;
        text-align: center;
    }
    
    .archive-list-item__thumbnail img {
        max-width: 100%;
        width: 100%;
        height: 200px;
        object-fit: cover;
    }
    
    .archive-list-item__content {
        flex: none;
    }
    
    .archive-list-item__title {
        font-size: 1.3rem;
        text-align: center;
    }
    
    .pagination-link .prev::before {
        content: '‹';
        font-size: 1.2rem;
    }
    
    .pagination-link .next::after {
        content: '›';
        font-size: 1.2rem;
    }
}


figure.wp-block-gallery.has-nested-images {
    justify-content: center;
}

.wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image) {
    width: 300px;
    max-width: 300px;
}


main.site-main .search-form {
    display: flex;
    align-items: center;
    justify-content: center;
} 

main.site-main .search-form .search-field {
    border: 1px solid #ccc;
    padding: 5px 10px;
}


/* === СТРАНИЦА ПОИСКА === */
.search-results-page {
    padding: 40px 0;
}

.search-results-page .page-header {
    margin-bottom: 40px;
    text-align: center;
}

.search-results-page .page-title {
    font-size: 32px;
    color: #333;
    margin-bottom: 10px;
}

.search-results-page .page-title span {
    color: #4a9eff;
    font-style: italic;
}

/* Фильтры поиска */
.search-filters {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
    border: 1px solid #e0e0e0;
}

.search-filters-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 150px;
}

.filter-group label {
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
    font-size: 14px;
}

.filter-group input,
.filter-group select {
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Classic Russian', 'Times New Roman', Times, serif;
    transition: border-color 0.3s ease;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #4a9eff;
    box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.1);
}

.filter-submit {
    background: linear-gradient(135deg, #4a9eff 0%, #1e88e5 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    height: fit-content;
}

.filter-submit:hover {
    background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
    transform: translateY(-1px);
}

/* Результаты поиска */
.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.search-result-item {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.search-result-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.search-result-content {
    display: flex;
    gap: 20px;
    padding: 25px;
}

.search-result-thumbnail {
    flex-shrink: 0;
    width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-result-thumbnail img {
    max-width: 100%;
    width: auto;
    height: 150px;
    border-radius: 4px;
}

.search-result-text {
    flex: 1;
}

.search-result-text .entry-title {
    margin: 0 0 15px 0;
    font-size: 24px;
    line-height: 1.3;
}

.search-result-text .entry-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.search-result-text .entry-title a:hover {
    color: #4a9eff;
}

.entry-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.entry-meta .posted-on {
    font-weight: 500;
}

.entry-meta .cat-links {
    color: #4a9eff;
    font-weight: 500;
}

.entry-summary {
    color: #555;
    line-height: 1.6;
}

.entry-summary p {
    margin: 0 0 10px 0;
}

/* Пагинация */
.search-pagination {
    margin-top: 40px;
    text-align: center;
}

.search-pagination .page-numbers {
    display: inline-flex;
    gap: 5px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.search-pagination .page-numbers li {
    margin: 0;
}

.search-pagination .page-numbers a,
.search-pagination .page-numbers span {
    display: block;
    padding: 10px 15px;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.search-pagination .page-numbers a:hover {
    background: #4a9eff;
    color: white;
    border-color: #4a9eff;
}

.search-pagination .page-numbers .current {
    background: #4a9eff;
    color: white;
    border-color: #4a9eff;
}

/* Нет результатов */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.no-results p {
    font-size: 16px;
    color: #666;
    margin-bottom: 15px;
}

/* Адаптивность для поиска */
@media (max-width: 768px) {
    .search-filters-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        min-width: auto;
    }
    
    .search-result-content {
        flex-direction: column;
        padding: 20px;
    }
    
    .search-result-thumbnail {
        width: 100%;
    }
    
    .search-result-thumbnail img {
        height: 200px;
    }
    
    .search-result-text .entry-title {
        font-size: 20px;
    }
    
    .entry-meta {
        flex-direction: column;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .search-results-page {
        padding: 20px 0;
    }
    
    .search-filters {
        padding: 20px;
    }
    
    .search-result-content {
        padding: 15px;
    }
    
    .search-result-text .entry-title {
        font-size: 18px;
    }
}

