/* ---------------------------------------------------------------------
   MICROTECH SOLUTIONS - PREMIUM FULL-WIDTH B2B THEME ENGINE (2026)
--------------------------------------------------------------------- */

/* Pulling Neuropolitical style parameters cleanly */
@import url('https://fonts.cdnfonts.com/css/neuropolitical');

:root {
    --nav-bg: #0f172a;       /* Deep Slate Navy */
    --brand-blue: #0284c7;   /* Infrastructure Blue */
    --brand-red: #ef4444;    /* Security Red */
    --text-dark: #0f172a;    /* High-contrast headings */
    --text-body: #334155;    /* Professional slate prose */
    --bg-main: #f8fafc;      /* Clean, ultra-light enterprise gray backdrop */
    --border-clean: #e2e8f0; /* Crisp component lines */
    --max-site-width: 1400px;
}

/* Global Reset & Streamlined Typography */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-body);
    background-color: var(--bg-main);
    padding-bottom: 40px;
    padding-top: 90px; /* Offset to prevent sticky bar overlap */
}

/* Hardened Full-Width Sticky Navbar */
header.sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--nav-bg);
    border-bottom: 3px solid var(--brand-blue);
    padding: 14px 40px;
    z-index: 10000;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.15);
}

nav {
    max-width: var(--max-site-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* =====================================================================
   PURE CSS HOVER DROPDOWN ARCHITECTURE
   ===================================================================== */
.nav-dropdown-wrapper {
    position: relative;
    display: inline-block;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--nav-bg);
    min-width: 240px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.3);
    border-radius: 4px;
    border-top: 2px solid var(--brand-blue);
    padding: 8px 0;
    z-index: 15000;
}

/* Links inside the dropdown box panel */
.nav-dropdown-menu a {
    display: block;
    color: #94a3b8;
    padding: 10px 20px;
    font-size: 0.8rem;
    text-transform: none; /* Keeps names looking clean instead of shouting in all-caps */
    letter-spacing: 0.02em;
    text-align: left;
    border-radius: 0;
}

.nav-dropdown-menu a:hover {
    color: #ffffff;
    background-color: rgba(2, 132, 199, 0.15);
}

/* The magic hover state switcher trigger */
.nav-dropdown-wrapper:hover .nav-dropdown-menu {
    display: block;
}

/* NeuroPolitical Pure Text Logo Styling */
.text-logo {
    font-family: 'Neuropolitical', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
}

.text-logo .tech-block {
    background: linear-gradient(135deg, var(--brand-red) 50%, var(--brand-blue) 50%);
    color: #ffffff;
    padding: 2px 6px;
    margin: 0 2px;
    border-radius: 3px;
    font-weight: 800;
    display: inline-block;
}

.nav-links { display: flex; align-items: center; gap: 4px; }

nav a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
}

