/*
Theme Name: TechDose Digital Exit v14.0 FINAL
Template: generatepress
Version: 14.0.0
Description: Complete UK-focused digital exit portal | Production ready | All features working
Author: TechDose Team
Author URI: https://techdose.co.uk
Text Domain: techdose

COMPLETE FEATURES:
✅ 10 Homepage Sections
✅ Beautiful Sticky Sidebar
✅ Professional Footer
✅ All Single Post Features
✅ Fully Responsive (320px - 2560px+)
✅ Mobile Optimized
✅ Core Web Vitals Ready
*/

/* ═══════════════════════════════════════════════════════════════
   CSS VARIABLES
═══════════════════════════════════════════════════════════════ */

:root {
    --primary: #6d28d9;
    --primary-dark: #5b21b6;
    --primary-light: #8b5cf6;
    --primary2: #0891b2;
    --accent: #f59e0b;
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --text: #0f172a;
    --text2: #475569;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --border-dark: #cbd5e1;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 50px rgba(109, 40, 217, 0.25);
    --cancel: #dc2626;
    --cancel-bg: rgba(220, 38, 38, 0.10);
    --delete: #ea580c;
    --delete-bg: rgba(234, 88, 12, 0.10);
    --refund: #059669;
    --refund-bg: rgba(5, 150, 105, 0.10);
    --security: #0284c7;
    --security-bg: rgba(2, 132, 199, 0.10);
    --transition: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══════════════════════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════════════════════ */

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

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-body);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

.grid-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

img, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ═══════════════════════════════════════════════════════════════
   HIDE DEFAULT HOMEPAGE CONTENT
═══════════════════════════════════════════════════════════════ */

.home .site-main > article,
.home .entry-content,
.home .entry-header,
.blog .site-main > article.post {
    display: none !important;
}

/* ═══════════════════════════════════════════════════════════════
   ACCESSIBILITY
═══════════════════════════════════════════════════════════════ */

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

.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    padding: 12px 28px;
    border-radius: 0 0 var(--radius) var(--radius);
    font-weight: 800;
    z-index: 99999;
}

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

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

/* ═══════════════════════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════════════════════ */

.site-header {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.inside-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    min-height: 70px;
}

.main-title a {
    font-weight: 900;
    font-size: 26px;
    background: linear-gradient(135deg, var(--primary), var(--primary2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-navigation a {
    color: var(--text2);
    font-weight: 600;
    font-size: 14px;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
}

.main-navigation a:hover {
    color: var(--primary);
    background: rgba(109, 40, 217, 0.12);
}

/* ═══════════════════════════════════════════════════════════════
   BREADCRUMBS
═══════════════════════════════════════════════════════════════ */

.td-breadcrumb {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
    font-size: 13px;
}

.td-breadcrumb-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.td-breadcrumb-list li {
    display: flex;
    align-items: center;
    color: var(--text-light);
}

.td-breadcrumb-list li:not(:last-child)::after {
    content: "›";
    margin-left: 8px;
    color: var(--text-muted);
}

.td-breadcrumb-list a {
    color: var(--text2);
    font-weight: 600;
}

.td-breadcrumb-list a:hover {
    color: var(--primary);
}

/* ═══════════════════════════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════════════════════════ */

.td-hero {
    background: linear-gradient(135deg, var(--bg-dark), var(--bg-darker));
    color: #fff;
    padding: 100px 0 160px;
    position: relative;
    overflow: hidden;
    text-align: center;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.td-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 25%, rgba(109, 40, 217, 0.3), transparent 50%),
        radial-gradient(circle at 85% 75%, rgba(8, 145, 178, 0.25), transparent 50%),
        radial-gradient(circle at 50% 15%, rgba(245, 158, 11, 0.15), transparent 55%);
    animation: bgFloat 20s ease-in-out infinite;
}

@keyframes bgFloat {
    0%, 100% { transform: scale(1) translateY(0); }
    50% { transform: scale(1.05) translateY(-10px); }
}

.td-hero-inner {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.td-badge {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    background: rgba(109, 40, 217, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.4);
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 800;
    color: #e9d5ff;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 28px;
}

.td-pulse {
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 12px #10b981;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); }
}

.td-hero-title {
    font-size: clamp(32px, 6vw, 64px);
    font-weight: 900;
    line-height: 1.1;
    margin: 0 0 24px;
    letter-spacing: -0.03em;
}

.td-gradient {
    background: linear-gradient(135deg, #a78bfa, #06b6d4, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.td-hero-desc {
    font-size: 18px;
    color: #cbd5e1;
    margin: 0 auto 36px;
    line-height: 1.6;
    max-width: 600px;
}

.td-search-box {
    max-width: 560px;
    margin: 0 auto 40px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius);
    padding: 6px;
}

.td-search-box .search-form {
    display: flex;
    gap: 8px;
}

.td-search-box input[type="search"],
.td-search-box .search-field {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    padding: 16px 20px;
    color: #fff;
    font-size: 16px;
    font-family: inherit;
}

.td-search-box input[type="search"]::placeholder {
    color: #94a3b8;
}

.td-search-box button[type="submit"],
.td-search-box .search-submit {
    background: linear-gradient(135deg, var(--primary), var(--primary2));
    color: #fff;
    border: none;
    padding: 16px 28px;
    border-radius: var(--radius-sm);
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
}

.td-hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.td-stat {
    text-align: center;
}

.td-stat-num {
    display: block;
    font-size: 32px;
    font-weight: 900;
    background: linear-gradient(135deg, #fff, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.td-stat-label {
    font-size: 12px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 4px;
    display: block;
}

/* ═══════════════════════════════════════════════════════════════
   FOUR PILLARS
═══════════════════════════════════════════════════════════════ */

.td-pillars {
    margin-top: -80px;
    position: relative;
    z-index: 10;
    padding-bottom: 80px;
}

.td-pillars-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

@media (min-width: 1100px) {
    .td-pillars-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.td-pillar {
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: var(--bg-card);
    padding: 28px;
    border-radius: var(--radius);
    border: 2px solid var(--border);
    box-shadow: var(--shadow);
    transition: all var(--transition);
    text-decoration: none;
    color: inherit;
}

.td-pillar:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary);
}

.td-pillar-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius);
    display: grid;
    place-items: center;
    font-size: 30px;
}

.td-pillar.cancel .td-pillar-icon {
    background: var(--cancel-bg);
    border: 2px solid rgba(220, 38, 38, 0.2);
}

.td-pillar.delete .td-pillar-icon {
    background: var(--delete-bg);
    border: 2px solid rgba(234, 88, 12, 0.2);
}

.td-pillar.refund .td-pillar-icon {
    background: var(--refund-bg);
    border: 2px solid rgba(5, 150, 105, 0.2);
}

.td-pillar.security .td-pillar-icon {
    background: var(--security-bg);
    border: 2px solid rgba(2, 132, 199, 0.2);
}

.td-pillar-content {
    flex: 1;
}

.td-pillar-content h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 900;
    color: var(--text);
}

