/*
Theme Name: TheHackerWire
Theme URI: https://thehackerwire.com
Author: TheHackerWire Team
Author URI: https://thehackerwire.com
Description: A dark cybersecurity-focused WordPress theme for security news, hacking tutorials, and tool reviews. Features a matrix-inspired design with green accents, optimized for SEO and mobile devices.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: thehackerwire
Tags: blog, news, dark, cybersecurity, one-column, two-columns, right-sidebar, custom-background, custom-colors, custom-header, custom-logo, custom-menu, featured-images, footer-widgets, full-width-template, post-formats, sticky-post, theme-options, threaded-comments, translation-ready

TheHackerWire WordPress Theme - Security & Hacking News
*/

/* ============================================
   Google Fonts Import
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;600&family=Inter:wght@400;500;600;700&family=Rajdhani:wght@500;600;700&display=swap');

/* ============================================
   CSS Variables
   ============================================ */
:root {
    --color-primary: #00FF41;
    --color-primary-dark: #00cc34;
    --color-primary-glow: rgba(0, 255, 65, 0.3);
    --color-bg-dark: #0d0d0d;
    --color-bg-darker: #080808;
    --color-bg-card: #1a1a1a;
    --color-bg-input: #252525;
    --color-border: #2d2d2d;
    --color-border-hover: #3d3d3d;
    --color-text-primary: #e0e0e0;
    --color-text-secondary: #a0a0a0;
    --color-text-muted: #707070;
    --color-accent-red: #ff3333;
    --color-accent-purple: #8b5cf6;
    --color-error: #ef4444;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-info: #3b82f6;
    
    --font-heading: 'Rajdhani', 'Segoe UI', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'Fira Code', 'Consolas', monospace;
    
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px var(--color-primary-glow);
    
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --container-width: 1200px;
    --sidebar-width: 320px;
}

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

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

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-dark);
    color: var(--color-text-primary);
    line-height: 1.7;
    min-height: 100vh;
}

/* Circuit Board Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 65, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 65, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -1;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-dark);
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-md);
}

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

p {
    margin-bottom: var(--spacing-md);
}

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

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

code, pre, kbd {
    font-family: var(--font-mono);
    background: var(--color-bg-input);
    border-radius: var(--border-radius-sm);
}

code {
    padding: 0.2em 0.4em;
    font-size: 0.9em;
    color: var(--color-primary);
}

pre {
    padding: var(--spacing-md);
    overflow-x: auto;
    border: 1px solid var(--color-border);
    margin-bottom: var(--spacing-md);
}

pre code {
    padding: 0;
    background: none;
}

blockquote {
    border-left: 4px solid var(--color-primary);
    padding-left: var(--spacing-lg);
    margin: var(--spacing-lg) 0;
    font-style: italic;
    color: var(--color-text-secondary);
}

ul, ol {
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-xl);
}

li {
    margin-bottom: var(--spacing-xs);
}

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

hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: var(--spacing-xl) 0;
}

/* ============================================
   Layout
   ============================================ */
.thw-container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.thw-site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.thw-main-content {
    flex: 1;
    padding: var(--spacing-xl) 0;
}

.thw-content-area {
    display: grid;
    grid-template-columns: 1fr var(--sidebar-width);
    gap: var(--spacing-xl);
}

.thw-content-area.full-width {
    grid-template-columns: 1fr;
}

.thw-primary {
    min-width: 0;
}

.thw-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

/* ============================================
   Header
   ============================================ */
.thw-header {
    background: linear-gradient(180deg, var(--color-bg-card) 0%, var(--color-bg-dark) 100%);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.thw-header-top {
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.8rem;
}

.thw-header-top-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.thw-header-date {
    color: var(--color-text-muted);
    font-family: var(--font-mono);
}

.thw-social-links {
    display: flex;
    gap: var(--spacing-md);
}

.thw-social-links a {
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
}

.thw-social-links a:hover {
    color: var(--color-primary);
}

.thw-header-main {
    padding: var(--spacing-md) 0;
}

.thw-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-lg);
}

.thw-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    text-decoration: none;
}

.thw-logo-icon {
    width: 45px;
    height: 45px;
}

.thw-logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    letter-spacing: 1px;
    line-height: 1.2;
}

.thw-logo-text span {
    color: var(--color-primary);
}

.thw-logo-tagline {
    font-size: 0.65rem;
    color: var(--color-text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Navigation */
.thw-nav {
    display: flex;
    align-items: center;
}

.thw-nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-xs);
    margin: 0;
    padding: 0;
}

.thw-nav-menu li {
    margin: 0;
    position: relative;
}

.thw-nav-menu a {
    display: block;
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--color-text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: var(--border-radius-sm);
    transition: color var(--transition-fast);
    position: relative;
}

/* Underline effect on hover */
.thw-nav-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: all var(--transition-fast);
    transform: translateX(-50%);
}

.thw-nav-menu > li > a:hover::after,
.thw-nav-menu > li.current-menu-item > a::after,
.thw-nav-menu > li.current_page_item > a::after,
.thw-nav-menu > li.current-menu-ancestor > a::after {
    width: 80%;
}

.thw-nav-menu a:hover {
    color: var(--color-primary);
}

.thw-nav-menu .current-menu-item > a,
.thw-nav-menu .current_page_item > a,
.thw-nav-menu .current-menu-ancestor > a {
    color: var(--color-primary);
}

/* Dropdown */
.thw-nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-sm);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-fast);
    z-index: 100;
}

.thw-nav-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.thw-nav-menu .sub-menu a {
    padding: var(--spacing-sm) var(--spacing-md);
}

/* Mobile Menu Toggle */
.thw-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: var(--spacing-sm);
}

/* Search */
.thw-header-search {
    position: relative;
}

.thw-search-toggle {
    background: none;
    border: none;
    color: var(--color-text-secondary);
    cursor: pointer;
    padding: var(--spacing-sm);
    transition: color var(--transition-fast);
}

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

.thw-search-form {
    position: absolute;
    top: 100%;
    right: 0;
    width: 300px;
    padding: var(--spacing-md);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-fast);
}

.thw-search-form.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.thw-search-input-wrap {
    display: flex;
    gap: var(--spacing-sm);
}

.thw-search-input {
    flex: 1;
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--color-bg-input);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    color: var(--color-text-primary);
    font-family: var(--font-body);
}

.thw-search-input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.thw-search-submit {
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--color-primary);
    border: none;
    border-radius: var(--border-radius-sm);
    color: var(--color-bg-dark);
    cursor: pointer;
    font-weight: 600;
}


/* ============================================
   Breaking News Ticker
   ============================================ */
.thw-breaking-news {
    background: var(--color-bg-darker);
    border-bottom: 1px solid var(--color-border);
    padding: var(--spacing-sm) 0;
    overflow: hidden;
}

.thw-breaking-inner {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.thw-breaking-label {
    background: var(--color-accent-red);
    color: white;
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: var(--border-radius-sm);
    white-space: nowrap;
    animation: pulse 2s infinite;
}

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

.thw-breaking-ticker {
    flex: 1;
    overflow: hidden;
}

.thw-breaking-list {
    display: flex;
    animation: ticker 30s linear infinite;
}

.thw-breaking-list:hover {
    animation-play-state: paused;
}

.thw-breaking-item {
    white-space: nowrap;
    padding-right: var(--spacing-2xl);
}

.thw-breaking-item a {
    color: var(--color-text-secondary);
    font-size: 0.875rem;
}

.thw-breaking-item a:hover {
    color: var(--color-primary);
}

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

/* ============================================
   Hero Section
   ============================================ */
.thw-hero {
    padding: var(--spacing-xl) 0;
}

.thw-hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto auto;
    gap: var(--spacing-md);
}

.thw-hero-main {
    grid-row: span 2;
}

.thw-hero-card {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    transition: all var(--transition-normal);
}

.thw-hero-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-glow);
}

.thw-hero-card-main {
    height: 100%;
    min-height: 500px;
}

.thw-hero-card-side {
    height: 240px;
}

