/* =========================================================
   1. ГЛОБАЛЬНОЕ УДАЛЕНИЕ ФИОЛЕТОВОГО ЦВЕТА (#4d3bfe)
   ========================================================= */

::selection {
    background-color: #0d47a1 !important;
    color: #ffffff !important;
}

a, a:visited {
    color: #0d47a1 !important;
}

a:hover, a:focus, a:active {
    color: #d62828 !important;
}

.btn, 
.btn-primary, 
.btn-primary:hover, 
input[type="submit"], 
button[type="submit"] {
    background-color: #0d47a1 !important;
    border-color: #0d47a1 !important;
}

.btn:hover, 
.btn-primary:hover {
    background-color: #d62828 !important;
    border-color: #d62828 !important;
}

input:focus, 
textarea:focus, 
select:focus {
    border-color: #0d47a1 !important;
}

.pagination .nav-links .page-numbers.current,
.pagination .nav-links .page-numbers:hover {
    background-color: #0d47a1 !important;
    color: #ffffff !important;
}

/* =========================================================
   2. ОФОРМЛЕНИЕ САЙТА
   ========================================================= */

.site-main {
    padding-top: 40px !important;
    padding-bottom: 60px !important;
}

/* --- ШАПКА И МЕНЮ --- */
.site-header {
    background-color: #ffffff !important;
    border-bottom: 5px solid #d62828 !important;
    padding: 20px 0 !important;
}

.site-title a {
    color: #0a192f !important;
}

.site-description {
    color: #0d47a1 !important;
    margin-top: 5px !important;
}

.main-navigation {
    background-color: #0d47a1 !important;
    box-shadow: 0 4px 10px rgba(13, 71, 161, 0.2) !important;
}

.main-navigation ul li a,
.main-navigation ul li span {
    color: #ffffff !important;
    padding: 18px 25px !important;
    border-right: 1px solid rgba(255,255,255,0.1) !important;
    transition: background 0.2s ease !important;
}

.main-navigation ul li a:hover,
.main-navigation ul li span:hover {
    color: #ffffff !important;
    background-color: #d62828 !important;
}

/* --- ЗАГОЛОВОК СТАТЬИ (ПОДЛОЖКА ДЛЯ ЧИТАЕМОСТИ НА КАРТИНКАХ) --- */
h1.entry-title {
    background-color: rgba(10, 25, 47, 0.9) !important; /* Темно-синий, почти непрозрачный */
    color: #ffffff !important; /* Белый текст */
    padding: 25px 35px !important;
    margin: 20px 0 35px 0 !important;
    border-left: 8px solid #d62828 !important; /* Яркая красная полоса слева */
    border-bottom: none !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2) !important;
    display: inline-block !important; /* Обтекание блока ровно по тексту */
    max-width: 100% !important;
    backdrop-filter: blur(8px) !important; /* Эффект матового стекла */
    -webkit-backdrop-filter: blur(8px) !important;
    position: relative !important;
    z-index: 5 !important; /* Чтобы всегда быть поверх картинки */
}

.entry-meta {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
    padding: 15px 20px !important;
    margin-bottom: 40px !important;
    background: #ffffff !important;
    border-left: 5px solid #0d47a1 !important;
    color: #555555 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02) !important;
}

/* --- ЛИД (ВВОДНЫЙ ТЕКСТ) --- */
.entry-excerpt {
    color: #ffffff !important;
    padding: 30px 40px !important;
    margin-bottom: 45px !important;
    background: #0d47a1 !important; 
    border-left: 8px solid #d62828 !important;
    box-shadow: 0 10px 30px rgba(13, 71, 161, 0.15) !important;
}

/* --- КОНТЕНТ СТАТЬИ --- */
.entry-content p {
    margin-bottom: 25px !important;
    color: #222222 !important;
}

.entry-content h2 {
    margin-top: 55px !important;
    margin-bottom: 25px !important;
    color: #0a192f !important;
    padding-bottom: 15px !important;
    border-bottom: 4px solid #d62828 !important;
}

.entry-content h3 {
    margin-top: 45px !important;
    margin-bottom: 20px !important;
    color: #0d47a1 !important;
    border-left: 6px solid #d62828 !important;
    padding-left: 15px !important;
}

.entry-content h4 {
    margin-top: 35px !important;
    margin-bottom: 15px !important;
    color: #d62828 !important;
}

/* --- ЦИТАТЫ И ИЗОБРАЖЕНИЯ --- */
.entry-content blockquote {
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    border-top: 5px solid #0d47a1 !important;
    padding: 35px !important;
    margin: 45px 0 !important;
    color: #0a192f !important;
    box-shadow: 0 15px 30px rgba(0,0,0,0.05) !important;
}

.entry-content img {
    margin: 40px 0 !important;
    border: 4px solid #ffffff !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}

.entry-image---caption,
.wp-caption-text {
    display: block !important;
    text-align: center !important;
    margin: 15px auto 40px auto !important;
    width: 100% !important;
    color: #666666 !important;
}

/* --- ТЕГИ --- */
.entry-tags {
    margin-top: 50px !important;
    margin-bottom: 50px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
}

.entry-tags a {
    background: #0a192f !important;
    color: #ffffff !important;
    padding: 10px 20px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 4px 10px rgba(10, 25, 47, 0.2) !important;
}

.entry-tags a:hover {
    background: #d62828 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 15px rgba(214, 40, 40, 0.3) !important;
}

/* --- САЙДБАР --- */
.widget-area .widget {
    background: #ffffff !important;
    border: none !important;
    border-top: 5px solid #d62828 !important;
    padding: 30px !important;
    margin-bottom: 35px !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05) !important;
}