nav a:hover { color: #ffffff; background-color: rgba(255, 255, 255, 0.05); }
nav a.cta-nav { background-color: var(--brand-blue); color: #ffffff; margin-left: 10px; }
nav a.cta-nav:hover { background-color: #0369a1; }

/* The Modern, Border-Separated 2-Column Matrix */
.layout-wrapper {
    max-width: var(--max-site-width);
    width: 94%;
    margin: 40px auto;
    display: grid;
    grid-template-columns: 7.8fr 2.2fr;
    gap: 40px;
}

/* Left Content Column - Full-Bleed Look */
.main-content-box {
    padding-right: 20px;
}

/* Sticky Sidebar Column */
.sidebar-box { display: flex; flex-direction: column; gap: 24px; }
.sidebar-card {
    background: #ffffff;
    padding: 28px;
    border-radius: 8px;
    border: 1px solid var(--border-clean);
    position: sticky;
    top: 120px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
}

/* Sidebar Technical Checklist Specifics - Clean Padding Gap Realignment */
.sidebar-card ul {
    list-style: none;
    margin: 12px 0 !important;
    display: block !important;
}

.sidebar-card ul li {
    position: relative !important;
    padding: 6px 0 6px 28px !important; /* Adds a clear, uniform horizontal text gap */
    background: none !important;
    border: none !important;
    font-size: 0.9rem !important;
    color: var(--text-dark) !important;
    box-shadow: none !important;
    margin-bottom: 6px !important;
}

/* Dynamically injecting icon element with precise alignment gap */
.sidebar-card ul li::before {
    content: "✓" !important;
    position: absolute !important;
    left: 4px !important;
    top: 5px !important;
    color: var(--brand-blue) !important;
    font-weight: 900 !important;
    font-size: 1rem !important;
}

/* =====================================================================
   UPGRADED ENTERPRISE TYPOGRAPHY & ELEMENT MATRIX HIERARCHY
   ===================================================================== */
h1, h2, h3, h4, h5, h6 { 
    color: var(--text-dark); 
    font-weight: 800; 
    letter-spacing: -0.02em; 
    margin-top: 1.8em;
    margin-bottom: 0.6em;
    line-height: 1.3;
}

h1 { 
    font-size: 2.4rem; 
    margin-top: 0;
    margin-bottom: 24px; 
    padding-bottom: 16px; 
    border-bottom: 1px solid var(--border-clean); 
}

h2 {
    font-size: 1.15rem; 
    margin-top: 40px; 
    margin-bottom: 18px; 
    text-transform: uppercase; 
    color: var(--nav-bg); 
    background-color: #ffffff;
    border: 1px solid var(--border-clean);
    border-left: 4px solid var(--brand-blue); 
    padding: 12px 18px;              
    border-radius: 4px;
    letter-spacing: 0.04em;
    display: block;                  
}

h3 { font-size: 1.4rem; color: var(--nav-bg); font-weight: 700; border-bottom: 1px dashed var(--border-clean); padding-bottom: 6px; }
h4 { font-size: 1.15rem; color: var(--text-dark); font-weight: 700; }
h5 { font-size: 1rem; color: var(--text-body); text-transform: uppercase; letter-spacing: 0.05em; }
h6 { font-size: 0.9rem; color: var(--brand-blue); }

p { margin-bottom: 1.5em; font-size: 1.05rem; line-height: 1.8; color: var(--text-body); }
p strong { color: var(--text-dark); font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--border-clean); margin: 36px 0; }

/* Polished Technical Checklists (Unordered Lists) */
ul { list-style: none; margin: 24px 0; padding: 0; }
ul li { 
    position: relative; 
    padding: 14px 16px 14px 42px; 
    background: #ffffff; 
    border: 1px solid var(--border-clean); 
    border-radius: 6px; 
    margin-bottom: 12px; 
    font-size: 0.98rem; 
    color: var(--text-dark); 
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.02); 
}
ul li::before { 
    content: "✓"; 
    position: absolute; 
    left: 18px; 
    color: var(--brand-blue); 
    font-weight: 900; 
}

/* Polished Sequence Checklists (Ordered Lists) */
ol { margin: 24px 0; padding-left: 0; list-style: none; counter-reset: tech-counter; }
ol li {
    position: relative;
    padding: 14px 16px 14px 48px;
    background: #ffffff;
    border: 1px solid var(--border-clean);
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 0.98rem;
    color: var(--text-dark);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.02);
    counter-increment: tech-counter;
}
ol li::before {
    content: counter(tech-counter) ".";
    position: absolute;
    left: 18px;
    color: var(--brand-blue);
    font-weight: 800;
    font-family: monospace;
}