.thw-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.thw-hero-card:hover .thw-hero-image {
    transform: scale(1.08);
}

/* Gradient overlay for better text readability */
.thw-hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.3) 40%,
        rgba(0, 0, 0, 0.8) 80%,
        rgba(0, 0, 0, 0.95) 100%
    );
    z-index: 1;
}

.thw-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-xl);
    z-index: 2;
}

.thw-hero-card-side .thw-hero-overlay {
    padding: var(--spacing-md);
}

.thw-hero-category {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--color-primary);
    color: var(--color-bg-dark);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: var(--border-radius-sm);
    margin-bottom: var(--spacing-sm);
    transition: all var(--transition-fast);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.thw-hero-category:hover {
    background: var(--color-primary-dark);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 255, 65, 0.5);
    color: var(--color-bg-dark);
}

.thw-hero-title {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
}

.thw-hero-title a {
    color: var(--color-text-primary);
}

.thw-hero-title a:hover {
    color: var(--color-primary);
}

.thw-hero-card-side .thw-hero-title {
    font-size: 1rem;
}

.thw-hero-excerpt {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.thw-hero-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-md);
}

.thw-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--color-primary);
    color: var(--color-bg-dark);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
    margin-top: var(--spacing-sm);
}

.thw-hero-btn:hover {
    background: var(--color-primary-dark);
    box-shadow: 0 0 20px var(--color-primary-glow);
    transform: translateX(5px);
    color: var(--color-bg-dark);
}

/* ============================================
   Post Cards
   ============================================ */
.thw-posts-section {
    padding: var(--spacing-xl) 0;
}

.thw-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--color-border);
}

.thw-section-title {
    font-size: 1.25rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.thw-section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--color-primary);
    border-radius: 2px;
}

.thw-section-link {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

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

.thw-post-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
}

.thw-post-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 8px 30px rgba(0, 255, 65, 0.2), 0 4px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-8px);
}

.thw-post-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.thw-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.thw-post-card:hover .thw-post-thumbnail img {
    transform: scale(1.1);
}

.thw-post-category {
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-md);
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--color-primary);
    color: var(--color-bg-dark);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: var(--border-radius-sm);
    z-index: 2;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.thw-post-category:hover {
    background: var(--color-primary-dark);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 255, 65, 0.4);
}

.thw-post-content {
    padding: var(--spacing-lg);
}

.thw-post-title {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
    line-height: 1.4;
}

.thw-post-title a {
    color: var(--color-text-primary);
}

.thw-post-title a:hover {
    color: var(--color-primary);
}

.thw-post-excerpt {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-md);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.thw-post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--color-border);
}

.thw-post-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.thw-post-author img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.thw-post-date {
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

/* List Style Posts */
.thw-posts-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.thw-post-list-item {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    transition: all var(--transition-fast);
}

.thw-post-list-item:hover {
    border-color: var(--color-primary);
}

.thw-post-list-thumb {
    width: 120px;
    height: 80px;
    flex-shrink: 0;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
}

.thw-post-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thw-post-list-content {
    flex: 1;
    min-width: 0;
}

.thw-post-list-title {
    font-size: 0.95rem;
    margin-bottom: var(--spacing-xs);
}

.thw-post-list-title a {
    color: var(--color-text-primary);
}

.thw-post-list-title a:hover {
    color: var(--color-primary);
}

.thw-post-list-meta {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* ============================================
   Single Post
   ============================================ */
.thw-single-header {
    margin-bottom: var(--spacing-xl);
}

.thw-single-category {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--color-primary);
    color: var(--color-bg-dark);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: var(--border-radius-sm);
    margin-bottom: var(--spacing-md);
}

.thw-single-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.thw-single-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-lg);
    padding: var(--spacing-md) 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.thw-single-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.thw-single-author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--color-primary);
}

.thw-single-author-info {
    display: flex;
    flex-direction: column;
}

.thw-single-author-name {
    color: var(--color-text-primary);
    font-weight: 600;
}

.thw-single-date {
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.thw-single-reading-time {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.thw-single-views {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.thw-single-featured {
    margin-bottom: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.thw-single-featured img {
    width: 100%;
    height: auto;
}

/* Post Content */
.thw-post-body {
    font-size: 1.05rem;
    line-height: 1.8;
}

.thw-post-body h2 {
    margin-top: var(--spacing-2xl);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--color-border);
}

.thw-post-body h3 {
    margin-top: var(--spacing-xl);
}

.thw-post-body img {
    border-radius: var(--border-radius-md);
    margin: var(--spacing-lg) 0;
}

.thw-post-body .wp-caption {
    max-width: 100%;
    margin: var(--spacing-lg) 0;
}

.thw-post-body .wp-caption-text {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    text-align: center;
    padding: var(--spacing-sm);
}

/* Tags */
.thw-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--color-border);
}

.thw-post-tags span {
    color: var(--color-text-secondary);
    font-weight: 500;
}

.thw-tag {
    padding: var(--spacing-xs) var(--spacing-sm);
    background: rgba(0, 255, 65, 0.1);
    color: var(--color-primary);
    font-size: 0.8rem;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(0, 255, 65, 0.2);
    transition: all var(--transition-fast);
}

.thw-tag:hover {
    background: var(--color-primary);
    color: var(--color-bg-dark);
}

/* Share Buttons */
.thw-share-buttons {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: var(--color-bg-card);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--color-border);
}

.thw-share-label {
    font-weight: 600;
    color: var(--color-text-secondary);
}

.thw-share-links {
    display: flex;
    gap: var(--spacing-sm);
}

.thw-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-sm);
    background: var(--color-bg-input);
    color: var(--color-text-secondary);
    transition: all var(--transition-fast);
}

.thw-share-btn:hover {
    background: var(--color-primary);
    color: var(--color-bg-dark);
}


/* ============================================
   Author Bio Box
   ============================================ */
.thw-author-box {
    display: flex;
    gap: var(--spacing-lg);
    padding: var(--spacing-xl);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    margin-top: var(--spacing-2xl);
}

.thw-author-avatar {
    flex-shrink: 0;
}

.thw-author-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--color-primary);
}

.thw-author-info {
    flex: 1;
}

.thw-author-label {
    font-size: 0.75rem;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-xs);
}

.thw-author-name {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

.thw-author-name a {
    color: var(--color-text-primary);
}

.thw-author-name a:hover {
    color: var(--color-primary);
}

.thw-author-bio {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-md);
}

.thw-author-social {
    display: flex;
    gap: var(--spacing-sm);
}

.thw-author-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--color-bg-input);
    border-radius: var(--border-radius-sm);
    color: var(--color-text-secondary);
    transition: all var(--transition-fast);
}

.thw-author-social a:hover {
    background: var(--color-primary);
    color: var(--color-bg-dark);
}

/* ============================================
   Related Posts
   ============================================ */
.thw-related-posts {
    margin-top: var(--spacing-2xl);
}

.thw-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

/* ============================================
   Comments
   ============================================ */
.thw-comments {
    margin-top: var(--spacing-2xl);
}

.thw-comments-title {
    margin-bottom: var(--spacing-lg);
}

.thw-comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.thw-comment {
    padding: var(--spacing-lg);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    margin-bottom: var(--spacing-md);
}

.thw-comment .children {
    list-style: none;
    padding-left: var(--spacing-xl);
    margin-top: var(--spacing-md);
}

.thw-comment-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.thw-comment-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--color-border);
}

.thw-comment-author {
    font-weight: 600;
    color: var(--color-text-primary);
}

.thw-comment-date {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-family: var(--font-mono);
}

.thw-comment-content {
    color: var(--color-text-secondary);
}

.thw-comment-reply {
    margin-top: var(--spacing-md);
}

.thw-comment-reply a {
    font-size: 0.8rem;
    color: var(--color-primary);
}

/* Comment Form */
.thw-comment-form {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-xl);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
}

.thw-comment-form label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    color: var(--color-text-primary);
}

