/*
Theme Name: ColorWisp Kids
Theme URI: https://colorwisp.com
Author: Antigravity AI
Description: Преміум-дизайн розмальовок ColorWisp: двосторонні клякси, барвистий логотип, чистий друк А4 тільки малюнка, живий розумний пошук з автодоповненням, асинхронне завантаження карток (AJAX Load More), сучасні кнопки друку/завантаження, людський інтерфейс та 100% мобільна адаптивність.
Version: 3.3.0
Text Domain: colorwisp
*/

@charset "UTF-8";

:root {
    --primary-cyan: #43d9e8;
    --primary-hover: #3cc1cf;
    --brand-dark: #12757f;
    --brand-green: #00c056;
    --brand-green-hover: #00a048;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-soft: #e2e8f0;
    --border-gray: #d2d4d6;
    --card-hover-bg: #eaf9fc;
    --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.14);
}

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

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Nunito', Arial, "Helvetica Neue", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.6;
    color: var(--text-main);
    background-color: #ffffff;
    background-image: url('/wp-content/themes/colorwisp/images/bg-splash-left.svg'), url('/wp-content/themes/colorwisp/images/bg-splash-right.svg');
    background-repeat: repeat-y, repeat-y;
    background-position: left top, right top;
    background-size: clamp(80px, 13vw, 280px) auto, clamp(80px, 13vw, 280px) auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: #0284c7;
    text-decoration: none;
    transition: all ease-in-out 0.2s;
}

a:hover {
    text-decoration: none;
}

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

@media (min-width: 1400px) {
    .container {
        max-width: 1128px;
    }
}

/* ========================================================
   1. HEADER, LIVE SEARCH AUTOCOMPLETE & NAVIGATION
   ======================================================== */
.header {
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    max-width: 1140px;
    margin: 0 auto;
    padding: 10px 16px 8px;
}

.firs-line-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 8px;
}

.header_logo_container {
    display: flex;
    align-items: center;
    text-decoration: none !important;
}

.header_logo {
    max-height: 54px;
    width: auto;
    object-fit: contain;
}

.navbar-search {
    flex: 1;
    max-width: 540px;
    position: relative;
}

/* DeepL Multilingual Language Switcher */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1.5px solid var(--border-soft);
    font-size: 13.5px;
    font-weight: 800;
    flex-shrink: 0;
}

.lang-switcher .lang-btn {
    color: #64748b;
    text-decoration: none !important;
    transition: all 0.2s;
}

.lang-switcher .lang-btn:hover,
.lang-switcher .lang-btn.active {
    color: #0284c7;
    font-weight: 900;
}

.lang-switcher .lang-sep {
    color: #cbd5e1;
}

.navbar-search form {
    display: flex;
    gap: 8px;
    position: relative;
}

.header_search_input {
    flex: 1;
    padding: 11px 18px;
    border: 2px solid var(--border-soft);
    border-radius: 25px;
    font-size: 15px;
    font-family: inherit;
    font-weight: 600;
    outline: none;
    transition: all 0.2s;
    background: #f8fafc;
}

.header_search_input:focus {
    border-color: var(--primary-cyan);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(67, 217, 232, 0.2);
}

.header_search_btn {
    background: linear-gradient(135deg, #43d9e8 0%, #00b4d8 100%);
    padding: 10px 22px;
    font-size: 15px;
    color: #0f172a;
    border-radius: 25px;
    font-weight: 800;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(67, 217, 232, 0.3);
    transition: all 0.2s;
}

.header_search_btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(67, 217, 232, 0.45);
}

/* LIVE SEARCH AUTOCOMPLETE DROPDOWN */
.live-search-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.16);
    z-index: 1002;
    overflow: hidden;
}

.live-search-dropdown.show {
    display: block;
    animation: fadeIn 0.2s ease forwards;
}

.live-search-list {
    display: flex;
    flex-direction: column;
    padding: 6px 0;
}

.live-search-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 16px;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none !important;
    transition: all 0.15s ease;
}

.live-search-item:last-child {
    border-bottom: none;
}

.live-search-item:hover {
    background-color: var(--card-hover-bg);
}

.live-search-thumb {
    width: 44px;
    height: 52px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-soft);
    background: #f8fafc;
}

.live-search-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.live-search-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
}

.live-search-cat {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}

.live-search-all-link {
    display: block;
    text-align: center;
    padding: 12px 16px;
    background: #f8fafc;
    color: #0284c7 !important;
    font-weight: 800;
    font-size: 14px;
    border-top: 1px solid var(--border-soft);
}

.live-search-all-link:hover {
    background: var(--card-hover-bg);
}

.live-search-empty {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* Category Navigation Menu */
.header-menu-container {
    padding-top: 6px;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    display: block;
}

.header-menu {
    display: flex;
    list-style: none;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
    margin: 0 auto;
    max-width: 100%;
}

.header-menu .menu-item {
    position: relative;
    padding-bottom: 6px;
    flex-shrink: 0;
}

.header-menu .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 6px 12px;
    color: #1e293b;
    font-weight: 700;
    font-size: 13.5px;
    border-radius: 20px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
    text-decoration: none !important;
    white-space: nowrap;
}

.header-menu .nav-link:hover, .header-menu .nav-link.active {
    background-color: var(--primary-cyan);
    color: #000000;
    border-color: var(--primary-cyan);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(67, 217, 232, 0.35);
}

/* Dropdown Menu */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    padding: 8px 0;
    min-width: 220px;
    list-style: none;
    z-index: 1001;
    margin-top: 0;
}

