/*
Theme Name: Slotsthemetop
Theme URI: 
Author: Your Name
Author URI: 
Description: A lightweight WordPress theme for slot games like Solar Queen with fast loading and SEO optimization
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: slotsthemetop
*/

/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primary Colors - Customizable */
    --primary-color: #8a2be2;       /* Purple - Default */
    --secondary-color: #ffd700;     /* Gold - Default */
    --accent-color: #ff6b6b;        /* Coral Red - Default */
    --text-color: #333333;          /* Dark Gray - Default */
    --bg-color: #f5f5f5;            /* Light Gray - Default */
    --card-bg: #ffffff;             /* White - Default */
    --footer-bg: #222222;           /* Dark Gray - Default */
    --footer-text: #ffffff;         /* White - Default */
    
    /* Convert to RGB for opacity variations */
    --primary-color-rgb: 138, 43, 226;
    --secondary-color-rgb: 255, 215, 0;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    padding-top: 80px; /* Adjust this value based on your header height */
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Accessibility */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

.skip-link {
    left: -9999rem;
    top: 2.5rem;
    z-index: 999999999;
    text-decoration: underline;
}

.skip-link:focus {
    left: 6px;
    top: 7px;
    z-index: 100000;
    text-decoration: underline;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--header-color, #ffffff);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    padding: 1rem 0;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
}

.site-branding {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    min-width: 0; /* Предотвращает переполнение */
}

.site-title {
    font-size: 1.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0; /* Предотвращает переполнение */
    flex: 1;
}