/* Hardened B2B Data Tables with Light Vertical Columns */
table { 
    width: 100%; 
    border-collapse: collapse; 
    margin: 32px 0; 
    border: 1px solid var(--border-clean); 
    border-radius: 6px; 
    overflow: hidden; 
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03); 
}
th, td { 
    padding: 14px 18px; 
    font-size: 0.92rem; 
    border-right: 1px solid var(--border-clean); /* Generates the vertical separation grid paths */
}
th:last-child, td:last-child { 
    border-right: none; /* Prevents trailing container edges from splitting double lines */
}
th { 
    background-color: var(--nav-bg); 
    color: #ffffff; 
    text-transform: uppercase; 
    font-size: 0.75rem; 
    letter-spacing: 0.06em; 
    border-right: 1px solid rgba(255, 255, 255, 0.12); /* Clean, subtle white column splits for header block */
}
td { border-bottom: 1px solid var(--border-clean); background-color: #ffffff; }
tr:nth-child(even) td { background-color: #f8fafc; }

/* =====================================================================
   OPTIMIZED FLUID ARTWORK WITH CSS PROTECTION WATERMARK
   ===================================================================== */
.article-image-box {
    margin: 35px auto;
    background: #ffffff;
    border: 1px solid var(--border-clean);
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
    max-width: 720px;       /* Restricts image container size beautifully on desktop */
    width: 100%;
    position: relative;     /* Essential anchor for the watermark overlay */
    user-select: none;      /* Disables quick right-click selection locally */
}

.article-image-box img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;   /* Forces strict aspect ratio parameters */
    height: auto;
    border-radius: 4px;
    object-fit: cover;
}

/* Hardened CSS Watermark Overlay Layer */
.article-image-box::after {
    content: "© Microtech Solutions";
    position: absolute;
    bottom: 35px;
    right: 24px;
    font-family: 'Neuropolitical', sans-serif;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.65);
    background-color: rgba(15, 23, 42, 0.6); /* Translucent protective plate */
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.05em;
    pointer-events: none;    /* Ensures users can't click or select the text */
}

.article-image-caption {
    display: block;
    font-size: 0.82rem;
    color: #64748b;
    text-align: center;
    margin-top: 12px;
    font-style: italic;
}

/* Upgraded Horizontal Row SEO Footer Matrix */
.seo-footer {
    grid-column: span 2;
    background: #ffffff;
    border: 1px solid var(--border-clean);
    border-radius: 8px;
    padding: 40px;
    margin-top: 40px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.01);
}

.seo-horizontal-row {
    margin-bottom: 28px;
}

.seo-horizontal-row:last-of-type {
    margin-bottom: 10px;
}

.seo-horizontal-row h4 {
    color: var(--nav-bg);
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 0.05em;
    font-weight: 800;
    border-left: 3px solid var(--brand-blue);
    padding-left: 8px;
}

.seo-inline-links {
    font-size: 0.8rem;
    line-height: 1.8;
    color: var(--text-body);
    background: var(--bg-main);
    padding: 16px 20px;
    border-radius: 6px;
    border: 1px solid var(--border-clean);
    text-align: left;
}

/* Floating WhatsApp Link */
/* Native Floating WhatsApp Button styling - Shifted to Bottom-Left to prevent sidebar collisions */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px; /* Changed from right: 30px to remove overlap */
    background-color: #25d366;
    color: white;
    border-radius: 50px;
    text-align: center;
    padding: 12px 22px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 100000;
    display: flex;
    align-items: center;
    gap: 8px;
}
.whatsapp-float:hover { 
    background-color: #128c7e; 
}

/* Premium Compact Circular WhatsApp Button Engine */
.whatsapp-circle-btn {
    position: fixed;
    bottom: 70px;
    right: 24px; /* Securely repositioned back to the lower right view quadrant */
    background-color: #25d366;
    width: 52px;  /* Small, non-intrusive circular profile footprint */
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.25);
    z-index: 999999; /* Keeps button on top of layouts without cutting lines */
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.2s ease;
}

/* Scalable Vector Asset Fill */
.whatsapp-circle-btn svg {
    width: 26px;
    height: 26px;
    fill: #ffffff;
}

/* Micro-interaction hover scaling effect */
.whatsapp-circle-btn:hover {
    background-color: #128c7e;
    transform: scale(1.08);
}

/* Clean Responsive Mobile Scale Breakpoint */
@media (max-width: 1024px) {
    .whatsapp-circle-btn {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
    }
    .whatsapp-circle-btn svg {
        width: 24px;
        height: 24px;
    }
}

/* Responsive Viewports Override - Ensures it stays pinned correctly on small screens */
@media (max-width: 1024px) {
    .whatsapp-float {
        bottom: 20px;
        left: 20px;
    }
}

/* Responsive Layout Overrides */
@media (max-width: 1100px) {
    header.sticky-nav { padding: 14px 20px; }
    .layout-wrapper { grid-template-columns: 1fr; width: 95%; }
    .main-content-box { padding-right: 0; }
    .seo-footer { grid-column: span 1; padding: 24px; }
    .sidebar-card { position: static; }
    body { padding-top: 130px; }
}