.td-pillar-content p {
    margin: 0 0 10px;
    font-size: 14px;
    color: var(--text2);
    line-height: 1.5;
}

.td-pillar-count {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-light);
}

.td-pillar-arrow {
    font-size: 24px;
    color: var(--text-muted);
    transition: all var(--transition);
    align-self: flex-end;
}

.td-pillar:hover .td-pillar-arrow {
    transform: translateX(6px);
    color: var(--primary);
}

/* ═══════════════════════════════════════════════════════════════
   SECTION HEADERS
═══════════════════════════════════════════════════════════════ */

.td-section-header {
    margin-bottom: 40px;
}

.td-section-header h2 {
    margin: 0 0 8px;
    font-size: 32px;
    font-weight: 900;
    color: var(--text);
}

.td-section-header p {
    margin: 0;
    color: var(--text-light);
    font-size: 16px;
}

.td-section-header.td-center {
    text-align: center;
}

.td-section-header.td-center p {
    max-width: 600px;
    margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════════
   POST CARDS
═══════════════════════════════════════════════════════════════ */

.td-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: 28px;
}

.td-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

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

.td-card-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}

.td-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.td-card:hover .td-card-thumb img {
    transform: scale(1.08);
}

.td-card-placeholder {
    display: grid;
    place-items: center;
    height: 100%;
    font-size: 48px;
    color: var(--text-muted);
}

.td-card-cat {
    position: absolute;
    top: 14px;
    left: 14px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 8px;
    color: #fff;
    z-index: 2;
}

.td-card-cat.cancel-subscriptions { background: var(--cancel); }
.td-card-cat.delete-accounts { background: var(--delete); }
.td-card-cat.refunds { background: var(--refund); }
.td-card-cat.security { background: var(--security); }

.td-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.td-card-meta {
    display: flex;
    gap: 12px;
    color: var(--text-light);
    font-size: 12px;
    margin-bottom: 12px;
    font-weight: 600;
}

.td-card-title {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.3;
    flex: 1;
}

.td-card-title a {
    color: var(--text);
}

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

.td-card-excerpt {
    margin: 0 0 18px;
    color: var(--text2);
    font-size: 14px;
    line-height: 1.6;
}

.td-card-link {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    font-weight: 800;
    font-size: 14px;
    color: var(--primary);
    background: rgba(109, 40, 217, 0.12);
    padding: 10px 18px;
    border-radius: var(--radius-full);
    align-self: flex-start;
    transition: all var(--transition);
}

.td-card-link:hover {
    background: var(--primary);
    color: #fff;
    transform: translateX(4px);
}

/* ═══════════════════════════════════════════════════════════════
   HOW IT WORKS SECTION
═══════════════════════════════════════════════════════════════ */

.td-how-it-works {
    padding: 80px 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.td-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.td-step {
    text-align: center;
    padding: 40px 30px;
    background: var(--bg-body);
    border-radius: var(--radius);
    border: 2px solid var(--border);
    position: relative;
    transition: all var(--transition);
}

.td-step:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.td-step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary2));
    color: #fff;
    font-weight: 900;
    font-size: 18px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    box-shadow: 0 4px 12px rgba(109, 40, 217, 0.4);
}

.td-step-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.td-step h3 {
    font-size: 20px;
    font-weight: 900;
    color: var(--text);
    margin: 0 0 12px;
}

.td-step p {
    color: var(--text2);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════════
   POPULAR SECTION
═══════════════════════════════════════════════════════════════ */

.td-popular {
    padding: 80px 0;
    background: var(--bg-body);
}

/* ═══════════════════════════════════════════════════════════════
   CATEGORY SHOWCASE
═══════════════════════════════════════════════════════════════ */

.td-category-showcase {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.03), rgba(8, 145, 178, 0.03));
}

.td-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.td-showcase-cat {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 2px solid var(--border);
    overflow: hidden;
    transition: all var(--transition);
}

.td-showcase-cat:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.td-showcase-header {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid var(--border);
}

