﻿/* =====  CONSOLIDATED CARD BASE CLASS  ===== */
.card {
    background: var(--color-white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-base);
    padding: var(--space-8);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
}

/* ===== TABLE THEME COLOR OVERRIDES ===== */
.table-gray thead tr {
    background: linear-gradient(135deg, #0f172a, #1e293b) !important;
}

.table-gray tbody tr:nth-child(odd) {
    background: #fefefe;
}

.table-gray tbody tr:nth-child(even) {
    background: #fdfdfd;
}

.table-gray td:first-child {
    color: #374151;
}

.table-gray tbody tr:hover {
    background: #f8f9fa !important;
}

.table-gray tbody tr:hover td:first-child {
    color: #1f2937;
}

.table-gray td strong, .table-gray td em {
    color: #374151;
}

.table-blue thead tr {
    background: linear-gradient(135deg, #0f172a, #1e293b) !important;
}

.table-blue tbody tr:nth-child(odd) {
    background: #f0f9ff;
}

.table-blue tbody tr:nth-child(even) {
    background: #e0f2fe;
}

.table-blue td:first-child {
    color: #1e40af;
}

.table-blue tbody tr:hover {
    background: #bae6fd !important;
}

.table-blue tbody tr:hover td:first-child {
    color: #1d4ed8;
}

.table-blue td strong, .table-blue td em {
    color: #1d4ed8;
}

.table-green thead tr {
    background: linear-gradient(135deg, #064e3b, #065f46) !important;
}

.table-green tbody tr:nth-child(odd) {
    background: #f0fdf4;
}

.table-green tbody tr:nth-child(even) {
    background: #dcfce7;
}

.table-green td:first-child {
    color: #15803d;
}

.table-green tbody tr:hover {
    background: #a7f3d0 !important;
}

.table-green tbody tr:hover td:first-child {
    color: #166534;
}

.table-green td strong, .table-green td em {
    color: #166534;
}

.table-yellow thead tr {
    background: linear-gradient(135deg, #451a03, #713f12) !important;
}

.table-yellow tbody tr:nth-child(odd) {
    background: #fefce8;
}

.table-yellow tbody tr:nth-child(even) {
    background: #fef3c7;
}

.table-yellow td:first-child {
    color: #a16207;
}

.table-yellow tbody tr:hover {
    background: #fcd34d !important;
}

.table-yellow tbody tr:hover td:first-child {
    color: #ca8a04;
}

.table-yellow td strong, .table-yellow td em {
    color: #ca8a04;
}

.table-red thead tr {
    background: linear-gradient(135deg, #450a0a, #7f1d1d) !important;
}

.table-red tbody tr:nth-child(odd) {
    background: #fef2f2;
}

.table-red tbody tr:nth-child(even) {
    background: #fecaca;
}

.table-red td:first-child {
    color: #991b1b;
}

.table-red tbody tr:hover {
    background: #f87171 !important;
}

.table-red tbody tr:hover td:first-child {
    color: #dc2626;
}

.table-red td strong, .table-red td em {
    color: #dc2626;
}

.table-pink thead tr {
    background: linear-gradient(135deg, #500724, #7d1f3d) !important;
}

.table-pink tbody tr:nth-child(odd) {
    background: #fdf2f8;
}

.table-pink tbody tr:nth-child(even) {
    background: #fce7f3;
}

.table-pink td:first-child {
    color: #be185d;
}

.table-pink tbody tr:hover {
    background: #fca5a5 !important;
}

.table-pink tbody tr:hover td:first-child {
    color: #db2777;
}

.table-pink td strong, .table-pink td em {
    color: #db2777;
}

.table-orange thead tr {
    background: linear-gradient(135deg, #431407, #6b2c0c) !important;
}

.table-orange tbody tr:nth-child(odd) {
    background: #fff7ed;
}

.table-orange tbody tr:nth-child(even) {
    background: #fed7aa;
}

.table-orange td:first-child {
    color: #9a3412;
}

.table-orange tbody tr:hover {
    background: #fcd34d !important;
}

.table-orange tbody tr:hover td:first-child {
    color: #ea580c;
}

.table-orange td strong, .table-orange td em {
    color: #ea580c;
}

.table-purple thead tr {
    background: linear-gradient(135deg, #2d1b69, #4c1d95) !important;
}

.table-purple tbody tr:nth-child(odd) {
    background: #faf5ff;
}

.table-purple tbody tr:nth-child(even) {
    background: #e9d5ff;
}

.table-purple td:first-child {
    color: #6b21a8;
}

.table-purple tbody tr:hover {
    background: #c084fc !important;
}

.table-purple tbody tr:hover td:first-child {
    color: #9333ea;
}

.table-purple td strong, .table-purple td em {
    color: #9333ea;
}

.table-monochrome thead tr {
    background: linear-gradient(135deg, #0f172a, #1e293b) !important;
}

.table-monochrome tbody tr:nth-child(odd) {
    background: #f9fafb;
}

.table-monochrome tbody tr:nth-child(even) {
    background: #f3f4f6;
}

.table-monochrome td:first-child {
    color: #374151;
}

.table-monochrome tbody tr:hover {
    background: #d1d5db !important;
}

.table-monochrome tbody tr:hover td:first-child {
    color: #1f2937;
}

.table-monochrome td strong, .table-monochrome td em {
    color: #1f2937;
}

.table-teal thead tr {
    background: linear-gradient(135deg, #134e4a, #115e59) !important;
}

.table-teal tbody tr:nth-child(odd) {
    background: #f0fdfa;
}

.table-teal tbody tr:nth-child(even) {
    background: #ccfbf1;
}

.table-teal td:first-child {
    color: #0f766e;
}

.table-teal tbody tr:hover {
    background: #99f6e4 !important;
}

.table-teal tbody tr:hover td:first-child {
    color: #0d9488;
}

.table-teal td strong, .table-teal td em {
    color: #0d9488;
}

.table-indigo thead tr {
    background: linear-gradient(135deg, #312e81, #3730a3) !important;
}

.table-indigo tbody tr:nth-child(odd) {
    background: #eef2ff;
}

.table-indigo tbody tr:nth-child(even) {
    background: #e0e7ff;
}

.table-indigo td:first-child {
    color: #4f46e5;
}

.table-indigo tbody tr:hover {
    background: #c7d2fe !important;
}

.table-indigo tbody tr:hover td:first-child {
    color: #4338ca;
}

.table-indigo td strong, .table-indigo td em {
    color: #4338ca;
}

.table-cyan thead tr {
    background: linear-gradient(135deg, #164e63, #155e75) !important;
}

.table-cyan tbody tr:nth-child(odd) {
    background: #ecfeff;
}

.table-cyan tbody tr:nth-child(even) {
    background: #cffafe;
}

.table-cyan td:first-child {
    color: #0891b2;
}

.table-cyan tbody tr:hover {
    background: #a5f3fc !important;
}

.table-cyan tbody tr:hover td:first-child {
    color: #0e7490;
}

.table-cyan td strong, .table-cyan td em {
    color: #0e7490;
}

/* External link icon for off-site links */
.external-link i.fa-external-link-alt {
    color: #888;
    vertical-align: middle;
}

/* Contrasting button style for Housekeeping Module */
.btn-contrast {
    background: linear-gradient(90deg, #f59e42 0%, #f44336 100%);
    color: #fff;
    border: none;
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.08);
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
}

.btn-contrast:hover {
    background: linear-gradient(90deg, #f44336 0%, #f59e42 100%);
    color: #fff;
}

/* Quick link underline animation */
.quick-link {
    position: relative;
    text-decoration: none;
    transition: color 0.2s;
}

.quick-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: #1e3a8a;
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(.4, 0, .2, 1);
}

.quick-link:hover::after {
    transform: scaleX(1);
}

.quick-link:hover {
    color: #1e3a8a;
}

/* Modern Theme CSS for EguibarIT */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;700&family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* AR Essence Brand Font */
@font-face {
    font-family: 'AR Essence';
    src: url('/assets/fonts/ARESSENCE.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Quick links (inline lists under Solutions tabs) */
.quick-links {
    margin-top: var(--space-3);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-3);
    list-style: none;
}

.quick-links li a {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    font-size: var(--text-sm);
    color: var(--color-primary);
    background: var(--color-brand-6);
    border: 1px solid var(--color-brand-5);
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: background var(--transition-base), color var(--transition-base), border-color var(--transition-base);
}

.quick-links li a:hover,
.quick-links li a:focus {
    background: var(--color-accent-light);
    color: var(--color-primary-dark);
    border-color: var(--color-accent);
    outline: none;
}

/* Icon spacing within quick links */
.quick-links li a i {
    margin-right: 0.4rem;
}

/* Horizontal button row (e.g., Housekeeping buttons) */
.button-row {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
    margin: var(--space-3) 0;
}

/* anchor-spacer class removed - not in use */

/* "On this page" anchor link index */
.anchor-index {
    margin: var(--space-4) 0 var(--space-6);
    padding: var(--space-4);
    background: var(--color-gray-50);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    font-size: var(--text-sm);
}

.anchor-index strong {
    display: block;
    color: var(--color-primary);
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-2);
}

.anchor-index ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2) var(--space-6);
}

@media (min-width: 768px) {
    .anchor-index ul {
        grid-template-columns: 1fr 1fr;
    }
}

.anchor-index a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.anchor-index a:hover,
.anchor-index a:focus {
    color: var(--color-accent);
    text-decoration: underline;
    outline: none;
}

/* Make the index gently sticky on large screens */
@media (min-width: 1024px) {
    .anchor-index.on-this-page {
        position: sticky;
        top: 90px;
        /* just below fixed header */
        z-index: var(--z-sticky);
    }
}

/* Offset anchor jump for fixed header using scroll-margin */
.article-main h2[id],
.article-main h3[id],
.article-main h4[id] {
    scroll-margin-top: 100px;
}

/* ===== CSS CUSTOM PROPERTIES (CSS VARIABLES) ===== */
:root {
    /* EguibarIT Brand Color Palette - Based on provided RGB values */
    --color-primary: #1c3048;
    /* RGB(28,48,72) - Deep navy */
    --color-primary-light: #2e5788;
    /* RGB(46,87,136) - Medium blue */
    --color-primary-dark: #0a1834;
    /* RGB(10,24,52) - Darkest blue */
    --color-secondary: #37659d;
    /* RGB(55,101,157) - Professional blue */
    --color-accent: #5587c3;
    /* RGB(85,135,195) - Bright accent */
    --color-accent-light: #8cafda;
    /* RGB(140,175,218) - Light accent */

    /* Extended palette from provided colors */
    --color-brand-1: #13202f;
    /* RGB(19,32,47) - Dark foundation */
    --color-brand-2: #254061;
    /* RGB(37,64,97) - Mid-tone */
    --color-brand-3: #3e71ae;
    /* RGB(62,113,174) - Vibrant blue */
    --color-brand-4: #adc6e5;
    /* RGB(173,198,229) - Soft blue */
    --color-brand-5: #d3e1f1;
    /* RGB(211,225,241) - Very light blue */
    --color-brand-6: #e5edf7;
    /* RGB(229,237,247) - Almost white blue */

    /* Neutral Colors */
    --color-white: #ffffff;
    --color-gray-50: #f8fafc;
    --color-gray-100: #f1f5f9;
    --color-gray-200: #e2e8f0;
    --color-gray-300: #cbd5e1;
    --color-gray-400: #94a3b8;
    --color-gray-500: #64748b;
    --color-gray-600: #475569;
    --color-gray-700: #334155;
    --color-gray-800: #1e293b;
    --color-gray-900: #0f172a;

    /* Status Colors */
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-error: #ef4444;
    --color-info: var(--color-accent);

    /* Typography */
    --font-primary: 'Inter', system-ui, Arial, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Mono', 'Consolas', monospace;
    --font-brand: 'Poppins', 'Arial Black', Arial, sans-serif;

    /* Font Sizes */
    --text-xs: 0.75rem;
    /* 12px */
    --text-sm: 0.875rem;
    /* 14px */
    --text-base: 1rem;
    /* 16px */
    --text-lg: 1.125rem;
    /* 18px */
    --text-xl: 1.25rem;
    /* 20px */
    --text-2xl: 1.5rem;
    /* 24px */
    --text-3xl: 1.875rem;
    /* 30px */
    --text-4xl: 2.25rem;
    /* 36px */
    --text-5xl: 3rem;
    /* 48px */
    --text-6xl: 3.75rem;
    /* 60px */

    /* Font Weights */
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;

    /* Spacing */
    --space-1: 0.25rem;
    /* 4px */
    --space-2: 0.5rem;
    /* 8px */
    --space-3: 0.75rem;
    /* 12px */
    --space-4: 1rem;
    /* 16px */
    --space-5: 1.25rem;
    /* 20px */
    --space-6: 1.5rem;
    /* 24px */
    --space-8: 2rem;
    /* 32px */
    --space-10: 2.5rem;
    /* 40px */
    --space-12: 3rem;
    /* 48px */
    --space-16: 4rem;
    /* 64px */
    --space-20: 5rem;
    /* 80px */
    --space-24: 6rem;
    /* 96px */

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-base: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Border Radius */
    --radius-sm: 0.125rem;
    /* 2px */
    --radius-base: 0.25rem;
    /* 4px */
    --radius-md: 0.375rem;
    /* 6px */
    --radius-lg: 0.5rem;
    /* 8px */
    --radius-xl: 0.75rem;
    /* 12px */
    --radius-2xl: 1rem;
    /* 16px */
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Z-indexes */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;

    /* Breakpoints */
    --breakpoint-sm: 640px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 1024px;
    --breakpoint-xl: 1280px;
    --breakpoint-2xl: 1536px;
}

/* ===== BRANDING ===== */
.brand-name {
    font-family: 'AR Essence', 'Poppins', 'Arial Black', Arial, sans-serif;
    letter-spacing: 0.04em;
    font-weight: normal;
    font-size: 130%;
    color: var(--color-primary, #1c3048);
}

.logo, .logo-text {
    font-family: 'AR Essence', 'Poppins', 'Arial Black', Arial, sans-serif;
    letter-spacing: 0.04em;
    font-weight: normal;
    color: var(--color-primary, #1c3048);
}

/* ===== RESET AND BASE STYLES ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--color-gray-800);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== ACCESSIBILITY ===== */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--color-primary);
    color: var(--color-white);
    padding: var(--space-2) var(--space-4);
    text-decoration: none;
    border-radius: var(--radius-base);
    z-index: var(--z-tooltip);
    transition: var(--transition-base);
}

.skip-link:focus {
    top: 6px;
}

/* sr-only class removed - not in use */

/* ===== UTILITY CLASSES ===== */
.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

@media (min-width: 640px) {
    .container {
        padding: 0 var(--space-6);
    }
}

@media (min-width: 1024px) {
    .container {
        /* Slightly reduce padding on large screens to give more content width */
        padding: 0 var(--space-6);
    }
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-base);
    font-weight: var(--font-medium);
    text-decoration: none;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    outline: none;
    position: relative;
    overflow: hidden;
}

.btn:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--color-gray-700);
    border: 2px solid var(--color-gray-300);
}

.btn-outline:hover {
    background: var(--color-gray-100);
    border-color: var(--color-gray-400);
}

.btn-large {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-lg);
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-sticky);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-gray-200);
    transition: all var(--transition-base);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-lg);
}

/* Top Bar */
.top-bar {
    background: var(--color-gray-900);
    color: var(--color-gray-300);
    padding: var(--space-2) 0;
    font-size: var(--text-sm);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info {
    display: flex;
    gap: var(--space-6);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--color-gray-300);
    text-decoration: none;
    transition: var(--transition-base);
}

.contact-item:hover {
    color: var(--color-accent);
}

.social-links {
    display: flex;
    gap: var(--space-3);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--color-gray-300);
    text-decoration: none;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

.social-link:hover {
    color: var(--color-accent);
    background: rgba(6, 182, 212, 0.1);
}

/* Navigation */
.navbar {
    padding: var(--space-4) 0;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
    color: var(--color-gray-800);
}

.logo-img {
    width: 40px;
    height: 40px;
}

.logo-text {
    font-family: 'AR Essence', 'Poppins', 'Arial Black', Arial, sans-serif;
    font-size: var(--text-2xl);
    font-weight: normal;
    letter-spacing: 0.04em;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-accent {
    color: var(--color-accent);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-8);
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-2) 0;
    font-weight: var(--font-medium);
    color: var(--color-gray-700);
    text-decoration: none;
    transition: var(--transition-base);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-icon {
    font-size: var(--text-xs);
    transition: var(--transition-base);
}

.dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: var(--space-2);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-base);
    z-index: var(--z-dropdown);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: var(--space-3) var(--space-4);
    color: var(--color-gray-700);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: var(--transition-base);
}

.dropdown-link:hover {
    background: var(--color-gray-100);
    color: var(--color-primary);
}

/* ===== MULTI-LEVEL DROPDOWN NAVIGATION ===== */

/* Mega dropdown for Technology Areas */
.mega-dropdown {
    position: static;
}

.mega-menu {
    left: 0;
    right: 0;
    min-width: 800px;
    max-width: 1440px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    padding: var(--space-6);
}

/* Submenu dropdown styling */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3);
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
    background: var(--color-gray-50);
    margin-bottom: var(--space-2);
}

