/*
Theme Name: Tech Unlock Hub
Theme URI: https://techunlockhub.com
Author: EGGBONE
Author URI: https://techunlockhub.com
Description: A modern, mobile-first WordPress theme built for Tech Unlock Hub — phone/router unlocking and electronics sales. Includes built-in live chat and visitor monitoring.
Version: 2.3.4
Requires at least: 6.2
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tuh-theme
Tags: one-column, two-columns, custom-logo, custom-menu, featured-images, translation-ready, responsive-layout
*/

/* ==========================================================================
   CSS VARIABLES (Design Tokens)
   ========================================================================== */

:root {
    /* Brand Colors */
    --tuh-primary: #635bff;
    --tuh-primary-hover: #524ae0;
    --tuh-primary-light: #f4f3ff;
    --tuh-success: #27ae60;
    --tuh-success-light: #eafaf1;
    --tuh-warning: #f39c12;
    --tuh-warning-light: #fef9e7;
    --tuh-error: #d63638;
    --tuh-error-light: #fceaea;

    /* Neutral Colors */
    --tuh-white: #ffffff;
    --tuh-gray-50: #f8f9fa;
    --tuh-gray-100: #f1f3f5;
    --tuh-gray-200: #e9ecef;
    --tuh-gray-300: #dee2e6;
    --tuh-gray-400: #ced4da;
    --tuh-gray-500: #adb5bd;
    --tuh-gray-600: #868e96;
    --tuh-gray-700: #495057;
    --tuh-gray-800: #343a40;
    --tuh-gray-900: #212529;

    /* Semantic */
    --tuh-bg: var(--tuh-white);
    --tuh-bg-alt: var(--tuh-gray-50);
    --tuh-bg-card: var(--tuh-white);
    --tuh-text: var(--tuh-gray-900);
    --tuh-text-secondary: var(--tuh-gray-600);
    --tuh-text-muted: var(--tuh-gray-500);
    --tuh-border: var(--tuh-gray-200);
    --tuh-shadow: 0 1px 3px rgba(0,0,0,0.08);
    --tuh-shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
    --tuh-shadow-xl: 0 20px 60px rgba(0,0,0,0.12);

    /* Button Tokens */
    --tuh-btn-bg: var(--tuh-primary);
    --tuh-btn-text: #ffffff;
    --tuh-btn-hover-bg: var(--tuh-primary-hover);
    --tuh-btn-radius: 8px;
    --tuh-btn-padding: 12px 24px;
    --tuh-btn-font-size: 14px;

    /* Sidebar */
    --tuh-sidebar-width: 320px;

    /* Top Bar */
    --tuh-topbar-bg: #1e293b;
    --tuh-topbar-text: #cbd5e1;
    --tuh-topbar-link: #e2e8f0;
    --tuh-topbar-link-hover: #ffffff;
    --tuh-topbar-font-size: 13px;

    /* Payment Provider Colors */
    --tuh-whatsapp: #25D366;
    --tuh-telegram: #0088cc;
    --tuh-stripe: #635bff;
    --tuh-binance: #fcd535;
    --tuh-paypal: #00457c;

    /* Typography — Fluid sizes using clamp() */
    --tuh-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --tuh-font-mono: "SF Mono", "Fira Code", "Consolas", monospace;
    --tuh-font-size-xs: clamp(0.7rem, 0.65rem + 0.25vw, 0.75rem);
    --tuh-font-size-sm: clamp(0.8rem, 0.75rem + 0.25vw, 0.875rem);
    --tuh-font-size-base: clamp(0.9rem, 0.85rem + 0.25vw, 1rem);
    --tuh-font-size-lg: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
    --tuh-font-size-xl: clamp(1.1rem, 1rem + 0.5vw, 1.25rem);
    --tuh-font-size-2xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
    --tuh-font-size-3xl: clamp(1.5rem, 1.2rem + 1.5vw, 2rem);
    --tuh-font-size-4xl: clamp(1.75rem, 1.3rem + 2vw, 2.5rem);
    --tuh-font-size-hero: clamp(1.75rem, 1.2rem + 3vw, 3.5rem);

    /* Spacing — Fluid */
    --tuh-gap: clamp(0.75rem, 0.5rem + 1vw, 1rem);
    --tuh-gap-lg: clamp(1.25rem, 1rem + 1.5vw, 2rem);
    --tuh-gap-xl: clamp(2rem, 1.5rem + 3vw, 4rem);
    --tuh-container: min(1200px, 95vw);
    --tuh-container-narrow: min(800px, 90vw);

    /* Borders & Radius */
    --tuh-radius: 8px;
    --tuh-radius-lg: 12px;
    --tuh-radius-xl: 16px;
    --tuh-radius-full: 9999px;

    /* Transitions */
    --tuh-transition: 0.2s ease;
    --tuh-transition-slow: 0.4s ease;

    /* Header */
    --tuh-header-height: 70px;

    /* Z-index Layers (organized scale) */
    --tuh-z-header: 100;
    --tuh-z-dropdown: 110;
    --tuh-z-mobile-menu: 200;
    --tuh-z-search-overlay: 300;
    --tuh-z-chat-widget: 400;
    --tuh-z-lightbox: 500;
    --tuh-z-modal: 600;
    --tuh-z-skip-link: 700;
    --tuh-z-preloader: 900;
}

/* Dark Mode */
[data-theme="dark"] {
    --tuh-bg: #0f0f1a;
    --tuh-bg-alt: #1a1a2e;
    --tuh-bg-card: #1e1e32;
    --tuh-text: #e8e8f0;
    --tuh-text-secondary: #a0a0b8;
    --tuh-text-muted: #6e6e88;
    --tuh-border: #2a2a40;
    --tuh-shadow: 0 1px 3px rgba(0,0,0,0.3);
    --tuh-shadow-lg: 0 10px 40px rgba(0,0,0,0.4);
    --tuh-shadow-xl: 0 20px 60px rgba(0,0,0,0.5);
    --tuh-primary-light: #1e1a3a;
    --tuh-gray-50: #16162a;
    --tuh-gray-100: #1e1e32;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-y: auto !important;
    height: 100%;
}

body {
    font-family: var(--tuh-font);
    font-size: var(--tuh-font-size-base);
    line-height: 1.6;
    color: var(--tuh-text);
    background-color: var(--tuh-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    overflow-y: auto !important;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/* Main content area — flex-grow pushes footer/copyright to bottom */
#main-content {
    flex: 1 0 auto;
}

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

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

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--tuh-primary);
    outline-offset: 2px;
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
    color: var(--tuh-text);
}

h1 { font-size: var(--tuh-font-size-hero); }
h2 { font-size: var(--tuh-font-size-3xl); }
h3 { font-size: var(--tuh-font-size-2xl); }
h4 { font-size: var(--tuh-font-size-xl); }
h5 { font-size: var(--tuh-font-size-lg); }
h6 { font-size: var(--tuh-font-size-base); }

p {
    margin-bottom: 1rem;
}

p:last-child {
    margin-bottom: 0;
}

button {
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    border: none;
    background: none;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */

.tuh-container {
    width: 100%;
    max-width: var(--tuh-container);
    margin: 0 auto;
    padding: 0 1rem;
}

.tuh-container--narrow {
    max-width: var(--tuh-container-narrow);
}

.tuh-container--full {
    max-width: 100%;
}

.tuh-section {
    padding: var(--tuh-gap-xl) 0;
}

.tuh-section--alt {
    background-color: var(--tuh-bg-alt);
}

.tuh-section__title {
    text-align: center;
    margin-bottom: 0.5rem;
}

.tuh-section__subtitle {
    text-align: center;
    color: var(--tuh-text-secondary);
    font-size: var(--tuh-font-size-lg);
    margin-bottom: var(--tuh-gap-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.tuh-grid {
    display: grid;
    gap: var(--tuh-gap-lg);
}

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

.tuh-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.tuh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--tuh-radius);
    font-weight: 600;
    font-size: var(--tuh-font-size-sm);
    text-decoration: none;
    transition: all var(--tuh-transition);
    white-space: nowrap;
    line-height: 1;
}

.tuh-btn--primary {
    background: var(--tuh-primary);
    color: var(--tuh-white);
}

.tuh-btn--primary:hover {
    background: var(--tuh-primary-hover);
    color: var(--tuh-white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 91, 255, 0.3);
}

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

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

.tuh-btn--white {
    background: var(--tuh-white);
    color: var(--tuh-primary);
}

.tuh-btn--white:hover {
    background: var(--tuh-gray-100);
    color: var(--tuh-primary-hover);
    transform: translateY(-1px);
}

.tuh-btn--lg {
    padding: 1rem 2rem;
    font-size: var(--tuh-font-size-base);
    border-radius: var(--tuh-radius-lg);
}

.tuh-btn--sm {
    padding: 0.5rem 1rem;
    font-size: var(--tuh-font-size-xs);
}

.tuh-btn--whatsapp {
    background: var(--tuh-whatsapp);
    color: var(--tuh-white);
}

.tuh-btn--whatsapp:hover {
    background: #1fb855;
    color: var(--tuh-white);
}

.tuh-btn--telegram {
    background: var(--tuh-telegram);
    color: var(--tuh-white);
}

.tuh-btn--telegram:hover {
    background: #0077b3;
    color: var(--tuh-white);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

.tuh-header {
    position: sticky;
    top: 0;
    z-index: var(--tuh-z-header);
    background: var(--tuh-bg);
    border-bottom: 1px solid var(--tuh-border);
    height: var(--tuh-header-height);
    transition: box-shadow var(--tuh-transition);
}

.tuh-header--scrolled {
    box-shadow: var(--tuh-shadow-lg);
}

.tuh-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--tuh-container);
    margin: 0 auto;
    padding: 0 1rem;
}