.thw-comment-form input[type="text"],
.thw-comment-form input[type="email"],
.thw-comment-form input[type="url"],
.thw-comment-form textarea {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--color-bg-input);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    margin-bottom: var(--spacing-md);
}

.thw-comment-form input:focus,
.thw-comment-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.thw-comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.thw-comment-form .submit {
    padding: var(--spacing-sm) var(--spacing-xl);
    background: var(--color-primary);
    border: none;
    border-radius: var(--border-radius-md);
    color: var(--color-bg-dark);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.thw-comment-form .submit:hover {
    background: var(--color-primary-dark);
    box-shadow: var(--shadow-glow);
}

/* ============================================
   Sidebar Widgets
   ============================================ */
.thw-widget {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.thw-widget-title {
    font-size: 1rem;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--color-primary);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

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

.thw-widget li {
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--color-border);
}

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

.thw-widget a {
    color: var(--color-text-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

/* Popular Posts Widget */
.thw-popular-posts .thw-widget-post {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--color-border);
}

.thw-popular-posts .thw-widget-post:last-child {
    border-bottom: none;
}

.thw-widget-post-number {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    opacity: 0.5;
    line-height: 1;
}

.thw-widget-post-content {
    flex: 1;
}

.thw-widget-post-title {
    font-size: 0.9rem;
    margin-bottom: var(--spacing-xs);
    line-height: 1.4;
}

.thw-widget-post-title a {
    color: var(--color-text-primary);
}

.thw-widget-post-title a:hover {
    color: var(--color-primary);
}

.thw-widget-post-meta {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* Newsletter Widget */
.thw-newsletter-widget {
    background: linear-gradient(135deg, var(--color-bg-card) 0%, rgba(0, 255, 65, 0.05) 100%);
    border-color: var(--color-primary);
}

.thw-newsletter-desc {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-md);
}

.thw-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.thw-newsletter-input {
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--color-bg-input);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    color: var(--color-text-primary);
}

.thw-newsletter-input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.thw-newsletter-btn {
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--color-primary);
    border: none;
    border-radius: var(--border-radius-md);
    color: var(--color-bg-dark);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.thw-newsletter-btn:hover {
    background: var(--color-primary-dark);
    box-shadow: var(--shadow-glow);
}

/* Tags Cloud Widget */
.thw-tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.thw-tags-cloud a {
    padding: var(--spacing-xs) var(--spacing-sm);
    background: var(--color-bg-input);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

.thw-tags-cloud a:hover {
    background: var(--color-primary);
    color: var(--color-bg-dark);
    border-color: var(--color-primary);
}

/* ============================================
   Pagination
   ============================================ */
.thw-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-2xl);
}

.thw-pagination a,
.thw-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 var(--spacing-sm);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    color: var(--color-text-secondary);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.thw-pagination a:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.thw-pagination .current {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-bg-dark);
}

/* ============================================
   Footer
   ============================================ */
.thw-footer {
    background: var(--color-bg-darker);
    border-top: 1px solid var(--color-border);
    margin-top: auto;
}

.thw-footer-main {
    padding: var(--spacing-2xl) 0;
}

.thw-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-xl);
}

.thw-footer-brand {
    margin-bottom: var(--spacing-lg);
}

.thw-footer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.thw-footer-logo-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-primary);
}

.thw-footer-logo-text span {
    color: var(--color-primary);
}

.thw-footer-desc {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-lg);
}

.thw-footer-social {
    display: flex;
    gap: var(--spacing-sm);
}

.thw-footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    color: var(--color-text-secondary);
    transition: all var(--transition-fast);
}

.thw-footer-social a:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-bg-dark);
}

.thw-footer-title {
    font-size: 1rem;
    margin-bottom: var(--spacing-md);
    color: var(--color-text-primary);
}

.thw-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.thw-footer-links li {
    margin-bottom: var(--spacing-sm);
}

.thw-footer-links a {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.thw-footer-links a:hover {
    color: var(--color-primary);
}

.thw-footer-bottom {
    padding: var(--spacing-lg) 0;
    border-top: 1px solid var(--color-border);
}

.thw-footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.thw-copyright {
    color: var(--color-text-muted);
    font-size: 0.8rem;
}

.thw-footer-bottom-links {
    display: flex;
    gap: var(--spacing-lg);
}

.thw-footer-bottom-links a {
    color: var(--color-text-muted);
    font-size: 0.8rem;
}

.thw-footer-bottom-links a:hover {
    color: var(--color-primary);
}

/* ============================================
   Archive & Category Pages
   ============================================ */
.thw-archive-header {
    padding: var(--spacing-xl) 0;
    margin-bottom: var(--spacing-xl);
    border-bottom: 1px solid var(--color-border);
}

.thw-archive-title {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
}

.thw-archive-title span {
    color: var(--color-primary);
}

.thw-archive-desc {
    color: var(--color-text-secondary);
    font-size: 1rem;
}

/* ============================================
   404 Page
   ============================================ */
.thw-404 {
    text-align: center;
    padding: var(--spacing-2xl) 0;
}

.thw-404-code {
    font-family: var(--font-mono);
    font-size: 8rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    position: relative;
    display: inline-block;
    animation: glitch-text 3s infinite;
}

/* Glitch effect layers */
.thw-404-code::before,
.thw-404-code::after {
    content: '404';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.thw-404-code::before {
    animation: glitch-before 2s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    color: #ff0000;
    opacity: 0.8;
}

.thw-404-code::after {
    animation: glitch-after 2.5s infinite;
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
    color: #00ffff;
    opacity: 0.8;
}

/* Glitch animations */
@keyframes glitch-text {
    0%, 90%, 100% {
        transform: translate(0);
        opacity: 1;
    }
    92% {
        transform: translate(-2px, 2px);
        opacity: 0.8;
    }
    94% {
        transform: translate(2px, -2px);
        opacity: 0.9;
    }
    96% {
        transform: translate(-2px, -2px);
        opacity: 0.85;
    }
}

@keyframes glitch-before {
    0%, 85%, 100% {
        transform: translate(0);
    }
    87% {
        transform: translate(-3px, 0);
    }
    89% {
        transform: translate(3px, 0);
    }
    91% {
        transform: translate(-3px, 0);
    }
}

@keyframes glitch-after {
    0%, 80%, 100% {
        transform: translate(0);
    }
    82% {
        transform: translate(3px, 0);
    }
    84% {
        transform: translate(-3px, 0);
    }
    86% {
        transform: translate(3px, 0);
    }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .thw-404-code,
    .thw-404-code::before,
    .thw-404-code::after {
        animation: none;
    }
    .thw-404-code {
        opacity: 0.3;
    }
}

.thw-404-title {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
}

.thw-404-desc {
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-xl);
}

.thw-404-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    background: var(--color-primary);
    color: var(--color-bg-dark);
    font-weight: 600;
    border-radius: var(--border-radius-md);
    transition: all var(--transition-fast);
}

.thw-404-btn:hover {
    background: var(--color-primary-dark);
    box-shadow: var(--shadow-glow);
    color: var(--color-bg-dark);
}

/* ============================================
   Breadcrumbs
   ============================================ */
.thw-breadcrumbs {
    padding: var(--spacing-md) 0;
    font-size: 0.85rem;
}

.thw-breadcrumbs a {
    color: var(--color-text-secondary);
}

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

.thw-breadcrumbs span {
    color: var(--color-text-muted);
    margin: 0 var(--spacing-sm);
}

