/* ========================================
   TZIVONI THEME - MAIN STYLESHEET
   Hebrew RTL Coloring Pages Theme
   ======================================== */

/* ---------- CSS Variables ---------- */
:root {
    --tz-primary: #FF6B6B;
    --tz-primary-dark: #E85555;
    --tz-secondary: #4ECDC4;
    --tz-secondary-dark: #3BB8B0;
    --tz-accent: #FFE66D;
    --tz-accent-dark: #F5D94E;
    --tz-purple: #A78BFA;
    --tz-pink: #F472B6;
    --tz-blue: #60A5FA;
    --tz-orange: #FB923C;
    --tz-green: #34D399;
    --tz-dark: #1E293B;
    --tz-dark-light: #334155;
    --tz-gray: #64748B;
    --tz-gray-light: #94A3B8;
    --tz-gray-lighter: #CBD5E1;
    --tz-gray-bg: #F1F5F9;
    --tz-white: #FFFFFF;
    --tz-border: #E2E8F0;
    --tz-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --tz-shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --tz-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
    --tz-shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
    --tz-radius: 12px;
    --tz-radius-sm: 8px;
    --tz-radius-lg: 16px;
    --tz-radius-xl: 24px;
    --tz-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --tz-font-body: 'Heebo', 'Segoe UI', sans-serif;
    --tz-font-heading: 'Rubik', 'Heebo', sans-serif;
    --tz-container: 1280px;
    --tz-sidebar-width: 320px;
    --tz-header-height: 72px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--tz-font-body);
    color: var(--tz-dark);
    background: var(--tz-gray-bg);
    line-height: 1.7;
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--tz-font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--tz-dark);
}

/* ---------- Container ---------- */
.tz-container {
    max-width: var(--tz-container);
    margin: 0 auto;
    padding: 0 24px;
}

.tz-container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   HEADER & MEGA MENU
   ======================================== */

.tz-header {
    background: var(--tz-white);
    box-shadow: var(--tz-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--tz-primary);
    transition: box-shadow 0.25s ease;
}

.tz-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--tz-header-height);
    gap: 24px;
    padding-block: 10px;
    transition: min-height 0.25s ease, padding-block 0.25s ease;
}

/* Desktop: shrink header once the user starts scrolling */
@media (min-width: 769px) {
    .tz-header.tz-header-scrolled .tz-header-inner {
        min-height: 56px;
        padding-block: 4px;
    }

    .tz-header.tz-header-scrolled .tz-logo img,
    .tz-header.tz-header-scrolled .tz-logo .custom-logo {
        max-height: 68px;
    }

    .tz-header.tz-header-scrolled .tz-logo-text {
        font-size: 1.5rem;
    }

    .tz-header.tz-header-scrolled .tz-header-search input[type="search"] {
        padding: 6px 16px;
        font-size: 0.9rem;
    }

    .tz-header.tz-header-scrolled .tz-header-search button {
        padding: 6px 14px;
    }

    .tz-header.tz-header-scrolled {
        box-shadow: var(--tz-shadow-md);
    }
}

/* Logo */
.tz-header .tz-container-wide {
    padding-right: 12px;
}

.tz-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 1 520px;
    min-width: 0;
}

.tz-logo .custom-logo-link,
.tz-logo .tz-logo-text-link {
    display: flex;
    align-items: center;
    line-height: 0;
    max-width: 100%;
    text-decoration: none;
}

.tz-logo img,
.tz-logo .custom-logo {
    display: block;
    height: auto;
    width: auto;
    max-height: 132px;
    max-width: min(100%, 520px);
    object-fit: contain;
    transition: max-height 0.25s ease, max-width 0.25s ease;
}