.dropdown-submenu .dropdown-link:hover {
    background: linear-gradient(135deg, var(--color-primary), var(--color-brand-2));
    color: var(--color-white);
    transform: translateX(4px);
}

.dropdown-submenu .dropdown-link i:first-child {
    margin-right: var(--space-2);
    font-size: var(--text-base);
}

.submenu-icon {
    font-size: var(--text-xs);
    transition: var(--transition-base);
}

.dropdown-submenu:hover .submenu-icon {
    transform: translateX(2px);
}

/* Submenu content */
.dropdown-submenu-content {
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 220px;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: var(--space-3);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all var(--transition-base);
    z-index: calc(var(--z-dropdown) + 1);
    border: 1px solid var(--color-gray-200);
}

.dropdown-submenu:hover .dropdown-submenu-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.dropdown-submenu-content .dropdown-link {
    background: transparent;
    margin-bottom: 0;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
}

.dropdown-submenu-content .dropdown-link:hover {
    background: var(--color-brand-6);
    color: var(--color-primary);
    transform: translateX(2px);
}

/* Third-level dropdown support */
.dropdown-submenu-nested {
    position: relative;
}

.dropdown-submenu-level3 {
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 200px;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: var(--space-3);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all var(--transition-base);
    z-index: calc(var(--z-dropdown) + 2);
    border: 1px solid var(--color-gray-200);
}