.tuh-header__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: var(--tuh-font-size-xl);
    color: var(--tuh-text);
    text-decoration: none;
    flex-shrink: 0;
}

.tuh-header__logo:hover {
    color: var(--tuh-primary);
}

.tuh-header__logo img {
    height: 40px;
    width: auto;
}

.tuh-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.tuh-nav__list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tuh-nav a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--tuh-text-secondary);
    font-weight: 500;
    font-size: var(--tuh-font-size-sm);
    border-radius: var(--tuh-radius);
    transition: all var(--tuh-transition);
}

.tuh-nav a:hover,
.tuh-nav .current-menu-item > a,
.tuh-nav .current_page_item > a {
    color: var(--tuh-primary);
    background: var(--tuh-primary-light);
}

/* Nav list items (WordPress outputs li > a + ul.sub-menu) */
.tuh-nav li {
    position: relative;
}

/* Dropdown arrow for parent items */
.tuh-nav .menu-item-has-children > a::after {
    content: ' ▾';
    font-size: 0.7em;
    opacity: 0.6;
}

/* Dropdown submenu */
.tuh-nav .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--tuh-bg);
    border: 1px solid var(--tuh-border);
    border-radius: var(--tuh-radius);
    box-shadow: var(--tuh-shadow-lg);
    min-width: 220px;
    padding: 0.5rem 0;
    z-index: var(--tuh-z-dropdown);
}

.tuh-nav li:hover > .sub-menu {
    display: block;
}

.tuh-nav .sub-menu a {
    padding: 0.5rem 1rem;
    font-size: var(--tuh-font-size-sm);
    white-space: nowrap;
    border-radius: 0;
}

.tuh-nav .sub-menu a:hover {
    background: var(--tuh-primary-light);
}

/* Nested submenus */
.tuh-nav .sub-menu .sub-menu {
    top: 0;
    left: 100%;
}

.tuh-header__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Quick Links — auto-fit bar between logo and actions */
.tuh-header__quick-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
    min-width: 0;
    overflow: hidden;
    padding: 0 0.5rem;
}

.tuh-quick-link {
    white-space: nowrap;
    font-size: var(--tuh-font-size-sm);
    font-weight: 500;
    color: var(--tuh-text-secondary);
    text-decoration: none;
    transition: color var(--tuh-transition);
    padding: 4px 0;
}

.tuh-quick-link:hover {
    color: var(--tuh-primary);
}

/* Pill style variant */
.tuh-header__quick-links--pill .tuh-quick-link {
    background: var(--tuh-bg-alt);
    border: 1px solid var(--tuh-border);
    border-radius: var(--tuh-radius-full);
    padding: 4px 12px;
    font-size: var(--tuh-font-size-xs);
}

.tuh-header__quick-links--pill .tuh-quick-link:hover {
    background: var(--tuh-primary);
    color: #fff;
    border-color: var(--tuh-primary);
}

/* Dark Mode Toggle */
.tuh-dark-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--tuh-radius);
    color: var(--tuh-text-secondary);
    transition: all var(--tuh-transition);
    font-size: 1.25rem;
    line-height: 1;
}

.tuh-dark-toggle:hover {
    background: var(--tuh-primary-light);
    color: var(--tuh-primary);
}

/* WP Admin bar offset */
.admin-bar .tuh-header {
    top: 32px;
}

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

/* Mobile Menu Button */
.tuh-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: var(--tuh-radius);
    color: var(--tuh-text);
    position: relative;
}

.tuh-menu-toggle__bar {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: all var(--tuh-transition);
    position: absolute;
}

.tuh-menu-toggle__bar:nth-child(1) { transform: translateY(-7px); }
.tuh-menu-toggle__bar:nth-child(2) { transform: translateY(0); }
.tuh-menu-toggle__bar:nth-child(3) { transform: translateY(7px); }

.tuh-menu-toggle.active .tuh-menu-toggle__bar:nth-child(1) {
    transform: rotate(45deg);
}
.tuh-menu-toggle.active .tuh-menu-toggle__bar:nth-child(2) {
    opacity: 0;
}
.tuh-menu-toggle.active .tuh-menu-toggle__bar:nth-child(3) {
    transform: rotate(-45deg);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.tuh-hero {
    position: relative;
    background: linear-gradient(135deg, var(--tuh-primary) 0%, #4a42d4 50%, #352fb0 100%);
    color: var(--tuh-white);
    padding: 5rem 0;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.tuh-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/><circle cx="20" cy="80" r="30" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/><circle cx="80" cy="20" r="25" fill="none" stroke="rgba(255,255,255,0.04)" stroke-width="0.5"/></svg>');
    background-size: 400px;
    opacity: 0.5;
}

.tuh-hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--tuh-gap-xl);
    align-items: center;
    max-width: var(--tuh-container);
    margin: 0 auto;
    padding: 0 1rem;
}

.tuh-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.15);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 0.4rem 1rem;
    border-radius: var(--tuh-radius-full);
    font-size: var(--tuh-font-size-sm);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.tuh-hero__title {
    font-size: var(--tuh-font-size-hero);
    color: var(--tuh-white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.tuh-hero__title span {
    display: block;
    color: rgba(255,255,255,0.7);
    font-weight: 400;
    font-size: 0.6em;
    margin-top: 0.5rem;
}

.tuh-hero__text {
    font-size: var(--tuh-font-size-lg);
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.tuh-hero__buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.tuh-hero__image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.tuh-hero__image img {
    max-width: 100%;
    border-radius: var(--tuh-radius-xl);
    box-shadow: var(--tuh-shadow-xl);
}

/* Hero stats bar */
.tuh-hero__stats {
    display: flex;
    gap: 2rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.tuh-hero__stat {
    text-align: left;
}

.tuh-hero__stat-number {
    display: block;
    font-size: var(--tuh-font-size-2xl);
    font-weight: 700;
}

.tuh-hero__stat-label {
    font-size: var(--tuh-font-size-sm);
    opacity: 0.7;
}

/* ==========================================================================
   SERVICES / FEATURES GRID
   ========================================================================== */

.tuh-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: var(--tuh-gap-lg);
}

.tuh-service-card {
    background: var(--tuh-bg-card);
    border: 1px solid var(--tuh-border);
    border-radius: var(--tuh-radius-lg);
    padding: 2rem;
    text-align: center;
    transition: all var(--tuh-transition);
}

.tuh-service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--tuh-shadow-lg);
    border-color: var(--tuh-primary);
}

.tuh-service-card__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tuh-primary-light);
    border-radius: var(--tuh-radius-lg);
    font-size: 2rem;
}

.tuh-service-card__title {
    font-size: var(--tuh-font-size-xl);
    margin-bottom: 0.75rem;
}

.tuh-service-card__text {
    color: var(--tuh-text-secondary);
    font-size: var(--tuh-font-size-sm);
    line-height: 1.6;
}

.tuh-service-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 1rem;
    font-weight: 600;
    font-size: var(--tuh-font-size-sm);
    color: var(--tuh-primary);
}

.tuh-service-card__link:hover {
    gap: 0.5rem;
}

/* ==========================================================================
   WHY CHOOSE US / TRUST SECTION
   ========================================================================== */

