@charset "UTF-8";

/*
Theme Name:         Kids Coloring Theme
Theme URI:          https://example.com/kids-coloring-theme
Author:             Your Name
Author URI:         https://example.com
Description:        A playful and minimal WordPress theme designed for kids' coloring page websites
Tags:               kids, children, coloring, minimal, colorful, educational
Version:            1.0.0
Requires at least:  5.6.5
Tested up to:       6.0
Requires PHP:       8.0
License:            AGPL-3.0-or-later
License URI:        https://www.gnu.org/licenses/agpl-3.0.en.html
Text Domain:        kids-coloring
Domain Path:        /languages

Kids Coloring Theme WordPress Theme, (C) 2025
Kids Coloring Theme is distributed under the terms of the AGPL-3.0-or-later.

*/


/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300;400;500;600;700&family=Comfortaa:wght@300;400;500;600;700&display=swap');

/* CSS Variables for easy color management */
:root {
    --primary-color: #FF6B6B;
    --secondary-color: #4ECDC4;
    --accent-color: #95E77E;
    --text-color: #333333;
    --light-bg: #FFF5F5;
    --white: #FFFFFF;
    --border-radius: 15px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Comfortaa', cursive;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.site-header {
    background-color: var(--white);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-logo {
    display: flex;
    align-items: center;
}

.site-logo img {
    max-height: 60px;
    width: auto;
}

.site-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.site-tagline {
    display: none;
}

/* Navigation Menu */
.main-navigation {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

/* Ensure nav-menu class also gets flex display */
.main-navigation .nav-menu {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-color);
    padding: 10px 15px;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    display: block;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    background-color: var(--accent-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* Category Menu Specific Styles */
.menu-item-category .category-count {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.75rem;
    margin-left: 5px;
    font-weight: 600;
    vertical-align: middle;
}

.menu-divider {
    width: 2px;
    height: 30px;
    background: linear-gradient(to bottom, transparent, var(--accent-color), transparent);
    margin: 0 15px;
    list-style: none;
}

/* Dropdown Menu Styles */
.main-navigation .menu-item-has-children {
    position: relative;
}

.main-navigation .menu-item-has-children > a::after {
    content: '▼';
    margin-left: 5px;
    font-size: 0.7em;
    color: var(--accent-color);
}

/* Support both .sub-menu and .children classes for WordPress menus */
.main-navigation .sub-menu,
.main-navigation ul.children {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 999;
    list-style: none;
    display: block !important; /* Override any display:flex from parent rules */
}

.main-navigation .menu-item-has-children:hover > .sub-menu,
.main-navigation .menu-item-has-children:hover > ul.children,
.main-navigation .menu-item-has-children.keyboard-focus > .sub-menu,
.main-navigation .menu-item-has-children.keyboard-focus > ul.children {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-navigation .sub-menu li,
.main-navigation ul.children li {
    padding: 0;
    margin: 0;
    display: block; /* Ensure list items are block level in dropdowns */
}

.main-navigation .sub-menu a,
.main-navigation ul.children a {
    padding: 10px 20px;
    display: block;
    color: var(--text-color);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border-radius: 0;
}

.main-navigation .sub-menu a:hover,
.main-navigation ul.children a:hover {
    background-color: var(--light-bg);
    padding-left: 25px;
    color: var(--primary-color);
    transform: none;
}

.main-navigation .sub-menu .category-count {
    float: right;
    margin-top: 2px;
}

/* Third level dropdown support */
.main-navigation .sub-menu .menu-item-has-children > .sub-menu,
.main-navigation ul.children .menu-item-has-children > ul.children {
    top: 0;
    left: 100%;
    margin-left: 5px;
    margin-top: -10px;
}

.main-navigation .sub-menu .menu-item-has-children:hover > .sub-menu,
.main-navigation ul.children .menu-item-has-children:hover > ul.children {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Arrow indicator for nested dropdowns */
.main-navigation .sub-menu .menu-item-has-children > a::after,
.main-navigation ul.children .menu-item-has-children > a::after {
    content: '▶';
    float: right;
    margin-left: auto;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background-color: var(--primary-color);
    border: none;
    padding: 12px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 48px;
    height: 48px;
    position: relative;
}

.menu-toggle:hover {
    background-color: var(--secondary-color);
    transform: scale(1.05);
}

/* Hamburger Icon */
.hamburger-icon,
.hamburger-icon::before,
.hamburger-icon::after {
    display: block;
    background-color: var(--white);
    height: 3px;
    width: 24px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger-icon {
    position: relative;
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    position: absolute;
    left: 0;
}

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

.hamburger-icon::after {
    top: 8px;
}

/* Animate to X when menu is open */
.main-navigation.toggled .hamburger-icon {
    background-color: transparent;
}

.main-navigation.toggled .hamburger-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.main-navigation.toggled .hamburger-icon::after {
    transform: rotate(-45deg);
    top: 0;
}

/* Main Content Area */
.site-main {
    min-height: 70vh;
    padding: 60px 0;
}

.page-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
}

.page-title:after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    margin: 20px auto 0;
    border-radius: 2px;
}

/* Content Cards */
.coloring-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.coloring-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.coloring-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.coloring-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.coloring-card-content {
    padding: 20px;
}

.coloring-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.coloring-card p {
    color: #666;
    margin-bottom: 15px;
}

.btn-download {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 25px;
    font-family: 'Fredoka', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-download:hover {
    background-color: var(--primary-color);
    transform: scale(1.05);
}

/* Footer Styles */
.site-footer {
    background: linear-gradient(135deg, #F8FFFE 0%, #FFF5F5 100%);
    padding: 50px 0 30px;
    margin-top: 80px;
    border-top: 3px solid var(--accent-color);
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.footer-widget {
    padding: 25px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.footer-widget h3,
.footer-widget .widget-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--primary-color);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
}

.footer-widget p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 15px;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget li {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
}

.footer-widget li:before {
    content: '🌟';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 0.8rem;
}

.footer-widget a {
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.footer-widget a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

/* Widget specific styles */
.footer-widget .textwidget {
    color: var(--text-color);
}

.footer-widget .widget {
    margin-bottom: 20px;
}

.footer-widget select,
.footer-widget input[type="text"],
.footer-widget input[type="search"],
.footer-widget input[type="email"] {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid var(--secondary-color);
    border-radius: 25px;
    font-family: 'Comfortaa', cursive;
    margin-bottom: 10px;
}

.footer-widget button,
.footer-widget input[type="submit"] {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 10px 25px;
    border: none;
    border-radius: 25px;
    font-family: 'Fredoka', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.footer-widget button:hover,
.footer-widget input[type="submit"]:hover {
    background-color: var(--primary-color);
    transform: scale(1.05);
}

/* Calendar Widget */
.footer-widget .wp-calendar-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 2px;
}

.footer-widget .wp-calendar-table th,
.footer-widget .wp-calendar-table td {
    padding: 5px;
    text-align: center;
    color: var(--text-color);
}

.footer-widget .wp-calendar-table th {
    font-weight: 600;
    color: var(--primary-color);
}

/* Recent Posts Widget */
.footer-widget .widget_recent_entries ul li {
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px dotted rgba(0, 0, 0, 0.1);
}

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

.footer-widget .post-date {
    display: block;
    font-size: 0.85rem;
    color: #999;
    margin-top: 5px;
}

/* Categories Widget */
.footer-widget .widget_categories ul li {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-widget .cat-item-count {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Tag Cloud Widget */
.footer-widget .tagcloud a {
    display: inline-block;
    background-color: var(--light-bg);
    padding: 5px 12px;
    margin: 3px;
    border-radius: 15px;
    font-size: 0.9rem !important;
    color: var(--text-color) !important;
    transition: all 0.3s ease;
}

.footer-widget .tagcloud a:hover {
    background-color: var(--secondary-color);
    color: var(--white) !important;
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-color);
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #FFF5F5 0%, #FFF 50%, #F0FFFF 100%);
    border-radius: 30px;
    margin-bottom: 60px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #666;
    margin-top: 20px;
}

/* Categories Section */
.categories-section {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 3px solid var(--accent-color);
}

.categories-section h2 {
    text-align: center;
    margin-bottom: 40px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.category-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.category-card h3 {
    color: var(--white);
    margin-bottom: 10px;
}

.category-card .category-count {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

/* Pagination */
.pagination {
    text-align: center;
    margin-top: 50px;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    background-color: var(--white);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    color: var(--primary-color);
    font-family: 'Fredoka', sans-serif;
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination .current {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Newsletter Form */
.newsletter-form {
    margin-top: 15px;
}

.newsletter-form input[type="email"] {
    padding: 10px 15px;
    border: 2px solid var(--secondary-color);
    border-radius: 25px;
    width: 100%;
    margin-bottom: 10px;
    font-family: 'Comfortaa', cursive;
}

.newsletter-form button {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 10px 25px;
    border: none;
    border-radius: 25px;
    font-family: 'Fredoka', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background-color: var(--primary-color);
    transform: scale(1.05);
}

/* No posts message */
.no-posts {
    text-align: center;
    padding: 60px 20px;
    background-color: var(--light-bg);
    border-radius: 20px;
}

.no-posts p {
    font-size: 1.2rem;
    color: var(--text-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        position: relative;
    }

    .menu-toggle {
        display: block;
    }

    .main-navigation {
        position: static;
        flex-grow: 0;
    }

    .main-navigation .nav-menu,
    .main-navigation ul#primary-menu {
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        background: linear-gradient(135deg, var(--white) 0%, #f8f9fa 100%);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
        border-radius: 16px;
        z-index: 999;
        display: none;
        margin: 0 15px;
        padding: 0;
        overflow: hidden;
        animation: slideDown 0.3s ease;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .main-navigation.toggled .nav-menu,
    .main-navigation.toggled ul#primary-menu {
        display: block !important;
    }

    .main-navigation ul {
        flex-direction: column;
        padding: 10px 0;
    }

    .main-navigation .menu-item {
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .main-navigation .menu-item:last-child {
        border-bottom: none;
    }

    .main-navigation .menu-item a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 20px;
        font-size: 1rem;
        color: var(--text-color);
        transition: all 0.2s ease;
    }

    .main-navigation .menu-item a:hover {
        background-color: var(--primary-color);
        color: var(--white);
        padding-left: 25px;
        transform: none;
    }

    .main-navigation .menu-item.current-menu-item > a {
        background-color: var(--accent-color);
        color: var(--white);
    }

    .main-navigation .menu-divider {
        height: 1px;
        width: calc(100% - 40px);
        margin: 8px 20px;
        background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    }

    .main-navigation .sub-menu,
    .main-navigation ul.children {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: rgba(0, 0, 0, 0.03);
        width: 100%;
        padding-left: 0;
        display: none !important;
        border-radius: 0;
    }

    .main-navigation .sub-menu a,
    .main-navigation ul.children a {
        padding-left: 35px;
        font-size: 0.95rem;
    }

    .main-navigation .menu-item-has-children.active > .sub-menu,
    .main-navigation .menu-item-has-children.active > ul.children {
        display: block !important;
    }

    .main-navigation .menu-item-has-children > a::after {
        content: '+';
        font-size: 1.2rem;
        font-weight: 600;
        transition: transform 0.3s ease;
    }

    .main-navigation .menu-item-has-children.active > a::after,
    .main-navigation .page_item_has_children.active > a::after {
        content: '−';
    }

    /* Nested sub-menus on mobile */
    .main-navigation .sub-menu .sub-menu,
    .main-navigation ul.children ul.children {
        position: static;
        margin-left: 0;
        padding-left: 0;
        background-color: rgba(0, 0, 0, 0.05);
    }

    .main-navigation .sub-menu .sub-menu a {
        padding-left: 50px;
    }

    /* Category count badge on mobile */
    .main-navigation .category-count {
        font-size: 0.7rem;
        padding: 2px 8px;
        margin-left: auto;
        margin-right: 10px;
    }

    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .footer-widgets {
        grid-template-columns: 1fr;
    }

    .coloring-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Cool Centered Search Box Styles
   ======================================== */

.search-section {
    padding: 80px 20px;
    position: relative;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.search-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(78, 205, 196, 0.3) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(255, 107, 107, 0.3) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(149, 231, 126, 0.2) 0%, transparent 60%);
    animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% { transform: scale(1) rotate(0deg); }
    33% { transform: scale(1.1) rotate(120deg); }
    66% { transform: scale(1.05) rotate(240deg); }
}

.search-box-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

/* Floating emojis animation */
.floating-emoji {
    position: absolute;
    font-size: 3rem;
    animation: float 15s infinite ease-in-out;
    opacity: 0.8;
    z-index: 1;
}

.emoji-1 {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.emoji-2 {
    top: 20%;
    right: 8%;
    animation-delay: 2.5s;
}

.emoji-3 {
    bottom: 15%;
    left: 10%;
    animation-delay: 5s;
}

.emoji-4 {
    bottom: 25%;
    right: 5%;
    animation-delay: 7.5s;
}

.emoji-5 {
    top: 50%;
    left: -5%;
    animation-delay: 10s;
}

.emoji-6 {
    top: 40%;
    right: -3%;
    animation-delay: 12.5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-30px) translateX(20px) rotate(10deg);
    }
    50% {
        transform: translateY(20px) translateX(-15px) rotate(-5deg);
    }
    75% {
        transform: translateY(-15px) translateX(10px) rotate(3deg);
    }
}

.search-box-wrapper {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 30px;
    padding: 3px;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb, #f5576c, #fda085);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.search-box-inner {
    background: white;
    border-radius: 27px;
    padding: 40px;
    position: relative;
}

/* Animated title */
.search-title {
    font-family: 'Fredoka', cursive;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.2;
}

.title-word {
    display: inline-block;
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4, #95E77E, #FFD93D, #FF6B6B);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientMove 3s ease infinite;
    font-weight: 700;
    margin: 0 5px;
}

.title-word:nth-child(2) { animation-delay: 0.2s; }
.title-word:nth-child(3) { animation-delay: 0.4s; }
.title-word:nth-child(4) { animation-delay: 0.6s; }

@keyframes gradientMove {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Search input container */
.search-input-container {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 60px;
    padding: 5px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.search-input-container:focus-within {
    border-color: #4ECDC4;
    box-shadow: 0 0 0 4px rgba(78, 205, 196, 0.1), inset 0 2px 10px rgba(0, 0, 0, 0.08);
}

.search-icon-left {
    padding: 0 15px;
    color: #999;
    display: flex;
    align-items: center;
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 15px 5px;
    font-size: 1.2rem;
    font-family: 'Comfortaa', cursive;
    color: #333;
}

.search-input:focus {
    outline: none;
}

.search-button {
    padding: 15px 35px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    font-family: 'Fredoka', cursive;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.search-button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(118, 75, 162, 0.4);
}

.button-sparkles {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
}

.search-button:hover .button-sparkles {
    opacity: 1;
}

.sparkle {
    position: absolute;
    animation: sparkleMove 1.5s infinite;
}

.sparkle:nth-child(1) {
    top: -10px;
    left: -20px;
    animation-delay: 0s;
}

.sparkle:nth-child(2) {
    top: -10px;
    right: -20px;
    animation-delay: 0.5s;
}

.sparkle:nth-child(3) {
    bottom: -10px;
    left: 50%;
    animation-delay: 1s;
}

@keyframes sparkleMove {
    0% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1) rotate(180deg);
    }
    100% {
        opacity: 0;
        transform: scale(0) rotate(360deg);
    }
}

/* Quick search section */
.quick-searches {
    margin-top: 25px;
}

.quick-search-label {
    text-align: center;
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.quick-search-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.quick-search-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.quick-search-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quick-search-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-color: #4ECDC4;
}

.quick-search-btn:hover::before {
    opacity: 0.1;
}

.btn-emoji {
    font-size: 2rem;
    margin-bottom: 5px;
    display: block;
    transition: transform 0.3s ease;
}

.quick-search-btn:hover .btn-emoji {
    transform: rotate(10deg) scale(1.2);
}

.btn-text {
    font-size: 0.85rem;
    color: #555;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* SEO text */
.search-seo-text {
    text-align: center;
    color: #888;
    font-size: 0.85rem;
    margin-top: 20px;
    line-height: 1.4;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .search-section {
        padding: 60px 15px;
        min-height: 500px;
    }

    .floating-emoji {
        font-size: 2rem;
    }

    .search-title {
        font-size: 2rem;
    }

    .search-box-inner {
        padding: 30px 20px;
    }

    .quick-search-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .search-section {
        padding: 40px 10px;
    }

    .search-title {
        font-size: 1.5rem;
    }

    .title-word {
        display: block;
    }

    .search-input-container {
        flex-direction: column;
        border-radius: 20px;
        padding: 10px;
    }

    .search-icon-left {
        display: none;
    }

    .search-input {
        width: 100%;
        text-align: center;
        padding: 12px;
    }

    .search-button {
        width: 100%;
        margin-top: 10px;
    }

    .quick-search-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .btn-emoji {
        font-size: 1.5rem;
    }

    .floating-emoji {
        display: none;
    }
}

/* ========================================
   Enhanced Colorful Homepage Design
   ======================================== */

/* Rainbow Gradient Background for Body */
body {
    background: linear-gradient(135deg, #fff9f0 0%, #fff0f5 25%, #f0f8ff 50%, #f0fff0 75%, #fffff0 100%);
    background-attachment: fixed;
}

/* Colorful Section Dividers */
.section-divider {
    height: 8px;
    background: linear-gradient(90deg,
        #FF6B6B 0%,
        #FFE66D 16.66%,
        #95E77E 33.33%,
        #4ECDC4 50%,
        #667eea 66.66%,
        #f093fb 83.33%,
        #FF6B6B 100%);
    background-size: 200% 100%;
    animation: rainbowSlide 4s linear infinite;
    border-radius: 4px;
    margin: 40px 0;
}

@keyframes rainbowSlide {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* Enhanced Hero Section - More Colorful */
.hero-section {
    text-align: center;
    padding: 80px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border-radius: 40px;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(102, 126, 234, 0.4);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-conic-gradient(
        from 0deg,
        transparent 0deg 30deg,
        rgba(255, 255, 255, 0.05) 30deg 60deg
    );
    animation: heroRotate 60s linear infinite;
}

@keyframes heroRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(255, 107, 107, 0.4) 0%, transparent 30%),
        radial-gradient(circle at 90% 80%, rgba(78, 205, 196, 0.4) 0%, transparent 30%),
        radial-gradient(circle at 50% 50%, rgba(149, 231, 126, 0.3) 0%, transparent 40%);
    pointer-events: none;
}

.hero-section .page-title {
    position: relative;
    z-index: 2;
    color: #ffffff;
    font-size: 3.5rem;
    text-shadow: 3px 5px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
    animation: titleFloat 3s ease-in-out infinite;
}

@keyframes titleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-section .page-title::after {
    display: none;
}

.hero-subtitle {
    position: relative;
    z-index: 2;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    margin-top: 15px;
    text-shadow: 1px 2px 5px rgba(0, 0, 0, 0.2);
}

/* Floating Decorations for Hero */
.hero-decoration {
    position: absolute;
    font-size: 4rem;
    opacity: 0.6;
    animation: floatAround 20s ease-in-out infinite;
    z-index: 1;
}

.hero-decoration:nth-child(1) { top: 10%; left: 5%; animation-delay: 0s; }
.hero-decoration:nth-child(2) { top: 20%; right: 10%; animation-delay: 3s; }
.hero-decoration:nth-child(3) { bottom: 15%; left: 15%; animation-delay: 6s; }
.hero-decoration:nth-child(4) { bottom: 20%; right: 5%; animation-delay: 9s; }

@keyframes floatAround {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(20px, -30px) rotate(10deg); }
    50% { transform: translate(-10px, 20px) rotate(-5deg); }
    75% { transform: translate(15px, 10px) rotate(5deg); }
}

/* Enhanced Coloring Section */
.coloring-section {
    position: relative;
    padding: 80px 0;
}

.coloring-section h2 {
    text-align: center;
    font-size: 2.8rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.coloring-section h2::after {
    content: '';
    display: block;
    width: 150px;
    height: 6px;
    background: linear-gradient(90deg, #FF6B6B, #FFE66D, #95E77E, #4ECDC4, #667eea, #f093fb);
    margin: 20px auto 0;
    border-radius: 3px;
    animation: rainbowSlide 3s linear infinite;
    background-size: 200% 100%;
}

/* Enhanced Coloring Cards - More Interactive */
.coloring-card {
    background: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 3px solid transparent;
}

.coloring-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #FF6B6B, #FFE66D, #95E77E, #4ECDC4, #667eea, #f093fb);
    background-size: 300% 100%;
    animation: gradientSlide 3s ease infinite;
    z-index: 10;
}

.coloring-card:hover {
    transform: translateY(-15px) scale(1.03) rotate(1deg);
    box-shadow:
        0 30px 60px rgba(102, 126, 234, 0.35),
        0 0 0 4px rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.3);
}

.coloring-card:hover::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, #FF6B6B, #FFE66D, #95E77E, #4ECDC4, #667eea, #f093fb);
    border-radius: 35px;
    z-index: -1;
    filter: blur(15px);
    opacity: 0.5;
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.02); }
}

.coloring-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.3s ease;
}

.coloring-card:hover img {
    transform: scale(1.1);
    filter: brightness(1.05) saturate(1.1);
}

.coloring-card-content {
    padding: 25px;
    background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
}

.coloring-card h3 a {
    background: linear-gradient(135deg, #2d3436 0%, #636e72 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
}

.coloring-card:hover h3 a {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

/* Enhanced Download Button */
.btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50px;
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.35);
}

.btn-download::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.btn-download:hover::before {
    left: 100%;
}

.btn-download:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
    background: linear-gradient(135deg, #764ba2 0%, #f093fb 100%);
    color: white;
}

/* Enhanced Categories Section */
.categories-section {
    margin-top: 100px;
    padding: 80px 40px;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 50%, #ffeaa7 100%);
    border-radius: 50px;
    position: relative;
    overflow: hidden;
}

.categories-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatBubble 10s ease-in-out infinite;
}

.categories-section::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(78, 205, 196, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatBubble 12s ease-in-out infinite reverse;
}

@keyframes floatBubble {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.1); }
}

.categories-section h2 {
    text-align: center;
    font-size: 2.8rem;
    color: #5f3dc4;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.categories-section h2::after {
    content: '';
    display: block;
    width: 120px;
    height: 6px;
    background: linear-gradient(90deg, #FF6B6B, #FFE66D, #95E77E, #4ECDC4);
    margin: 15px auto 0;
    border-radius: 3px;
}

/* Enhanced Category Cards */
.category-card {
    background: white;
    border-radius: 25px;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.category-card:hover {
    transform: translateY(-12px) scale(1.05) rotate(-2deg);
    box-shadow: 0 25px 50px rgba(102, 126, 234, 0.35);
}

.category-card:hover::before {
    opacity: 1;
}

.category-card a {
    text-decoration: none;
    display: block;
}

.category-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: #2d3436;
    transition: color 0.3s ease;
}

.category-card:hover h3 {
    color: white;
}

.category-card .category-count {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.category-card:hover .category-count {
    background: rgba(255, 255, 255, 0.95);
    color: #764ba2;
    transform: scale(1.1);
}

/* Fun Facts Section */
.fun-facts-section {
    margin: 80px 0;
    padding: 60px 40px;
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 50%, #ffecd2 100%);
    border-radius: 40px;
    position: relative;
    overflow: hidden;
}

.fun-facts-section::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 107, 107, 0.2) 0%, transparent 25%),
        radial-gradient(circle at 80% 70%, rgba(78, 205, 196, 0.2) 0%, transparent 25%),
        radial-gradient(circle at 50% 50%, rgba(102, 126, 234, 0.15) 0%, transparent 35%);
    pointer-events: none;
}

.fun-facts-title {
    text-align: center;
    font-size: 2.5rem;
    color: #5f3dc4;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.fun-facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.fun-fact-card {
    background: white;
    border-radius: 25px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.fun-fact-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    animation: rotateBg 10s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

@keyframes rotateBg {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fun-fact-card:hover::before {
    opacity: 1;
}

.fun-fact-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 45px rgba(102, 126, 234, 0.2);
}

.fun-fact-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
    display: block;
    animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.fun-fact-card:nth-child(2) .fun-fact-icon { animation-delay: 0.3s; }
.fun-fact-card:nth-child(3) .fun-fact-icon { animation-delay: 0.6s; }
.fun-fact-card:nth-child(4) .fun-fact-icon { animation-delay: 0.9s; }

.fun-fact-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    margin-bottom: 8px;
}

.fun-fact-label {
    color: #636e72;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Custom Text Section Below Pages */
.custom-text-section {
    margin: 60px 0;
    padding: 50px 40px;
    background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
    border-radius: 35px;
    position: relative;
    overflow: hidden;
}

.custom-text-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 10% 90%, rgba(255, 255, 255, 0.3) 0%, transparent 30%),
        radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.3) 0%, transparent 30%);
    pointer-events: none;
}

.custom-text-content {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.custom-text-content p {
    color: #2d3436;
    font-size: 1.15rem;
    line-height: 1.9;
    margin-bottom: 15px;
}

.custom-text-content p:last-child {
    margin-bottom: 0;
}

/* Testimonials Section */
.testimonials-section {
    margin: 80px 0;
    padding: 60px 40px;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 50%, #ff9a9e 100%);
    border-radius: 40px;
    position: relative;
    overflow: hidden;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image:
        radial-gradient(circle at 15% 25%, rgba(255, 255, 255, 0.3) 0%, transparent 25%),
        radial-gradient(circle at 85% 75%, rgba(255, 255, 255, 0.3) 0%, transparent 25%),
        radial-gradient(circle at 50% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 35%);
    pointer-events: none;
}

.testimonials-title {
    text-align: center;
    font-size: 2.5rem;
    color: #5f3dc4;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.testimonials-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 5px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 15px auto 0;
    border-radius: 3px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.testimonial-card {
    background: white;
    border-radius: 25px;
    padding: 35px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    border-radius: 25px 25px 0 0;
}

.testimonial-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 45px rgba(102, 126, 234, 0.2);
}

.testimonial-quote-icon {
    font-size: 3rem;
    line-height: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}

.testimonial-text {
    color: #2d3436;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-top: 2px solid #f0f0f0;
    padding-top: 15px;
}

.testimonial-name {
    font-weight: 700;
    color: #5f3dc4;
    font-size: 1.1rem;
}

.testimonial-role {
    color: #636e72;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Interactive Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Colorful Confetti Animation */
@keyframes confetti-fall {
    0% {
        transform: translateY(-100%) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

.confetti {
    position: fixed;
    width: 12px;
    height: 12px;
    top: -20px;
    z-index: 9999;
    pointer-events: none;
}

.confetti:nth-child(odd) {
    border-radius: 50%;
}

.confetti:nth-child(even) {
    border-radius: 2px;
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 1024px) {
    .hero-section .page-title {
        font-size: 2.5rem;
    }

    .coloring-section h2,
    .categories-section h2 {
        font-size: 2.2rem;
    }

    .fun-facts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 50px 25px;
        border-radius: 30px;
    }

    .hero-section .page-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .categories-section {
        padding: 50px 25px;
        border-radius: 35px;
    }

    .coloring-section h2,
    .categories-section h2,
    .fun-facts-title {
        font-size: 1.8rem;
    }

    .fun-facts-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .fun-fact-card {
        padding: 25px 15px;
    }

    .custom-text-section {
        padding: 35px 20px;
    }

    .custom-text-content {
        padding: 25px;
    }

    .testimonials-section {
        padding: 40px 20px;
        border-radius: 30px;
    }

    .testimonials-title {
        font-size: 1.8rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .testimonial-card {
        padding: 25px 20px;
    }
}

@media (max-width: 480px) {
    .hero-section .page-title {
        font-size: 1.6rem;
    }

    .coloring-section h2,
    .categories-section h2 {
        font-size: 1.5rem;
    }

    .fun-facts-grid {
        grid-template-columns: 1fr;
    }

    .category-card {
        padding: 25px 20px;
    }

    .category-card h3 {
        font-size: 1.2rem;
    }
}

/* ========================================
   Category Page Styles
   ======================================== */

/* Breadcrumb Navigation */
.breadcrumb {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    background: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 100%);
    border-radius: 50px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    font-family: 'Fredoka', sans-serif;
    font-size: 0.95rem;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.breadcrumb a {
    color: #5f3dc4;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 20px;
    position: relative;
}

.breadcrumb a:hover {
    background: rgba(255, 255, 255, 0.5);
    color: #e64980;
    transform: scale(1.05);
}

.breadcrumb .separator {
    color: #fd79a8;
    margin: 0 10px;
    font-weight: 700;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.breadcrumb .current {
    color: #2d3436;
    font-weight: 600;
    background: linear-gradient(45deg, #fff, rgba(255, 255, 255, 0.8));
    padding: 5px 15px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Archive Header Section */
.archive-header {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 30px;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(118, 75, 162, 0.3);
    animation: fadeInUp 0.8s ease-out;
}

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

/* Animated background pattern */
.archive-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.05) 10px,
        rgba(255, 255, 255, 0.05) 20px
    );
    animation: slidePattern 20s linear infinite;
}

@keyframes slidePattern {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.archive-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 80%, rgba(255, 107, 107, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 70% 20%, rgba(78, 205, 196, 0.3) 0%, transparent 50%);
    pointer-events: none;
}

.archive-title {
    font-size: 3rem;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
    font-weight: 700;
    line-height: 1.2;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from {
        text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.2),
                     0 0 30px rgba(255, 255, 255, 0.3);
    }
    to {
        text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.2),
                     0 0 40px rgba(255, 255, 255, 0.5),
                     0 0 50px rgba(255, 255, 255, 0.3);
    }
}

.archive-description {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px 35px;
    border-radius: 20px;
    margin: 25px auto;
    max-width: 800px;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.archive-description p {
    color: #2d3436;
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 0;
    font-family: 'Comfortaa', cursive;
}

.category-meta {
    margin-top: 30px;
    position: relative;
    z-index: 1;
}

.category-meta .post-count {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(240, 147, 251, 0.3);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.category-meta .post-count strong {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Subcategories Section */
.subcategories-section {
    margin: 60px 0;
    padding: 50px 30px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 30px;
    position: relative;
    overflow: hidden;
}

.subcategories-section::before {
    content: '🎨';
    position: absolute;
    top: -30px;
    right: 30px;
    font-size: 100px;
    opacity: 0.1;
    transform: rotate(-15deg);
}

.subcategories-section h2 {
    text-align: center;
    color: #5f3dc4;
    margin-bottom: 40px;
    font-size: 2.2rem;
    position: relative;
}

.subcategories-section h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    margin: 15px auto 0;
    border-radius: 2px;
}

.subcategory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.subcategory-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px;
    background: white;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    min-height: 120px;
}

.subcategory-card::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    transition: all 0.6s ease;
}

.subcategory-card:hover::before {
    top: -150%;
    left: -150%;
}

.subcategory-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.25);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.subcategory-card h3 {
    color: #2d3436;
    font-size: 1.3rem;
    margin-bottom: 10px;
    text-align: center;
    transition: color 0.3s ease;
    font-weight: 600;
}

.subcategory-card:hover h3 {
    color: white;
}

.subcategory-card .subcat-count {
    display: inline-block;
    background: linear-gradient(135deg, #fd79a8 0%, #e84393 100%);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.subcategory-card:hover .subcat-count {
    background: rgba(255, 255, 255, 0.9);
    color: #764ba2;
    transform: scale(1.1);
}

/* Enhanced Coloring Section */
.coloring-section {
    padding: 60px 0;
    position: relative;
}

.coloring-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 245, 245, 0.5));
    pointer-events: none;
}