.dropdown-submenu-nested:hover .dropdown-submenu-level3 {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.dropdown-submenu-level3 .dropdown-link {
    background: transparent;
    margin-bottom: 0;
    padding: var(--space-1-5) var(--space-2-5);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    color: var(--color-gray-700);
}

.dropdown-submenu-level3 .dropdown-link:hover {
    background: var(--color-brand-5);
    color: var(--color-primary);
    transform: translateX(2px);
}

/* Enhanced dropdown links with icons */
.dropdown-link i {
    margin-right: var(--space-2);
    width: 16px;
    text-align: center;
}

/* ===== NAVIGATION SEARCH ===== */
.nav-search {
    display: flex;
    align-items: center;
}

.search-form {
    display: flex;
    align-items: center;
    background: var(--color-white);
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius-full);
    padding: var(--space-1);
    transition: var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.search-form:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(14, 116, 144, 0.1);
}

.search-input {
    border: none;
    outline: none;
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-sm);
    color: var(--color-gray-700);
    background: transparent;
    width: 200px;
    transition: var(--transition-base);
}

.search-input::placeholder {
    color: var(--color-gray-400);
}

.search-input:focus {
    width: 250px;
}

.search-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-full);
    width: 32px;
    height: 32px;
    cursor: pointer;
    transition: var(--transition-base);
}

.search-button:hover {
    background: var(--color-primary-dark);
    transform: scale(1.05);
}

.search-button i {
    font-size: var(--text-sm);
}

/* ===== GOOGLE SEARCH & UNUSED SEARCH CLASSES (REMOVED) ===== */
/* Google Custom Search classes removed: gcse-search, gsc-*, gs-* - not in use */
/* search-highlight, search-notification classes removed - not in use */

/* ===== CONTENT PAGES ===== */
.page-hero {
    padding: calc(var(--space-20) + 60px) 0 var(--space-12) 0;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: var(--color-white);
    text-align: center;
}

.page-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-title {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-4);
    font-family: var(--font-primary);
}

.page-subtitle {
    font-size: var(--text-lg);
    opacity: 0.9;
    line-height: 1.6;
}

.content-section {
    padding: var(--space-16) 0;
    margin-bottom: 2.5rem;
}

.content-section h2 {
    color: #1e3a8a;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.content-section h3 {
    color: #1e40af;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Ensure h3 in content blocks follow the same treatment */
.content-block h3 {
    color: #1e40af;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Align WordPress-exported headings in content with our defaults */
.content-section .wp-block-heading,
.content-block .wp-block-heading,
.article-main .wp-block-heading {
    font-family: var(--font-primary);
    color: #1e3a8a;
    margin-bottom: 1.5rem;
}

.content-block {
    margin-bottom: var(--space-12);
}

.content-block h2 {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--color-primary);
    margin-bottom: var(--space-4);
    font-family: var(--font-primary);
}

.content-block p,
.content-section p,
.article-main p,
.wp-block-paragraph {
    color: var(--color-gray-700);
    line-height: 1.7;
    margin-bottom: var(--space-6);
}

/* Overview headings used across article content */
.content-section .overview,
.content-block .overview,
.article-main .overview {
    color: #1e3a8a;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-primary);
}

/* ===== CONTENT LISTS & TABLES ===== */

/* List Styling */
.content-block ul,
.content-section ul,
.article-main ul,
ul.wp-block-list {
    margin: var(--space-4) 0 var(--space-6) 0;
    padding-left: var(--space-8);
    list-style: none;
    position: relative;
}

.content-block ul li,
.content-section ul li,
.article-main ul li,
ul.wp-block-list li {
    position: relative;
    margin-bottom: var(--space-3);
    padding-left: var(--space-4);
    line-height: 1.6;
    color: var(--color-gray-700);
}

.content-block ul li::before,
.content-section ul li::before,
.article-main ul li::before,
ul.wp-block-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
    transform: translateY(-50%);
}

.content-block ul li:hover::before,
.content-section ul li:hover::before,
.article-main ul li:hover::before,
ul.wp-block-list li:hover::before {
    background: var(--color-accent);
    transform: translateY(-50%) scale(1.2);
    transition: all var(--transition-base);
}

.content-block ul li a,
.content-section ul li a,
.article-main ul li a,
ul.wp-block-list li a {
    color: var(--color-primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all var(--transition-base);
}

.content-block ul li a:hover,
.content-section ul li a:hover,
.article-main ul li a:hover,
ul.wp-block-list li a:hover {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

/* Nested Lists */
.content-block ul ul,
.content-section ul ul,
.article-main ul ul,
.wp-block-list ul {
    margin: var(--space-2) 0;
    padding-left: var(--space-6);
}

.content-block ul ul li::before,
.content-section ul ul li::before,
.article-main ul ul li::before,
.wp-block-list ul li::before {
    width: 4px;
    height: 4px;
    background: var(--color-gray-400);
}

/* Simple dash bullets for ul nested inside ol (no circles) */
.content-block ol ul li::before,
.content-section ol ul li::before,
.article-main ol ul li::before,
ol.wp-block-list ul li::before {
    content: '–';
    position: absolute;
    left: 0;
    top: 0;
    width: auto;
    height: auto;
    background: none;
    border-radius: 0;
    color: var(--color-gray-600);
    font-weight: 400;
    transform: none;
}

/* ========================================
   ORDERED LISTS (Numbered Lists)
   ======================================== */

.content-block ol,
.content-section ol,
.article-main ol,
ol.wp-block-list {
    margin: var(--space-4) 0 var(--space-6) 0;
    padding-left: var(--space-8);
    counter-reset: list-counter;
    list-style: none;
    position: relative;
}

.content-block ol li,
.content-section ol li,
.article-main ol li,
ol.wp-block-list li {
    position: relative;
    margin-bottom: var(--space-3);
    padding-left: var(--space-6);
    line-height: 1.6;
    color: var(--color-gray-700);
    counter-increment: list-counter;
}

.content-block ol li::before,
.content-section ol li::before,
.article-main ol li::before,
ol.wp-block-list li::before {
    content: counter(list-counter) ".";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 600;
    color: var(--color-primary);
    font-size: 0.95em;
    min-width: 1.5em;
    text-align: left;
}

.content-block ol li:hover::before,
.content-section ol li:hover::before,
.article-main ol li:hover::before,
ol.wp-block-list li:hover::before {
    color: var(--color-accent);
    transform: scale(1.1);
    transition: all var(--transition-base);
}

/* Nested Ordered Lists */
.content-block ol ol,
.content-section ol ol,
.article-main ol ol,
ol.wp-block-list ol {
    margin: var(--space-2) 0;
    padding-left: var(--space-6);
    counter-reset: nested-counter;
}

.content-block ol ol li,
.content-section ol ol li,
.article-main ol ol li,
ol.wp-block-list ol li {
    counter-increment: nested-counter;
}

.content-block ol ol li::before,
.content-section ol ol li::before,
.article-main ol ol li::before,
ol.wp-block-list ol li::before {
    content: counter(nested-counter, lower-alpha) ".";
    color: var(--color-gray-600);
    font-weight: 500;
}

/* Third Level Nested Lists */
.content-block ol ol ol li::before,
.content-section ol ol ol li::before,
.article-main ol ol ol li::before,
ol.wp-block-list ol ol li::before {
    content: counter(nested-counter, lower-roman) ".";
    color: var(--color-gray-500);
}

/* ========================================
   SIDEBAR LISTS
   ======================================== */

/* Sidebar Box Lists - General Styling */
.sidebar-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-box ul li {
    margin-bottom: 0.6rem;
    position: relative;
    padding-left: 1.2rem;
}

/* Elegant circular bullet */
.sidebar-box ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-gray-500);
    transform: translateY(-50%);
    transition: transform var(--transition-base), background-color var(--transition-base);
}