.dropdown-menu::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
}

.menu-item-has-children:hover .dropdown-menu,
.menu-item-has-children:focus-within .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 9px 18px;
    color: #1e293b;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
    text-decoration: none !important;
}

.dropdown-item:hover {
    background-color: var(--card-hover-bg);
    color: #0f98a6;
    padding-left: 22px;
}

/* ========================================================
   2. FRONT PAGE CONTENT (raskraski.world layout)
   ======================================================== */
.front-page-block, .category-page, .single-coloring-page {
    margin-top: 25px;
    margin-bottom: 50px;
    flex: 1;
}

.main-title {
    font-size: 28px;
    border-bottom: 4px solid var(--brand-dark);
    padding: 0 0 16px;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 800;
}

/* For Boys & Girls Hero Banners */
.for-boys-girls {
    display: flex;
    gap: 24px;
    margin-bottom: 35px;
    justify-content: space-between;
}

.for-boys, .for-girls {
    flex: 1;
    border: 1px solid var(--border-soft);
    background: #ffffff;
    border-radius: 18px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    text-align: center;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 16px;
    transition: all 0.25s ease;
}

.for-boys:hover, .for-girls:hover {
    background-color: var(--card-hover-bg);
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
    border-color: var(--primary-cyan);
}

.banner-img-box {
    width: 100%;
    height: 220px;
    background: #f8fafc;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.banner-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.for-boys:hover .banner-img-box img, .for-girls:hover .banner-img-box img {
    transform: scale(1.06);
}

.for-boys span, .for-girls span {
    display: block;
    font-size: 19px;
    font-weight: 800;
    color: var(--text-main);
    margin-top: 12px;
}

/* Age Filter Block */
.raskraski-po-vozrasty-main-block {
    margin-bottom: 35px;
}

.category-buttons-heading, .section-heading {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 800;
    color: var(--text-main);
}

.raskraski-po-vozrasty {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    border-bottom: 4px solid var(--brand-dark);
    padding: 0 0 25px;
    margin-bottom: 35px;
}

.raskraski-po-vozrasty a {
    text-decoration: none;
    padding: 10px 22px;
    background: linear-gradient(135deg, #43d9e8 0%, #3cc1cf 100%);
    color: #0f172a;
    border-radius: 12px;
    font-weight: 800;
    font-size: 15px;
    box-shadow: 0 4px 10px rgba(67, 217, 232, 0.25);
    transition: all 0.2s;
}

.raskraski-po-vozrasty a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(67, 217, 232, 0.4);
    color: #000000;
}

/* Category Hubs Tabs */
.category-tabs-section {
    margin-bottom: 45px;
}

.hub-tabs-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 25px;
}

.hub-tab-btn {
    background: #f1f5f9;
    border: 1px solid var(--border-soft);
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
}

.hub-tab-btn.active, .hub-tab-btn:hover {
    background: linear-gradient(135deg, #43d9e8 0%, #00b4d8 100%);
    color: #0f172a;
    box-shadow: 0 4px 12px rgba(67, 217, 232, 0.3);
    border-color: transparent;
}

.hub-tab-content {
    display: none;
}

.hub-tab-content.active {
    display: block;
}

/* Subcategories Grid (.zhanry-list-terms) */
.zhanry-list-terms {
    display: flex;
    gap: 16px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.zhanry-list-terms .child-term {
    width: calc(20% - 13px);
    border: 1px solid var(--border-soft);
    background-color: #ffffff;
    text-decoration: none !important;
    color: var(--text-main);
    font-weight: 700;
    box-shadow: var(--shadow-card);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.2s;
}

.zhanry-list-terms .child-term:hover {
    box-shadow: var(--shadow-hover);
    background-color: var(--card-hover-bg);
    transform: translateY(-4px);
    border-color: var(--primary-cyan);
}

.child-term-img-box {
    width: 100%;
    aspect-ratio: 4/3;
    background: #f8fafc;
    overflow: hidden;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.child-term-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.zhanry-list-terms .child-term:hover .child-term-img-box img {
    transform: scale(1.08);
}

.zhanry-list-terms .child-term span {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px 8px;
    font-size: 14px;
    line-height: 1.3;
}

.btn-view-all-hub {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(135deg, #00c056 0%, #00a048 100%);
    color: #ffffff !important;
    font-weight: 800;
    font-size: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 192, 86, 0.3);
    transition: all 0.2s;
}

.btn-view-all-hub:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 192, 86, 0.45);
}

/* ========================================================
   3. COLORING PAGES GRID & AJAX LOAD MORE ANIMATION
   ======================================================== */
.category-raskraski {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-bottom: 30px;
}

.category-raskraski a.single-virsh-front {
    position: relative;
    overflow: hidden;
    text-decoration: none !important;
    color: var(--text-main);
    font-weight: 700;
    border: 1px solid var(--border-soft);
    background: #ffffff;
    border-radius: 18px;
    box-shadow: var(--shadow-card);
    padding-bottom: 14px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.category-raskraski a.single-virsh-front:hover {
    background-color: var(--card-hover-bg);
    box-shadow: 0 14px 32px rgba(2, 132, 199, 0.22);
    transform: translateY(-6px);
    border-color: #0284c7;
}

.category-raskraski .single-virsh-front img.main-image {
    display: block;
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    margin-bottom: 10px;
    transition: transform 0.4s ease;
}

.category-raskraski a.single-virsh-front:hover img.main-image {
    transform: scale(1.05);
}

.category-raskraski .book-views {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 600;
}

.category-raskraski a.single-virsh-front span {
    text-align: center;
    padding: 0 12px;
    font-size: 14px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@keyframes fadeInCard {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ajax-fade-in {
    animation: fadeInCard 0.35s ease forwards;
}

/* True AJAX Load More Button */
.load-more-container {
    text-align: center;
    margin: 30px 0 25px;
}

.btn-load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 42px;
    background: linear-gradient(135deg, #0284c7 0%, #00b4d8 100%);
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 800;
    font-family: inherit;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.35);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-load-more:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 28px rgba(2, 132, 199, 0.5);
    background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%);
}

.btn-load-more:disabled {
    opacity: 0.7;
    cursor: wait;
    transform: none;
}

/* ========================================================
   4. SINGLE COLORING PAGE (PREMIUM ACTIONS & PREVIEW)
   ======================================================== */
.single-coloring-card-main {
    background: #ffffff;
    border: 1px solid var(--border-soft);
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    padding: 30px;
    margin-top: 15px;
    margin-bottom: 40px;
    text-align: center;
}

.single-coloring-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 8px;
}

.single-coloring-meta {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.cat-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #f1f5f9;
    border-radius: 12px;
    font-weight: 700;
    color: #0284c7;
    margin-left: 4px;
}

.cat-badge:hover {
    background: var(--card-hover-bg);
}

/* Mini Actions Above Photo */
.single-top-mini-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    margin: 15px 0 20px;
}

