/* ==========================================================================
   TechNexus - Premium Matte Black Glassmorphic & Claymorphic Design System
   Color Palette: Pure Matte Charcoal, Smoked Onyx, Platinum & Cyber Neon
   ========================================================================== */

:root {
    /* Matte Black Base Tones */
    --bg-base: #0d0d11;
    --bg-deep: #08080a;
    --bg-surface: #141418;
    
    /* Matte Smoked Glass Surfaces */
    --glass-bg-subtle: rgba(255, 255, 255, 0.03);
    --glass-bg-card: rgba(22, 22, 28, 0.75);
    --glass-bg-card-hover: rgba(30, 30, 38, 0.9);
    --glass-bg-nav: rgba(14, 14, 18, 0.85);
    --glass-bg-input: rgba(18, 18, 22, 0.9);

    /* Matte Borders & Subtle Bevels */
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(255, 255, 255, 0.18);
    --glass-border-glow: rgba(0, 242, 254, 0.35);
    --clay-inner-light: inset 0 1px 1px 0 rgba(255, 255, 255, 0.12);
    --clay-inner-shadow: inset 0 -2px 4px 0 rgba(0, 0, 0, 0.6);

    /* Matte Typography (Crisp Platinum & Zinc) */
    --text-primary: #f4f4f6;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --text-inverse: #0d0d11;

    /* Accents on Matte Black */
    --accent-indigo: #6366f1;
    --accent-violet: #8b5cf6;
    --accent-fuchsia: #d946ef;
    --accent-cyan: #00f2fe;
    --accent-teal: #14b8a6;
    --accent-coral: #f43f5e;
    --accent-amber: #f59e0b;

    /* Matte Gradients & Buttons */
    --gradient-aurora: linear-gradient(135deg, #00f2fe 0%, #6366f1 50%, #8b5cf6 100%);
    --gradient-clay-btn: linear-gradient(135deg, #00f2fe 0%, #4facfe 50%, #8b5cf6 100%);
    --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    --gradient-glow: radial-gradient(circle at 50% 0%, rgba(0, 242, 254, 0.12), transparent 70%);

    /* Matte Shadows */
    --shadow-glass: 0 16px 36px -10px rgba(0, 0, 0, 0.7), 0 0 1px 1px rgba(255, 255, 255, 0.06);
    --shadow-clay: 0 20px 40px -15px rgba(0, 0, 0, 0.8), inset 0 1px 1px rgba(255, 255, 255, 0.15);
    --shadow-clay-btn: 0 8px 24px -4px rgba(0, 242, 254, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.4);
    --shadow-hover: 0 24px 48px -12px rgba(0, 0, 0, 0.85), 0 0 25px rgba(0, 242, 254, 0.2);

    /* Typography */
    --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;

    /* Radii */
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 26px;
    --radius-full: 9999px;
    --transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);

    /* Compatibility & Shorthand Aliases */
    --cyan: var(--accent-cyan);
    --rose: var(--accent-coral);
    --border-subtle: var(--glass-border);
    --bg-surface-elevated: rgba(255, 255, 255, 0.05);
    --gradient-primary: var(--gradient-aurora);
}

/* ==========================================================================
   Light Mode Design System - Crisp, Modern, High-End Tech Aesthetic
   Inspired by Linear, Stripe & Vercel Light Themes
   ========================================================================== */
[data-theme="light"] {
    /* Refined Light Canvas */
    --bg-base: #f8fafc;
    --bg-deep: #f1f5f9;
    --bg-surface: #ffffff;
    
    /* Pure Frosted Glass Surfaces */
    --glass-bg-subtle: rgba(241, 245, 249, 0.85);
    --glass-bg-card: #ffffff;
    --glass-bg-card-hover: #ffffff;
    --glass-bg-nav: rgba(255, 255, 255, 0.85);
    --glass-bg-input: #f8fafc;

    /* Crisp Precision Borders & Inner Highlights */
    --glass-border: rgba(226, 232, 240, 0.95);
    --glass-border-hover: rgba(99, 102, 241, 0.4);
    --glass-border-glow: rgba(99, 102, 241, 0.25);
    --clay-inner-light: inset 0 1px 1px 0 rgba(255, 255, 255, 0.95);
    --clay-inner-shadow: inset 0 1px 2px 0 rgba(15, 23, 42, 0.04);

    /* High-Contrast, Ultra-Readable Typography */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-inverse: #ffffff;

    /* Saturated, High-Contrast Accents (WCAG AA Compliant on White) */
    --accent-indigo: #4f46e5;
    --accent-violet: #7c3aed;
    --accent-fuchsia: #c026d3;
    --accent-cyan: #0284c7;  /* High-contrast electric cyan/cerulean */
    --accent-teal: #0d9488;
    --accent-coral: #e11d48;
    --accent-amber: #d97706;

    /* Compatibility Aliases */
    --cyan: #0284c7;
    --rose: #e11d48;
    --border-subtle: rgba(226, 232, 240, 0.95);
    --bg-surface-elevated: #f1f5f9;
    --gradient-primary: linear-gradient(135deg, #0284c7 0%, #4f46e5 50%, #7c3aed 100%);

    /* Premium Gradients */
    --gradient-aurora: linear-gradient(135deg, #0284c7 0%, #4f46e5 50%, #7c3aed 100%);
    --gradient-clay-btn: linear-gradient(135deg, #2563eb 0%, #4f46e5 50%, #7c3aed 100%);
    --gradient-card: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    --gradient-glow: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.08), transparent 70%);

    /* Soft Diffuse Elevation Shadows */
    --shadow-glass: 0 10px 30px -8px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.03);
    --shadow-clay: 0 12px 32px -8px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.03);
    --shadow-clay-btn: 0 8px 20px -3px rgba(79, 70, 229, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.7);
    --shadow-hover: 0 20px 42px -10px rgba(99, 102, 241, 0.15), 0 2px 6px rgba(15, 23, 42, 0.04);
}

/* ==========================================================================
   Light Mode Comprehensive Component Overrides
   ========================================================================== */
[data-theme="light"] body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    background-image: 
        radial-gradient(circle at 15% 0%, rgba(99, 102, 241, 0.05) 0%, transparent 45%),
        radial-gradient(circle at 85% 5%, rgba(14, 165, 233, 0.05) 0%, transparent 45%),
        linear-gradient(to right, rgba(15, 23, 42, 0.025) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(15, 23, 42, 0.025) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 36px 36px, 36px 36px;
}

[data-theme="light"] body::before {
    display: block;
    background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.07) 0%, transparent 70%);
}

/* Header & Navigation */
[data-theme="light"] .site-header {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.95) !important;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03) !important;
}

[data-theme="light"] .brand-logo {
    color: #0f172a !important;
}

[data-theme="light"] .brand-title {
    color: #0f172a !important;
}

