/*
Theme Name: Cogent Coders
Theme URI: https://cogentcoders.com
Author: Cogent Coders
Author URI: https://cogentcoders.com
Description: Custom WordPress theme matching the Cogent Coders website design system.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: cogent-coders
*/

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    --primary: #008afc;
    --primary-hover: #0070d6;
    --primary-dark: #0066cc;
    --primary-light: #e6f3ff;
    --primary-ghost: rgba(0, 138, 252, 0.08);
    --neon-pink: #F472B6;
    --black: #0B0F19;
    --surface-dark: #141927;
    --elevated-dark: #1C2235;
    --card-dark: #1a1f35;
    --border-dark: #2A3040;
    --muted: #6B7280;
    --body-text: #374151;
    --heading-text: #111827;
    --light-text: #F9FAFB;
    --off-white: #F8FAFC;
    --white: #FFFFFF;
    --border-light: #E5E7EB;
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    --cyan: #06B6D4;
    --indigo: #6366F1;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --font-serif: 'Playfair Display', serif;
    --gradient-brand: linear-gradient(135deg, #008afc 0%, #6366F1 100%);
    --gradient-dark: linear-gradient(135deg, #0B0F19 0%, #141927 50%, #0B0F19 100%);
    --gradient-mesh-vivid: radial-gradient(at 15% 25%, rgba(0,138,252,0.18) 0%, transparent 45%),
                           radial-gradient(at 85% 15%, rgba(6,182,212,0.14) 0%, transparent 40%),
                           radial-gradient(at 50% 85%, rgba(99,102,241,0.12) 0%, transparent 45%);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.10);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --ease-out: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   RESET
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; cursor: none; }
body { font-family: var(--font-body); font-size: 16px; line-height: 1.7; color: var(--body-text); background: var(--off-white); cursor: none; overflow-x: hidden; }
a, button, input, textarea, select { cursor: none; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ============================================
   CURSOR
   ============================================ */
.cursor-dot { position: fixed; width: 8px; height: 8px; background: var(--primary); border-radius: 50%; pointer-events: none; z-index: 10001; transform: translate(-50%, -50%); transition: transform 0.1s, background 0.2s; }
.cursor-ring { position: fixed; width: 40px; height: 40px; border: 1.5px solid rgba(107,114,128,0.4); border-radius: 50%; pointer-events: none; z-index: 10000; transform: translate(-50%, -50%); transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease, background 0.3s ease; }
.cursor-ring.hover { width: 60px; height: 60px; border-color: var(--primary); background: rgba(0,138,252,0.06); }

/* ============================================
   UTILITIES
   ============================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.text-gradient { background: var(--gradient-brand); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.section-pad { padding: 100px 0; }

.section-label { font-family: var(--font-mono); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: var(--primary); margin-bottom: 12px; }
.section-heading { font-family: var(--font-heading); font-size: 42px; font-weight: 700; color: var(--heading-text); letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 16px; }
.section-heading-light { color: var(--light-text); }
.section-sub { color: var(--muted); font-size: 17px; max-width: 560px; line-height: 1.7; }
.section-sub-light { color: rgba(255,255,255,0.45); }

/* Orbs */
.orb { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; animation: orbFloat 8s ease-in-out infinite; }
@keyframes orbFloat { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-25px) scale(1.08); } }

/* Reveal */
.reveal { opacity: 0; transform: translateY(40px); }

/* ============================================
   NAVIGATION
   ============================================ */
.site-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 16px 24px;
    transition: background 0.4s, backdrop-filter 0.4s, padding 0.3s;
}
.site-nav.scrolled {
    background: rgba(11, 15, 25, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 10px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { height: 36px; width: auto; }
.nav-logo-text { font-family: var(--font-heading); font-size: 20px; font-weight: 700; color: white; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.55); transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: white; }
.nav-cta .btn { font-size: 13px; padding: 10px 24px; }

/* Nav dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a { display: flex; align-items: center; gap: 4px; }
.nav-dropdown > a svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2; fill: none; transition: transform 0.3s; }
.nav-dropdown:hover > a svg { transform: rotate(180deg); }
.nav-dropdown-menu {
    position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(8px);
    background: rgba(20, 25, 39, 0.95); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-md);
    padding: 8px 0; min-width: 240px; opacity: 0; visibility: hidden;
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
.nav-dropdown:hover .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-dropdown-menu a {
    display: block; padding: 10px 20px; font-size: 13px; font-weight: 500;
    color: rgba(255,255,255,0.55); transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}
.nav-dropdown-menu a:hover { background: rgba(255,255,255,0.06); color: white; }
.nav-dropdown-menu a.active { color: var(--primary); }

/* Nested sub-dropdown (flyout) */
.nav-dropdown-item { position: relative; }
.nav-dropdown-item > a { display: flex; align-items: center; justify-content: space-between; }
.nav-dropdown-item > a .nav-arrow { width: 12px; height: 12px; stroke: currentColor; stroke-width: 2; fill: none; transform: rotate(-90deg); transition: transform 0.2s; flex-shrink: 0; margin-left: 8px; }
.nav-dropdown-submenu {
    position: absolute; left: 100%; top: 0;
    background: rgba(20, 25, 39, 0.95); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-md);
    padding: 8px 0; min-width: 200px; opacity: 0; visibility: hidden;
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
    transform: translateX(8px); box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
.nav-dropdown-item:hover > .nav-dropdown-submenu { opacity: 1; visibility: visible; transform: translateX(0); }
.nav-dropdown-submenu a { display: block; padding: 10px 20px; font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.55); transition: background 0.2s, color 0.2s; white-space: nowrap; }
.nav-dropdown-submenu a:hover { background: rgba(255,255,255,0.06); color: white; }
.nav-dropdown-submenu a.active { color: var(--primary); }

