/*
Theme Name:        Shuttle iDark - Жас Дәурен (Обновленный)
Text Domain:       shuttle-idark
Template:          shuttle
Version:           2.0.0
Description:       Современный яркий дизайн для Жас Дәурен
*/

/* ============================================
   ЦВЕТОВАЯ СХЕМА - ЯРКАЯ И СОВРЕМЕННАЯ
   ============================================ */

:root {
    --primary-gradient: linear-gradient(135deg, #9333ea 0%, #c026d3 50%, #ec4899 100%);
    --secondary-gradient: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    --accent-color: #9333ea;
    --accent-light: #c026d3;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
}

/* ============================================
   ОБЩИЕ СТИЛИ
   ============================================ */

body, html {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}


/* ============================================
   ВЕРХНЯЯ ПАНЕЛЬ - ЯРКИЙ ГРАДИЕНТ
   ============================================ */

#pre-header {
    background: var(--primary-gradient);
    border-bottom: none;
    padding: 12px 0;
}

#pre-header .header-links > ul > li:before {
    content: '|';
    color: rgba(255, 255, 255, 0.3);
}

#pre-header .header-links > ul > li > a {
    color: #fff;
    font-weight: 500;
    transition: all 0.3s ease;
}

#pre-header .header-links .menu-hover > a,
#pre-header .header-links > ul > li > a:hover {
    color: #fff !important;
    opacity: 0.8;
    background-color: transparent;
}

#pre-header .header-links li a,
#pre-header-social li, 
#pre-header-social li a {
    color: #fff !important;
}

#pre-header-social li:hover, 
#pre-header-social li a:hover {
    color: #fff !important;
    opacity: 0.8;
    background-color: transparent !important;
}

#pre-header .header-links .sub-menu a {
    color: #1e293b !important;
    border-bottom: none !important;
}

#pre-header .header-links .sub-menu a:hover {
    color: #9333ea !important;
    opacity: 1;
}

#pre-header .header-links .sub-menu {
    background-color: #fff;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    border: none;
}

/* ============================================
   ШАПКА САЙТА - ЛОГОТИП И МЕНЮ
   ============================================ */

#header,
#header-sticky {
    position: relative;
    background-color: var(--white);
    border-bottom: none;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* Структура хедера - вертикальная */
#header-core {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

/* Блок логотипа с названием */
#logo {
    width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 30px !important;
    padding: 30px 20px !important;
    background: white !important;
    border-bottom: 2px solid #f1f5f9 !important;
    float: none !important;
    margin: 0 !important;
}

#logo .custom-logo-link {
    flex-shrink: 0 !important;
    display: block !important;
}

#logo .custom-logo,
#logo img {
    width: 150px !important;
    height: 150px !important;
    max-width: 150px !important;
    max-height: 150px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    box-shadow: 0 10px 40px rgba(147, 51, 234, 0.25) !important;
    display: block !important;
}

#logo h1,
#logo-sticky h1 {
    color: var(--text-dark);
    font-weight: 800;
}

/* Название организации рядом с логотипом */
#logo .site-description,
#logo::after {
    content: 'ПАВЛОДАР ОБЛЫСЫ БІЛІМ БЕРУ БАСҚАРМАСЫ\A«ЖАС ДӘУРЕН» ОБЛЫСТЫҚ ОҚЫТУ-САУЫҚТЫРУ ОРТАЛЫҒЫ';
    display: block !important;
    white-space: pre-line !important;
    text-align: left !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    line-height: 1.6 !important;
    text-transform: uppercase !important;
    max-width: 600px !important;
}

/* Блок меню - под логотипом */
#header-links {
    width: 100% !important;
    padding: 20px 0 !important;
    float: none !important;
    display: flex !important; /* <-- Изменено с block на flex */
    justify-content: center !important; /* <-- Добавлено для центрирования по горизонтали */
    order: 3 !important;
}

#header-links-inner.header-links {
    display: flex !important;
    justify-content: center !important;
}

#header-links ul#menu-header {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 10px !important;
    float: none !important;
    align-items: center !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

#header .header-links > ul > li,
#header-sticky .header-links > ul > li {
	position: relative;
    margin: 0 !important;
    padding: 0 !important;
}