.thw-breadcrumbs .current {
    color: var(--color-primary);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .thw-content-area {
        grid-template-columns: 1fr;
    }
    
    .thw-sidebar {
        position: static;
    }
    
    .thw-hero-grid {
        grid-template-columns: 1fr;
    }
    
    .thw-hero-main {
        grid-row: auto;
    }
    
    .thw-hero-card-main {
        min-height: 350px;
    }
    
    .thw-hero-card-side {
        height: 200px;
    }
    
    .thw-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .thw-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .thw-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    
    .thw-header-inner {
        flex-wrap: wrap;
    }
    
    .thw-menu-toggle {
        display: block;
    }
    
    .thw-nav {
        display: none;
        width: 100%;
        order: 3;
    }
    
    .thw-nav.active {
        display: block;
    }
    
    .thw-nav-menu {
        flex-direction: column;
        padding: var(--spacing-md) 0;
    }
    
    .thw-nav-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        border: none;
        padding-left: var(--spacing-lg);
    }
    
    .thw-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .thw-related-grid {
        grid-template-columns: 1fr;
    }
    
    .thw-single-title {
        font-size: 1.75rem;
    }
    
    .thw-author-box {
        flex-direction: column;
        text-align: center;
    }
    
    .thw-author-social {
        justify-content: center;
    }
    
    .thw-footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .thw-footer-social {
        justify-content: center;
    }
    
    .thw-footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .thw-container {
        padding: 0 var(--spacing-sm);
    }
    
    .thw-hero-card-main {
        min-height: 280px;
    }
    
    .thw-hero-title {
        font-size: 1.25rem;
    }
    
    .thw-post-list-item {
        flex-direction: column;
    }
    
    .thw-post-list-thumb {
        width: 100%;
        height: 150px;
    }
    
    .thw-404-code {
        font-size: 5rem;
    }
}

/* ============================================
   WordPress Core Styles
   ============================================ */
.alignleft {
    float: left;
    margin-right: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.alignright {
    float: right;
    margin-left: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-block-image {
    margin-bottom: var(--spacing-lg);
}

.wp-block-quote {
    border-left: 4px solid var(--color-primary);
    padding-left: var(--spacing-lg);
    margin: var(--spacing-lg) 0;
}

.wp-block-code {
    background: var(--color-bg-input);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-md);
    overflow-x: auto;
}

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

.gallery-item {
    margin: 0;
}

.gallery-item img {
    border-radius: var(--border-radius-sm);
}

/* Screen Reader Text */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* Sticky Post */
.sticky .thw-post-card {
    border-color: var(--color-primary);
    position: relative;
}

.sticky .thw-post-card::before {
    content: 'Featured';
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    padding: var(--spacing-xs) var(--spacing-sm);
    background: var(--color-accent-red);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: var(--border-radius-sm);
    z-index: 10;
}

/* Print Styles */
@media print {
    body::before,
    .thw-header,
    .thw-footer,
    .thw-sidebar,
    .thw-share-buttons,
    .thw-related-posts,
    .thw-comments {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
}


/* ============================================
   Widget Social Links
   ============================================ */
.thw-widget-social {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.thw-widget-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--color-bg-input);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    color: var(--color-text-secondary);
    transition: all var(--transition-fast);
}

.thw-widget-social a:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-bg-dark);
}

/* ============================================
   Search Form Widget
   ============================================ */
.thw-search-form-widget {
    display: flex;
    gap: var(--spacing-sm);
}

.thw-search-form-widget .thw-search-input {
    flex: 1;
}

.thw-search-form-widget .thw-search-submit {
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--color-primary);
    border: none;
    border-radius: var(--border-radius-sm);
    color: var(--color-bg-dark);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.thw-search-form-widget .thw-search-submit:hover {
    background: var(--color-primary-dark);
}

/* ============================================
   404 Page Additional Styles
   ============================================ */
.thw-404-search {
    max-width: 500px;
    margin: var(--spacing-2xl) auto;
    text-align: center;
}

.thw-404-search h3 {
    margin-bottom: var(--spacing-md);
    color: var(--color-text-secondary);
    text-align: center;
}

.thw-404-search .thw-search-form,
.thw-404-search form {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.thw-404-search .thw-search-input,
.thw-404-search input[type="search"] {
    flex: 1;
    max-width: 400px;
}

.thw-404-recent {
    margin-top: var(--spacing-2xl);
}

/* ============================================
   Author Archive Box
   ============================================ */
.thw-author-archive-box {
    margin-bottom: var(--spacing-xl);
}

.thw-author-posts-count {
    margin-top: var(--spacing-md);
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* ============================================
   Page Excerpt
   ============================================ */
.thw-page-excerpt {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin-top: var(--spacing-md);
}

/* ============================================
   Tools Page Styles
   ============================================ */
.thw-tools-content {
    max-width: 100%;
}

.thw-tools-content iframe {
    max-width: 100%;
    border-radius: var(--border-radius-md);
}

/* ============================================
   Header Scroll States
   ============================================ */
.thw-header.scrolled-down {
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.thw-header.scrolled-up {
    transform: translateY(0);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-lg);
}

/* ============================================
   No Sidebar Layout
   ============================================ */
.thw-no-sidebar .thw-content-area {
    grid-template-columns: 1fr;
}

.thw-no-sidebar .thw-posts-grid {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1024px) {
    .thw-no-sidebar .thw-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .thw-no-sidebar .thw-posts-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Accessibility Improvements
   ============================================ */
.thw-skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary);
    color: var(--color-bg-dark);
    padding: var(--spacing-sm) var(--spacing-md);
    z-index: 10000;
    transition: top 0.3s;
}

.thw-skip-link:focus {
    top: 0;
}

/* Focus styles - Remove default outline, use subtle effects instead */
a:focus,
button:focus {
    outline: none;
}

/* Focus visible for keyboard navigation only */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Input focus styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
}

/* Remove tap highlight on mobile */
a,
button,
input,
textarea,
select {
    -webkit-tap-highlight-color: transparent;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --color-border: #4d4d4d;
        --color-text-secondary: #c0c0c0;
    }
}


/* ============================================
   Post Thumbnail Placeholder
   ============================================ */
.thw-post-thumbnail-placeholder {
    width: 100%;
    height: 100%;
    min-height: 200px;
    background: linear-gradient(135deg, var(--color-bg-card) 0%, var(--color-bg-input) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    opacity: 0.5;
}



/* ============================================
   Empty Post Card Fix
   ============================================ */
.thw-post-card:empty {
    display: none;
}

.thw-post-card .thw-post-content:empty {
    display: none;
}

/* Ensure cards without content don't show */
.thw-post-card:not(:has(.thw-post-title a:not(:empty))) {
    display: none;
}


/* ============================================
   Hero Placeholder (no featured image)
   ============================================ */
.thw-hero-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-bg-card) 0%, var(--color-bg-input) 50%, var(--color-bg-card) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.thw-hero-placeholder::before {
    content: '';
    width: 80px;
    height: 80px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2300FF41' opacity='0.3'%3E%3Cpath d='M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.3;
}


/* ============================================
   Ad Banner Widget
   ============================================ */
.thw-ad-banner {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    text-align: center;
}

.thw-ad-banner img.thw-ad-image {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity var(--transition-fast);
}

.thw-ad-banner a:hover img.thw-ad-image {
    opacity: 0.9;
}

/* AdSense responsive */
.thw-ad-banner ins.adsbygoogle {
    display: block;
    width: 100%;
}

/* Multiple ads spacing */
.thw-widget + .thw-widget .thw-ad-banner {
    margin-top: 0;
}


/* ============================================
   Enhanced Homepage Layout
   ============================================ */
.thw-home-layout {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
    width: 100%;
}

/* Grid enhancement for modern browsers */
@supports (display: grid) {
    .thw-home-layout {
        display: grid;
        grid-template-columns: 1fr 350px;
        grid-template-areas: "main sidebar";
    }
}

.thw-home-main {
    flex: 1 1 600px;
    min-width: 0;
    width: 100%;
}

@supports (display: grid) {
    .thw-home-main {
        grid-area: main;
    }
}

.thw-home-sidebar {
    flex: 0 0 350px;
    position: sticky;
    top: 100px;
    height: fit-content;
    align-self: flex-start;
    width: 350px;
    max-width: 350px;
}

@supports (display: grid) {
    .thw-home-sidebar {
        grid-area: sidebar;
        align-self: start;
    }
}

.thw-home-section {
    margin-bottom: var(--spacing-2xl);
}

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

/* Category Indicator */
.thw-cat-indicator {
    display: inline-block;
    width: 4px;
    height: 20px;
    border-radius: 2px;
    margin-right: var(--spacing-sm);
}