.btn-mini-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    border-radius: 30px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.btn-mini-print {
    background: #e0f2fe;
    color: #0369a1 !important;
    border-color: #bae6fd;
}

.btn-mini-print:hover {
    background: #0284c7;
    color: #ffffff !important;
    border-color: #0284c7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.btn-mini-download {
    background: #e0f7fa;
    color: #00838f !important;
    border-color: #b2ebf2;
}

.btn-mini-download:hover {
    background: #00b4d8;
    color: #ffffff !important;
    border-color: #00b4d8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 180, 216, 0.25);
}

/* Main Action Buttons Below Photo */
.single-main-action-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 25px 0 25px;
}

.btn-action-print {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 800;
    font-family: inherit;
    color: #ffffff;
    background: linear-gradient(135deg, #00c056 0%, #009944 100%);
    border-radius: 14px;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 192, 86, 0.35);
    transition: all 0.2s;
}

.btn-action-print:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 192, 86, 0.5);
}

.btn-action-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 800;
    font-family: inherit;
    color: #ffffff !important;
    background: linear-gradient(135deg, #00b4d8 0%, #0077b6 100%);
    border-radius: 14px;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 180, 216, 0.35);
    transition: all 0.2s;
}

.btn-action-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 180, 216, 0.5);
}

.single-image-preview-frame {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    padding: 20px;
    margin: 20px auto;
    max-width: 680px;
    display: flex;
    justify-content: center;
}

.single-coloring-img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.single-print-instructions {
    background: #eaf9fc;
    border-radius: 12px;
    padding: 14px 20px;
    max-width: 680px;
    margin: 20px auto 0;
    font-size: 14px;
    color: #0f766e;
    text-align: left;
}

/* ========================================================
   5. HUMAN & PROFESSIONAL INFORMATIONAL PAGES UI
   ======================================================== */
.lead-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #334155;
    margin-bottom: 25px;
}

.human-policy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.human-card {
    background: #f8fafc;
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.2s;
}

.human-card:hover {
    border-color: var(--primary-cyan);
    box-shadow: var(--shadow-card);
}

.card-icon-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.card-icon-header h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--brand-dark);
}

.contact-cards-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.contact-box-modern {
    background: #ffffff;
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    padding: 26px;
    box-shadow: var(--shadow-card);
}

.contact-box-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.contact-box-header .icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #eafaf1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-box-header h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
}

.contact-item-row {
    margin-bottom: 14px;
}

.contact-item-row .label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 3px;
}

.contact-item-row .val-link {
    font-size: 16px;
    font-weight: 700;
    color: #0284c7;
}

.contact-item-row .val-text {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
}

.contact-notice-box, .contact-custom-order-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 16px;
    padding: 24px;
    margin: 25px 0;
}

.contact-highlight-email {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #dcfce7;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.contact-highlight-email .email-link {
    color: #15803d;
    font-size: 17px;
    text-decoration: underline;
}

/* ========================================================
   6. STRICT HORIZONTAL PAGINATION
   ======================================================== */
.screen-reader-text {
    display: none !important;
}

.pagination, .navigation.pagination, .paginate-links {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    margin: 15px 0 45px !important;
    width: 100% !important;
}

