/*
Theme Name: Digitalised V7 (Final Perfected)
Author: Writer Agent
Description: Custom high-speed SEO theme. All templates, real logo, fixed bento boxes, 404 page, mobile case study fix.
Version: 10.0\nDescription: Fixed blog home template hierarchy.
Description: Added Email Routing, Social Icons, and Footer Updates.
Description: Added Blog Home and Single Post templates.
*/

:root {
    --bg-main: #050505;
    --bg-surface: rgba(26, 26, 26, 0.6);
    --neon-green: #39FF14;
    --text-main: #F3F4F6;
    --text-muted: #9CA3AF;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { overflow-x: visible; width: 100%; }
body { width: 100%; overflow-x: clip; }
body {
    background-color: var(--bg-main); color: var(--text-main);
    font-family: var(--font-body); line-height: 1.6;
    background-image: radial-gradient(circle at 50% 0%, rgba(57, 255, 20, 0.05) 0%, transparent 50%);
}
img { max-width: 100%; height: auto; }

h1, h2, h3, h4 { font-family: var(--font-heading); color: #fff; font-weight: 700; }
h2 { font-size: 2.5rem; margin-bottom: 1rem; letter-spacing: -1px; }
.subtitle { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 3rem; max-width: 800px; }
.highlight { color: var(--neon-green); }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* HEADER & WP MENU FIX */
header {
    padding: 15px 0; position: sticky; top: 0; background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); z-index: 100;
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo img { max-height: 85px !important; width: auto; display: block; }
.nav-links { background: rgba(255,255,255,0.03); padding: 5px 20px; border-radius: 100px; border: 1px solid rgba(255,255,255,0.05); }
.nav-links ul { list-style: none !important; display: flex !important; margin: 0 !important; padding: 0 !important; align-items: center !important; }
.nav-links li { margin: 0 !important; padding: 0 !important; }
.nav-links a { color: var(--text-main) !important; text-decoration: none !important; margin: 0 15px !important; font-weight: 500 !important; font-size: 0.95rem !important; transition: color 0.3s !important; display: block !important; }
.nav-links a:hover { color: var(--neon-green) !important; }

/* BUTTONS */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 28px; font-family: var(--font-heading); font-weight: 700;
    text-decoration: none; border-radius: 100px; transition: all 0.3s ease; cursor: pointer; font-size: 1rem; border: none;
}
.btn-primary { background-color: var(--neon-green); color: #000; box-shadow: 0 0 20px rgba(57, 255, 20, 0.2); }
.btn-primary:hover { box-shadow: 0 0 30px rgba(57, 255, 20, 0.5); transform: translateY(-2px); }
.btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.2); }
.btn-outline:hover { border-color: var(--neon-green); color: var(--neon-green); }