.site-title a {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Navigation - Base Styles */
.main-navigation ul {
    display: flex;
    list-style: none;
}

.main-navigation li {
    margin-left: 20px;
}

.main-navigation a {
    color: var(--text-color);
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: block;
    position: relative;
    padding: 6px 12px;
}

/* Standard Menu Style (Default) */
.main-navigation a:hover,
.main-navigation a:focus,
.main-navigation .current-menu-item a {
    color: #fff;
    background-color: var(--primary-color);
}

/* Rounded Menu Style */
body.menu-rounded .main-navigation a {
    border-radius: 5px;
}

body.menu-rounded .main-navigation a:hover,
body.menu-rounded .main-navigation a:focus,
body.menu-rounded .main-navigation .current-menu-item a {
    border-radius: 5px;
}

/* Underline Menu Style */
body.menu-underline .main-navigation a {
    padding: 6px 0;
    margin: 0 12px;
    border-bottom: 2px solid transparent;
}

body.menu-underline .main-navigation a:hover,
body.menu-underline .main-navigation a:focus,
body.menu-underline .main-navigation .current-menu-item a {
    background-color: transparent;
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

/* Pill Menu Style */
body.menu-pill .main-navigation a {
    border-radius: 30px;
    padding: 6px 15px;
}

body.menu-pill .main-navigation a:hover,
body.menu-pill .main-navigation a:focus,
body.menu-pill .main-navigation .current-menu-item a {
    border-radius: 30px;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-icon {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    position: relative;
    transition: background-color 0.3s;
}

.menu-icon::before,
.menu-icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    transition: transform 0.3s;
}

.menu-icon::before {
    top: -8px;
}

.menu-icon::after {
    bottom: -8px;
}

.menu-toggle[aria-expanded="true"] .menu-icon {
    background-color: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-icon::before {
    transform: rotate(45deg); 
    top: 0;
}

.menu-toggle[aria-expanded="true"] .menu-icon::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* Hero Section */
.hero-section {
    background-color: var(--primary-color);
    color: #fff;
    margin-top: 90px; /* или больше, если шапка больше — можно 120px */
    text-align: center;
    background-size: cover;
    background-position: center;
    position: relative;
}
.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 1.8rem;
    margin-bottom: 0rem;
}

.hero-section p {
    font-size: 1rem;
    max-width: 800px;
    margin: 0 auto 1rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--secondary-color);
    color: var(--text-color);
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
}

.btn:hover {
    background-color: var(--accent-color);
    color: #fff;
    text-decoration: none;
}

/* Page Header */
.page-header {
    background-color: var(--primary-color);
    color: #fff;
    padding: 2rem 0;
    text-align: center;
    margin-top: 120px;
}

.page-header h1 {
    margin-bottom: 0.5rem;
}

.breadcrumbs {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumbs a {
    color: #fff;
}

/* Main Content */
.site-main {
    padding: 2rem 0;
}

.entry-header {
    margin-bottom: 1.5rem;
}

.entry-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.entry-content {
    margin-bottom: 2rem;
}

.entry-content h2 {
    font-size: 1.8rem;
    margin: 1.5rem 0 1rem;
    color: var(--primary-color);
}

.entry-content h3 {
    font-size: 1.5rem;
    margin: 1.2rem 0 0.8rem;
    color: var(--primary-color);
}

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

.entry-content ul, 
.entry-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

/* Enhanced List Styles */
.entry-content ul li,
.entry-content ol li {
    margin-bottom: 10px;
    position: relative;
}

.entry-content ul li::marker,
.entry-content ol li::marker {
    color: var(--primary-color);
    font-weight: bold;
}

/* Custom Icon List Style */
body.list-custom-icon .entry-content ul {
    list-style: none;
    margin-left: 0;
    padding-left: 1.2em;
}

body.list-custom-icon .entry-content ul li {
    padding-left: 2em;
}

body.list-custom-icon .entry-content ul li::before {
    content: "➤";
    color: var(--list-marker-color);
    font-weight: bold;
    display: inline-block;
    width: 1.2em;
    margin-left: -1.2em;
}

/* Checkmark List Style */
body.list-checked .entry-content ul {
    list-style: none;
    margin-left: 0;
    padding-left: 1.5em;
}

body.list-checked .entry-content ul li {
    padding-left: 0.5em;
}

body.list-checked .entry-content ul li::before {
    content: "✓";
    color: var(--list-marker-color);
    font-weight: bold;
    display: inline-block;
    width: 1.5em;
    margin-left: -1.5em;
}

/* Boxed List Style */
body.list-boxed .entry-content ul,
body.list-boxed .entry-content ol {
    list-style: none;
    margin-left: 0;
    counter-reset: item;
}

body.list-boxed .entry-content ul li,
body.list-boxed .entry-content ol li {
    margin-bottom: calc(var(--list-item-spacing) * 1.5);
    background-color: rgba(var(--primary-color-rgb), 0.05);
    padding: 12px 15px;
    border-radius: 6px;
    border-left: 3px solid var(--list-marker-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.list-boxed .entry-content ul li:hover,
body.list-boxed .entry-content ol li:hover {
    transform: translateX(3px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

body.list-boxed .entry-content ol li:before {
    content: counter(item) ". ";
    counter-increment: item;
    font-weight: bold;
    color: var(--list-marker-color);
    margin-right: 5px;
}

/* Tables */
table {
    margin: 0 auto 1.5rem !important;
    width: 100% !important;
    border-collapse: collapse !important;
    text-align: center !important;
}

th, td {
    padding: 0.75rem !important;
    text-align: left !important;
    border: 1px solid var(--table-border-color, #dddddd) !important;
}

th {
    background-color: var(--table-header-bg-color, #f0e6ff) !important;
    color: var(--table-header-text-color, #333333) !important;
    font-weight: bold !important;
}

/* Table Style Presets */
/* Standard (default) has styling above */

/* Bordered Table Style */
body.table-bordered table {
    border-width: 2px !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

body.table-bordered th, 
body.table-bordered td {
    border-width: 2px !important;
}

/* Striped Table Style */
body.table-striped table tr:nth-child(even) {
    background-color: var(--table-alternate-row-color, #f9f9f9) !important;
}

body.table-striped th {
    border-bottom: 3px solid var(--table-border-color, #dddddd) !important;
}

/* Modern Table Style */
body.table-modern table {
    border: none !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

body.table-modern th {
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    font-size: 0.9em !important;
    border: none !important;
    border-bottom: 2px solid var(--accent-color, #ff6b6b) !important;
}

body.table-modern td {
    border: none !important;
    border-bottom: 1px solid var(--table-border-color, #dddddd) !important;
}

body.table-modern tr:last-child td {
    border-bottom: none !important;
}

body.table-modern tr:hover {
    background-color: rgba(var(--primary-color-rgb, 0, 123, 255), 0.05) !important;
}

/* Sidebar */
.widget-area {
    background-color: var(--card-bg);
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    border-radius: 8px;
}

.widget-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
    color: var(--primary-color);
}

/* Footer */
.site-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 2rem 0;
    text-align: center;
}

.footer-navigation ul {
    display: flex;
    justify-content: center;
    list-style: none;
    margin-bottom: 1rem;
}

.footer-navigation li {
    margin: 0 1rem;
}

.footer-navigation a {
    color: var(--footer-text);
}

.footer-widgets-area {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-bottom: 2rem;
}

.footer-widget {
    flex: 1 1 300px;
    margin: 0 1rem 1rem;
    text-align: left;
}

.footer-widget-title {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-info {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Media Queries */
@media screen and (max-width: 768px) {
    body {
        padding-top: 120px !important; /* увеличенный отступ под увеличенный хедер */
    }
    .site-header {
        min-height: 110px;
        padding: 0.5rem 0;
    }
    .custom-logo,
    .custom-logo-link img {
        max-width: 110px;
        max-height: 55px;
    }
    .site-branding {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        width: 100%;
    }
    
    .site-title {
        flex-direction: column;
        text-align: center;
        width: 100%;
    }
    
    .site-header .container {
        flex-direction: column;
        align-items: center;
    }
    
    .header-buttons {
        flex-direction: column;
        gap: 8px;
        margin: 0 auto;
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }
    
    .header-buttons .btn {
        display: inline-block;
        text-align: center;
        white-space: nowrap;
        margin: 0 auto;
    }
    
    .menu-toggle {
        display: block;
        position: absolute;
        right: 15px;
        top: 15px;
        z-index: 1001;
    }
    
    .main-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.85);
        backdrop-filter: blur(6px);
        z-index: 1000;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
        display: none;
    }
    
    .main-navigation.toggled {
        display: block;
    }
    
    .main-navigation ul {
        flex-direction: column;
        padding: 1rem 0;
        background: transparent;
    }
    
    .main-navigation li {
        margin: 0;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .main-navigation li:last-child {
        border-bottom: none;
    }
    
    .main-navigation a {
        display: block;
        padding: 0.8rem 1rem;
        color: #fff;
        font-size: 16px;
    }
    
    .main-navigation a:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: var(--secondary-color);
        text-decoration: none;
    }
    
    .hero-section {
        padding: 0.3rem 0 0.3rem 0;
        max-height: 320px;
        overflow: hidden;
        position: relative;
    }
    .hero-section h1 {
        font-size: 1.25rem;
        margin-bottom: 0.4rem;
        font-weight: 900;
        color: #fff;
        position: relative;
        z-index: 2;
        text-align: center;
        text-shadow: 0 2px 8px #000, 0 0 2px #fff;
        padding: 0.2em 0.5em;
    }
    .hero-section h1::before {
        content: '';
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 110%;
        height: 140%;
        background: rgba(0,0,0,0.55);
        border-radius: 8px;
        z-index: -1;
    }
    .hero-section p {
        font-size: 0.92rem;
        margin-bottom: 0.5rem;
        color: #fff;
        text-shadow: 0 1px 4px #000;
        background: rgba(0,0,0,0.35);
        border-radius: 6px;
        padding: 0.3em 0.5em;
        display: inline-block;
        max-width: 98%;
    }
    .action-buttons {
        margin: 0.5rem 0 0 0;
        gap: 6px;
    }
    .action-buttons .btn {
        padding: 0.35rem 0.5rem;
        font-size: 0.92rem;
        min-width: 90px;
        border-radius: 4px;
    }
    
    .footer-navigation ul {
        flex-direction: column;
    }
    
    .footer-navigation li {
        margin: 0.5rem 0;
    }
    
    .slot-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .page-header {
        margin-top: 130px;
    }
    .action-buttons .btn {
        max-width: 220px;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        display: block;
    }
}

/* Game Features Section */
.game-features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 2rem 0;
}

.feature-box {
    flex: 1 1 300px;
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feature-box h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Casino/Slot List */
.casino-list, .slot-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 2rem 0;
}

.casino-card, .slot-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.casino-card:hover, .slot-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.casino-card h3, .slot-card h3 {
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Pros & Cons */
.pros-cons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 2rem 0;
}

.pros, .cons {
    flex: 1 1 300px;
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.pros h3 {
    color: #4CAF50;
}

.cons h3 {
    color: #F44336;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.action-button {
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    display: inline-block;
}

.action-button:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.action-button.secondary {
    background-color: var(--secondary-color);
    color: var(--text-color);
}

/* FAQ Section */
.faq-section {
    margin: 2rem 0;
}

.faq-item {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
}

.faq-question {
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    cursor: pointer;
    position: relative;
    padding-right: 30px;
}

.faq-question::after {
    content: "+";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s;
}

.faq-question.active::after {
    content: "-";
}

.faq-answer {
    display: none;
}

/* Slot Game Specifics - for Solar Queen and others */
.slot-info {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

.slot-featured-image {
    text-align: center;
    margin-bottom: 2rem;
}

.slot-featured-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.slot-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 1.5rem 0;
}

.slot-stat {
    flex: 1 1 150px;
    text-align: center;
    padding: 1rem;
    margin: 0.5rem;
    background-color: rgba(var(--secondary-color-rgb), 0.1);
    border-radius: 5px;
}

.slot-stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.slot-stat-label {
    color: var(--text-color);
    font-size: 0.9rem;
}

.slot-features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin: 1.5rem 0;
}

.slot-feature-item {
    background-color: rgba(var(--primary-color-rgb), 0.05);
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
}

/* Related Slots */
.related-slots {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Optimizations for SEO and Page Speed */
img {
    max-width: 100%;
    height: auto;
}

/* Print styles */
@media print {
    .site-header, .site-footer, .action-buttons {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .container {
        max-width: 100%;
        width: 100%;
    }
} 
.action-buttons {
    display: flex;
    justify-content: center;
	gap: 84px;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.action-buttons .btn {
    min-width: 140px;
    padding: 0.8rem 1.6rem;
    border: 2px solid #ffff;
    background-color: var(--secondary-color);
    color: var(--text-color);
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 6px;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.action-buttons .btn:hover {
    background-color: var(--accent-color);
    color: #fff;
    transform: translateY(-2px);
    text-decoration: none;
}

/* WordPress Navigation Block styles */
.wp-block-navigation__responsive-container.is-menu-open {
    background-color: var(--header-bg-color, #1a1a1a) !important;
    color: #ffffff !important;
}

.wp-block-navigation:not(.has-background) .wp-block-navigation__responsive-container.is-menu-open {
    background-color: var(--header-bg-color, #1a1a1a) !important;
    color: #ffffff !important;
}
@media (max-width: 768px) {
  .main-navigation.toggled {
    background-color: rgba(0, 0, 0, 0.85); /* 👈 тёмная подложка */
    backdrop-filter: blur(6px);            /* 👈 лёгкое размытие задника */
  }

  .main-navigation ul {
    background: transparent;
  }

  .main-navigation li a {
    color: #fff;
    padding: 1rem;
    display: block;
    text-align: center;
  }

  .main-navigation li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--secondary-color);
  }
}
.header-buttons {
    display: flex;
    gap: 12px;
    margin-left: auto;
}

.header-buttons .btn {
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
}

.login-btn {
    background-color: var(--primary-color);
    color: #fff;
}

.register-btn {
    background-color: var(--secondary-color);
    color: #000;
}

.login-btn:hover {
    background-color: var(--accent-color);
    color: #fff;
}

.register-btn:hover {
    background-color: var(--primary-color);
    color: #fff;
}
.menu-toggle[aria-expanded="false"] .menu-icon {
    background-color: transparent;
}
/* Мобильная кнопка-гамбургер */
.mobile-menu-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 2px;
    width: 100%;
    transition: all 0.3s ease;
}

/* Скрыть гамбургер-кнопку на десктопе */
@media screen and (min-width: 769px) {
    .mobile-menu-toggle {
        display: none !important;
    }
}

/* Убрать "точку" при скрытом состоянии */
.mobile-menu-toggle[aria-expanded="false"] span {
    background-color: transparent;
}

/* Исправление обрезанного блока */
.register-btn:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Удаление дубликатов и багов */

/* Admin bar compatibility for sticky header */
.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

@media screen and (max-width: 600px) {
    .admin-bar .site-header {
        top: 0;
    }
    
    body {
        padding-top: 60px; /* Adjust for smaller mobile header */
    }
}

/* Дополнительные стили для оформления текста */

/* Выделенный текст */
.highlight, mark {
    background: rgba(255, 215, 0, 0.25); /* Золотистое, но полупрозрачное */
    padding: 0 5px;
    border-radius: 3px;
}

.highlight-box {
    border: 1px solid #ddd;
    background: #f9f9f9;
    padding: 2px 8px;
    border-radius: 3px;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.05);
}

.highlight-badge {
    background: var(--primary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.9em;
    display: inline-block;
}

.highlight-underline {
    background: transparent;
    border-bottom: 2px solid var(--accent-color);
    padding: 0 2px;
}

/* Градиентный текст */
.text-gradient {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Информационные блоки */
.callout {
    background: #f8f9fa;
    border-left: 4px solid var(--primary-color);
    padding: 1.25rem;
    margin: 1.5rem 0;
    border-radius: 0 4px 4px 0;
}

.callout-title {
    font-weight: bold;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.callout-title .dashicons {
    margin-right: 0.5rem;
}

.callout-info {
    border-color: #17a2b8;
}

.callout-warning {
    border-color: #ffc107;
    background-color: #fff3cd;
}

.callout-success {
    border-color: #28a745;
    background-color: #d4edda;
}

.callout-error {
    border-color: #dc3545;
    background-color: #f8d7da;
}

.callout-note {
    border-color: #6c757d;
    background-color: #e9ecef;
}

/* Цитаты */
.custom-quote {
    margin: 1.5em 0;
}

.quote-modern {
    border-left: 4px solid var(--primary-color);
    padding: 1em 1.5em;
    background-color: #f9f9f9;
    font-style: italic;
}

.quote-modern .quote-author {
    display: block;
    margin-top: 1em;
    font-size: 0.9em;
    font-weight: bold;
    color: #666;
}

.quote-box {
    border: 2px solid #eee;
    border-radius: 5px;
    padding: 1.5em;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.quote-accent {
    border-top: 3px solid var(--accent-color);
    border-bottom: 3px solid var(--accent-color);
    padding: 1.5em;
    text-align: center;
    font-style: italic;
    font-size: 1.1em;
}

/* Типографские элементы */
.dropcap {
    float: left;
    font-size: 3em;
    line-height: 0.8;
    padding-right: 0.1em;
    padding-top: 0.1em;
    color: var(--primary-color);
}

.text-lead {
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 1.5em;
    color: #555;
}

/* Анимированный текст */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-text {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

/* Пользовательские списки */
ul.custom-list {
    list-style: none;
    padding-left: 1.5em;
}

ul.custom-list li {
    position: relative;
    padding-left: 1.5em;
    margin-bottom: 0.5em;
}

ul.custom-list li:before {
    content: "✓";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

ul.custom-list.check li:before {
    content: "✓";
}

ul.custom-list.arrow li:before {
    content: "→";
}

ul.custom-list.star li:before {
    content: "★";
}

/* Декоративные подчеркивания */
.underline-fancy {
    position: relative;
    display: inline-block;
}

.underline-fancy:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

.underline-dots {
    position: relative;
    display: inline-block;
}

.underline-dots:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100%;
    height: 3px;
    background-image: radial-gradient(circle, var(--primary-color) 1px, transparent 1px);
    background-size: 6px 6px;
}

/* Адаптивная типографика */
@media (max-width: 768px) {
    .dropcap {
        font-size: 2.5em;
    }
    
    .text-lead {
        font-size: 1.1em;
    }
    
    .callout {
        padding: 1rem;
    }
}


@media screen and (min-width: 769px) {
    .entry-content ul,
    .entry-content ol {
        margin-left: auto;
        margin-right: auto;
        max-width: 600px;
        padding-left: 1.5em;
        list-style-position: outside;
        text-align: left;
        display: block;
    }
    .entry-content ul {
        list-style-type: disc;
    }
    .entry-content ol {
        list-style-type: decimal;
    }
    .entry-content ul li::marker,
    .entry-content ol li::marker {
        color: var(--primary-color, #8a2be2);
        font-weight: bold;
        font-size: 1.2em;
    }
    .entry-content {
        text-align: center;
    }
}
.entry-content ul,
.entry-content ol {
    list-style-position: inside;
    margin: 0 auto 1rem auto;
    padding-left: 0;
    width: fit-content;
    text-align: left;
}

.entry-content ul {
    list-style-type: disc;
}

.entry-content ol {
    list-style-type: decimal;
}
.entry-content ul, .entry-content ol {
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 1rem !important;
    margin-inline: auto !important; /* Центрирование по горизонтали */
    padding-left: 0 !important;
    width: fit-content !important;
    list-style-position: inside !important;
    text-align: left !important;
}
.entry-content table,
.wp-block-table {
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 1em;
    margin-bottom: 2em;
    width: 100% !important;
    max-width: 100%;
    display: table;
}
.entry-content ol,
.entry-content ol li,
.entry-content ol li::marker {
    font-family: inherit; /* для шрифта, если нужно */
}
.entry-content ol li::marker {
    /* Не задаём цвет здесь — пусть WP ставит свой */
}
.entry-content ul li::marker,
.entry-content ol li::marker {
  color: unset !important;
}
.entry-content ol {
    list-style: none; /* убираем стандартные маркеры */
    counter-reset: ol-counter; /* сброс счётчика */
}

.entry-content ol li {
    counter-increment: ol-counter; /* увеличиваем счётчик */
    position: relative; /* для позиционирования ::before */
    padding-left: 2em; /* отступ под цифры */
}

.entry-content ol li::before {
    content: counter(ol-counter) "."; /* цифра с точкой */
    position: absolute;
    left: 0;
    color: var(--list-marker-color); /* цвет из переменной */
    font-weight: bold;
    width: 1.5em;
    text-align: right;
}
.language-switcher-dropdown select {
    background-color: #000000;
    color: #fff;
    border: 1px solid #555;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}
.header-buttons {
    display: flex;
    align-items: center;
    gap: 10px; /* расстояние между кнопками */
}
}
.language-switcher-dropdown {
	margin-left: 220px;
}

.custom-language-dropdown {
    position: relative;
    display: inline-block;
    margin-left: 15px;
}

.lang-dropdown-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    padding: 8px 12px;
    color: black;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-dropdown-btn img {
    width: 20px;
    height: 15px;
    object-fit: cover;
}

.lang-dropdown-list {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--header-bg-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 10px 0;
    margin: 5px 0 0;
    list-style: none;
    width: max-content;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.custom-language-dropdown:hover .lang-dropdown-list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown-list li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    color: white;
    text-decoration: none;
    transition: background 0.2s;
}

.lang-dropdown-list li a:hover {
    background: rgba(255, 255, 255, 0.1);
}
.main-navigation ul#primary-menu {
    display: flex;
    list-style: none;
    justify-content: center;
    gap: var(--menu-item-spacing, 20px);
}

.main-navigation ul#primary-menu li a {
    color: var(--menu-text-color, #333333) !important;
    font-size: var(--menu-font-size, 16px);
    font-weight: 500;
    padding: 8px 15px;
    border-radius: var(--menu-border-radius, 4px);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.main-navigation ul#primary-menu li a:hover,
.main-navigation ul#primary-menu li a:focus,
.main-navigation ul#primary-menu li.current-menu-item a {
    color: var(--menu-hover-text-color, #ffffff) !important;
    background-color: var(--menu-hover-bg-color, #8a2be2) !important;
}

/* Стили для пресетов меню */
.menu-style-standard .main-navigation ul#primary-menu li a {
    border-radius: 4px;
}

.menu-style-rounded .main-navigation ul#primary-menu li a {
    border-radius: 20px;
}

.menu-style-pill .main-navigation ul#primary-menu li a {
    border-radius: 50px;
    padding: 8px 20px;
}

.menu-style-underline .main-navigation ul#primary-menu li a {
    border-bottom: 2px solid transparent;
    background: transparent !important;
}

.menu-style-underline .main-navigation ul#primary-menu li a:hover,
.menu-style-underline .main-navigation ul#primary-menu li.current-menu-item a {
    border-bottom-color: var(--menu-hover-bg-color, #8a2be2);
    background: transparent !important;
}

/* Мобильные стили */
@media screen and (max-width: 768px) {
    .main-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.85);
        backdrop-filter: blur(6px);
        z-index: 1000;
        display: none;
    }

    .main-navigation.toggled {
        display: block;
    }

    .main-navigation ul#primary-menu {
        flex-direction: column;
        padding: 1rem 0;
    }

    .main-navigation ul#primary-menu li {
        margin: 0;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-navigation ul#primary-menu li:last-child {
        border-bottom: none;
    }

    .main-navigation ul#primary-menu li a {
        color: #ffffff !important;
        padding: 0.8rem 1rem;
    }

    .main-navigation ul#primary-menu li a:hover,
    .main-navigation ul#primary-menu li.current-menu-item a {
        background-color: rgba(255, 255, 255, 0.1) !important;
        color: var(--menu-hover-text-color, #ffffff) !important;
    }
}

.hero-section {
    padding: 5rem 0;
    background-size: cover;
    background-position: center;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.hero-description {
    max-width: 800px;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
/* МОБИЛЬНАЯ ВЕРСИЯ (до 768px) */
@media screen and (max-width: 768px) {
  /* Центрирование всего контента */
  .entry-content {
    text-align: center;
    max-width: 100%;
    padding: 0 15px;
  }
  
  /* Дополнительные элементы для центрирования */
  .entry-content > * {
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
  }
}
/* ========== ОСНОВНЫЕ СТИЛИ ТАБЛИЦ ========== */
table {
    margin: 0 auto 1.5rem !important;
    width: 100% !important;
    border-collapse: collapse !important;
    text-align: center !important;
}

th, td {
    padding: 0.75rem !important;
    text-align: left !important;
    border: 1px solid var(--table-border-color, #dddddd) !important;
}

th {
    background-color: var(--table-header-bg-color, #f0e6ff) !important;
    color: var(--table-header-text-color, #333333) !important;
    font-weight: bold !important;
}

/* ========== ПРЕСЕТЫ СТИЛЕЙ ТАБЛИЦ ========== */

/* Стандартный (по умолчанию) */
.table-standard th {
    background-color: var(--table-header-bg-color, #f0e6ff) !important;
}

/* Стиль с границами */
.table-bordered table {
    border-width: 2px !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

.table-bordered th, 
.table-bordered td {
    border-width: 2px !important;
}

/* Стиль с полосами */
.table-striped table tr:nth-child(even) {
    background-color: var(--table-alternate-row-color, #f9f9f9) !important;
}

.table-striped th {
    border-bottom: 3px solid var(--table-border-color, #dddddd) !important;
}

/* Современный стиль */
.table-modern table {
    border: none !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

.table-modern th {
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    font-size: 0.9em !important;
    border: none !important;
    border-bottom: 2px solid var(--accent-color, #ff6b6b) !important;
}

.table-modern td {
    border: none !important;
    border-bottom: 1px solid var(--table-border-color, #dddddd) !important;
}

.table-modern tr:last-child td {
    border-bottom: none !important;
}

.table-modern tr:hover {
    background-color: rgba(var(--primary-color-rgb, 0, 123, 255), 0.05) !important;
}

/* Переопределение стилей WordPress для таблиц */
.wp-block-table table,
.wp-block-table td,
.wp-block-table th {
    border: 1px solid var(--table-border-color, #dddddd) !important;
}

.wp-block-table th {
    background-color: var(--table-header-bg-color, #f0e6ff) !important;
    color: var(--table-header-text-color, #333333) !important;
    font-weight: bold !important;
}

/* Стили для таблиц в контенте */
.entry-content table,
.entry-content table th,
.entry-content table td {
    border: 1px solid var(--table-border-color, #dddddd) !important;
}

.entry-content table th {
    background-color: var(--table-header-bg-color, #f0e6ff) !important;
    color: var(--table-header-text-color, #333333) !important;
    font-weight: bold !important;
}

/* Основные стили кнопки */
.wp-block-button__link {
    background: linear-gradient(180deg, #3F9128 0%, #80D741 100%) !important;
    color: #fff !important;
    border-radius: 17px !important;
    padding: 14px 40px !important;
    font-size: 19px !important;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none !important;
    border: 2px solid #219653 !important;
    /* Увеличенная белая рамка с отступом */
    box-shadow: 
        0 4px 0 rgba(33, 150, 83, 0.5),
        0 0 0 3px #ffffff !important;
    display: inline-block;
    letter-spacing: 1px;
    line-height: 1.3;
    transition: all 0.2s ease;
    min-width: 220px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    
    /* Фикс для обрезанной рамки */
    margin: 5px 0; /* Добавляем вертикальный отступ */
    box-sizing: border-box; /* Учитываем рамки в общей ширине */
    overflow: visible; /* Разрешаем выход за пределы контейнера */
}

/* Для контейнера кнопки - добавьте этот стиль */
.wp-block-button {
    padding: 5px; /* Добавляем отступ вокруг кнопки */
    overflow: visible; /* Разрешаем выход за пределы */
}
/* Контейнер для кнопки */
.wp-block-buttons {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    margin: 20px 0;
    overflow: hidden; /* Для корректного позиционирования */
}

.wp-block-button {
    display: inline-block;
    position: relative;
    margin: 0 auto;
}

/* Адаптация для мобильных */
@media screen and (max-width: 768px) {
    .wp-block-button__link {
        padding: 12px 30px !important;
        font-size: 16px !important;
        min-width: 200px;
        left: 50%; /* Гарантированное центрирование */
        transform: translateX(-50%); /* Гарантированное центрирование */
        display: inline-block;
    }
    
    /* Фикс для родительских контейнеров */
    .entry-content, 
    .wp-block-group,
    .wp-block-column {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Сброс любых левых отступов */
    .entry-content > *,
    .wp-block-group > * {
        padding-left: 0 !important;
        margin-left: 0 !important;
    }
}

@media screen and (max-width: 480px) {
    .wp-block-button__link {
        padding: 10px 18px !important;
        font-size: 10px !important;
        min-width: 180px;
    }
}

/* Гарантированное центрирование для всех элементов */
@media (max-width: 768px) {
    .aligncenter,
    .has-text-align-center {
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
        margin-left: 0 !important;
        padding-left: 0 !important;
    }
    
    .wp-block-button.aligncenter {
        margin-right: 0 !important;
        padding-right: 0 !important;
    }
}

/* Экстренный фикс - если всё ещё не по центру */
@media (max-width: 768px) {
    .wp-block-button {
        position: static !important;
    }
    
    .wp-block-button__link {
        left: 50% !important;
        transform: translateX(-50%) !important;
        position: relative !important;
        display: inline-block !important;
    }
}

/* --- Ограничение размера логотипа и выравнивание заголовка --- */
/* Базовые стили для мобильных (оставляем как есть) */
.custom-logo, 
.custom-logo-link img {
    max-width: 180px;
    max-height: 90px;
    height: auto;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
    flex-shrink: 0;
}

/* Стили только для десктопа (ширина экрана от 992px) */
@media (min-width: 992px) {
    .custom-logo, 
    .custom-logo-link img {
        max-width: 340px; /* Нужный размер для десктопа */
        max-height: 160px;
    }
}
@media screen and (max-width: 768px) {
    /* Хедер */
    .site-header {
        min-height: auto;
        padding: 0.3rem 0;
        position: fixed;
        top: 0;
        z-index: 1000;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .admin-bar .site-header {
        top: 46px;
    }

    /* Логотип */
    .custom-logo,
    .custom-logo-link img {
        max-width: 100px;
        max-height: 50px;
    }

    /* Отступ для контента */
    body {
        padding-top: 60px !important;
    }

    .admin-bar body {
        padding-top: 100px !important;
    }

    /* Геро-секция */
    .hero-section {
        margin-top: 60px !important;
        padding: 1rem 0 !important;
        min-height: auto;
    }

    .admin-bar .hero-section {
        margin-top: 170px !important;
    }

    /* Навигация */
    .main-navigation {
        top: 60px;
        max-height: calc(100vh - 60px);
    }

    .admin-bar .main-navigation {
        top: 100px;
        max-height: calc(100vh - 100px);
    }

    /* Компактные стили для кнопок и переключателя языка */
    .header-buttons-container {
        display: flex;
        align-items: center;
        gap: 10px;
        order: 1;
        width: 100%;
        justify-content: flex-end;
        padding: 5px 15px;
    }

    .header-buttons,
    .language-switcher-dropdown {
        display: flex !important;
        margin: 0;
        padding: 0;
    }

    .header-buttons a {
        padding: 5px 10px;
        font-size: 14px;
    }

    .language-switcher-dropdown {
        font-size: 14px;
    }

    /* Адаптация меню */
    .menu-toggle {
        order: 0;
    }

    .custom-logo-link {
        order: 0;
        margin-right: auto;
    }

    /* Если нужно сделать ещё компактнее */
    .site-header-inner {
        display: flex;
        align-items: center;
        width: 100%;
        flex-wrap: wrap;
    }
}
.admin-bar .site-header {
    top: 32px; /* Сдвиг вниз на высоту админ-бара */
}

@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px; /* Меньший сдвиг для узких экранов */
    }
}
.hero-section {
    background-color: var(--primary-color);
    color: #fff;
    margin-top: 80px; /* Отступ равен высоте хедера */
    text-align: center;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Для мобильных устройств */
@media screen and (max-width: 768px) {
    .hero-section {
        margin-top: 120px !important; /* Уменьшенный отступ для мобильных */
    }

    /* Учет админ-бара WordPress */
    .admin-bar .hero-section {
        margin-top: 170px !important;
    }
}

@media screen and (max-width: 768px) {
  .wp-block-button__link {
    padding: 1.2rem 2.5rem !important; /* Увеличенные отступы */
    font-size: 1.2rem !important;      /* Крупнее текст */
    min-width: 240px !important;       /* Шире кнопка */
    border-radius: 8px !important;     /* Скругление */
    text-transform: uppercase;
    font-weight: bold;
  }
}
$css = "
    /* ... остальные ваши стили ... */

    /* Стили для навигационного меню */
    .main-navigation {
        flex: 1;
        text-align: center;
    }

    .main-navigation ul {
        list-style: none;
        display: flex;
        justify-content: center;
        gap: 20px;
    }

    .main-navigation a {
        color: var(--primary-color);
        text-decoration: none;
        font-weight: 500;
        padding: 5px 10px;
        transition: all 0.3s ease;
    }

    .main-navigation a:hover {
        color: var(--accent-color);
        background-color: rgba(0,0,0,0.05);
        border-radius: 4px;
    }

    /* Стили для текущего пункта меню */
    .main-navigation .current-menu-item a {
        color: var(--secondary-color);
        font-weight: bold;
    }
";

 