/* Mobile hamburger */
.nav-hamburger { display: none; background: none; border: none; padding: 4px; }
.nav-hamburger span { display: block; width: 24px; height: 2px; background: white; margin: 5px 0; border-radius: 2px; transition: all 0.3s; }

/* Mobile menu */
.mobile-menu { display: none; position: fixed; inset: 0; background: rgba(11,15,25,0.97); backdrop-filter: blur(20px); z-index: 999; flex-direction: column; align-items: center; justify-content: center; gap: 28px; }
.mobile-menu.open { display: flex; }
.mobile-menu a { font-family: var(--font-heading); font-size: 28px; font-weight: 600; color: white; }
.mobile-menu .btn { margin-top: 16px; }
.mobile-close { position: absolute; top: 24px; right: 24px; background: none; border: none; color: white; font-size: 32px; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-body); font-size: 15px; font-weight: 600;
    padding: 14px 32px; border-radius: var(--radius-full); border: none;
    cursor: none; transition: all 0.3s var(--ease-out); text-decoration: none;
    position: relative; overflow: hidden;
}
.btn svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; }

.btn-gradient { background: var(--gradient-brand); color: white; box-shadow: 0 2px 12px rgba(0,138,252,0.25); }
.btn-gradient::after { content: ''; position: absolute; top: -50%; left: -60%; width: 40%; height: 200%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); transform: skewX(-20deg); transition: left 0.6s ease; }
.btn-gradient:hover::after { left: 120%; }
.btn-gradient:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,138,252,0.35); }

.btn-glass { background: rgba(255,255,255,0.08); color: white; backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.12); }
.btn-glass:hover { background: rgba(255,255,255,0.14); transform: translateY(-2px); }

.btn-white { background: white; color: var(--black); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,255,255,0.15); }

.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,138,252,0.3); }

.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: var(--primary-ghost); transform: translateY(-2px); }

.btn-sm { font-size: 13px; padding: 10px 24px; }
.btn-lg { font-size: 17px; padding: 16px 36px; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer { background: var(--black); color: rgba(255,255,255,0.5); font-size: 15px; position: relative; overflow: hidden; }

.footer-main { padding: 80px 0 60px; display: grid; grid-template-columns: 1.2fr 1fr 0.8fr; gap: 60px; align-items: flex-start; }

.footer-heading { font-family: var(--font-heading); font-size: clamp(36px, 4vw, 52px); font-weight: 700; color: white; line-height: 1.15; letter-spacing: -0.03em; margin-bottom: 32px; }
.footer-socials { display: flex; gap: 12px; }
.footer-social-icon {
    width: 42px; height: 42px; border-radius: 50%;
    background: rgba(255,255,255,0.08); border: none;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s, transform 0.2s; cursor: none;
}
.footer-social-icon:hover { background: rgba(255,255,255,0.15); transform: translateY(-2px); }
.footer-social-icon svg { width: 18px; height: 18px; color: rgba(255,255,255,0.6); fill: none; stroke: currentColor; }
.footer-social-icon:hover svg { color: white; }

.footer-links-section {}
.footer-links-title { display: flex; align-items: center; gap: 10px; font-weight: 600; color: rgba(255,255,255,0.8); margin-bottom: 20px; font-size: 15px; }
.footer-links-dot { width: 6px; height: 6px; border-radius: 50%; background: white; }
.footer-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-pill {
    display: inline-block; padding: 10px 20px;
    background: rgba(255,255,255,0.07); border-radius: var(--radius-full);
    font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.55);
    text-transform: uppercase; letter-spacing: 0.03em;
    transition: background 0.2s, color 0.2s; cursor: none;
}
.footer-pill:hover { background: rgba(255,255,255,0.14); color: white; }