/* Category Section Layout */
.thw-category-posts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.thw-cat-featured {
    grid-row: span 3;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.thw-cat-featured:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-glow);
}

.thw-cat-featured-image {
    height: 200px;
    overflow: hidden;
}

.thw-cat-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.thw-cat-featured:hover .thw-cat-featured-image img {
    transform: scale(1.05);
}

.thw-cat-featured-content {
    padding: var(--spacing-lg);
}

.thw-cat-featured-title {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
    line-height: 1.4;
}

.thw-cat-featured-title a {
    color: var(--color-text-primary);
}

.thw-cat-featured-title a:hover {
    color: var(--color-primary);
}

.thw-cat-featured-excerpt {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-md);
}

/* Category List Items */
.thw-cat-list-item {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    transition: all var(--transition-fast);
}

.thw-cat-list-item:hover {
    border-color: var(--color-primary);
}

.thw-cat-list-thumb {
    width: 80px;
    height: 60px;
    flex-shrink: 0;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
}

.thw-cat-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thw-cat-list-content {
    flex: 1;
    min-width: 0;
}

.thw-cat-list-title {
    font-size: 0.9rem;
    margin-bottom: var(--spacing-xs);
    line-height: 1.3;
}

.thw-cat-list-title a {
    color: var(--color-text-primary);
}

.thw-cat-list-title a:hover {
    color: var(--color-primary);
}

/* Tools Showcase */
.thw-tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.thw-tool-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-lg);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    text-align: center;
    transition: all 0.3s ease;
    color: var(--color-text-secondary);
    position: relative;
    overflow: hidden;
}

.thw-tool-card:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 20px var(--color-primary-glow);
}

.thw-tool-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.thw-tool-card:hover .thw-tool-icon {
    transform: scale(1.1) rotate(5deg);
}

.thw-tool-icon svg {
    width: 36px;
    height: 36px;
}

.thw-tool-name {
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.thw-tool-desc {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-top: -var(--spacing-xs);
}

.thw-tool-card:hover .thw-tool-desc {
    opacity: 1;
    max-height: 50px;
    margin-top: 0;
}

/* Sidebar Newsletter */
.thw-sidebar-newsletter {
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.1) 0%, var(--color-bg-card) 100%);
    border: 1px solid var(--color-primary);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.thw-newsletter-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.thw-sidebar-newsletter h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
}

.thw-sidebar-newsletter p {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-md);
}

.thw-sidebar-newsletter .thw-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.thw-sidebar-newsletter input {
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--color-bg-input);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    color: var(--color-text-primary);
    text-align: center;
}

.thw-sidebar-newsletter input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.thw-sidebar-newsletter button {
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--color-primary);
    border: none;
    border-radius: var(--border-radius-md);
    color: var(--color-bg-dark);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.thw-sidebar-newsletter button:hover {
    background: var(--color-primary-dark);
    box-shadow: var(--shadow-glow);
}

.thw-newsletter-note {
    display: block;
    margin-top: var(--spacing-sm);
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* Sidebar Sections */
.thw-sidebar-section {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.thw-sidebar-title {
    font-size: 1rem;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--color-primary);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.thw-trending-icon {
    font-size: 1.2rem;
}

/* Trending Posts */
.thw-trending-posts {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.thw-trending-item {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
}

.thw-trending-number {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    opacity: 0.5;
    line-height: 1;
    min-width: 30px;
}

.thw-trending-content h4 {
    font-size: 0.9rem;
    margin-bottom: var(--spacing-xs);
    line-height: 1.4;
}

.thw-trending-content h4 a {
    color: var(--color-text-primary);
}

.thw-trending-content h4 a:hover {
    color: var(--color-primary);
}

.thw-trending-views {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* Social Buttons */
.thw-social-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
}

.thw-social-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--color-bg-input);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    color: var(--color-text-secondary);
    font-size: 0.8rem;
    transition: all var(--transition-fast);
}

.thw-social-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.thw-social-icon {
    display: flex;
    align-items: center;
}

/* Load More Button */
.thw-load-more-wrap {
    text-align: center;
    margin-top: var(--spacing-xl);
}

.thw-btn-load-more {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-2xl);
    background: transparent;
    border: 2px solid var(--color-primary);
    border-radius: var(--border-radius-md);
    color: var(--color-primary);
    font-weight: 600;
    transition: all var(--transition-fast);
}

.thw-btn-load-more:hover {
    background: var(--color-primary);
    color: var(--color-bg-dark);
    box-shadow: var(--shadow-glow);
}

/* More Articles Section */
.thw-more-articles {
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--color-border);
}

/* Responsive */
@media (max-width: 1024px) {
    .thw-home-layout {
        display: block;
    }
    
    @supports (display: grid) {
        .thw-home-layout {
            display: block;
            grid-template-columns: none;
            grid-template-areas: none;
        }
    }
    
    .thw-home-main {
        flex: none;
        width: 100%;
        margin-bottom: var(--spacing-xl);
    }
    
    .thw-home-sidebar {
        flex: none;
        position: static;
        width: 100%;
        max-width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
    
    .thw-sidebar-newsletter {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .thw-posts-grid-2 {
        grid-template-columns: 1fr;
    }
    
    .thw-category-posts {
        grid-template-columns: 1fr;
    }
    
    .thw-cat-featured {
        grid-row: auto;
    }
    
    .thw-tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .thw-home-sidebar {
        grid-template-columns: 1fr;
    }
    
    .thw-sidebar-newsletter {
        grid-column: auto;
    }
    
    .thw-social-buttons {
        grid-template-columns: 1fr;
    }
}


/* ============================================
   Enhanced Single Article Layout
   ============================================ */
.thw-single-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: var(--spacing-xl);
}

.thw-article {
    min-width: 0;
}

.thw-single-sidebar {
    position: relative;
}

.thw-sidebar-sticky {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

/* Article Header */
.thw-article-header {
    margin-bottom: var(--spacing-xl);
}

.thw-article-category {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--color-primary);
    color: var(--color-bg-dark);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: var(--border-radius-sm);
    margin-bottom: var(--spacing-md);
}

.thw-article-title {
    font-size: 2.25rem;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

.thw-article-excerpt {
    font-size: 1.15rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--color-border);
}

.thw-article-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.thw-article-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.thw-article-author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--color-primary);
}

.thw-article-author-name {
    font-weight: 600;
    color: var(--color-text-primary);
    display: block;
}

.thw-article-author-name:hover {
    color: var(--color-primary);
}