[data-theme="light"] .brand-pulse {
    background: #10b981 !important;
    box-shadow: 0 0 10px #10b981 !important;
}

[data-theme="light"] .main-navigation a {
    color: #475569 !important;
}

[data-theme="light"] .main-navigation a:hover,
[data-theme="light"] .main-navigation .current-menu-item > a {
    color: #0f172a !important;
    background: #f1f5f9 !important;
    border-color: rgba(203, 213, 225, 0.8) !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04) !important;
}

[data-theme="light"] .btn-icon {
    background: #ffffff !important;
    border: 1px solid rgba(226, 232, 240, 0.95) !important;
    color: #475569 !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04) !important;
}

[data-theme="light"] .btn-icon:hover {
    color: #4f46e5 !important;
    border-color: rgba(99, 102, 241, 0.4) !important;
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.15) !important;
}

[data-theme="light"] .btn-outline {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04) !important;
}

[data-theme="light"] .btn-outline:hover {
    border-color: #6366f1 !important;
    color: #4f46e5 !important;
    background: #f8fafc !important;
}

/* Category Filter Bar */
[data-theme="light"] .category-filter-bar {
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(16px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.95) !important;
}

[data-theme="light"] .pill-item {
    background: #ffffff !important;
    color: #475569 !important;
    border: 1px solid rgba(226, 232, 240, 0.95) !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04) !important;
}

[data-theme="light"] .pill-item:hover,
[data-theme="light"] .pill-item.active {
    background: var(--gradient-clay-btn) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.3) !important;
}

/* Hero Section */
[data-theme="light"] .hero-card {
    background: #ffffff !important;
    border: 1px solid rgba(226, 232, 240, 0.95) !important;
    box-shadow: 0 20px 45px -12px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.03) !important;
}

[data-theme="light"] .hero-card:hover {
    border-color: rgba(99, 102, 241, 0.35) !important;
    box-shadow: 0 28px 56px -12px rgba(99, 102, 241, 0.12), 0 2px 6px rgba(15, 23, 42, 0.04) !important;
}

[data-theme="light"] .hero-media {
    background: #e2e8f0 !important;
}

[data-theme="light"] .hero-media-overlay {
    background: linear-gradient(to right, transparent 35%, rgba(255, 255, 255, 0.98) 100%) !important;
}

@media (max-width: 1024px) {
    [data-theme="light"] .hero-media-overlay {
        background: linear-gradient(to bottom, transparent 40%, rgba(255, 255, 255, 0.98) 100%) !important;
    }
}

[data-theme="light"] .featured-badge {
    background: rgba(99, 102, 241, 0.08) !important;
    color: #4338ca !important;
    border: 1px solid rgba(99, 102, 241, 0.25) !important;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.06) !important;
}

[data-theme="light"] .hero-title a {
    color: #0f172a !important;
}

[data-theme="light"] .hero-title a:hover {
    color: #4f46e5 !important;
}

[data-theme="light"] .hero-excerpt {
    color: #475569 !important;
}

[data-theme="light"] .meta-group {
    color: #64748b !important;
}

[data-theme="light"] .meta-item svg {
    color: #4f46e5 !important;
}

/* Post Cards Grid */
[data-theme="light"] .tech-post-card {
    background: #ffffff !important;
    border: 1px solid rgba(226, 232, 240, 0.95) !important;
    box-shadow: 0 10px 30px -8px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.03) !important;
}

[data-theme="light"] .tech-post-card::before {
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.25), transparent) !important;
}

[data-theme="light"] .tech-post-card:hover {
    border-color: rgba(99, 102, 241, 0.35) !important;
    box-shadow: 0 20px 42px -10px rgba(99, 102, 241, 0.14), 0 2px 6px rgba(15, 23, 42, 0.04) !important;
}

[data-theme="light"] .card-thumbnail {
    background: #e2e8f0 !important;
}

[data-theme="light"] .category-tag {
    background: rgba(255, 255, 255, 0.94) !important;
    color: #4f46e5 !important;
    border: 1px solid rgba(226, 232, 240, 0.95) !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08) !important;
    font-weight: 700 !important;
}

[data-theme="light"] .read-time-tag {
    background: rgba(255, 255, 255, 0.94) !important;
    color: #475569 !important;
    border: 1px solid rgba(226, 232, 240, 0.95) !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08) !important;
}

[data-theme="light"] .card-title a {
    color: #0f172a !important;
}

[data-theme="light"] .card-title a:hover {
    color: #4f46e5 !important;
}

[data-theme="light"] .card-excerpt {
    color: #475569 !important;
}

[data-theme="light"] .card-footer {
    border-top: 1px solid #f1f5f9 !important;
    color: #64748b !important;
}

[data-theme="light"] .card-read-more {
    color: #4f46e5 !important;
    font-weight: 600 !important;
}

[data-theme="light"] .card-read-more:hover {
    color: #7c3aed !important;
}

/* Sidebar & Widgets */
[data-theme="light"] .tech-widget {
    background: #ffffff !important;
    border: 1px solid rgba(226, 232, 240, 0.95) !important;
    box-shadow: 0 10px 30px -8px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.03) !important;
}

[data-theme="light"] .widget-title,
[data-theme="light"] .wp-block-search__label {
    color: #0f172a !important;
}

[data-theme="light"] .widget-title-glow,
[data-theme="light"] .wp-block-search__label::before {
    background: var(--gradient-clay-btn) !important;
    box-shadow: 0 0 10px rgba(79, 70, 229, 0.3) !important;
}

[data-theme="light"] .tech-widget ul li {
    border-bottom: 1px solid #f1f5f9 !important;
    color: #475569 !important;
}

[data-theme="light"] .tech-widget ul li a {
    color: #475569 !important;
}

[data-theme="light"] .tech-widget ul li a:hover {
    color: #4f46e5 !important;
}

[data-theme="light"] .search-input-wrapper,
[data-theme="light"] .wp-block-search__inside-wrapper {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

[data-theme="light"] .search-input-wrapper:focus-within,
[data-theme="light"] .wp-block-search__inside-wrapper:focus-within {
    border-color: #6366f1 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15) !important;
}

[data-theme="light"] .search-icon-btn {
    color: #64748b !important;
}

[data-theme="light"] .wp-block-search__input,
[data-theme="light"] .search-field,
[data-theme="light"] .search-input-wrapper input {
    color: #0f172a !important;
}

[data-theme="light"] .search-input-wrapper input::placeholder {
    color: #94a3b8 !important;
}

[data-theme="light"] .trending-item a {
    color: #1e293b !important;
}

[data-theme="light"] .trending-item a:hover {
    color: #4f46e5 !important;
}

[data-theme="light"] .tech-newsletter-card {
    background: linear-gradient(145deg, #f0fdf4 0%, #eff6ff 50%, #f5f3ff 100%) !important;
    border: 1px solid rgba(99, 102, 241, 0.22) !important;
    box-shadow: 0 14px 34px -8px rgba(99, 102, 241, 0.1) !important;
}

[data-theme="light"] .tech-newsletter-card h4 {
    color: #0f172a !important;
}

[data-theme="light"] .tech-newsletter-card p {
    color: #475569 !important;
}

[data-theme="light"] .newsletter-icon {
    background: var(--gradient-clay-btn) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 20px -2px rgba(79, 70, 229, 0.35) !important;
}

[data-theme="light"] .newsletter-form input {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04) !important;
}

[data-theme="light"] .newsletter-form input:focus {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15) !important;
}