.footer-contact-section {}
.footer-contact-title { display: flex; align-items: center; gap: 10px; font-weight: 600; color: rgba(255,255,255,0.8); margin-bottom: 20px; font-size: 15px; }
.footer-contact-list { display: flex; flex-direction: column; gap: 12px; }
.footer-contact-item { font-size: 15px; color: rgba(255,255,255,0.45); line-height: 1.6; transition: color 0.2s; }
a.footer-contact-item:hover { color: white; }

.footer-giant-wrap {
    position: relative; overflow: hidden;
    padding: 0 0 24px; margin-top: 40px;
}
.footer-giant {
    font-family: var(--font-heading); font-weight: 700;
    font-size: clamp(72px, 12vw, 160px);
    text-align: center; letter-spacing: -0.04em; line-height: 1;
    color: var(--primary);
    text-shadow: 0 0 60px rgba(0,138,252,0.4), 0 0 120px rgba(0,138,252,0.2);
    opacity: 0.85;
    -webkit-mask-image: linear-gradient(to bottom, white 50%, transparent 100%);
    mask-image: linear-gradient(to bottom, white 50%, transparent 100%);
}

.footer-bar { padding: 20px 0; display: flex; justify-content: center; font-size: 13px; color: rgba(255,255,255,0.2); }
.footer-bar strong { color: rgba(255,255,255,0.45); font-weight: 600; }

.scroll-top { position: fixed; bottom: 30px; right: 30px; width: 48px; height: 48px; border-radius: 50%; background: var(--black); border: 1px solid rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; cursor: none; z-index: 99; transition: all 0.3s; opacity: 0; pointer-events: none; }
.scroll-top.visible { opacity: 1; pointer-events: auto; }
.scroll-top:hover { background: var(--elevated-dark); transform: translateY(-2px); }
.scroll-top svg { width: 20px; height: 20px; stroke: white; stroke-width: 2; fill: none; }

.whatsapp-float { position: fixed; bottom: 30px; left: 30px; width: 56px; height: 56px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center; z-index: 99; box-shadow: 0 4px 16px rgba(37,211,102,0.4); transition: all 0.3s; cursor: none; }
.whatsapp-float:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 6px 24px rgba(37,211,102,0.5); }
.whatsapp-float svg { width: 30px; height: 30px; }

/* ============================================
   PAGE HERO
   ============================================ */
.page-hero {
    background: var(--black); position: relative; overflow: hidden;
    padding: 160px 24px 80px; text-align: center;
}
.page-hero::before { content: ''; position: absolute; inset: 0; background: var(--gradient-mesh-vivid); pointer-events: none; }
.page-hero-content { position: relative; max-width: 800px; margin: 0 auto; }
.page-hero-title {
    font-family: var(--font-serif); font-size: clamp(36px, 5vw, 60px);
    font-weight: 400; font-style: italic; color: var(--light-text);
    letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 20px;
}
.page-hero-sub { font-size: 18px; color: rgba(255,255,255,0.45); max-width: 560px; margin: 0 auto; line-height: 1.7; }

/* ============================================
   PAGE SECTIONS
   ============================================ */
.page-section { padding: 80px 0; }
.page-section-dark { background: var(--black); position: relative; overflow: hidden; }
.page-section-dark::before { content: ''; position: absolute; inset: 0; background: var(--gradient-mesh-vivid); pointer-events: none; }
.page-section-dark-alt { background: var(--surface-dark); position: relative; overflow: hidden; }
.page-section-white { background: var(--white); }
.page-section-light { background: var(--off-white); }

.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.content-text p { font-size: 17px; color: var(--body-text); line-height: 1.8; margin-bottom: 20px; }