.td-showcase-cat.td-cat-cancel .td-showcase-header { background: var(--cancel-bg); }
.td-showcase-cat.td-cat-delete .td-showcase-header { background: var(--delete-bg); }
.td-showcase-cat.td-cat-refund .td-showcase-header { background: var(--refund-bg); }
.td-showcase-cat.td-cat-security .td-showcase-header { background: var(--security-bg); }

.td-showcase-icon {
    font-size: 28px;
}

.td-showcase-header h3 {
    flex: 1;
    margin: 0;
    font-size: 18px;
    font-weight: 900;
    color: var(--text);
}

.td-showcase-link {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
}

.td-showcase-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.td-showcase-list li {
    border-bottom: 1px solid var(--border);
}

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

.td-showcase-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    color: var(--text2);
    font-weight: 600;
    transition: all var(--transition);
}

.td-showcase-list a:hover {
    background: var(--bg-body);
    color: var(--primary);
    padding-left: 30px;
}

.td-showcase-arrow {
    color: var(--text-muted);
    transition: transform var(--transition);
}

.td-showcase-list a:hover .td-showcase-arrow {
    transform: translateX(4px);
    color: var(--primary);
}

/* ═══════════════════════════════════════════════════════════════
   LATEST SECTION
═══════════════════════════════════════════════════════════════ */

.td-latest {
    padding: 80px 0;
    background: var(--bg-body);
}

/* ═══════════════════════════════════════════════════════════════
   WHY CHOOSE US
═══════════════════════════════════════════════════════════════ */

.td-why-us {
    padding: 80px 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
}

.td-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.td-feature {
    text-align: center;
    padding: 36px 28px;
    background: var(--bg-body);
    border-radius: var(--radius);
    border: 2px solid var(--border);
    transition: all var(--transition);
}

.td-feature:hover {
    border-color: var(--primary);
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.td-feature-icon {
    font-size: 42px;
    margin-bottom: 18px;
}

.td-feature h3 {
    font-size: 18px;
    font-weight: 900;
    color: var(--text);
    margin: 0 0 10px;
}

.td-feature p {
    color: var(--text2);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════════
   NEWSLETTER SECTION
═══════════════════════════════════════════════════════════════ */

.td-newsletter {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--bg-dark), var(--bg-darker));
}

.td-newsletter-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    padding: 50px 60px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
}

.td-newsletter-content h2 {
    color: #fff;
    font-size: 32px;
    font-weight: 900;
    margin: 0 0 10px;
}

.td-newsletter-content p {
    color: #94a3b8;
    font-size: 16px;
    margin: 0;
}

.td-newsletter-form {
    display: flex;
    gap: 12px;
}

.td-newsletter-form input {
    padding: 16px 24px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 16px;
    width: 280px;
    font-family: inherit;
}

.td-newsletter-form button {
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--primary), var(--primary2));
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
}

/* ═══════════════════════════════════════════════════════════════
   TRUST SECTION
═══════════════════════════════════════════════════════════════ */

.td-trust-section {
    padding: 60px 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
}

.td-trust-grid {
    display: flex;
    justify-content: center;
    gap: 80px;
    flex-wrap: wrap;
}

.td-trust-item {
    text-align: center;
}

.td-trust-num {
    display: block;
    font-size: 42px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--primary2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.td-trust-label {
    display: block;
    font-size: 14px;
    color: var(--text-light);
    font-weight: 600;
    margin-top: 6px;
}

/* ═══════════════════════════════════════════════════════════════
   HOME FAQ
═══════════════════════════════════════════════════════════════ */

.td-home-faq {
    padding: 80px 0;
    background: var(--bg-body);
}

.td-home-faq .td-faq-container {
    max-width: 800px;
    margin: 50px auto 0;
}

.td-faq-container {
    margin: 40px 0;
}

.td-faq-item {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
    overflow: hidden;
    transition: all var(--transition);
}

.td-faq-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.td-faq-question {
    width: 100%;
    text-align: left;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.06), rgba(8, 145, 178, 0.06));
    border: none;
    font-size: 17px;
    font-weight: 800;
    color: var(--text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-family: inherit;
}

.td-faq-icon {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--primary), var(--primary2));
    color: #fff;
    border-radius: 50%;
    font-size: 22px;
    font-weight: 900;
    flex-shrink: 0;
}

.td-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.td-faq-answer.open {
    max-height: 2000px;
}

.td-faq-answer > div {
    padding: 24px;
    color: var(--text2);
    line-height: 1.8;
    font-size: 16px;
    border-top: 1px solid var(--border);
}
/* ═══════════════════════════════════════════════════════════════
   SINGLE POST CONTENT
═══════════════════════════════════════════════════════════════ */

.single .inside-article,
.page .inside-article {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 56px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

.entry-content {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text2);
}

.entry-content p {
    margin-bottom: 1.5em;
    color: var(--text2);
    font-size: 18px;
    line-height: 1.8;
}

.entry-content h2 {
    font-size: 30px;
    font-weight: 900;
    color: var(--text);
    margin: 56px 0 24px;
    padding: 22px 28px;
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.08), rgba(8, 145, 178, 0.08));
    border-left: 6px solid var(--primary);
    border-radius: 0 var(--radius) var(--radius) 0;
    scroll-margin-top: 100px;
    line-height: 1.3;
}

.entry-content h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
    margin: 44px 0 20px;
    padding: 16px 22px;
    border-left: 5px solid var(--primary2);
    scroll-margin-top: 100px;
    line-height: 1.4;
}

.entry-content h4 {
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    margin: 36px 0 16px;
}

.entry-content strong,
.entry-content b {
    color: #c2410c;
    font-weight: 800;
    background: linear-gradient(120deg, rgba(251, 146, 60, 0.15) 0%, rgba(251, 146, 60, 0.05) 100%);
    padding: 3px 8px;
    border-radius: 6px;
    border-bottom: 2px solid rgba(251, 146, 60, 0.3);
}