.thw-article-date-wrap {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.thw-article-updated {
    color: var(--color-text-muted);
    font-size: 0.8rem;
}

.thw-article-stats {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.thw-stat {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.thw-stat svg {
    width: 16px;
    height: 16px;
}

/* Share Buttons Inline */
.thw-article-share-top {
    padding: var(--spacing-md) 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.thw-share-inline {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.thw-share-btn-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    color: var(--color-text-secondary);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.thw-share-btn-inline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.thw-share-twitter:hover { border-color: #1DA1F2; color: #1DA1F2; }
.thw-share-facebook:hover { border-color: #4267B2; color: #4267B2; }
.thw-share-linkedin:hover { border-color: #0077B5; color: #0077B5; }
.thw-share-reddit:hover { border-color: #FF4500; color: #FF4500; }

/* Featured Image */
.thw-article-featured {
    margin-bottom: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.thw-article-featured img {
    width: 100%;
    height: auto;
}

.thw-article-featured figcaption {
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--color-bg-card);
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-align: center;
}

/* Article Body */
.thw-article-body {
    font-size: 1.05rem;
    line-height: 1.8;
}

.thw-article-body h2 {
    font-size: 1.5rem;
    margin-top: var(--spacing-2xl);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--color-primary);
}

.thw-article-body h3 {
    font-size: 1.25rem;
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
}

.thw-article-body p {
    margin-bottom: var(--spacing-lg);
}

.thw-article-body ul,
.thw-article-body ol {
    margin-bottom: var(--spacing-lg);
    padding-left: var(--spacing-xl);
}

.thw-article-body li {
    margin-bottom: var(--spacing-sm);
}

.thw-article-body img {
    border-radius: var(--border-radius-md);
    margin: var(--spacing-lg) 0;
}

.thw-article-body blockquote {
    border-left: 4px solid var(--color-primary);
    padding: var(--spacing-md) var(--spacing-lg);
    margin: var(--spacing-lg) 0;
    background: var(--color-bg-card);
    border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
}

/* Tags */
.thw-article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    align-items: center;
    margin: var(--spacing-xl) 0;
    padding: var(--spacing-lg) 0;
    border-top: 1px solid var(--color-border);
}

.thw-tags-label {
    font-weight: 600;
    color: var(--color-text-secondary);
    margin-right: var(--spacing-sm);
}

/* Share Bottom */
.thw-article-share-bottom {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    margin-bottom: var(--spacing-xl);
}

.thw-share-label {
    font-weight: 600;
    color: var(--color-text-secondary);
    white-space: nowrap;
}

/* Ad Slots */
.thw-ad-slot {
    margin: var(--spacing-xl) 0;
    padding: var(--spacing-md);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    text-align: center;
    min-height: 100px;
}

.thw-ad-label {
    display: block;
    font-size: 0.65rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-sm);
}

.thw-ad-mid-article {
    margin: var(--spacing-lg) 0;
}

.thw-ad-sidebar-top,
.thw-ad-sidebar-bottom {
    margin-bottom: var(--spacing-lg);
}

/* Enhanced Author Box */
.thw-author-box-enhanced {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    margin-bottom: var(--spacing-xl);
}

.thw-author-box-header {
    padding: var(--spacing-sm) var(--spacing-lg);
    background: linear-gradient(90deg, var(--color-primary), transparent);
}

.thw-author-box-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-bg-dark);
}

.thw-author-box-content {
    display: flex;
    gap: var(--spacing-lg);
    padding: var(--spacing-xl);
}

.thw-author-avatar-large img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--color-primary);
}

.thw-author-details {
    flex: 1;
}

.thw-author-name-large {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

.thw-author-name-large a {
    color: var(--color-text-primary);
}

.thw-author-name-large a:hover {
    color: var(--color-primary);
}

.thw-author-bio-text {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    margin-bottom: var(--spacing-md);
}

.thw-author-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.thw-author-posts-count {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.thw-author-social-mini {
    display: flex;
    gap: var(--spacing-sm);
}

.thw-author-social-mini a {
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}

.thw-author-social-mini a:hover {
    color: var(--color-primary);
}

.thw-author-view-all {
    font-size: 0.9rem;
    color: var(--color-primary);
    font-weight: 500;
}

/* Enhanced Related Posts */
.thw-related-enhanced {
    margin-bottom: var(--spacing-xl);
}

.thw-related-title {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.thw-related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.thw-related-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: all var(--transition-fast);
}

.thw-related-card:hover {
    border-color: var(--color-primary);
}

.thw-related-thumb {
    display: block;
    height: 120px;
    overflow: hidden;
}

.thw-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.thw-related-card:hover .thw-related-thumb img {
    transform: scale(1.05);
}

.thw-related-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: var(--color-bg-input);
}

.thw-related-content {
    padding: var(--spacing-md);
}

.thw-related-card-title {
    font-size: 0.9rem;
    margin-bottom: var(--spacing-xs);
    line-height: 1.4;
}

.thw-related-card-title a {
    color: var(--color-text-primary);
}

.thw-related-card-title a:hover {
    color: var(--color-primary);
}

.thw-related-date {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* Sidebar TOC */
.thw-toc-widget {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.thw-toc {
    max-height: 300px;
    overflow-y: auto;
}

.thw-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.thw-toc-list li {
    margin-bottom: var(--spacing-sm);
}

.thw-toc-list a {
    display: block;
    padding: var(--spacing-xs) var(--spacing-sm);
    color: var(--color-text-secondary);
    font-size: 0.85rem;
    border-left: 2px solid transparent;
    transition: all var(--transition-fast);
}

.thw-toc-list a:hover,
.thw-toc-list a.active {
    color: var(--color-primary);
    border-left-color: var(--color-primary);
    background: rgba(0, 255, 65, 0.05);
}

.thw-toc-loading {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

/* Sidebar Newsletter Mini */
.thw-sidebar-newsletter-mini {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.thw-sidebar-newsletter-mini p {
    color: var(--color-text-secondary);
    font-size: 0.85rem;
    margin-bottom: var(--spacing-md);
}

.thw-newsletter-form-mini {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.thw-newsletter-form-mini input {
    padding: var(--spacing-sm);
    background: var(--color-bg-input);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    color: var(--color-text-primary);
    font-size: 0.85rem;
}

.thw-newsletter-form-mini button {
    padding: var(--spacing-sm);
    background: var(--color-primary);
    border: none;
    border-radius: var(--border-radius-sm);
    color: var(--color-bg-dark);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
}

/* Popular in Category */
.thw-popular-list {
    display: flex;
    flex-direction: column;
}

.thw-popular-item {
    display: flex;
    flex-direction: column;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--color-border);
}

.thw-popular-item:last-child {
    border-bottom: none;
}

.thw-popular-title {
    font-size: 0.85rem;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-xs);
    line-height: 1.4;
}

.thw-popular-item:hover .thw-popular-title {
    color: var(--color-primary);
}

.thw-popular-views {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* Comments Section */
.thw-comments-section {
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--color-border);
}

/* Responsive */
@media (max-width: 1024px) {
    .thw-single-layout {
        grid-template-columns: 1fr;
    }
    
    .thw-single-sidebar {
        order: 2;
    }
    
    .thw-sidebar-sticky {
        position: static;
        max-height: none;
    }
    
    .thw-toc-widget {
        display: none;
    }
}

@media (max-width: 768px) {
    .thw-article-title {
        font-size: 1.75rem;
    }
    
    .thw-article-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .thw-author-box-content {
        flex-direction: column;
        text-align: center;
    }
    
    .thw-author-meta-row {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .thw-related-grid {
        grid-template-columns: 1fr;
    }
    
    .thw-article-share-bottom {
        flex-direction: column;
    }
}


/* ============================================
   Header Logo Sizing
   ============================================ */
.thw-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    text-decoration: none;
    flex-shrink: 0;
}

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

.thw-logo-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    text-decoration: none;
}

/* Header Logo - uses CSS variable from Customizer */
.thw-logo img,
.thw-logo .custom-logo,
.thw-header .thw-logo img,
.thw-header .thw-logo .custom-logo {
    max-height: var(--header-logo-height, 50px);
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Footer Logo - uses CSS variable from Customizer */
.thw-footer-logo img,
.thw-footer-logo .custom-logo {
    max-height: var(--footer-logo-height, 40px);
    width: auto;
    height: auto;
    object-fit: contain;
}

/* ============================================
   Newsletter Notice Messages
   ============================================ */
.thw-notice {
    padding: var(--spacing-md) var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    border-radius: var(--border-radius-md);
    font-size: 0.95rem;
    text-align: center;
}

.thw-notice-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid var(--color-success);
    color: var(--color-success);
}

.thw-notice-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid var(--color-error);
    color: var(--color-error);
}

.thw-notice-info {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid var(--color-info);
    color: var(--color-info);
}

.thw-notice-warning {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid var(--color-warning);
    color: var(--color-warning);
}

/* Mailchimp for WP Form Styling */
.mc4wp-form {
    margin-top: var(--spacing-md);
}

.mc4wp-form input[type="email"] {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--color-bg-input);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    color: var(--color-text-primary);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-sm);
}

.mc4wp-form input[type="email"]:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px var(--color-primary-glow);
}

.mc4wp-form input[type="submit"],
.mc4wp-form button[type="submit"] {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--color-primary);
    border: none;
    border-radius: var(--border-radius-sm);
    color: var(--color-bg-dark);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.mc4wp-form input[type="submit"]:hover,
.mc4wp-form button[type="submit"]:hover {
    background: var(--color-primary-dark);
}

.mc4wp-alert {
    padding: var(--spacing-sm);
    margin-top: var(--spacing-sm);
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
}

.mc4wp-success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--color-success);
}

