/*
Theme Name: WVTheme
Theme URI: https://writevate.com/blog/
Author: SEO Villas Private Limited
Author URI: https://seovillas.com/
Description: Custom WordPress theme for Writevate Blog — matching the writevate.com design with identical header, footer, and typography. SEO-optimized, RankMath compatible, and built for performance.
Version: 1.0.0
Tested up to: 6.9
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wvtheme
Tags: blog, custom-menu, featured-images, threaded-comments, translation-ready, block-styles, wide-blocks
*/

/* ==========================================================================
   CSS Variables / Design Tokens (matching writevate.com)
   ========================================================================== */
:root {
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --secondary: #10b981;
    --secondary-hover: #059669;
    --accent: #f59e0b;
    --dark-bg: #0f172a;
    --dark-surface: #1e293b;
    --dark-card: #334155;
    --bg-color: #ffffff;
    --surface-color: #f8fafc;
    --text-main: #334155;
    --text-muted: #475569;
    --border-color: #e2e8f0;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --container-width: 1200px;
    --section-padding: 5rem 0;
    --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-premium: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --glass-bg: rgba(255,255,255,0.85);
    --glass-border: 1px solid rgba(255,255,255,0.3);
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
h1,h2,h3,h4,h5,h6 {
    font-family: var(--font-heading);
    color: var(--dark-bg);
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
}
p { margin-bottom: 1.5rem; color: var(--text-muted); }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}
.section-padding { padding: var(--section-padding); }
.text-center { text-align: center; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 28px; font-family: var(--font-heading); font-weight: 600;
    font-size: 1rem; border-radius: 50px; cursor: pointer;
    transition: var(--transition); border: 2px solid transparent; gap: 8px;
}
.btn-primary {
    background-color: var(--primary); color: #fff;
    box-shadow: 0 4px 14px 0 rgba(59,130,246,.39);
}
.btn-primary:hover {
    background-color: var(--primary-hover); transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59,130,246,.4); color: #fff;
}
.btn-secondary { background-color: var(--secondary); color: #fff; }
.btn-secondary:hover { background-color: var(--secondary-hover); transform: translateY(-2px); color: #fff; }
.btn-outline { background-color: transparent; border-color: var(--border-color); color: var(--text-main); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-light { background-color: #fff; color: var(--primary); }
.btn-light:hover { background-color: var(--surface-color); transform: translateY(-2px); }
.btn-lg { padding: 16px 36px; font-size: 1.125rem; }
.btn-sm { padding: 8px 20px; font-size: 0.875rem; }

.text-gradient {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; color: transparent;
}

/* ==========================================================================
   Top Bar
   ========================================================================== */
.top-bar {
    background-color: var(--dark-bg); color: rgba(255,255,255,.75);
    font-size: .85rem; padding: 10px 0; font-weight: 500;
}
.top-bar-container { display: flex; justify-content: space-between; align-items: center; }
.top-bar-left a:first-child { margin-left: -4px; /* Align with header logo */ }
.top-bar-left, .top-bar-right { display: flex; align-items: center; gap: 24px; }
.top-bar-right { gap: 12px; }
.top-bar a {
    color: rgba(255,255,255,.75); display: inline-flex; align-items: center;
    gap: 8px; transition: var(--transition);
}
.top-bar a:hover { color: var(--primary); }
.top-bar-right .social-label {
    margin-right: -10px; font-size: .8rem; color: rgba(255,255,255,.5);
    text-transform: uppercase; letter-spacing: 1px;
}
.top-bar-right a {
    color: rgba(255,255,255,.7); font-size: 1rem; width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.05); border-radius: 50%;
    transition: all .3s ease; text-decoration: none;
}
.top-bar-right a:hover {
    background: var(--primary); color: #fff; transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14,165,233,.3);
}

@media (max-width:992px) {
    .top-bar-left a[href^="mailto:"], .top-bar-right { display: none; }
    .top-bar-container { justify-content: center; }
    .top-bar-left { width: 100%; justify-content: center; gap: 20px; }
}

/* ==========================================================================
   Site Header
   ========================================================================== */
.site-header {
    position: fixed; top: 40px; left: 0; width: 100%; z-index: 1000;
    background: var(--glass-bg); -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px); border-bottom: var(--glass-border);
    transition: var(--transition); padding: 1rem 0;
}
.site-header.scrolled { padding: .75rem 0; top: 0; box-shadow: var(--shadow-sm); }
.header-container {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: nowrap; gap: 1rem; position: relative;
}
.logo { display: flex; align-items: center; margin-left: -12px; }
.site-logo-img { height: 48px; width: auto; display: block; max-width: 100%; }

/* Navigation */
.main-navigation { display: flex; align-items: center; }
.nav-menu { display: flex; align-items: center; gap: 2rem; margin: 0; padding: 0; list-style: none; }
.nav-item { position: relative; padding: 10px 0; }
.nav-link {
    color: var(--text-main); font-weight: 500; font-size: .95rem;
    display: flex; align-items: center; gap: 6px;
}
.nav-link i { font-size: .75rem; transition: transform .3s ease; }
.nav-item:hover > .nav-link, .nav-link:hover { color: var(--primary); }
.nav-item:hover > .nav-link i { transform: rotate(180deg); }

/* Dropdown Menu */
.dropdown-menu {
    position: absolute; top: calc(100% - 5px); left: 0; min-width: 220px;
    background: #fff; border-radius: 12px;
    box-shadow: 0 50px 100px -20px rgba(50,50,93,.15), 0 30px 60px -30px rgba(0,0,0,.15);
    padding: 1rem 0; padding-top: calc(1rem + 5px);
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: all .3s cubic-bezier(.16,1,.3,1); z-index: 100;
    border: 1px solid rgba(0,0,0,.05); pointer-events: none;
}
.nav-item.has-dropdown::after {
    content: ''; position: absolute; bottom: -20px; left: 0;
    width: 100%; height: 20px; background: 0 0;
}
.nav-item:hover .dropdown-menu {
    opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto;
}
.dropdown-menu a {
    display: block; padding: .6rem 1.5rem; color: var(--text-muted);
    font-weight: 500; font-size: .9rem;
}
.dropdown-menu a:hover {
    color: var(--primary); background-color: var(--surface-color); padding-left: 1.8rem;
}

/* Mega Menu */
.mega-menu-trigger { position: static !important; }
.mega-menu {
    position: absolute; top: 100%; left: 50%;
    transform: translateX(-50%) translateY(15px) scale(.98);
    width: 1100px; max-width: 95vw; padding: 0 !important; overflow: hidden;
    background: #fff; border: 1px solid rgba(0,0,0,.05);
    box-shadow: 0 50px 100px -20px rgba(50,50,93,.15), 0 30px 60px -30px rgba(0,0,0,.15);
    border-radius: 24px; opacity: 0; visibility: hidden;
    transition: all .5s cubic-bezier(.16,1,.3,1); z-index: 1000; pointer-events: none;
}
.nav-item:hover .mega-menu {
    opacity: 1; visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1); pointer-events: auto;
}
.mega-menu-content {
    display: grid; grid-template-columns: repeat(4, 1fr);
    background: 0 0; padding: 2rem; gap: 1.5rem;
}
.mega-column { flex: 1; min-width: 200px; }
.column-title {
    font-size: .75rem; text-transform: uppercase; letter-spacing: 1.5px;
    color: var(--primary); margin-bottom: 1rem; font-weight: 700; opacity: .8;
}
.mega-links { list-style: none; padding: 0; margin: 0; }
.mega-links li { margin-bottom: .5rem; }
.mega-links a {
    display: flex !important; align-items: flex-start !important;
    gap: .8rem !important; padding: .6rem .8rem !important;
    border-radius: 12px; transition: all .3s cubic-bezier(.16,1,.3,1);
    color: var(--dark-bg); background: 0 0;
}
.mega-links a i {
    font-size: 1.25rem; color: var(--primary); margin-top: 0;
    width: 32px; height: 32px; flex-shrink: 0; display: flex;
    align-items: center; justify-content: center;
    background: rgba(14,165,233,.08); border-radius: 10px;
    transition: all .4s cubic-bezier(.16,1,.3,1); font-weight: 900;
}
.mega-links a span {
    display: block; font-weight: 600; font-size: .95rem; line-height: 1.2;
    margin-bottom: 2px; white-space: nowrap; transition: color .3s ease;
}
.mega-links a small {
    display: block; font-size: .75rem; color: var(--text-muted);
    font-weight: 400; line-height: 1.4; transition: color .3s ease;
}
.mega-links a:hover {
    background: var(--surface-color); transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,.03); padding-left: 1rem !important;
}
.mega-links a:hover span { color: var(--primary); }
.mega-links a:hover small { color: var(--text-main); }
.mega-links a:hover i {
    transform: scale(1.15) rotate(5deg); background: var(--primary);
    color: #fff; box-shadow: 0 8px 15px rgba(14,165,233,.3);
}