[data-theme="light"] .widget_categories span {
    background: #f1f5f9 !important;
    color: #4f46e5 !important;
    border: 1px solid #e2e8f0 !important;
    font-weight: 600 !important;
}

/* Fallback SVG Thumbnail */
[data-theme="light"] .tech-fallback-svg rect:first-of-type {
    fill: #f1f5f9 !important;
}

/* Single Post Article & Typography */
[data-theme="light"] .single-title {
    color: #0f172a !important;
}

[data-theme="light"] .single-meta-bar {
    color: #64748b !important;
}

[data-theme="light"] .single-meta-bar svg {
    color: #4f46e5 !important;
}

[data-theme="light"] .author-chip {
    color: #0f172a !important;
}

[data-theme="light"] .author-chip img {
    border-color: #4f46e5 !important;
    box-shadow: 0 0 12px rgba(79, 70, 229, 0.25) !important;
}

[data-theme="light"] .single-featured-media {
    border: 1px solid rgba(226, 232, 240, 0.95) !important;
    box-shadow: 0 16px 36px -10px rgba(15, 23, 42, 0.08) !important;
}

[data-theme="light"] .article-content {
    background: #ffffff !important;
    border: 1px solid rgba(226, 232, 240, 0.95) !important;
    box-shadow: 0 16px 40px -10px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.03) !important;
    color: #334155 !important;
}

[data-theme="light"] .article-content h1,
[data-theme="light"] .article-content h2,
[data-theme="light"] .article-content h3,
[data-theme="light"] .article-content h4 {
    color: #0f172a !important;
}

[data-theme="light"] .article-content a {
    color: #4f46e5 !important;
}

[data-theme="light"] .article-content a:hover {
    color: #7c3aed !important;
}

[data-theme="light"] .article-content blockquote {
    background: #f8fafc !important;
    border-left: 4px solid #4f46e5 !important;
    color: #1e293b !important;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04) !important;
}

[data-theme="light"] .article-content code {
    background: #f1f5f9 !important;
    color: #4338ca !important;
    border: 1px solid #e2e8f0 !important;
    font-weight: 600 !important;
}

[data-theme="light"] .tech-code-container {
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08) !important;
}

[data-theme="light"] .code-header-bar {
    background: #1e293b !important;
    border-bottom: 1px solid #334155 !important;
    color: #94a3b8 !important;
}

[data-theme="light"] .copy-code-btn {
    color: #94a3b8 !important;
}

[data-theme="light"] .copy-code-btn:hover {
    color: #38bdf8 !important;
}

[data-theme="light"] .article-content pre {
    background: #0f172a !important;
    color: #f8fafc !important;
}

[data-theme="light"] .article-content pre code {
    background: transparent !important;
    color: inherit !important;
    border: none !important;
}

[data-theme="light"] .tech-toc-box {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.03) !important;
}

[data-theme="light"] .tech-toc-title {
    color: #0f172a !important;
}

[data-theme="light"] .tech-toc-list a {
    color: #475569 !important;
}

[data-theme="light"] .tech-toc-list a:hover {
    color: #4f46e5 !important;
}

[data-theme="light"] .author-profile-box {
    background: #ffffff !important;
    border: 1px solid rgba(226, 232, 240, 0.95) !important;
    box-shadow: 0 12px 30px -6px rgba(15, 23, 42, 0.06) !important;
}

[data-theme="light"] .author-info h4 {
    color: #0f172a !important;
}

[data-theme="light"] .author-bio {
    color: #475569 !important;
}

[data-theme="light"] .author-avatar img {
    border-color: #4f46e5 !important;
    box-shadow: 0 0 18px rgba(79, 70, 229, 0.25) !important;
}

/* Comments & Discussion */
[data-theme="light"] .tech-comments-area {
    border-top: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .comments-title,
[data-theme="light"] .comment-reply-title {
    color: #0f172a !important;
}

[data-theme="light"] .comment {
    background: #ffffff !important;
    border: 1px solid rgba(226, 232, 240, 0.95) !important;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04) !important;
}

[data-theme="light"] .comment-author {
    color: #0f172a !important;
}

[data-theme="light"] .comment p {
    color: #334155 !important;
}

[data-theme="light"] .comment-respond {
    background: #ffffff !important;
    border: 1px solid rgba(226, 232, 240, 0.95) !important;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05) !important;
}

[data-theme="light"] .comment-form label {
    color: #334155 !important;
}

[data-theme="light"] .comment-form input[type="text"],
[data-theme="light"] .comment-form input[type="email"],
[data-theme="light"] .comment-form input[type="url"],
[data-theme="light"] .comment-form textarea {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

[data-theme="light"] .comment-form input:focus,
[data-theme="light"] .comment-form textarea:focus {
    border-color: #6366f1 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15) !important;
}

/* Pagination */
[data-theme="light"] .tech-pagination .page-numbers {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
}

[data-theme="light"] .tech-pagination .page-numbers:hover,
[data-theme="light"] .tech-pagination .page-numbers.current {
    background: var(--gradient-clay-btn) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.35) !important;
}

/* Site Footer */
[data-theme="light"] .site-footer {
    background: #ffffff !important;
    border-top: 1px solid rgba(226, 232, 240, 0.95) !important;
    box-shadow: 0 -8px 30px rgba(15, 23, 42, 0.03) !important;
}

[data-theme="light"] .footer-brand-desc {
    color: #475569 !important;
}

[data-theme="light"] .footer-widget-title {
    color: #0f172a !important;
}

[data-theme="light"] .footer-widget ul li a {
    color: #475569 !important;
}

[data-theme="light"] .footer-widget ul li a:hover {
    color: #4f46e5 !important;
}

[data-theme="light"] .social-icon-btn {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04) !important;
}

[data-theme="light"] .social-icon-btn:hover {
    background: var(--gradient-clay-btn) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 8px 18px rgba(79, 70, 229, 0.3) !important;
}

[data-theme="light"] .back-to-top-btn {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04) !important;
}

[data-theme="light"] .back-to-top-btn:hover {
    background: var(--gradient-clay-btn) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 8px 18px rgba(79, 70, 229, 0.3) !important;
}