/* =====================================================================
   DIRECT DRAWER COMPONENT & INTERNAL FORM HARDENING (NO-SCROLL VER)
   ===================================================================== */

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.4); /* Clean backdrop tint */
    backdrop-filter: blur(4px);              /* Frosted glass effect */
    z-index: 2000000;                        
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

/* Hardened sliding box container geometry - Compact Layout */
.drawer-box {
    position: fixed;
    top: 0;
    right: -460px; /* Securely stashed back off the right layout frame edge */
    width: 100%;
    max-width: 400px; /* Perfectly structured desktop box width */
    height: 100vh;
    background: #ffffff;
    box-shadow: -6px 0 30px rgba(15, 23, 42, 0.15);
    padding: 16px; /* Reduced global padding to save vertical viewport space */
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    z-index: 2000001;
    transition: right 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* CSS Target Activation Engine */
.drawer-overlay:target {
    opacity: 1;
    pointer-events: auto;
}

.drawer-overlay:target .drawer-box {
    right: 0; /* Smooth slide-out transformation back to right side panel placement */
}

/* Header Spacing Fix - Compacted */
.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 12px; /* Eliminated large white spaces at the top edge */
}

.drawer-header h3 {
    margin: 0;
    font-size: 1.15rem;
    color: var(--nav-bg);
}

.drawer-close-btn {
    font-size: 1.5rem;
    color: var(--text-body);
    text-decoration: none;
    line-height: 1;
    padding: 0 4px;
}
.drawer-close-btn:hover { color: var(--brand-blue); }

/* Targeted Structural Vertical Stacking Engine for Drawer Forms */
.drawer-box form {
    display: block; /* Restores block flow behavior inside the narrow column */
    width: 100%;
    margin-top: 0px;
}

.drawer-box form label {
    display: block;
    font-size: 0.78rem; /* Slightly smaller text labels */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--nav-bg);
    margin-top: 10px; /* Reduced spacing before form labels */
    margin-bottom: 4px;
}

/* Explicit full-width stacking layouts for input nodes */
.drawer-box form input[type="text"],
.drawer-box form input[type="email"],
.drawer-box form select,
.drawer-box form textarea {
    display: block !important;
    width: 100% !important;
    padding: 6px 10px !important; /* Slimmer layout form padding */
    font-size: 0.85rem !important;
    font-family: inherit !important;
    color: var(--text-dark) !important;
    background-color: #ffffff !important;
    border: 1px solid var(--border-clean) !important;
    border-radius: 4px !important;
    margin-bottom: 2px !important;
    box-sizing: border-box !important;
}

.drawer-box form input:focus,
.drawer-box form select:focus,
.drawer-box form textarea:focus {
    outline: none;
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1);
}

.drawer-box form textarea { 
    resize: none !important; /* Prevents stretching elements off screen */
    min-height: 60px !important; /* Compact box framework footprint */
}