#header .header-links > ul > li a,
#header-sticky .header-links > ul > li a {
    transition: all 400ms;
    position: relative;
    color: var(--text-dark);
    font-weight: 600;
    padding: 10px 15px;
    display: block;
}

#header .header-links > ul > li a:hover,
#header-sticky .header-links > ul > li a:hover,
#header .header-links > ul > li.current-menu-item > a,
#header-sticky .header-links > ul > li.current-menu-item > a {
    color: #9333ea !important;
    opacity: 1;
}

#header .header-links > ul > li a::after,
#header-sticky .header-links > ul > li a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 15px;
    right: 15px;
    height: 3px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    border-radius: 2px;
}

#header .header-links > ul > li a:hover::after,
#header-sticky .header-links > ul > li a:hover::after,
#header .header-links > ul > li.current-menu-item > a::after,
#header-sticky .header-links > ul > li.current-menu-item > a::after {
    transform: scaleX(1);
}

/* Выпадающее подменю */
#header .header-links .sub-menu,
#header-sticky .header-links .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    border-top: none;
    border-bottom: none;
    background-color: var(--white);
    margin-top: 0px;
    border-radius: 15px;
    box-shadow: 0px 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 220px !important;
    overflow: hidden;
    z-index: 1000;
}

#header .header-links .sub-menu a,
#header-sticky .header-links .sub-menu a {
    padding: 12px 20px !important;
    color: var(--text-dark) !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

#header .header-links .sub-menu a:hover,
#header-sticky .header-links .sub-menu a:hover {
    color: #9333ea !important;
    background-color: #faf5ff !important;
    opacity: 1 !important;
}

#header .header-links .sub-menu a::after,
#header-sticky .header-links .sub-menu a::after {
    display: none !important;
}

/* ============================================
   ЗАГОЛОВОК СТРАНИЦЫ - ЯРКИЙ ГРАДИЕНТ С ВОЛНАМИ
   ============================================ */

#intro {
    border: none;
    background: var(--primary-gradient);
    padding: 80px 0px 0px 0px;
    position: relative;
    overflow: hidden;
}

#intro::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,0 C300,100 900,100 1200,0 L1200,120 L0,120 Z" fill="white"/></svg>') no-repeat;
    background-size: cover;
}

#intro .wrap-safari {
    padding-bottom: 80px;
}

#intro .page-title {
    color: #fff;
    font-size: 42px;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-family: inherit !important;
    letter-spacing: normal !important;
}

#intro .page-title span {
    background-color: transparent;
    padding: 0px;
}

#intro #breadcrumbs {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

#intro #breadcrumbs-core {
    background-color: transparent;
    padding: 0px;
}

#intro #breadcrumbs-core a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s;
}

#intro #breadcrumbs-core a:hover {
    opacity: 0.8;
}

/* ============================================
   CTA СЕКЦИЯ - ЯРКИЙ АКЦЕНТ
   ============================================ */

#introaction {
    background: var(--primary-gradient);
    padding: 80px 0px;
    position: relative;
}

#introaction::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(255,255,255,0.1) 0%, transparent 50%);
}

#introaction-core,
#outroaction-core,
.sc-action-core {
    position: relative;
    z-index: 2;
    padding: 60px 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#introaction-core .three_fourth,
#introaction-core .one_fourth {
    margin: 0;
    float: none;
    text-align: center;
    width: 100%;
}

.action-text h3 {
    color: #fff;
    font-size: 42px;
    font-weight: 800;
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

.action-teaser p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 18px;
    line-height: 1.7;
}

.action-link a {
    font-size: 15px;
    margin-top: 30px;
    padding: 15px 40px;
    transition: all .3s;
    background: white;
    border-radius: 50px;
    border: none;
    color: #9333ea;
    font-weight: 700;
    display: inline-block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.action-link a:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    color: #9333ea;
}

/* ============================================
   КАРТОЧКИ УСЛУГ - СОВРЕМЕННЫЙ СТИЛЬ
   ============================================ */

#section-home {
    margin-bottom: 60px;
    padding: 60px 20px;
    background: var(--bg-light);
}