/* Enhanced Coloring Grid */
.coloring-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 35px;
    margin-top: 40px;
}

/* Enhanced Coloring Card */
.coloring-card {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.coloring-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #f5576c);
    background-size: 300% 100%;
    animation: gradientSlide 3s ease infinite;
}

@keyframes gradientSlide {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.coloring-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(118, 75, 162, 0.3);
}

.coloring-card-image {
    position: relative;
    overflow: hidden;
    height: 280px;
    display: block;
    background: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 100%);
}

.coloring-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.coloring-card:hover .coloring-card-image img {
    transform: scale(1.1);
}

.coloring-card-image .overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    font-family: 'Fredoka', sans-serif;
    font-size: 1.1rem;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.coloring-card:hover .overlay-text {
    opacity: 1;
}

.coloring-card-content {
    padding: 25px;
}

.coloring-card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.coloring-card-content h3 a {
    color: #2d3436;
    text-decoration: none;
    transition: color 0.3s ease;
}

.coloring-card-content h3 a:hover {
    color: #667eea;
}

.card-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.card-meta span {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

.download-format {
    background: linear-gradient(135deg, #a8e6cf 0%, #81fbb8 100%);
    color: #27ae60;
}

.print-ready {
    background: linear-gradient(135deg, #ffd3a5 0%, #fcab81 100%);
    color: #e67e22;
}

.card-description {
    color: #636e72;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 30px;
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-download::before {
    content: '⬇';
    position: absolute;
    right: 30px;
    font-size: 1.3rem;
    animation: downloadBounce 1.5s infinite;
}

@keyframes downloadBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(3px); }
}

.btn-download:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(118, 75, 162, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* No Posts Section */
.no-posts {
    text-align: center;
    padding: 80px 40px;
    background: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 100%);
    border-radius: 30px;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
}

.no-posts::before {
    content: '😢';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 80px;
    opacity: 0.2;
    transform: rotate(-15deg);
}

.no-posts h2 {
    color: #d63031;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.no-posts p {
    color: #2d3436;
    font-size: 1.3rem;
    margin-bottom: 30px;
}

.no-posts .btn-download {
    display: inline-block;
    width: auto;
}

/* Enhanced Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 60px;
    padding: 30px 0;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    background: white;
    border: 3px solid #667eea;
    border-radius: 50%;
    color: #667eea;
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pagination .page-numbers::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover,
.pagination .current {
    color: white;
    transform: scale(1.15);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.pagination .page-numbers:hover::before,
.pagination .current::before {
    width: 100%;
    height: 100%;
}

.pagination .page-numbers span,
.pagination .page-numbers a {
    position: relative;
    z-index: 1;
}

.pagination .prev,
.pagination .next {
    min-width: auto;
    padding: 10px 25px;
    border-radius: 30px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border: none;
    color: white;
}

.pagination .prev:hover,
.pagination .next:hover {
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
}

/* SEO Content Section */
.seo-content {
    margin-top: 80px;
    padding: 60px 40px;
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border-radius: 30px;
    position: relative;
    overflow: hidden;
}

.seo-content::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.seo-content h2 {
    color: #5f3dc4;
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 30px;
}

.seo-content p {
    color: #2d3436;
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.features-list {
    background: white;
    padding: 30px;
    border-radius: 20px;
    margin-top: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.features-list h3 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.features-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    padding: 12px 0;
    color: #2d3436;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.features-list li:last-child {
    border-bottom: none;
}

.features-list li:hover {
    padding-left: 10px;
    color: #667eea;
}

/* Responsive Design for Category Page */
@media (max-width: 1024px) {
    .coloring-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 25px;
    }

    .subcategory-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .archive-header {
        padding: 40px 20px;
    }

    .archive-title {
        font-size: 2rem;
    }

    .coloring-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }

    .subcategory-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .features-list {
        padding: 20px;
    }

    .seo-content {
        padding: 40px 20px;
    }
}

@media (max-width: 480px) {
    .breadcrumb {
        font-size: 0.85rem;
        padding: 12px 20px;
    }

    .archive-title {
        font-size: 1.6rem;
    }

    .archive-description {
        padding: 20px;
    }

    .coloring-grid {
        grid-template-columns: 1fr;
    }

    .subcategory-grid {
        grid-template-columns: 1fr;
    }

    .pagination {
        flex-wrap: wrap;
    }

    .pagination .page-numbers {
        min-width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}

/* ========================================
   Social Box Styles
   ======================================== */

.social-box {
    margin-top: 15px;
}

.social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.social-icon:hover::before {
    opacity: 1;
}

.social-icon svg {
    width: 22px;
    height: 22px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(240, 147, 251, 0.4);
    color: white;
}

.social-icon:hover svg {
    transform: scale(1.1);
}

/* Platform-specific colors on hover */
.social-facebook:hover::before {
    background: linear-gradient(135deg, #1877f2 0%, #3b5998 100%);
}

.social-instagram:hover::before {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-youtube:hover::before {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
}

.social-pinterest:hover::before {
    background: linear-gradient(135deg, #e60023 0%, #bd081c 100%);
}

.social-twitter:hover::before {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
}

.social-tiktok:hover::before {
    background: linear-gradient(135deg, #000000 0%, #69c9d0 50%, #ee1d52 100%);
}

.no-social {
    color: #888;
    font-size: 0.9rem;
    font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .social-icons {
        justify-content: center;
    }

    .social-icon {
        width: 44px;
        height: 44px;
    }

    .social-icon svg {
        width: 20px;
        height: 20px;
    }
}