/* HERO SECTIONS */
.hero { min-height: 85vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding-top: 60px; }
.hero-badge { display: inline-block; padding: 8px 16px; background: rgba(138, 43, 226, 0.1); border: 1px solid rgba(138, 43, 226, 0.3); color: #b066ff; border-radius: 100px; font-size: 0.85rem; font-weight: 600; margin-bottom: 24px; text-transform: uppercase; }
.hero h1 { font-size: 5rem; line-height: 1.05; margin-bottom: 24px; letter-spacing: -2px; max-width: 1000px; }
.hero p { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 40px; max-width: 650px; }
.service-hero, .pillar-hero, .about-hero { padding: 80px 0 60px; border-bottom: 1px solid rgba(255,255,255,0.05); text-align: center; }
.service-hero h1, .pillar-hero h1, .about-hero h1 { font-size: 4rem; line-height: 1.1; margin-bottom: 24px; letter-spacing: -1.5px; }
.service-hero p, .pillar-hero p, .about-hero p { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 40px; max-width: 800px; margin-left: auto; margin-right: auto; }

/* SEO TOOL BAR */
.seo-tool-bar { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); padding: 10px; border-radius: 100px; display: flex; align-items: center; max-width: 600px; margin: 0 auto; }
.seo-tool-bar input { flex: 1; background: transparent; border: none; color: #fff; padding: 15px 25px; font-family: var(--font-body); font-size: 1rem; outline: none; }
.seo-tool-bar button { background: var(--neon-green); color: #000; border: none; padding: 15px 30px; border-radius: 100px; font-family: var(--font-heading); font-weight: 700; cursor: pointer; transition: all 0.3s; }

/* INFINITE MARQUEE TECH STACK */
.tech-stack { padding: 40px 0; background: rgba(0,0,0,0.3); border-bottom: 1px solid rgba(255,255,255,0.05); overflow: hidden; white-space: nowrap; position: relative; width: 100%; }
.tech-stack p { text-align: center; color: var(--text-muted); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 20px; }
.tech-logos-wrapper { display: inline-block; animation: marquee 20s linear infinite; }
.tech-logos-wrapper:hover { animation-play-state: paused; }
.tech-badge { background: rgba(255,255,255,0.03); padding: 12px 24px; border-radius: 12px; font-family: var(--font-heading); font-size: 1rem; color: #ccc; border: 1px solid rgba(255,255,255,0.08); display: inline-flex; align-items: center; gap: 10px; margin: 0 15px; vertical-align: middle; }
.tech-badge i { font-size: 1.2rem; color: var(--neon-green); }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* BENTO GRID (HOME) */
.bento-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, minmax(280px, auto)); gap: 24px; }
.bento-item { background: var(--bg-surface); border: 1px solid rgba(255,255,255,0.05); border-radius: 24px; padding: 35px; position: relative; overflow: hidden; transition: all 0.3s; display: flex; flex-direction: column; }
.bento-item:hover { transform: translateY(-5px); border-color: rgba(57, 255, 20, 0.3); }
.bento-large { grid-column: span 2; grid-row: span 2; background: linear-gradient(145deg, rgba(26,26,26,0.8), rgba(10,10,10,0.9)); border: 1px solid rgba(138, 43, 226, 0.3); }
.bento-wide { grid-column: span 2; }
.bento-icon { font-size: 28px; color: var(--neon-green); margin-bottom: 20px; display: inline-block; padding: 12px; background: rgba(57, 255, 20, 0.1); border-radius: 16px; align-self: flex-start; }
.bento-large .bento-icon { color: #b066ff; background: rgba(138, 43, 226, 0.1); }
.bento-item h3 { font-size: 1.5rem; margin-bottom: 12px; line-height: 1.2; }
.bento-large h3 { font-size: 2.2rem; }
.bento-item p { color: var(--text-muted); font-size: 1rem; flex-grow: 1; }

/* DIRECTORY GRID (PILLAR) */
.directory-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; margin-top: 60px; }
.directory-card { background: var(--bg-surface); border: 1px solid rgba(255,255,255,0.05); padding: 50px; border-radius: 24px; transition: all 0.3s; display: flex; flex-direction: column; height: 100%; position: relative; overflow: hidden; }
.directory-card:hover { transform: translateY(-5px); border-color: rgba(57, 255, 20, 0.3); box-shadow: 0 20px 40px rgba(0,0,0,0.4); }
.dir-icon { font-size: 2.5rem; color: var(--neon-green); margin-bottom: 24px; }
.directory-card h3 { font-size: 2rem; margin-bottom: 15px; }
.directory-card p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 30px; flex-grow: 1; }
.dir-link { color: #fff; text-decoration: none; font-family: var(--font-heading); font-weight: 700; display: inline-flex; align-items: center; gap: 10px; transition: color 0.3s; }
.directory-card:hover .dir-link { color: var(--neon-green); }

/* PROBLEM / SOLUTION (SERVICE) */
.problem-solution { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.problem-box { background: rgba(255, 50, 50, 0.05); border: 1px solid rgba(255, 50, 50, 0.2); padding: 50px; border-radius: 24px; }
.solution-box { background: rgba(57, 255, 20, 0.05); border: 1px solid rgba(57, 255, 20, 0.2); padding: 50px; border-radius: 24px; }
.ps-icon { font-size: 2rem; margin-bottom: 20px; }
.problem-box .ps-icon { color: #ff4444; }
.solution-box .ps-icon { color: var(--neon-green); }
.ps-list { list-style: none; margin-top: 20px; padding: 0; }
.ps-list li { margin-bottom: 15px; display: flex; align-items: flex-start; gap: 10px; color: var(--text-muted); }
.problem-box .ps-list i { color: #ff4444; margin-top: 5px; }
.solution-box .ps-list i { color: var(--neon-green); margin-top: 5px; }

/* DELIVERABLES GRID (SERVICE) */
.deliverables-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 50px; }
.deliverable-card { background: var(--bg-surface); border: 1px solid rgba(255,255,255,0.05); padding: 40px 30px; border-radius: 16px; transition: transform 0.3s; }
.deliverable-card:hover { transform: translateY(-5px); border-color: rgba(57, 255, 20, 0.3); }
.d-icon { width: 60px; height: 60px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--neon-green); margin-bottom: 20px; }
.deliverable-card h3 { font-size: 1.3rem; margin-bottom: 15px; }
.deliverable-card p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }

/* PROCESS GRID */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 50px; }
.process-step { background: var(--bg-surface); padding: 40px 30px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.05); text-align: center; }
.step-number { width: 50px; height: 50px; background: rgba(57, 255, 20, 0.1); color: var(--neon-green); border: 1px solid var(--neon-green); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; margin: 0 auto 20px; }