.tz-logo-text {
    font-family: var(--tz-font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--tz-primary), var(--tz-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    transition: font-size 0.25s ease;
}

/* Search in Header */
.tz-header-search {
    flex: 1 1 360px;
    max-width: 520px;
}

.tz-header-search form {
    display: flex;
    align-items: center;
    background: var(--tz-gray-bg);
    border-radius: 50px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: var(--tz-transition);
}

.tz-header-search form:focus-within {
    border-color: var(--tz-primary);
    background: var(--tz-white);
}

.tz-header-search input[type="search"] {
    border: none;
    background: transparent;
    padding: 10px 20px;
    font-size: 0.95rem;
    width: 100%;
    font-family: var(--tz-font-body);
    outline: none;
    direction: rtl;
}

.tz-header-search button {
    background: var(--tz-primary);
    border: none;
    color: white;
    padding: 10px 18px;
    cursor: pointer;
    transition: var(--tz-transition);
    display: flex;
    align-items: center;
}

.tz-header-search button:hover {
    background: var(--tz-primary-dark);
}

/* Mega Menu Navigation */
.tz-mega-nav {
    background: var(--tz-dark);
    position: sticky;
    top: var(--tz-header-actual-h, 72px);
    z-index: 999;
    transition: top 0.25s ease;
}

.tz-mega-nav-inner {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: nowrap;
}

.tz-mega-nav-item {
    position: relative;
    flex-shrink: 0;
}

.tz-mega-nav-item > a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 14px;
    color: var(--tz-white);
    font-weight: 600;
    font-size: 0.92rem;
    white-space: nowrap;
    transition: var(--tz-transition);
    border-bottom: 3px solid transparent;
}

.tz-mega-nav-item > a:hover,
.tz-mega-nav-item.active > a {
    background: rgba(255,255,255,0.08);
    border-bottom-color: var(--tz-primary);
    color: var(--tz-accent);
}

.tz-mega-nav-item > a .arrow {
    font-size: 0.7em;
    transition: transform 0.3s;
}

.tz-mega-nav-item:hover > a .arrow {
    transform: rotate(180deg);
}

/* Mega Menu Dropdown */
.tz-mega-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 700px;
    max-width: 900px;
    background: var(--tz-white);
    border-radius: 0 0 var(--tz-radius) var(--tz-radius);
    box-shadow: var(--tz-shadow-xl);
    padding: 28px;
    display: none;
    z-index: 1000;
    border-top: 3px solid var(--tz-primary);
    animation: megaSlideDown 0.25s ease-out;
}

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

.tz-mega-nav-item:hover .tz-mega-dropdown {
    display: block;
}

.tz-mega-columns {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.tz-mega-column h4 {
    font-size: 0.95rem;
    color: var(--tz-primary);
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--tz-gray-bg);
}

.tz-mega-column ul {
    list-style: none;
}

.tz-mega-column ul li a {
    display: block;
    padding: 5px 0;
    color: var(--tz-dark-light);
    font-size: 0.9rem;
    transition: var(--tz-transition);
}

.tz-mega-column ul li a:hover {
    color: var(--tz-primary);
    padding-right: 8px;
}

/* Mobile Menu Toggle */
.tz-mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--tz-dark);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
}

/* ========================================
   BREADCRUMBS
   ======================================== */

.tz-breadcrumbs {
    background: var(--tz-white);
    padding: 12px 0;
    border-bottom: 1px solid var(--tz-border);
    font-size: 0.88rem;
}

.tz-breadcrumbs-list {
    list-style: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.tz-breadcrumbs-list li {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--tz-gray);
}

.tz-breadcrumbs-list li a {
    color: var(--tz-gray);
}

.tz-breadcrumbs-list li a:hover {
    color: var(--tz-primary);
}

.tz-breadcrumbs-list li.current {
    color: var(--tz-dark);
    font-weight: 600;
}

.tz-breadcrumbs-sep {
    color: var(--tz-gray-light);
    font-size: 0.75em;
}

/* ========================================
   PAGE HERO / TITLE SECTIONS
   ======================================== */