.entry-content a:not(.td-btn):not(.td-card-link):not(.td-share-btn) {
    color: var(--primary);
    font-weight: 700;
    background: linear-gradient(120deg, rgba(109, 40, 217, 0.08) 0%, rgba(8, 145, 178, 0.08) 100%);
    padding: 3px 10px;
    border-radius: 6px;
    border-bottom: 2px solid rgba(109, 40, 217, 0.4);
    text-decoration: none;
    transition: all var(--transition);
}

.entry-content a:not(.td-btn):not(.td-card-link):not(.td-share-btn):hover {
    background: linear-gradient(120deg, rgba(109, 40, 217, 0.15) 0%, rgba(8, 145, 178, 0.15) 100%);
}

.entry-content ul {
    list-style: none;
    padding-left: 0;
    margin: 28px 0;
}

.entry-content ul li {
    position: relative;
    padding: 16px 20px 16px 56px;
    margin-bottom: 14px;
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.04), rgba(8, 145, 178, 0.04));
    border: 2px solid rgba(109, 40, 217, 0.12);
    border-radius: var(--radius-sm);
    line-height: 1.7;
    font-size: 17px;
    transition: all var(--transition);
}

.entry-content ul li:hover {
    border-color: rgba(109, 40, 217, 0.3);
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.08), rgba(8, 145, 178, 0.08));
    transform: translateX(4px);
}

.entry-content ul li::before {
    content: "✓";
    position: absolute;
    left: 16px;
    top: 16px;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--primary), var(--primary2));
    color: #fff;
    font-weight: 900;
    font-size: 16px;
}

.entry-content ol {
    counter-reset: step;
    padding-left: 0;
    margin: 28px 0;
    list-style: none;
}

.entry-content ol li {
    counter-increment: step;
    position: relative;
    padding: 16px 20px 16px 68px;
    margin-bottom: 14px;
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.04), rgba(245, 158, 11, 0.04));
    border: 2px solid rgba(8, 145, 178, 0.12);
    border-radius: var(--radius-sm);
    line-height: 1.7;
    font-size: 17px;
}

.entry-content ol li::before {
    content: counter(step);
    position: absolute;
    left: 16px;
    top: 16px;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--primary2), var(--accent));
    color: #fff;
    font-weight: 900;
    font-size: 18px;
}

.entry-content blockquote {
    margin: 36px 0;
    padding: 28px 32px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(251, 146, 60, 0.08));
    border-left: 6px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--text);
    font-size: 19px;
    line-height: 1.8;
}

.entry-content img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin: 32px 0;
}

/* ═══════════════════════════════════════════════════════════════
   POST META
═══════════════════════════════════════════════════════════════ */

.td-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 18px 22px;
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.06), rgba(8, 145, 178, 0.06));
    border: 2px solid rgba(109, 40, 217, 0.15);
    border-radius: var(--radius);
    margin-bottom: 24px;
}

.td-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text2);
    font-weight: 600;
}

.td-meta-icon {
    font-size: 16px;
}

.td-updated {
    background: rgba(245, 158, 11, 0.1);
    padding: 6px 12px;
    border-radius: 6px;
    color: #92400e;
}

/* ═══════════════════════════════════════════════════════════════
   READING PROGRESS BAR
═══════════════════════════════════════════════════════════════ */

.td-reading-progress {
    position: sticky;
    top: 70px;
    height: 5px;
    background: var(--border);
    z-index: 999;
    margin-bottom: 24px;
    border-radius: 3px;
    overflow: hidden;
}

.td-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary2), var(--accent));
    width: 0%;
    transition: width 0.1s ease-out;
    border-radius: 3px;
}

/* ═══════════════════════════════════════════════════════════════
   TABLE OF CONTENTS
═══════════════════════════════════════════════════════════════ */

.td-toc {
    background: var(--bg-card);
    border: 2px solid rgba(109, 40, 217, 0.2);
    border-radius: var(--radius);
    margin: 28px 0;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.td-toc-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary2));
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.td-toc-title {
    font-weight: 800;
    font-size: 15px;
}

.td-toc-toggle {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-weight: 900;
    cursor: pointer;
    min-width: 40px;
    font-size: 18px;
    line-height: 1;
    font-family: inherit;
}

.td-toc-list {
    padding: 20px 24px;
    margin: 0;
    list-style: none;
    max-height: 400px;
    overflow-y: auto;
}

.td-toc-list li {
    margin-bottom: 10px;
}

.td-toc-list a {
    color: var(--text2);
    font-weight: 600;
    font-size: 14px;
    transition: color var(--transition);
}

.td-toc-list a:hover {
    color: var(--primary);
}

.td-toc-sub {
    padding-left: 24px;
    opacity: 0.9;
    font-size: 13px;
}

/* ═══════════════════════════════════════════════════════════════
   SOCIAL SHARE
═══════════════════════════════════════════════════════════════ */

.td-social-share {
    margin: 40px 0;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.td-social-share h4 {
    margin: 0 0 20px;
    font-size: 18px;
    font-weight: 900;
    color: var(--text);
}

.td-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.td-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--bg-body);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 14px;
    color: var(--text);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    font-family: inherit;
}

.td-share-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.td-share-btn span:first-child {
    font-size: 18px;
}

/* ═══════════════════════════════════════════════════════════════
   BRAND AUTHOR BOX - PROFESSIONAL
═══════════════════════════════════════════════════════════════ */