.pagination .nav-links, .paginate-links .nav-links {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

.pagination .page-numbers, .paginate-links .page-numbers {
    height: 40px !important;
    min-width: 40px !important;
    padding: 0 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    border-radius: 20px !important;
    background: var(--primary-cyan) !important;
    color: #0f172a !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    border: none !important;
}

.pagination .page-numbers.current, .paginate-links .page-numbers.current {
    background: var(--brand-dark) !important;
    color: #ffffff !important;
}

.pagination .page-numbers:hover, .paginate-links .page-numbers:hover {
    background: var(--primary-hover) !important;
    color: #000000 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.pagination .page-numbers.prev, .pagination .page-numbers.next,
.paginate-links .page-numbers.prev, .paginate-links .page-numbers.next {
    background: #0284c7 !important;
    color: #ffffff !important;
    padding: 0 16px !important;
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    gap: 8px;
    list-style: none;
    margin: 15px 0 20px;
    font-size: 14px;
    flex-wrap: wrap;
}

.breadcrumbs .lib_crumbs_link {
    color: var(--text-muted);
}

.breadcrumbs .lib_crumbs_link:hover {
    color: var(--brand-green);
}

/* ========================================================
   7. FOOTER (raskraski.world exact layout)
   ======================================================== */
.footer {
    background: #f1f5f9;
    border-top: 4px solid var(--brand-dark);
    padding: 35px 0 20px;
    margin-top: auto;
}

.footer-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 16px;
}

.footer .row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

.footer-col-1 {
    flex: 0 0 200px;
}

.footer-col-2 {
    flex: 1;
    min-width: 280px;
}

.footer-col-3 {
    flex: 1;
    min-width: 280px;
}

.footer-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--brand-dark);
    margin-bottom: 10px;
    display: block;
}

.footer_text {
    font-size: 13px;
    line-height: 1.6;
    color: #64748b;
}

.footer-search-box form {
    display: flex;
    gap: 6px;
    margin-bottom: 15px;
}