.sidebar-box ul li:hover::before {
    background: var(--color-accent);
    transform: translateY(-50%) scale(1.15);
}

/* Sidebar Nested Lists */
.sidebar-box ul ul {
    margin-top: 0.5rem;
    padding-left: 1rem;
    border-left: 2px solid var(--color-gray-200);
}

.sidebar-box ul ul li {
    margin-bottom: 0.4rem;
    padding-left: 1rem;
    font-size: 0.9em;
}

/* Nested: subtle hollow circle */
.sidebar-box ul ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: transparent;
    border: 1.5px solid var(--color-gray-300);
    transform: translateY(-50%);
}

.sidebar-box ul ul li:hover::before {
    color: var(--color-accent);
}

/* Sidebar Links */
.sidebar-box ul li a {
    color: var(--color-gray-700);
    text-decoration: none;
    display: block;
    transition: all var(--transition-base);
    font-size: 0.9rem;
    line-height: 1.4;
}

.sidebar-box ul li a:hover {
    color: var(--color-accent);
    padding-left: 0.25rem;
}

/* TOC (Table of Contents) - Keep existing + enhance */
.toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 0;
}

.toc li::before {
    display: none;
    /* TOC doesn't need bullets */
}

.toc a {
    color: var(--color-gray-600);
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
    padding: 0.4rem 0 0.4rem 0.75rem;
    border-left: 3px solid transparent;
    transition: all var(--transition-base);
    line-height: 1.4;
}

.toc a:hover,
.toc a.active {
    color: var(--color-accent);
    border-left-color: var(--color-accent);
    background: rgba(6, 182, 212, 0.05);
}

/* Related List - Enhanced */
.related-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-list li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.2rem;
}

/* Related list: elegant circular bullet */
.related-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-primary);
    transform: translateY(-50%);
    transition: transform var(--transition-base), background-color var(--transition-base);
}

.related-list li:hover::before {
    background: var(--color-accent);
    transform: translateY(-50%) scale(1.2);
}

.related-list a {
    color: var(--color-gray-700);
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    line-height: 1.5;
    transition: color var(--transition-base);
}

.related-list a:hover {
    color: var(--color-accent);
}

/* Related List Nested */
.related-list ul {
    margin-top: 0.5rem;
    padding-left: 1rem;
    border-left: 2px solid var(--color-gray-200);
}

.related-list ul li {
    margin-bottom: 0.5rem;
    font-size: 0.85em;
}

.related-list ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: transparent;
    border: 1.5px solid var(--color-gray-300);
    transform: translateY(-50%);
}

/* Table Styling */
.content-block table,
.content-section table,
.article-main table,
.wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-6) 0;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-gray-200);
}

.content-block table th,
.content-section table th,
.article-main table th,
.wp-block-table table th {
    background: linear-gradient(135deg, var(--color-primary), var(--color-brand-2));
    color: var(--color-white);
    font-weight: var(--font-semibold);
    padding: var(--space-4);
    text-align: left;
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.content-block table td,
.content-section table td,
.article-main table td,
.wp-block-table table td {
    padding: var(--space-4);
    border-bottom: 1px solid var(--color-gray-100);
    vertical-align: top;
    line-height: 1.6;
    color: var(--color-gray-700);
}

.content-block table td:first-child,
.content-section table td:first-child,
.article-main table td:first-child,
.wp-block-table table td:first-child {
    font-weight: var(--font-semibold);
    color: var(--color-primary);
    background: var(--color-gray-50);
    width: 200px;
    min-width: 200px;
}

.content-block table tr:hover,
.content-section table tr:hover,
.article-main table tr:hover,
.wp-block-table table tr:hover {
    background: var(--color-brand-6);
}

.content-block table tr:hover td:first-child,
.content-section table tr:hover td:first-child,
.article-main table tr:hover td:first-child,
.wp-block-table table tr:hover td:first-child {
    background: var(--color-brand-5);
}

/* ===== WP-BLOCK-TABLE WRAPPER (REMOVED) ===== */
/* .wp-block-table standalone wrapper class removed - not in use */
/* Note: .wp-block-table table selectors kept as they ARE used */

/* Mobile table responsiveness */
@media (max-width: 768px) {

    .content-block table,
    .content-section table,
    .article-main table,
    .wp-block-table table {
        font-size: var(--text-sm);
    }

    .content-block table th,
    .content-section table th,
    .article-main table th,
    .wp-block-table table th {
        padding: var(--space-2-5);
        font-size: var(--text-xs);
    }

    .content-block table td,
    .content-section table td,
    .article-main table td,
    .wp-block-table table td {
        padding: var(--space-2-5);
    }

    .content-block table td:first-child,
    .content-section table td:first-child,
    .article-main table td:first-child,
    .wp-block-table table td:first-child {
        width: auto;
        min-width: 120px;
    }
}

/* Mobile Menu */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
    z-index: var(--z-modal);
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: var(--color-gray-700);
    transition: var(--transition-base);
}

.mobile-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--color-gray-900) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(6, 182, 212, 0.05) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
    min-height: calc(100vh - 120px);
    margin-top: 120px;
}

.hero-title {
    font-size: var(--text-5xl);
    font-weight: var(--font-extrabold);
    line-height: 1.1;
    margin-bottom: var(--space-6);
}

.hero-title-line {
    display: block;
}