.iconimage {
    border-radius: 15px;
    border-bottom: none;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.services-builder.style1 {
    border-radius: 20px;
    border: none;
    padding: 40px 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    background-color: var(--white);
    position: relative;
    z-index: 5;
    text-align: center;
    transition: all 0.4s ease;
}

.services-builder.style1:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(147, 51, 234, 0.2);
}

.services-builder.style1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--primary-gradient);
    border-radius: 20px 20px 0 0;
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.services-builder.style1:hover::before {
    transform: scaleX(1);
}

.services-builder.style1 h3 {
    color: var(--text-dark);
    position: relative;
    padding-bottom: 15px;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 10px;
    display: inline-block;
    font-size: 24px;
    font-weight: 700;
}

.services-builder.style1 p {
    color: var(--text-light);
    padding: 15px 0;
    line-height: 1.8;
}

.services-builder.style1 .iconmain {
    margin-top: 0px;
    margin-bottom: 25px;
    text-align: center;
    padding: 0px;
}

.services-builder.style1 .iconmain i {
    font-size: 60px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.services-builder.style1 .iconurl {
    margin: 0;
    padding: 0px !important;
    margin-top: 20px;
}

.services-builder.style1 .iconurl a {
    text-align: center;
    font-size: 14px;
    color: #fff;
    font-weight: 700;
    padding: 12px 30px;
    background: var(--primary-gradient);
    border: none;
    border-radius: 50px;
    text-decoration: none !important;
    text-transform: uppercase;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(147, 51, 234, 0.3);
}

.services-builder.style1 .iconurl a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(147, 51, 234, 0.4);
}

/* ============================================
   ФУТЕР - ГРАДИЕНТНЫЙ ФОН
   ============================================ */

footer {
    border: none;
}

#footer {
    border-top: none;
    background: var(--primary-gradient);
    position: relative;
    color: white;
}

#footer::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,120 C300,20 900,20 1200,120 L1200,0 L0,0 Z" fill="white"/></svg>') no-repeat;
    background-size: cover;
}

#footer .widget-area {
    position: relative;
    padding-top: 40px;
}

#footer-core h2 {
    text-transform: capitalize;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    display: inline-block;
    padding-bottom: 15px;
    margin-bottom: 20px;
    border-bottom: 3px solid rgba(255, 255, 255, 0.3);
}

#footer-core,
#footer-core p {
    color: rgba(255, 255, 255, 0.9);
}

#footer .widget ul li a,
#footer .widget li a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
}

#footer .widget ul li a:hover,
#footer .widget li a:hover {
    color: #fff;
    padding-left: 5px;
}

#footer .widget ul li span {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 400;
}

#footer .widget li {
    border: none;
}

#footer .widget li:last-child {
    border-bottom: none;
}

#footer .widget_recent_entries ul li,
#footer .widget_recent_comments ul li {
    margin-bottom: 15px;
}

#footer .widget ul li:last-child {
    margin-bottom: 0px;
}

#footer .widget_tag_cloud a {
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-weight: 500;
    border-radius: 25px;
    padding: 8px 16px;
    transition: all 0.3s ease;
}

#footer .widget_tag_cloud a:hover {
    background-color: white;
    color: #9333ea;
    border-color: white;
}

#footer input[type=text],
#footer input[type=email],
#footer input[type=password],
#footer input[type=search],
#footer input[type=tel],
#footer select,
#footer textarea {
    background-color: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 10px;
    box-shadow: none;
    color: #fff;
    padding: 12px 20px;
}

#footer input::placeholder,
#footer textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

#footer .widget_search button {
    background: white;
    border: none;
    border-radius: 10px;
    color: #9333ea;
    font-weight: 700;
    padding: 12px 25px;
}

#footer .widget_search button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

#footer .wp-block-latest-comments__comment-date,
#footer .wp-block-latest-posts__post-author,
#footer .wp-block-latest-posts__post-date {
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   ПОДВАЛ - ТЕМНЫЙ АКЦЕНТ
   ============================================ */

#sub-footer {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    padding: 25px 0;
}

#sub-footer a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s;
}