.tuh-trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr));
    gap: var(--tuh-gap);
    text-align: center;
}

.tuh-trust-item {
    padding: 1.5rem 1rem;
}

.tuh-trust-item__icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.tuh-trust-item__number {
    font-size: var(--tuh-font-size-3xl);
    font-weight: 700;
    color: var(--tuh-primary);
    margin-bottom: 0.25rem;
}

.tuh-trust-item__label {
    color: var(--tuh-text-secondary);
    font-size: var(--tuh-font-size-sm);
}

/* ==========================================================================
   HOW IT WORKS
   ========================================================================== */

.tuh-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: var(--tuh-gap-lg);
    counter-reset: step;
}

.tuh-step {
    text-align: center;
    position: relative;
    counter-increment: step;
}

.tuh-step::before {
    content: counter(step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--tuh-primary);
    color: var(--tuh-white);
    border-radius: var(--tuh-radius-full);
    font-weight: 700;
    font-size: var(--tuh-font-size-lg);
    margin: 0 auto 1rem;
}

.tuh-step__title {
    font-size: var(--tuh-font-size-base);
    margin-bottom: 0.5rem;
}

.tuh-step__text {
    color: var(--tuh-text-secondary);
    font-size: var(--tuh-font-size-sm);
}

/* ==========================================================================
   CTA BANNER
   ========================================================================== */

.tuh-cta {
    background: linear-gradient(135deg, var(--tuh-primary), #4a42d4);
    color: var(--tuh-white);
    text-align: center;
    padding: var(--tuh-gap-xl) 0;
    border-radius: var(--tuh-radius-xl);
    margin: var(--tuh-gap-xl) auto;
    max-width: var(--tuh-container);
}

.tuh-cta h2 {
    color: var(--tuh-white);
    margin-bottom: 1rem;
}

.tuh-cta p {
    opacity: 0.9;
    font-size: var(--tuh-font-size-lg);
    margin-bottom: 2rem;
}

.tuh-cta__buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   PAYMENT METHODS BAR
   ========================================================================== */

.tuh-payments {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 2rem 0;
}

.tuh-payments__label {
    font-size: var(--tuh-font-size-sm);
    color: var(--tuh-text-muted);
    font-weight: 500;
}

.tuh-payments__icons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.tuh-payments__icon {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: var(--tuh-font-size-sm);
    color: var(--tuh-text-secondary);
    font-weight: 500;
}

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

.tuh-footer {
    background: var(--tuh-gray-900);
    color: var(--tuh-gray-400);
    padding: var(--tuh-gap-xl) 0 0;
}

[data-theme="dark"] .tuh-footer {
    background: #0a0a14;
}

.tuh-footer a {
    color: var(--tuh-gray-400);
}

.tuh-footer a:hover {
    color: var(--tuh-white);
}

.tuh-footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
    gap: var(--tuh-gap-xl);
}

.tuh-footer__brand {
    max-width: 300px;
}

.tuh-footer__logo {
    font-size: var(--tuh-font-size-xl);
    font-weight: 700;
    color: var(--tuh-white);
    margin-bottom: 1rem;
    display: block;
}

.tuh-footer__desc {
    font-size: var(--tuh-font-size-sm);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.tuh-footer__social {
    display: flex;
    gap: 0.75rem;
}

.tuh-footer__social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: var(--tuh-radius);
    font-size: var(--tuh-font-size-lg);
    transition: all var(--tuh-transition);
}

.tuh-footer__social a:hover {
    background: var(--tuh-primary);
    color: var(--tuh-white);
    transform: translateY(-2px);
}

.tuh-footer__heading {
    font-size: var(--tuh-font-size-sm);
    font-weight: 600;
    color: var(--tuh-white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}

.tuh-footer__links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tuh-footer__links a {
    font-size: var(--tuh-font-size-sm);
    transition: all var(--tuh-transition);
}

.tuh-footer__links a:hover {
    padding-left: 4px;
}

.tuh-footer__contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--tuh-font-size-sm);
    margin-bottom: 0.75rem;
}

.tuh-footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 1.5rem 0;
    margin-top: var(--tuh-gap-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: var(--tuh-font-size-sm);
    color: var(--tuh-gray-500);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tuh-footer__bottom--centered {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
}

/* ==========================================================================
   PAGE CONTENT
   ========================================================================== */

.tuh-page-header {
    background: var(--tuh-bg-alt);
    padding: 3rem 0;
    text-align: center;
    border-bottom: 1px solid var(--tuh-border);
}

.tuh-page-header h1 {
    font-size: var(--tuh-font-size-3xl);
    margin-bottom: 0.5rem;
}

/* Sticky footer — footer and copyright never grow, only shrink */
.tuh-header,
.tuh-topbar,
.tuh-footer,
.tuh-copyright-bar {
    flex-shrink: 0;
}

/* Blog heading area — uses page background by default, not the gray alt bg */
.tuh-page-header--blog {
    background: var(--tuh-bg);
    border-bottom: none;
}

.tuh-blog-heading {
    line-height: 1.5;
}

.tuh-blog-heading h1,
.tuh-blog-heading h2,
.tuh-blog-heading h3,
.tuh-blog-heading h4 {
    margin: 0 0 0.5rem;
}

.tuh-blog-heading p {
    margin: 0 0 0.25rem;
    color: var(--tuh-text-secondary);
    font-size: var(--tuh-font-size-base);
}

.tuh-page-header p {
    color: var(--tuh-text-secondary);
}

.tuh-content {
    padding: var(--tuh-gap-xl) 0;
}

.tuh-content__inner {
    max-width: var(--tuh-container-narrow);
    margin: 0 auto;
}

/* WordPress content styles */
.tuh-content__inner h2 {
    margin: 2rem 0 1rem;
    font-size: var(--tuh-font-size-2xl);
}

.tuh-content__inner h3 {
    margin: 1.5rem 0 0.75rem;
    font-size: var(--tuh-font-size-xl);
}

.tuh-content__inner ul,
.tuh-content__inner ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.tuh-content__inner ul { list-style: disc; }
.tuh-content__inner ol { list-style: decimal; }

.tuh-content__inner li {
    margin-bottom: 0.5rem;
}

.tuh-content__inner blockquote {
    border-left: 4px solid var(--tuh-primary);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: var(--tuh-bg-alt);
    border-radius: 0 var(--tuh-radius) var(--tuh-radius) 0;
}

.tuh-content__inner pre {
    background: var(--tuh-gray-900);
    color: var(--tuh-gray-100);
    padding: 1.5rem;
    border-radius: var(--tuh-radius);
    overflow-x: auto;
    font-family: var(--tuh-font-mono);
    font-size: var(--tuh-font-size-sm);
    margin: 1.5rem 0;
}

.tuh-content__inner code {
    font-family: var(--tuh-font-mono);
    font-size: 0.9em;
    background: var(--tuh-bg-alt);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
}

.tuh-content__inner pre code {
    background: none;
    padding: 0;
}

.tuh-content__inner table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.tuh-content__inner th,
.tuh-content__inner td {
    padding: 0.75rem 1rem;
    border: 1px solid var(--tuh-border);
    text-align: left;
}

.tuh-content__inner th {
    background: var(--tuh-bg-alt);
    font-weight: 600;
}

.tuh-content__inner img {
    border-radius: var(--tuh-radius);
    margin: 1.5rem 0;
}

/* ==========================================================================
   BLOG / POSTS
   ========================================================================== */

.tuh-posts-grid {
    display: grid;
    grid-template-columns: repeat(var(--tuh-blog-cols, 3), 1fr);
    gap: var(--tuh-gap-lg);
}

.tuh-post-card {
    background: var(--tuh-bg-card);
    border: 1px solid var(--tuh-border);
    border-radius: var(--tuh-radius-lg);
    overflow: hidden;
    transition: all var(--tuh-transition);
}

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

.tuh-post-card__image {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.tuh-post-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--tuh-transition-slow);
}

.tuh-post-card:hover .tuh-post-card__image img {
    transform: scale(1.05);
}

.tuh-post-card__body {
    padding: 1.5rem;
}

.tuh-post-card__meta {
    display: flex;
    gap: 1rem;
    font-size: var(--tuh-font-size-xs);
    color: var(--tuh-text-muted);
    margin-bottom: 0.75rem;
}

.tuh-post-card__title {
    font-size: var(--tuh-font-size-lg);
    margin-bottom: 0.5rem;
}

.tuh-post-card__title a {
    color: var(--tuh-text);
}

.tuh-post-card__title a:hover {
    color: var(--tuh-primary);
}