.tz-page-hero {
    background: linear-gradient(135deg, var(--tz-primary) 0%, var(--tz-purple) 50%, var(--tz-secondary) 100%);
    padding: 40px 0;
    color: var(--tz-white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tz-page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80"><circle cx="40" cy="40" r="2" fill="white" opacity="0.1"/></svg>');
    background-size: 40px 40px;
}

.tz-page-hero h1 {
    font-size: 2.2rem;
    color: var(--tz-white);
    position: relative;
    text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.tz-page-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-top: 8px;
    position: relative;
}

/* ========================================
   CONTENT LAYOUTS
   ======================================== */

.tz-content-wrap {
    display: grid;
    grid-template-columns: 1fr var(--tz-sidebar-width);
    gap: 32px;
    padding: 40px 0;
}

.tz-content-wrap.no-sidebar {
    grid-template-columns: 1fr;
}

.tz-main-content {
    min-width: 0;
}

/* ========================================
   CATEGORY GRID (Homepage & Category)
   ======================================== */

.tz-section {
    padding: 48px 0;
}

.tz-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.tz-section-title {
    font-size: 1.6rem;
    position: relative;
    padding-right: 16px;
}

.tz-section-title::before {
    content: '';
    position: absolute;
    right: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    background: var(--tz-primary);
    border-radius: 4px;
}

.tz-section-link {
    color: var(--tz-primary);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.tz-section-link:hover {
    gap: 8px;
}

/* Category Cards */
.tz-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
}

.tz-cat-grid.large {
    grid-template-columns: repeat(5, 1fr);
    gap: 28px;
}

@media (max-width: 1200px) {
    .tz-cat-grid.large {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
}

@media (max-width: 900px) {
    .tz-cat-grid.large {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
}

.tz-cat-card {
    background: var(--tz-white);
    border-radius: var(--tz-radius);
    overflow: hidden;
    box-shadow: var(--tz-shadow);
    transition: var(--tz-transition);
    text-align: center;
    display: flex;
    flex-direction: column;
}

.tz-cat-card:hover {
    box-shadow: var(--tz-shadow-lg);
    transform: translateY(-4px);
}

.tz-cat-card-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--tz-gray-bg);
    position: relative;
}

.tz-cat-grid.large .tz-cat-card-body {
    padding: 18px 18px 22px;
}

.tz-cat-grid.large .tz-cat-card-title {
    font-size: 1.15rem;
}

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

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

.tz-cat-card-count {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--tz-primary);
    color: white;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
}

.tz-cat-card-body {
    padding: 14px 16px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tz-cat-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--tz-dark);
    margin: 0;
}

.tz-cat-card a {
    color: inherit;
    display: block;
}

/* ========================================
   COLORING PAGE GRID
   ======================================== */

.tz-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.tz-page-card {
    background: var(--tz-white);
    border-radius: var(--tz-radius);
    overflow: hidden;
    box-shadow: var(--tz-shadow);
    transition: var(--tz-transition);
    display: flex;
    flex-direction: column;
}

.tz-page-card:hover {
    box-shadow: var(--tz-shadow-lg);
    transform: translateY(-3px);
}

.tz-page-card-img {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--tz-white);
    border-bottom: 1px solid var(--tz-border);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.tz-page-card-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.tz-page-card:hover .tz-page-card-img img {
    transform: scale(1.04);
}

.tz-page-card-body {
    padding: 14px 16px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tz-page-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--tz-dark);
}

.tz-page-card-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.tz-page-card-actions .btn-download,
.tz-page-card-actions .btn-view {
    flex: 1;
    padding: 8px 12px;
    border-radius: var(--tz-radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    font-family: var(--tz-font-body);
    transition: var(--tz-transition);
}

.tz-page-card-actions .btn-download {
    background: var(--tz-primary);
    color: white;
}

.tz-page-card-actions .btn-download:hover {
    background: var(--tz-primary-dark);
}

.tz-page-card-actions .btn-view {
    background: var(--tz-gray-bg);
    color: var(--tz-dark);
}

.tz-page-card-actions .btn-view:hover {
    background: var(--tz-gray-lighter);
}

/* ========================================
   SINGLE COLORING PAGE
   ======================================== */

.tz-single-page {
    background: var(--tz-white);
    border-radius: var(--tz-radius-lg);
    overflow: hidden;
    box-shadow: var(--tz-shadow-md);
}

.tz-single-image {
    background: #FAFAFA;
    padding: 40px;
    text-align: center;
    border-bottom: 1px solid var(--tz-border);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tz-single-image img {
    max-width: 600px;
    max-height: 700px;
    object-fit: contain;
    border-radius: var(--tz-radius-sm);
}

.tz-single-actions {
    display: flex;
    gap: 12px;
    padding: 24px 32px;
    border-bottom: 1px solid var(--tz-border);
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.tz-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    font-family: var(--tz-font-body);
    transition: var(--tz-transition);
    text-decoration: none;
}

.tz-btn-primary {
    background: var(--tz-primary);
    color: white;
    box-shadow: 0 4px 14px rgba(255, 107, 107, 0.35);
}

.tz-btn-primary:hover {
    background: var(--tz-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    color: white;
}

.tz-btn-secondary {
    background: var(--tz-secondary);
    color: white;
}

.tz-btn-secondary:hover {
    background: var(--tz-secondary-dark);
    transform: translateY(-2px);
    color: white;
}

.tz-btn-outline {
    background: transparent;
    color: var(--tz-primary);
    border: 2px solid var(--tz-primary);
}

.tz-btn-outline:hover {
    background: var(--tz-primary);
    color: white;
}

.tz-btn-sm {
    padding: 8px 18px;
    font-size: 0.88rem;
}

.tz-btn-lg {
    padding: 16px 40px;
    font-size: 1.15rem;
}

/* ========================================
   SIDEBAR
   ======================================== */

.tz-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.tz-sidebar-widget {
    background: var(--tz-white);
    border-radius: var(--tz-radius);
    box-shadow: var(--tz-shadow);
    overflow: hidden;
}

.tz-sidebar-widget-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--tz-primary), var(--tz-purple));
    color: white;
}