#sub-footer a:hover {
    color: #fff;
}

#footer-menu li:after {
    display: none;
}

/* ============================================
   САЙДБАР - ЧИСТЫЙ СТИЛЬ
   ============================================ */

.layout-sidebar-right #sidebar-core {
    border: none;
    padding: 0px;
    border-radius: 0px;
}

.widget_search .search input,
input[type=text],
input[type=email],
input[type=password],
input[type=search],
input[type=tel],
select,
textarea {
    border: 2px solid #e2e8f0 !important;
    background-color: var(--white) !important;
    border-radius: 10px;
    padding: 12px 20px;
    transition: all 0.3s;
}

input[type=text]:focus,
input[type=email]:focus,
input[type=password]:focus,
input[type=search]:focus,
input[type=tel]:focus,
select:focus,
textarea:focus {
    border-color: #9333ea !important;
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1) !important;
    outline: none;
    background-color: #fff !important;
}

#sidebar .wp-block-search__button {
    border-radius: 10px;
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    padding: 12px 25px;
    font-weight: 700;
}

#sidebar .wp-block-search__button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

#sidebar .widget {
    padding: 0px;
    overflow: hidden;
    background-color: var(--white);
    border: none;
    box-shadow: 0px 5px 30px rgba(0, 0, 0, 0.08);
    border-radius: 15px;
    margin-bottom: 30px;
}

#sidebar .widget_search {
    box-shadow: none !important;
}

#sidebar .widget_search::after,
#sidebar .widget_search::before {
    display: none;
}

#sidebar h2 {
    display: inline-block;
    margin-top: 0px;
    margin-bottom: 0px;
    padding: 20px 25px;
    font-weight: 700;
    font-size: 18px;
    color: #fff;
    text-transform: capitalize;
    border-bottom: none;
    background: var(--primary-gradient);
    width: 100%;
    position: relative;
}

#sidebar .widget ul,
#sidebar .widget ol,
#sidebar .wp-block-tag-cloud {
    padding: 25px;
    margin-bottom: 0px;
}

#sidebar .widget li a {
    font-size: 15px;
    text-decoration: none;
    font-weight: 500;
    color: var(--text-dark);
    transition: all 0.3s;
}

#sidebar .widget li a:hover {
    color: #9333ea;
    padding-left: 5px;
}

#sidebar .widget li span {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #aaa;
}

#sidebar .widget_recent_entries ul li,
#sidebar .widget_recent_comments ul li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
}

#sidebar .widget ul li,
#sidebar .widget li {
    border-bottom: none;
    margin-bottom: 10px;
    padding-bottom: 0px;
}

#sidebar .widget ul li:last-child, 
#sidebar .widget li:last-child {
    margin-bottom: 0px;
    padding-bottom: 0px;
    border-bottom: none;
}

#sidebar .widget_tag_cloud {
    border-bottom: none;
    padding-bottom: 0px;
}

#sidebar .widget_tag_cloud a {
    padding: 8px 16px;
    background-color: #f1f5f9;
    box-shadow: none;
    border: none;
    color: var(--text-dark);
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-block;
    margin: 3px;
}

#sidebar .widget_tag_cloud a:hover {
    background: var(--primary-gradient);
    border-color: #9333ea;
    color: #fff;
}

footer.wp-block-latest-comments__comment-meta {
    background-color: transparent;
}

/* ============================================
   ПОСТЫ БЛОГА - КАРТОЧНЫЙ СТИЛЬ
   ============================================ */

.blog-style2 #content,
.layout-sidebar-right #sidebar {
    background-color: transparent;
    border: none;
}

.layout-sidebar-right #sidebar {
    box-shadow: none;
}

.blog-style2 .blog-grid.column-2 {
    padding: 15px;
}

.blog-style2 .blog-article {
    margin-bottom: 40px;
    border: none;
    background-color: var(--white) !important;
    position: relative;
    border-radius: 20px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    padding: 0px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.blog-style2 .blog-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(147, 51, 234, 0.15);
}

.blog-thumb img {
    border-radius: 0px;
    overflow: hidden;
    transition: transform 0.5s ease;
}