[data-theme="light"] .footer-bottom {
    border-top: 1px solid #f1f5f9 !important;
    color: #64748b !important;
}

/* Mobile Drawer */
[data-theme="light"] .mobile-drawer {
    background: rgba(255, 255, 255, 0.98) !important;
    border-bottom: 1px solid #e2e8f0 !important;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1) !important;
}

[data-theme="light"] .mobile-nav-links a {
    color: #0f172a !important;
}

[data-theme="light"] .mobile-nav-links a:hover {
    color: #4f46e5 !important;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1.02rem;
    line-height: 1.7;
    position: relative;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.02) 0%, transparent 70%),
        linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 100% 100%, 36px 36px, 36px 36px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Subtle Matte Vignette */
body::before {
    content: '';
    position: fixed;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: min(900px, 100vw);
    height: 500px;
    background: radial-gradient(ellipse at center, rgba(35, 35, 45, 0.4) 0%, transparent 70%);
    pointer-events: none;
    z-index: -2;
}

body::after {
    display: none;
}

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.025em;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
h4 { font-size: 1.2rem; }

p {
    margin-bottom: 1.35rem;
    color: var(--text-secondary);
}

code, pre {
    font-family: var(--font-mono);
}

/* Layout Container */
.tech-container {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Top Reading Progress Bar */
.reading-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 1001;
}

.reading-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--gradient-aurora);
    box-shadow: 0 0 12px var(--accent-cyan);
    transition: width 0.1s ease-out;
}

/* ==========================================================================
   GLASSMORPHIC FLOATING HEADER
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: var(--glass-bg-nav);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.4), var(--clay-inner-light);
    transition: var(--transition);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

/* WordPress Site Logo & Icon Styling */
.wp-site-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    transition: var(--transition);
    filter: drop-shadow(0 2px 8px rgba(0, 115, 170, 0.35));
    flex-shrink: 0;
}

.brand-logo:hover .wp-site-icon {
    transform: rotate(8deg) scale(1.06);
}

.site-logo-wrap,
.footer-custom-logo {
    display: flex;
    align-items: center;
}

.custom-logo-link {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    transition: var(--transition);
}

.custom-logo-link:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.custom-logo {
    max-height: 44px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.footer-custom-logo .custom-logo {
    max-height: 42px;
    width: auto;
}

/* Claymorphic Brand Icon (Fallback) */
.brand-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-aurora);
    border-radius: var(--radius-sm);
    color: #ffffff;
    box-shadow: var(--shadow-clay-btn);
    position: relative;
    overflow: hidden;
}

.brand-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, transparent 60%);
    border-radius: inherit;
    pointer-events: none;
}

.brand-pulse {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--accent-teal);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--accent-teal);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(0.8); }
}

.brand-text-accent {
    background: var(--gradient-aurora);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glassmorphic Navigation */
.main-navigation ul {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    list-style: none;
}

.main-navigation a {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0.55rem 1rem;
    border-radius: var(--radius-full);
    border: 1px solid transparent;
    transition: var(--transition);
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    color: var(--text-primary);
    background: var(--glass-bg-subtle);
    border-color: var(--glass-border);
    box-shadow: var(--clay-inner-light);
}

/* Claymorphic & Glassmorphic Action Controls */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.btn-icon {
    background: var(--glass-bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--clay-inner-light), 0 4px 12px rgba(0, 0, 0, 0.15);
    color: var(--text-secondary);
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-icon:hover {
    color: var(--accent-cyan);
    border-color: var(--glass-border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-clay-btn);
}

#theme-toggle-btn .icon-moon {
    display: none;
}

#theme-toggle-btn .icon-sun {
    display: block;
}

[data-theme="light"] #theme-toggle-btn .icon-sun {
    display: none !important;
}

[data-theme="light"] #theme-toggle-btn .icon-moon {
    display: block !important;
}

/* Claymorphic 3D Puffy Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.72rem 1.45rem;
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.btn-glow {
    background: var(--gradient-clay-btn);
    color: #ffffff;
    box-shadow: var(--shadow-clay-btn);
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, transparent 100%);
    border-radius: var(--radius-full) var(--radius-full) 0 0;
    pointer-events: none;
}

.btn-glow:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 28px -2px rgba(139, 92, 246, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.6);
    color: #ffffff;
}

.btn-outline {
    background: var(--glass-bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--clay-inner-light);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    background: var(--glass-bg-card-hover);
    transform: translateY(-2px);
}

.mobile-menu-toggle {
    display: none;
}

/* ==========================================================================
   GLASSMORPHIC CATEGORY FILTER PILLS
   ========================================================================== */
.category-filter-bar {
    padding: 0.85rem 0;
    background: rgba(18, 18, 22, 0.6);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    overflow: hidden;
    width: 100%;
}

.category-scroll-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
    max-width: 100%;
}

.category-scroll-container::-webkit-scrollbar,
.category-filter-bar::-webkit-scrollbar {
    display: none;
}

.category-pills {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: nowrap;
    width: max-content;
    min-width: 100%;
    padding: 0.15rem 0;
}