.tuh-post-card__excerpt {
    color: var(--tuh-text-secondary);
    font-size: var(--tuh-font-size-sm);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Blog List Layout */
.tuh-posts-list {
    display: flex;
    flex-direction: column;
    gap: var(--tuh-gap-lg);
}

.tuh-post-list-item {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--tuh-gap-lg);
    background: var(--tuh-bg-card);
    border: 1px solid var(--tuh-border);
    border-radius: var(--tuh-radius-lg);
    overflow: hidden;
    transition: all var(--tuh-transition);
}

.tuh-post-list-item:hover {
    box-shadow: var(--tuh-shadow-lg);
    transform: translateY(-2px);
}

.tuh-post-list-item__image {
    overflow: hidden;
}

.tuh-post-list-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--tuh-transition-slow);
}

.tuh-post-list-item:hover .tuh-post-list-item__image img {
    transform: scale(1.05);
}

.tuh-post-list-item__body {
    padding: 1.5rem 1.5rem 1.5rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 768px) {
    .tuh-post-list-item {
        grid-template-columns: 1fr;
    }

    .tuh-post-list-item__image {
        aspect-ratio: 16/9;
    }

    .tuh-post-list-item__body {
        padding: 1rem;
    }
}

/* Single post */
.tuh-single-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--tuh-text-muted);
    font-size: var(--tuh-font-size-sm);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--tuh-border);
}

.tuh-post-nav {
    display: flex;
    justify-content: space-between;
    gap: var(--tuh-gap);
    margin-top: var(--tuh-gap-xl);
    padding-top: var(--tuh-gap-lg);
    border-top: 1px solid var(--tuh-border);
}

.tuh-post-nav a {
    font-weight: 500;
    font-size: var(--tuh-font-size-sm);
}

/* ==========================================================================
   POST NAVIGATION — Card Style with Thumbnails (v1.5.9)
   ========================================================================== */

.tuh-postnav__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    border-top: 1px solid var(--tuh-border);
    padding-top: 1.5rem;
}

.tuh-postnav__item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--tuh-border);
    border-radius: var(--tuh-radius-lg);
    text-decoration: none;
    color: var(--tuh-text);
    transition: all var(--tuh-transition);
    background: var(--tuh-bg-card);
}

.tuh-postnav__item:hover {
    box-shadow: var(--tuh-shadow);
    border-color: var(--tuh-primary);
}

.tuh-postnav__thumb {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: var(--tuh-radius);
    overflow: hidden;
}

.tuh-postnav__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tuh-postnav__text {
    flex: 1;
    min-width: 0;
}

.tuh-postnav__label {
    display: block;
    font-size: var(--tuh-font-size-sm);
    color: var(--tuh-text);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.tuh-postnav__title {
    display: block;
    font-size: var(--tuh-font-size-sm);
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 768px) {
    .tuh-postnav__grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   COMMENTS TOGGLE BUTTON (v1.5.9)
   ========================================================================== */

.tuh-comments-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem 2rem;
    background: var(--tuh-primary);
    color: #fff;
    border: none;
    border-radius: var(--tuh-radius-lg);
    font-size: var(--tuh-font-size-base);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--tuh-transition);
}

.tuh-comments-toggle:hover {
    background: var(--tuh-primary-hover);
}

.tuh-comments-toggle svg {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   RELATED POSTS — Overlay & Card Styles (v1.5.9)
   ========================================================================== */

.tuh-related {
    margin-top: 2rem;
}

.tuh-related__title {
    font-size: var(--tuh-font-size-2xl);
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.tuh-related__dot {
    color: var(--tuh-primary);
    font-size: 0.6em;
    vertical-align: middle;
}

.tuh-related__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 1.25rem;
}

/* Overlay Card — title on image */
.tuh-related__card--overlay {
    position: relative;
    display: block;
    border-radius: var(--tuh-radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: #fff;
}

.tuh-related__card--overlay .tuh-related__card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.tuh-related__card--overlay:hover .tuh-related__card-img {
    transform: scale(1.05);
}

.tuh-related__card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem;
}

.tuh-related__cat {
    display: inline-block;
    background: var(--tuh-primary);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-right: 0.375rem;
    margin-bottom: 0.5rem;
}

.tuh-related__card-title {
    font-size: var(--tuh-font-size-base);
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #fff;
}

.tuh-related__card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--tuh-font-size-xs);
    opacity: 0.85;
}

.tuh-related__card-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
}

/* Standard Card — title below image */
.tuh-related__card--standard {
    display: block;
    text-decoration: none;
    color: var(--tuh-text);
    background: var(--tuh-bg-card);
    border: 1px solid var(--tuh-border);
    border-radius: var(--tuh-radius-lg);
    overflow: hidden;
    transition: all var(--tuh-transition);
}

.tuh-related__card--standard:hover {
    box-shadow: var(--tuh-shadow);
}

.tuh-related__card-thumb {
    overflow: hidden;
}

.tuh-related__card-thumb .tuh-related__card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.tuh-related__card--standard:hover .tuh-related__card-img {
    transform: scale(1.05);
}

.tuh-related__card-body {
    padding: 1rem;
}

.tuh-related__card--standard .tuh-related__card-title {
    color: var(--tuh-text);
    margin-bottom: 0.375rem;
}

.tuh-related__card-date {
    font-size: var(--tuh-font-size-xs);
    color: var(--tuh-text-muted);
}

/* ==========================================================================
   SEARCH & 404
   ========================================================================== */

.tuh-search-form {
    display: flex;
    gap: 0.5rem;
    max-width: 500px;
    margin: 0 auto 2rem;
}

.tuh-search-form input[type="search"] {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--tuh-border);
    border-radius: var(--tuh-radius);
    background: var(--tuh-bg);
    color: var(--tuh-text);
    transition: border-color var(--tuh-transition);
}

.tuh-search-form input[type="search"]:focus {
    border-color: var(--tuh-primary);
}

.tuh-404 {
    text-align: center;
    padding: 5rem 0;
}

.tuh-404__code {
    font-size: 8rem;
    font-weight: 800;
    color: var(--tuh-primary);
    line-height: 1;
    opacity: 0.3;
}

.tuh-404 h1 {
    margin: 1rem 0;
}

.tuh-404 p {
    color: var(--tuh-text-secondary);
    margin-bottom: 2rem;
}

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

.tuh-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    margin-top: var(--tuh-gap-xl);
}

.tuh-pagination a,
.tuh-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border-radius: var(--tuh-radius);
    font-weight: 500;
    font-size: var(--tuh-font-size-sm);
    transition: all var(--tuh-transition);
}

.tuh-pagination a {
    color: var(--tuh-text-secondary);
    border: 1px solid var(--tuh-border);
}

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

.tuh-pagination .current {
    background: var(--tuh-primary);
    color: var(--tuh-white);
    border: 1px solid var(--tuh-primary);
}

/* ==========================================================================
   WORDPRESS CORE OVERRIDES
   ========================================================================== */

.wp-block-image img {
    border-radius: var(--tuh-radius);
}

.alignleft {
    float: left;
    margin-right: var(--tuh-gap);
    margin-bottom: var(--tuh-gap);
}

.alignright {
    float: right;
    margin-left: var(--tuh-gap);
    margin-bottom: var(--tuh-gap);
}

.aligncenter {
    display: block;
    margin: var(--tuh-gap) auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: var(--tuh-font-size-sm);
    color: var(--tuh-text-muted);
    text-align: center;
    padding-top: 0.5rem;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--tuh-gap);
}

/* Screen reader text (WordPress) */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

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