.blog-style2 .blog-article:hover .blog-thumb img {
    transform: scale(1.05);
}

.blog-style2 .blog-article .entry-content {
    margin-top: 0px;
    background-color: transparent;
    text-align: left;
    padding: 30px;
    border-bottom: none;
    position: relative;
}

.blog-style2 .blog-article .entry-content p {
    color: var(--text-light);
}

.blog-style2 .blog-article .blog-title {
    margin-top: 0px;
    font-size: 24px;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 15px;
    font-weight: 700;
}

.blog-article .blog-title a {
    text-decoration: none !important;
    color: var(--text-dark);
    transition: color 0.3s;
}

.blog-article .blog-title a:hover {
    color: #9333ea;
}

.blog-article.sticky .blog-title a {
    color: var(--text-dark);
    text-decoration: none !important;
}

.blog-article.sticky .entry-content p {
    color: var(--text-light);
}

.blog-article .entry-meta {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f1f5f9;
}

.blog-article .entry-meta a,
.blog-article.sticky .entry-meta i,
.blog-article.sticky .entry-meta a {
    color: var(--text-light);
    text-decoration: none !important;
    transition: color 0.3s;
}

.blog-article .entry-meta a:hover,
.blog-article.sticky .entry-meta a:hover {
    color: #9333ea;
}

.blog-article .entry-meta > span:before {
    content: '|';
    color: #d1d5db;
    margin: 0 8px;
}

.blog-article .entry-meta > span {
    font-size: 13px;
}

.blog-article .more-link {
    padding-top: 0px;
    margin-bottom: 10px;
}

.blog-article .more-link a {
    font-size: 14px;
    color: #fff;
    padding: 10px 25px;
    background: var(--primary-gradient);
    border: none;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none !important;
    display: inline-block;
    transition: all 0.3s;
}

.blog-article .more-link a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(147, 51, 234, 0.3);
}

/* ============================================
   ПАГИНАЦИЯ - ЯРКИЙ СТИЛЬ
   ============================================ */

.navigation.pagination .nav-links {
    border: none;
    display: inline-block;
}

.navigation.pagination .nav-links a,
.navigation.pagination .nav-links span {
    color: var(--text-dark);
    font-weight: 700;
    border: none;
    background-color: var(--white);
    border-radius: 10px;
    text-decoration: none !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.navigation.pagination .nav-links a:hover,
.navigation.pagination .nav-links a.current,
.navigation.pagination .nav-links span:hover,
.navigation.pagination .nav-links span.current {
    background: var(--primary-gradient);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(147, 51, 234, 0.3);
}

/* ============================================
   ОДИНОЧНЫЙ ПОСТ
   ============================================ */

.single .entry-header {
    background-color: transparent;
    padding: 0px;
    margin-bottom: 20px;
    border-radius: 0px;
    border: none;
    border-bottom: none;
    box-shadow: none;
}

.single .entry-content {
    position: relative;
    background-color: transparent;	
    color: var(--text-light);
    padding: 0px;
    border-radius: 0px;
    border: none;
    box-shadow: none;
}

.single .entry-meta {
    margin-top: 0px!important;
}

.single .entry-meta > span:before {
    content: '|';
    color: #d1d5db;
    margin: 0 8px;
}

.single .entry-meta > span {
    font-size: 13px;
}

.single .entry-meta > span a {
    text-decoration: none !important;
}

.single .entry-meta{
    text-align: left;
    margin-top: 45px;
}

.nav-previous,
.nav-next {
    width: auto;
}

.nav-previous a,
.nav-next a {
    text-transform: uppercase;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none !important;
    background-color: transparent;
    padding: 0px;
    color: var(--text-dark);
    border: none;
    font-size: 13px;
    transition: all .4s;
}

.nav-previous a:hover,
.nav-next a:hover {
    opacity: 1;
    color: #9333ea;
    background-color: transparent;
    box-shadow: none;
}

#nav-above,
#nav-below {
    background-color: var(--white);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border-radius: 15px;
    padding: 30px;
    position: relative;
    border: none;
}

.nav-previous a .meta-icon,
.nav-next a .meta-icon {
    display: inline-block;
}