.hero-title-accent {
    background: linear-gradient(135deg, var(--color-accent), var(--color-primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: var(--text-xl);
    line-height: 1.6;
    color: var(--color-gray-300);
    margin-bottom: var(--space-8);
}

.hero-stats {
    display: flex;
    gap: var(--space-6);
    margin-bottom: var(--space-8);
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-number {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    color: var(--color-accent);
    /* Fallback color */
    background: linear-gradient(135deg, var(--color-accent), var(--color-primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

/* Fallback for browsers that don't support background-clip */
@supports not (-webkit-background-clip: text) {
    .stat-number {
        color: var(--color-accent);
        -webkit-text-fill-color: initial;
    }
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--color-gray-400);
    margin-top: var(--space-2);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-actions {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-card {
    position: relative;
    transform: perspective(1000px) rotateY(-15deg) rotateX(10deg);
    transition: var(--transition-slow);
}

.hero-card:hover {
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
}

.terminal-window {
    background: var(--color-gray-900);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
    overflow: hidden;
    min-width: 400px;
}

.terminal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3) var(--space-4);
    background: var(--color-gray-800);
    border-bottom: 1px solid var(--color-gray-700);
}

.terminal-buttons {
    display: flex;
    gap: var(--space-2);
}

.terminal-btn {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
}

.terminal-close {
    background: #ff5f57;
}

.terminal-minimize {
    background: #ffbd2e;
}

.terminal-maximize {
    background: #28ca42;
}

.terminal-title {
    font-size: var(--text-sm);
    color: var(--color-gray-300);
}

.terminal-body {
    padding: var(--space-4);
    font-family: var(--font-mono);
    font-size: var(--text-sm);
}

.terminal-line {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.terminal-prompt {
    color: var(--color-accent);
}

.terminal-command {
    color: var(--color-gray-300);
}

.typing-animation {
    border-right: 2px solid var(--color-accent);
    animation: typing 3s steps(40, end), blink-cursor 0.75s step-end infinite;
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blink-cursor {
    from, to {
        border-color: transparent;
    }

    50% {
        border-color: var(--color-accent);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-arrow {
    animation: bounce 2s infinite;
}

.scroll-arrow i {
    font-size: var(--text-2xl);
    color: var(--color-gray-300);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* ===== SECTIONS ===== */
.section-header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.section-title {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    color: var(--color-gray-900);
    margin-bottom: var(--space-4);
}

.section-subtitle {
    font-size: var(--text-xl);
    color: var(--color-gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== SERVICES SECTION ===== */
.services {
    padding: var(--space-24) 0;
    background: var(--color-gray-50);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-6);
    margin: 0 auto;
}

.service-card {
    background: var(--color-white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-base);
    padding: var(--space-8);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    transform: scaleX(0);
    transition: var(--transition-base);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-6);
    color: var(--color-white);
    font-size: var(--text-2xl);
}

.service-title {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--color-gray-900);
    margin-bottom: var(--space-4);
}

.service-description {
    color: var(--color-gray-600);
    margin-bottom: var(--space-6);
    line-height: 1.7;
}

.service-features {
    list-style: none;
    margin-bottom: var(--space-6);
}

.service-features li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-2);
    color: var(--color-gray-700);
}

.service-features i {
    color: var(--color-accent);
    font-size: var(--text-sm);
}

/* service-link class removed - not in use */

/* ===== TECHNOLOGY CARDS ===== */
.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-4);
}

.tag {
    background: var(--color-gray-100);
    color: var(--color-gray-700);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Technology-specific card styling */
.tech-powershell .service-icon {
    background: linear-gradient(135deg, var(--color-brand-2), var(--color-brand-3));
}

.tech-powershell .tag {
    background: rgba(46, 87, 136, 0.1);
    color: var(--color-brand-2);
}

.tech-activedirectory .service-icon {
    background: linear-gradient(135deg, var(--color-primary), var(--color-brand-4));
}

.tech-activedirectory .tag {
    background: rgba(28, 48, 72, 0.1);
    color: var(--color-primary);
}

.tech-windowsserver .service-icon {
    background: linear-gradient(135deg, var(--color-brand-3), var(--color-accent));
}

.tech-windowsserver .tag {
    background: rgba(85, 135, 195, 0.1);
    color: var(--color-brand-3);
}

.tech-security .service-icon {
    background: linear-gradient(135deg, var(--color-brand-1), var(--color-primary-dark));
}

.tech-security .tag {
    background: rgba(19, 32, 47, 0.1);
    color: var(--color-brand-1);
}

.tech-cloud .service-icon {
    background: linear-gradient(135deg, var(--color-accent), var(--color-brand-5));
}

.tech-cloud .tag {
    background: rgba(140, 175, 218, 0.1);
    color: var(--color-accent-light);
}

.tech-operations .service-icon {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-brand-4));
}

.tech-operations .tag {
    background: rgba(55, 101, 157, 0.1);
    color: var(--color-secondary);
}

/* ===== SOLUTIONS SHOWCASE ===== */
.solutions-showcase {
    padding: var(--space-24) 0;
}

.solutions-tabs {
    max-width: 1000px;
    margin: 0 auto;
}

.tab-nav {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
    margin-bottom: var(--space-12);
    border-bottom: 1px solid var(--color-gray-200);
}

.tab-btn {
    padding: var(--space-4) var(--space-6);
    background: none;
    border: none;
    font-size: var(--text-base);
    font-weight: var(--font-medium);
    color: var(--color-gray-600);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all var(--transition-base);
}

.tab-btn.active,
.tab-btn:hover {
    color: var(--color-primary);
    border-bottom-color: var(--color-accent);
}

.tab-content {
    position: relative;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.solution-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
}

.solution-text h3 {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    color: var(--color-gray-900);
    margin-bottom: var(--space-4);
}

.solution-text p {
    color: var(--color-gray-600);
    margin-bottom: var(--space-6);
    line-height: 1.7;
}

.solution-benefits {
    list-style: none;
    margin-bottom: var(--space-8);
}

.solution-benefits li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
    color: var(--color-gray-700);
}

.solution-benefits i {
    color: var(--color-accent);
}

.solution-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ===== DIAGRAM CONTAINER (REMOVED) ===== */
/* diagram-container class removed - not in use */

/* ===== TIER DIAGRAM CLASSES (REMOVED) ===== */
/* tier, tier-0, tier-1, tier-2, tier:hover, tier h4 classes removed - not in use */

/* Code Preview - removed (code-preview, code-header, code-title, code-body classes not in use) */

/* Code Section Containers */
.code-section {
    margin: var(--space-6) 0;
    max-width: 100%;
    overflow-x: auto;
}

.code-section>div {
    max-width: 100%;
    overflow-x: auto;
}

/* General Code Block Styling */
pre {
    background: var(--color-gray-900);
    color: var(--color-gray-300);
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    line-height: 1.5;
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    overflow-x: auto;
    white-space: pre;
    max-width: 100%;
    box-sizing: border-box;
    margin: var(--space-4) 0;
    border: 1px solid var(--color-gray-700);
    box-shadow: var(--shadow-sm);
}

/* Code elements within content */
.content-section pre,
.article-main pre,
.content-block pre {
    max-width: 100%;
    overflow-x: auto;
    word-wrap: break-word;
    white-space: pre-wrap;
}

/* Specific constraints for code within article-main */
.article-main .code-section,
.article-main pre,
.article-main .code-section>div {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
    margin-left: 0;
    margin-right: 0;
}

.article-main .code-section {
    width: calc(100% - 0px);
    max-width: 100%;
    margin: var(--space-6) 0;
}

.article-main pre {
    width: calc(100% - 2rem);
    max-width: calc(100% - 2rem);
    margin: var(--space-4) 0;
}

/* Force content wrapping and container constraints */
.article-main {
    overflow-x: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.article-main * {
    max-width: 100%;
    box-sizing: border-box;
}

/* Code highlighter specific classes */
.code-container {
    max-width: 100% !important;
    overflow-x: auto !important;
    box-sizing: border-box !important;
}

/* code-wrapper class removed - not in use */

/* Ensure all direct children of code-section respect boundaries */
.code-section * {
    max-width: 100%;
    box-sizing: border-box;
}

/* Inline code styling */
code {
    background: var(--color-gray-100);
    color: var(--color-gray-800);
    font-family: var(--font-mono);
    font-size: 0.875em;
    padding: 0.125rem 0.25rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-gray-200);
}

/* Code within pre blocks */
pre code {
    background: transparent;
    color: inherit;
    padding: 0;
    border: none;
    font-size: inherit;
}

/* Mobile responsiveness for code blocks */
@media (max-width: 768px) {
    .code-section {
        margin: var(--space-4) 0;
    }

    pre {
        font-size: var(--text-xs);
        padding: var(--space-3);
        border-radius: var(--radius-md);
    }

    .code-body {
        padding: var(--space-3);
    }
}

/* Security Layers */
.security-layers {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.security-layer {
    padding: var(--space-4) var(--space-6);
    background: var(--color-white);
    border: 2px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    text-align: center;
    font-weight: var(--font-medium);
    position: relative;
    transition: var(--transition-base);
}

.security-layer:hover {
    border-color: var(--color-primary);
    background: var(--color-gray-50);
}

.security-layer[data-layer="1"] {
    border-left-color: #ef4444;
}

.security-layer[data-layer="2"] {
    border-left-color: #f59e0b;
}

.security-layer[data-layer="3"] {
    border-left-color: #10b981;
}

.security-layer[data-layer="4"] {
    border-left-color: #3b82f6;
}

.security-layer[data-layer="5"] {
    border-left-color: #8b5cf6;
}

/* ===== MONITORING DASHBOARD ===== */
.monitoring-dashboard {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
    padding: var(--space-6);
    background: var(--color-gray-900);
    border-radius: var(--radius-lg);
    color: var(--color-white);
}

.metric-card {
    background: var(--color-gray-800);
    padding: var(--space-4);
    border-radius: var(--radius-md);
    text-align: center;
}

.metric-card h4 {
    font-size: var(--text-sm);
    color: var(--color-gray-400);
    margin-bottom: var(--space-2);
}

.metric-value {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--color-accent);
}

/* ===== MAINTENANCE SCHEDULE ===== */
.maintenance-schedule {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-6);
    background: var(--color-gray-50);
    border-radius: var(--radius-lg);
}

.schedule-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3);
    background: var(--color-white);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--color-accent);
}

.schedule-time {
    font-weight: var(--font-semibold);
    color: var(--color-primary);
    font-size: var(--text-sm);
}