/* Clay Pill Buttons */
.pill-item {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 500;
    padding: 0.45rem 1.1rem;
    background: var(--glass-bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
    white-space: nowrap;
    box-shadow: var(--clay-inner-light), 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

.pill-item:hover,
.pill-item.active {
    background: var(--gradient-aurora);
    color: #ffffff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow-clay-btn);
}

/* ==========================================================================
   FEATURED HERO - GLASS CLAY SECTION
   ========================================================================== */
.featured-hero-section {
    padding: 2.75rem 0 2rem;
}

.hero-card {
    position: relative;
    background: var(--glass-bg-card);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    box-shadow: var(--shadow-clay);
    transition: var(--transition);
}

.hero-card:hover {
    border-color: var(--glass-border-hover);
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.hero-media {
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

.hero-media img,
.hero-media .tech-fallback-svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-card:hover .hero-media img,
.hero-card:hover .hero-media .tech-fallback-svg {
    transform: scale(1.05);
}

.hero-media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent 40%, rgba(22, 22, 28, 0.95) 100%);
    pointer-events: none;
}

.hero-content {
    padding: 3.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.featured-badge {
    align-self: flex-start;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    background: rgba(99, 102, 241, 0.2);
    color: var(--accent-cyan);
    border: 1px solid rgba(99, 102, 241, 0.4);
    box-shadow: var(--clay-inner-light);
    margin-bottom: 1.35rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-title {
    font-size: clamp(1.85rem, 2.6vw, 2.7rem);
    margin-bottom: 1.1rem;
    line-height: 1.25;
}

.hero-title a:hover {
    background: var(--gradient-aurora);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-excerpt {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.7;
}

.meta-group {
    display: flex;
    align-items: center;
    gap: 1.35rem;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

/* ==========================================================================
   MAIN CONTENT & POST CARDS GRID (CLAYMORPHISM + GLASSMORPHISM)
   ========================================================================== */
.site-content-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2.75rem;
    padding: 2.75rem 0 4.5rem;
    width: 100%;
    box-sizing: border-box;
}

.content-area {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    width: 100%;
    box-sizing: border-box;
}

.site-content-layout.no-sidebar {
    grid-template-columns: 1fr;
    max-width: 900px;
    margin: 0 auto;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.25rem;
    width: 100%;
    box-sizing: border-box;
}

/* Claymorphic Frosted Glass Post Card */
.tech-post-card {
    background: var(--glass-bg-card);
    backdrop-filter: blur(24px) saturate(170%);
    -webkit-backdrop-filter: blur(24px) saturate(170%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-clay);
    position: relative;
    transition: var(--transition);
    width: 100%;
    margin: 0;
    min-width: 0;
    box-sizing: border-box;
}

.tech-post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    pointer-events: none;
}

.tech-post-card:hover {
    transform: translateY(-6px);
    border-color: var(--glass-border-hover);
    box-shadow: var(--shadow-hover);
}

.card-thumbnail {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-surface);
    width: 100%;
    box-sizing: border-box;
}

.card-thumbnail a {
    display: block;
    width: 100%;
    height: 100%;
}

.card-thumbnail img,
.card-thumbnail .tech-fallback-svg {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tech-post-card:hover .card-thumbnail img,
.tech-post-card:hover .card-thumbnail .tech-fallback-svg {
    transform: scale(1.06);
}

.category-tag {
    position: absolute;
    top: 1.1rem;
    left: 1.1rem;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    background: rgba(10, 14, 33, 0.75);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    box-shadow: var(--clay-inner-light);
    z-index: 2;
}

.read-time-tag {
    position: absolute;
    bottom: 1.1rem;
    right: 1.1rem;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    padding: 0.3rem 0.75rem;
    background: rgba(10, 14, 33, 0.75);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    box-shadow: var(--clay-inner-light);
    z-index: 2;
}

.card-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-title {
    font-size: 1.35rem;
    line-height: 1.35;
    margin-bottom: 0.95rem;
}

.card-title a:hover {
    color: var(--accent-cyan);
}

.card-excerpt {
    font-size: 0.96rem;
    color: var(--text-secondary);
    margin-bottom: 1.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.65;
    flex: 1;
}

.card-excerpt .addtoany_share_save_container,
.card-excerpt .sharedaddy,
.card-excerpt img {
    display: none !important;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.1rem;
    border-top: 1px solid var(--glass-border);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.card-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--accent-cyan);
    transition: var(--transition);
}

.card-read-more:hover {
    color: var(--accent-fuchsia);
    transform: translateX(4px);
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */
.tech-pagination {
    margin-top: 3.5rem;
    display: flex;
    justify-content: center;
    gap: 0.65rem;
}

.tech-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 1rem;
    border-radius: var(--radius-full);
    background: var(--glass-bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    font-family: var(--font-mono);
    font-size: 0.92rem;
    color: var(--text-secondary);
    box-shadow: var(--clay-inner-light);
    transition: var(--transition);
}

.tech-pagination .page-numbers:hover,
.tech-pagination .page-numbers.current {
    background: var(--gradient-clay-btn);
    color: #ffffff;
    font-weight: 700;
    border-color: transparent;
    box-shadow: var(--shadow-clay-btn);
    transform: translateY(-2px);
}

/* ==========================================================================
   SIDEBAR & WIDGETS (GLASSMORPHIC CARDS)
   ========================================================================== */
.tech-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
}

.tech-widget {
    background: var(--glass-bg-card);
    backdrop-filter: blur(24px) saturate(170%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-clay);
    position: relative;
}

.widget-title {
    font-size: 1.15rem;
    margin-bottom: 1.35rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.widget-title-glow {
    width: 4px;
    height: 20px;
    background: var(--gradient-aurora);
    border-radius: 4px;
    box-shadow: 0 0 10px var(--accent-cyan);
}

/* ==========================================================================
   WordPress Block Search & Classical Search Widget (Unified Glass-Clay)
   ========================================================================== */
.wp-block-search,
.widget_search {
    margin-bottom: 0;
}

.wp-block-search__label,
.widget_search .widget-title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.wp-block-search__label::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    background: var(--gradient-aurora);
    border-radius: 4px;
    box-shadow: 0 0 10px var(--accent-cyan);
}

/* Glass-Clay Integrated Search Pill Bar */
.wp-block-search__inside-wrapper,
.search-input-wrapper {
    display: flex !important;
    align-items: center !important;
    position: relative !important;
    background: var(--glass-bg-input) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: var(--radius-full) !important;
    padding: 3px 10px 3px 14px !important;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.4), var(--clay-inner-light) !important;
    transition: var(--transition) !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.wp-block-search__inside-wrapper:focus-within,
.search-input-wrapper:focus-within {
    border-color: var(--accent-cyan) !important;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.4), 0 0 18px rgba(6, 182, 212, 0.35) !important;
}

.wp-block-search__input,
.search-input-wrapper input,
.tech-widget form input[type="text"],
.tech-widget form input[type="search"],
.tech-widget .search-form input[type="search"] {
    flex: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    padding: 0.65rem 0.85rem !important;
    color: var(--text-primary) !important;
    font-family: var(--font-body) !important;
    font-size: 0.94rem !important;
    box-shadow: none !important;
}

.wp-block-search__button,
.wp-element-button,
.tech-widget .search-submit,
.search-form input[type="submit"] {
    background: var(--gradient-clay-btn) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: var(--radius-full) !important;
    padding: 0.65rem 1.4rem !important;
    font-family: var(--font-heading) !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    box-shadow: var(--shadow-clay-btn) !important;
    transition: var(--transition) !important;
    white-space: nowrap !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
}

.wp-block-search__button:hover,
.wp-element-button:hover,
.tech-widget .search-submit:hover,
.search-form input[type="submit"]:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 10px 24px -2px rgba(139, 92, 246, 0.5) !important;
    color: #ffffff !important;
}

/* Polished Sidebar Lists */
.tech-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tech-widget ul li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.tech-widget ul li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.tech-widget ul li a {
    color: var(--text-secondary);
    transition: var(--transition);
}

.tech-widget ul li a:hover {
    color: var(--accent-cyan);
    padding-left: 5px;
}

.search-icon-btn {
    position: static !important;
    background: none !important;
    border: none !important;
    color: var(--text-muted) !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    width: 22px !important;
    height: 22px !important;
    transition: color 0.2s ease !important;
}

.search-icon-btn:hover {
    color: var(--accent-cyan) !important;
}

/* Clay Newsletter Card */
.tech-newsletter-card {
    background: linear-gradient(145deg, rgba(99, 102, 241, 0.15) 0%, rgba(217, 70, 239, 0.12) 100%);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: var(--radius-md);
    padding: 2.25rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-clay);
    position: relative;
    overflow: hidden;
}