/* ============================================
   КОММЕНТАРИИ
   ============================================ */

#comments-title h3,
#reply-title {
    padding: 20px 30px;
    border-bottom: none;
    text-align: left;
    font-size: 24px;
    font-weight: 700;
    text-transform: capitalize;
    background: var(--primary-gradient);
    border-radius: 15px;
    color: #fff;
    margin-bottom: 30px;
    position: relative;
}

.commentlist article.comment {
    padding: 25px;
    margin-bottom: 20px !important;
}

.comment-author h4 {
    color: var(--text-dark);
}

.commentlist {
    background-color: transparent;
    padding: 0px;
}

.commentlist .comment,
.commentlist .pingback {
    margin-top: 0px;
}

.commentlist li article {
    margin-top: 0px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05) !important;
    background-color: var(--white);
    padding: 25px !important;
    border-bottom: none;
    margin-bottom: 20px !important;
}

.commentlist article footer {
    background-color: transparent;
    border-top: none;
}

.comment .reply {
    float: right;
}

li.comment article {
    margin-bottom: 0px !important;
}

.comment .reply a {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    color: #fff;
    background: var(--primary-gradient);
    padding: 8px 20px;
    border-radius: 25px;
    border: none;
    text-decoration: none !important;
    transition: all 0.3s;
}

.comment .reply a:hover {
    border: none;
    color: #fff !important;
    background: var(--primary-gradient) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(147, 51, 234, 0.3);
}

.commentlist .avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #f1f5f9;
    margin: 0;
    margin-bottom: 20px;
}

.commentlist article header {
    text-align: left;
}

.comment-content {
    text-align: left;
}

.commentlist .children article:before {
    display: none;
}

#commentform input[type="text"]:focus,
#commentform textarea:focus {
    background-color: #fff;
}

.logged-in-as a {
    color: #9333ea;
}

.logged-in-as a:hover {
    color: #7c3aed;
}

.comment-respond .form-submit {
    text-align: left;
}

#respond {
    border-radius: 0px;
    padding: 0px;
}

#commentform input[type="text"],
#commentform textarea {
    background-color: var(--white) !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 10px;
    color: var(--text-dark);
}

/* ============================================
   КНОПКИ - ГРАДИЕНТНЫЙ СТИЛЬ
   ============================================ */

.themebutton,
button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
    font-size: 15px;
    border-radius: 50px;
    font-weight: 700;
    padding: 12px 30px;
    transition: all .3s;
    background: var(--primary-gradient);
    border: none;
    color: #fff;
    position: relative;
    box-shadow: 0 5px 20px rgba(147, 51, 234, 0.3);
}

.themebutton:hover,
button:hover,
html input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
    color: #fff;
    background: var(--primary-gradient);
    border: none;
    box-shadow: 0 8px 30px rgba(147, 51, 234, 0.4);
    transform: translateY(-2px);
}

/* ============================================
   ТЕКСТОВЫЙ КОНТЕНТ - УЛУЧШЕННАЯ ЧИТАЕМОСТЬ
   ============================================ */

body,
p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
    font-weight: 400;
}

.entry-content p,
.blog-article .entry-content p,
article p {
    font-size: 20px !important; /* <-- Увеличили размер */
    line-height: 1.6 !important; /* <-- Чуть уменьшили межстрочный, чтобы текст не разлетался */
    color: #000000 !important; /* <-- Сделали чисто черным */
    font-weight: 400 !important;
    margin-bottom: 20px;
}

/* Заголовки */
h1, h2, h3, h4, h5, h6 {
    font-family: inherit !important;
}

.entry-content h1,
.entry-content h2,
.entry-content h3 {
    color: var(--text-dark) !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
    margin-top: 30px !important;
}

.entry-content h1 {
    font-size: 36px !important;
}

.entry-content h2 {
    font-size: 28px !important;
}

.entry-content h3 {
    font-size: 22px !important;
}

/* Списки */
.entry-content ul,
.entry-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.entry-content ul li,
.entry-content ol li {
    font-size: 18px !important;
    color: var(--text-light) !important;
    line-height: 1.8 !important;
    margin-bottom: 10px !important;
}