.schedule-task {
    color: var(--color-gray-700);
    font-size: var(--text-sm);
}

/* ===== ABOUT SECTION ===== */
.about {
    padding: var(--space-24) 0;
    background: var(--color-gray-50);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

.about-description {
    font-size: var(--text-lg);
    line-height: 1.7;
    color: var(--color-gray-600);
    margin-bottom: var(--space-8);
}

.expertise-areas {
    margin-bottom: var(--space-8);
}

.expertise-item {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.expertise-item i {
    font-size: var(--text-2xl);
    color: var(--color-accent);
    margin-top: var(--space-1);
}

.expertise-item h4 {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--color-gray-900);
    margin-bottom: var(--space-2);
}

.expertise-item p {
    color: var(--color-gray-600);
}

.profile-card {
    background: var(--color-white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-base);
    padding: var(--space-8);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    align-items: center;
}

font-size: var(--text-xl);
font-weight: var(--font-bold);
color: var(--color-gray-900);
margin-bottom: var(--space-2);
}

.profile-info p {
    color: var(--color-gray-600);
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: var(--space-24) 0;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-white);
    text-align: center;
}

.cta-title {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-6);
}

.cta-description {
    font-size: var(--text-xl);
    color: var(--color-gray-300);
    max-width: 800px;
    margin: 0 auto var(--space-10);
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--color-gray-900);
    color: var(--color-gray-300);
}

.footer-main {
    padding: var(--space-20) 0 var(--space-12);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-12);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
}

.footer-logo-img {
    width: 40px;
    height: 40px;
}

.footer-logo-text {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--color-white);
}

.footer-description {
    line-height: 1.7;
    margin-bottom: var(--space-6);
}

.footer-social {
    display: flex;
    gap: var(--space-3);
}

.footer-title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--color-white);
    margin-bottom: var(--space-6);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-3);
}

.footer-link {
    color: var(--color-gray-300);
    text-decoration: none;
    transition: var(--transition-base);
}

.footer-link:hover {
    color: var(--color-accent);
}

.contact-info .contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.contact-info i {
    color: var(--color-accent);
}

.footer-bottom {
    padding: var(--space-6) 0;
    border-top: 1px solid var(--color-gray-800);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom-links {
    display: flex;
    gap: var(--space-6);
}

.footer-bottom-link {
    color: var(--color-gray-400);
    text-decoration: none;
    font-size: var(--text-sm);
    transition: var(--transition-base);
}

.footer-bottom-link:hover {
    color: var(--color-accent);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    z-index: var(--z-fixed);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--color-accent);
    transform: translateY(-2px);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1023px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-12);
    }

    .solution-content {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: var(--space-12);
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-8);
    }
}

