/*
Theme Name: AI Stack
Author: Team ThatWare
Description: Custom, high-performance theme with native Mega Menu and dynamic blog hierarchy.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
*/

:root {
  --primary-color: #0f172a;
  --accent-color: #2563eb;
  --text-color: #334155;
  --bg-light: #f8fafc;
  --white: #ffffff;
  --border-color: #e2e8f0;
  --container-width: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: system-ui, -apple-system, sans-serif; color: var(--text-color); line-height: 1.6; }
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 1.5rem; }


/*-- custom css--*/
/* ==========================================================================
   AIStack Theme: Hero Section & Mockup Dashboard
   ========================================================================== */

/* Hero Left Column */
.hero-badge {
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid rgba(14, 165, 233, 0.3);
    padding: 0.35rem 0.85rem;
    border-radius: 6px;
}

.badge-text {
    font-size: 0.68rem;
    font-weight: 700;
    color: #38bdf8;
    letter-spacing: 0.6px;
}

.hero-title {
    font-size: 2.85rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.highlight-text {
    color: #2dd4bf;
}

.hero-description {
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 580px;
}

/* 5 Feature Chips */
.hero-features-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
}

.feature-chip {
    background: #090f1e;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    padding: 0.65rem 0.4rem;
    text-align: center;
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 500;
}

.chip-icon {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: #818cf8;
}