.tz-sidebar-widget-header h3 {
    font-size: 1.05rem;
    color: white;
    margin: 0;
}

.tz-sidebar-widget-body {
    padding: 16px 20px;
}

.tz-sidebar-cat-list {
    list-style: none;
}

.tz-sidebar-cat-list li {
    border-bottom: 1px solid var(--tz-border);
}

.tz-sidebar-cat-list li:last-child {
    border-bottom: none;
}

.tz-sidebar-cat-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 4px;
    color: var(--tz-dark-light);
    font-size: 0.92rem;
    transition: var(--tz-transition);
}

.tz-sidebar-cat-list li a:hover {
    color: var(--tz-primary);
    padding-right: 8px;
}

.tz-sidebar-cat-list li a .count {
    background: var(--tz-gray-bg);
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--tz-gray);
}

/* Sidebar Related Pages Grid */
.tz-sidebar-pages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.tz-sidebar-page-card {
    border-radius: var(--tz-radius-sm);
    overflow: hidden;
    border: 1px solid var(--tz-border);
    transition: var(--tz-transition);
}

.tz-sidebar-page-card:hover {
    border-color: var(--tz-primary);
}

.tz-sidebar-page-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    padding: 6px;
    background: white;
}

.tz-sidebar-page-card .title {
    padding: 6px 8px;
    font-size: 0.78rem;
    text-align: center;
    font-weight: 600;
    color: var(--tz-dark);
    background: var(--tz-gray-bg);
}

/* Ad Placeholder */
.tz-ad-slot {
    background: var(--tz-gray-bg);
    border: 2px dashed var(--tz-gray-lighter);
    border-radius: var(--tz-radius);
    padding: 20px;
    text-align: center;
    color: var(--tz-gray-light);
    font-size: 0.85rem;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   DESCRIPTION SECTION (Bottom)
   ======================================== */

.tz-description-section {
    background: var(--tz-white);
    border-radius: var(--tz-radius-lg);
    padding: 40px;
    margin-top: 40px;
    box-shadow: var(--tz-shadow);
}

.tz-description-section h2 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--tz-dark);
}

.tz-description-section .content {
    color: var(--tz-dark-light);
    line-height: 1.9;
    font-size: 1rem;
}

.tz-description-section .content p {
    margin-bottom: 12px;
}

.tz-description-section .content h3 {
    margin: 20px 0 10px;
    font-size: 1.2rem;
}

/* ========================================
   BLOG POST
   ======================================== */

.tz-blog-post {
    background: var(--tz-white);
    border-radius: var(--tz-radius-lg);
    overflow: hidden;
    box-shadow: var(--tz-shadow-md);
}

.tz-blog-post-hero {
    aspect-ratio: 21/9;
    overflow: hidden;
}

.tz-blog-post-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tz-blog-post-content {
    padding: 36px 40px;
}