/* Icon cards */
.icon-cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.icon-card {
    background: var(--white); border: 1px solid var(--border-light);
    border-radius: var(--radius-lg); padding: 32px 28px;
    transition: all 0.35s var(--ease-smooth); position: relative; overflow: hidden;
}
.icon-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--gradient-brand); opacity: 0; transition: opacity 0.4s;
}
.icon-card:hover::before { opacity: 1; }
.icon-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.icon-card-icon { width: 48px; height: 48px; margin-bottom: 20px; }
.icon-card-icon svg { width: 48px; height: 48px; stroke: var(--primary); stroke-width: 1.5; fill: none; }
.icon-card-title { font-family: var(--font-heading); font-size: 18px; font-weight: 600; color: var(--heading-text); margin-bottom: 8px; }
.icon-card-desc { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb-bar { background: var(--black); padding: 100px 24px 16px; position: relative; }
.breadcrumb-bar::before { content: ''; position: absolute; inset: 0; background: var(--gradient-mesh-vivid); pointer-events: none; }
.breadcrumb-list { display: flex; align-items: center; gap: 8px; list-style: none; position: relative; }
.breadcrumb-item { font-size: 13px; color: rgba(255,255,255,0.4); }
.breadcrumb-item a { color: rgba(255,255,255,0.4); transition: color 0.2s; }
.breadcrumb-item a:hover { color: white; }
.breadcrumb-item.active { color: rgba(255,255,255,0.7); }
.breadcrumb-item + .breadcrumb-item::before { content: '/'; margin-right: 8px; color: rgba(255,255,255,0.2); }
.breadcrumb-bar + .page-hero { padding-top: 40px; }

/* Form styles */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 14px; font-weight: 600; color: var(--heading-text); margin-bottom: 8px; }
.form-input, .form-textarea {
    width: 100%; padding: 14px 18px; border: 1px solid var(--border-light);
    border-radius: var(--radius-md); font-family: var(--font-body); font-size: 15px;
    color: var(--heading-text); background: var(--off-white);
    transition: border-color 0.2s, box-shadow 0.2s; outline: none; cursor: none;
}
.form-input:focus, .form-textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,138,252,0.1); }
.form-textarea { resize: vertical; min-height: 140px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* CTA section */
.cta-section { background: var(--black); position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; inset: 0; background: var(--gradient-mesh-vivid); pointer-events: none; }
.cta-content { text-align: center; position: relative; }
.cta-title { font-family: var(--font-serif); font-size: clamp(36px, 5vw, 56px); font-weight: 400; font-style: italic; color: white; line-height: 1.2; margin-bottom: 20px; }

/* ============================================
   BLOG POST CARD GRID
   ============================================ */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }

.blog-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.35s var(--ease-smooth);
    position: relative;
}
.blog-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--gradient-brand); opacity: 0; transition: opacity 0.4s;
    z-index: 1;
}
.blog-card:hover::before { opacity: 1; }
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.blog-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}
.blog-card-image img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s var(--ease-smooth);
}
.blog-card:hover .blog-card-image img { transform: scale(1.05); }

.blog-card-image .blog-card-category {
    position: absolute; top: 16px; left: 16px;
    background: var(--gradient-brand);
    color: white; font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.06em;
    padding: 5px 14px; border-radius: var(--radius-full);
    z-index: 1;
}

.blog-card-body { padding: 28px; }