.reciewed {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.reciewed a {
    color: #0284c7;
    font-weight: 700;
    font-size: 14px;
}

.reciewed a:hover {
    color: var(--brand-green);
}

.all-rights {
    text-align: center;
    border-top: 1px solid #cbd5e1;
    padding-top: 15px;
    margin-top: 25px;
    font-size: 13px;
    color: #64748b;
    width: 100%;
}

/* ========================================================
   8. 100% COMPLETE MOBILE RESPONSIVENESS
   ======================================================== */
@media (max-width: 995px) {
    .zhanry-list-terms .child-term {
        width: calc(33.333% - 11px);
    }
    .category-raskraski {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    body {
        background-image: none;
    }

    .firs-line-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .header_logo_container {
        justify-content: center;
    }

    .header_logo {
        max-height: 48px;
    }

    .navbar-search {
        max-width: 100%;
    }

    .header-menu-container {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .header-menu-container::-webkit-scrollbar {
        display: none;
    }

    .header-menu {
        flex-wrap: nowrap;
        justify-content: flex-start;
    }

    .for-boys-girls {
        flex-direction: column;
        gap: 16px;
    }

    .banner-img-box {
        height: 180px;
    }

    .category-raskraski {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .zhanry-list-terms .child-term {
        width: calc(50% - 8px);
    }

    .single-main-action-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-action-print, .btn-action-download {
        width: 100%;
        justify-content: center;
        padding: 13px 20px;
    }

    .single-coloring-card-main {
        padding: 20px 14px;
    }

    .footer .row {
        flex-direction: column;
        gap: 20px;
    }

    .all-rights {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .category-raskraski a.single-virsh-front span {
        font-size: 13px;
        padding: 0 6px;
    }

    .raskraski-po-vozrasty a {
        padding: 8px 14px;
        font-size: 14px;
    }
}

/* ========================================================
   8. FAVORITES & ONLINE COLORING STUDIO MODULE STYLES
   ======================================================== */
.fav-count-badge {
    display: inline-block;
    background: #ff2d55;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 12px;
    margin-left: 4px;
    vertical-align: middle;
}

/* Card Favorite Heart Overlay */
.card-fav-btn-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 15;
    pointer-events: auto;
}

.btn-favorite-toggle {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(8px) !important;
    border: 2px solid #ffffff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    outline: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.btn-favorite-toggle:hover {
    transform: scale(1.18) !important;
    background: #ffffff !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22) !important;
}

.btn-favorite-toggle.active {
    background: #fff0f3 !important;
    border-color: #ffb3c1 !important;
    box-shadow: 0 4px 16px rgba(255, 45, 85, 0.4) !important;
}

.btn-favorite-toggle .heart-svg {
    width: 18px !important;
    height: 18px !important;
    transition: all 0.2s ease !important;
}

.btn-favorite-toggle .heart-svg path {
    stroke: #64748b !important;
    fill: transparent !important;
    transition: all 0.2s ease !important;
}

.btn-favorite-toggle:hover .heart-svg path {
    stroke: #ff2d55 !important;
}

.btn-favorite-toggle.active .heart-svg path {
    fill: #ff2d55 !important;
    stroke: #ff2d55 !important;
}

/* Mini Top Action Favorite Button (Single Page) */
.btn-mini-action.btn-favorite-toggle {
    width: auto !important;
    height: auto !important;
    border-radius: 30px !important;
    padding: 8px 18px !important;
    background: #fff0f3 !important;
    color: #ff2d55 !important;
    border: 1px solid #ffccd5 !important;
    box-shadow: none !important;
    gap: 6px !important;
}

.btn-mini-action.btn-favorite-toggle:hover {
    background: #ff2d55 !important;
    color: #ffffff !important;
    border-color: #ff2d55 !important;
    transform: translateY(-2px) !important;
}

.btn-mini-action.btn-favorite-toggle:hover .heart-svg path {
    stroke: #ffffff !important;
}

.btn-mini-action.btn-favorite-toggle.active .heart-svg path {
    fill: #ff2d55 !important;
    stroke: #ff2d55 !important;
}

.btn-mini-action.btn-favorite-toggle.active:hover .heart-svg path {
    fill: #ffffff !important;
    stroke: #ffffff !important;
}

/* Shiny Online Coloring Action Button */
.btn-color-online {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 14px 30px !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    font-family: inherit !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 50%, #f43f5e 100%) !important;
    border: none !important;
    border-radius: 50px !important;
    cursor: pointer !important;
    text-decoration: none !important;
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.35) !important;
    transition: all 0.25s ease !important;
}

.btn-color-online:hover {
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 10px 25px rgba(236, 72, 153, 0.45) !important;
    color: #ffffff !important;
}

/* Modals Overlay Base */
.colorwisp-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(6px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 15px;
}

.colorwisp-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.colorwisp-modal-dialog {
    background: #ffffff;
    border-radius: 24px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    animation: modalPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalPop {
    from { transform: scale(0.9) translateY(20px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.colorwisp-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid #f1f5f9;
}

.colorwisp-modal-header h2 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 800;
    color: #1e293b;
}

.colorwisp-modal-close {
    background: #f1f5f9;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 800;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.colorwisp-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.colorwisp-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

/* Favorites Modal Specifics */
.fav-actions-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.btn-batch-print {
    background: linear-gradient(135deg, #0284c7, #00b4d8);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
    transition: all 0.2s ease;
}

.btn-batch-print:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.4);
}

.btn-clear-favs {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #cbd5e1;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}

.btn-clear-favs:hover {
    background: #fee2e2;
    color: #ef4444;
    border-color: #fca5a5;
}

.fav-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}

.fav-modal-card {
    position: relative;
    background: #f8fafc;
    border-radius: 16px;
    padding: 10px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.fav-modal-card:hover {
    transform: translateY(-3px);
    border-color: #cbd5e1;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
}

.fav-modal-card img {
    width: 100%;
    height: 140px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 8px;
}

.fav-card-title {
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-remove-fav {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ef4444;
    color: #ffffff;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
}

.fav-empty-state {
    text-align: center;
    padding: 40px 20px;
}

.fav-empty-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
}

/* Card Favorite Heart Overlay & Active Red Heart CSS */
.card-fav-btn-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 15;
}

.btn-favorite-toggle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    outline: none;
    padding: 0;
}

.btn-favorite-toggle:hover {
    transform: scale(1.18);
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(255, 45, 85, 0.3);
}

.btn-favorite-toggle .heart-svg {
    transition: all 0.25s ease;
}

.btn-favorite-toggle .heart-svg path {
    stroke: #ff2d55;
    fill: transparent;
    transition: all 0.25s ease;
}

.btn-favorite-toggle:hover .heart-svg path {
    fill: rgba(255, 45, 85, 0.25);
}

.btn-favorite-toggle.active {
    background: #ffffff;
    box-shadow: 0 6px 20px rgba(255, 45, 85, 0.4);
    border-color: #ff2d55;
    transform: scale(1.05);
}

.btn-favorite-toggle.active .heart-svg path {
    fill: #ff2d55 !important;
    stroke: #ff2d55 !important;
}

/* Online Coloring Studio Specifics */
.studio-modal-dialog {
    max-width: 1100px;
    height: 92vh;
}

.studio-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: #0f172a;
    color: #ffffff;
}

.studio-title {
    font-size: 16px;
    font-weight: 800;
    color: #f8fafc;
}

.studio-header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-studio-export {
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 13px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-studio-print {
    background: #0284c7;
    color: #ffffff;
}

.btn-studio-download {
    background: #10b981;
    color: #ffffff;
}

.studio-body {
    display: flex;
    flex: 1;
    background: #1e293b;
    overflow: hidden;
}

.studio-toolbar-left {
    width: 80px;
    background: #0f172a;
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    border-right: 1px solid #334155;
}

.studio-tool-btn, .studio-action-btn {
    width: 60px;
    height: 60px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 14px;
    color: #cbd5e1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.studio-tool-btn span, .studio-action-btn span {
    font-size: 10px;
    font-weight: 700;
    margin-top: 2px;
}

.studio-tool-btn:hover, .studio-action-btn:hover {
    background: #334155;
    color: #ffffff;
}

.studio-tool-btn.active {
    background: #3b82f6;
    color: #ffffff;
    border-color: #60a5fa;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.5);
}

.studio-divider {
    width: 100%;
    border: none;
    border-top: 1px solid #334155;
    margin: 5px 0;
}

.studio-canvas-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    position: relative;
    background: #1e293b;
}

#colorwispCanvas {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    cursor: crosshair;
    max-width: 100%;
    max-height: 100%;
    touch-action: none;
}

.studio-loader {
    position: absolute;
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;
}

.studio-toolbar-right {
    width: 180px;
    background: #0f172a;
    padding: 15px;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #334155;
    overflow-y: auto;
}

.studio-section-label {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.studio-palette-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 15px;
}

.palette-swatch {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.palette-swatch:hover {
    transform: scale(1.2);
}

.palette-swatch.active {
    border-color: #ffffff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
    transform: scale(1.15);
}

.studio-color-picker-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 700;
}

.studio-color-picker-box input[type="color"] {
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    background: transparent;
}

.studio-slider {
    width: 100%;
    accent-color: #3b82f6;
}

@media (max-width: 768px) {
    .studio-modal-overlay {
        padding: 0 !important;
        margin: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background: #0f172a !important;
    }

    .studio-modal-dialog {
        max-width: 100vw !important;
        width: 100vw !important;
        height: 100vh !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
        border: none !important;
        box-shadow: none !important;
    }

    .studio-header {
        height: 48px !important;
        min-height: 48px !important;
        padding: 6px 12px !important;
        background: #090d16 !important;
    }

    .studio-title {
        font-size: 13px !important;
        font-weight: 700 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 150px !important;
    }

    .btn-studio-export {
        padding: 6px 12px !important;
        font-size: 12px !important;
    }

    .studio-body {
        flex-direction: column !important;
        height: calc(100vh - 48px) !important;
        background: #0f172a !important;
    }

    .studio-canvas-container {
        order: 1 !important;
        flex: 1 !important;
        width: 100% !important;
        height: 100% !important;
        padding: 6px !important;
        background: #0f172a !important;
    }

    .studio-toolbar-left {
        order: 2 !important;
        width: 100% !important;
        height: 54px !important;
        min-height: 54px !important;
        flex-direction: row !important;
        border-right: none !important;
        border-top: 1px solid #1e293b !important;
        padding: 4px 8px !important;
        justify-content: space-around !important;
        gap: 6px !important;
        background: #090d16 !important;
    }

    .studio-tool-btn, .studio-action-btn {
        width: 44px !important;
        height: 44px !important;
        border-radius: 10px !important;
        font-size: 16px !important;
    }

    .studio-tool-btn span, .studio-action-btn span {
        font-size: 9px !important;
    }

    .studio-divider {
        display: none !important;
    }

    .studio-toolbar-right {
        order: 3 !important;
        width: 100% !important;
        height: 56px !important;
        min-height: 56px !important;
        flex-direction: row !important;
        border-left: none !important;
        border-top: 1px solid #334155 !important;
        padding: 6px 10px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        align-items: center !important;
        gap: 12px !important;
        background: #1e293b !important;
        -webkit-overflow-scrolling: touch;
    }

    .studio-section-label {
        display: none !important;
    }

    .studio-palette-grid {
        display: flex !important;
        flex-direction: row !important;
        gap: 8px !important;
        flex-wrap: nowrap !important;
        margin: 0 !important;
    }

    .palette-swatch {
        min-width: 38px !important;
        width: 38px !important;
        height: 38px !important;
        flex-shrink: 0 !important;
    }

    .studio-color-picker-box label {
        display: none !important;
    }

    .studio-color-picker-box input[type="color"] {
        width: 38px !important;
        height: 38px !important;
        flex-shrink: 0 !important;
    }

    .studio-slider {
        display: none !important;
    }
}

/* ========================================================
   9. PERFECT A4 PRINTING STYLES (@media print)
   ======================================================== */
@media print {
    @page {
        size: A4 portrait;
        margin: 6mm 8mm;
    }

    html, body {
        background: #ffffff !important;
        background-image: none !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        height: 100% !important;
    }

    header, footer, .breadcrumbs, .single-coloring-header, 
    .single-main-action-buttons, .related-coloring-section, 
    .single-print-instructions, .load-more-container, .paginate-links,
    .navbar-search, .header-menu-container, script {
        display: none !important;
    }

    .container, .single-coloring-page, .single-coloring-card-main, 
    .single-image-preview-frame {
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .single-coloring-img {
        display: block !important;
        width: auto !important;
        max-width: 98% !important;
        max-height: 94vh !important;
        margin: 0 auto !important;
        object-fit: contain !important;
        box-shadow: none !important;
        border: none !important;
        page-break-inside: avoid;
    }
}

/* ==========================================
   AGE FILTER BAR & RANDOM SPINNER PILLS
   ========================================== */
.age-filter-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    margin-top: 6px;
    margin-bottom: 12px;
}
.age-filter-bar::-webkit-scrollbar { display: none; }

.age-filter-label {
    font-weight: 800;
    color: #475569;
    font-size: 0.92rem;
    margin-right: 4px;
}

.age-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.2s ease;
    border: 1.5px solid transparent;
    box-shadow: 0 2px 5px rgba(0,0,0,0.04);
}

.age-pill-toddler { background: #fff3bf; color: #856404; border-color: #ffe066; }
.age-pill-toddler:hover { background: #ffe066; transform: translateY(-1px); }

.age-pill-kids { background: #e7f5ff; color: #1971c2; border-color: #a5d8ff; }
.age-pill-kids:hover { background: #a5d8ff; transform: translateY(-1px); }

.age-pill-older { background: #f3d9fa; color: #9c36b5; border-color: #eebefa; }
.age-pill-older:hover { background: #eebefa; transform: translateY(-1px); }

.age-pill-antistress { background: #e6fcf5; color: #0ca678; border-color: #96f2d7; }
.age-pill-antistress:hover { background: #96f2d7; transform: translateY(-1px); }

.age-pill-random { 
    background: linear-gradient(135deg, #ff007f, #7a00df); 
    color: #ffffff !important; 
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(122, 0, 223, 0.3);
}
.age-pill-random:hover { 
    transform: translateY(-2px) scale(1.03); 
    box-shadow: 0 6px 16px rgba(122, 0, 223, 0.45);
}

/* ==========================================
   INTERACTIVE JIGSAW PUZZLE MODAL
   ========================================== */
.cw-puzzle-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 15px;
}

.cw-puzzle-content {
    background: #ffffff;
    border-radius: 24px;
    padding: 25px;
    max-width: 680px;
    width: 100%;
    position: relative;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.cw-puzzle-close {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 28px; font-weight: 800;
    border: none; background: transparent;
    cursor: pointer; color: #64748b;
}

.cw-puzzle-title {
    font-size: 1.25rem; font-weight: 800; color: #1e293b; margin-bottom: 12px;
}

.cw-puzzle-controls {
    display: flex; gap: 8px; justify-content: center; align-items: center; margin-bottom: 15px;
}

.btn-puzzle-level {
    padding: 6px 14px; border-radius: 50px; border: 1.5px solid #cbd5e1;
    background: #f8fafc; color: #475569; font-weight: 700; cursor: pointer;
}
.btn-puzzle-level.active {
    background: #7a00df; color: #ffffff; border-color: #7a00df;
}

.cw-puzzle-board {
    background: #f1f5f9; border-radius: 16px; padding: 10px; display: inline-block;
}

#cwPuzzleCanvas {
    max-width: 100%; height: auto; border-radius: 12px; background: #ffffff; touch-action: none;
}

.cw-puzzle-victory {
    background: #dcfce7; color: #166534; font-weight: 800; padding: 12px; border-radius: 12px; margin-top: 15px; font-size: 1.1rem;
}

/* Single Page Interactive FAQ Accordion */
.faq-accordion-item summary::-webkit-details-marker,
.faq-accordion-item summary::marker {
    display: none;
}
.faq-accordion-item[open] summary .faq-icon {
    transform: rotate(180deg);
}
.faq-accordion-item[open] {
    border-color: #0284c7 !important;
    background-color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.08);
}

/* ==========================================================================
   KAZKY (FAIRY TALES) SECTION STYLES - 100% UKRAINIAN & HUMAN DESIGN
   ========================================================================== */
.kazky-archive-container,
.single-kazka-container {
    margin-top: 25px;
    margin-bottom: 60px;
}

.kazky-hero-header {
    background: linear-gradient(135deg, #fff7ed 0%, #fef3c7 50%, #fed7aa 100%);
    border: 2px solid #fdba74;
    border-radius: 24px;
    padding: 35px 30px;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 25px rgba(234, 88, 12, 0.08);
}

.kazky-hero-badge {
    display: inline-block;
    background: #ea580c;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.kazky-hero-title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 900;
    color: #7c2d12;
    margin-bottom: 15px;
    line-height: 1.25;
}

.kazky-hero-desc {
    max-width: 780px;
    margin: 0 auto 25px auto;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #9a3412;
    font-weight: 600;
}

.kazky-categories-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.kazky-pill {
    background: #ffffff;
    color: #7c2d12;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 30px;
    border: 1.5px solid #fdba74;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.kazky-pill:hover,
.kazky-pill.active {
    background: #ea580c;
    color: #ffffff;
    border-color: #ea580c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.25);
}

/* Filter Toolbar */
.kazky-filter-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
    background: #ffffff;
    padding: 14px 20px;
    border-radius: 16px;
    border: 1px solid #fed7aa;
}

.kazky-search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 260px;
    color: #ea580c;
}

.kazky-search-box input {
    width: 100%;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    background: transparent;
}

.kazky-count-info {
    font-size: 0.9rem;
    color: #9a3412;
}

/* Kazky Grid */
.kazky-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.kazka-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1.5px solid #ffedd5;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.kazka-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(234, 88, 12, 0.12);
    border-color: #fdba74;
}

.kazka-card-thumb-wrap {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #fef3c7;
}

.kazka-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.kazka-card:hover .kazka-card-img {
    transform: scale(1.06);
}

.kazka-badge-time {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.kazka-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.kazka-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 0.8rem;
    font-weight: 700;
}

.kazka-tag-cat {
    color: #ea580c;
}

.kazka-tag-age {
    color: #0284c7;
}

.kazka-card-title {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 6px;
}

.kazka-card-title a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.2s;
}

.kazka-card-title a:hover {
    color: #ea580c;
}

.kazka-card-author {
    font-size: 0.85rem;
    font-weight: 700;
    color: #9a3412;
    margin-bottom: 10px;
}

.kazka-card-excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 16px;
    flex: 1;
}

.kazka-card-footer {
    margin-top: auto;
}

.btn-read-kazka {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.95rem;
    padding: 10px 16px;
    border-radius: 12px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(234, 88, 12, 0.25);
    transition: all 0.2s ease;
}

.btn-read-kazka:hover {
    background: linear-gradient(135deg, #c2410c 0%, #ea580c 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(234, 88, 12, 0.35);
}

/* Single Fairy Tale Reader */
.single-kazka-container {
    max-width: 880px;
}

.kazka-reading-card {
    background: #ffffff;
    border-radius: 28px;
    border: 2px solid #fed7aa;
    padding: clamp(20px, 5vw, 45px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
    transition: background 0.3s, color 0.3s;
}

.kazka-header {
    border-bottom: 2px solid #ffedd5;
    padding-bottom: 25px;
    margin-bottom: 25px;
}

.kazka-meta-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.kazka-meta-pills span,
.kazka-meta-pills a {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 800;
    text-decoration: none;
}

.pill-cat {
    background: #ffedd5;
    color: #c2410c;
}

.pill-time {
    background: #f1f5f9;
    color: #334155;
}

.pill-age {
    background: #e0f2fe;
    color: #0369a1;
}

.kazka-main-title {
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    font-weight: 900;
    color: #1e293b;
    line-height: 1.25;
    margin-bottom: 12px;
}

.kazka-author-line {
    font-size: 1rem;
    color: #9a3412;
    margin-bottom: 20px;
}

.kazka-reading-tools {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    background: #fefce8;
    border: 1px solid #fef08a;
    padding: 10px 16px;
    border-radius: 14px;
}

.tool-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tool-label {
    font-size: 0.85rem;
    font-weight: 800;
    color: #854d0e;
    margin-right: 4px;
}

.btn-tool {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 5px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-tool.active,
.btn-tool:hover {
    background: #ea580c;
    border-color: #ea580c;
    color: #ffffff;
}

.btn-night-mode {
    background: #334155;
    color: #ffffff;
    border-color: #334155;
}

.btn-night-mode:hover {
    background: #1e293b;
}

/* Illustration */
.kazka-illustration-frame {
    margin: 30px 0;
    text-align: center;
    border-radius: 20px;
    overflow: hidden;
    background: #fef3c7;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.kazka-featured-img {
    max-width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
    display: inline-block;
    border-radius: 20px;
}

/* Text Body */
.kazka-text-body {
    line-height: 1.9;
    color: #1e293b;
    margin-bottom: 35px;
}

.kazka-text-body p {
    margin-bottom: 20px;
}

.kazka-text-body blockquote {
    background: #fff7ed;
    border-left: 4px solid #ea580c;
    padding: 16px 20px;
    border-radius: 0 12px 12px 0;
    margin: 25px 0;
    font-style: italic;
    color: #7c2d12;
}

/* Font Sizes */
.font-size-sm { font-size: 17px; }
.font-size-md { font-size: 20px; }
.font-size-lg { font-size: 23px; }

/* Night / Evening Reading Mode */
.reading-mode-night {
    background: #27272a !important;
    border-color: #3f3f46 !important;
    color: #f4f4f5 !important;
}

.reading-mode-night .kazka-main-title,
.reading-mode-night .kazka-text-body,
.reading-mode-night .kazka-card-title a {
    color: #f4f4f5 !important;
}

.reading-mode-night .kazka-text-body blockquote {
    background: #3f3f46;
    color: #fed7aa;
}

.reading-mode-night .kazka-reading-tools {
    background: #3f3f46;
    border-color: #52525b;
}

.reading-mode-night .tool-label {
    color: #fef08a;
}

/* Moral Box */
.kazka-moral-box {
    display: flex;
    gap: 16px;
    background: #fef3c7;
    border: 2px solid #fde047;
    border-radius: 18px;
    padding: 22px 25px;
    margin: 35px 0;
}

.moral-icon {
    font-size: 2.2rem;
    line-height: 1;
}

.moral-title {
    display: block;
    font-size: 1.1rem;
    font-weight: 900;
    color: #854d0e;
    margin-bottom: 6px;
}

.moral-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #713f12;
    margin: 0;
}

/* Coloring Bridge Banner */
.kazka-coloring-bridge-card {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    border: 2px solid #7dd3fc;
    border-radius: 20px;
    padding: 30px 25px;
    margin: 35px 0;
    text-align: center;
}

.bridge-eyebrow {
    display: inline-block;
    background: #0284c7;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.kazka-coloring-bridge-card h3 {
    font-size: 1.45rem;
    font-weight: 900;
    color: #0369a1;
    margin-bottom: 10px;
}

.kazka-coloring-bridge-card p {
    max-width: 650px;
    margin: 0 auto 20px auto;
    font-size: 0.95rem;
    color: #075985;
    line-height: 1.6;
}

.bridge-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-bridge-print {
    background: #0284c7;
    color: #ffffff;
    font-weight: 800;
    padding: 12px 22px;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
    transition: all 0.2s;
}

.btn-bridge-print:hover {
    background: #0369a1;
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-bridge-catalog {
    background: #ffffff;
    color: #0369a1;
    font-weight: 800;
    padding: 12px 22px;
    border-radius: 12px;
    text-decoration: none;
    border: 1.5px solid #7dd3fc;
    transition: all 0.2s;
}

.btn-bridge-catalog:hover {
    background: #f0f9ff;
    color: #0369a1;
}

/* Footer Nav */
.kazka-footer-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding-top: 25px;
    border-top: 2px solid #ffedd5;
}

.btn-back-to-all {
    font-weight: 800;
    color: #ea580c;
    text-decoration: none;
}

.btn-share-kazka {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #334155;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-share-kazka:hover {
    background: #e2e8f0;
}

/* Bottom CTA on Archive */
.kazky-coloring-cta-banner {
    background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
    border: 2px solid #fdba74;
    border-radius: 24px;
    padding: 35px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-top: 50px;
}

.cta-eyebrow {
    display: inline-block;
    background: #ea580c;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.kazky-coloring-cta-banner h3 {
    font-size: 1.6rem;
    font-weight: 900;
    color: #7c2d12;
    margin-bottom: 10px;
}

.kazky-coloring-cta-banner p {
    font-size: 1rem;
    color: #9a3412;
    line-height: 1.6;
    margin-bottom: 20px;
}

.cta-buttons-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-cta-gold {
    background: #ea580c;
    color: #ffffff;
    font-weight: 800;
    padding: 12px 22px;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
    transition: all 0.2s;
}

.btn-cta-gold:hover {
    background: #c2410c;
    color: #ffffff;
}

.btn-cta-sub {
    background: #ffffff;
    color: #7c2d12;
    font-weight: 800;
    padding: 12px 22px;
    border-radius: 12px;
    text-decoration: none;
    border: 1.5px solid #fdba74;
    transition: all 0.2s;
}

.btn-cta-sub:hover {
    background: #fff7ed;
    color: #7c2d12;
}

.cta-icon-side {
    font-size: 4rem;
    line-height: 1;
}

@media (max-width: 768px) {
    .kazky-coloring-cta-banner {
        flex-direction: column;
        text-align: center;
    }
    .cta-buttons-row {
        justify-content: center;
    }
    .cta-icon-side {
        display: none;
    }
}