.tz-blog-post-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--tz-gray);
    font-size: 0.88rem;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tz-blog-post-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.tz-blog-post-content h1 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.tz-blog-post-body {
    line-height: 1.9;
    color: var(--tz-dark-light);
    font-size: 1.05rem;
}

.tz-blog-post-body p {
    margin-bottom: 16px;
}

.tz-blog-post-body h2 {
    margin: 32px 0 16px;
    font-size: 1.5rem;
}

.tz-blog-post-body h3 {
    margin: 24px 0 12px;
    font-size: 1.25rem;
}

.tz-blog-post-body img {
    border-radius: var(--tz-radius);
    margin: 24px 0;
}

.tz-blog-post-body blockquote {
    border-right: 4px solid var(--tz-primary);
    padding: 16px 24px;
    margin: 24px 0;
    background: var(--tz-gray-bg);
    border-radius: 0 var(--tz-radius) var(--tz-radius) 0;
    font-style: italic;
    color: var(--tz-gray);
}

/* Related Articles */
.tz-related-articles {
    margin-top: 20px;
}

.tz-related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.tz-related-article-card {
    display: flex;
    gap: 12px;
    padding: 10px;
    border-radius: var(--tz-radius-sm);
    border: 1px solid var(--tz-border);
    transition: var(--tz-transition);
}

.tz-related-article-card:hover {
    border-color: var(--tz-primary);
    background: var(--tz-gray-bg);
}

.tz-related-article-card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--tz-radius-sm);
    flex-shrink: 0;
}

.tz-related-article-card .info h4 {
    font-size: 0.88rem;
    margin-bottom: 4px;
    line-height: 1.4;
}

.tz-related-article-card .info .date {
    font-size: 0.78rem;
    color: var(--tz-gray);
}

/* ========================================
   THANK YOU PAGE
   ======================================== */

.tz-thank-you {
    text-align: center;
    padding: 60px 24px;
    max-width: 680px;
    margin: 0 auto;
}

.tz-thank-you-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--tz-green), var(--tz-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 2.6rem;
    color: white;
    animation: bounceIn 0.6s ease-out;
}

@keyframes bounceIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.tz-thank-you h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

.tz-thank-you p {
    font-size: 1.1rem;
    color: var(--tz-gray);
    margin-bottom: 28px;
    line-height: 1.6;
}

.tz-thank-you-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.tz-thank-you-buttons .tz-btn {
    min-width: 180px;
    text-align: center;
    white-space: nowrap;
}

/* ========================================
   AI GENERATOR (Frontend)
   ======================================== */

.tz-ai-generator {
    background: var(--tz-white);
    border-radius: var(--tz-radius-lg);
    padding: 40px;
    box-shadow: var(--tz-shadow-md);
    text-align: center;
    max-width: 800px;
    margin: 40px auto;
}

.tz-ai-generator h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.tz-ai-generator p {
    color: var(--tz-gray);
    margin-bottom: 24px;
}

.tz-ai-input-group {
    display: flex;
    gap: 12px;
    max-width: 600px;
    margin: 0 auto;
}

.tz-ai-input-group input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid var(--tz-border);
    border-radius: 50px;
    font-size: 1rem;
    font-family: var(--tz-font-body);
    direction: rtl;
    outline: none;
    transition: var(--tz-transition);
}

.tz-ai-input-group input:focus {
    border-color: var(--tz-primary);
}

.tz-ai-result {
    margin-top: 32px;
    padding: 20px;
    background: var(--tz-gray-bg);
    border-radius: var(--tz-radius);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tz-ai-result img {
    max-width: 400px;
    border-radius: var(--tz-radius);
}

/* ========================================
   PAGINATION
   ======================================== */

.tz-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.tz-pagination a,
.tz-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--tz-radius-sm);
    font-weight: 600;
    font-size: 0.92rem;
    transition: var(--tz-transition);
}

.tz-pagination a {
    background: var(--tz-white);
    color: var(--tz-dark);
    border: 1px solid var(--tz-border);
}

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

.tz-pagination span.current {
    background: var(--tz-primary);
    color: white;
}

/* ========================================
   FOOTER
   ======================================== */