.drawer-box form button[type="submit"] {
    display: block !important;
    width: 100% !important;
    background-color: var(--brand-blue) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 10px 20px !important; /* Compact call-to-action block dimensions */
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em;
    border-radius: 4px !important;
    margin-top: 14px !important; /* Less space before submit button */
    cursor: pointer !important;
    transition: background 0.2s;
}
.drawer-box form button[type="submit"]:hover { background-color: #0369a1 !important; }

/* Sleek, Non-Bloated Direct Communication Banner */
.drawer-phone-banner {
    background: #f8fafc;
    border: 1px dashed #e2e8f0;
    border-radius: 4px;
    padding: 8px;
    text-align: center;
    margin-top: 12px;
}

.phone-label {
    display: block;
    font-size: 0.72rem;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 600;
}

.phone-link {
    font-size: 1.05rem;
    color: #0284c7;
    text-decoration: none;
    font-weight: 700;
}

/* Flat Static Placement for Trust Anchor Note */
.drawer-privacy-note {
    font-size: 0.72rem;
    color: #94a3b8;
    line-height: 1.3;
    margin-top: auto; /* Locks elements perfectly to the bottom layout boundary */
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}

/* Responsive Mobile Window Profile */
@media (max-width: 480px) {
    .drawer-box {
        width: 100% !important;
        right: -100% !important;
        padding: 16px !important; /* Retains compact geometry on mobile */
    }
}

/* Styling for Required Field Indicators */
.req-star {
    color: var(--brand-red, #ef4444);
    font-weight: bold;
    margin-left: 2px;
}

/* =====================================================================
   INLINE DRAWER COMPLETION SUCCESS MATRIX LAYOUT
   ===================================================================== */

.drawer-success-screen {
    display: none; /* Kept completely quiet until layout trigger anchors execute */
    text-align: center;
    padding: 30px 10px;
    animation: drawerFadeIn 0.25s ease forwards;
}

.success-icon-badge {
    width: 64px;
    height: 64px;
    background-color: #dcfce7; /* Soft technical green highlight plane */
    color: #16a34a;           /* Clean verification indicator check */
    font-size: 1.8rem;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    border: 2px solid #bbf7d0;
}

.drawer-success-screen h4 {
    font-size: 1.25rem;
    color: var(--nav-bg);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.drawer-success-screen p {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-body);
    margin-bottom: 24px;
}

/* Custom technical server ticket component display style */
.technical-receipt-box {
    font-family: monospace;
    font-size: 0.8rem;
    background-color: var(--bg-main);
    border: 1px dashed var(--border-clean);
    padding: 14px;
    border-radius: 4px;
    text-align: left;
    color: var(--nav-bg);
    margin-bottom: 30px;
    line-height: 1.5;
}

.success-return-btn {
    display: inline-block;
    background-color: var(--nav-bg);
    color: #ffffff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 12px 24px;
    border-radius: 4px;
    transition: background-color 0.15s ease;
}
.success-return-btn:hover {
    background-color: #000000;
}

/* Master State Machine: Swapping fields out for success metrics upon click routing */
#audit-drawer:target-within .drawer-form-content { display: block; }
#audit-drawer:target-within .drawer-success-screen { display: none; }

/* Route intercept mechanism swaps views if browser address updates to success hook */
#audit-drawer:has(#audit-success:target) .drawer-form-content { display: none !important; }
#audit-drawer:has(#audit-success:target) .drawer-success-screen { display: block !important; }

@keyframes drawerFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =====================================================================
   DRAWER DIRECT PHONE LINK & PRIVACY ENGINE
   ===================================================================== */

.drawer-phone-banner {
    margin-top: 24px;
    padding: 16px;
    background-color: var(--bg-main); /* Light technical silver background */
    border: 1px solid var(--border-clean);
    border-radius: 4px;
    text-align: center;
}

.drawer-phone-banner .phone-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-body);
    margin-bottom: 4px;
    letter-spacing: 0.03em;
}

.drawer-phone-banner .phone-link {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--brand-blue); /* Signature Infrastructure Blue */
    text-decoration: none;
    letter-spacing: -0.01em;
    transition: color 0.15s ease;
}
.drawer-phone-banner .phone-link:hover {
    color: #0369a1; /* Hover interactive slate blue */
}

.drawer-privacy-note {
    margin-top: auto; /* Securely pushes it down to the absolute bottom of the drawer viewport */
    padding-top: 20px;
    border-top: 1px solid var(--border-clean);
    font-size: 0.78rem;
    line-height: 1.5;
    color: #64748b;
}
.drawer-privacy-note strong {
    color: var(--nav-bg);
}

/* =====================================================================
   PARTNER BRAND LOGO ENGINE + INFINITE PURE CSS LOGO TICKER MATRIX
   ===================================================================== */
   
.partner-ecosystem-section {
    background-color: #fdfdfd;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 2.5rem 0;
    margin-top: 3rem;
}

.logo-ticker-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 10px 0;
}

/* Linear infinite slide animation loop */
.logo-ticker-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 35s linear infinite;
}

/* Pause the scrolling loop cleanly when a user hovers over the track */
.logo-ticker-wrap:hover .logo-ticker-track {
    animation-play-state: paused;
}

.logo-item {
    padding: 0 2rem;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s ease;
}

.logo-item img {
    max-width: 140px;
    max-height: 42px;
    object-fit: contain;
    /* Reduced grayscale so genuine colors shine through instantly, fully popping on hover */
    filter: grayscale(15%) opacity(85%);
    transition: filter 0.2s ease;
}