@keyframes tuh-slide-up {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.tuh-animate-ready {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.tuh-animate-ready.tuh-animate {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.tuh-animate--delay-1 { animation-delay: 0.1s; }
.tuh-animate--delay-2 { animation-delay: 0.2s; }
.tuh-animate--delay-3 { animation-delay: 0.3s; }
.tuh-animate--delay-4 { animation-delay: 0.4s; }

/* ==========================================================================
   SCROLL TO TOP BUTTON
   ========================================================================== */

.tuh-scroll-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: var(--tuh-radius-full);
    background: var(--tuh-primary);
    color: var(--tuh-white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(99,91,255,0.3);
}

.tuh-scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tuh-scroll-top:hover {
    background: var(--tuh-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(99,91,255,0.4);
}

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

.tuh-breadcrumbs {
    padding: 0.75rem 0;
    font-size: var(--tuh-font-size-sm);
    color: var(--tuh-text-muted);
    border-bottom: 1px solid var(--tuh-border);
}

.tuh-breadcrumbs__inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.tuh-breadcrumbs a {
    color: var(--tuh-text-secondary);
    text-decoration: none;
}

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

.tuh-breadcrumbs__sep {
    color: var(--tuh-text-muted);
    opacity: 0.5;
}

.tuh-breadcrumbs__current {
    color: var(--tuh-text);
    font-weight: 500;
}

/* ==========================================================================
   SOCIAL SHARE BUTTONS
   ========================================================================== */

.tuh-share {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 0;
    margin-top: 2rem;
    border-top: 1px solid var(--tuh-border);
}

.tuh-share__label {
    font-weight: 600;
    font-size: var(--tuh-font-size-sm);
    color: var(--tuh-text-secondary);
}

.tuh-share__buttons {
    display: flex;
    gap: 0.5rem;
}

.tuh-share__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--tuh-radius);
    color: var(--tuh-white);
    text-decoration: none;
    font-size: 1rem;
    transition: all var(--tuh-transition);
}

.tuh-share__btn:hover {
    transform: translateY(-2px);
    color: var(--tuh-white);
    opacity: 0.9;
}

.tuh-share__btn--facebook { background: #1877F2; }
.tuh-share__btn--twitter { background: #1DA1F2; }
.tuh-share__btn--whatsapp { background: #25D366; }
.tuh-share__btn--telegram { background: #0088cc; }
.tuh-share__btn--linkedin { background: #0A66C2; }
.tuh-share__btn--copy { background: var(--tuh-gray-600); }

/* ==========================================================================
   TRANSPARENT HEADER
   ========================================================================== */

.tuh-header--transparent {
    position: absolute;
    background: transparent;
    border-bottom: none;
    width: 100%;
}

.tuh-header--transparent .tuh-nav a,
.tuh-header--transparent .tuh-header__logo {
    color: var(--tuh-white);
}

.tuh-header--transparent .tuh-dark-toggle {
    color: rgba(255,255,255,0.8);
}

.tuh-header--transparent.tuh-header--scrolled {
    position: sticky;
    background: var(--tuh-bg);
    border-bottom: 1px solid var(--tuh-border);
}

.tuh-header--transparent.tuh-header--scrolled .tuh-nav a,
.tuh-header--transparent.tuh-header--scrolled .tuh-header__logo {
    color: var(--tuh-text-secondary);
}

.tuh-header--transparent.tuh-header--scrolled .tuh-dark-toggle {
    color: var(--tuh-text-secondary);
}

/* ==========================================================================
   HIDE PAGE TITLE (via meta box)
   ========================================================================== */

.tuh-hide-title .tuh-page-header {
    display: none;
}

/* ==========================================================================
   HIDE HEADER / FOOTER (via meta box)
   ========================================================================== */

.tuh-hide-header .tuh-header {
    display: none;
}

.tuh-hide-footer .tuh-footer {
    display: none;
}

/* ==========================================================================
   FULL WIDTH PAGE LAYOUT
   ========================================================================== */

.tuh-full-width .tuh-content__inner {
    max-width: 100%;
}

/* ==========================================================================
   READING PROGRESS BAR
   ========================================================================== */

.tuh-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--tuh-primary);
    z-index: var(--tuh-z-preloader);
    transition: width 0.1s linear;
}

.admin-bar .tuh-progress-bar {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .tuh-progress-bar {
        top: 46px;
    }
}

/* ==========================================================================
   PRELOADER
   ========================================================================== */

.tuh-preloader {
    position: fixed;
    inset: 0;
    z-index: var(--tuh-z-preloader);
    background: var(--tuh-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.tuh-preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.tuh-preloader__spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--tuh-border);
    border-top-color: var(--tuh-primary);
    border-radius: 50%;
    animation: tuh-spin 0.8s linear infinite;
}

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

/* ==========================================================================
   RELATED POSTS
   ========================================================================== */

.tuh-related-posts {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--tuh-border);
}

.tuh-related-posts__title {
    font-size: var(--tuh-font-size-xl);
    margin-bottom: var(--tuh-gap-lg);
}

/* ==========================================================================
   BACK TO TOP LINK IN FOOTER (text version)
   ========================================================================== */

.tuh-footer__back-top {
    text-align: center;
    padding: 1rem 0;
}

.tuh-footer__back-top a {
    font-size: var(--tuh-font-size-sm);
    color: var(--tuh-gray-500);
}

.tuh-footer__back-top a:hover {
    color: var(--tuh-white);
}

/* ==========================================================================
   SKIP LINK (Accessibility)
   ========================================================================== */

.tuh-skip-link:focus {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--tuh-z-skip-link);
    padding: 1rem;
    background: var(--tuh-primary);
    color: var(--tuh-white);
    text-align: center;
    font-size: var(--tuh-font-size-base);
    font-weight: 600;
    width: auto;
    height: auto;
    clip: auto;
    white-space: normal;
    text-decoration: none;
}

/* ==========================================================================
   SEARCH OVERLAY
   ========================================================================== */

.tuh-search-toggle {
    font-size: 1.125rem;
    padding: 0.5rem;
    color: var(--tuh-text);
    transition: color var(--tuh-transition);
    background: none;
    border: none;
    cursor: pointer;
}

.tuh-search-toggle:hover {
    color: var(--tuh-primary);
}

.tuh-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    z-index: var(--tuh-z-search-overlay);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.tuh-search-overlay.active {
    visibility: visible;
    opacity: 1;
}

.tuh-search-overlay__inner {
    width: 100%;
    max-width: 640px;
    padding: 0 1rem;
}

.tuh-search-overlay__form {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tuh-search-overlay__input {
    flex: 1;
    padding: 1rem 1.25rem;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: #fff;
    font-size: var(--tuh-font-size-2xl);
    font-family: var(--tuh-font);
    outline: none;
    transition: border-color 0.2s ease;
}

.tuh-search-overlay__input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.tuh-search-overlay__input:focus {
    border-bottom-color: var(--tuh-primary);
}

.tuh-search-overlay__close {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.6);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    transition: color 0.2s ease;
}

.tuh-search-overlay__close:hover {
    color: #fff;
}

/* Search Results */
.tuh-search-results {
    margin-top: 1rem;
    max-height: 50vh;
    overflow-y: auto;
}

.tuh-search-result {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1rem;
    border-radius: var(--tuh-radius);
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: background 0.15s ease;
}

.tuh-search-result:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.tuh-search-result__img {
    width: 48px;
    height: 48px;
    border-radius: var(--tuh-radius);
    object-fit: cover;
    flex-shrink: 0;
}

.tuh-search-result__img--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    font-size: 1.5rem;
}

.tuh-search-result__info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.tuh-search-result__title {
    font-weight: 600;
    font-size: var(--tuh-font-size-base);
}

.tuh-search-result__type {
    font-size: var(--tuh-font-size-xs);
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tuh-search-result__price {
    font-size: var(--tuh-font-size-sm);
    color: var(--tuh-primary);
    font-weight: 600;
}

.tuh-search-no-results {
    text-align: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--tuh-font-size-lg);
}

/* ==========================================================================
   COMMENTS
   ========================================================================== */

.tuh-comments {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--tuh-border);
}

.tuh-comments__title {
    font-size: var(--tuh-font-size-xl);
    margin-bottom: var(--tuh-gap-lg);
}

.tuh-comments__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tuh-comment {
    margin-bottom: 1.5rem;
}

.tuh-comment__body {
    background: var(--tuh-bg-alt);
    border: 1px solid var(--tuh-border);
    border-radius: var(--tuh-radius-lg);
    padding: 1.25rem;
}

.tuh-comment__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.tuh-comment__avatar img {
    border-radius: var(--tuh-radius-full);
    width: 50px;
    height: 50px;
}

.tuh-comment__author {
    font-weight: 700;
    color: var(--tuh-text);
    display: block;
}

.tuh-comment__author a {
    color: var(--tuh-text);
    text-decoration: none;
}

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

.tuh-comment__date {
    font-size: var(--tuh-font-size-xs);
    color: var(--tuh-text-muted);
}

.tuh-comment__content {
    font-size: var(--tuh-font-size-base);
    line-height: 1.6;
}

.tuh-comment__content p:last-child {
    margin-bottom: 0;
}

.tuh-comment__awaiting {
    font-size: var(--tuh-font-size-sm);
    color: var(--tuh-warning);
    font-style: italic;
    margin-bottom: 0.5rem;
}

.tuh-comment__actions {
    display: flex;
    gap: 1rem;
    margin-top: 0.75rem;
}

.tuh-comment__reply a,
.tuh-comment__edit a {
    font-size: var(--tuh-font-size-sm);
    color: var(--tuh-primary);
    font-weight: 600;
    text-decoration: none;
}

.tuh-comment__reply a:hover,
.tuh-comment__edit a:hover {
    color: var(--tuh-primary-hover);
}

/* Nested comments */
.tuh-comments__list .children {
    list-style: none;
    padding-left: 2rem;
    margin-top: 1rem;
    border-left: 2px solid var(--tuh-primary-light);
}

.tuh-comments__nav {
    display: flex;
    justify-content: space-between;
    margin-top: var(--tuh-gap-lg);
}

.tuh-comments__closed {
    color: var(--tuh-text-muted);
    font-style: italic;
}

/* Comment Form */
.tuh-comment-form__title {
    font-size: var(--tuh-font-size-xl);
    margin: var(--tuh-gap-lg) 0 var(--tuh-gap);
}

.tuh-comment-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--tuh-gap);
}

