/* --- 1. ЛОГОТИП И ШАПКА --- */
#header-left-section {
    float: none !important;
    text-align: center !important;
    width: 100% !important;
    display: block !important;
}

.custom-logo-link {
    display: inline-block !important;
    margin: 0 auto !important;
}

.custom-logo {
    display: block !important;
    margin: 0 auto !important;
    max-width: 280px !important;
    height: auto !important;
}

#masthead { 
    background: #fff !important; 
    padding: 20px 0 !important; 
    border-bottom: 4px solid #0056b3 !important; 
}

/* --- 2. ЕДИНЫЙ СТИЛЬ БЛОКОВ 1XBET (Меню, Оглавление, Виджеты) --- */
.menu-primary-container,
#ez-toc-container.ez-toc-v2_0_17,
.widget_categories, 
.widget_recent_entries {
    width: 100% !important;
    max-width: 900px !important;
    margin: 25px auto !important;
    background: linear-gradient(145deg, #0d1b2a, #1b263b) !important;
    border: 2px solid #0056b3 !important;
    border-radius: 12px !important;
    padding: 25px !important;
    box-sizing: border-box !important;
    text-align: center !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
}

/* Общие заголовки внутри темных блоков */
#ez-toc-container .ez-toc-title, 
.widget-title {
    color: #ffffff !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    margin-bottom: 20px !important;
    display: block !important;
}

/* Центрирование всех списков кнопок */
.menu-primary-container ul,
#ez-toc-container nav ul,
.widget_categories ul, 
.widget_recent_entries ul {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important; 
    gap: 12px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Единый стиль кнопок */
.menu-primary-container ul li a,
#ez-toc-container nav ul li a,
.widget_categories ul li a, 
.widget_recent_entries ul li a {
    display: inline-block !important;
    background: #1e3a5f !important;
    color: #ffffff !important;
    padding: 10px 20px !important;
    border-radius: 50px !important;
    border: 1px solid #2c5282 !important;
    transition: 0.3s ease !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

/* Hover-эффект для всех кнопок */
.menu-primary-container ul li a:hover,
#ez-toc-container nav ul li a:hover,
.widget_categories ul li a:hover, 
.widget_recent_entries ul li a:hover {
    background: #0056b3 !important;
    border-color: #3182ce !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(0, 86, 179, 0.4) !important;
}

/* --- 3. ФИКСЫ И КОРРЕКТИРОВКИ --- */

/* Центрирование Mobil Bahis */
#ez-toc-container nav ul li:has(a[href*="Mobil_Bahis"]) {
    flex-basis: 100% !important;
    display: flex !important;
    justify-content: center !important;
}

/* Убираем маркеры везде */
li::before, .widget ul li::before { display: none !important; }

/* --- 4. КОНТЕНТ (ЦЕНТРИРОВАНИЕ) --- */
#main { background-color: #f8fafc !important; }

.entry-content { 
    text-align: center !important; 
    font-size: 17px !important; 
    color: #334155 !important; 
}

.entry-content h2 { 
    border-bottom: 3px solid #f1f5f9 !important; 
    padding-bottom: 15px !important; 
    position: relative; 
    margin: 45px 0 20px 0 !important;
}

.entry-content h2::after { 
    content: ""; 
    position: absolute; 
    bottom: -3px; 
    left: 50%; 
    transform: translateX(-50%); 
    width: 70px; 
    height: 3px; 
    background: #0056b3; 
}

.entry-content ul, .entry-content ol { 
    display: inline-block !important; 
    text-align: left !important; 
    background: #ffffff !important; 
    padding: 25px 40px !important; 
    border-radius: 12px !important; 
    border: 1px solid #e2e8f0 !important; 
    margin: 20px auto !important; 
}

.entry-content table { 
    margin: 30px auto !important; 
    min-width: 70% !important; 
    border-collapse: collapse !important; 
}

.entry-content table th { background: #0056b3 !important; color: #fff !important; padding: 12px; }

/* --- 5. ФУТЕР --- */
#colophon { 
    background: #111821 !important; 
    color: #eee !important; 
    padding: 50px 0 !important; 
    border-top: 5px solid #0056b3 !important; 
    text-align: center !important; 
}
.copyright span { color: #fff !important; font-weight: 700; }
.copyright a { color: #3498db !important; }
/* КЛАСС ДЛЯ ТЕКСТОВЫХ БЛОКОВ В СТИЛЕ 1XBET */
.one-xbet-text-block {
    background: linear-gradient(145deg, #0d1b2a, #162436) !important;
    border: 1px solid #1e3a5f !important;
    border-left: 4px solid #0056b3 !important; /* Акцентная синяя полоса слева */
    border-radius: 8px !important;
    padding: 25px !important;
    margin: 30px auto !important;
    max-width: 1000px !important;
    
    /* Настройка шрифта */
    color: #e0e6ed !important;
    font-size: 16px !important;
    line-height: 1.8 !important;
    text-align: justify !important; /* Ровные края текста */
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
    
    /* Эффект объема */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3) !important;
}

/* Подсветка ключевых слов 1xbet внутри блока */
.one-xbet-text-block strong, 
.one-xbet-text-block b {
    color: #007bff !important;
    font-weight: 800 !important;
}

/* Ссылки внутри текста */
.one-xbet-text-block a {
    color: #4dabff !important;
    text-decoration: underline !important;
    transition: 0.3s !important;
}

.one-xbet-text-block a:hover {
    color: #ffffff !important;
}