.mc4wp-error {
    background: rgba(239, 68, 68, 0.15);
    color: var(--color-error);
}


/* ============================================
   Professional Animations
   ============================================ */

/* Animation Variables */
:root {
    --animation-duration-slow: 0.8s;
    --animation-duration-normal: 0.5s;
    --animation-duration-fast: 0.3s;
}

/* Fade In Animation */
@keyframes thwFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes thwFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes thwSlideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes thwPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

@keyframes thwGlow {
    0%, 100% { box-shadow: 0 0 5px var(--color-primary-glow); }
    50% { box-shadow: 0 0 20px var(--color-primary-glow), 0 0 30px var(--color-primary-glow); }
}

/* Animated Elements - Initial State */
.thw-animations-enabled .thw-animate-section,
.thw-animations-enabled .thw-animate-grid > *,
.thw-animations-enabled .thw-animate-item {
    opacity: 0;
    transform: translateY(30px);
}

/* Animated Elements - Visible State */
.thw-animations-enabled .thw-animate-section.thw-visible,
.thw-animations-enabled .thw-animate-grid > *.thw-visible,
.thw-animations-enabled .thw-animate-item.thw-visible {
    animation: thwFadeInUp var(--animation-duration) ease-out forwards;
}

/* Staggered Animation for Grid Items */
.thw-animations-enabled.thw-stagger-enabled .thw-animate-grid > *:nth-child(1) { animation-delay: 0s; }
.thw-animations-enabled.thw-stagger-enabled .thw-animate-grid > *:nth-child(2) { animation-delay: 0.1s; }
.thw-animations-enabled.thw-stagger-enabled .thw-animate-grid > *:nth-child(3) { animation-delay: 0.2s; }
.thw-animations-enabled.thw-stagger-enabled .thw-animate-grid > *:nth-child(4) { animation-delay: 0.3s; }
.thw-animations-enabled.thw-stagger-enabled .thw-animate-grid > *:nth-child(5) { animation-delay: 0.4s; }
.thw-animations-enabled.thw-stagger-enabled .thw-animate-grid > *:nth-child(6) { animation-delay: 0.5s; }
.thw-animations-enabled.thw-stagger-enabled .thw-animate-grid > *:nth-child(7) { animation-delay: 0.6s; }
.thw-animations-enabled.thw-stagger-enabled .thw-animate-grid > *:nth-child(8) { animation-delay: 0.7s; }
.thw-animations-enabled.thw-stagger-enabled .thw-animate-grid > *:nth-child(9) { animation-delay: 0.8s; }

/* Card Hover Animations */
.thw-animations-enabled.thw-card-hover-enabled .thw-post-card,
.thw-animations-enabled.thw-card-hover-enabled .thw-cat-featured,
.thw-animations-enabled.thw-card-hover-enabled .thw-tool-card {
    transition: transform var(--animation-duration) ease, box-shadow var(--animation-duration) ease;
}

.thw-animations-enabled.thw-card-hover-enabled .thw-post-card:hover,
.thw-animations-enabled.thw-card-hover-enabled .thw-cat-featured:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 20px var(--color-primary-glow);
}

.thw-animations-enabled.thw-card-hover-enabled .thw-tool-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 15px var(--color-primary-glow);
}

/* Button Animations */
.thw-animations-enabled.thw-btn-hover-enabled .thw-btn-load-more,
.thw-animations-enabled.thw-btn-hover-enabled .thw-newsletter-btn,
.thw-animations-enabled.thw-btn-hover-enabled button[type="submit"] {
    position: relative;
    overflow: hidden;
    transition: all var(--animation-duration) ease;
}

.thw-animations-enabled.thw-btn-hover-enabled .thw-btn-load-more:hover,
.thw-animations-enabled.thw-btn-hover-enabled .thw-newsletter-btn:hover,
.thw-animations-enabled.thw-btn-hover-enabled button[type="submit"]:hover {
    animation: thwPulse 0.6s ease-in-out;
}

.thw-animations-enabled.thw-btn-hover-enabled .thw-btn-load-more::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.thw-animations-enabled.thw-btn-hover-enabled .thw-btn-load-more:hover::after {
    width: 300px;
    height: 300px;
}

/* Sidebar Animations */
.thw-animations-enabled .thw-sidebar-newsletter,
.thw-animations-enabled .thw-sidebar-section {
    transition: transform var(--animation-duration) ease, box-shadow var(--animation-duration) ease;
}

.thw-animations-enabled .thw-sidebar-newsletter:hover,
.thw-animations-enabled .thw-sidebar-section:hover {
    transform: translateX(-5px);
}

/* Link Hover Effects */
.thw-animations-enabled .thw-section-link {
    position: relative;
    transition: color var(--animation-duration) ease;
}

.thw-animations-enabled .thw-section-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--animation-duration) ease;
}

.thw-animations-enabled .thw-section-link:hover::after {
    width: 100%;
}

/* Image Hover Zoom */
.thw-animations-enabled .thw-post-thumbnail img,
.thw-animations-enabled .thw-cat-featured-image img {
    transition: transform 0.6s ease;
}

.thw-animations-enabled .thw-post-card:hover .thw-post-thumbnail img,
.thw-animations-enabled .thw-cat-featured:hover .thw-cat-featured-image img {
    transform: scale(1.08);
}

/* Trending Number Animation */
.thw-animations-enabled .thw-trending-number {
    transition: transform var(--animation-duration) ease, color var(--animation-duration) ease;
}

.thw-animations-enabled .thw-trending-item:hover .thw-trending-number {
    transform: scale(1.2);
    color: var(--color-primary);
    opacity: 1;
}

/* Social Button Animations */
.thw-animations-enabled .thw-social-btn {
    transition: all var(--animation-duration) ease;
}

.thw-animations-enabled .thw-social-btn:hover {
    transform: translateY(-3px);
}

/* Header Animation */
.thw-animations-enabled .thw-header {
    transition: background-color var(--animation-duration) ease, box-shadow var(--animation-duration) ease;
}

/* Breaking News Ticker Animation Enhancement */
.thw-animations-enabled .thw-breaking-label {
    animation: thwPulse 2s ease-in-out infinite;
}

/* Speed Classes */
.thw-animation-slow { --animation-duration: var(--animation-duration-slow); }
.thw-animation-normal { --animation-duration: var(--animation-duration-normal); }
.thw-animation-fast { --animation-duration: var(--animation-duration-fast); }

/* Respect Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .thw-respect-motion .thw-animate-section,
    .thw-respect-motion .thw-animate-grid > *,
    .thw-respect-motion .thw-animate-item {
        opacity: 1;
        transform: none;
        animation: none !important;
    }
    
    .thw-respect-motion * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Disable animations class */
.thw-animations-disabled * {
    animation: none !important;
    transition: none !important;
}


/* ============================================
   WPForms Styling - Dark Theme
   ============================================ */

/* Form Container */
.wpforms-container {
    max-width: 700px;
}

.wpforms-form {
    background: var(--color-bg-card);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--color-border);
}

/* Labels */
.wpforms-form .wpforms-field-label,
.wpforms-form .wpforms-field-sublabel {
    color: var(--color-primary) !important;
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: var(--spacing-xs);
}

.wpforms-form .wpforms-field-sublabel {
    color: var(--color-text-muted) !important;
    font-size: 0.8rem;
}

/* Required Asterisk */
.wpforms-form .wpforms-required-label {
    color: var(--color-accent-red) !important;
}

/* Input Fields */
.wpforms-form input[type="text"],
.wpforms-form input[type="email"],
.wpforms-form input[type="tel"],
.wpforms-form input[type="url"],
.wpforms-form input[type="number"],
.wpforms-form input[type="password"],
.wpforms-form input[type="date"],
.wpforms-form textarea,
.wpforms-form select {
    background: var(--color-bg-input) !important;
    border: 1px solid var(--color-border) !important;
    border-radius: var(--border-radius-sm) !important;
    color: var(--color-text-primary) !important;
    padding: var(--spacing-sm) var(--spacing-md) !important;
    font-family: var(--font-body) !important;
    font-size: 1rem !important;
    transition: all var(--transition-fast) !important;
    width: 100% !important;
}