.tuh-comment-form__field {
    margin-bottom: 1rem;
}

.tuh-comment-form__field label {
    display: block;
    font-weight: 600;
    font-size: var(--tuh-font-size-sm);
    margin-bottom: 0.375rem;
    color: var(--tuh-text);
}

.tuh-comment-form__field label .required {
    color: var(--tuh-error);
}

.tuh-comment-form__field input,
.tuh-comment-form__field textarea {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--tuh-border);
    border-radius: var(--tuh-radius);
    font-size: var(--tuh-font-size-base);
    background: var(--tuh-bg);
    color: var(--tuh-text);
    transition: border-color var(--tuh-transition);
}

.tuh-comment-form__field input:focus,
.tuh-comment-form__field textarea:focus {
    border-color: var(--tuh-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.1);
}

.tuh-comment-form__field textarea {
    resize: vertical;
    min-height: 120px;
}

/* ==========================================================================
   TABLE OF CONTENTS
   ========================================================================== */

.tuh-toc {
    background: var(--tuh-bg-alt);
    border: 1px solid var(--tuh-border);
    border-radius: var(--tuh-radius-lg);
    padding: 1.25rem 1.5rem;
    margin: var(--tuh-gap-lg) 0;
}

.tuh-toc__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tuh-toc__title {
    font-size: var(--tuh-font-size-base);
    font-weight: 700;
    margin: 0;
}

.tuh-toc__toggle {
    padding: 0.375rem;
    font-size: 0.75rem;
    color: var(--tuh-text-muted);
    background: none;
    border: none;
    cursor: pointer;
    transition: color var(--tuh-transition);
}

.tuh-toc__toggle:hover {
    color: var(--tuh-primary);
}

.tuh-toc__nav {
    margin-top: 0.75rem;
    overflow: hidden;
    max-height: 500px;
    transition: max-height 0.3s ease;
}

.tuh-toc__nav--collapsed {
    max-height: 0;
    margin-top: 0;
}

.tuh-toc__list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: toc;
}

.tuh-toc__item {
    counter-increment: toc;
}

.tuh-toc__item a {
    display: block;
    padding: 0.375rem 0;
    color: var(--tuh-text-secondary);
    font-size: var(--tuh-font-size-sm);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color var(--tuh-transition);
}

.tuh-toc__item a::before {
    content: counter(toc) ". ";
    color: var(--tuh-text-muted);
    font-weight: 600;
}

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

.tuh-toc__item--level-1 {
    padding-left: 1.25rem;
}

.tuh-toc__item--level-2 {
    padding-left: 2.5rem;
}

/* ==========================================================================
   IMAGE LIGHTBOX
   ========================================================================== */

.tuh-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--tuh-z-lightbox);
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.tuh-lightbox.active {
    visibility: visible;
    opacity: 1;
}

.tuh-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
}

.tuh-lightbox__content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.tuh-lightbox__img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--tuh-radius);
}

.tuh-lightbox__close {
    position: absolute;
    top: -2.5rem;
    right: 0;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.8);
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.tuh-lightbox__close:hover {
    color: #fff;
}

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

.tuh-layout-sidebar {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--tuh-gap-lg);
    align-items: start;
}

.tuh-sidebar--sticky {
    position: sticky;
    top: 90px;
}

.tuh-sidebar .tuh-widget {
    background: var(--tuh-bg-card);
    border: 1px solid var(--tuh-border);
    border-radius: var(--tuh-radius-lg);
    padding: 1.25rem;
    margin-bottom: var(--tuh-gap);
}

.tuh-widget__title {
    font-size: var(--tuh-font-size-base);
    font-weight: 700;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--tuh-primary-light);
}

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

.tuh-sidebar .tuh-widget li {
    padding: 0.375rem 0;
    border-bottom: 1px solid var(--tuh-border);
}

.tuh-sidebar .tuh-widget li:last-child {
    border-bottom: none;
}

.tuh-sidebar .tuh-widget a {
    color: var(--tuh-text-secondary);
    font-size: var(--tuh-font-size-sm);
    text-decoration: none;
    transition: color var(--tuh-transition);
}

.tuh-sidebar .tuh-widget a:hover {
    color: var(--tuh-primary);
}

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

.tuh-pagination,
.navigation.pagination {
    margin-top: var(--tuh-gap-xl);
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    flex-wrap: wrap;
}

.nav-links .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.625rem;
    border: 1px solid var(--tuh-border);
    border-radius: var(--tuh-radius);
    font-size: var(--tuh-font-size-sm);
    font-weight: 600;
    color: var(--tuh-text);
    background: var(--tuh-bg-card);
    text-decoration: none;
    transition: all var(--tuh-transition);
}

.nav-links .page-numbers:hover {
    background: var(--tuh-primary-light);
    border-color: var(--tuh-primary);
    color: var(--tuh-primary);
}

.nav-links .page-numbers.current {
    background: var(--tuh-primary);
    border-color: var(--tuh-primary);
    color: var(--tuh-white);
}

.nav-links .page-numbers.dots {
    border: none;
    background: none;
    color: var(--tuh-text-muted);
    min-width: auto;
    padding: 0 0.25rem;
}

.nav-links .prev.page-numbers,
.nav-links .next.page-numbers {
    font-weight: 600;
}

/* ==========================================================================
   TICKER NEWS BAR
   ========================================================================== */

.tuh-ticker {
    background: var(--tuh-gray-50);
    border-top: 1px solid var(--tuh-border);
    border-bottom: 1px solid var(--tuh-border);
    overflow: hidden;
    position: relative;
    z-index: 90;
    min-height: 40px;
}

[data-theme="dark"] .tuh-ticker {
    background: rgba(99, 91, 255, 0.08);
    border-top-color: var(--tuh-gray-700);
    border-bottom-color: var(--tuh-gray-700);
}

[data-theme="dark"] .tuh-ticker__cat {
    background: rgba(99, 91, 255, 0.2);
}

.tuh-ticker__inner {
    display: flex;
    align-items: center;
    max-width: var(--tuh-container);
    margin: 0 auto;
    padding: 0 1rem;
    height: 40px;
    min-height: 40px;
}

/* Label */
.tuh-ticker__label {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.875rem;
    background: var(--tuh-primary);
    color: var(--tuh-white);
    font-size: var(--tuh-font-size-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--tuh-radius);
    margin-right: 1rem;
    white-space: nowrap;
}