.td-author-box {
    margin: 40px 0;
    padding: 36px;
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.04), rgba(8, 145, 178, 0.04));
    border: 2px solid rgba(109, 40, 217, 0.15);
    border-radius: var(--radius);
    display: flex;
    gap: 28px;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

.td-author-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary2), var(--accent));
}

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

.td-brand-avatar {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary), var(--primary2));
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 36px;
    font-weight: 900;
    color: #fff;
    box-shadow: 0 6px 20px rgba(109, 40, 217, 0.4);
    border: 4px solid var(--bg-card);
    outline: 3px solid rgba(109, 40, 217, 0.2);
}

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

.td-author-info h4 {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 900;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.td-author-info h4::after {
    content: '✓';
    background: var(--primary);
    color: #fff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    font-size: 14px;
    flex-shrink: 0;
}

.td-author-info p {
    margin: 0 0 18px;
    color: var(--text2);
    line-height: 1.7;
    font-size: 15px;
}

.td-author-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.td-author-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.td-badge-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    color: var(--text2);
    transition: all var(--transition);
}

.td-badge-item:hover {
    border-color: var(--primary);
    background: rgba(109, 40, 217, 0.08);
    color: var(--primary);
}

/* Mobile */
@media (max-width: 768px) {
    .td-author-box {
        flex-direction: column;
        text-align: center;
        padding: 28px 22px;
    }

    .td-brand-avatar {
        margin: 0 auto;
        width: 90px;
        height: 90px;
        font-size: 32px;
    }

    .td-author-info h4 {
        justify-content: center;
    }

    .td-author-meta {
        justify-content: center;
    }

    .td-author-badges {
        justify-content: center;
    }
}

/* ═══════════════════════════════════════════════════════════════
   RELATED POSTS
═══════════════════════════════════════════════════════════════ */

.td-related {
    margin: 44px 0;
    padding: 32px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.td-related h3 {
    margin: 0 0 24px;
    font-size: 24px;
    font-weight: 900;
    color: var(--text);
}

.td-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 20px;
}

.td-related-card {
    display: flex;
    gap: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px;
    transition: all var(--transition);
}

.td-related-card:hover {
    border-color: var(--primary);
    transform: translateX(4px);
    box-shadow: var(--shadow);
}

.td-related-thumb {
    width: 92px;
    height: 70px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.td-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.td-placeholder-small {
    display: grid;
    place-items: center;
    height: 100%;
    background: rgba(109, 40, 217, 0.1);
    font-size: 24px;
}

.td-related-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.td-related-content h4 {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.3;
}

.td-related-content h4 a {
    color: var(--text);
}

.td-related-content h4 a:hover {
    color: var(--primary);
}

.td-related-meta {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════
   COMMENTS
═══════════════════════════════════════════════════════════════ */

.comments-area {
    margin: 60px 0;
    padding: 40px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 2px solid var(--border);
}

.comments-title {
    font-size: 28px;
    font-weight: 900;
    margin: 0 0 32px;
    color: var(--text);
}

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

.comment {
    padding: 24px;
    background: var(--bg-body);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 15px;
}

.comment-form input[type="submit"] {
    background: linear-gradient(135deg, var(--primary), var(--primary2));
    color: #fff;
    border: none;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
}

/* ═══════════════════════════════════════════════════════════════
   SIDEBAR - TRULY STICKY & BEAUTIFUL DESIGN
═══════════════════════════════════════════════════════════════ */

/* Force sticky behavior on desktop */
@media (min-width: 1024px) {

    /* Ensure parent is flex container */
    .site-content {
        display: flex !important;
        gap: 40px !important;
        align-items: flex-start !important;
    }

    .content-area {
        flex: 1 1 auto;
        min-width: 0;
    }

    /* Make sidebar sticky */
    .widget-area,
    .sidebar,
    #right-sidebar,
    .td-sidebar-sticky-wrapper {
        width: 360px !important;
        flex-shrink: 0 !important;
        position: -webkit-sticky !important;
        position: sticky !important;
        top: 90px !important;
        align-self: flex-start !important;
        max-height: calc(100vh - 110px) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        padding-bottom: 20px;
    }

    /* Custom scrollbar */
    .widget-area::-webkit-scrollbar,
    .sidebar::-webkit-scrollbar,
    #right-sidebar::-webkit-scrollbar,
    .td-sidebar-sticky-wrapper::-webkit-scrollbar {
        width: 6px;
    }

    .widget-area::-webkit-scrollbar-track,
    .sidebar::-webkit-scrollbar-track,
    #right-sidebar::-webkit-scrollbar-track,
    .td-sidebar-sticky-wrapper::-webkit-scrollbar-track {
        background: var(--bg-body);
        border-radius: 3px;
    }

    .widget-area::-webkit-scrollbar-thumb,
    .sidebar::-webkit-scrollbar-thumb,
    #right-sidebar::-webkit-scrollbar-thumb,
    .td-sidebar-sticky-wrapper::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, var(--primary), var(--primary2));
        border-radius: 3px;
    }

    .widget-area::-webkit-scrollbar-thumb:hover,
    .sidebar::-webkit-scrollbar-thumb:hover,
    #right-sidebar::-webkit-scrollbar-thumb:hover,
    .td-sidebar-sticky-wrapper::-webkit-scrollbar-thumb:hover {
        background: var(--primary-dark);
    }
}

/* Sidebar wrapper */
.td-sidebar-sticky-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Widget base styles */
.td-sidebar-widget {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}