/* Industries Mega Menu */
.mega-menu-industries {
    max-width: 95vw !important; width: 850px !important;
    left: 50% !important; right: auto !important;
    transform: translateX(-50%) translateY(15px) scale(.98);
}
.nav-item:hover .mega-menu-industries { transform: translateX(-50%) translateY(0) scale(1); }
.mega-menu-industries .mega-menu-content {
    grid-template-columns: repeat(3, 1fr); justify-content: center; padding: 2rem; gap: 2rem;
}
.mega-menu-industries .mega-links a {
    align-items: center !important; padding: .5rem .6rem !important; gap: .5rem !important;
}
.mega-menu-industries .mega-links a span { margin-bottom: 0; }
.mega-menu-industries .mega-links a i { width: 28px; height: 28px; font-size: 1.15rem; background: 0 0; }
.mega-menu-industries .mega-links a small {
    white-space: normal; display: -webkit-box; -webkit-line-clamp: 2;
    line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis;
}
.mega-menu-industries .mega-links a:hover {
    background: 0 0; box-shadow: none; padding-left: .6rem !important; transform: translateX(4px);
}

/* Featured Column */
.featured-column {
    background: #f8fbff; margin: -2.5rem -2.5rem -2.5rem 0; padding: 2.5rem;
    width: 280px; display: flex; flex-direction: column; justify-content: center;
    border-left: 1px solid var(--border-color);
}
.mega-featured-card { text-align: left; }
.featured-tag {
    display: inline-block; padding: 4px 12px; background: var(--primary-light);
    color: var(--primary); font-size: .7rem; font-weight: 700;
    border-radius: 20px; margin-bottom: 1rem; text-transform: uppercase;
}
.mega-featured-card h4 { font-size: 1.2rem; margin-bottom: .75rem; color: var(--dark-bg); }
.mega-featured-card p { font-size: .85rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 1.5rem; }