/* Track — holds the scrolling items */
.tuh-ticker__track {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

/* === SCROLL MODE (continuous marquee) === */
.tuh-ticker__track[data-style="scroll"] {
    display: flex;
}

.tuh-ticker__track[data-style="scroll"] .tuh-ticker__items {
    display: flex;
    gap: 2.5rem;
    white-space: nowrap;
    animation: tuh-ticker-scroll var(--tuh-ticker-duration, 30s) linear infinite;
    will-change: transform;
}

.tuh-ticker__track[data-style="scroll"]:hover .tuh-ticker__items {
    animation-play-state: paused;
}

@keyframes tuh-ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* === SLIDE MODE (one headline at a time) === */
.tuh-ticker__track[data-style="slide"] .tuh-ticker__items {
    width: 100%;
    position: relative;
}

.tuh-ticker__track[data-style="slide"] .tuh-ticker__item {
    display: none;
    width: 100%;
    animation: tuh-ticker-fadein 0.4s ease;
}

.tuh-ticker__track[data-style="slide"] .tuh-ticker__item.active {
    display: flex;
}

.tuh-ticker__track[data-style="slide"] .tuh-ticker__items--clone {
    display: none;
}

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

/* Ticker Items */
.tuh-ticker__item {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
    color: var(--tuh-text);
    white-space: nowrap;
    transition: color var(--tuh-transition);
    padding: 0.25rem 0;
}

.tuh-ticker__item:hover {
    color: var(--tuh-primary);
}

.tuh-ticker__cat {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    background: var(--tuh-primary-light);
    color: var(--tuh-primary);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-radius: var(--tuh-radius);
}

.tuh-ticker__thumb {
    width: 28px;
    height: 28px;
    border-radius: var(--tuh-radius);
    object-fit: cover;
    flex-shrink: 0;
}

.tuh-ticker__headline {
    font-size: var(--tuh-font-size-sm);
    font-weight: 600;
}

.tuh-ticker__date {
    font-size: var(--tuh-font-size-xs);
    color: var(--tuh-text-muted);
}

/* Slide controls */
.tuh-ticker__controls {
    display: flex;
    gap: 0.25rem;
    margin-left: 0.75rem;
    flex-shrink: 0;
}

.tuh-ticker__prev,
.tuh-ticker__next {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid var(--tuh-border);
    border-radius: var(--tuh-radius);
    background: var(--tuh-bg-card);
    color: var(--tuh-text);
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--tuh-transition);
    line-height: 1;
}

.tuh-ticker__prev:hover,
.tuh-ticker__next:hover {
    background: var(--tuh-primary);
    border-color: var(--tuh-primary);
    color: var(--tuh-white);
}

/* Responsive: hide ticker on small phones */
@media (max-width: 480px) {
    .tuh-ticker__date {
        display: none;
    }

    .tuh-ticker__cat {
        display: none;
    }
}

@media (max-width: 360px) {
    .tuh-ticker {
        display: none;
    }
}

/* Ticker full-width variant */
.tuh-ticker__inner--full {
    max-width: none;
    padding: 0 1rem;
}

/* Ticker visibility classes */
@media (max-width: 768px) {
    .tuh-ticker--hide-mobile { display: none; }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .tuh-ticker--hide-tablet { display: none; }
}

/* ==========================================================================
   COPYRIGHT BAR (v1.5.3 — independent from footer)
   ========================================================================== */

.tuh-copyright-bar {
    background: var(--tuh-gray-900);
    color: var(--tuh-gray-400);
    font-size: var(--tuh-font-size-sm);
    padding: 0;
}

.tuh-copyright-bar__sep {
    border-top: 1px solid rgba(255,255,255,0.08);
}

.tuh-copyright-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.6rem 0;
}

.tuh-copyright-bar__left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tuh-copyright-bar__right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

/* Centered layout */
.tuh-copyright-bar--centered .tuh-copyright-bar__inner {
    flex-direction: column;
    text-align: center;
    justify-content: center;
}

.tuh-copyright-bar--centered .tuh-copyright-bar__right {
    justify-content: center;
}

/* Copyright menu */
.tuh-copyright-bar__menu {
    display: flex;
    list-style: none;
    gap: 1.25rem;
    margin: 0;
    padding: 0;
}

.tuh-copyright-bar__menu li {
    list-style: none;
}

.tuh-copyright-bar__menu a {
    color: var(--tuh-gray-400);
    text-decoration: none;
    transition: color var(--tuh-transition);
}

.tuh-copyright-bar__menu a:hover {
    color: var(--tuh-white);
}

/* Menu separator styles */
.tuh-copyright-bar__menu--sep li + li::before {
    content: "|";
    margin-right: 1.25rem;
    color: var(--tuh-gray-600);
}

.tuh-copyright-bar__menu--dot li + li::before {
    content: "\00B7";
    margin-right: 1.25rem;
    color: var(--tuh-gray-600);
}