.td-sidebar-widget:hover {
    border-color: rgba(109, 40, 217, 0.3);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.td-sidebar-widget-title {
    font-size: 19px;
    font-weight: 900;
    color: var(--text);
    margin: 0 0 22px;
    padding-bottom: 16px;
    border-bottom: 3px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.01em;
}

/* ═══════════════════════════════════════════════════════════════
   SEARCH WIDGET
═══════════════════════════════════════════════════════════════ */

.td-widget-search {
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.06), rgba(8, 145, 178, 0.06));
    border-color: rgba(109, 40, 217, 0.2);
}

.td-sidebar-search {
    display: flex;
    gap: 10px;
}

.td-sidebar-search input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    background: var(--bg-card);
    transition: all var(--transition);
    color: var(--text);
}

.td-sidebar-search input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(109, 40, 217, 0.12);
    background: #fff;
}

.td-sidebar-search input::placeholder {
    color: var(--text-muted);
}

.td-sidebar-search button {
    padding: 15px 22px;
    background: linear-gradient(135deg, var(--primary), var(--primary2));
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 2px 8px rgba(109, 40, 217, 0.3);
}

.td-sidebar-search button:hover {
    transform: translateX(3px);
    box-shadow: 0 4px 16px rgba(109, 40, 217, 0.4);
}

/* ═══════════════════════════════════════════════════════════════
   POPULAR POSTS WIDGET
═══════════════════════════════════════════════════════════════ */

.td-widget-popular {
    border-color: rgba(220, 38, 38, 0.15);
}

.td-sidebar-posts {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.td-sidebar-post {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px;
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.03), rgba(8, 145, 178, 0.03));
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    text-decoration: none;
    transition: all var(--transition);
    position: relative;
}

.td-sidebar-post::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary), var(--primary2));
    opacity: 0;
    transition: opacity var(--transition);
    z-index: 0;
}

.td-sidebar-post:hover::before {
    opacity: 0.08;
}

.td-sidebar-post:hover {
    border-color: var(--primary);
    transform: translateX(8px);
    box-shadow: 0 6px 20px rgba(109, 40, 217, 0.18);
}

.td-sidebar-post>* {
    position: relative;
    z-index: 1;
}

.td-sidebar-post-num {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, var(--primary), var(--primary2));
    color: #fff;
    font-weight: 900;
    font-size: 16px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(109, 40, 217, 0.35);
    transition: transform var(--transition);
}

.td-sidebar-post:hover .td-sidebar-post-num {
    transform: scale(1.15);
}

.td-sidebar-post-thumb {
    width: 75px;
    height: 65px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-body);
    border: 2px solid var(--border);
    transition: all var(--transition);
}

.td-sidebar-post:hover .td-sidebar-post-thumb {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(109, 40, 217, 0.2);
}

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

.td-sidebar-post:hover .td-sidebar-post-thumb img {
    transform: scale(1.15);
}

.td-sidebar-post-placeholder {
    display: grid;
    place-items: center;
    height: 100%;
    font-size: 28px;
    color: var(--text-muted);
}

.td-sidebar-post-content {
    flex: 1;
    min-width: 0;
}

.td-sidebar-post-content h4 {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--transition);
}

.td-sidebar-post:hover .td-sidebar-post-content h4 {
    color: var(--primary);
}

.td-sidebar-post-meta {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.td-post-date {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.td-post-sep {
    color: var(--text-muted);
    font-size: 10px;
}

.td-post-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ═══════════════════════════════════════════════════════════════
   CATEGORIES WIDGET
═══════════════════════════════════════════════════════════════ */

.td-widget-categories {
    border-color: rgba(8, 145, 178, 0.15);
}

.td-sidebar-categories {
    list-style: none;
    margin: 0;
    padding: 0;
}

.td-sidebar-categories li {
    margin-bottom: 12px;
}

.td-sidebar-categories li:last-child {
    margin-bottom: 0;
}

.td-sidebar-categories a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--bg-body);
    border-radius: var(--radius-sm);
    border: 2px solid var(--border);
    text-decoration: none;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.td-sidebar-categories a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary), var(--primary2));
    transform: scaleY(0);
    transition: transform var(--transition);
}

.td-sidebar-categories a:hover::before {
    transform: scaleY(1);
}

.td-sidebar-categories a:hover {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.06), rgba(8, 145, 178, 0.06));
    transform: translateX(8px);
    box-shadow: 0 4px 16px rgba(109, 40, 217, 0.12);
    padding-left: 24px;
}

.td-cat-icon {
    font-size: 26px;
    flex-shrink: 0;
    transition: transform var(--transition);
}

.td-sidebar-categories a:hover .td-cat-icon {
    transform: scale(1.2) rotate(5deg);
}

.td-cat-info {
    flex: 1;
    min-width: 0;
}

.td-cat-name {
    display: block;
    font-weight: 800;
    color: var(--text);
    font-size: 15px;
    line-height: 1.3;
    margin-bottom: 4px;
    transition: color var(--transition);
}

.td-sidebar-categories a:hover .td-cat-name {
    color: var(--primary);
}

.td-cat-desc {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    font-weight: 600;
    line-height: 1.3;
}

.td-cat-count {
    background: linear-gradient(135deg, var(--primary), var(--primary2));
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    padding: 6px 13px;
    border-radius: 20px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(109, 40, 217, 0.35);
    transition: all var(--transition);
}

.td-sidebar-categories a:hover .td-cat-count {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(109, 40, 217, 0.5);
}

/* ═══════════════════════════════════════════════════════════════
   NEWSLETTER WIDGET
═══════════════════════════════════════════════════════════════ */