/* Secondary Button */
.btn-outline-custom {
    background: #090f1e;
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.6rem 1.4rem;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-outline-custom:hover {
    background: #1e293b;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   Dashboard Glassmorphism Graphic
   ========================================================================== */

.dashboard-card {
    background: #050b17;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.85);
}

.metric-card, .stat-pill, .sub-panel {
    background: #090f1e;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.text-xs { font-size: 0.72rem; }
.text-muted-xs { font-size: 0.65rem; color: #64748b; }

.radial-ring {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    border: 4px solid #8b5cf6;
    border-top-color: #3b82f6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* File list status badges */
.status-badge {
    font-size: 0.72rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}
.status-badge.generated { color: #34d399; }
.status-badge.processing { color: #f59e0b; }
.status-badge.action { color: #ef4444; }

/* Radar Chart Positioning */
.radar-label {
    position: absolute;
    font-size: 0.65rem;
    color: #94a3b8;
    white-space: nowrap;
}
.top-label { top: 0; left: 50%; transform: translateX(-50%); }
.right-label { top: 30%; right: -25px; }
.btm-right-label { bottom: 5px; right: -15px; }
.btm-left-label { bottom: 5px; left: -15px; }
.left-label { top: 30%; left: -25px; }

/* Responsive adjustments */
@media (max-width: 991px) {
    .hero-title { font-size: 2.1rem; }
    .hero-features-grid { grid-template-columns: repeat(3, 1fr); }
    .radar-label { position: static; transform: none; display: inline-block; margin: 2px 4px; }
}

/* ==========================================================================
   AIStack Theme: 4-Column Metrics Bar
   ========================================================================== */

/* Outer Rounded Pill Container */
.metrics-pill-container {
    background: radial-gradient(100% 150% at 50% 0%, #080f24 0%, #030713 100%);
    border: 1px solid rgba(139, 92, 246, 0.22);
    border-radius: 20px;
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.8),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Vertical Column Divider */
@media (min-width: 1200px) {
    .border-end-metric {
        border-right: 1px solid rgba(255, 255, 255, 0.08);
        padding-right: 2rem;
    }
}

/* Icon Wrap with Hexagonal Geometric Background */
.metric-icon-wrap {
    width: 64px;
    height: 64px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ambient Radial Glow behind the icon */
.hexagon-glow {
    position: absolute;
    width: 68px;
    height: 68px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.16) 0%, rgba(56, 189, 248, 0.08) 50%, transparent 75%);
    border-radius: 50%;
    z-index: 0;
}

/* Hexagon wireframe outline around the SVG */
.metric-icon-wrap::before {
    content: "";
    position: absolute;
    width: 58px;
    height: 58px;
    border: 1px solid rgba(168, 85, 247, 0.2);
    clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
    background: rgba(8, 14, 30, 0.5);
    z-index: 1;
}

.metric-svg {
    width: 44px;
    height: 44px;
    position: relative;
    z-index: 2;
}

/* Metric Content Typography */
.metric-num {
    font-size: 1.85rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.35rem;
}

.text-purple {
    color: #c084fc;
}

.metric-title {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.metric-desc {
    font-size: 0.74rem;
    color: #94a3b8;
    line-height: 1.45;
}

/* Small screen spacing */
@media (max-width: 1199px) {
    .metric-item-col {
        padding: 0.75rem 0.5rem;
    }
}

/* ==========================================================================
   AIStack Theme: Machine-Readable Web Capsule Strip
   ========================================================================== */

.machine-web-section {
    position: relative;
    background-color: transparent;
}

/* Outer Capsule Frame */
.machine-web-capsule {
    background-color: #020617;
    border: 1px solid rgba(139, 92, 246, 0.35);
    border-radius: 12px;
    padding: 1.6rem 1rem 1.4rem 1rem;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.8),
                inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* Heading Badge Resting Center on Border */
.capsule-title-badge {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    background: #020617;
    padding: 0 1.2rem;
    font-size: 0.86rem;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    letter-spacing: -0.01em;
    z-index: 2;
}

/* Items and Dividers */
.machine-item {
    padding: 0.4rem 0.5rem;
}

.machine-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #e2e8f0;
    white-space: nowrap;
}

.machine-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.machine-icon-wrap svg {
    filter: drop-shadow(0 0 6px rgba(192, 132, 252, 0.35));
}

.machine-item:hover .machine-icon-wrap {
    transform: translateY(-1px) scale(1.08);
}

.machine-item:hover .machine-label {
    color: #ffffff;
}

/* Vertical hairline dividers between columns on desktop */
@media (min-width: 1200px) {
    .border-end-line {
        border-right: 1px solid rgba(255, 255, 255, 0.08);
    }
}

/* Responsive collapse on smaller viewports */
@media (max-width: 1199px) {
    .machine-item {
        padding: 0.75rem 0.25rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    }
    .capsule-title-badge {
        font-size: 0.78rem;
    }
}

/* ==========================================================================
   AIStack Theme: The ThatWare AI Product Suite (6-Card Grid)
   ========================================================================== */

.product-suite-section {
    background-color: transparent;
}

.suite-pretitle {
    font-size: 0.76rem;
    color: #94a3b8;
    letter-spacing: 0.8px;
}

.suite-heading {
    font-size: 2.15rem;
    letter-spacing: -0.02em;
}

.highlight-cyan {
    color: #22d3ee;
}

/* Card Base Structure */
.suite-card {
    background-color: #030713;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border-width: 1px;
    border-style: solid;
}

.suite-card:hover {
    transform: translateY(-3px);
}

.suite-icon-box {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.suite-card-title {
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.25;
}

.suite-card-desc {
    font-size: 0.82rem;
    color: #94a3b8;
    line-height: 1.55;
    margin-top: 0.5rem;
}

/* Action Buttons Base */
.suite-btn {
    width: 100%;
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border-width: 1px;
    border-style: solid;
}

.suite-btn .btn-arrow {
    transition: transform 0.2s ease;
}

.suite-btn:hover .btn-arrow {
    transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   Individual Color Accents & Borders
   -------------------------------------------------------------------------- */

/* 1. Purple Card */
.suite-card-purple {
    border-color: rgba(168, 85, 247, 0.35);
    background: radial-gradient(120% 80% at 0% 0%, rgba(168, 85, 247, 0.08) 0%, #030713 100%);
}
.suite-card-purple:hover {
    box-shadow: 0 12px 30px -10px rgba(168, 85, 247, 0.25);
    border-color: rgba(168, 85, 247, 0.6);
}
.suite-btn-purple {
    background: #3b0764;
    border-color: rgba(168, 85, 247, 0.4);
    color: #f3e8ff;
}
.suite-btn-purple:hover {
    background: #581c87;
    color: #ffffff;
}

/* 2. Cyan Card */
.suite-card-cyan {
    border-color: rgba(34, 211, 238, 0.35);
    background: radial-gradient(120% 80% at 0% 0%, rgba(34, 211, 238, 0.08) 0%, #030713 100%);
}
.suite-card-cyan:hover {
    box-shadow: 0 12px 30px -10px rgba(34, 211, 238, 0.25);
    border-color: rgba(34, 211, 238, 0.6);
}
.suite-btn-cyan {
    background: #083344;
    border-color: rgba(34, 211, 238, 0.4);
    color: #cffafe;
}
.suite-btn-cyan:hover {
    background: #155e75;
    color: #ffffff;
}

/* 3. Blue Card */
.suite-card-blue {
    border-color: rgba(56, 189, 248, 0.35);
    background: radial-gradient(120% 80% at 0% 0%, rgba(56, 189, 248, 0.08) 0%, #030713 100%);
}
.suite-card-blue:hover {
    box-shadow: 0 12px 30px -10px rgba(56, 189, 248, 0.25);
    border-color: rgba(56, 189, 248, 0.6);
}
.suite-btn-blue {
    background: #0c4a6e;
    border-color: rgba(56, 189, 248, 0.4);
    color: #e0f2fe;
}
.suite-btn-blue:hover {
    background: #0369a1;
    color: #ffffff;
}

/* 4. Violet Card */
.suite-card-violet {
    border-color: rgba(147, 51, 234, 0.35);
    background: radial-gradient(120% 80% at 0% 0%, rgba(147, 51, 234, 0.08) 0%, #030713 100%);
}
.suite-card-violet:hover {
    box-shadow: 0 12px 30px -10px rgba(147, 51, 234, 0.25);
    border-color: rgba(147, 51, 234, 0.6);
}
.suite-btn-violet {
    background: #2e1065;
    border-color: rgba(147, 51, 234, 0.4);
    color: #f3e8ff;
}
.suite-btn-violet:hover {
    background: #4c1d95;
    color: #ffffff;
}

/* 5. Amber/Gold Card */
.suite-card-amber {
    border-color: rgba(245, 158, 11, 0.35);
    background: radial-gradient(120% 80% at 0% 0%, rgba(245, 158, 11, 0.08) 0%, #030713 100%);
}
.suite-card-amber:hover {
    box-shadow: 0 12px 30px -10px rgba(245, 158, 11, 0.25);
    border-color: rgba(245, 158, 11, 0.6);
}
.suite-btn-amber {
    background: #451a03;
    border-color: rgba(245, 158, 11, 0.4);
    color: #fef3c7;
}
.suite-btn-amber:hover {
    background: #78350f;
    color: #ffffff;
}

/* 6. Teal Card */
.suite-card-teal {
    border-color: rgba(20, 184, 166, 0.35);
    background: radial-gradient(120% 80% at 0% 0%, rgba(20, 184, 166, 0.08) 0%, #030713 100%);
}
.suite-card-teal:hover {
    box-shadow: 0 12px 30px -10px rgba(20, 184, 166, 0.25);
    border-color: rgba(20, 184, 166, 0.6);
}
.suite-btn-teal {
    background: #042f2e;
    border-color: rgba(20, 184, 166, 0.4);
    color: #ccfbf1;
}
.suite-btn-teal:hover {
    background: #115e59;
    color: #ffffff;
}

/* ==========================================================================
   AIStack Theme: Analytics & Data Dashboard (5-Card Grid)
   ========================================================================== */

.analytics-main-title {
    font-size: 1.65rem;
    letter-spacing: -0.01em;
}

/* Panel Containers */
.analytics-panel {
    background-color: #040919;
    border: 1px solid #14203d;
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.85);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.analytics-panel:hover {
    border-color: #223561;
}

.panel-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.25;
}

.panel-subtitle {
    font-size: 0.68rem;
    color: #64748b;
    display: block;
    margin-top: 2px;
}

/* Dots and Legends */
.legend-dot {
    width: 6.5px;
    height: 6.5px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.legend-label {
    font-size: 0.64rem;
    color: #94a3b8;
    white-space: nowrap;
}

/* Bar Rows */
.metric-bar-row {
    font-size: 0.72rem;
}

.bar-name {
    color: #cbd5e1;
}

.bar-val {
    color: #ffffff;
    font-weight: 600;
}

.custom-progress-track {
    height: 6px;
    background-color: #101b33;
    border-radius: 3px;
    overflow: hidden;
}

.custom-progress-track-sm {
    height: 4px;
    background-color: #101b33;
    border-radius: 2px;
    overflow: hidden;
}

/* Progress Fill Gradients */
.bar-cyan {
    background: linear-gradient(90deg, #0284c7 0%, #38bdf8 100%);
}

.bar-cyan-purple {
    background: linear-gradient(90deg, #38bdf8 0%, #a855f7 100%);
}

.bar-purple {
    background: linear-gradient(90deg, #6366f1 0%, #a855f7 100%);
}

.bar-coral {
    background: linear-gradient(90deg, #f43f5e 0%, #fb7185 100%);
}

.border-top-panel {
    border-top: 1px solid #14203d;
}

.scale-text {
    font-size: 0.65rem;
}

/* Center Text on Donut Charts */
.donut-center-stat {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.text-micro {
    font-size: 0.58rem;
    line-height: 1;
}

/* Citation & Status Items */
.citation-item {
    font-size: 0.7rem;
}

.citation-label {
    color: #94a3b8;
}

.citation-val {
    color: #ffffff;
    font-weight: 600;
}

/* ==========================================================================
   AIStack Theme: Why Teams & Process Architecture
   ========================================================================== */

/* Outer Capsules */
.why-teams-capsule,
.workflow-box {
    background-color: #030713;
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 14px;
    padding: 1.8rem 1.2rem 1.4rem 1.2rem;
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.85);
}

/* Part 1 Feature Pillars */
.feature-col {
    padding: 0.75rem 1rem;
}

.feature-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-item-title {
    font-size: 0.86rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.2;
}

.feature-item-desc {
    font-size: 0.74rem;
    color: #94a3b8;
    line-height: 1.45;
}

/* Vertical column dividers */
@media (min-width: 1200px) {
    .border-end-dash {
        border-right: 1px solid rgba(255, 255, 255, 0.08);
    }
}

/* ==========================================================================
   Part 2: Process Flow (6 Steps)
   ========================================================================== */
.process-steps-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.6rem;
}

/* Step Circle Bubble */
.step-num-bubble {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: radial-gradient(circle, #3b0764 0%, #1e1035 100%);
    border: 1.5px solid #a855f7;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
}

/* Connecting dotted arrow lines between steps */
.step-cell:not(:last-child)::after {
    content: "····>";
    position: absolute;
    top: 7px;
    right: -14px;
    color: #64748b;
    font-size: 0.75rem;
    letter-spacing: 2px;
    opacity: 0.6;
}

.step-heading {
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.35rem;
}

.step-text {
    font-size: 0.66rem;
    color: #94a3b8;
    line-height: 1.35;
    margin-bottom: 0;
}

/* Responsive adjustment for steps */
@media (max-width: 991px) {
    .process-steps-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem 0.5rem;
    }
    .step-cell::after {
        display: none;
    }
}

@media (max-width: 575px) {
    .process-steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   Part 2: Future Checklist & Glowing Brain
   ========================================================================== */
.check-icon-pill {
    color: #22d3ee;
    font-size: 0.8rem;
    line-height: 1.4;
    flex-shrink: 0;
}

.future-text {
    font-size: 0.78rem;
    color: #cbd5e1;
    line-height: 1.45;
}

.neural-brain-container {
    filter: drop-shadow(0 0 15px rgba(56, 189, 248, 0.25));
}

.neural-brain-svg {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   AIStack Theme: Bottom CTA Banner Strip
   ========================================================================== */

.cta-banner-capsule {
    background: #020617;
    border: 1px solid rgba(139, 92, 246, 0.35);
    border-radius: 16px;
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.85);
}

.cta-shield-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 12px rgba(192, 132, 252, 0.4));
}

.cta-headline {
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.cta-subtext {
    font-size: 0.78rem;
    color: #94a3b8;
    line-height: 1.5;
}

/* Secondary Translucent Button */
.btn-explore-plans {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.35rem;
    font-size: 0.92rem;
    font-weight: 500;
    color: #e2e8f0 !important;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.btn-explore-plans:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-explore-plans .btn-arrow {
    transition: transform 0.2s ease;
}

.btn-explore-plans:hover .btn-arrow {
    transform: translateX(3px);
}

@media (max-width: 991px) {
    .cta-headline {
        font-size: 1rem;
    }
}

/* ==========================================================================
   AIStack Theme: Footer Section
   ========================================================================== */

.site-footer {
    background-color: #01040d;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-brand-title {
    letter-spacing: -0.4px;
}

.footer-tagline {
    font-size: 0.84rem;
    line-height: 1.55;
    max-width: 270px;
    color: #94a3b8 !important;
}

/* Social Media Circular Buttons */
.social-circle-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-circle-btn:hover {
    background-color: #38bdf8;
    border-color: #38bdf8;
    color: #020617;
    transform: translateY(-2px);
}

/* Footer Link Columns */
.footer-heading {
    font-size: 0.95rem;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.footer-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.footer-list a {
    font-size: 0.84rem;
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.15s ease, transform 0.15s ease;
    display: inline-block;
}

.footer-list a:hover {
    color: #38bdf8;
    transform: translateX(2px);
}

/* Bottom Hairline Divider & Copyright */
.border-top-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.copyright-text {
    font-size: 0.78rem;
    color: #64748b;
}

@media (max-width: 767px) {
    .footer-col {
        margin-bottom: 1.5rem;
    }
}

/* .navbar-brand img {
    max-width: 100%;
    width: 40%;
    height: auto;
} */

.footer-brand img {
    max-width: 100%;
    width: 70%;
    height: auto;
}

/* ==========================================================================
   Header Logo & Desktop Nav Layout
   ========================================================================== */
/* ==========================================================================
   Sticky Navbar on Scroll
   ========================================================================== */
.aistack-navbar-wrapper.sticky-top {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1040;
    background-color: rgba(2, 6, 23, 0.92) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

/* Ensure the desktop mega menu sits directly beneath the sticky navbar */
@media (min-width: 1200px) {
    .dropdown-mega .aistack-megamenu {
        top: 100% !important;
        z-index: 1050;
    }
}

/* Ensure the mobile offcanvas drawer overlays the sticky navbar */
.offcanvas-dark {
    z-index: 1060 !important;
}

.header-logo {
    height: 38px;
    width: auto;
    max-width: 190px;
    object-fit: contain;
    display: block;
}

@media (max-width: 991px) {
    .header-logo {
        height: 30px;
        max-width: 150px;
    }
}

.navbar-nav .nav-link {
    font-size: 0.95rem;
    font-weight: 400;
    color: #f1f5f9 !important;
    padding: 0.5rem 0.75rem !important;
    transition: color 0.2s ease;
}

.navbar-nav .nav-link:hover {
    color: #38bdf8 !important;
}

.btn-analyze {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.35rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #ffffff !important;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #7c3aed 0%, #2563eb 50%, #06b6d4 100%);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-analyze:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.45);
}

.navbar-toggler-custom {
    cursor: pointer;
    line-height: 1;
}

/* ==========================================================================
   Smooth Sliding Right Sidebar (Offcanvas)
   ========================================================================== */
.offcanvas-dark {
    background: #020617 !important;
    border-left: 1px solid rgba(139, 92, 246, 0.3) !important;
    box-shadow: -15px 0 35px rgba(0, 0, 0, 0.85);
    width: 320px !important;
    max-width: 85vw !important;
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.offcanvas-dark .nav-link {
    font-size: 0.95rem;
    color: #e2e8f0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.offcanvas-dark .nav-link:hover {
    color: #38bdf8;
    padding-left: 4px;
}

/* Mobile Sidebar Mega Menu Accordion */
.mobile-collapse-btn .mobile-chevron {
    font-size: 1.4rem;
    line-height: 1;
    transition: transform 0.25s ease;
    display: inline-block;
    color: #94a3b8;
}

.mobile-collapse-btn[aria-expanded="true"] .mobile-chevron {
    transform: rotate(90deg);
    color: #38bdf8;
}

.mobile-megamenu-panel {
    background: rgba(15, 23, 42, 0.45);
    border-left: 2px solid #38bdf8;
    border-radius: 0 8px 8px 0;
    margin: 0.35rem 0 0.5rem 0.25rem;
}

.mobile-mega-category {
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #38bdf8;
    display: block;
}

.mobile-sub-link {
    font-size: 0.84rem;
    color: #94a3b8;
    text-decoration: none;
    display: block;
    padding: 0.25rem 0;
    transition: color 0.15s ease, transform 0.15s ease;
}

.mobile-sub-link:hover {
    color: #ffffff;
    transform: translateX(3px);
}

/* ==========================================================================
   Desktop Mega Menu Hover Engine & Full-Width Layout (>= 1200px)
   ========================================================================== */
@media (min-width: 1200px) {
    /* Ensure the parent nav wrapper is the positioning anchor */
    .aistack-navbar-wrapper {
        position: relative;
    }

    /* Fixed full-width positioning under the header */
    .dropdown-mega .aistack-megamenu {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        margin: 0 !important;
        padding: 2.5rem 0 !important;
        background: #030713 !important;
        border-top: 1px solid rgba(139, 92, 246, 0.35) !important;
        border-bottom: 1px solid rgba(139, 92, 246, 0.25) !important;
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.9) !important;
        
        /* Smooth display on hover */
        display: block !important;
        visibility: hidden !important;
        opacity: 0 !important;
        transform: translateY(10px) !important;
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease !important;
        pointer-events: none;
        z-index: 1050;
    }

    /* Invisible hover bridge between the navbar link and dropdown menu */
    .dropdown-mega::after {
        content: "";
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: 20px;
        display: none;
    }

    /* Hover triggers */
    .dropdown-mega:hover::after {
        display: block;
    }

    .dropdown-mega:hover .aistack-megamenu,
    .dropdown-mega .aistack-megamenu:hover {
        visibility: visible !important;
        opacity: 1 !important;
        transform: translateY(0) !important;
        pointer-events: auto !important;
    }

    /* Mega columns structure */
    .mega-columns-wrapper {
        max-width: var(--max-content-width, 1260px);
        margin: 0 auto;
    }

    .mega-heading {
        font-size: 0.78rem;
        font-weight: 700;
        text-transform: uppercase;
        color: #38bdf8;
        letter-spacing: 0.6px;
        margin-bottom: 0.85rem;
    }

    .mega-list {
        display: flex;
        flex-direction: column;
        gap: 0.45rem;
    }

    .mega-link {
        color: #94a3b8;
        text-decoration: none;
        font-size: 0.84rem;
        transition: color 0.15s ease, transform 0.15s ease;
        display: inline-block;
    }

    .mega-link:hover {
        color: #ffffff;
        transform: translateX(3px);
    }
}

/* ==========================================================================
   Viewport Containment & Horizontal Scroll Prevention (< 1200px)
   ========================================================================== */
/* html, 
body {
    max-width: 100%;
    overflow-x: hidden !important;
} */

html, 
body {
    max-width: 100%;
    overflow-x: clip !important; /* clip does NOT break position: sticky unlike hidden */
}

/* 2. Position sticky on header */
header.aistack-navbar-wrapper {
    position: sticky !important;
    top: 0 !important;
    left: 0;
    width: 100%;
    z-index: 1040 !important;
    background-color: rgba(2, 6, 23, 0.95) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 1199.98px) {
    .step-cell::after {
        display: none !important;
        content: none !important;
    }

    .process-steps-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1.5rem 0.75rem !important;
    }
}

@media (max-width: 575.98px) {
    .process-steps-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}


/* ==========================================================================
   AIStack Theme: Masonry Blog, Archive & Single Post Suite
   ========================================================================== */

/* --- Category & Meta Taglines --- */
.badge-tagline {
    font-size: 0.72rem;
    font-weight: 700;
    color: #38bdf8;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.3);
    padding: 0.35rem 0.85rem;
    border-radius: 6px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

/* --- Masonry Engine (Pure CSS Columns) --- */
.blog-masonry-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1.5rem !important;
    align-items: start;
    width: 100%;
}

@media (max-width: 767.98px) {
    .blog-masonry-grid {
        column-count: 1;
    }
}

.masonry-item {
    width: 100% !important;
    margin-bottom: 0 !important;
    display: flex;
    flex-direction: column;
}

/* --- Blog Cards --- */
.masonry-item .blog-card {
    width: 100%;
    height: 100%;
}

.masonry-item .blog-card:hover {
    transform: translateY(-4px);
    border-color: rgba(168, 85, 247, 0.45);
    box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.85);
}

.blog-card-thumb {
    position: relative;
    overflow: hidden;
    background: #020617;
}

.blog-thumb-img {
    transition: transform 0.35s ease;
    object-fit: cover;
    max-height: 240px;
    width: 100%;
    display: block;
}

.blog-card:hover .blog-thumb-img {
    transform: scale(1.04);
}

.badge-post-cat {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(2, 6, 23, 0.85);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #38bdf8;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    text-decoration: none;
    backdrop-filter: blur(4px);
    z-index: 2;
}

.badge-post-cat:hover {
    color: #ffffff;
    border-color: #38bdf8;
}

.blog-card-title {
    font-size: 1.15rem;
    line-height: 1.35;
    font-weight: 600;
}

.blog-card-title a {
    transition: color 0.2s ease;
}

.blog-card-title a:hover {
    color: #38bdf8 !important;
}

.blog-card-excerpt {
    font-size: 0.86rem;
    line-height: 1.6;
}

.read-more-arrow {
    color: #38bdf8;
    text-decoration: none;
    font-size: 1.25rem;
    line-height: 1;
    transition: transform 0.2s ease, color 0.2s ease;
}

.read-more-arrow:hover {
    transform: translateX(4px);
    color: #c084fc;
}

@media (max-width: 767.98px) {
    .blog-masonry-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }
}

/* --- Left Sticky Sidebar --- */
.blog-sidebar {
    position: sticky;
    top: 90px;
}

.sidebar-widget {
    background: #040919;
    border: 1px solid #14203d;
    border-radius: 14px;
    padding: 1.5rem;
}

.widget-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
    position: relative;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.blog-search-input {
    background: #020617 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    border-radius: 8px;
    padding: 0.6rem 2.8rem 0.6rem 1rem;
    font-size: 0.88rem;
}

.blog-search-input:focus {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.25) !important;
}

.search-submit-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #64748b;
    padding: 4px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: color 0.2s ease;
}

.search-submit-btn:hover {
    color: #38bdf8;
}

/* Sidebar Promo Card */
.widget-promo-card {
    background: radial-gradient(120% 120% at 50% 0%, #1e1035 0%, #030713 100%) !important;
    border: 1px solid rgba(168, 85, 247, 0.35) !important;
}

.promo-badge {
    font-size: 0.65rem;
    font-weight: 700;
    color: #c084fc;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Sidebar Categories & Tags */
.category-link {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.86rem;
    transition: color 0.2s ease;
}

.category-link:hover {
    color: #38bdf8;
}

.category-count {
    font-size: 0.72rem;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
}

.tag-pill {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
    font-size: 0.75rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tag-pill:hover {
    background: rgba(56, 189, 248, 0.1);
    border-color: #38bdf8;
    color: #38bdf8;
}

.recent-post-thumb img {
    width: 52px;
    height: 52px;
    object-fit: cover;
}

.recent-post-title {
    font-size: 0.84rem;
    line-height: 1.35;
}

.recent-post-title a:hover {
    color: #38bdf8 !important;
}

/* --- Archive Header Banner --- */
.archive-header-banner {
    background: radial-gradient(100% 150% at 50% 0%, #0c1633 0%, #030713 100%);
    border: 1px solid rgba(56, 189, 248, 0.25);
}

/* --- Single Post Detail Typography --- */
.single-post-title {
    font-size: 2.35rem;
    line-height: 1.25;
}

.single-post-wrapper {
    background: #040919;
    border: 1px solid #14203d;
    border-radius: 14px;
}

.post-prose-content {
    font-size: 1.05rem;
    line-height: 1.8;
}

.post-prose-content h2, 
.post-prose-content h3, 
.post-prose-content h4 {
    color: #ffffff;
    font-weight: 700;
    margin-top: 2.2rem;
    margin-bottom: 1rem;
}

.post-prose-content p {
    margin-bottom: 1.5rem;
}

.post-prose-content a {
    color: #38bdf8;
    text-decoration: underline;
}

.post-prose-content blockquote {
    border-left: 3px solid #a855f7;
    background: rgba(168, 85, 247, 0.05);
    padding: 1rem 1.5rem;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #cbd5e1;
    margin: 1.5rem 0;
}

.post-prose-content code {
    background: #020617;
    color: #38bdf8;
    padding: 0.2rem 0.45rem;
    border-radius: 4px;
    font-size: 0.9em;
}

.post-prose-content pre {
    background: #020617;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 1.25rem;
    overflow-x: auto;
}

.post-author-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.post-nav-capsule a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.post-nav-capsule a:hover {
    color: #38bdf8;
}

/* --- Pagination Elements --- */
.pagination-wrapper ul.page-numbers {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.4rem;
}

.pagination-wrapper .page-numbers {
    background: #040919;
    border: 1px solid #14203d;
    color: #94a3b8;
    padding: 0.45rem 0.85rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.pagination-wrapper .page-numbers.current,
.pagination-wrapper .page-numbers:hover {
    background: #38bdf8;
    color: #020617;
    border-color: #38bdf8;
    font-weight: 600;
}

/* ==========================================================================
   AIStack Theme: WordPress Dynamic Sidebar & Widgets Styling
   ========================================================================== */

/* Left Sidebar Sticky Anchor */
.blog-sidebar {
    position: sticky;
    top: 90px;
    z-index: 10;
}

/* Base Widget Container Box */
.blog-sidebar .widget,
.blog-sidebar .sidebar-widget {
    background: #040919;
    border: 1px solid #14203d;
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 25px -10px rgba(0, 0, 0, 0.7);
    transition: border-color 0.2s ease;
}

.blog-sidebar .widget:hover,
.blog-sidebar .sidebar-widget:hover {
    border-color: rgba(56, 189, 248, 0.25);
}

/* Widget Headings */
.blog-sidebar .widget-title,
.blog-sidebar h2.widgettitle {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
}

.blog-sidebar .widget-title::after,
.blog-sidebar h2.widgettitle::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 32px;
    height: 2px;
    background: linear-gradient(90deg, #38bdf8, #a855f7);
    border-radius: 2px;
}

/* Remove default bullets & reset lists */
.blog-sidebar ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin-bottom: 0 !important;
}

.blog-sidebar ul li {
    position: relative;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.88rem;
}

.blog-sidebar ul li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.blog-sidebar ul li a {
    color: #94a3b8 !important;
    text-decoration: none !important;
    transition: color 0.15s ease, transform 0.15s ease;
    display: inline-block;
}

.blog-sidebar ul li a:hover {
    color: #38bdf8 !important;
    transform: translateX(4px);
}

/* Nested lists (sub-categories/pages) */
.blog-sidebar ul.children,
.blog-sidebar ul.sub-menu {
    width: 100%;
    padding-left: 0.85rem !important;
    margin-top: 0.4rem;
    border-left: 1px solid rgba(56, 189, 248, 0.2);
}

/* Post counts (e.g. in Categories & Archives) */
.blog-sidebar ul li {
    color: #64748b;
}

/* ==========================================================================
   WordPress Default Search Form
   ========================================================================== */
.blog-sidebar .widget_search form,
.blog-sidebar .search-form {
    display: flex;
    position: relative;
    width: 100%;
}

.blog-sidebar input[type="search"],
.blog-sidebar input[type="text"],
.blog-sidebar .search-field {
    width: 100%;
    background: #020617 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    padding: 0.6rem 0.9rem;
    border-radius: 8px 0 0 8px;
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.blog-sidebar input[type="search"]:focus,
.blog-sidebar input[type="text"]:focus,
.blog-sidebar .search-field:focus {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

.blog-sidebar input[type="submit"],
.blog-sidebar .search-submit {
    background: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%) !important;
    border: none !important;
    color: #ffffff !important;
    padding: 0 1rem;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.blog-sidebar input[type="submit"]:hover,
.blog-sidebar .search-submit:hover {
    opacity: 0.9;
}

/* ==========================================================================
   Tag Cloud & Recent Comments / Posts
   ========================================================================== */
.blog-sidebar .tagcloud a,
.blog-sidebar .wp-block-tag-cloud a {
    display: inline-block;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8 !important;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem !important;
    margin: 0.2rem;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.blog-sidebar .tagcloud a:hover,
.blog-sidebar .wp-block-tag-cloud a:hover {
    background: rgba(56, 189, 248, 0.12);
    border-color: #38bdf8;
    color: #38bdf8 !important;
}

/* ==========================================================================
   AIStack Theme: Astronaut 404 Space Scene
   ========================================================================== */
.min-vh-75 {
    min-height: calc(100vh - 180px);
}

.error-404-compact-card {
    background: radial-gradient(120% 120% at 50% 10%, #080f28 0%, #020617 100%);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 18px;
    padding: 2.25rem 1.75rem;
    max-width: 480px;
    box-shadow: 0 25px 50px -15px rgba(0, 0, 0, 0.95), 
                inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Star dust background dots */
.space-stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: 
        radial-gradient(1px 1px at 25px 30px, #ffffff, transparent),
        radial-gradient(1.5px 1.5px at 120px 80px, #38bdf8, transparent),
        radial-gradient(1px 1px at 340px 45px, #c084fc, transparent),
        radial-gradient(1.5px 1.5px at 420px 140px, #ffffff, transparent),
        radial-gradient(1px 1px at 80px 220px, #38bdf8, transparent),
        radial-gradient(1.5px 1.5px at 390px 260px, #818cf8, transparent);
    opacity: 0.7;
}

/* Astronaut SVG container */
.astronaut-scene {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    position: relative;
}

.astronaut-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* Floating & Tilting Zero-Gravity Animation */
.floating-astro-body {
    transform-origin: 100px 100px;
    animation: astronautFloat 5s ease-in-out infinite;
}

@keyframes astronautFloat {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(4deg);
    }
    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

/* Subtle tether wave */
.astro-tether {
    animation: tetherWave 5s ease-in-out infinite;
}

@keyframes tetherWave {
    0%, 100% {
        opacity: 0.4;
        stroke-dashoffset: 0;
    }
    50% {
        opacity: 0.75;
        stroke-dashoffset: 6;
    }
}