/* Header Actions */
.header-actions { display: none; }
.menu-toggle {
    display: none; background: 0 0; border: none; cursor: pointer;
    width: 30px; height: 24px; position: relative; z-index: 1001;
}
.hamburger, .hamburger::after, .hamburger::before {
    display: block; width: 100%; height: 3px; background-color: var(--dark-bg);
    border-radius: 3px; position: absolute; transition: var(--transition);
}
.hamburger { top: 50%; transform: translateY(-50%); }
.hamburger::before { content: ''; top: -8px; }
.hamburger::after { content: ''; bottom: -8px; }
.menu-toggle.active .hamburger { background-color: transparent; }
.menu-toggle.active .hamburger::before { top: 0; transform: rotate(45deg); }
.menu-toggle.active .hamburger::after { bottom: 0; transform: rotate(-45deg); }

/* ==========================================================================
   Internal Hero / Page Hero
   ========================================================================== */
.internal-hero {
    position: relative; padding: 160px 0 80px; background-color: var(--dark-bg);
    overflow: hidden; color: #fff; text-align: center;
}
.internal-hero .hero-bg-shapes { opacity: .6; }
.hero-content-wrapper {
    max-width: 800px; margin: 0 auto; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
}
.hero-bg-shapes {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0; overflow: hidden; pointer-events: none;
}
.shape {
    position: absolute; border-radius: 50%; opacity: .4;
    animation: float 10s infinite ease-in-out alternate; will-change: transform;
}
.shape-1 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, var(--primary) 0, transparent 70%);
    top: -10%; left: -5%;
}
.shape-2 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, #8b5cf6 0, transparent 70%);
    bottom: -20%; right: -10%; animation-delay: -5s;
}
@keyframes float {
    0% { transform: translate(0,0); }
    100% { transform: translate(30px,30px); }
}
.internal-hero .page-title {
    font-size: 3.5rem; font-weight: 800; letter-spacing: -1px;
    margin-bottom: 1rem; color: #fff;
}
.internal-hero .page-desc {
    font-size: 1.15rem; color: var(--text-muted); max-width: 600px;
    margin: 0 auto; line-height: 1.6;
}