/* FOUNDER SECTION (CENTERED, NO IMAGE) */
.founder-section { max-width: 900px; margin: 0 auto; text-align: center; }
.founder-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.stat-box { background: rgba(255,255,255,0.03); padding: 20px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.05); }
.stat-box h4 { color: var(--neon-green); font-size: 1.5rem; margin-bottom: 5px; }

/* VALUES GRID (ABOUT) */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 50px; }
.value-card { background: var(--bg-surface); border: 1px solid rgba(255,255,255,0.05); padding: 40px 30px; border-radius: 16px; text-align: center; }
.value-icon { font-size: 2.5rem; color: var(--neon-green); margin-bottom: 20px; }

/* CONTACT GRID & FORM */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: flex-start; }
.contact-info h1 { font-size: 4rem; line-height: 1.1; margin-bottom: 24px; letter-spacing: -1.5px; }
.info-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); padding: 30px; border-radius: 16px; margin-bottom: 20px; display: flex; align-items: center; gap: 20px; }
.info-icon { width: 50px; height: 50px; background: rgba(57, 255, 20, 0.1); color: var(--neon-green); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.contact-form-wrapper { background: var(--bg-surface); border: 1px solid rgba(57, 255, 20, 0.3); padding: 50px; border-radius: 24px; box-shadow: 0 20px 40px rgba(0,0,0,0.4); }
.form-group { margin-bottom: 24px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; color: #ccc; font-size: 0.95rem; }
.form-control { width: 100%; background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.1); color: #fff; padding: 15px 20px; border-radius: 12px; font-family: var(--font-body); font-size: 1rem; outline: none; transition: border-color 0.3s; box-sizing: border-box; }
.form-control:focus { border-color: var(--neon-green); }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23FFFFFF%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E"); background-repeat: no-repeat; background-position: right 20px top 50%; background-size: 12px auto; }

/* CASE STUDY */
.case-study-card { background: linear-gradient(145deg, rgba(26,26,26,0.8), rgba(10,10,10,0.9)); border: 1px solid rgba(57, 255, 20, 0.3); border-radius: 24px; padding: 60px; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.case-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; }
.metric { background: rgba(57, 255, 20, 0.05); padding: 20px; border-radius: 12px; border-left: 4px solid var(--neon-green); }

/* FAQ */
.faq-container { max-width: 800px; margin: 50px auto 0; }
.faq-item { border-bottom: 1px solid rgba(255,255,255,0.1); padding: 24px 0; }
.faq-question { display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; color: #fff; }
.faq-answer { margin-top: 15px; color: var(--text-muted); display: none; line-height: 1.7; }
.faq-item.active .faq-answer { display: block; }

/* CTA BANNER */
.cta-banner { background: linear-gradient(145deg, rgba(26,26,26,0.9), rgba(5,5,5,1)); border: 1px solid rgba(57, 255, 20, 0.3); border-radius: 24px; padding: 80px 40px; text-align: center; margin: 100px 0; }

/* FOOTER */
footer { background: #020202; padding: 80px 0 40px; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 16px; }
.footer-col ul li a { color: var(--text-muted); text-decoration: none; transition: color 0.3s; }
.footer-col ul li a:hover { color: var(--neon-green); }

/* MODAL POPUP */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 1000; align-items: center; justify-content: center; backdrop-filter: blur(5px); }
.modal-content { background: var(--bg-main); border: 1px solid var(--neon-green); padding: 40px; border-radius: 20px; max-width: 500px; width: 90%; position: relative; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.close-modal { position: absolute; top: 15px; right: 20px; font-size: 28px; cursor: pointer; color: #fff; transition: color 0.3s; }
.close-modal:hover { color: var(--neon-green); }

/* RESPONSIVE FIXES */
@media (max-width: 1024px) {
    .bento-grid, .process-grid, .footer-grid, .deliverables-grid, .values-grid { grid-template-columns: repeat(2, 1fr); }
    .directory-grid, .problem-solution, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .founder-stats { grid-template-columns: repeat(2, 1fr); }
    .hero h1, .service-hero h1, .pillar-hero h1, .about-hero h1 { font-size: 3.5rem; }
}
@media (max-width: 768px) {
    .bento-grid, .process-grid, .footer-grid, .deliverables-grid, .values-grid { grid-template-columns: 1fr !important; gap: 30px !important; }
    .bento-large, .bento-wide { grid-column: span 1 !important; grid-row: span 1 !important; }
    .nav-links { display: none; }
    .hero h1, .service-hero h1, .pillar-hero h1, .about-hero h1 { font-size: 2.2rem !important; line-height: 1.2 !important; }
    .section { padding: 60px 15px !important; }
    .container { padding: 0 15px !important; }
    .hero { min-height: 60vh; padding-top: 40px; }
    .seo-tool-bar { flex-direction: column; border-radius: 15px; padding: 15px; }
    .seo-tool-bar input { width: 100%; margin-bottom: 10px; text-align: center; border-radius: 10px; }
    .seo-tool-bar button { width: 100%; border-radius: 10px; }
    .contact-info h1 { font-size: 2.2rem !important; }
    .btn { width: 100%; text-align: center; padding: 15px 20px; white-space: normal; height: auto; }
    .case-study-card { grid-template-columns: 1fr; padding: 30px 20px; display: flex; flex-direction: column; }
    .case-metrics { grid-template-columns: 1fr; width: 100%; }
    .contact-form-wrapper { padding: 30px 20px; }
    .founder-stats { grid-template-columns: 1fr; }
}

/* BLOG GRID (HOME.PHP) */
.blog-header { text-align: center; padding: 80px 0 40px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 50px; }
.blog-card { background: var(--bg-surface); border: 1px solid rgba(255,255,255,0.05); border-radius: 24px; overflow: hidden; transition: all 0.3s; display: flex; flex-direction: column; }
.blog-card:hover { transform: translateY(-5px); border-color: rgba(57, 255, 20, 0.3); box-shadow: 0 20px 40px rgba(0,0,0,0.4); }
.blog-image { height: 240px; background: #111; background-size: cover; background-position: center; border-bottom: 1px solid rgba(255,255,255,0.05); }
.blog-content { padding: 30px; flex-grow: 1; display: flex; flex-direction: column; }
.blog-meta { font-size: 0.85rem; color: var(--neon-green); margin-bottom: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.blog-title { font-size: 1.5rem; margin-bottom: 15px; line-height: 1.3; }
.blog-title a { color: #fff; text-decoration: none; transition: color 0.3s; }
.blog-title a:hover { color: var(--neon-green); }
.blog-excerpt { color: var(--text-muted); font-size: 1rem; margin-bottom: 20px; flex-grow: 1; }
.read-more { color: #fff; text-decoration: none; font-family: var(--font-heading); font-weight: 700; display: inline-flex; align-items: center; gap: 8px; transition: color 0.3s; }
.read-more:hover { color: var(--neon-green); }

/* SINGLE POST (SINGLE.PHP) */
.single-header { padding: 80px 0 40px; text-align: center; max-width: 900px; margin: 0 auto; }
.single-meta { color: var(--neon-green); font-weight: 600; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; }
.single-title { font-size: 3.5rem; line-height: 1.1; margin-bottom: 30px; letter-spacing: -1px; }
.single-featured-image { max-width: 1000px; margin: 0 auto 50px; border-radius: 24px; overflow: hidden; border: 1px solid rgba(255,255,255,0.05); }
.single-featured-image img { width: 100%; height: auto; display: block; }
.single-content { max-width: 800px; margin: 0 auto; font-size: 1.15rem; line-height: 1.8; color: #e5e7eb; }
.single-content h2 { font-size: 2.2rem; margin: 50px 0 20px; color: #fff; }
.single-content h3 { font-size: 1.6rem; margin: 40px 0 15px; color: #fff; }
.single-content p { margin-bottom: 25px; }
.single-content ul, .single-content ol { margin-bottom: 25px; padding-left: 20px; }
.single-content li { margin-bottom: 10px; }
.single-content a { color: var(--neon-green); text-decoration: none; border-bottom: 1px solid rgba(57, 255, 20, 0.3); transition: all 0.3s; }
.single-content a:hover { border-bottom-color: var(--neon-green); }
.single-content blockquote { border-left: 4px solid var(--neon-green); padding-left: 20px; margin: 30px 0; font-style: italic; color: #fff; font-size: 1.3rem; }

/* PAGINATION */
.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 50px; }
.pagination .page-numbers { padding: 10px 20px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; color: #fff; text-decoration: none; transition: all 0.3s; }
.pagination .page-numbers:hover, .pagination .page-numbers.current { background: var(--neon-green); color: #000; border-color: var(--neon-green); }

@media (max-width: 1024px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .single-title { font-size: 2.5rem; }
}
@media (max-width: 768px) {
    .blog-grid { grid-template-columns: 1fr; }
    .single-title { font-size: 2rem; }
    .single-content { font-size: 1.05rem; }
}

/* SOCIAL ICONS */
.social-icons { display: flex; gap: 15px; margin-top: 20px; }
.social-icons a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.05); color: #fff; text-decoration: none; transition: all 0.3s; border: 1px solid rgba(255,255,255,0.1); }
.social-icons a:hover { background: var(--neon-green); color: #000; border-color: var(--neon-green); transform: translateY(-3px); box-shadow: 0 5px 15px rgba(57, 255, 20, 0.3); }

/* --- FINAL FIXES & REDESIGN --- */
/* Mobile Menu & Header */
.mobile-header-actions { display: none; align-items: center; gap: 15px; }
.mobile-phone-btn { color: #fff; font-size: 1.2rem; text-decoration: none; background: rgba(57, 255, 20, 0.1); width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--neon-green); transition: all 0.3s; }
.mobile-phone-btn:hover { background: var(--neon-green); color: #000; }
.mobile-menu-toggle { display: none; background: transparent; border: none; color: #fff; font-size: 1.8rem; cursor: pointer; }
.mobile-categories { display: none; }

@media (max-width: 768px) {
    .mobile-header-actions { display: flex; }
    .mobile-menu-toggle { display: block; }
    .nav-links { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: rgba(5, 5, 5, 0.98); backdrop-filter: blur(10px); padding: 20px; border-bottom: 1px solid rgba(255,255,255,0.1); flex-direction: column; }
    .nav-links.active { display: flex !important; }
    .nav-links ul { flex-direction: column !important; width: 100%; }
    .nav-links a { margin: 15px 0 !important; text-align: center; font-size: 1.2rem !important; }
    .header-btn { display: none !important; }
    
    .mobile-categories { display: block !important; margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); text-align: center; }
    .mobile-categories h4 { color: var(--neon-green); margin-bottom: 10px; font-size: 1rem; text-transform: uppercase; letter-spacing: 1px; }
    .mobile-categories a { font-size: 1.2rem !important; margin: 10px 0 !important; color: var(--text-muted) !important; display: block; text-decoration: none; }
    
    /* Case Study Fix */
    .case-study-card h2 { font-size: 2rem !important; word-break: break-word; line-height: 1.2; }
    
    /* Button Fix */
    .btn { width: auto !important; display: inline-flex; margin: 0 auto; }
    .contact-form-wrapper .btn, .seo-tool-bar button, .modal-content .btn { width: 100% !important; }
}

/* Blog Image Fix */
.blog-image { aspect-ratio: 1200 / 630; height: auto; background-size: cover; background-position: center; }

/* Breadcrumbs */
.custom-breadcrumbs { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; padding: 12px 20px; margin-bottom: 30px; display: flex; align-items: center; gap: 10px; font-family: var(--font-body); font-size: 0.95rem; color: #e5e7eb; flex-wrap: wrap; width: fit-content; }
.custom-breadcrumbs a { color: var(--neon-green); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.custom-breadcrumbs a:hover { text-decoration: underline; }
.custom-breadcrumbs .separator { color: #9ca3af; font-size: 0.75rem; margin: 0 4px; }
.custom-breadcrumbs .current { color: #9ca3af; }

/* Blog Layout */
.blog-layout { display: grid; grid-template-columns: 1fr 350px; gap: 50px; align-items: start; }
.blog-grid-2col { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }

/* Sidebar Form */
.sticky-sidebar-form { position: sticky; top: 100px; background: var(--bg-surface); border: 1px solid rgba(255,255,255,0.05); padding: 30px; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.sticky-sidebar-form h3 { font-size: 1.5rem; margin-bottom: 20px; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 15px; }

/* Categories Menu */
.blog-categories-menu { display: flex; gap: 10px; overflow-x: auto; padding: 15px 0; border-top: 1px solid rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.05); margin-bottom: 30px; scrollbar-width: none; }
.blog-categories-menu::-webkit-scrollbar { display: none; }
.blog-categories-menu a { white-space: nowrap; padding: 8px 20px; border-radius: 100px; color: var(--text-muted); text-decoration: none; font-weight: 500; border: 1px solid transparent; transition: all 0.3s; }
.blog-categories-menu a:hover, .blog-categories-menu a.active { color: var(--neon-green); border-color: var(--neon-green); background: rgba(57, 255, 20, 0.05); }

/* Post Navigation */
.post-navigation { display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,0.1); border-bottom: 1px solid rgba(255,255,255,0.1); padding: 30px 0; margin: 50px 0; }
.nav-previous, .nav-next { max-width: 48%; }
.nav-next { text-align: right; }
.post-navigation a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; transition: color 0.3s; }
.post-navigation a span { display: block; color: #fff; font-size: 1.2rem; font-family: var(--font-heading); text-transform: none; letter-spacing: 0; margin-top: 10px; }
.post-navigation a:hover, .post-navigation a:hover span { color: var(--neon-green); }

/* Related Posts */
.related-posts h3 { font-size: 1.8rem; margin-bottom: 30px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-card { background: var(--bg-surface); border: 1px solid rgba(255,255,255,0.05); border-radius: 12px; overflow: hidden; transition: transform 0.3s; }
.related-card:hover { transform: translateY(-5px); border-color: rgba(57, 255, 20, 0.3); }
.related-img { height: 150px; background-size: cover; background-position: center; border-bottom: 1px solid rgba(255,255,255,0.05); }
.related-card h4 { padding: 15px; font-size: 1.1rem; line-height: 1.3; }
.related-card h4 a { color: #fff; text-decoration: none; transition: color 0.3s; }
.related-card h4 a:hover { color: var(--neon-green); }

@media (max-width: 1024px) {
    .blog-layout { grid-template-columns: 1fr; }
    .sticky-sidebar-form { position: static; margin-top: 40px; }
}
@media (max-width: 768px) {
    .blog-grid-2col { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: 1fr; }
    .post-navigation { flex-direction: column; gap: 20px; }
    .nav-previous, .nav-next { max-width: 100%; text-align: left; }
}

/* --- DESIGN TWEAKS --- */
.sticky-sidebar-form .form-control { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.15); }
.sticky-sidebar-form .form-control:focus { background: rgba(255,255,255,0.1); border-color: var(--neon-green); }
.single-title { font-size: 2.5rem !important; }
@media (max-width: 768px) { .single-title { font-size: 1.8rem !important; } }

/* --- STICKY SIDEBAR FIX --- */
.blog-layout { align-items: stretch !important; }
.blog-sidebar { height: 100%; }
.sticky-sidebar-form { position: sticky; top: 120px; }

@media (max-width: 768px) {
    .logo img { max-height: 45px !important; }
}

/* V18 STICKY & LOGO OVERRIDES */
html { overflow-x: visible !important; }
body { overflow-x: clip !important; }
.blog-layout { align-items: stretch !important; }
.blog-sidebar { height: 100% !important; }
.sticky-sidebar-form { position: -webkit-sticky !important; position: sticky !important; top: 120px !important; }
.logo img { max-height: 85px !important; width: auto; }
@media (max-width: 768px) {
    .logo img { max-height: 45px !important; }
}