.td-widget-newsletter {
    background: linear-gradient(135deg, var(--primary), var(--primary2));
    color: #fff;
    text-align: center;
    border: none;
    box-shadow: 0 8px 24px rgba(109, 40, 217, 0.35);
    position: relative;
    overflow: hidden;
}

.td-widget-newsletter::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

.td-newsletter-icon {
    font-size: 52px;
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

.td-widget-newsletter .td-sidebar-widget-title {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.3);
    justify-content: center;
    position: relative;
    z-index: 1;
}

.td-widget-newsletter p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 15px;
    margin: 0 0 22px;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.td-sidebar-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.td-sidebar-newsletter-form input {
    padding: 16px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    text-align: center;
    transition: all var(--transition);
    backdrop-filter: blur(10px);
}

.td-sidebar-newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.75);
}

.td-sidebar-newsletter-form input:focus {
    border-color: #fff;
    outline: none;
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
}

.td-sidebar-newsletter-form button {
    padding: 16px;
    background: #fff;
    color: var(--primary);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 900;
    font-size: 16px;
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.td-sidebar-newsletter-form button:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.td-newsletter-note {
    display: block;
    margin-top: 16px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    position: relative;
    z-index: 1;
}

/* ═══════════════════════════════════════════════════════════════
   AD WIDGET (OPTIONAL)
═══════════════════════════════════════════════════════════════ */

.td-widget-ad {
    padding: 18px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05), rgba(251, 146, 60, 0.05));
    border-color: rgba(245, 158, 11, 0.2);
}

.td-ad-label {
    display: block;
    text-align: center;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-light);
    font-weight: 800;
    margin-bottom: 14px;
    letter-spacing: 0.06em;
}

.td-sidebar-ad-space {
    border-radius: var(--radius-sm);
    overflow: hidden;
    min-height: 250px;
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE RESPONSIVE
═══════════════════════════════════════════════════════════════ */

@media (max-width: 1023px) {
    .site-content {
        display: block !important;
    }

    .widget-area,
    .sidebar,
    #right-sidebar,
    .td-sidebar-sticky-wrapper {
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 60px;
    }

    .td-sidebar-sticky-wrapper {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .td-sidebar-sticky-wrapper {
        grid-template-columns: 1fr;
    }

    .td-sidebar-widget {
        padding: 22px;
    }

    .td-sidebar-post {
        padding: 12px;
    }

    .td-sidebar-post-thumb {
        width: 65px;
        height: 55px;
    }
}

@media (max-width: 480px) {
    .td-sidebar-post-content h4 {
        font-size: 14px;
    }

    .td-cat-name {
        font-size: 14px;
    }

    .td-cat-desc {
        font-size: 11px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER - BEAUTIFUL & COMPLETE
═══════════════════════════════════════════════════════════════ */

.td-footer {
    background: var(--bg-dark);
    color: #cbd5e1;
    margin-top: 0;
}

.td-footer-newsletter {
    background: linear-gradient(135deg, var(--primary), var(--primary2));
    padding: 40px 0;
}

.td-footer-newsletter-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.td-footer-newsletter-text h3 {
    color: #fff;
    font-size: 24px;
    font-weight: 900;
    margin: 0 0 6px;
}

.td-footer-newsletter-text p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 15px;
}

.td-footer-newsletter-form {
    display: flex;
    gap: 10px;
}

.td-footer-newsletter-form input {
    padding: 14px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    width: 260px;
    font-family: inherit;
}

.td-footer-newsletter-form button {
    padding: 14px 28px;
    background: var(--bg-dark);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
}

.td-footer-main {
    padding: 70px 0 50px;
}

.td-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
}

.td-footer-brand h3 {
    font-size: 28px;
    font-weight: 900;
    color: #fff;
    margin: 0 0 10px;
}

.td-footer-tagline {
    color: var(--accent);
    font-weight: 700;
    font-size: 15px;
    margin: 0 0 16px;
}

.td-footer-desc {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.7;
    margin: 0 0 24px;
}

.td-footer-social {
    display: flex;
    gap: 12px;
}

.td-social-link {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 900;
    font-size: 16px;
    transition: all var(--transition);
}

.td-social-link:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.td-footer-col h4 {
    color: #fff;
    font-size: 16px;
    font-weight: 900;
    margin: 0 0 20px;
}

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

.td-footer-links li {
    margin-bottom: 12px;
}

.td-footer-links a {
    color: #94a3b8;
    font-size: 14px;
    font-weight: 600;
    transition: all var(--transition);
}

.td-footer-links a:hover {
    color: #fff;
    padding-left: 6px;
}

.td-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 28px 0;
}

.td-footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.td-copyright {
    color: #64748b;
    font-size: 14px;
    margin: 0;
}

.td-copyright strong {
    color: #fff;
}

.td-footer-made {
    color: #64748b;
    font-size: 14px;
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════════
   BACK TO TOP BUTTON
═══════════════════════════════════════════════════════════════ */

.td-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--primary2));
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    z-index: 999;
}

.td-back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.td-back-to-top:hover {
    transform: translateY(-4px);
}

/* ═══════════════════════════════════════════════════════════════
   COOKIE CONSENT
═══════════════════════════════════════════════════════════════ */

.td-cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    color: #fff;
    padding: 20px;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.3);
    z-index: 99999;
}

.td-cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.td-cookie-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #cbd5e1;
}

.td-cookie-content strong {
    font-weight: 900;
    font-size: 16px;
    display: block;
    margin-bottom: 4px;
    color: #fff;
}

.td-cookie-content a {
    color: var(--accent);
    text-decoration: underline;
}