.blog-card-title {
    font-family: var(--font-heading);
    font-size: 20px; font-weight: 600;
    color: var(--heading-text);
    line-height: 1.35; margin-bottom: 12px;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.blog-card-title a { color: inherit; transition: color 0.2s; }
.blog-card-title a:hover { color: var(--primary); }

.blog-card-excerpt {
    font-size: 15px; color: var(--muted); line-height: 1.7;
    margin-bottom: 18px;
    display: -webkit-box; -webkit-line-clamp: 3;
    -webkit-box-orient: vertical; overflow: hidden;
}

.blog-card-meta {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}
.blog-card-date {
    font-size: 12px; color: var(--muted);
    font-family: var(--font-mono);
}
.blog-card-readmore {
    font-size: 13px; font-weight: 600; color: var(--primary);
    display: inline-flex; align-items: center; gap: 4px;
    transition: gap 0.2s;
}
.blog-card-readmore:hover { gap: 8px; }
.blog-card-readmore svg {
    width: 14px; height: 14px; stroke: currentColor;
    stroke-width: 2; fill: none;
}

/* No featured image fallback */
.blog-card-image--placeholder {
    background: var(--gradient-brand);
    display: flex; align-items: center; justify-content: center;
    aspect-ratio: 16/9;
}
.blog-card-image--placeholder svg {
    width: 48px; height: 48px; stroke: white; stroke-width: 1.5; fill: none; opacity: 0.4;
}

/* ============================================
   BLOG LAYOUT WITH SIDEBAR
   ============================================ */
.blog-layout {
    display: block;
}
.blog-main { min-width: 0; }

/* ============================================
   SINGLE POST READING LAYOUT
   ============================================ */
.single-post-hero {
    background: var(--black); position: relative; overflow: hidden;
    padding: 160px 24px 60px; text-align: center;
}
.single-post-hero::before {
    content: ''; position: absolute; inset: 0;
    background: var(--gradient-mesh-vivid); pointer-events: none;
}
.single-post-hero-content { position: relative; max-width: 760px; margin: 0 auto; }
.single-post-category {
    display: inline-block;
    background: rgba(0, 138, 252, 0.15);
    color: var(--primary); font-size: 12px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.08em;
    padding: 6px 16px; border-radius: var(--radius-full);
    margin-bottom: 20px;
}
.single-post-category a { color: inherit; }
.single-post-title {
    font-family: var(--font-serif);
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 400; font-style: italic;
    color: var(--light-text);
    letter-spacing: -0.02em; line-height: 1.2;
    margin-bottom: 24px;
}
.single-post-meta {
    display: flex; align-items: center; justify-content: center;
    gap: 24px; flex-wrap: wrap;
}
.single-post-meta-item {
    display: flex; align-items: center; gap: 6px;
    font-size: 14px; color: rgba(255,255,255,0.45);
}
.single-post-meta-item svg {
    width: 16px; height: 16px; stroke: rgba(255,255,255,0.35);
    stroke-width: 2; fill: none;
}

.single-post-featured {
    max-width: 900px; margin: -40px auto 0;
    position: relative; z-index: 1;
    border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.single-post-featured img {
    width: 100%; height: auto; display: block;
}

.single-post-content {
    max-width: 760px; margin: 48px auto 0;
    padding: 0 24px;
}

/* Article typography */
.single-post-content h2 {
    font-family: var(--font-heading);
    font-size: 28px; font-weight: 700;
    color: var(--heading-text);
    letter-spacing: -0.02em; line-height: 1.3;
    margin: 48px 0 16px;
}
.single-post-content h3 {
    font-family: var(--font-heading);
    font-size: 22px; font-weight: 600;
    color: var(--heading-text);
    line-height: 1.35; margin: 36px 0 12px;
}
.single-post-content h4 {
    font-family: var(--font-heading);
    font-size: 18px; font-weight: 600;
    color: var(--heading-text);
    margin: 28px 0 10px;
}
.single-post-content p {
    font-size: 17px; line-height: 1.85;
    color: var(--body-text); margin-bottom: 24px;
}
.single-post-content a {
    color: var(--primary); text-decoration: underline;
    text-underline-offset: 3px; transition: color 0.2s;
}
.single-post-content a:hover { color: var(--primary-hover); }
.single-post-content ul, .single-post-content ol {
    margin: 0 0 24px 24px; padding: 0;
}
.single-post-content ul { list-style: disc; }
.single-post-content ol { list-style: decimal; }
.single-post-content li {
    font-size: 17px; line-height: 1.8;
    color: var(--body-text); margin-bottom: 8px;
}
.single-post-content blockquote {
    border-left: 4px solid var(--primary);
    background: var(--primary-ghost);
    padding: 24px 28px; margin: 32px 0;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.single-post-content blockquote p {
    font-size: 18px; font-style: italic;
    color: var(--heading-text); margin-bottom: 0;
}
.single-post-content pre {
    background: var(--black); color: var(--light-text);
    padding: 24px; border-radius: var(--radius-md);
    overflow-x: auto; margin: 24px 0;
    font-family: var(--font-mono); font-size: 14px;
    line-height: 1.7;
}
.single-post-content code {
    font-family: var(--font-mono); font-size: 0.9em;
    background: rgba(0, 138, 252, 0.08);
    padding: 2px 6px; border-radius: 4px;
    color: var(--primary-dark);
}
.single-post-content pre code {
    background: none; padding: 0; color: inherit;
    border-radius: 0;
}
.single-post-content img {
    border-radius: var(--radius-md);
    margin: 32px 0;
}
.single-post-content table {
    width: 100%; border-collapse: collapse; margin: 24px 0;
}
.single-post-content table th,
.single-post-content table td {
    padding: 12px 16px; border: 1px solid var(--border-light);
    font-size: 15px; text-align: left;
}
.single-post-content table th {
    background: var(--off-white); font-weight: 600;
    color: var(--heading-text);
}
.single-post-content hr {
    border: none; height: 1px;
    background: var(--border-light);
    margin: 48px 0;
}

/* Post tags */
.post-tags {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin: 48px 0 32px; padding-top: 32px;
    border-top: 1px solid var(--border-light);
}
.post-tag {
    display: inline-block; padding: 6px 16px;
    background: var(--off-white); border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    font-size: 12px; font-weight: 500; color: var(--muted);
    text-transform: uppercase; letter-spacing: 0.04em;
    transition: all 0.2s;
}
.post-tag:hover {
    background: var(--primary-ghost);
    border-color: var(--primary);
    color: var(--primary);
}

/* Share buttons */
.post-share {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 48px;
}
.post-share-label {
    font-size: 14px; font-weight: 600; color: var(--heading-text);
}
.post-share-btn {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--off-white); border: 1px solid var(--border-light);
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s; cursor: none;
}
.post-share-btn:hover {
    background: var(--primary-ghost);
    border-color: var(--primary);
}
.post-share-btn svg {
    width: 16px; height: 16px; stroke: var(--muted);
    stroke-width: 2; fill: none;
}
.post-share-btn:hover svg { stroke: var(--primary); }

/* Author bio box */
.author-bio {
    display: flex; gap: 20px;
    background: var(--white); border: 1px solid var(--border-light);
    border-radius: var(--radius-lg); padding: 32px;
    margin-bottom: 48px;
}
.author-bio-avatar {
    width: 72px; height: 72px; border-radius: 50%;
    overflow: hidden; flex-shrink: 0;
}
.author-bio-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-bio-name {
    font-family: var(--font-heading);
    font-size: 18px; font-weight: 600;
    color: var(--heading-text); margin-bottom: 4px;
}
.author-bio-role {
    font-size: 13px; color: var(--primary);
    font-weight: 500; margin-bottom: 8px;
}
.author-bio-desc {
    font-size: 14px; color: var(--muted); line-height: 1.6;
}

/* Related posts */
.related-posts-section {
    padding: 80px 0;
    background: var(--off-white);
}
.related-posts-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 24px; margin-top: 32px;
}

/* Blog CTA banner */
.blog-cta-section {
    background: var(--black); position: relative; overflow: hidden;
    padding: 80px 0;
}
.blog-cta-section::before {
    content: ''; position: absolute; inset: 0;
    background: var(--gradient-mesh-vivid); pointer-events: none;
}
.blog-cta-content {
    text-align: center; position: relative;
    max-width: 600px; margin: 0 auto;
}
.blog-cta-content h2 {
    font-family: var(--font-serif);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 400; font-style: italic;
    color: white; line-height: 1.2; margin-bottom: 16px;
}
.blog-cta-content p {
    font-size: 17px; color: rgba(255,255,255,0.45);
    margin-bottom: 32px; line-height: 1.7;
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar { position: sticky; top: 100px; }

.sidebar-widget {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px; margin-bottom: 24px;
}
.sidebar-widget-title {
    font-family: var(--font-heading);
    font-size: 16px; font-weight: 600;
    color: var(--heading-text);
    margin-bottom: 16px; padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

/* Search widget */
.sidebar-search { position: relative; }
.sidebar-search input {
    width: 100%; padding: 12px 44px 12px 16px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    font-family: var(--font-body); font-size: 14px;
    color: var(--heading-text); background: var(--off-white);
    outline: none; transition: border-color 0.2s, box-shadow 0.2s;
    cursor: none;
}
.sidebar-search input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,138,252,0.1);
}
.sidebar-search button {
    position: absolute; right: 4px; top: 50%;
    transform: translateY(-50%);
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--gradient-brand); border: none;
    display: flex; align-items: center; justify-content: center;
    cursor: none; transition: transform 0.2s;
}
.sidebar-search button:hover { transform: translateY(-50%) scale(1.05); }
.sidebar-search button svg {
    width: 16px; height: 16px; stroke: white;
    stroke-width: 2; fill: none;
}