.widget-area .widget-header {
    margin-bottom: 25px !important;
    padding-bottom: 15px !important;
    border-bottom: 1px solid #e0e0e0 !important;
    color: #0a192f !important;
}

.widget-area .post-card {
    border: none !important;
    border-bottom: 1px solid #f0f0f0 !important;
    padding: 20px 0 !important;
    margin-bottom: 0 !important;
    background: transparent !important;
}

.widget-area .post-card__title a {
    color: #0a192f !important;
    transition: color 0.2s ease !important;
}

.widget-area .post-card__title a:hover {
    color: #d62828 !important;
}

.widget-area .menu-item a,
.widget-area .widget_archive ul li a {
    padding: 15px 0 !important;
    display: block !important;
    border-bottom: 1px solid #f0f0f0 !important;
    text-decoration: none !important;
    color: #0a192f !important;
    transition: color 0.2s ease, padding-left 0.2s ease !important;
}

.widget-area .menu-item a:hover,
.widget-area .widget_archive ul li a:hover {
    padding-left: 15px !important;
    color: #d62828 !important;
}

/* --- АРХИВЫ (КАРТОЧКИ В РУБРИКАХ) --- */
.archive .post-card--horizontal {
    background-color: #ffffff !important;
    padding: 40px !important;
    margin-bottom: 25px !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.04) !important;
    border-left: 5px solid transparent !important;
    transition: all 0.3s ease !important;
}

.archive .post-card--horizontal:hover {
    border-left: 5px solid #d62828 !important;
    transform: translateX(5px) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08) !important;
}

.archive .post-card--horizontal .post-card__title a {
    color: #0a192f !important;
}

.archive .post-card--horizontal .post-card__title a:hover {
    color: #0d47a1 !important;
}

.archive .post-card--horizontal .post-card__description {
    color: #444444 !important;
    margin-top: 15px !important;
}

/* --- БЛОК ПОХОЖИХ ЗАПИСЕЙ --- */
#related-posts {
    background: #ffffff !important;
    padding: 40px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05) !important;
    margin-top: 50px !important;
    border-top: 5px solid #0d47a1 !important;
}

#related-posts .related-posts__header {
    margin-bottom: 30px !important;
    color: #0a192f !important;
    border-bottom: 2px solid #e0e0e0 !important;
    padding-bottom: 15px !important;
}

#related-posts .post-card--related {
    border: none !important;
    border-bottom: 1px dashed #ccc !important;
    padding: 20px 0 !important;
    background: transparent !important;
}

/* --- RSS БЛОК --- */
.rss-snippet-box {
    display: flex !important;
    flex-direction: row !important;
    gap: 30px !important;
    align-items: center !important;
    background: #ffffff !important;
    padding: 30px !important;
    border-left: 6px solid #d62828 !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08) !important;
    margin: 50px 0 !important;
}

.rss-snippet-box img {
    width: auto !important;
    max-width: 200px !important;
    height: auto !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    border: 2px solid #f0f0f0 !important;
}

.rss-snippet-title {
    margin: 0 0 15px 0 !important;
}

.rss-snippet-title a {
    text-decoration: none !important;
    color: #0a192f !important;
}

.rss-snippet-title a:hover {
    color: #d62828 !important;
}

/* --- ПОДВАЛ --- */
.site-footer {
    background-color: #0a192f !important;
    color: #ffffff !important;
    padding: 60px 0 !important;
    margin-top: 80px !important;
    border-top: 6px solid #d62828 !important;
}

.footer-info a {
    color: #ffffff !important;
    text-decoration: none !important;
    border-bottom: 1px solid #0d47a1 !important;
}

.footer-info a:hover {
    color: #d62828 !important;
    border-color: #d62828 !important;
}

/* --- ГЛАВНАЯ СТРАНИЦА --- */
body.home .site-main {
    padding-top: 50px !important;
}

body.home .home-content {
    background: #0a192f !important;
    color: #ffffff !important;
    padding: 60px 50px !important;
    margin-bottom: 60px !important;
    border-left: 10px solid #d62828 !important;
    box-shadow: 0 20px 40px rgba(10, 25, 47, 0.2) !important;
}

body.home .home-header {
    color: #ffffff !important;
    margin-bottom: 20px !important;
}

body.home .home-text {
    color: #a0aec0 !important;
    max-width: 800px !important;
}

body.home .section-block__header {
    border-bottom: 4px solid #0a192f !important;
    margin-bottom: 35px !important;
    padding-bottom: 15px !important;
}

body.home .section-block__title {
    color: #0a192f !important;
}

body.home .post-cards--horizontal {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 30px !important;
}

body.home .post-card--horizontal {
    display: flex !important;
    flex-direction: column !important;
    background: #ffffff !important;
    padding: 35px !important;
    margin: 0 !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05) !important;
    border-left: 5px solid transparent !important;
    transition: all 0.3s ease !important;
}

body.home .post-card--horizontal:hover {
    border-left: 5px solid #d62828 !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important;
}

body.home .post-card--horizontal .post-card__title a {
    color: #0a192f !important;
}

body.home .post-card--horizontal:hover .post-card__title a {
    color: #0d47a1 !important;
}

body.home .post-card--horizontal .post-card__description {
    color: #444444 !important;
    margin-top: 15px !important;
}

body.home .post-card--horizontal .post-card__meta {
    margin-top: auto !important;
    padding-top: 20px !important;
    border-top: 1px solid #e0e0e0 !important;
    color: #666666 !important;
}

@media (max-width: 992px) {
    body.home .post-cards--horizontal {
        grid-template-columns: 1fr !important;
    }
}