@media (max-width: 767px) {
    .top-bar {
        display: none;
    }

    .nav-menu,
    .nav-search {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    /* Mobile multi-level navigation */
    .mega-menu {
        grid-template-columns: 1fr;
        min-width: auto;
        max-width: none;
    }

    .dropdown-submenu-content {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: var(--color-gray-50);
        margin-top: var(--space-2);
        border-radius: var(--radius-md);
    }

    .dropdown-submenu .dropdown-link {
        background: var(--color-white);
    }

    /* Mobile 3rd level support */
    .dropdown-submenu-level3 {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: var(--color-gray-100);
        margin-top: var(--space-2);
        margin-left: var(--space-4);
        border-radius: var(--radius-md);
    }

    .dropdown-submenu-level3 .dropdown-link {
        background: var(--color-white);
        font-size: var(--text-sm);
    }

    .hero-title {
        font-size: var(--text-4xl);
    }

    .hero-stats {
        flex-direction: column;
        gap: var(--space-4);
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .terminal-window {
        min-width: auto;
        width: 100%;
    }

    .tab-nav {
        flex-direction: column;
        gap: 0;
    }

    .tab-btn {
        border-bottom: none;
        border-left: 3px solid transparent;
    }

    .tab-btn.active,
    .tab-btn:hover {
        border-left-color: var(--color-accent);
        border-bottom-color: transparent;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }
}

.article-body {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    max-width: 1440px;
    margin: 0 auto;
    /* Reduce outer padding to reclaim horizontal space */
    padding: 0 0.5rem 0 0;
}

.article-main {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.article-sidebar {
    padding: 0;
    height: fit-content;
    position: sticky;
    top: 2rem;
}

/* Inline callouts for article content */
.callout {
    border: 1px solid #e2e8f0;
    border-left-width: 4px;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    margin: 1rem 0;
    background: #f9fafb;
}

.callout p {
    margin: 0.25rem 0;
}

.callout.info {
    border-left-color: var(--color-info);
    background: linear-gradient(135deg, #f8fbff, #f3f7ff);
}

.callout.warning {
    border-left-color: var(--color-warning);
    background: linear-gradient(135deg, #fffaf2, #fff5e6);
}

.callout.success {
    border-left-color: var(--color-success);
    background: linear-gradient(135deg, #f3fcf8, #ecfbf5);
}

.callout.error {
    border-left-color: #ef4444;
    /* red-500 */
    background: linear-gradient(135deg, #fff5f5, #ffeaea);
}

.callout.tip {
    border-left-color: #d4a574;
    background: linear-gradient(135deg, #fefcfb, #fef8f1);
}

.callout.note {
    border-left: 6px solid #3b82f6;
    background: #e0f2fe;
    color: #1e3a8a;
}

.callout.danger {
    border-left: 6px solid #dc2626;
    background: #fee2e2;
    color: #991b1b;
}

.callout.fire {
    border-left: 6px solid #f59e42;
    background: #fff7ed;
    color: #b45309;
}

.callout.bomb {
    border-left: 6px solid #6d28d9;
    background: #ede9fe;
    color: #4c1d95;
}

.callout.securitywarning {
    border-left: 6px solid #f43f5e;
    background: #ffe4e6;
    color: #be123c;
}

.callout.notification {
    border-left: 6px solid #fbbf24;
    background: #fef9c3;
    color: #92400e;
}

.callout.comment {
    border-left: 6px solid #64748b;
    background: #f1f5f9;
    color: #334155;
}

/* info-box and warning-box removed - not in use */

/* toc, related-articles removed - not in use (toc-box is used and kept) */

@media (max-width: 768px) {
    .article-body {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .article-sidebar {
        position: static;
    }
}


/* Tip box styling for sidebar - Subtle Professional */
.tip-box {
    background: linear-gradient(135deg, #fefdfb, #fdf8f1);
    border-left: 3px solid #d4a574;
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.tip-box strong {
    color: #b8935f;
}

.tip-box code {
    background: rgba(212, 165, 116, 0.12);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #a0834c;
}

/* Sidebar Box Styling */
.sidebar-box {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Box Title Styling */
.box-title {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin: -0.5rem -0.5rem 1rem -0.5rem;
}

/* Different Background Themes for Each Box - Subtle & Elegant */
.toc-box {
    background: linear-gradient(135deg, #fafbfc, #f1f5f9);
    border-left: 4px solid #94a3b8;
}

.blue-title {
    background: linear-gradient(135deg, #94a3b8, #64748b);
    color: white;
}

.resources-box {
    background: linear-gradient(135deg, #f9fafb, #f0f4f0);
    border-left: 4px solid #86a891;
}

.green-title {
    background: linear-gradient(135deg, #86a891, #6b8e73);
    color: white;
}

.downloads-box {
    background: linear-gradient(135deg, #fafafa, #f7f5fa);
    border-left: 4px solid #a78bca;
}

.purple-title {
    background: linear-gradient(135deg, #a78bca, #9070b8);
    color: white;
}

.tips-box {
    background: linear-gradient(135deg, #fefcfb, #fef8f1);
    border-left: 4px solid #d4a574;
}

.orange-title {
    background: linear-gradient(135deg, #d4a574, #b8935f);
    color: white;
}

.help-box {
    background: linear-gradient(135deg, #fafcfb, #f0f9f6);
    border-left: 4px solid #7db3a3;
}

.teal-title {
    background: linear-gradient(135deg, #7db3a3, #669c8c);
    color: white;
}

/* Contact Button Styling - Subtle Professional */
.contact-btn {
    display: inline-block;
    background: linear-gradient(135deg, #7db3a3, #669c8c);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    margin-top: 1rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(125, 179, 163, 0.2);
}

.contact-btn:hover {
    background: linear-gradient(135deg, #669c8c, #558a7a);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(125, 179, 163, 0.3);
    color: white;
    text-decoration: none;
}

/* ===== DOWNLOAD ITEM CLASSES (REMOVED) ===== */
/* download-item, download-item:hover classes removed - not in use */

/* Professional Image Styling */
.image-container {
    margin: 2rem 0;
    text-align: center;
}

.image-wrapper {
    display: inline-block;
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    max-width: 100%;
}

.image-wrapper:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.image-caption {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 8px;
    font-size: 0.9rem;
    color: #64748b;
    font-style: italic;
    text-align: center;
    border-left: 4px solid #94a3b8;
}

.image-caption::before {
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g><circle cx="12" cy="10" r="6" fill="%23FFD600"/><rect x="10" y="16" width="4" height="4" fill="%23FFD600"/><g stroke="%23FFD600" stroke-width="2"><line x1="12" y1="2" x2="12" y2="4"/><line x1="12" y1="20" x2="12" y2="22"/><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"/><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"/><line x1="2" y1="12" x2="4" y2="12"/><line x1="20" y1="12" x2="22" y2="12"/><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"/><line x1="18.36" y1="5.64" x2="19.78" y1="4.22"/></g></g></svg>');
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
}

/*  Add a consistent lightbulb icon before caption text  */
.image-caption::before {
    content: "";
    display: inline-block;
    width: 1.05em;
    height: 1.05em;
    margin-right: 0.5rem;
    vertical-align: -0.15em;
    background-color: currentColor;
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23000" d="M12 2c-4.418 0-8 3.134-8 7 0 2.62 1.578 4.868 3.875 6.063L8 17h8l.125-1.937C18.422 13.868 20 11.62 20 9c0-3.866-3.582-7-8-7zM9 19h6v2H9z"/></svg>');
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23000" d="M12 2c-4.418 0-8 3.134-8 7 0 2.62 1.578 4.868 3.875 6.063L8 17h8l.125-1.937C18.422 13.868 20 11.62 20 9c0-3.866-3.582-7-8-7zM9 19h6v2H9z"/></svg>');
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.image-caption strong {
    color: #475569;
    font-style: normal;
}

/* Image Layout Variations */
.image-container.align-left {
    text-align: left;
    float: left;
    margin: 1rem 2rem 1rem 0;
    max-width: 45%;
}

.image-container.align-right {
    text-align: right;
    float: right;
    margin: 1rem 0 1rem 2rem;
    max-width: 45%;
}

.image-container.full-width {
    margin: 3rem 0;
}

.image-container.full-width .image-wrapper {
    max-width: 100%;
    width: 100%;
}

/* Small image variant */
.image-wrapper.small {
    max-width: 300px;
}

.image-wrapper.medium {
    max-width: 500px;
}

.image-wrapper.large {
    max-width: 800px;
}

/* PowerShell Icon Styling */
.ps-icon {
    display: inline-block;
    background: linear-gradient(135deg, #000d1a, #001a33);
    color: #E8E8E8;
    font-size: 11px;
    font-weight: normal;
    font-family: 'Courier New', monospace;
    padding: 2px 5px;
    border-radius: 3px;
    margin-right: 8px;
    vertical-align: middle;
    min-width: 22px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

/* PowerShell Icon Size Variations */
.ps-icon.small {
    font-size: 11px;
    padding: 1px 4px;
    min-width: 18px;
    margin-right: 6px;
}

.ps-icon.medium {
    font-size: 14px;
    padding: 3px 6px;
    min-width: 26px;
    margin-right: 10px;
}

/* ===== TABLE STYLES ===== */

/* Table container for horizontal scroll on wide tables */
.table-container {
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    margin: var(--space-6) 0;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Scrollbar styling for table containers */
.table-container::-webkit-scrollbar {
    height: 10px;
}

.table-container::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 5px;
}

.table-container::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 5px;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* ===== CONSOLIDATED TABLE THEME BASE ===== */
.table-theme {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    font-size: 0.875rem;
    /* 14px - smaller than paragraph text */
}

.table-theme th {
    background: transparent !important;
    color: #e5e7eb !important;
    font-weight: var(--font-bold);
    padding: var(--space-3) var(--space-4);
    text-align: left;
    font-size: 0.8125rem;
    /* 13px - smaller headers */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.table-theme td {
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
    line-height: 1.5;
    color: var(--color-gray-800);
    transition: all 0.2s ease;
    font-size: 0.875rem;
    /* 14px - consistent with table base */
}

.table-theme td:first-child {
    font-weight: var(--font-semibold);
    color: #374151;
}

.table-theme tbody tr:hover {
    background: #d1d5db !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.table-theme tbody tr:hover td:first-child {
    color: #1f2937;
}

.table-theme td strong,
.table-theme td em {
    color: #1f2937;
}

@media (max-width: 768px) {
    .table-container {
        margin: var(--space-4) 0;
        border-radius: var(--radius-md);
    }

    .table-theme {
        font-size: 0.8125rem;
        /* 13px on mobile */
        border-radius: var(--radius-md);
    }

    .table-theme th,
    .table-theme td {
        padding: var(--space-2) var(--space-3);
        font-size: 0.8125rem;
        /* 13px on mobile */
    }

    .table-theme th {
        font-size: 0.75rem;
        /* 12px headers on mobile */
    }
}

/* ===== TABLE COLOR MODIFIERS ===== */
.table-gray {
    box-shadow: 0 8px 32px rgba(75, 85, 99, 0.08);
    border-color: #e5e7eb;
}

.table-blue {
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.08);
    border-color: #dbeafe;
}

.table-green {
    box-shadow: 0 8px 32px rgba(34, 197, 94, 0.08);
    border-color: #dcfce7;
}

.table-yellow {
    box-shadow: 0 8px 32px rgba(234, 179, 8, 0.08);
    border-color: #fef3c7;
}

.table-red {
    box-shadow: 0 8px 32px rgba(239, 68, 68, 0.08);
    border-color: #fecaca;
}

.table-pink {
    box-shadow: 0 8px 32px rgba(236, 72, 153, 0.08);
    border-color: #fce7f3;
}

.table-orange {
    box-shadow: 0 8px 32px rgba(249, 115, 22, 0.08);
    border-color: #fed7aa;
}

.table-purple {
    box-shadow: 0 8px 32px rgba(147, 51, 234, 0.08);
    border-color: #e9d5ff;
}

.table-monochrome {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border-color: #d1d5db;
}

/* ===== IMAGE SIDE-BY-SIDE LAYOUT ===== */
.image-side-by-side {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin: 2rem 0;
}

.image-side-by-side .image-container {
    flex-shrink: 0;
    width: 300px;
}

.image-side-by-side p {
    flex: 1;
    margin: 0;
}

/* Mobile responsiveness for side-by-side images */
@media (max-width: 768px) {
    .image-side-by-side {
        flex-direction: column;
        gap: 1rem;
    }

    .image-side-by-side .image-container {
        width: 100%;
        max-width: 300px;
        align-self: center;
    }
}

/* ===== VIDEO EMBEDS ===== */
.video-container {
    width: 100%;
    max-width: 100%;
    margin: var(--space-6) 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    background: var(--color-gray-900);
}

.video-container iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: var(--radius-lg);
    display: block;
}

/* Responsive video */
@media (max-width: 768px) {
    .video-container {
        margin: var(--space-4) 0;
        border-radius: var(--radius-md);
    }

    .video-container iframe {
        height: 250px;
        border-radius: var(--radius-md);
    }
}

/* ===== TWO COLUMN LAYOUT ===== */
.two-column-layout {
    display: flex;
    gap: var(--space-6);
    align-items: flex-start;
    margin: var(--space-6) 0;
}

.two-column-layout .column-left {
    flex: 1;
    padding-right: var(--space-4);
}

.two-column-layout .column-right {
    flex: 1;
    padding-left: var(--space-4);
}

/* Responsive: stack columns on mobile */
@media (max-width: 768px) {
    .two-column-layout {
        flex-direction: column;
        gap: var(--space-4);
    }

    .two-column-layout .column-left,
    .two-column-layout .column-right {
        padding: 0;
    }
}

/* ===== TABLE-RESPONSIVE CLASS (REMOVED) ===== */
/* table-responsive wrapper class removed - not in use */

/* Compact styling for IPv6 address tables in ip-addressing.html */
.operations-ip-addressing .blue-table td:first-child,
.operations-ip-addressing .green-table td:first-child,
.operations-ip-addressing .grey-table td:first-child {
    width: 40px;
    min-width: 40px;
    padding: var(--space-2) var(--space-3);
    text-align: center;
    font-weight: var(--font-bold);
}

/* Narrow first column for housekeeping tasks tables */
.hk-narrow-col>thead>tr>th:first-child,
.hk-narrow-col>tbody>tr>td:first-child {
    width: 30px !important;
    min-width: 30px !important;
    max-width: 30px !important;
    text-align: center !important;
    padding-left: var(--space-2) !important;
    padding-right: var(--space-2) !important;
    overflow: hidden !important;
    white-space: nowrap !important;
}

/* Housekeeping table optimizations for better readability */
.hk-narrow-col td {
    font-size: 0.8125rem !important;
    /* 13px for dense content */
    line-height: 1.4 !important;
}

.hk-narrow-col th {
    font-size: 0.75rem !important;
    /* 12px for headers */
}

/* Ensure long text wraps properly in table cells */
.hk-narrow-col td {
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Code elements in tables should be smaller */
.table-theme code,
.hk-narrow-col code {
    font-size: 0.75rem;
    padding: 2px 4px;
}

/* Lists inside table cells - compact formatting */
.table-theme td ul,
.table-theme td ol,
.hk-narrow-col td ul,
.hk-narrow-col td ol {
    margin: 0.25rem 0;
    padding-left: 1.25rem;
    font-size: inherit;
}

.table-theme td ul li,
.table-theme td ol li,
.hk-narrow-col td ul li,
.hk-narrow-col td ol li {
    margin: 0.125rem 0;
    line-height: 1.4;
}

/* Strong and em elements in tables - slightly bolder without increasing size */
.table-theme td strong,
.hk-narrow-col td strong {
    font-weight: 600;
    color: inherit;
}

.table-theme td em,
.hk-narrow-col td em {
    font-style: italic;
    color: inherit;
}

.operations-ip-addressing .blue-table td,
.operations-ip-addressing .green-table td,
.operations-ip-addressing .grey-table td {
    padding: var(--space-2) var(--space-3);
}

.operations-ip-addressing .blue-table th,
.operations-ip-addressing .green-table th,
.operations-ip-addressing .grey-table th {
    padding: var(--space-2) var(--space-3);
}

/* Remove paragraph spacing inside IPv6 table cells */
.operations-ip-addressing .blue-table td p,
.operations-ip-addressing .green-table td p,
.operations-ip-addressing .grey-table td p {
    margin: 0;
    padding: 0;
    line-height: 1;
}

/* ===== INLINE STYLE REPLACEMENTS ===== */
/* Classes to replace common inline styles from WordPress migration */

/* Brand color text highlight */
.text-brand {
    color: var(--color-brand-2);
}

/* WordPress migration artifact - default text style */
.wp-inline-text {
    display: inline;
    color: var(--color-gray-800);
    font-weight: normal;
}

/* Small, low-risk utility helpers */
.text-muted {
    color: var(--color-gray-600);
}

.text-sm {
    font-size: 0.9em;
}

.ml-1 {
    margin-left: var(--space-1);
}

/* IPv6 table separator cells - dark background with light text */
.ipv6-separator {
    background-color: #333333 !important;
    color: #c0c0c0 !important;
    font-weight: bold !important;
    text-align: center;
    padding: var(--space-2) var(--space-1) !important;
}

/* More specific selectors for IPv6 tables */
.blue-table .ipv6-separator,
.green-table .ipv6-separator,
.grey-table .ipv6-separator {
    background-color: #333333 !important;
    color: #c0c0c0 !important;
    font-weight: bold !important;
}

/* IPv6 color-coded spans for address segments */
.ipv6-global {
    color: #008000 !important;
    font-weight: bold;
}

.ipv6-subnet {
    color: #ffa500 !important;
    font-weight: bold;
}

.ipv6-device {
    color: #ff0000 !important;
    font-weight: bold;
}

/* IPv6 table highlight cells */
.ipv6-highlight-yellow {
    background-color: #ffff00 !important;
    color: #000000 !important;
}

.ipv6-highlight-green {
    background-color: #9acd32 !important;
    color: #000000 !important;
}

.ipv6-highlight-red {
    background-color: #ff0000 !important;
    color: #ffffff !important;
}

/* Contact section styling */
.contact-section {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--color-gray-50) 0%, var(--color-gray-200) 100%);
    border-radius: var(--radius-xl);
}

.contact-section h3 {
    margin-top: 0;
    color: var(--color-primary);
}

.contact-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

/* ===== FAQ ACCORDION STYLES ===== */
.faq-accordion-wrap {
    margin: var(--space-6) 0;
}

.faq-accordion-title {
    background: linear-gradient(135deg, var(--color-gray-100), var(--color-gray-50));
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius-lg);
    padding: var(--space-4) var(--space-5);
    margin-bottom: var(--space-3);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    font-weight: var(--font-semibold);
    color: var(--color-gray-800);
    font-size: var(--text-base);
}

.faq-accordion-title::after {
    content: '+';
    position: absolute;
    right: var(--space-5);
    top: 50%;
    transform: translateY(-50%);
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--color-primary);
    transition: all var(--transition-base);
}

.faq-accordion-title.active::after {
    content: '−';
    color: var(--color-accent);
}

.faq-accordion-title:hover {
    background: linear-gradient(135deg, var(--color-brand-6), var(--color-brand-5));
    border-color: var(--color-primary);
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.faq-accordion-title.active {
    background: linear-gradient(135deg, var(--color-primary), var(--color-brand-2));
    color: var(--color-white);
    border-color: var(--color-primary);
}

.faq-accordion-title.active:hover {
    background: linear-gradient(135deg, var(--color-brand-2), var(--color-primary));
}

.faq-accordion-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.3s ease-in-out,
        padding 0.3s ease-in-out;
    background: var(--color-white);
    border-left: 3px solid transparent;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.faq-accordion-content.active {
    max-height: 5000px;
    opacity: 1;
    padding: var(--space-6);
    margin-bottom: var(--space-4);
    border-left-color: var(--color-accent);
    background: var(--color-gray-50);
    box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.05);
}

.faq-accordion-content p {
    margin-bottom: var(--space-4);
    line-height: 1.7;
    color: var(--color-gray-700);
}

.faq-accordion-content ul {
    margin: var(--space-4) 0;
    padding-left: var(--space-8);
}

.faq-accordion-content li {
    margin-bottom: var(--space-3);
    line-height: 1.6;
}

.faq-accordion-content a {
    color: var(--color-primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all var(--transition-base);
}

.faq-accordion-content a:hover {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

.faq-accordion-content strong {
    color: var(--color-primary);
    font-weight: var(--font-semibold);
}

.faq-to-top {
    margin-top: var(--space-6);
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-gray-200);
    text-align: right;
}

.faq-to-top a {
    color: var(--color-gray-600);
    text-decoration: none;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    transition: var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.faq-to-top a::before {
    content: '↑';
    font-size: var(--text-lg);
}

.faq-to-top a:hover {
    color: var(--color-accent);
    transform: translateY(-2px);
}

/* FAQ Section Titles */
.faq-term-title {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--color-primary);
    margin: var(--space-12) 0 var(--space-4) 0;
    padding-bottom: var(--space-3);
    border-bottom: 3px solid var(--color-accent);
    position: relative;
}

.faq-term-title::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--color-primary);
}

.faq-term-description {
    color: var(--color-gray-600);
    font-size: var(--text-base);
    line-height: 1.6;
    margin-bottom: var(--space-6);
    padding-left: var(--space-4);
    border-left: 3px solid var(--color-brand-5);
}

/* Responsive FAQ Styles */
@media (max-width: 768px) {
    .faq-accordion-title {
        padding: var(--space-3) var(--space-4);
        padding-right: var(--space-12);
        font-size: var(--text-sm);
    }

    .faq-accordion-title::after {
        right: var(--space-4);
        font-size: var(--text-xl);
    }

    .faq-accordion-content.active {
        padding: var(--space-4);
    }

    .faq-term-title {
        font-size: var(--text-xl);
    }
}

/* Support for legacy Arconix FAQ classes */
.arconix-faq-accordion-title {
    background: linear-gradient(135deg, var(--color-gray-100), var(--color-gray-50));
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius-lg);
    padding: var(--space-4) var(--space-5);
    margin-bottom: var(--space-3);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    font-weight: var(--font-semibold);
    color: var(--color-gray-800);
}

.arconix-faq-accordion-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.3s ease-in-out,
        padding 0.3s ease-in-out;
}

.arconix-faq-accordion-content.active {
    max-height: 5000px;
    opacity: 1;
    padding: var(--space-6);
    margin-bottom: var(--space-4);
}