/* Recent posts widget */
.sidebar-recent-post {
    display: flex; gap: 12px;
    padding: 12px 0; border-bottom: 1px solid var(--border-light);
}
.sidebar-recent-post:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-recent-post:first-child { padding-top: 0; }
.sidebar-recent-thumb {
    width: 64px; height: 48px; border-radius: var(--radius-sm);
    overflow: hidden; flex-shrink: 0;
}
.sidebar-recent-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-recent-info {}
.sidebar-recent-title {
    font-size: 13px; font-weight: 600; color: var(--heading-text);
    line-height: 1.4; margin-bottom: 4px;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.sidebar-recent-title a { color: inherit; transition: color 0.2s; }
.sidebar-recent-title a:hover { color: var(--primary); }
.sidebar-recent-date {
    font-size: 11px; color: var(--muted);
    font-family: var(--font-mono);
}

/* Categories widget */
.sidebar-category-list {}
.sidebar-category-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 0; border-bottom: 1px solid var(--border-light);
}
.sidebar-category-item:last-child { border-bottom: none; }
.sidebar-category-item a {
    font-size: 14px; color: var(--body-text);
    transition: color 0.2s;
}
.sidebar-category-item a:hover { color: var(--primary); }
.sidebar-category-count {
    font-size: 12px; color: var(--muted);
    background: var(--off-white); padding: 2px 10px;
    border-radius: var(--radius-full);
    font-weight: 500;
}

/* Tags cloud widget */
.sidebar-tags {
    display: flex; flex-wrap: wrap; gap: 8px;
}
.sidebar-tag {
    display: inline-block; padding: 5px 14px;
    background: var(--off-white); border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    font-size: 12px; color: var(--muted);
    transition: all 0.2s;
}
.sidebar-tag:hover {
    background: var(--primary-ghost);
    border-color: var(--primary);
    color: var(--primary);
}