.newsletter-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 1.25rem;
    background: var(--gradient-clay-btn);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: var(--shadow-clay-btn);
}

.newsletter-form input {
    width: 100%;
    padding: 0.85rem 1.25rem;
    margin-bottom: 0.85rem;
    background: var(--glass-bg-input);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    outline: none;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
}

.newsletter-form input:focus {
    border-color: var(--accent-cyan);
}

/* ==========================================================================
   SINGLE POST & PAGES (FROSTED GLASS CONTAINER)
   ========================================================================== */
.single-post-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 2.75rem 0 4.5rem;
}

.single-header {
    text-align: center;
    margin-bottom: 2.75rem;
}

.single-badge {
    margin-bottom: 1.35rem;
    display: inline-block;
}

.single-title {
    font-size: clamp(2.2rem, 3.8vw, 3.4rem);
    line-height: 1.22;
    margin-bottom: 1.6rem;
}

.single-meta-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.author-chip {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--text-primary);
    font-weight: 600;
}

.author-chip img {
    border-radius: 50%;
    width: 36px;
    height: 36px;
    border: 2px solid var(--accent-cyan);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
}

.single-featured-media {
    margin-bottom: 3.25rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-clay);
}

/* Glassmorphic Article Container */
.article-content {
    background: var(--glass-bg-card);
    backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 3rem 3.25rem;
    box-shadow: var(--shadow-clay);
    font-size: 1.15rem;
    line-height: 1.85;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .article-content {
        padding: 2rem 1.5rem;
    }
}

.article-content p {
    margin-bottom: 1.85rem;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    margin-top: 2.75rem;
    margin-bottom: 1.15rem;
    color: var(--text-primary);
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.85rem;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.6rem;
}

.article-content blockquote {
    margin: 2.25rem 0;
    padding: 1.5rem 2rem;
    background: rgba(99, 102, 241, 0.08);
    backdrop-filter: blur(16px);
    border-left: 4px solid var(--accent-cyan);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--text-primary);
    box-shadow: var(--clay-inner-light);
}

/* Code Blocks with macOS Dots */
.tech-code-container {
    margin: 2.25rem 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-clay);
}

.code-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #090d1a;
    padding: 0.65rem 1.25rem;
    border-bottom: 1px solid var(--glass-border);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.code-dots {
    display: flex;
    gap: 6px;
}

.code-dots span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.code-dots span:nth-child(1) { background: #f43f5e; }
.code-dots span:nth-child(2) { background: #f59e0b; }
.code-dots span:nth-child(3) { background: #10b981; }

.copy-code-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
}

.copy-code-btn:hover {
    color: var(--accent-cyan);
}

.article-content pre {
    background: #050811;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 0;
    color: #e2e8f0;
    font-size: 0.96rem;
}

.article-content code {
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent-cyan);
    padding: 0.25rem 0.55rem;
    border-radius: 6px;
    font-size: 0.9em;
}

.article-content pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

/* Table of Contents - Glass Box */
.tech-toc-box {
    background: rgba(99, 102, 241, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    margin: 2.25rem 0;
    box-shadow: var(--clay-inner-light);
}

.tech-toc-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-primary);
}

.tech-toc-list {
    list-style: none;
    padding-left: 0;
}

.tech-toc-list li {
    margin-bottom: 0.5rem;
}

.tech-toc-list a {
    color: var(--text-secondary);
    font-size: 0.96rem;
    transition: var(--transition);
}

.tech-toc-list a:hover {
    color: var(--accent-cyan);
    padding-left: 6px;
}

/* Author Box */
.author-profile-box {
    margin: 3.5rem 0;
    padding: 2.25rem;
    background: var(--glass-bg-card);
    backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    display: flex;
    gap: 1.75rem;
    align-items: center;
    box-shadow: var(--shadow-clay);
}

.author-avatar img {
    border-radius: 50%;
    width: 84px;
    height: 84px;
    border: 3px solid var(--accent-indigo);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

.author-info h4 {
    margin-bottom: 0.45rem;
}

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

/* Comments Section */
.tech-comments-area {
    margin-top: 4rem;
    padding-top: 2.75rem;
    border-top: 1px solid var(--glass-border);
}

.comments-title {
    font-size: 1.65rem;
    margin-bottom: 2.25rem;
}

.comment-list {
    list-style: none;
    margin-bottom: 3rem;
}

.comment {
    margin-bottom: 1.75rem;
    padding: 1.75rem;
    background: var(--glass-bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-clay);
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.85rem;
    font-weight: 600;
}

.comment-author img {
    border-radius: 50%;
}

.comment-respond {
    background: var(--glass-bg-card);
    backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-clay);
}

.comment-reply-title {
    font-size: 1.45rem;
    margin-bottom: 1.5rem;
}

.comment-form p {
    margin-bottom: 1.4rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.95rem 1.25rem;
    background: var(--glass-bg-input);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    outline: none;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4), var(--clay-inner-light);
    transition: var(--transition);
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--accent-cyan);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4), 0 0 16px rgba(6, 182, 212, 0.35);
}

.comment-metadata {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.comment-metadata a {
    color: var(--text-muted);
}

.reply {
    margin-top: 0.75rem;
}

.reply a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-cyan);
}

[data-theme="light"] .reply a {
    color: #4f46e5 !important;
}

.comment-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    margin: 2rem 0;
    font-family: var(--font-mono);
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.comment-navigation a {
    color: var(--accent-cyan);
}

[data-theme="light"] .comment-navigation a {
    color: #4f46e5 !important;
}

/* ==========================================================================
   GLASSMORPHIC SITE FOOTER
   ========================================================================== */
.site-footer {
    background: rgba(14, 14, 18, 0.92);
    backdrop-filter: blur(24px);
    border-top: 1px solid var(--glass-border);
    padding: 5rem 0 2.5rem;
    position: relative;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.6);
}

.footer-top-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.25fr;
    gap: 3.5rem;
    margin-bottom: 4rem;
}

.footer-brand-desc {
    margin: 1.35rem 0 1.6rem;
    color: var(--text-secondary);
    font-size: 0.96rem;
    max-width: 350px;
    line-height: 1.7;
}

.footer-social-links {
    display: flex;
    gap: 0.85rem;
}

.social-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: var(--glass-bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    box-shadow: var(--clay-inner-light);
    transition: var(--transition);
}

.social-icon-btn:hover {
    color: #ffffff;
    background: var(--gradient-clay-btn);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: var(--shadow-clay-btn);
}

