/*
 * AI-ttorney Complete Design System v3.1.9
 * Refined Option A: Blue Edition
 * Author: AI-ttorney Development Team
 * Updated: 2026-02-13
 *
 * Design Principles:
 * - Navy/Cyan/Teal color palette (no purple)
 * - Semi-bold typography (600) with larger sizes
 * - Blue-tinted shadows
 * - Glass-morphism effects
 * - Mobile-first responsive design
 */

/* =====================================================
   1. CSS VARIABLES & DESIGN TOKENS
   ===================================================== */
:root {
  /* === Brand Colors === */
  --brand-navy-dark: #0f172a;   /* Darkest blue for headers */
  --brand-navy: #1e3a8a;        /* Primary brand navy */
  --brand-navy-light: #2563eb;  /* Lighter navy accents */
  --brand-cyan: #06b6d4;        /* Cyan for innovation/AI */
  --brand-cyan-light: #22d3ee;  /* Light cyan highlights */
  --brand-teal: #0f766e;        /* Teal secondary color */
  --brand-teal-light: #14b8a6;  /* Light teal accents */

  /* === Gradients === */
  --gradient-primary: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  --gradient-secondary: linear-gradient(135deg, #1e3a8a 0%, #06b6d4 100%);
  --gradient-tertiary: linear-gradient(135deg, #06b6d4 0%, #0f766e 100%);
  --gradient-mesh: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #06b6d4 100%);

  /* === Backgrounds === */
  --bg-page: #ffffff;
  --bg-surface: #f8fafc;
  --bg-surface-alt: #f1f5f9;
  --bg-paper: #f7faf9;

  /* === Text Colors === */
  --text-heading: #0f172a;
  --text-main: #334155;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  /* === Shadows (Blue-tinted) === */
  --shadow-sm: 0 1px 2px 0 rgba(30, 58, 138, 0.08);
  --shadow-md: 0 4px 6px -1px rgba(30, 58, 138, 0.12), 0 2px 4px -1px rgba(30, 58, 138, 0.08);
  --shadow-lg: 0 10px 15px -3px rgba(30, 58, 138, 0.15), 0 4px 6px -2px rgba(30, 58, 138, 0.10);
  --shadow-hover: 0 20px 25px -5px rgba(30, 58, 138, 0.20), 0 10px 10px -5px rgba(30, 58, 138, 0.12);
  --shadow-cyan: 0 8px 24px rgba(6, 182, 212, 0.30);

  /* === Dimensions === */
  --gap: clamp(1.5rem, 4vw, 3rem);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --site-width: 1200px;
  --content-pad: clamp(12px, 3vw, 32px);
  --section-pad: clamp(32px, 6vw, 96px);
  --grid-gap: clamp(16px, 2.5vw, 24px);

  /* === Borders === */
  --border-light: #e2e8f0;

  /* === Transitions === */
  --transition: 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* =====================================================
   2. GLOBAL RESET & TYPOGRAPHY
   ===================================================== */
body {
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
}

/* Semi-bold headings with larger sizes */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-heading);
  font-weight: 600; /* Semi-bold */
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 5vw, 3.25rem); }
h3 { font-size: clamp(1.5rem, 3.5vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); font-weight: 500; }
h5 { font-size: clamp(1.1rem, 2vw, 1.25rem); font-weight: 500; }
h6 { font-size: 1rem; font-weight: 500; }

p {
  margin-bottom: 1.5rem;
  line-height: 1.75;
  max-width: none !important;
}

a {
  color: var(--brand-cyan);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition);
}