/* Sidebar CTA */
.sidebar-cta {
    background: var(--gradient-brand);
    border: none; color: white; text-align: center;
}
.sidebar-cta h3 {
    font-family: var(--font-heading);
    font-size: 20px; font-weight: 700;
    margin-bottom: 10px;
}
.sidebar-cta p {
    font-size: 14px; opacity: 0.8;
    margin-bottom: 20px; line-height: 1.5;
}
.sidebar-cta .btn {
    width: 100%; justify-content: center;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex; align-items: center; justify-content: center;
    gap: 8px; margin-top: 48px;
}
.pagination a, .pagination span {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%;
    font-size: 14px; font-weight: 600;
    transition: all 0.2s;
}
.pagination a {
    color: var(--body-text); background: var(--white);
    border: 1px solid var(--border-light);
}
.pagination a:hover {
    background: var(--primary-ghost);
    border-color: var(--primary); color: var(--primary);
}
.pagination .current {
    background: var(--gradient-brand); color: white;
    border: none;
}
.pagination .dots {
    color: var(--muted); border: none; background: none;
    width: auto;
}
.pagination .prev, .pagination .next {
    width: auto; padding: 0 20px;
    border-radius: var(--radius-full);
    font-size: 13px; gap: 6px;
}
.pagination .prev svg, .pagination .next svg {
    width: 16px; height: 16px; stroke: currentColor;
    stroke-width: 2; fill: none;
}

/* ============================================
   COMMENTS
   ============================================ */
.comments-section {
    max-width: 760px; margin: 0 auto;
    padding: 48px 24px 80px;
}
.comments-title {
    font-family: var(--font-heading);
    font-size: 24px; font-weight: 700;
    color: var(--heading-text); margin-bottom: 32px;
}

.comment-list { list-style: none; padding: 0; margin: 0; }
.comment-item {
    padding: 24px 0; border-bottom: 1px solid var(--border-light);
}
.comment-item:last-child { border-bottom: none; }
.comment-item .children { margin-left: 40px; padding-left: 20px; border-left: 2px solid var(--border-light); }
.comment-item .children .comment-item { padding: 20px 0; }

.comment-header {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 8px;
}
.comment-avatar {
    width: 44px; height: 44px; border-radius: 50%; overflow: hidden;
}
.comment-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.comment-author {
    font-family: var(--font-heading);
    font-size: 15px; font-weight: 600;
    color: var(--heading-text);
}
.comment-date {
    font-size: 12px; color: var(--muted);
    font-family: var(--font-mono);
}
.comment-body p {
    font-size: 15px; color: var(--body-text);
    line-height: 1.7; margin-bottom: 8px;
}
.comment-reply-link {
    font-size: 13px; font-weight: 600;
    color: var(--primary); transition: color 0.2s;
}
.comment-reply-link:hover { color: var(--primary-hover); }

/* Comment form */
.comment-respond {
    margin-top: 40px; padding-top: 40px;
    border-top: 1px solid var(--border-light);
}
.comment-reply-title {
    font-family: var(--font-heading);
    font-size: 20px; font-weight: 700;
    color: var(--heading-text); margin-bottom: 24px;
}
.comment-reply-title small {
    font-size: 13px; font-weight: 400;
    margin-left: 12px;
}
.comment-reply-title small a { color: var(--primary); }
.comment-form-cookies-consent {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 20px;
}
.comment-form-cookies-consent input { width: 16px; height: 16px; }
.comment-form-cookies-consent label {
    font-size: 13px; color: var(--muted);
}

/* ============================================
   WORDPRESS DEFAULT CLASSES
   ============================================ */
.alignleft { float: left; margin: 0 24px 24px 0; }
.alignright { float: right; margin: 0 0 24px 24px; }
.aligncenter { display: block; margin: 24px auto; }
.alignnone { margin: 24px 0; }
.alignwide { margin-left: -80px; margin-right: -80px; max-width: calc(100% + 160px); }
.alignfull { margin-left: calc(-50vw + 50%); margin-right: calc(-50vw + 50%); max-width: 100vw; width: 100vw; }

.wp-caption {
    max-width: 100%; margin: 24px 0;
}
.wp-caption img { border-radius: var(--radius-md); }
.wp-caption-text {
    font-size: 13px; color: var(--muted);
    text-align: center; margin-top: 8px;
    font-style: italic;
}

.wp-block-image { margin: 32px 0; }
.wp-block-image img { border-radius: var(--radius-md); }
.wp-block-image figcaption {
    font-size: 13px; color: var(--muted);
    text-align: center; margin-top: 8px;
}

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 24px 0; }
.gallery-item { margin: 0; }
.gallery-item img { border-radius: var(--radius-sm); }
.gallery-caption { font-size: 12px; color: var(--muted); text-align: center; margin-top: 4px; }

.sticky .blog-card { border-color: var(--primary); }
.sticky .blog-card::before { opacity: 1; }

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute; height: 1px; width: 1px;
    overflow: hidden; word-wrap: normal;
}
.screen-reader-text:focus {
    clip: auto; display: block; height: auto;
    left: 5px; top: 5px; width: auto; z-index: 100000;
    background: var(--white); padding: 15px 23px;
    font-size: 14px; font-weight: 600; color: var(--heading-text);
}