.footer-widget-title {
    font-size: 1.15rem;
    margin-bottom: 1.35rem;
    color: var(--text-primary);
}

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

.footer-widget li {
    margin-bottom: 0.75rem;
}

.footer-widget a {
    color: var(--text-secondary);
    font-size: 0.94rem;
    transition: var(--transition);
}

.footer-widget a:hover {
    color: var(--accent-cyan);
    padding-left: 4px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 2.25rem;
    border-top: 1px solid var(--glass-border);
    font-size: 0.88rem;
    color: var(--text-muted);
}

.back-to-top-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--glass-bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 0.55rem 1.15rem;
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    box-shadow: var(--clay-inner-light);
    cursor: pointer;
    transition: var(--transition);
}

.back-to-top-btn:hover {
    color: #ffffff;
    background: var(--gradient-clay-btn);
    border-color: transparent;
    box-shadow: var(--shadow-clay-btn);
    transform: translateY(-2px);
}

/* ==========================================================================
   COMPREHENSIVE MOBILE RESPONSIVE & HIGH-PERFORMANCE SYSTEM
   Breakpoints: Tablet (1024px), Mobile Landscape / Tablet (768px), Phone (480px)
   ========================================================================== */

/* 1. Tablet & Medium Screens (<= 1024px) */
@media (max-width: 1024px) {
    .main-navigation {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: flex !important;
    }

    .header-inner {
        height: 68px;
    }

    .site-content-layout {
        grid-template-columns: 100%;
        gap: 2.5rem;
        width: 100%;
    }

    .content-area {
        width: 100%;
        min-width: 0;
    }

    .hero-card {
        grid-template-columns: 1fr;
    }

    .hero-media {
        min-height: 260px;
        max-height: 340px;
    }

    .hero-media-overlay {
        background: linear-gradient(to bottom, transparent 40%, rgba(18, 24, 46, 0.95) 100%);
    }

    .footer-top-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
}

/* 2. Mobile & Small Tablets (<= 768px) */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    /* Container Spacing */
    .tech-container {
        padding: 0 1rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Header & Navigation Bar */
    .site-header {
        position: sticky;
        top: 0;
        z-index: 999;
    }

    .header-inner {
        height: 60px;
    }

    .site-branding {
        gap: 0.5rem;
    }

    .brand-logo {
        font-size: 1.3rem;
        gap: 0.5rem;
    }

    .brand-icon {
        width: 34px;
        height: 34px;
    }

    .header-actions {
        gap: 0.5rem;
    }

    .btn-icon {
        width: 38px;
        height: 38px;
    }

    /* Mobile GPU Performance Boost: Drop heavy repetitive backdrop filters */
    .tech-post-card,
    .tech-widget,
    .comment,
    .comment-respond,
    .pill-item,
    .tech-newsletter-card {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: #15151c !important;
    }

    [data-theme="light"] .tech-post-card,
    [data-theme="light"] .tech-widget,
    [data-theme="light"] .comment,
    [data-theme="light"] .comment-respond,
    [data-theme="light"] .pill-item {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: #ffffff !important;
    }

    /* Category Filter Bar */
    .category-filter-bar {
        padding: 0.65rem 0;
    }

    .category-pills {
        gap: 0.45rem;
        padding: 0 0.15rem;
    }

    .pill-item {
        padding: 0.35rem 0.8rem;
        font-size: 0.76rem;
    }

    /* Featured Hero Section */
    .featured-hero-section {
        padding: 1.25rem 0 1rem;
    }

    .hero-card {
        border-radius: var(--radius-md);
    }

    .hero-media {
        min-height: 200px;
        max-height: 260px;
    }

    .hero-content {
        padding: 1.5rem 1.15rem;
    }

    .hero-title {
        font-size: 1.4rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.65rem !important;
    }

    .hero-excerpt {
        font-size: 0.92rem !important;
        line-height: 1.55 !important;
        margin-bottom: 1.15rem !important;
        -webkit-line-clamp: 2 !important;
    }

    .meta-group {
        flex-wrap: wrap;
        gap: 0.5rem 0.85rem;
        font-size: 0.8rem;
    }

    /* Content Layout & Posts Grid */
    .site-content-layout {
        grid-template-columns: 100%;
        gap: 2rem;
        padding: 1.25rem 0 3rem;
        width: 100%;
        margin: 0 auto;
    }

    .content-area {
        width: 100%;
        min-width: 0;
        margin: 0 auto;
    }

    .section-header {
        margin-bottom: 1.25rem !important;
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        gap: 0.5rem;
    }

    .section-header h2 {
        font-size: 1.45rem;
    }

    .posts-grid {
        grid-template-columns: 100% !important;
        gap: 1.25rem;
        width: 100% !important;
        margin: 0 auto !important;
        padding: 0 !important;
    }

    .tech-post-card {
        border-radius: var(--radius-md);
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
    }

    .card-thumbnail {
        aspect-ratio: 16 / 9;
        max-height: 240px;
        width: 100%;
    }

    .card-thumbnail a {
        display: block;
        width: 100%;
        height: 100%;
    }

    .card-thumbnail img,
    .card-thumbnail .tech-fallback-svg {
        display: block;
        width: 100%;
        height: 100%;
    }

    .category-tag {
        top: 0.75rem;
        left: 0.75rem;
        font-size: 0.68rem;
        padding: 0.2rem 0.6rem;
    }

    .read-time-tag {
        bottom: 0.75rem;
        right: 0.75rem;
        font-size: 0.68rem;
        padding: 0.2rem 0.6rem;
    }

    .card-body {
        padding: 1.2rem 1rem;
    }

    .card-title {
        font-size: 1.18rem;
        line-height: 1.35;
        margin-bottom: 0.55rem;
    }

    .card-excerpt {
        font-size: 0.9rem;
        line-height: 1.55;
        margin-bottom: 1rem;
        -webkit-line-clamp: 2;
    }

    .card-footer {
        padding-top: 0.75rem;
        font-size: 0.8rem;
    }

    /* Pagination */
    .tech-pagination {
        margin-top: 1.75rem;
        gap: 0.4rem;
        flex-wrap: wrap;
    }

    .tech-pagination .page-numbers {
        min-width: 36px;
        height: 36px;
        padding: 0 0.65rem;
        font-size: 0.82rem;
    }

    /* Sidebar Widgets */
    .tech-sidebar {
        gap: 1.5rem;
    }

    .tech-widget {
        padding: 1.35rem 1.15rem;
        border-radius: var(--radius-md);
    }

    .tech-newsletter-card {
        padding: 1.5rem 1.15rem;
    }

    /* Prevent mobile input zooming on focus */
    .comment-form input[type="text"],
    .comment-form input[type="email"],
    .comment-form input[type="url"],
    .comment-form textarea,
    .newsletter-form input,
    .search-input-wrapper input,
    .wp-block-search__input {
        font-size: 16px !important;
    }

    /* Single Post & Content Pages */
    .single-post-wrapper {
        padding: 1.25rem 0 2.5rem;
    }

    .single-header {
        margin-bottom: 1.5rem;
    }

    .single-title {
        font-size: clamp(1.5rem, 5.5vw, 2.1rem);
        margin-bottom: 1rem;
    }

    .single-meta-bar {
        gap: 0.65rem 1rem;
        font-size: 0.8rem;
        justify-content: center;
        flex-wrap: wrap;
    }

    .single-featured-media {
        margin-bottom: 1.5rem;
        border-radius: var(--radius-md);
    }

    .article-content {
        padding: 1.5rem 1.1rem;
        font-size: 1.02rem;
        line-height: 1.75;
        border-radius: var(--radius-md);
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .article-content h2 {
        font-size: 1.35rem;
        margin-top: 2rem;
        margin-bottom: 0.75rem;
    }

    .article-content h3 {
        font-size: 1.18rem;
        margin-top: 1.6rem;
    }

    .article-content blockquote {
        margin: 1.25rem 0;
        padding: 0.85rem 1rem;
        font-size: 0.94rem;
    }

    .article-content pre {
        padding: 0.85rem;
        font-size: 0.84rem;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .article-content table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .author-profile-box {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 1rem;
        gap: 1rem;
        margin: 2rem 0;
    }

    .author-avatar img {
        width: 64px;
        height: 64px;
    }

    /* Comments Section & Threaded Replies */
    .tech-comments-area {
        margin-top: 2rem;
        padding-top: 1.75rem;
    }

    .comments-title {
        font-size: 1.25rem;
        margin-bottom: 1.25rem;
    }

    .comment-list,
    .comment-list .children {
        padding-left: 0;
        margin-left: 0;
        list-style: none;
    }

    .comment-list .children {
        padding-left: 0.75rem;
        border-left: 2px solid var(--glass-border);
        margin-top: 0.75rem;
    }

    .comment {
        padding: 1.15rem 0.9rem;
        margin-bottom: 1rem;
        border-radius: var(--radius-md);
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .comment-respond {
        padding: 1.35rem 1rem;
        border-radius: var(--radius-md);
    }

    .comment-reply-title {
        font-size: 1.18rem;
    }

    /* Footer */
    .site-footer {
        padding: 2.75rem 0 1.75rem;
    }

    .footer-top-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding-top: 1.5rem;
    }

    .footer-social-links {
        justify-content: flex-start;
    }
}

/* 3. Small Smartphone Displays (<= 480px) */
@media (max-width: 480px) {
    .tech-container {
        padding: 0 0.85rem;
    }

    .brand-logo {
        font-size: 1.2rem;
        gap: 0.45rem;
    }

    .brand-icon {
        width: 30px;
        height: 30px;
    }

    .brand-pulse {
        display: none;
    }

    .hero-media {
        min-height: 180px;
    }

    .hero-content {
        padding: 1.2rem 0.85rem;
    }

    .hero-title {
        font-size: 1.22rem !important;
    }

    .posts-grid {
        gap: 1rem;
        width: 100% !important;
        margin: 0 auto !important;
    }

    .tech-post-card {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
    }

    .card-thumbnail {
        aspect-ratio: 16 / 9;
        max-height: 210px;
        width: 100%;
    }

    .card-body {
        padding: 1rem 0.85rem;
    }

    .article-content {
        padding: 1.25rem 0.85rem;
    }

    .single-meta-bar {
        flex-direction: column;
        gap: 0.4rem;
        align-items: center;
    }

    .footer-brand-desc {
        max-width: 100%;
    }
}

/* ==========================================================================
   MOBILE NAVIGATION DRAWER & BACKDROP OVERLAY
   ========================================================================== */
.mobile-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 997;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-drawer-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-drawer {
    position: fixed;
    top: 60px;
    right: 0;
    width: 100%;
    max-width: 360px;
    height: calc(100vh - 60px);
    height: calc(100dvh - 60px);
    background: #111116;
    border-left: 1px solid var(--glass-border);
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.6);
    z-index: 998;
    transform: translateX(100%);
    opacity: 1;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 1.5rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
    padding: 1.5rem 1.25rem 2rem;
}

.mobile-drawer.open {
    transform: translateX(0);
    pointer-events: auto;
}

/* When WordPress Admin Bar is Visible */
.admin-bar .mobile-drawer {
    top: 106px;
    height: calc(100vh - 106px);
    height: calc(100dvh - 106px);
}

@media (min-width: 783px) {
    .admin-bar .mobile-drawer {
        top: 92px;
        height: calc(100vh - 92px);
        height: calc(100dvh - 92px);
    }
}

.mobile-drawer-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.mobile-search-box {
    margin-bottom: 0.5rem;
}

.mobile-nav-container {
    width: 100%;
}

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
}