a:hover {
  color: var(--brand-navy);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Text Color Utilities */
/* These classes work on the element itself AND all child elements (headings, paragraphs, etc.) */

/* Basic Colors */
.text-white,
.text-white h1, .text-white h2, .text-white h3, .text-white h4, .text-white h5, .text-white h6,
.text-white p, .text-white span, .text-white em, .text-white strong, .text-white a {
  color: #ffffff !important;
}

.text-black,
.text-black h1, .text-black h2, .text-black h3, .text-black h4, .text-black h5, .text-black h6,
.text-black p, .text-black span, .text-black em, .text-black strong, .text-black a {
  color: #000000 !important;
}

/* Brand Colors */
.text-navy-dark,
.text-navy-dark h1, .text-navy-dark h2, .text-navy-dark h3, .text-navy-dark h4, .text-navy-dark h5, .text-navy-dark h6,
.text-navy-dark p, .text-navy-dark span, .text-navy-dark em, .text-navy-dark strong, .text-navy-dark a {
  color: var(--brand-navy-dark) !important;  /* #0f172a */
}

.text-navy,
.text-navy h1, .text-navy h2, .text-navy h3, .text-navy h4, .text-navy h5, .text-navy h6,
.text-navy p, .text-navy span, .text-navy em, .text-navy strong, .text-navy a {
  color: var(--brand-navy) !important;  /* #1e3a8a */
}

.text-cyan,
.text-cyan h1, .text-cyan h2, .text-cyan h3, .text-cyan h4, .text-cyan h5, .text-cyan h6,
.text-cyan p, .text-cyan span, .text-cyan em, .text-cyan strong, .text-cyan a {
  color: var(--brand-cyan) !important;  /* #06b6d4 */
}

.text-highlight,
.text-highlight h1, .text-highlight h2, .text-highlight h3, .text-highlight h4, .text-highlight h5, .text-highlight h6,
.text-highlight p, .text-highlight span, .text-highlight em, .text-highlight strong, .text-highlight a {
  color: var(--brand-cyan) !important;  /* #06b6d4 - alias */
}

.text-teal,
.text-teal h1, .text-teal h2, .text-teal h3, .text-teal h4, .text-teal h5, .text-teal h6,
.text-teal p, .text-teal span, .text-teal em, .text-teal strong, .text-teal a {
  color: var(--brand-teal) !important;  /* #0f766e */
}

/* Semantic Colors */
.text-dark,
.text-dark h1, .text-dark h2, .text-dark h3, .text-dark h4, .text-dark h5, .text-dark h6,
.text-dark p, .text-dark span, .text-dark em, .text-dark strong, .text-dark a {
  color: var(--text-heading) !important;  /* #0f172a */
}

.text-soft,
.text-soft h1, .text-soft h2, .text-soft h3, .text-soft h4, .text-soft h5, .text-soft h6,
.text-soft p, .text-soft span, .text-soft em, .text-soft strong, .text-soft a {
  color: var(--text-main) !important;  /* #334155 */
}

.text-muted,
.text-muted h1, .text-muted h2, .text-muted h3, .text-muted h4, .text-muted h5, .text-muted h6,
.text-muted p, .text-muted span, .text-muted em, .text-muted strong, .text-muted a {
  color: var(--text-muted) !important;  /* #64748b */
}

.text-light,
.text-light h1, .text-light h2, .text-light h3, .text-light h4, .text-light h5, .text-light h6,
.text-light p, .text-light span, .text-light em, .text-light strong, .text-light a {
  color: #e2e8f0 !important;  /* Light gray */
}

/* Status Colors */
.text-success,
.text-success h1, .text-success h2, .text-success h3, .text-success h4, .text-success h5, .text-success h6,
.text-success p, .text-success span, .text-success em, .text-success strong, .text-success a {
  color: #059669 !important;  /* Green */
}

.text-warning,
.text-warning h1, .text-warning h2, .text-warning h3, .text-warning h4, .text-warning h5, .text-warning h6,
.text-warning p, .text-warning span, .text-warning em, .text-warning strong, .text-warning a {
  color: #d97706 !important;  /* Amber */
}

.text-error,
.text-error h1, .text-error h2, .text-error h3, .text-error h4, .text-error h5, .text-error h6,
.text-error p, .text-error span, .text-error em, .text-error strong, .text-error a {
  color: #dc2626 !important;  /* Red */
}

/* =====================================================
   3. HEADER & NAVIGATION
   ===================================================== */
.site-header {
  background: var(--gradient-primary);
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
}

/* Fix header container width - align logo and menu properly */
.site-header .inside-header,
.site-header .grid-container {
  max-width: var(--site-width);
  margin: 0 auto;
  padding-left: var(--content-pad);
  padding-right: var(--content-pad);
}

/* Ensure site branding (logo) has proper spacing */
.site-branding {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

/* Navigation container - remove GeneratePress white background defaults */
.inside-navigation,
.main-navigation,
nav.main-navigation {
  background-color: transparent !important;
  background-image: none !important;
  background: none !important;
}

.main-navigation .main-nav ul li a,
.site-branding a,
.menu-toggle {
  color: rgba(255,255,255,0.95) !important;
  font-weight: 500;
}

.main-navigation .main-nav ul li a:hover {
  color: white !important;
  text-decoration: underline;
}

/* Desktop Navigation - Comprehensive GeneratePress Override */
@media (min-width: 769px) {
  /* Remove all backgrounds from navigation containers */
  .inside-navigation,
  .main-navigation,
  nav.main-navigation,
  .nav-aligned-right,
  .nav-aligned-left,
  .nav-aligned-center {
    background-color: transparent !important;
    background-image: none !important;
    background: none !important;
  }

  /* Override any GeneratePress menu wrapper styles */
  .main-navigation .main-nav ul,
  .main-navigation ul,
  .main-navigation .menu,
  .main-navigation > div,
  .inside-navigation,
  #site-navigation,
  #primary-navigation {
    background-color: transparent !important;
    background-image: none !important;
    background: none !important;
  }

  /* Ensure menu items have no background */
  .main-navigation li,
  .main-navigation .menu-item {
    background: none !important;
    background-color: transparent !important;
  }

  /* Ensure text remains white */
  .main-navigation .main-nav ul li a {
    color: rgba(255,255,255,0.95) !important;
  }
}

/* =====================================================
   4. LAYOUT CONTAINERS
   ===================================================== */
.container, .site-content {
  max-width: var(--site-width);
  margin: 0 auto;
  padding-left: var(--content-pad);
  padding-right: var(--content-pad);
}

/* Base Section */
.section {
  padding: var(--section-pad) 0;
  background: var(--bg-page);
}

/* Section Variants */
.section-white { background-color: white; }
.section-paper { background-color: var(--bg-paper); }
.section-soft { background-color: var(--bg-surface-alt); }
.section-brand {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.05) 0%, rgba(15, 118, 110, 0.05) 100%);
  border-top: 1px solid rgba(30, 58, 138, 0.1);
}
.section-dark {
  background: var(--gradient-primary);
  color: var(--text-inverse);
}
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark p {
  color: var(--text-inverse) !important;
}

/* =====================================================
   5. GLASS-MORPHISM CARDS
   ===================================================== */
.card,
.wp-block-group.card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

/* Top accent bar */
.card::before,
.wp-block-group.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-navy), var(--brand-cyan));
}

.card:hover,
.wp-block-group.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-hover);
  border-color: rgba(6, 182, 212, 0.4);
}

.card__title {
  margin-top: 0;
  color: var(--text-heading);
  font-size: 1.5rem;
  font-weight: 600;
}

.card__meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.card__body {
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.card__footer {
  margin-top: auto;
}

/* =====================================================
   6. BUTTONS
   ===================================================== */
.btn,
.wp-block-button__link {
  display: inline-flex;
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none !important;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  background: var(--gradient-secondary);
  color: white !important;
  box-shadow: var(--shadow-md);
}

.btn:hover,
.wp-block-button__link:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-hover);
  filter: brightness(1.1);
}

/* Button Variants */
/* Target: <a class="btn btn-primary"> OR <div class="wp-block-button btn-primary"><a class="wp-block-button__link"> */
a.btn-primary,
.wp-block-button.btn-primary .wp-block-button__link {
  background: var(--gradient-primary);
  box-shadow: 0 4px 20px rgba(30, 58, 138, 0.35);
}

a.btn-secondary,
.wp-block-button.btn-secondary .wp-block-button__link {
  background: var(--gradient-secondary);
  box-shadow: var(--shadow-cyan);
}

a.btn-tertiary,
.wp-block-button.btn-tertiary .wp-block-button__link {
  background: var(--gradient-tertiary);
  box-shadow: 0 4px 20px rgba(15, 118, 110, 0.35);
}

a.btn-ghost,
.wp-block-button.btn-ghost .wp-block-button__link {
  background: transparent;
  color: var(--brand-navy) !important;
  border: 2px solid var(--brand-navy);
  box-shadow: none;
}

a.btn-ghost:hover,
.wp-block-button.btn-ghost .wp-block-button__link:hover {
  background: rgba(30, 58, 138, 0.1);
  border-color: var(--brand-cyan);
  color: var(--brand-cyan) !important;
}