/* Social icons */
.tuh-copyright-bar__social {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.tuh-copyright-bar__social a {
    font-size: 1.125rem;
    color: var(--tuh-gray-400);
    transition: opacity var(--tuh-transition);
}

.tuh-copyright-bar__social a:hover {
    opacity: 0.7;
}

.tuh-copyright-bar a {
    color: var(--tuh-gray-400);
    text-decoration: none;
}

.tuh-copyright-bar a:hover {
    color: var(--tuh-white);
}

@media (max-width: 768px) {
    .tuh-copyright-bar__inner {
        flex-direction: column;
        text-align: center;
    }
    .tuh-copyright-bar__right {
        justify-content: center;
    }
    .tuh-copyright-bar__menu {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* footer__bottom--sep and social are used alongside the main definition above */

.tuh-footer__bottom--sep {
    border-top: 1px solid var(--tuh-border);
}

.tuh-footer__bottom-social {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.tuh-footer__bottom-social a {
    font-size: 1.125rem;
    transition: opacity var(--tuh-transition);
}

.tuh-footer__bottom-social a:hover {
    opacity: 0.7;
}

/* ==========================================================================
   BLOG CARD VARIANTS
   ========================================================================== */

.tuh-post-card--no-border {
    border: none !important;
}

.tuh-post-card--no-shadow:hover {
    box-shadow: none !important;
}

.tuh-post-card__read-more {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: var(--tuh-font-size-sm);
    font-weight: 600;
    color: var(--tuh-primary);
    text-decoration: none;
    transition: color var(--tuh-transition);
}

.tuh-post-card__read-more:hover {
    color: var(--tuh-primary-hover);
}

/* List: image right */
.tuh-post-list-item--img-right {
    flex-direction: row-reverse;
}

/* ==========================================================================
   ADVERTISEMENTS
   ========================================================================== */

.tuh-ad {
    padding: 0.75rem 0;
    text-align: center;
}

.tuh-ad img {
    border-radius: var(--tuh-radius);
}

/* Ad visibility */
@media (max-width: 768px) {
    .tuh-ad--hide-mobile { display: none; }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .tuh-ad--hide-tablet { display: none; }
}

@media (max-width: 1024px) {
    .tuh-ad--desktop-only { display: none; }
}

/* ==========================================================================
   VISIBILITY HELPERS (used by copyright, ticker, ads)
   ========================================================================== */

@media (max-width: 768px) {
    .tuh-hide-mobile { display: none !important; }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .tuh-hide-tablet { display: none !important; }
}

/* ==========================================================================
   SITE LAYOUT VARIANTS
   ========================================================================== */

.tuh-layout-boxed {
    max-width: var(--tuh-boxed-width, 1320px);
    margin: 0 auto;
    background: var(--tuh-bg);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.08);
}

.tuh-layout-stretched .tuh-container {
    max-width: none;
    padding: 0 2rem;
}

/* ==========================================================================
   HEADER LAYOUT VARIANTS
   ========================================================================== */

/* Full-width header inner */
.tuh-header__inner--full {
    max-width: none;
    padding: 0 2rem;
}

/* No border */
.tuh-header--no-border {
    border-bottom: none !important;
    box-shadow: none;
}

/* Centered layout: logo centered, nav in separate row below */
.tuh-header--centered .tuh-header__inner {
    justify-content: center;
}

.tuh-header--centered .tuh-nav {
    display: none;
}

.tuh-header--centered .tuh-header__actions {
    position: absolute;
    right: 1rem;
}

.tuh-header__nav-row {
    border-top: 1px solid var(--tuh-border);
    display: flex;
    justify-content: center;
    padding: 0 1rem;
}

.tuh-nav--centered {
    justify-content: center;
}

@media (max-width: 1024px) {
    .tuh-header__nav-row {
        display: none;
    }
}

/* Inline layout: logo left, nav center, actions right */
.tuh-header--inline .tuh-header__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
}

.tuh-header--inline .tuh-nav {
    justify-content: center;
}

/* ==========================================================================
   LOGO & SITE TITLE
   ========================================================================== */

.tuh-site-title {
    font-weight: 700;
    line-height: 1.2;
    color: var(--tuh-text);
}

.tuh-site-tagline {
    display: block;
    font-size: var(--tuh-font-size-xs);
    color: var(--tuh-text-muted);
    font-weight: 400;
    line-height: 1.3;
    margin-top: 0.125rem;
}

/* Dark mode logo swap */
[data-theme="dark"] .tuh-logo-light {
    display: none !important;
}

[data-theme="dark"] .tuh-logo-dark {
    display: block !important;
}

[data-theme="light"] .tuh-logo-dark {
    display: none !important;
}

/* Transparent header: hide regular logo, show transparent one */
.tuh-header--transparent .tuh-logo-transparent ~ .tuh-logo-light,
.tuh-header--transparent .tuh-logo-transparent ~ .tuh-logo-dark {
    display: none !important;
}

.tuh-header:not(.tuh-header--transparent) .tuh-logo-transparent {
    display: none !important;
}

/* ==========================================================================
   TOP BAR (v1.5.0)
   ========================================================================== */

.tuh-topbar {
    background: var(--tuh-topbar-bg);
    color: var(--tuh-topbar-text);
    font-size: var(--tuh-topbar-font-size);
    line-height: 1.4;
}

.tuh-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 0;
}

.tuh-topbar__left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tuh-topbar__right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tuh-topbar a {
    color: var(--tuh-topbar-link);
    text-decoration: none;
    transition: color var(--tuh-transition);
}

.tuh-topbar a:hover {
    color: var(--tuh-topbar-link-hover);
}

.tuh-topbar__social {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tuh-topbar__menu {
    display: flex;
    list-style: none;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

.tuh-topbar__menu li {
    list-style: none;
}

/* ==========================================================================
   HEADER CTA BUTTON (v1.5.0)
   ========================================================================== */

.tuh-header__cta {
    white-space: nowrap;
    padding: 0.5rem 1.25rem;
    font-size: var(--tuh-font-size-sm);
}

/* ==========================================================================
   AUTHOR BOX (v1.5.0)
   ========================================================================== */

.tuh-author-box {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem;
    border: 1px solid var(--tuh-border);
    border-radius: var(--tuh-radius);
    margin-top: 2rem;
}

.tuh-author-box--card {
    border: none;
    background: var(--tuh-bg-card);
    box-shadow: var(--tuh-shadow);
}

.tuh-author-box--inline {
    border: none;
    padding: 1rem 0;
    border-top: 1px solid var(--tuh-border);
}

.tuh-author-box__avatar img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

.tuh-author-box__info {
    flex: 1;
}

.tuh-author-box__name {
    font-size: var(--tuh-font-size-lg);
    font-weight: 600;
    margin: 0 0 0.25rem;
}

.tuh-author-box__bio {
    font-size: var(--tuh-font-size-sm);
    color: var(--tuh-text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* ==========================================================================
   PRELOADER STYLES (v1.5.0)
   ========================================================================== */

.tuh-preloader--dots .tuh-preloader__dots {
    display: flex;
    gap: 0.5rem;
}

.tuh-preloader--dots .tuh-preloader__dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--tuh-primary);
    animation: tuh-bounce 1.2s ease-in-out infinite;
}

.tuh-preloader--dots .tuh-preloader__dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.tuh-preloader--dots .tuh-preloader__dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes tuh-bounce {
    0%, 80%, 100% { transform: scale(0); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

.tuh-preloader--bar .tuh-preloader__bar {
    width: 200px;
    height: 3px;
    background: var(--tuh-border);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.tuh-preloader--bar .tuh-preloader__bar::after {
    content: "";
    position: absolute;
    top: 0;
    left: -40%;
    width: 40%;
    height: 100%;
    background: var(--tuh-primary);
    animation: tuh-bar-slide 1s ease-in-out infinite;
}

@keyframes tuh-bar-slide {
    0% { left: -40%; }
    100% { left: 100%; }
}

.tuh-preloader--logo .tuh-preloader__logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--tuh-primary);
    animation: tuh-pulse 1.5s ease-in-out infinite;
}

@keyframes tuh-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.95); }
}

/* ==========================================================================
   GUTENBERG BLOCK STYLES
   ========================================================================== */

/* Columns */
.wp-block-columns {
    gap: var(--tuh-gap-lg);
    margin-bottom: var(--tuh-gap-lg);
}

@media (max-width: 768px) {
    .wp-block-columns {
        flex-wrap: wrap;
    }
    .wp-block-columns .wp-block-column {
        flex-basis: 100% !important;
    }
}

/* Buttons */
.wp-block-buttons {
    gap: var(--tuh-gap);
    margin-bottom: var(--tuh-gap-lg);
}

.wp-block-button__link {
    font-family: var(--tuh-font);
    font-weight: 600;
    border-radius: var(--tuh-btn-radius);
    padding: var(--tuh-btn-padding);
    font-size: var(--tuh-btn-font-size);
    transition: var(--tuh-transition);
}

.wp-block-button__link:not(.has-background) {
    background: var(--tuh-btn-bg);
    color: var(--tuh-btn-text);
}

.wp-block-button__link:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.is-style-outline .wp-block-button__link {
    background: transparent;
    border: 2px solid var(--tuh-primary);
    color: var(--tuh-primary);
}

.is-style-outline .wp-block-button__link:hover {
    background: var(--tuh-primary);
    color: #fff;
}

/* Group */
.wp-block-group {
    margin-bottom: var(--tuh-gap-lg);
}

.wp-block-group.has-background {
    padding: var(--tuh-gap-lg);
    border-radius: var(--tuh-radius);
}

/* Image */
.wp-block-image {
    margin-bottom: var(--tuh-gap-lg);
}

.wp-block-image img {
    border-radius: var(--tuh-radius);
    height: auto;
}

.wp-block-image.alignwide {
    max-width: calc(var(--tuh-container) + 100px);
    margin-left: auto;
    margin-right: auto;
}

.wp-block-image.alignfull {
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    width: 100vw;
}

/* Quote */
.wp-block-quote {
    border-left: 4px solid var(--tuh-primary);
    padding: 1rem 1.5rem;
    margin: var(--tuh-gap-lg) 0;
    background: var(--tuh-bg-alt);
    border-radius: 0 var(--tuh-radius) var(--tuh-radius) 0;
    font-style: italic;
    color: var(--tuh-text-secondary);
}

.wp-block-quote cite {
    display: block;
    margin-top: 0.5rem;
    font-size: var(--tuh-font-size-sm);
    color: var(--tuh-text-muted);
    font-style: normal;
}

/* Separator */
.wp-block-separator {
    border: none;
    border-top: 2px solid var(--tuh-border);
    margin: var(--tuh-gap-xl) auto;
    max-width: 100px;
}

.wp-block-separator.is-style-wide {
    max-width: 100%;
}

.wp-block-separator.is-style-dots {
    border: none;
    max-width: none;
}

/* Table */
.wp-block-table {
    margin-bottom: var(--tuh-gap-lg);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.wp-block-table table {
    width: 100%;
    border-collapse: collapse;
}

.wp-block-table td, .wp-block-table th {
    padding: 0.75rem 1rem;
    border: 1px solid var(--tuh-border);
}

.wp-block-table th {
    background: var(--tuh-bg-alt);
    font-weight: 600;
    text-align: left;
}

.wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
    background: var(--tuh-bg-alt);
}

/* Cover */
.wp-block-cover {
    border-radius: var(--tuh-radius-lg);
    overflow: hidden;
    margin-bottom: var(--tuh-gap-lg);
}

/* Code */
.wp-block-code {
    background: var(--tuh-bg-alt);
    border: 1px solid var(--tuh-border);
    border-radius: var(--tuh-radius);
    padding: 1.25rem;
    margin-bottom: var(--tuh-gap-lg);
    overflow-x: auto;
    font-family: var(--tuh-font-mono);
    font-size: var(--tuh-font-size-sm);
}

/* Preformatted */
.wp-block-preformatted {
    background: var(--tuh-bg-alt);
    border: 1px solid var(--tuh-border);
    border-radius: var(--tuh-radius);
    padding: 1.25rem;
    font-family: var(--tuh-font-mono);
    font-size: var(--tuh-font-size-sm);
    overflow-x: auto;
    white-space: pre-wrap;
}

/* List */
.wp-block-list {
    margin-bottom: var(--tuh-gap-lg);
    padding-left: 1.5rem;
}

.wp-block-list li {
    margin-bottom: 0.5rem;
}

/* Gallery */
.wp-block-gallery {
    margin-bottom: var(--tuh-gap-lg);
}

.wp-block-gallery .wp-block-image img {
    border-radius: var(--tuh-radius);
}

/* Embed */
.wp-block-embed {
    margin-bottom: var(--tuh-gap-lg);
}

.wp-block-embed .wp-block-embed__wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.wp-block-embed .wp-block-embed__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--tuh-radius);
}

/* Focus-visible for all interactive block elements */
.wp-block-button__link:focus-visible,
.wp-block-file__button:focus-visible,
.wp-block-search__button:focus-visible {
    outline: 2px solid var(--tuh-primary);
    outline-offset: 2px;
}