.td-cookie-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.td-cookie-accept,
.td-cookie-decline {
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.td-cookie-accept {
    background: linear-gradient(135deg, var(--primary), var(--primary2));
    color: #fff;
}

.td-cookie-decline {
    background: transparent;
    color: #cbd5e1;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE - ALL SCREEN SIZES
═══════════════════════════════════════════════════════════════ */

@media (max-width: 1023px) {
    .td-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .td-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-container {
        padding: 0 18px;
    }
    
    .td-hero {
        padding: 60px 0 120px;
        min-height: 480px;
    }
    
    .td-hero-title {
        font-size: clamp(28px, 8vw, 48px);
    }
    
    .td-hero-stats {
        gap: 28px;
    }
    
    .td-stat-num {
        font-size: 26px;
    }
    
    .td-pillars {
        margin-top: -60px;
    }
    
    .td-steps-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .td-showcase-grid {
        grid-template-columns: 1fr;
    }
    
    .td-features-grid {
        grid-template-columns: 1fr;
    }
    
    .td-newsletter-box {
        flex-direction: column;
        text-align: center;
        padding: 40px 30px;
    }
    
    .td-newsletter-form {
        flex-direction: column;
        width: 100%;
    }
    
    .td-newsletter-form input {
        width: 100%;
    }
    
    .td-trust-grid {
        gap: 40px;
    }
    
    .td-footer-newsletter-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .td-footer-newsletter-form {
        flex-direction: column;
        width: 100%;
    }
    
    .td-footer-newsletter-form input {
        width: 100%;
    }
    
    .td-footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .td-footer-bottom-inner {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .single .inside-article,
    .page .inside-article {
        padding: 28px;
    }
    
    .td-author-box {
        flex-direction: column;
        text-align: center;
    }
    
    .td-author-avatar img {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .grid-container {
        padding: 0 16px;
    }
    
    .td-hero {
        padding: 50px 0 110px;
        min-height: 420px;
    }
    
    .td-hero-title {
        font-size: 26px;
    }
    
    .td-badge {
        font-size: 11px;
        padding: 8px 14px;
    }
    
    .td-hero-stats {
        gap: 20px;
    }
    
    .td-stat-num {
        font-size: 22px;
    }
    
    .td-pillars {
        margin-top: -50px;
    }
    
    .single .inside-article,
    .page .inside-article {
        padding: 24px 18px;
    }
    
    .entry-content h2 {
        font-size: 22px;
        padding: 16px 20px;
    }
    
    .td-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .td-related-grid {
        grid-template-columns: 1fr;
    }
    
    .td-cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .td-cookie-buttons {
        width: 100%;
        flex-direction: column;
    }
    
    .td-cookie-accept,
    .td-cookie-decline {
        width: 100%;
    }
}

@media (max-width: 375px) {
    .td-hero-title {
        font-size: 24px;
    }
    
    .td-hero-stats {
        gap: 16px;
    }
    
    .td-stat-num {
        font-size: 20px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   PRINT STYLES
═══════════════════════════════════════════════════════════════ */

@media print {
    .td-hero,
    .td-pillars,
    .td-footer,
    .site-header,
    .td-breadcrumb,
    .td-back-to-top,
    .td-cookie-consent,
    .td-social-share,
    .td-related,
    .comments-area {
        display: none !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   SELECTION STYLING
═══════════════════════════════════════════════════════════════ */

::selection {
    background: var(--primary);
    color: #fff;
}
/* ═══════════════════════════════════════════════════════════════
   FORCE KILL "NOTHING FOUND" ON HOMEPAGE
═══════════════════════════════════════════════════════════════ */

/* Nuclear option - hide EVERYTHING WordPress generates on homepage */
.home .site-main>*:not(.td-hero):not(.td-pillars):not(.td-how-it-works):not(.td-popular):not(.td-category-showcase):not(.td-latest):not(.td-why-us):not(.td-newsletter):not(.td-trust-section):not(.td-home-faq):not(.td-trust-bar),
.blog .site-main>*:not(.td-hero):not(.td-pillars):not(.td-how-it-works):not(.td-popular):not(.td-category-showcase):not(.td-latest):not(.td-why-us):not(.td-newsletter):not(.td-trust-section):not(.td-home-faq):not(.td-trust-bar) {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    clip: rect(0, 0, 0, 0) !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

/* Extra safety - target specific elements */
.home h1.entry-title,
.home .page-header h1,
.home .no-results h1,
.home .not-found h1,
.home article.no-results,
.home article.not-found,
.home section.no-results,
.home section.not-found,
.home .no-results,
.home .not-found,
.home .inside-article,
.home .entry-header,
.home .entry-content,
.home .entry-summary,
.home .entry-footer,
.home .page-header,
.home .paging-navigation,
.blog h1.entry-title,
.blog .page-header h1,
.blog .no-results,
.blog .not-found,
.blog article.no-results,
.blog section.no-results {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    clip: rect(0, 0, 0, 0) !important;
}

/* PROTECT our custom sections - always visible */
.home .td-hero,
.home .td-pillars,
.home .td-how-it-works,
.home .td-popular,
.home .td-category-showcase,
.home .td-latest,
.home .td-why-us,
.home .td-newsletter,
.home .td-trust-section,
.home .td-home-faq,
.home .td-trust-bar,
.home .td-footer {
    display: block !important;
    visibility: visible !important;
    height: auto !important;
    width: auto !important;
    overflow: visible !important;
    position: relative !important;
    clip: auto !important;
}

/* ═══════════════════════════════════════════════════════════════
   END - TECHDOSE v14.0 FINAL COMPLETE
   All Features Working | Production Ready
═══════════════════════════════════════════════════════════════ */