a.btn-light,
.wp-block-button.btn-light .wp-block-button__link {
  background: white;
  color: var(--brand-navy) !important;
  border: 1px solid var(--border-light);
}

a.btn-light:hover,
.wp-block-button.btn-light .wp-block-button__link:hover {
  background: var(--bg-surface);
}

/* Button Sizes */
a.btn-sm,
.wp-block-button.btn-sm .wp-block-button__link {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

a.btn-lg,
.wp-block-button.btn-lg .wp-block-button__link {
  padding: 1.25rem 2.5rem;
  font-size: 1.2rem;
}

/* =====================================================
   7. GRID SYSTEMS
   ===================================================== */
.grid {
  display: grid;
  gap: var(--grid-gap);
  margin: 2rem 0;
}

/* Grid variants with display: grid built-in */
.grid-2,
.grid-3,
.grid-4,
.grid-sidebar,
.grid-sidebar-reverse {
  display: grid !important;
  gap: var(--grid-gap);
  margin: 2rem 0;
}

.grid-2,
.grid-2.is-layout-grid {
  grid-template-columns: repeat(2, 1fr) !important;
}

.grid-3,
.grid-3.is-layout-grid {
  grid-template-columns: repeat(3, 1fr) !important;
}

.grid-4,
.grid-4.is-layout-grid {
  grid-template-columns: repeat(4, 1fr) !important;
}

/* Sidebar Layouts */
.grid-sidebar {
  grid-template-columns: 2fr 1fr;
}

.grid-sidebar-reverse {
  grid-template-columns: 1fr 2fr;
}

/* WordPress Gutenberg Compatibility - Handle wrapper divs */
.grid-2 > .wp-block-group__inner-container,
.grid-3 > .wp-block-group__inner-container,
.grid-4 > .wp-block-group__inner-container,
.grid-sidebar > .wp-block-group__inner-container,
.grid-sidebar-reverse > .wp-block-group__inner-container {
  display: grid;
  gap: var(--grid-gap);
  grid-template-columns: inherit;
}

/* Override WordPress native grid minimum column width */
.grid-2.is-layout-grid > *,
.grid-3.is-layout-grid > *,
.grid-4.is-layout-grid > * {
  min-width: 0 !important;
  width: auto !important;
}

/* Responsive Grid Behavior */
@media (max-width: 968px) {
  .grid-3,
  .grid-3.is-layout-grid,
  .grid-4,
  .grid-4.is-layout-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .grid-3 > .wp-block-group__inner-container,
  .grid-4 > .wp-block-group__inner-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-sidebar,
  .grid-sidebar-reverse {
    grid-template-columns: 1fr !important;
  }
  .grid-sidebar > .wp-block-group__inner-container,
  .grid-sidebar-reverse > .wp-block-group__inner-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .grid-2,
  .grid-2.is-layout-grid,
  .grid-3,
  .grid-3.is-layout-grid,
  .grid-4,
  .grid-4.is-layout-grid {
    grid-template-columns: 1fr !important;
  }
  .grid-2 > .wp-block-group__inner-container,
  .grid-3 > .wp-block-group__inner-container,
  .grid-4 > .wp-block-group__inner-container {
    grid-template-columns: 1fr;
  }
}

/* =====================================================
   8. SPLIT LAYOUTS (Image + Text)
   ===================================================== */

/* 3:2 Ratio - Image Left (60% / 40%) */
.split-layout-60-40 {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 3rem;
  align-items: center;
  margin: 2rem 0;
}

/* 2:3 Ratio - Image Right (40% / 60%) */
.split-layout-40-60 {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 3rem;
  align-items: center;
  margin: 2rem 0;
}

/* 1:1 Ratio - 50/50 Split */
.split-layout-50-50 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin: 2rem 0;
}

.split-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease;
}

.split-image:hover {
  transform: scale(1.02);
}

.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-content h3 {
  margin-bottom: 1rem;
}

.split-content p {
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

/* WordPress Gutenberg Compatibility for Split Layouts */
.split-layout-60-40 > .wp-block-group__inner-container,
.split-layout-40-60 > .wp-block-group__inner-container,
.split-layout-50-50 > .wp-block-group__inner-container {
  display: grid;
  grid-template-columns: inherit;
  gap: inherit;
  align-items: inherit;
}

@media (max-width: 968px) {
  .split-layout-60-40,
  .split-layout-40-60,
  .split-layout-50-50 {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .split-layout-60-40 > .wp-block-group__inner-container,
  .split-layout-40-60 > .wp-block-group__inner-container,
  .split-layout-50-50 > .wp-block-group__inner-container {
    grid-template-columns: 1fr;
  }
}

/* =====================================================
   9. CONTENT TYPE BOXES (For Grids)
   ===================================================== */

/* Icon Box (Icon + Heading Only) */
.icon-box {
  background: white;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: all 0.3s ease;
}

.icon-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.icon-box .icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.icon-box h4 {
  margin: 0;
  font-size: 1rem;
}

/* Icon + Text Box (Icon + Heading + Description) */
.icon-text-box {
  background: white;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: all 0.3s ease;
}

.icon-text-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.icon-text-box .icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-secondary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 1rem;
  box-shadow: var(--shadow-cyan);
  transition: transform 0.6s ease;
}

.icon-text-box:hover .icon {
  transform: rotateY(360deg);
}

.icon-text-box h4 {
  margin-bottom: 0.75rem;
}

.icon-text-box p {
  font-size: 0.95rem;
  color: var(--text-main);
  margin: 0;
  line-height: 1.6;
}

/* Text-Only Box */
.text-box {
  background: white;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.text-box:hover {
  box-shadow: var(--shadow-hover);
}

.text-box h4 {
  margin-bottom: 0.75rem;
}

.text-box p {
  font-size: 0.95rem;
  color: var(--text-main);
  margin: 0;
  line-height: 1.7;
}

/* List Box */
.list-box {
  background: white;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.list-box:hover {
  box-shadow: var(--shadow-hover);
}

.list-box h4 {
  margin-bottom: 1rem;
}

.list-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-box li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.95rem;
  color: var(--text-main);
}

.list-box li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand-cyan);
  font-weight: 700;
}

/* Stat Box */
.stat-box {
  background: white;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: all 0.3s ease;
}