.mobile-nav-links li {
    list-style: none;
}

.mobile-nav-links a {
    font-size: 1.15rem;
    font-weight: 600;
    font-family: var(--font-heading);
    color: var(--text-primary);
    display: block;
    padding: 0.55rem 0.5rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.mobile-nav-links a:hover,
.mobile-nav-links .current-menu-item > a {
    color: var(--accent-cyan);
    background: rgba(255, 255, 255, 0.04);
    padding-left: 0.85rem;
}

/* Submenu Links in Mobile Drawer */
.mobile-nav-links .sub-menu {
    list-style: none;
    padding-left: 1rem;
    margin: 0.25rem 0 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    border-left: 2px solid var(--glass-border);
}

.mobile-nav-links .sub-menu a {
    font-size: 0.98rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0.35rem 0.5rem;
}

.mobile-drawer-footer {
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
    margin-top: 1.5rem;
}

/* Full Width Drawer on Small Smartphones */
@media (max-width: 480px) {
    .mobile-drawer {
        max-width: 100%;
        border-left: none;
    }
}

/* Light Theme Mobile Drawer & Overlay Overrides */
[data-theme="light"] .mobile-drawer {
    background: #ffffff !important;
    border-left: 1px solid rgba(226, 232, 240, 0.95) !important;
    box-shadow: -10px 0 35px rgba(15, 23, 42, 0.12) !important;
}

[data-theme="light"] .mobile-nav-links a {
    color: #0f172a !important;
}

[data-theme="light"] .mobile-nav-links a:hover,
[data-theme="light"] .mobile-nav-links .current-menu-item > a {
    color: #4f46e5 !important;
    background: #f1f5f9 !important;
}

[data-theme="light"] .mobile-nav-links .sub-menu {
    border-left-color: rgba(226, 232, 240, 0.95) !important;
}

[data-theme="light"] .mobile-drawer-footer {
    border-top-color: rgba(226, 232, 240, 0.95) !important;
}