/* ============================================
   404 PAGE
   ============================================ */
.error-404-section {
    background: var(--black); position: relative; overflow: hidden;
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    padding: 160px 24px 80px;
}
.error-404-section::before {
    content: ''; position: absolute; inset: 0;
    background: var(--gradient-mesh-vivid); pointer-events: none;
}
.error-404-content { position: relative; text-align: center; }
.error-404-number {
    font-family: var(--font-heading);
    font-size: clamp(120px, 20vw, 280px);
    font-weight: 700; line-height: 1;
    letter-spacing: -0.04em;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}
.error-404-heading {
    font-family: var(--font-heading);
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 600; color: var(--light-text);
    margin-bottom: 12px;
}
.error-404-sub {
    font-size: 17px; color: rgba(255,255,255,0.45);
    max-width: 460px; margin: 0 auto 40px; line-height: 1.7;
}
.error-404-actions {
    display: flex; align-items: center; justify-content: center;
    gap: 16px; flex-wrap: wrap;
}

/* ============================================
   ARCHIVE HEADER
   ============================================ */
.archive-header {
    background: var(--black); position: relative; overflow: hidden;
    padding: 160px 24px 60px; text-align: center;
}
.archive-header::before {
    content: ''; position: absolute; inset: 0;
    background: var(--gradient-mesh-vivid); pointer-events: none;
}
.archive-header-content { position: relative; }
.archive-header .section-label { margin-bottom: 8px; }
.archive-header .page-hero-title { margin-bottom: 16px; }
.archive-header-desc {
    font-size: 17px; color: rgba(255,255,255,0.45);
    max-width: 560px; margin: 0 auto; line-height: 1.7;
}

/* ============================================
   STATIC PAGE
   ============================================ */
.page-content {
    max-width: 900px; margin: 0 auto;
    padding: 60px 24px 80px;
}
.page-content h2 {
    font-family: var(--font-heading);
    font-size: 28px; font-weight: 700;
    color: var(--heading-text);
    margin: 40px 0 16px;
}
.page-content h3 {
    font-family: var(--font-heading);
    font-size: 22px; font-weight: 600;
    color: var(--heading-text);
    margin: 32px 0 12px;
}
.page-content p {
    font-size: 17px; line-height: 1.8;
    color: var(--body-text); margin-bottom: 20px;
}
.page-content a {
    color: var(--primary); text-decoration: underline;
    text-underline-offset: 3px;
}
.page-content ul, .page-content ol {
    margin: 0 0 20px 24px;
}
.page-content ul { list-style: disc; }
.page-content ol { list-style: decimal; }
.page-content li {
    font-size: 17px; line-height: 1.8;
    color: var(--body-text); margin-bottom: 6px;
}
.page-content img { border-radius: var(--radius-md); margin: 24px 0; }
.page-content blockquote {
    border-left: 4px solid var(--primary);
    background: var(--primary-ghost);
    padding: 20px 24px; margin: 24px 0;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.page-content blockquote p {
    font-style: italic; color: var(--heading-text); margin-bottom: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .icon-cards-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .related-posts-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .content-grid { grid-template-columns: 1fr; }
    .footer-main { grid-template-columns: 1fr 1fr; gap: 40px; }
    .footer-contact-section { grid-column: span 2; }
    .footer-giant { font-size: clamp(60px, 10vw, 120px); }
    .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links, .nav-cta { display: none; }
    .nav-hamburger { display: block; }
    .mobile-sub-links { display: flex; flex-direction: column; gap: 12px; padding-left: 20px; border-left: 2px solid rgba(255,255,255,0.1); }
    .mobile-sub-links a { font-size: 18px !important; font-weight: 400 !important; color: rgba(255,255,255,0.45) !important; }
    .mobile-sub-links a:hover { color: white !important; }
    .section-heading { font-size: 32px; }
    .icon-cards-grid { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .related-posts-grid { grid-template-columns: 1fr; }
    .footer-main { grid-template-columns: 1fr; gap: 40px; }
    .footer-contact-section { grid-column: span 1; }
    .footer-heading { font-size: 32px; }
    .footer-giant { font-size: clamp(48px, 14vw, 100px); }
    .footer-bar { flex-direction: column; gap: 8px; text-align: center; }
    .cursor-dot, .cursor-ring { display: none; }
    html, body, a, button, input, textarea, select, .btn, .faq-question { cursor: auto; }
    .author-bio { flex-direction: column; text-align: center; }
    .author-bio-avatar { margin: 0 auto; }
    .single-post-content { padding: 0 16px; }
    .error-404-actions { flex-direction: column; }
    .alignwide { margin-left: 0; margin-right: 0; max-width: 100%; }
}

@keyframes shimmer { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