.stat-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--brand-cyan);
}

.stat-number {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.1rem;
  color: var(--text-heading);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.stat-description {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* =====================================================
   10. BLOG POST CARDS
   ===================================================== */
.blog-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 1px solid var(--border-light);
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.blog-card-image {
  width: 100%;
  height: 240px;
  overflow: hidden;
  position: relative;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}

.blog-card-content {
  padding: 2rem;
}

.blog-card-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.blog-card-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--gradient-secondary);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 999px;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
}

.blog-card p {
  color: var(--text-main);
  margin-bottom: 1.5rem;
}

.blog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.blog-card-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.blog-card-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
}

/* =====================================================
   11. FEATURE BLOCKS
   ===================================================== */
.feature-block {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: start;
  padding: 2rem;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 1px solid var(--border-light);
}

.feature-block:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--brand-cyan);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-secondary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-cyan);
}

.feature-content h4 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.feature-content p {
  color: var(--text-main);
  margin-bottom: 0;
}

/* =====================================================
   12. ALTERNATING SECTIONS
   ===================================================== */
.alternating-section {
  margin: 4rem 0;
}

.alternating-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
}

.alternating-content:nth-child(even) .alternating-image {
  order: 2;
}

/* WordPress Gutenberg Compatibility for Alternating Content */
.alternating-content > .wp-block-group__inner-container {
  display: grid;
  grid-template-columns: inherit;
  gap: inherit;
  align-items: inherit;
}

.alternating-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.alternating-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-secondary);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.alternating-content:hover .alternating-image::before {
  opacity: 0.1;
}

.alternating-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.alternating-text h3 {
  margin-bottom: 1rem;
}

.alternating-text p {
  color: var(--text-main);
  margin-bottom: 1rem;
}

.alternating-text ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.alternating-text li {
  padding: 0.5rem 0;
  padding-left: 1.75rem;
  position: relative;
  color: var(--text-main);
}

.alternating-text li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand-cyan);
  font-weight: 700;
  font-size: 1.1rem;
}

@media (max-width: 968px) {
  .alternating-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .alternating-content > .wp-block-group__inner-container {
    grid-template-columns: 1fr;
  }

  .alternating-content:nth-child(even) .alternating-image {
    order: 1;
  }
}

/* =====================================================
   13. QUOTE BLOCKS
   ===================================================== */
.quote-block {
  background: white;
  border-left: 6px solid var(--brand-cyan);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin: 2rem 0;
}