.logo-item:hover {
    transform: scale(1.06);
}

.logo-item:hover img {
    filter: grayscale(0%) opacity(100%);
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Scrolls exactly half the total track width (the first group of logos) before snapping back */
        transform: translateX(-50%);
    }
}

/* =====================================================================
   COMPREHENSIVE B2B MOBILE & TABLET DEVICE ADAPTATION ENGINE
   ===================================================================== */

@media (max-width: 1100px) {
    body {
        padding-top: 130px; /* Offset to prevent sticky bar overlap */
    }
    header.sticky-nav {
        padding: 14px 20px;
    }
    .layout-wrapper {
        grid-template-columns: 1fr;
        width: 95%;
        margin: 20px auto;
        gap: 24px;
    }
    .main-content-box {
        padding-right: 0;
    }
    .sidebar-card {
        position: static; /* Removes sticky element properties for mobile viewports */
    }
    .seo-footer {
        grid-column: span 1;
        padding: 24px;
    }
}

/* Tablet & iPad Media Boundary Layouts */
@media (max-width: 1024px) {
    nav {
        flex-direction: column;
        gap: 12px;
    }
    
    /* Reveal the mobile structural elements */
    .mobile-menu-toggle {
        display: flex;
        position: absolute;
        top: 22px;
        right: 20px;
    }

    /* Transform navigation row container into an expandable/centered block layout */
    .nav-links {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 8px;
        margin-top: 10px;
        text-align: center;
    }

    nav a {
        display: block;
        width: 100%;
        padding: 10px;
        font-size: 0.9rem;
    }

    nav a.cta-nav {
        margin-left: 0;
        background-color: var(--brand-blue);
    }
    
    /* Align mobile text components cleanly */
    .text-logo {
        width: 100%;
        justify-content: center;
        padding-right: 40px; /* Counter-weights the toggle button width positioning */
    }

    /* Structural Data Table Adaptation */
    table {
        display: block;
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    th, td {
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    /* Target the layout properties of the sliding assessment drawer on mobile */
    .drawer-box {
        width: 100% !important;
        max-width: 100% !important;
        right: -100% !important;
    }
    .drawer-overlay:target .drawer-box {
        right: 0 !important;
    }
}

/* Smartphone Specific Micro-Sizing Engine */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    h1 {
        font-size: 1.8rem;
        margin-bottom: 16px;
        padding-bottom: 12px;
    }

    h2 {
        font-size: 0.95rem;
        padding: 10px 14px;
        letter-spacing: 0.02em;
    }

    h3 {
        font-size: 1.2rem;
    }

    p {
        font-size: 0.98rem;
        line-height: 1.7;
    }

    ul li, ol li {
        padding: 10px 12px 10px 36px;
        font-size: 0.9rem;
    }

    ul li::before, ol li::before {
        left: 14px;
    }

    /* Adaptive Artwork Configuration View */
    .article-image-box {
        padding: 6px;
        margin: 20px auto;
    }

    .article-image-box::after {
        font-size: 0.65rem;
        bottom: 20px;
        right: 14px;
        padding: 2px 6px;
    }

    /* Infinite Logo Ticker Mobile Optimization */
    .partner-ecosystem-section {
        padding: 1.5rem 0;
        margin-top: 2rem;
    }
    .logo-item {
        padding: 0 1.2rem;
        height: 40px;
    }
    .logo-item img {
        max-width: 100px;
        max-height: 32px;
    }

    /* Multi-Row SEO Links Flattening */
    .seo-inline-links {
        padding: 12px 14px;
        font-size: 0.75rem;
    }

    /* Safe Placement for Circular Communication Floating Anchors */
    .whatsapp-circle-btn {
        bottom: 16px;
        right: 16px;
        width: 46px;
        height: 46px;
    }
    .whatsapp-circle-btn svg {
        width: 22px;
        height: 22px;
    }
}

/* Ultra-Narrow Screen Viewports Framework Fix (Below 360px width handles) */
@media (max-width: 360px) {
    .text-logo {
        font-size: 1.1rem;
    }
    nav a {
        font-size: 0.8rem;
    }
}