/* Цитаты */
.entry-content blockquote {
    border-left: 4px solid #9333ea;
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: var(--text-light);
}

/* Ссылки в контенте */
.entry-content a {
    color: #9333ea;
    text-decoration: underline;
    transition: color 0.3s;
}

.entry-content a:hover {
    color: #7c3aed;
}

/* Код */
.entry-content code {
    background-color: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 14px;
    color: #be185d;
}

.entry-content pre {
    background-color: #1e293b;
    color: #f1f5f9;
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 20px 0;
}

/* Таблицы */
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.entry-content table th {
    background: var(--primary-gradient);
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: 700;
}

.entry-content table td {
    padding: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.entry-content table tr:hover {
    background-color: #faf5ff;
}

/* ============================================
   АДАПТИВНОСТЬ
   ============================================ */

@media (max-width: 1024px) {
    #header-core {
        padding: 0 15px !important;
    }
    
    #logo {
        flex-direction: column !important;
        gap: 20px !important;
    }
    
    #logo::after {
        text-align: center !important;
        font-size: 15px !important;
    }
}

@media (max-width: 768px) {
    #intro .page-title {
        font-size: 32px !important;
    }
    
    .action-text h3 {
        font-size: 28px !important;
    }
    
    .services-builder.style1 {
        margin-bottom: 30px;
    }
    
    #logo {
        padding: 20px 15px !important;
    }
    
    #logo .custom-logo,
    #logo img {
        width: 120px !important;
        height: 120px !important;
    }
    
    #logo::after {
        font-size: 14px !important;
    }
    
    #header-links ul#menu-header {
        flex-direction: column;
        align-items: center;
    }
    
    #header-links ul#menu-header li {
        width: 100%;
        text-align: center;
    }
    
    body,
    p,
    .entry-content p {
        font-size: 16px !important;
    }
    
    .entry-content h1 {
        font-size: 28px !important;
    }
    
    .entry-content h2 {
        font-size: 24px !important;
    }
    
    .entry-content h3 {
        font-size: 20px !important;
    }
}

@media (max-width: 480px) {
    #logo::after {
        font-size: 12px !important;
        line-height: 1.5 !important;
    }
    
    #intro .page-title {
        font-size: 24px !important;
    }
    
    .action-text h3 {
        font-size: 22px !important;
    }
}

/* ============================================
   ДОПОЛНИТЕЛЬНЫЕ УЛУЧШЕНИЯ
   ============================================ */

/* Плавная прокрутка */
html {
    scroll-behavior: smooth;
}

/* Выделение текста */
::selection {
    background: rgba(147, 51, 234, 0.2);
    color: #1e293b;
}

/* Анимация появления */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Скрытие мобильной навигации на десктопе */
#header-nav {
    display: none;
}

@media (max-width: 768px) {
    #header-nav {
        display: block;
    }
}

/* Фокус для доступности */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 3px solid rgba(147, 51, 234, 0.3);
    outline-offset: 2px;
}

/* Улучшение изображений */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.entry-content img {
    border-radius: 10px;
    margin: 20px 0;
}

/* Галерея WordPress */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

/* Видео адаптивность */
.entry-content iframe,
.entry-content video {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
}

/* Разделители */
.entry-content hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
    margin: 40px 0;
}

/* Переопределяем шрифт и убираем жесткие ограничения высоты строки
   для заголовка, содержащего обрезанный казахский текст */
#intro .page-title, 
#intro .page-title span {
    /* *** ВАРИАНТ 1: Современный (Рекомендуется) ***
    Подставьте сюда подключенный вами шрифт (например, Open Sans).
    Это гарантирует правильные глифы. 
    */
    font-family: 'Open Sans', 'PT Sans', sans-serif !important; 
    
    /* *** ВАРИАНТ 2: Классический (Если не хотите подключать) ***
    font-family: "Times New Roman", Times, serif !important; 
    */
    
    /* Увеличиваем высоту строки. Значение 1.2-1.4 обычно исправляет обрезку. */
    line-height: 1.4 !important; 
    
    /* Убираем жесткую вертикальную трансформацию, если она была (хотя у вас ее не видно) */
    vertical-align: top !important; 
}