.quote-block blockquote {
  font-size: 1.35rem;
  line-height: 1.7;
  color: var(--text-heading);
  font-weight: 500;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.quote-block blockquote::before {
  content: """;
  font-size: 3rem;
  color: var(--brand-cyan);
  line-height: 0;
  margin-right: 0.25rem;
}

.quote-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.quote-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 1.25rem;
}

.quote-author-info {
  display: flex;
  flex-direction: column;
}

.quote-author-name {
  font-weight: 600;
  color: var(--text-heading);
  font-size: 1.1rem;
}

.quote-author-title {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* =====================================================
   14. CTA SECTIONS
   ===================================================== */
.cta-section {
  background: var(--gradient-primary);
  padding: 4rem 3rem;
  border-radius: var(--radius-lg);
  text-align: center;
  color: white;
  box-shadow: var(--shadow-lg);
  margin: 3rem 0;
}

.cta-section h2 {
  color: white;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.2rem;
  opacity: 0.95;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* =====================================================
   15. TIMELINE
   ===================================================== */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gradient-secondary);
  transform: translateX(-50%);
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
  align-items: center;
}

.timeline-item:nth-child(even) .timeline-content:first-child {
  order: 3;
}

.timeline-content {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.timeline-content h4 {
  margin-bottom: 0.75rem;
  color: var(--text-heading);
}

.timeline-content p {
  margin-bottom: 0;
  color: var(--text-main);
}

.timeline-marker {
  width: 60px;
  height: 60px;
  background: var(--gradient-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
  box-shadow: var(--shadow-cyan);
  z-index: 2;
}

.timeline-empty {
  /* Empty space for alternating layout */
}

@media (max-width: 968px) {
  .timeline::before {
    left: 30px;
  }

  .timeline-item {
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
  }

  .timeline-empty {
    display: none;
  }

  .timeline-item:nth-child(even) .timeline-content:first-child {
    order: initial;
  }
}

/* =====================================================
   16. BADGES
   ===================================================== */

/* Base badge styles - applied to all badge classes */
.badge,
.badge-brand,
.badge-gray,
.badge-outline,
.badge-highlight {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45em 0.85em;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  line-height: 1;
}

/* Default badge */
.badge {
  background: var(--bg-surface-alt);
  color: var(--text-main);
}

/* Brand badge - teal background */
.badge-brand {
  background: var(--brand-teal);
  color: white;
}

/* Gray badge - light with border */
.badge-gray {
  background: var(--bg-surface);
  color: var(--text-muted);
  border: 1px solid var(--border-light);
}

/* Outline badge - transparent with teal border */
.badge-outline {
  background: transparent;
  border: 1px solid var(--brand-teal);
  color: var(--brand-teal);
}

/* Highlight badge - gradient background with cyan text */
.badge-highlight {
  background: var(--gradient-primary);
  color: var(--brand-cyan);
}

/* =====================================================
   16B. CALLOUT / ALERT BOXES
   ===================================================== */

/* Base Callout Styles */
.callout {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--brand-cyan);
  background: var(--bg-surface);
  margin: 1.5rem 0;
}

.callout-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.callout-content {
  flex: 1;
}

.callout-content h4,
.callout-content h5 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.callout-content p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-main);
}

.callout-content p:last-child {
  margin-bottom: 0;
}

/* Warning Callout - Red sideline */
.callout-warning {
  border-left-color: #dc2626;
  background: #fef2f2;
}

.callout-warning .callout-icon {
  color: #dc2626;
}

.callout-warning .callout-content h4,
.callout-warning .callout-content h5 {
  color: #991b1b;
}

.callout-warning .callout-content p {
  color: #7f1d1d;
}

/* Success Callout - Green/Cyan sideline */
.callout-success {
  border-left-color: var(--brand-cyan);
  background: #ecfeff;
}

.callout-success .callout-icon {
  color: var(--brand-teal);
}

.callout-success .callout-content h4,
.callout-success .callout-content h5 {
  color: var(--brand-teal);
}

.callout-success .callout-content p {
  color: #115e59;
}

/* Info Callout - Blue sideline */
.callout-info {
  border-left-color: var(--brand-navy-light);
  background: #eff6ff;
}

.callout-info .callout-icon {
  color: var(--brand-navy-light);
}

.callout-info .callout-content h4,
.callout-info .callout-content h5 {
  color: var(--brand-navy);
}

.callout-info .callout-content p {
  color: #1e3a5f;
}

/* Note Callout - Amber sideline */
.callout-note {
  border-left-color: #d97706;
  background: #fffbeb;
}

.callout-note .callout-icon {
  color: #d97706;
}

.callout-note .callout-content h4,
.callout-note .callout-content h5 {
  color: #92400e;
}

.callout-note .callout-content p {
  color: #78350f;
}

/* Comparison Layout - Side by side callouts */
.callout-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

@media (max-width: 768px) {
  .callout-comparison {
    grid-template-columns: 1fr;
  }
}

/* WordPress Gutenberg Compatibility for Callouts */
.wp-block-group.callout,
.wp-block-group.callout-warning,
.wp-block-group.callout-success,
.wp-block-group.callout-info,
.wp-block-group.callout-note {
  display: flex;
  gap: 1rem;
}

.callout > .wp-block-group__inner-container,
.callout-warning > .wp-block-group__inner-container,
.callout-success > .wp-block-group__inner-container,
.callout-info > .wp-block-group__inner-container,
.callout-note > .wp-block-group__inner-container {
  display: flex;
  gap: 1rem;
  width: 100%;
}

/* =====================================================
   16C. SVG ICON SUPPORT
   ===================================================== */

/* Base SVG styling for icon containers */
.icon svg,
.icon-box .icon svg,
.icon-text-box .icon svg,
.feature-icon svg,
.callout-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 40px;
  max-height: 40px;
}

/* SVG icons in gradient background containers - white stroke */
.icon-text-box .icon svg,
.feature-icon svg,
.timeline-marker svg {
  stroke: white;
  fill: none;
}

/* Larger SVG icons for icon boxes */
.icon-box .icon svg {
  max-width: 48px;
  max-height: 48px;
}

/* SVG icons in callouts - inherit color from parent */
.callout-icon svg {
  max-width: 24px;
  max-height: 24px;
  stroke: currentColor;
  fill: none;
}

/* Callout variant SVG colors */
.callout-warning .callout-icon svg {
  stroke: #dc2626;
}

.callout-success .callout-icon svg {
  stroke: var(--brand-teal);
}

.callout-info .callout-icon svg {
  stroke: var(--brand-navy-light);
}

.callout-note .callout-icon svg {
  stroke: #d97706;
}

/* SVG hover animation support */
.icon-text-box:hover .icon svg {
  transform: rotateY(360deg);
}

/* Ensure SVG drop shadows work */
.icon svg[style*="drop-shadow"],
.callout-icon svg[style*="drop-shadow"] {
  overflow: visible;
}

/* =====================================================
   17. TABLE STYLES
   ===================================================== */

/* WordPress table wrapper reset */
figure.wp-block-table {
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}

/* When table variant class is on figure, reset figure and style only table */
figure.wp-block-table.table-solid-header,
figure.wp-block-table.table-gradient-header,
figure.wp-block-table.table-striped,
figure.wp-block-table.table-bordered,
figure.wp-block-table.table-minimal,
figure.wp-block-table.table-pricing,
figure.wp-block-table.table-compact,
figure.wp-block-table.table-card {
  background: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}

/* Base Table Reset */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: white;
}

table th,
table td {
  padding: 1rem;
  text-align: left;
}

/* TABLE VARIANT 1: Solid Header */
/* Clean modern style with proper border-radius */
.table-solid-header table,
table.table-solid-header {
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
  margin: 2rem 0;
  overflow: hidden;
}

/* Header row styling */
.table-solid-header thead,
.table-solid-header table thead {
  background: var(--brand-navy);
}

.table-solid-header thead th,
.table-solid-header table thead th {
  color: white;
  font-weight: 600;
  padding: 1.25rem 1.5rem;
  border: none;
}

/* Round top corners on first and last header cells */
.table-solid-header thead th:first-child,
.table-solid-header table thead th:first-child {
  border-top-left-radius: var(--radius-md);
}

.table-solid-header thead th:last-child,
.table-solid-header table thead th:last-child {
  border-top-right-radius: var(--radius-md);
}

/* First row in tbody acts as header if no thead exists */
.table-solid-header tbody tr:first-child,
.table-solid-header table tbody tr:first-child {
  background: var(--brand-navy);
}

.table-solid-header tbody tr:first-child td,
.table-solid-header table tbody tr:first-child td {
  color: white;
  font-weight: 600;
  padding: 1.25rem 1.5rem;
  border: none;
}

/* Round top corners when first tbody row is header */
.table-solid-header tbody tr:first-child td:first-child,
.table-solid-header table tbody tr:first-child td:first-child {
  border-top-left-radius: var(--radius-md);
}

.table-solid-header tbody tr:first-child td:last-child,
.table-solid-header table tbody tr:first-child td:last-child {
  border-top-right-radius: var(--radius-md);
}

/* Body rows - subtle separator */
.table-solid-header tbody tr:not(:first-child),
.table-solid-header table tbody tr:not(:first-child) {
  background: white;
}

.table-solid-header tbody tr:not(:first-child) td,
.table-solid-header table tbody tr:not(:first-child) td {
  padding: 1rem 1.5rem;
  border-top: 1px solid #e2e8f0;
  color: var(--text-main);
}

/* Round bottom corners on last row */
.table-solid-header tbody tr:last-child td:first-child,
.table-solid-header table tbody tr:last-child td:first-child {
  border-bottom-left-radius: var(--radius-md);
}

.table-solid-header tbody tr:last-child td:last-child,
.table-solid-header table tbody tr:last-child td:last-child {
  border-bottom-right-radius: var(--radius-md);
}

/* Hover effect - skip header row */
.table-solid-header tbody tr:not(:first-child):hover,
.table-solid-header table tbody tr:not(:first-child):hover {
  background: #f8fafc;
}

/* TABLE VARIANT 2: Gradient Header */
.table-gradient-header table,
table.table-gradient-header {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin: 2rem 0;
}

.table-gradient-header thead,
.table-gradient-header table thead {
  background: var(--gradient-secondary);
}

.table-gradient-header thead th,
.table-gradient-header table thead th {
  color: white;
  font-weight: 600;
  padding: 1.25rem 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
}

.table-gradient-header thead th:last-child,
.table-gradient-header table thead th:last-child {
  border-right: none;
}

.table-gradient-header tbody tr,
.table-gradient-header table tbody tr {
  border-bottom: 1px solid var(--border-light);
}

.table-gradient-header tbody tr:last-child,
.table-gradient-header table tbody tr:last-child {
  border-bottom: none;
}

.table-gradient-header tbody tr:hover,
.table-gradient-header table tbody tr:hover {
  background: #f8fafc;
}

/* TABLE VARIANT 3: Striped Rows */
.table-striped table,
table.table-striped {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  margin: 2rem 0;
}

.table-striped thead,
.table-striped table thead {
  background: #f8fafc;
  border-bottom: 2px solid var(--brand-cyan);
}

.table-striped thead th,
.table-striped table thead th {
  color: var(--text-heading);
  font-weight: 600;
  padding: 1rem;
}

.table-striped tbody tr:nth-child(even),
.table-striped table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.table-striped tbody tr:hover,
.table-striped table tbody tr:hover {
  background: #e0f2fe;
}

.table-striped tbody td,
.table-striped table tbody td {
  padding: 1rem;
  color: var(--text-main);
}

/* TABLE VARIANT 4: Bordered */
.table-bordered table,
table.table-bordered {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--border-light);
  margin: 2rem 0;
}

.table-bordered thead,
.table-bordered table thead {
  background: linear-gradient(to bottom, #f8fafc, #f1f5f9);
}

.table-bordered thead th,
.table-bordered table thead th {
  color: var(--text-heading);
  font-weight: 600;
  padding: 1rem;
  border: 1px solid var(--border-light);
}

.table-bordered tbody td,
.table-bordered table tbody td {
  padding: 1rem;
  border: 1px solid var(--border-light);
  color: var(--text-main);
}

.table-bordered tbody tr:hover,
.table-bordered table tbody tr:hover {
  background: #fefce8;
}

/* TABLE VARIANT 5: Minimal */
.table-minimal table,
table.table-minimal {
  box-shadow: none;
  border: none;
  margin: 2rem 0;
}

.table-minimal thead,
.table-minimal table thead {
  border-bottom: 3px solid var(--brand-navy);
}

.table-minimal thead th,
.table-minimal table thead th {
  color: var(--brand-navy);
  font-weight: 600;
  padding: 1rem;
  border: none;
}

.table-minimal tbody tr,
.table-minimal table tbody tr {
  border-bottom: 1px solid #e2e8f0;
}

.table-minimal tbody tr:last-child,
.table-minimal table tbody tr:last-child {
  border-bottom: none;
}

.table-minimal tbody td,
.table-minimal table tbody td {
  padding: 1rem;
  color: var(--text-main);
}

.table-minimal tbody tr:hover,
.table-minimal table tbody tr:hover {
  background: #f8fafc;
}

/* TABLE VARIANT 6: Pricing Table */
.table-pricing table,
table.table-pricing {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  margin: 2rem 0;
}

.table-pricing thead,
.table-pricing table thead {
  background: var(--gradient-primary);
}

.table-pricing thead th,
.table-pricing table thead th {
  color: white;
  font-weight: 600;
  padding: 1.5rem 1rem;
  text-align: center;
  font-size: 1.1rem;
}

.table-pricing tbody td,
.table-pricing table tbody td {
  padding: 1.25rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--border-light);
}

.table-pricing tbody td:first-child,
.table-pricing table tbody td:first-child {
  text-align: left;
  font-weight: 600;
  background: #f8fafc;
}

.table-pricing tbody tr:last-child td,
.table-pricing table tbody tr:last-child td {
  border-bottom: none;
}

.table-pricing tbody tr:hover,
.table-pricing table tbody tr:hover {
  background: #fefce8;
}

/* Highlight column in pricing table */
.table-pricing .highlight-col,
.table-pricing table .highlight-col {
  background: #ecfeff !important;
  font-weight: 600;
  color: var(--brand-navy);
}

/* TABLE VARIANT 7: Compact Data Table */
.table-compact table,
table.table-compact {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  font-size: 0.9rem;
  margin: 2rem 0;
}

.table-compact thead,
.table-compact table thead {
  background: var(--brand-navy-light);
}

.table-compact thead th,
.table-compact table thead th {
  color: white;
  font-weight: 600;
  padding: 0.75rem 0.5rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.table-compact tbody td,
.table-compact table tbody td {
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid #f1f5f9;
  color: var(--text-main);
}

.table-compact tbody tr:last-child td,
.table-compact table tbody tr:last-child td {
  border-bottom: none;
}

.table-compact tbody tr:hover,
.table-compact table tbody tr:hover {
  background: #f8fafc;
}

/* TABLE VARIANT 8: Card-Style Table */
.table-card table,
table.table-card {
  border: none;
  box-shadow: none;
  margin: 2rem 0;
}

.table-card thead,
.table-card table thead {
  display: none;
}

.table-card tbody tr,
.table-card table tbody tr {
  display: block;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  margin-bottom: 1rem;
  overflow: hidden;
}

.table-card tbody tr:hover,
.table-card table tbody tr:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  transition: all 0.3s ease;
}

.table-card tbody td,
.table-card table tbody td {
  display: block;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f1f5f9;
}

.table-card tbody td:last-child,
.table-card table tbody td:last-child {
  border-bottom: none;
}

.table-card tbody td::before,
.table-card table tbody td::before {
  content: attr(data-label);
  font-weight: 600;
  color: var(--text-heading);
  display: inline-block;
  width: 140px;
  margin-right: 1rem;
}

/* Responsive Tables - Horizontal Scroll */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 2rem 0;
  border-radius: var(--radius-md);
}

.table-responsive table {
  margin: 0;
  min-width: 600px;
}

/* Responsive behavior for all tables on mobile */
@media (max-width: 768px) {
  .table-solid-header,
  .table-gradient-header,
  .table-striped,
  .table-bordered,
  .table-minimal,
  .table-pricing,
  .table-compact {
    font-size: 0.85rem;
  }

  .table-solid-header th,
  .table-gradient-header th,
  .table-striped th,
  .table-bordered th,
  .table-minimal th,
  .table-pricing th,
  .table-compact th,
  .table-solid-header td,
  .table-gradient-header td,
  .table-striped td,
  .table-bordered td,
  .table-minimal td,
  .table-pricing td,
  .table-compact td {
    padding: 0.75rem 0.5rem;
  }

  /* Convert pricing table to card style on mobile */
  .table-pricing {
    display: block;
  }

  .table-pricing thead {
    display: none;
  }

  .table-pricing tbody,
  .table-pricing tr,
  .table-pricing td {
    display: block;
    width: 100%;
  }

  .table-pricing tr {
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
  }

  .table-pricing td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--text-heading);
    display: block;
    margin-bottom: 0.25rem;
  }
}

/* Special cell styling */
.table-center {
  text-align: center !important;
}

.table-right {
  text-align: right !important;
}

.table-highlight {
  background: #fef3c7 !important;
  font-weight: 600;
}

.table-muted {
  color: var(--text-muted) !important;
  font-style: italic;
}

.table-success {
  color: #059669 !important;
  font-weight: 600;
}

.table-warning {
  color: #d97706 !important;
  font-weight: 600;
}

.table-error {
  color: #dc2626 !important;
  font-weight: 600;
}

/* =====================================================
   18. UTILITY CLASSES
   ===================================================== */

/* Spacing */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }

.pt-0 { padding-top: 0 !important; }
.pt-1 { padding-top: 0.5rem !important; }
.pt-2 { padding-top: 1rem !important; }
.pt-3 { padding-top: 2rem !important; }
.pt-4 { padding-top: 3rem !important; }

.pb-0 { padding-bottom: 0 !important; }
.pb-1 { padding-bottom: 0.5rem !important; }
.pb-2 { padding-bottom: 1rem !important; }
.pb-3 { padding-bottom: 2rem !important; }
.pb-4 { padding-bottom: 3rem !important; }

/* Alignment */
.text-left { text-align: left !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }

/* =====================================================
   BACKGROUND UTILITIES
   ===================================================== */

/* Solid Colors */
.bg-white { background-color: #ffffff !important; }
.bg-paper { background-color: var(--bg-paper) !important; }           /* #f7faf9 - off-white */
.bg-surface { background-color: var(--bg-surface) !important; }       /* #f8fafc - light gray */
.bg-soft { background-color: var(--bg-surface-alt) !important; }      /* #f1f5f9 - gray */

/* Brand Solid Colors */
.bg-navy-dark { background-color: var(--brand-navy-dark) !important; color: white !important; }  /* #0f172a */
.bg-navy { background-color: var(--brand-navy) !important; color: white !important; }            /* #1e3a8a */
.bg-cyan { background-color: var(--brand-cyan) !important; color: white !important; }            /* #06b6d4 */
.bg-teal { background-color: var(--brand-teal) !important; color: white !important; }            /* #0f766e */

/* Gradients */
.bg-gradient-primary {
  background: var(--gradient-primary) !important;  /* navy → blue */
  color: white !important;
}
.bg-gradient-secondary {
  background: var(--gradient-secondary) !important;  /* blue → cyan */
  color: white !important;
}
.bg-gradient-tertiary {
  background: var(--gradient-tertiary) !important;  /* cyan → teal */
  color: white !important;
}
.bg-gradient-mesh {
  background: var(--gradient-mesh) !important;  /* navy → blue → cyan */
  color: white !important;
}

/* Subtle/Transparent Backgrounds */
.bg-brand {
  background: linear-gradient(135deg, rgba(15,118,110,.12), rgba(37,99,235,.08)) !important;
}
.bg-brand-subtle {
  background: linear-gradient(135deg, rgba(15,118,110,.06), rgba(37,99,235,.04)) !important;
}

/* Legacy alias */
.bg-dark {
  background: var(--brand-navy-dark) !important;
  color: white !important;
}

/* Shadows & Borders */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.border-soft {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

/* =====================================================
   18. WORDPRESS BLOCK COMPATIBILITY
   ===================================================== */
.wp-block-columns {
  display: flex;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: var(--gap);
}

.wp-block-column {
  flex-grow: 1;
  flex-basis: 0;
  min-width: 280px;
}

.wp-block-group {
  margin-bottom: 2rem;
}

/* WordPress alignment classes for full-width content */
.alignwide {
  max-width: calc(var(--site-width) * 0.85);
  margin-left: auto;
  margin-right: auto;
}

.alignfull {
  max-width: 100%;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* Reduce WordPress block spacing on mobile */
@media (max-width: 768px) {
  /* Aggressive side spacing reduction - use minimal padding */
  :root {
    --content-pad: 8px;
  }

  .container,
  .site-content,
  .inside-header,
  .grid-container {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .wp-block-columns {
    margin-bottom: 1.5rem;
    gap: 1.5rem;
  }

  .wp-block-group {
    margin-bottom: 1.5rem;
  }

  .wp-block-cover,
  .wp-block-group,
  .wp-block-columns {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Reduce WordPress Cover block vertical padding on mobile */
  .wp-block-cover {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
    min-height: auto !important;
  }

  .wp-block-cover__inner-container {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  /* Reduce card padding on mobile */
  .card,
  .wp-block-group.card {
    padding: 1.5rem 1rem;
  }

  /* Full-width blocks on mobile should use edge-to-edge */
  .alignwide,
  .alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }
}

/* Form Compatibility */
.fluentform,
.wp-block-contact-form-7 {
  background: var(--bg-surface);
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.fluentform input,
.fluentform select,
.fluentform textarea,
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: white;
  transition: border-color var(--transition);
}

.fluentform input:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--brand-cyan);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.fluentform button[type=submit],
input[type="submit"] {
  width: 100%;
  padding: 14px;
  background: var(--gradient-secondary);
  color: white;
  border: none;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s ease;
}

.fluentform button[type=submit]:hover,
input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* =====================================================
   19. ANIMATED HERO SECTION
   ===================================================== */
.hero-section {
  background: linear-gradient(135deg, #0f172a, #1e3a8a, #06b6d4);
  background-size: 200% 200%;
  animation: gradientShift 15s ease infinite;
  padding: 5rem 2rem;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  margin-bottom: 3rem;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-section::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent);
  border-radius: 50%;
  top: -250px;
  right: -100px;
  filter: blur(80px);
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(50px) translateX(30px); }
}

.hero-section h2 {
  color: white;
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.hero-section p {
  color: rgba(255,255,255,0.95);
  font-size: 1.25rem;
  max-width: 700px;
  position: relative;
  z-index: 1;
  line-height: 1.8;
}

/* =====================================================
   19B. HERO WITH BACKGROUND IMAGE
   ===================================================== */
.hero-image {
  position: relative;
  padding: 8rem 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 3rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 500px;
}

/* Dark overlay for readability */
.hero-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.85) 0%,
    rgba(30, 58, 138, 0.75) 50%,
    rgba(6, 182, 212, 0.70) 100%
  );
  z-index: 1;
}

/* Content wrapper */
.hero-image-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.hero-image h1,
.hero-image h2 {
  color: white;
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-image p {
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  max-width: 700px;
  margin: 0 auto 2rem;
  line-height: 1.8;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

.hero-image .btn {
  margin: 0.5rem;
}

/* Light overlay variant (for darker images) */
.hero-image-light::before {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.85) 0%,
    rgba(248, 250, 252, 0.80) 100%
  );
}

.hero-image-light h1,
.hero-image-light h2,
.hero-image-light p {
  color: var(--text-heading);
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.5);
}

/* Subtle overlay variant (less opacity) */
.hero-image-subtle::before {
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.50) 0%,
    rgba(30, 58, 138, 0.40) 100%
  );
}

/* Gradient bottom fade */
.hero-image-fade::before {
  background: linear-gradient(
    to top,
    rgba(15, 23, 42, 0.95) 0%,
    rgba(30, 58, 138, 0.60) 50%,
    transparent 100%
  );
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-section {
    padding: 2.5rem 1.5rem;
    margin-bottom: 2rem;
  }

  .hero-image {
    padding: 2.5rem 1.5rem;
    min-height: auto;
  }
}

/* =====================================================
   19C. PAGE BANNERS (Compact subpage headers)
   ===================================================== */

/* Small Page Banner - Minimal height, title + breadcrumbs */
.page-banner-sm {
  position: relative;
  padding: 3rem 2rem;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 3rem;
  text-align: center;
}

/* Medium Page Banner - Standard subpage banner */
.page-banner-md {
  position: relative;
  padding: 4rem 2rem;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 3rem;
  text-align: center;
}

/* Large Page Banner - More content, still smaller than hero */
.page-banner-lg {
  position: relative;
  padding: 5rem 2rem;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 3rem;
  text-align: center;
}

/* Decorative overlay for all page banners */
.page-banner-sm::before,
.page-banner-md::before,
.page-banner-lg::before {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent);
  border-radius: 50%;
  top: -200px;
  right: -100px;
  filter: blur(60px);
  z-index: 1;
}

/* Content wrapper for page banners */
.page-banner-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

/* WordPress Gutenberg Compatibility for Page Banners */
.page-banner-sm > .wp-block-group__inner-container,
.page-banner-md > .wp-block-group__inner-container,
.page-banner-lg > .wp-block-group__inner-container {
  position: relative;
  z-index: 2;
}

/* Page banner heading styles */
.page-banner-sm h1,
.page-banner-md h1,
.page-banner-lg h1 {
  color: white;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-banner-sm h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.page-banner-md h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.page-banner-lg h1 {
  font-size: clamp(2.25rem, 4vw, 3.5rem);
}

/* Subtitle/description */
.page-banner-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* Breadcrumbs styling */
.page-banner-breadcrumbs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
}

.page-banner-breadcrumbs a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-banner-breadcrumbs a:hover {
  color: white;
}

.page-banner-breadcrumbs span {
  color: rgba(255, 255, 255, 0.6);
}

/* Page Banner with Background Image */
.page-banner-image-sm,
.page-banner-image-md,
.page-banner-image-lg {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 3rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-banner-image-sm {
  padding: 3rem 2rem;
  min-height: 200px;
}

.page-banner-image-md {
  padding: 4rem 2rem;
  min-height: 280px;
}

.page-banner-image-lg {
  padding: 5rem 2rem;
  min-height: 350px;
}

/* Overlay for background image page banners */
.page-banner-image-sm::before,
.page-banner-image-md::before,
.page-banner-image-lg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.80) 0%,
    rgba(30, 58, 138, 0.70) 50%,
    rgba(6, 182, 212, 0.65) 100%
  );
  z-index: 1;
}

/* WordPress Gutenberg Compatibility for Image Banners */
.page-banner-image-sm > .wp-block-group__inner-container,
.page-banner-image-md > .wp-block-group__inner-container,
.page-banner-image-lg > .wp-block-group__inner-container {
  position: relative;
  z-index: 2;
}

/* Left-aligned variant */
.page-banner-left {
  text-align: left;
}

.page-banner-left .page-banner-breadcrumbs {
  justify-content: flex-start;
}

/* Gradient variants */
.page-banner-gradient-secondary {
  background: var(--gradient-secondary);
}

.page-banner-gradient-tertiary {
  background: linear-gradient(135deg, var(--brand-teal) 0%, var(--brand-cyan) 100%);
}

/* Responsive adjustments for page banners */
@media (max-width: 768px) {
  .page-banner-sm {
    padding: 2rem 1.5rem;
  }

  .page-banner-md {
    padding: 3rem 1.5rem;
  }

  .page-banner-lg {
    padding: 4rem 1.5rem;
  }

  .page-banner-image-sm {
    padding: 2rem 1.5rem;
    min-height: 180px;
  }

  .page-banner-image-md {
    padding: 3rem 1.5rem;
    min-height: 220px;
  }

  .page-banner-image-lg {
    padding: 4rem 1.5rem;
    min-height: 280px;
  }
}

/* =====================================================
   20. RESPONSIVE UTILITIES
   ===================================================== */
@media (max-width: 640px) {
  .hide-mobile { display: none !important; }
  .show-mobile { display: block !important; }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-buttons .btn {
    width: 100%;
  }
}

@media (min-width: 641px) {
  .hide-desktop { display: none !important; }
  .show-desktop { display: block !important; }
}

/* =====================================================
   21. PRINT STYLES
   ===================================================== */
@media print {
  .site-header,
  .site-footer,
  .btn {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .card,
  .blog-card {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}