/* Premium Breadcrumb */
.premium-breadcrumb { margin-bottom: 2rem; }
.premium-breadcrumb ol {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
    gap: .75rem; list-style: none; padding: .65rem 1.5rem;
    background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
    border-radius: 50px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.premium-breadcrumb li {
    display: flex; align-items: center; font-size: .8rem;
    font-weight: 500; color: rgba(255,255,255,.6);
}
.premium-breadcrumb li:not(:last-child)::after {
    content: '\f105'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
    margin-left: .75rem; font-size: .75rem; color: rgba(255,255,255,.4);
}
.premium-breadcrumb a { color: rgba(255,255,255,.75); transition: var(--transition); }
.premium-breadcrumb a:hover { color: #fff; }
.premium-breadcrumb li.active { color: #fff; opacity: 1; font-weight: 600; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    position: relative; background-color: var(--dark-bg);
    color: #cbd5e1; padding-top: 5rem;
}
.site-footer::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(135deg, var(--primary) 0, #8b5cf6 100%);
    box-shadow: 0 4px 15px rgba(59,130,246,.2); z-index: 10;
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem; margin-bottom: 4rem;
}
.footer-logo { display: inline-flex; align-items: center; margin-bottom: 1.5rem; }
.footer-logo-img { height: 60px; width: auto; display: block; max-width: 100%; }
.footer-desc { color: #cbd5e1; font-size: .95rem; line-height: 1.6; }
.widget-title { color: #fff; font-size: 1.25rem; margin-bottom: 1.5rem; }
.footer-menu li { margin-bottom: .75rem; }
.footer-menu a { color: #94a3b8; }
.footer-menu a:hover { color: #fff; padding-left: 5px; }
.social-links { display: flex; gap: 1rem; margin-top: 1.5rem; }
.social-links a {
    width: 40px; height: 40px; border-radius: 50%;
    background-color: var(--dark-card); display: flex;
    align-items: center; justify-content: center; color: #fff;
}
.social-links a:hover { background-color: var(--primary); transform: translateY(-3px); }
.contact-info { list-style: none; padding: 0; }
.contact-info li {
    display: flex; gap: 12px; margin-bottom: 1rem;
    align-items: flex-start; color: #94a3b8;
}
.contact-info li i { color: var(--primary); margin-top: 4px; font-size: .9rem; }
.contact-info li a { color: #94a3b8; }
.contact-info li a:hover { color: #fff; }
.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    padding: 2rem 0; border-top: 1px solid var(--dark-card);
}
.footer-legal-menu { display: flex; gap: 1.5rem; }
.footer-legal-menu a { color: #94a3b8; font-size: .875rem; }
.footer-legal-menu a:hover { color: #fff; }

/* ==========================================================================
   Blog Listing
   ========================================================================== */
.blog-layout {
    display: grid; grid-template-columns: 1fr 350px; gap: 3rem;
    padding: 4rem 0;
}
.blog-posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }

.post-card {
    background: #fff; border-radius: 16px; overflow: hidden;
    border: 1px solid var(--border-color); transition: var(--transition);
    display: flex; flex-direction: column;
}
.post-card:hover {
    transform: translateY(-4px); box-shadow: var(--shadow-lg);
    border-color: rgba(59,130,246,.2);
}
.post-card-image {
    position: relative; overflow: hidden; aspect-ratio: 16/9;
}
.post-card-image img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .5s cubic-bezier(.16,1,.3,1);
}
.post-card:hover .post-card-image img { transform: scale(1.05); }
.post-card-category {
    position: absolute; top: 12px; left: 12px; padding: 4px 12px;
    background: var(--primary); color: #fff; font-size: .75rem;
    font-weight: 600; border-radius: 20px; text-transform: uppercase;
    letter-spacing: .5px;
}
.post-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.post-card-meta {
    display: flex; align-items: center; gap: 1rem; font-size: .8rem;
    color: var(--text-muted); margin-bottom: .75rem;
}
.post-card-meta i { color: var(--primary); font-size: .75rem; }
.post-card-title {
    font-size: 1.15rem; font-weight: 700; line-height: 1.35;
    margin-bottom: .75rem; color: var(--dark-bg);
}
.post-card-title a { color: inherit; }
.post-card-title a:hover { color: var(--primary); }
.post-card-excerpt {
    font-size: .9rem; color: var(--text-muted); line-height: 1.6;
    margin-bottom: 1rem; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3;
    -webkit-box-orient: vertical; overflow: hidden;
}
.post-card-footer {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 1rem; border-top: 1px solid var(--border-color);
}
.read-more-link {
    color: var(--primary); font-weight: 600; font-size: .875rem;
    display: inline-flex; align-items: center; gap: 6px;
}
.read-more-link:hover { gap: 10px; }
.reading-time { font-size: .8rem; color: var(--text-muted); }

/* ==========================================================================
   Single Post
   ========================================================================== */
.single-post-layout {
    display: grid; grid-template-columns: 1fr 350px; gap: 3rem;
    padding: 4rem 0;
}
.single-post-header { margin-bottom: 2rem; }
.single-post-meta {
    display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center;
    font-size: .9rem; color: var(--text-muted); margin-bottom: 1.5rem;
}
.single-post-meta i { color: var(--primary); }
.single-featured-image {
    border-radius: 16px; overflow: hidden; margin-bottom: 2.5rem;
}
.single-featured-image img { width: 100%; height: auto; display: block; }

/* Post Content Typography */
.post-content { font-size: 1.05rem; line-height: 1.8; color: var(--text-main); }
.post-content h2 { font-size: 1.75rem; margin-top: 2.5rem; margin-bottom: 1rem; }
.post-content h3 { font-size: 1.4rem; margin-top: 2rem; margin-bottom: .75rem; }
.post-content h4 { font-size: 1.15rem; margin-top: 1.5rem; margin-bottom: .5rem; }
.post-content p { margin-bottom: 1.25rem; text-align: justify; }
.post-content ul, .post-content ol {
    margin-bottom: 1.5rem; padding-left: 1.5rem; list-style: disc;
}
.post-content ol { list-style: decimal; }
.post-content li { margin-bottom: .5rem; color: var(--text-muted); }
.post-content blockquote {
    border-left: 4px solid var(--primary); padding: 1.25rem 1.5rem;
    margin: 2rem 0; background: var(--surface-color); border-radius: 0 12px 12px 0;
    font-style: italic; color: var(--text-main);
}
.post-content blockquote p { margin-bottom: 0; }
.post-content pre {
    background: var(--dark-bg); color: #e2e8f0; padding: 1.5rem;
    border-radius: 12px; overflow-x: auto; margin-bottom: 1.5rem;
    font-size: .9rem; line-height: 1.6;
}
.post-content code {
    background: rgba(59,130,246,.08); color: var(--primary);
    padding: 2px 6px; border-radius: 4px; font-size: .9em;
}
.post-content pre code { background: none; color: inherit; padding: 0; }
.post-content img { border-radius: 12px; margin: 1.5rem 0; }
.post-content a { color: var(--primary); text-decoration: underline; }
.post-content a:hover { color: var(--primary-hover); }
.post-content table {
    width: 100%; border-collapse: collapse; margin-bottom: 1.5rem;
    border-radius: 12px; overflow: hidden;
}
.post-content th, .post-content td {
    padding: .75rem 1rem; border: 1px solid var(--border-color); text-align: left;
}
.post-content th { background: var(--surface-color); font-weight: 600; color: var(--dark-bg); }

/* Social Share Links */
.share-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%; background: #f1f5f9;
    color: var(--text-muted); font-size: 1rem; transition: var(--transition);
    text-decoration: none;
}
.share-btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.share-btn.linkedin:hover { background: #0077b5; }
.share-btn.twitter:hover { background: #000; }
.share-btn.facebook:hover { background: #1877f2; }

/* Author Box */
.author-box {
    display: flex; gap: 1.5rem; padding: 2rem; background: var(--surface-color);
    border-radius: 16px; margin: 3rem 0; border: 1px solid var(--border-color);
}
.author-avatar { flex-shrink: 0; }
.author-avatar img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; }
.author-name { font-size: 1.15rem; font-weight: 700; color: var(--dark-bg); margin-bottom: .25rem; }
.author-bio { font-size: .9rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 0; }

/* Post Navigation */
.post-navigation {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
    margin: 3rem 0; padding: 2rem 0; border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.post-nav-link { display: block; padding: 1rem; border-radius: 12px; transition: var(--transition); }
.post-nav-link:hover { background: var(--surface-color); }
.post-nav-label { font-size: .8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.post-nav-title { font-size: 1rem; font-weight: 600; color: var(--dark-bg); margin-top: .25rem; }
.post-nav-link:hover .post-nav-title { color: var(--primary); }
.post-nav-next { text-align: right; }

/* Related Posts */
.related-posts { margin: 3rem 0; }
.related-posts-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; }
.related-posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

/* ==========================================================================
   Sidebar
   ========================================================================== */
.blog-sidebar { position: sticky; top: 120px; align-self: start; }

@media screen and (max-width: 992px) {
    .blog-sidebar { position: static; margin-top: 3rem; }
    .sidebar-widget { padding: 1.25rem !important; margin-bottom: 1.25rem !important; }
}

/* Generic Sidebar Widget Overrides Removed */

/* Search Widget */
.search-form {
    display: flex; gap: 0; border: 1.5px solid var(--border-color);
    border-radius: 12px; overflow: hidden;
}
.search-form input[type="search"] {
    flex: 1; padding: .75rem 1rem; border: none; font-family: var(--font-body);
    font-size: .95rem; outline: none; background: #fff;
}
.search-form button {
    padding: .75rem 1.25rem; background: var(--primary); color: #fff;
    border: none; cursor: pointer; transition: var(--transition);
}
.search-form button:hover { background: var(--primary-hover); }

/* Tag Cloud */
.tagcloud a {
    display: inline-block; padding: 4px 12px; margin: 0 4px 8px 0;
    border: 1px solid var(--border-color); border-radius: 20px;
    font-size: .8rem !important; color: var(--text-muted);
    transition: var(--transition);
}
.tagcloud a:hover {
    background: var(--primary); color: #fff; border-color: var(--primary);
}

/* Sidebar Widget (Hardcoded) */
.sidebar-widget {
    background: #fff; border-radius: 12px; padding: 1.25rem;
    box-shadow: 0 2px 12px rgba(0,0,0,.03); border: 1px solid var(--border-color);
    margin-bottom: 1.5rem; transition: box-shadow .3s ease;
}
.sidebar-widget:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,.06);
}
.sidebar-widget .widget-title {
    font-size: .9rem; font-weight: 700; color: var(--dark-bg);
    margin: 0 0 .85rem 0; padding-bottom: .75rem;
    border-bottom: 1px solid rgba(0,0,0,.05); display: flex;
    align-items: center; gap: .5rem; letter-spacing: .5px;
    text-transform: uppercase; font-family: var(--font-heading);
}
.sidebar-widget .widget-title i { 
    color: var(--primary); font-size: .75rem; 
    background: rgba(59, 130, 246, 0.1); width: 24px; height: 24px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 6px;
}

/* Sidebar Search */
.sidebar-search-form {
    display: flex; gap: 0; border: 1.5px solid var(--border-color);
    border-radius: 10px; overflow: hidden; transition: border-color .3s ease;
}
.sidebar-search-form:focus-within { border-color: var(--primary); }
.sidebar-search-input {
    flex: 1; padding: .65rem .85rem; border: none; font-family: var(--font-body);
    font-size: .85rem; outline: none; background: #fff; min-width: 0;
}
.sidebar-search-btn {
    padding: .65rem 1rem; background: var(--primary); color: #fff;
    border: none; cursor: pointer; transition: background .3s ease;
    font-size: .85rem;
}
.sidebar-search-btn:hover { background: var(--primary-hover); }

/* Sidebar Lists (Recent Posts, Archives, Comments, Categories) */
.sidebar-posts-list, .sidebar-archive-list,
.sidebar-comments-list, .sidebar-category-list {
    list-style: none; padding: 0; margin: 0;
}
.sidebar-posts-list li, .sidebar-archive-list li,
.sidebar-comments-list li, .sidebar-category-list li {
    margin-bottom: 0; padding: .5rem 0;
    border-bottom: 1px dashed rgba(0,0,0,.06);
}
.sidebar-posts-list li:last-child, .sidebar-archive-list li:last-child,
.sidebar-comments-list li:last-child, .sidebar-category-list li:last-child {
    border-bottom: none; margin-bottom: 0; padding-bottom: 0;
}
.sidebar-posts-list li a, .sidebar-archive-list li a,
.sidebar-comments-list li a, .sidebar-category-list li a {
    color: var(--text-main); font-size: .85rem; text-decoration: none;
    transition: color .2s ease, padding-left .2s ease; display: block;
    line-height: 1.4; font-weight: 500;
}
.sidebar-posts-list li a:hover, .sidebar-archive-list li a:hover,
.sidebar-comments-list li a:hover, .sidebar-category-list li a:hover {
    color: var(--primary); padding-left: 6px;
}

/* Recent Posts Date */
.sidebar-post-date {
    display: block; font-size: .7rem; color: #94a3b8;
    margin-top: 4px; font-weight: 400;
}

/* Recent Comments */
.comment-author-name { font-weight: 600; color: var(--dark-bg); }
.sidebar-comments-list li { font-size: .85rem; color: var(--text-muted); line-height: 1.4; }

/* Categories Count Badge */
.sidebar-category-list li { 
    display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: nowrap;
    font-size: .8rem; color: #64748b; font-weight: 600;
}
.sidebar-category-list li a { 
    flex: 1 1 auto; padding-right: 12px;
}

/* No Items State */
.sidebar-posts-list .no-posts, .sidebar-comments-list .no-comments {
    color: #94a3b8; font-style: italic; font-size: .85rem; padding: .5rem 0;
}

/* ==========================================================================
   Comments
   ========================================================================== */
.comments-area { margin-top: 3rem; }
.comments-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 2rem; }
.comment-list { list-style: none; padding: 0; }
.comment-body {
    padding: 1.5rem; margin-bottom: 1.5rem; background: var(--surface-color);
    border-radius: 12px; border: 1px solid var(--border-color);
}
.comment-author { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; }
.comment-author img { border-radius: 50%; }
.comment-author .fn { font-weight: 600; color: var(--dark-bg); }
.comment-metadata { font-size: .8rem; color: var(--text-muted); }
.comment-content p { margin-bottom: .5rem; }
.reply a {
    font-size: .8rem; font-weight: 600; color: var(--primary);
    text-transform: uppercase; letter-spacing: .5px;
}
.comment-respond { margin-top: 2rem; }
.comment-reply-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; }
.comment-form label { display: block; font-weight: 600; margin-bottom: .5rem; font-size: .9rem; color: var(--dark-bg); }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%; padding: .75rem 1rem; border: 1.5px solid var(--border-color);
    border-radius: 12px; font-family: var(--font-body); font-size: 1rem;
    transition: var(--transition); margin-bottom: 1rem;
}
.comment-form input:focus, .comment-form textarea:focus {
    border-color: var(--primary); outline: 0;
    box-shadow: 0 0 0 4px rgba(59,130,246,.1);
}
.comment-form .submit {
    background: var(--primary); color: #fff; border: none;
    padding: 12px 28px; border-radius: 50px; font-weight: 600;
    font-family: var(--font-heading); cursor: pointer; transition: var(--transition);
}
.comment-form .submit:hover {
    background: var(--primary-hover); transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59,130,246,.4);
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.pagination {
    display: flex; justify-content: center; align-items: center;
    gap: .5rem; margin: 3rem 0; padding-top: 2rem;
}
.pagination a, .pagination span {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 12px;
    font-weight: 600; font-size: .95rem; transition: var(--transition);
    border: 1px solid var(--border-color); color: var(--text-main);
}
.pagination a:hover {
    background: var(--primary); color: #fff; border-color: var(--primary);
    transform: translateY(-2px);
}
.pagination .current {
    background: var(--primary); color: #fff; border-color: var(--primary);
}
.pagination .dots { border: none; background: none; }

/* ==========================================================================
   WordPress Utility Classes
   ========================================================================== */
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 1.5rem auto; }
.wp-caption { max-width: 100%; margin-bottom: 1.5rem; }
.wp-caption-text { font-size: .85rem; color: var(--text-muted); text-align: center; padding-top: .5rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.gallery-item img { border-radius: 8px; }
.wp-block-image img { border-radius: 12px; }
.screen-reader-text {
    border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
    height: 1px; margin: -1px; overflow: hidden; padding: 0;
    position: absolute; width: 1px; word-wrap: normal !important;
}
.sticky .post-card { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(59,130,246,.15); }

/* Grid utilities */
.row { display: flex; flex-wrap: wrap; margin-right: -15px; margin-left: -15px; }
.col-lg-4,.col-lg-8,.col-md-6 { position: relative; width: 100%; padding-right: 15px; padding-left: 15px; }
@media (min-width:768px) { .col-md-6 { flex: 0 0 50%; max-width: 50%; } }
@media (min-width:992px) {
    .col-lg-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
}

/* Utility spacing */
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.mt-2 { margin-top: .5rem !important; }
.mt-4 { margin-top: 2rem !important; }
.w-100 { width: 100% !important; display: block; }

/* ==========================================================================
   Responsive — Mobile Nav
   ========================================================================== */
@media screen and (max-width:1200px) {
    .nav-menu { gap: 1rem; }
    .nav-link { font-size: .9rem; }
}

@media screen and (max-width:992px) {
    .nav-cta { display: none; }
    .menu-toggle { display: block; }
    .main-navigation {
        position: fixed; top: 0; left: -100%; width: 100%; height: 100vh;
        background: rgba(255,255,255,.98); flex-direction: column;
        align-items: flex-start; padding: 5rem 2rem 2rem;
        transition: left .4s cubic-bezier(.85,0,.15,1); z-index: 1001;
        overflow-y: auto;
    }
    .main-navigation.active { left: 0; }
    .nav-menu { flex-direction: column; width: 100%; align-items: flex-start; gap: 0; }
    .nav-item { width: 100%; padding: 0; border-bottom: 1px solid rgba(0,0,0,.05); }
    .nav-link { padding: 1.25rem 0; justify-content: space-between; font-size: 1.25rem; font-weight: 600; color: var(--dark-bg); }
    .dropdown-menu, .mega-menu {
        position: static; box-shadow: none; opacity: 1; visibility: visible;
        transform: none; border: none; display: none; padding: 0 !important;
        min-width: 100%; background: 0 0; pointer-events: auto;
    }
    .dropdown-menu li, .mega-links li { border-left: 2px solid var(--primary); margin-bottom: .5rem; }
    .dropdown-menu a, .mega-links a { display: flex; font-size: 1.05rem; color: var(--text-main); }
    .mega-menu-content, .mega-menu-industries .mega-menu-content {
        display: flex !important; flex-direction: column; padding: 0 !important; gap: .5rem; background: 0 0;
    }
    .header-actions { display: flex; }
    .menu-toggle { display: block; position: relative; z-index: 1100; background: 0 0; border: none; width: 30px; height: 24px; cursor: pointer; }
    .hamburger, .hamburger::after, .hamburger::before {
        content: ''; display: block; width: 100%; height: 2px; background: var(--dark-bg);
        border-radius: 2px; position: absolute; transition: var(--transition);
    }
    .hamburger { top: 50%; transform: translateY(-50%); }
    .hamburger::before { top: -8px; }
    .hamburger::after { bottom: -8px; }
    .menu-toggle.active .hamburger { background: 0 0; }
    .menu-toggle.active .hamburger::before { transform: rotate(45deg); top: 0; }
    .menu-toggle.active .hamburger::after { transform: rotate(-45deg); bottom: 0; }
    .mega-column { min-width: 100%; }
    .column-title { margin-bottom: .5rem; font-size: .75rem; padding-left: 1rem; }
    .dropdown-menu a, .mega-links a, .mega-menu-industries .mega-links a {
        padding: .75rem 1rem !important; background: 0 0 !important;
        transform: none !important; gap: 15px !important; align-items: center !important;
    }
    .dropdown-menu a i, .mega-links a i, .mega-menu-industries .mega-links a i {
        width: 32px !important; height: 32px !important; font-size: 1.15rem !important;
        background: rgba(14,165,233,.08) !important; border-radius: 10px !important;
        display: flex !important; justify-content: center !important; align-items: center !important;
    }
    .mega-links a small { display: none; }
    .featured-column { display: none; }
    .dropdown-menu.active, .mega-menu.active { display: block !important; }
    .nav-item.has-dropdown > .nav-link i.active { transform: rotate(180deg); }
    .nav-item:hover .mega-menu, .nav-item:hover .mega-menu-industries { transform: none !important; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-legal-menu { flex-wrap: wrap; }

    /* Blog responsive */
    .blog-layout, .single-post-layout { grid-template-columns: 1fr; }
    .blog-sidebar { position: static; }
    .related-posts-grid { grid-template-columns: 1fr 1fr; }
}

@media screen and (max-width:768px) {
    .internal-hero { padding: 160px 0 60px; }
    .internal-hero .page-title { font-size: 2.5rem; }
    .internal-hero .page-desc { font-size: 1rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
    .footer-legal-menu { flex-wrap: wrap; justify-content: center; gap: .5rem 1rem; }
    .blog-posts { grid-template-columns: 1fr; }
    .related-posts-grid { grid-template-columns: 1fr; }
    .post-navigation { grid-template-columns: 1fr; }
    .author-box { flex-direction: column; text-align: center; }
    .premium-breadcrumb { margin-top: 2.5rem; }
    .premium-breadcrumb ol { border-radius: 12px; padding: .5rem .75rem; gap: .4rem; }
    .premium-breadcrumb li { font-size: .75rem; }
}

@media screen and (max-width:480px) {
    .top-bar-container { flex-direction: row; gap: 8px; padding: 0 10px; }
    .top-bar-left { flex-direction: row; gap: 15px; }
    .top-bar a { font-size: .8rem; }
}

/* Content body text alignment */
.content-body p, .content-body ul li, .content-body ol li { text-align: justify; }