.wpforms-form input[type="text"]:focus,
.wpforms-form input[type="email"]:focus,
.wpforms-form input[type="tel"]:focus,
.wpforms-form input[type="url"]:focus,
.wpforms-form input[type="number"]:focus,
.wpforms-form input[type="password"]:focus,
.wpforms-form input[type="date"]:focus,
.wpforms-form textarea:focus,
.wpforms-form select:focus {
    outline: none !important;
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 3px var(--color-primary-glow) !important;
}

/* Placeholder */
.wpforms-form input::placeholder,
.wpforms-form textarea::placeholder {
    color: var(--color-text-muted) !important;
}

/* Textarea */
.wpforms-form textarea {
    min-height: 150px !important;
    resize: vertical !important;
}

/* Select Dropdown */
.wpforms-form select {
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2300FF41' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    padding-right: 40px !important;
    cursor: pointer !important;
}

.wpforms-form select option {
    background: var(--color-bg-card);
    color: var(--color-text-primary);
    padding: var(--spacing-sm);
}

/* Submit Button */
.wpforms-form button[type="submit"],
.wpforms-form .wpforms-submit {
    background: var(--color-primary) !important;
    color: var(--color-bg-dark) !important;
    border: none !important;
    border-radius: var(--border-radius-sm) !important;
    padding: var(--spacing-md) var(--spacing-xl) !important;
    font-family: var(--font-heading) !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    cursor: pointer !important;
    transition: all var(--transition-fast) !important;
    position: relative !important;
    overflow: hidden !important;
}

.wpforms-form button[type="submit"]:hover,
.wpforms-form .wpforms-submit:hover {
    background: var(--color-primary-dark) !important;
    box-shadow: 0 0 20px var(--color-primary-glow), 0 4px 15px rgba(0, 0, 0, 0.3) !important;
    transform: translateY(-2px) !important;
}

.wpforms-form button[type="submit"]:active,
.wpforms-form .wpforms-submit:active {
    transform: translateY(0) !important;
}

/* Field Spacing */
.wpforms-form .wpforms-field {
    margin-bottom: var(--spacing-lg) !important;
}

/* Name Field - Side by Side */
.wpforms-form .wpforms-field-name .wpforms-field-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: var(--spacing-md) !important;
    width: 100% !important;
}

.wpforms-form .wpforms-field-name .wpforms-field-row-block,
.wpforms-form .wpforms-field-name .wpforms-one-half {
    flex: 1 1 50% !important;
    min-width: 0 !important;
    width: 50% !important;
    float: none !important;
    display: block !important;
}

.wpforms-form .wpforms-field-name .wpforms-field-row-block input,
.wpforms-form .wpforms-field-name .wpforms-one-half input,
.wpforms-form .wpforms-field-name input[type="text"] {
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Force all fields to full width */
.wpforms-form .wpforms-field {
    width: 100% !important;
    max-width: 100% !important;
}

.wpforms-form .wpforms-field-container {
    width: 100% !important;
    max-width: 100% !important;
}

/* Fix for fields that might have inline styles */
.wpforms-form .wpforms-field input:not([type="checkbox"]):not([type="radio"]),
.wpforms-form .wpforms-field textarea,
.wpforms-form .wpforms-field select {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* WPForms container full width */
.wpforms-container,
.wpforms-container-full,
div.wpforms-container-full .wpforms-form {
    width: 100% !important;
    max-width: 100% !important;
}

/* Override any WPForms inline max-width */
div.wpforms-container-full .wpforms-form input.wpforms-field-medium,
div.wpforms-container-full .wpforms-form select.wpforms-field-medium,
div.wpforms-container-full .wpforms-form .wpforms-field-row.wpforms-field-medium {
    max-width: 100% !important;
}

div.wpforms-container-full .wpforms-form input.wpforms-field-large,
div.wpforms-container-full .wpforms-form select.wpforms-field-large,
div.wpforms-container-full .wpforms-form textarea.wpforms-field-large {
    max-width: 100% !important;
}

/* Name field specific - handle both layouts */
div.wpforms-container-full .wpforms-form .wpforms-field-name {
    width: 100% !important;
}

div.wpforms-container-full .wpforms-form .wpforms-field-name .wpforms-field-row {
    display: flex !important;
    flex-direction: row !important;
    gap: 15px !important;
}

div.wpforms-container-full .wpforms-form .wpforms-field-name .wpforms-field-row > div {
    flex: 1 !important;
    width: auto !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Error Messages */
.wpforms-form .wpforms-error {
    color: var(--color-error) !important;
    font-size: 0.85rem !important;
    margin-top: var(--spacing-xs) !important;
}

.wpforms-form input.wpforms-error,
.wpforms-form textarea.wpforms-error,
.wpforms-form select.wpforms-error {
    border-color: var(--color-error) !important;
}

/* Success Message */
.wpforms-confirmation-container-full {
    background: rgba(16, 185, 129, 0.15) !important;
    border: 1px solid var(--color-success) !important;
    border-radius: var(--border-radius-md) !important;
    padding: var(--spacing-xl) !important;
    text-align: center !important;
}

.wpforms-confirmation-container-full p {
    color: var(--color-success) !important;
    font-size: 1.1rem !important;
    margin: 0 !important;
}

/* Checkbox & Radio */
.wpforms-form input[type="checkbox"],
.wpforms-form input[type="radio"] {
    width: 18px !important;
    height: 18px !important;
    accent-color: var(--color-primary) !important;
}

.wpforms-form .wpforms-field-checkbox li,
.wpforms-form .wpforms-field-radio li {
    color: var(--color-text-primary) !important;
    margin-bottom: var(--spacing-sm) !important;
}

/* File Upload */
.wpforms-form .wpforms-field-file-upload input[type="file"] {
    background: var(--color-bg-input) !important;
    border: 2px dashed var(--color-border) !important;
    border-radius: var(--border-radius-md) !important;
    padding: var(--spacing-lg) !important;
    color: var(--color-text-secondary) !important;
    cursor: pointer !important;
}

.wpforms-form .wpforms-field-file-upload input[type="file"]:hover {
    border-color: var(--color-primary) !important;
}

/* Description Text */
.wpforms-form .wpforms-field-description {
    color: var(--color-text-muted) !important;
    font-size: 0.85rem !important;
    margin-top: var(--spacing-xs) !important;
}

/* GDPR/Consent Fields */
.wpforms-form .wpforms-field-gdpr-checkbox label,
.wpforms-form .wpforms-field-checkbox label {
    color: var(--color-text-secondary) !important;
    font-size: 0.9rem !important;
}

/* Page Break / Multi-page */
.wpforms-form .wpforms-page-indicator {
    background: var(--color-bg-input) !important;
    border-radius: var(--border-radius-md) !important;
    padding: var(--spacing-md) !important;
    margin-bottom: var(--spacing-xl) !important;
}

.wpforms-form .wpforms-page-indicator-page {
    color: var(--color-text-muted) !important;
}

.wpforms-form .wpforms-page-indicator-page.active {
    color: var(--color-primary) !important;
}

.wpforms-form .wpforms-page-indicator-page-progress {
    background: var(--color-primary) !important;
}

/* Divider */
.wpforms-form .wpforms-field-divider hr {
    border-color: var(--color-border) !important;
}

.wpforms-form .wpforms-field-divider h3 {
    color: var(--color-primary) !important;
    font-family: var(--font-heading) !important;
}

/* Loading Spinner */
.wpforms-form .wpforms-submit-spinner {
    border-color: var(--color-primary) transparent transparent transparent !important;
}

/* Honeypot (keep hidden) */
.wpforms-form .wpforms-field-hp {
    display: none !important;
}