.tz-footer {
    background: var(--tz-dark);
    color: var(--tz-gray-lighter);
    padding: 48px 0 0;
    margin-top: 60px;
}

.tz-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 36px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.tz-footer-col h4 {
    color: var(--tz-white);
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.tz-footer-col p {
    font-size: 0.92rem;
    line-height: 1.8;
}

.tz-footer-col ul {
    list-style: none;
}

.tz-footer-col ul li a {
    color: var(--tz-gray-lighter);
    font-size: 0.92rem;
    padding: 4px 0;
    display: block;
    transition: var(--tz-transition);
}

.tz-footer-col ul li a:hover {
    color: var(--tz-primary);
    padding-right: 6px;
}

.tz-footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 0.88rem;
    color: var(--tz-gray);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .tz-content-wrap {
        grid-template-columns: 1fr;
    }

    .tz-mega-dropdown {
        min-width: 100%;
        position: fixed;
        right: 0;
        left: 0;
    }
}

@media (max-width: 768px) {
    :root {
        --tz-header-height: 72px;
    }

    .tz-mobile-toggle {
        display: block;
    }

    .tz-header-search {
        display: none;
    }

    /* Mobile logo stays 1.5x larger than original */
    .tz-logo img,
    .tz-logo .custom-logo {
        max-height: 110px;
        max-width: min(100%, 320px);
    }

    .tz-logo-text {
        font-size: 1.75rem;
    }

    /* Lock body scroll when mobile menu is open */
    body.tz-menu-open {
        overflow: hidden;
    }

    /* Mobile mega-nav: empty & hidden when closed */
    .tz-mega-nav {
        background: transparent;
    }

    .tz-mega-nav-inner {
        display: none;
    }

    /* When open: fixed overlay that stays put on scroll */
    .tz-mega-nav.open {
        position: fixed;
        top: var(--tz-header-actual-h, 88px);
        right: 0;
        left: 0;
        bottom: 0;
        background: var(--tz-dark);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        z-index: 998;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    }

    .tz-mega-nav.open .tz-mega-nav-inner {
        display: flex;
        flex-direction: column;
        padding-bottom: 24px;
    }

    .tz-mega-dropdown {
        position: static;
        min-width: 100%;
        box-shadow: none;
        border-radius: 0;
        border-top: none;
    }

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

    .tz-page-hero h1 {
        font-size: 1.6rem;
    }

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

    .tz-cat-grid.large {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

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

    .tz-section-title {
        font-size: 1.3rem;
    }

    .tz-description-section {
        padding: 24px;
    }

    .tz-single-image {
        padding: 20px;
    }

    .tz-blog-post-content {
        padding: 24px;
    }

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

    .tz-related-grid {
        grid-template-columns: 1fr;
    }

    .tz-thank-you h1 {
        font-size: 1.5rem;
    }

    .tz-thank-you {
        padding: 40px 16px;
    }

    .tz-thank-you-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
        margin-bottom: 16px;
    }

    .tz-thank-you p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .tz-thank-you-buttons {
        flex-direction: column;
        align-items: center;
    }

    .tz-thank-you-buttons .tz-btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .tz-cat-grid,
    .tz-page-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .tz-cat-grid.large {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .tz-cat-card-title {
        font-size: 0.9rem;
    }

    .tz-cat-card-body {
        padding: 10px 10px 14px;
    }

    .tz-single-actions {
        flex-direction: column;
    }

    .tz-footer-grid {
        grid-template-columns: 1fr;
    }

    .tz-ai-input-group {
        flex-direction: column;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.hidden { display: none; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* Loading spinner */
.tz-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--tz-gray-lighter);
    border-top-color: var(--tz-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   ADMIN BAR OFFSET
   ======================================== */

body.admin-bar .tz-header {
    top: 32px;
}

@media (max-width: 782px) {
    /* WP admin bar is not fixed on mobile — it scrolls away with the page.
       Keeping `top: 46px` here would leave an empty 46px gap above the
       sticky header once the admin bar scrolls off. Pin the header flush
       to the viewport top instead. */
    body.admin-bar .tz-header {
        top: 0;
    }

    body.admin-bar .tz-mega-nav {
        top: var(--tz-header-actual-h, 72px);
    }
}
