/*
Theme Name: EXPRE Child
Theme URI: https://expre.co.uk
Description: EXPRE Digital child theme for Divi
Author: EXPRE Digital
Author URI: https://expre.co.uk
Template: Divi
Version: 1.0.1
Text Domain: expre-child
*/

/* ============================================
   CSS CUSTOM PROPERTIES (Design System)
   ============================================ */
:root {
  --xp-navy:          #0D0D2B;
  --xp-purple:        #5A00D1;
  --xp-fuchsia:       #C300FF;
  --xp-accent:        #B42CFF;
  --xp-accent-hover:  #9B00E6;
  --xp-cyan:          #00D4FF;
  --xp-amber:         #FF9F43;
  --xp-bg:            #F8FAFC;
  --xp-card:          #FFFFFF;
  --xp-border:        #E2E8F0;
  --xp-text:          #1E293B;
  --xp-text-muted:    #64748B;
  --xp-teal:          #0D9488;
  --xp-dark-surface:  #111122;
  --xp-font:          'Varela Round', system-ui, sans-serif;
  --xp-font-size:     17px;
  --xp-line-height:   1.65;
  --xp-section-py:    clamp(56px, 8vw, 100px);
  --xp-container:     1200px;
  --xp-radius:        7px;
  --xp-radius-lg:     12px;
  --xp-shadow-sm:     0 1px 3px rgba(0,0,0,0.06);
  --xp-shadow-md:     0 4px 12px rgba(0,0,0,0.08);
  --xp-shadow-lg:     0 8px 30px rgba(0,0,0,0.1);
  --xp-shadow-xl:     0 20px 60px rgba(0,0,0,0.12);
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body,
.et_pb_section,
.et_pb_row,
.et_pb_column,
.et_pb_module {
  font-family: var(--xp-font) !important;
}

body {
  font-size: var(--xp-font-size);
  line-height: var(--xp-line-height);
  color: var(--xp-text);
  background: var(--xp-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--xp-accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--xp-accent-hover); }

/* ============================================
   TYPOGRAPHY — Divi overrides
   ============================================ */
h1, h2, h3, h4,
.et_pb_text_inner h1,
.et_pb_text_inner h2,
.et_pb_text_inner h3,
.et_pb_text_inner h4 {
  font-family: var(--xp-font) !important;
  color: var(--xp-navy);
  font-weight: 700;
  line-height: 1.2;
}

h1, .et_pb_text_inner h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2, .et_pb_text_inner h2 { font-size: clamp(2rem, 3.5vw, 2.8rem); margin-bottom: 16px; }
h3, .et_pb_text_inner h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); margin-bottom: 12px; }
h4, .et_pb_text_inner h4 { font-size: 1.1rem; margin-bottom: 8px; }

p, .et_pb_text_inner p { padding-bottom: 1em; }
p:not(.has-background):last-of-type { padding-bottom: 10px; }

.xp-text-accent { color: var(--xp-accent) !important; }

.xp-accent-underline {
  position: relative;
  display: inline;
}
.xp-accent-underline::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 4px;
  background: var(--xp-accent);
  border-radius: 2px;
}

/* Eyebrow / section label — targets Divi text module paragraph */
.xp-eyebrow .et_pb_text_inner p,
.xp-eyebrow p {
  display: inline-block;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 1.5px !important;
  color: var(--xp-accent) !important;
  margin-bottom: 12px !important;
}

.xp-section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
}
.xp-section-header .et_pb_text_inner p,
.xp-section-header p {
  color: var(--xp-text-muted);
  font-size: 1.1rem;
  margin-top: 8px;
}

.xp-section-footer { text-align: center; margin-top: 40px; }

/* ============================================
   BUTTONS
   ============================================ */
.xp-btn--primary,
.et_pb_button.xp-btn--primary,
a.xp-btn--primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--xp-font) !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  padding: 14px 28px !important;
  border-radius: var(--xp-radius) !important;
  border: 2px solid var(--xp-accent) !important;
  background: var(--xp-accent) !important;
  color: #fff !important;
  cursor: pointer;
  transition: all 0.25s ease !important;
  text-decoration: none !important;
}
.xp-btn--primary:hover,
.et_pb_button.xp-btn--primary:hover,
a.xp-btn--primary:hover {
  background: var(--xp-accent-hover) !important;
  border-color: var(--xp-accent-hover) !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(180,44,255,0.3) !important;
}

.xp-btn--outline,
a.xp-btn--outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--xp-font);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: var(--xp-radius);
  border: 2px solid var(--xp-border);
  background: transparent;
  color: var(--xp-navy);
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}
.xp-btn--outline:hover,
a.xp-btn--outline:hover {
  border-color: var(--xp-navy);
  color: var(--xp-navy);
}

.xp-btn--outline-white,
a.xp-btn--outline-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--xp-font);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: var(--xp-radius);
  border: 2px solid rgba(255,255,255,0.3);
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}
.xp-btn--outline-white:hover,
a.xp-btn--outline-white:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.xp-btn--ghost,
a.xp-btn--ghost {
  display: inline-flex;
  align-items: center;
  font-family: var(--xp-font);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 0;
  background: transparent;
  color: var(--xp-accent);
  border: none;
  cursor: pointer;
  transition: color 0.2s;
  text-decoration: none;
}
.xp-btn--ghost:hover,
a.xp-btn--ghost:hover { color: var(--xp-accent-hover); }

.xp-btn--lg { padding: 16px 36px !important; font-size: 1.05rem !important; }
.xp-btn--sm { padding: 10px 20px !important; font-size: 0.85rem !important; }

/* ============================================
   SECTION PATTERNS — applied via module_class
   ============================================ */

/* Dark navy section with dot-grid */
.xp-section--dark.et_pb_section,
.et_pb_section.xp-section--dark {
  background-color: var(--xp-navy) !important;
  color: #fff !important;
  position: relative;
}
.xp-section--dark.et_pb_section::before,
.et_pb_section.xp-section--dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.12) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}
.xp-section--dark .et_pb_row { position: relative; z-index: 1; }
.xp-section--dark .et_pb_text_inner h1,
.xp-section--dark .et_pb_text_inner h2,
.xp-section--dark .et_pb_text_inner h3,
.xp-section--dark .et_pb_text_inner h4,
.xp-section--dark h1,
.xp-section--dark h2,
.xp-section--dark h3,
.xp-section--dark h4 { color: #fff !important; }
.xp-section--dark .et_pb_text_inner p,
.xp-section--dark p { color: rgba(200,200,216,0.9) !important; }

/* Dark section hero typography — owns all font sizes, no Divi inline overrides */
.xp-section--dark .et_pb_text_inner h1 { font-size: 48px !important; line-height: 1.1 !important; }
.xp-section--dark .et_pb_text_inner h2 { font-size: 32px !important; line-height: 1.2 !important; }
.xp-section--dark .et_pb_text_inner p   { font-size: 17px !important; line-height: 1.75 !important; }
@media (max-width: 980px) {
  .xp-section--dark .et_pb_text_inner h1 { font-size: 36px !important; }
  .xp-section--dark .et_pb_text_inner h2 { font-size: 26px !important; }
}

/* Hero responsive breakpoints */
@media (max-width: 768px) {
  .xp-hero-strips__content h1 {
    font-size: clamp(1.5rem, 3.5vw, 2.4rem) !important;
    margin-bottom: 16px !important;
  }
  .xp-hero-strips__content .xp-hero__subtitle {
    font-size: 1rem !important;
    margin-bottom: 24px !important;
  }
  .xp-hero-strips__content .xp-hero__ctas {
    gap: 12px !important;
  }
  .xp-hero-strips__content .xp-hero__ctas .et_pb_button {
    font-size: 0.85rem !important;
    padding: 10px 20px !important;
  }
  .xp-hero-strips__content {
    max-width: 100% !important;
  }
  .xp-hero-strips__content h1,
  .xp-hero-strips__content .xp-hero__subtitle,
  .xp-hero-strips__content .xp-hero__ctas {
    max-width: 100% !important;
  }
  /* Mobile button sizing */
  .xp-btn--primary,
  .et_pb_button.xp-btn--primary,
  a.xp-btn--primary,
  .xp-btn--outline-white,
  a.xp-btn--outline-white {
    font-size: 0.85rem !important;
    padding: 10px 20px !important;
  }
}

@media (max-width: 480px) {
  .xp-hero-strips__content h1 {
    font-size: clamp(1.25rem, 3vw, 1.8rem) !important;
    margin-bottom: 12px !important;
  }
  .xp-hero-strips__content .xp-hero__subtitle {
    font-size: 0.9rem !important;
    margin-bottom: 20px !important;
  }
  .xp-hero-strips__content .xp-hero__ctas {
    gap: 8px !important;
    flex-direction: column !important;
  }
  .xp-hero-strips__content .xp-hero__ctas .et_pb_button {
    font-size: 0.8rem !important;
    padding: 8px 16px !important;
    width: 100% !important;
  }
  /* Extra small mobile button sizing */
  .xp-btn--primary,
  .et_pb_button.xp-btn--primary,
  a.xp-btn--primary,
  .xp-btn--outline-white,
  a.xp-btn--outline-white {
    font-size: 0.75rem !important;
    padding: 8px 14px !important;
  }
}

/* Blurb titles in dark sections - enhanced visibility */
.xp-section--dark .et_pb_blurb h4.et_pb_module_header {
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  margin-bottom: 12px !important;
  line-height: 1.3 !important;
}

/* Blurb body text in dark sections - ensure contrast */
.xp-section--dark .et_pb_blurb .et_pb_blurb_description p {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 0.96rem !important;
  opacity: 1 !important;
}

/* Light background section */
.xp-section--light.et_pb_section,
.et_pb_section.xp-section--light {
  background-color: var(--xp-bg) !important;
}

.et_pb_section.xp-section--light::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(-75deg, transparent 0px, transparent 42px, rgba(90, 0, 209, 0.1) 42px, rgba(90, 0, 209, 0.1) 43px, transparent 43px, transparent 51px, rgba(90, 0, 209, 0.07) 51px, rgba(90, 0, 209, 0.07) 52px, transparent 52px, transparent 110px, rgba(90, 0, 209, 0.12) 110px, rgba(90, 0, 209, 0.12) 111px, transparent 111px, transparent 135px, rgba(90, 0, 209, 0.06) 135px, rgba(90, 0, 209, 0.06) 136px, transparent 136px, transparent 142px, rgba(90, 0, 209, 0.09) 142px, rgba(90, 0, 209, 0.09) 143px, transparent 143px, transparent 200px), repeating-linear-gradient(-75deg, transparent 0px, transparent 55px, rgba(90, 0, 209, 0.06) 55px, rgba(90, 0, 209, 0.06) 57px, transparent 57px, transparent 130px, rgba(90, 0, 209, 0.09) 130px, rgba(90, 0, 209, 0.09) 133px, transparent 133px, transparent 250px), repeating-linear-gradient(-75deg, transparent 0px, transparent 80px, rgba(90, 0, 209, 0.04) 80px, rgba(90, 0, 209, 0.04) 84px, transparent 84px, transparent 170px, rgba(90, 0, 209, 0.07) 170px, rgba(90, 0, 209, 0.07) 175px, transparent 175px, transparent 300px);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0) 40%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0) 40%);
    pointer-events: none;
}




.xp-section--light .et_pb_text_inner p,
.xp-section--light .et_pb_text_inner h2,
.xp-section--light .et_pb_text_inner h3,
.xp-section--light p,
.xp-section--light h2,
.xp-section--light h3 {
  color: var(--xp-text) !important;
}

/* White section */
.xp-section--white.et_pb_section,
.et_pb_section.xp-section--white {
  background-color: #fff !important;
}

/* Gradient section with pulse rings */
.xp-section--gradient.et_pb_section,
.et_pb_section.xp-section--gradient {
  background: linear-gradient(135deg, var(--xp-navy) 0%, var(--xp-purple) 50%, var(--xp-fuchsia) 100%) !important;
  color: #fff !important;
  position: relative;
}
.xp-section--gradient.et_pb_section::before,
.et_pb_section.xp-section--gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%,
    rgba(255,255,255,0.04) 0px, rgba(255,255,255,0.04) 80px,
    transparent 82px, transparent 84px,
    rgba(255,255,255,0.03) 86px, rgba(255,255,255,0.03) 170px,
    transparent 172px, transparent 174px,
    rgba(255,255,255,0.022) 176px, rgba(255,255,255,0.022) 270px,
    transparent 272px, transparent 274px,
    rgba(255,255,255,0.015) 276px, rgba(255,255,255,0.015) 390px,
    transparent 392px
  );
  pointer-events: none;
  z-index: 0;
}
.xp-section--gradient .et_pb_row { position: relative; z-index: 1; }
.xp-section--gradient h1,
.xp-section--gradient h2,
.xp-section--gradient h3,
.xp-section--gradient h4,
.xp-section--gradient .et_pb_text_inner h1,
.xp-section--gradient .et_pb_text_inner h2,
.xp-section--gradient .et_pb_text_inner h3,
.xp-section--gradient .et_pb_text_inner h4 { color: #fff !important; }
.xp-section--gradient p,
.xp-section--gradient .et_pb_text_inner p { color: rgba(255,255,255,0.8) !important; }

/* Light with diagonal line pattern */
.xp-section--pattern.et_pb_section,
.et_pb_section.xp-section--pattern {
  background-color: var(--xp-bg) !important;
  position: relative;
}
.xp-section--pattern.et_pb_section::before,
.et_pb_section.xp-section--pattern::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(-75deg,
      transparent 0px, transparent 42px,
      rgba(90,0,209,0.1) 42px, rgba(90,0,209,0.1) 43px,
      transparent 43px, transparent 51px,
      rgba(90,0,209,0.07) 51px, rgba(90,0,209,0.07) 52px,
      transparent 52px, transparent 110px,
      rgba(90,0,209,0.12) 110px, rgba(90,0,209,0.12) 111px,
      transparent 111px, transparent 200px
    );
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0) 40%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0) 40%);
  pointer-events: none;
  z-index: 0;
}
.xp-section--pattern .et_pb_row { position: relative; z-index: 1; }


/* ============================================
   HEADER
   ============================================ */
.xp-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  box-shadow: none;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.xp-header .xp-top-bar {
  max-height: 40px;
  padding: 6px 0;
  overflow: visible;
}

.xp-header .xp-nav { opacity: 0; pointer-events: none; transition: opacity 0.4s ease; }
.xp-header .xp-nav-actions { transition: opacity 0.4s ease; }

.xp-header .xp-nav-actions .xp-btn--primary {
  background: transparent !important;
  border: 1px solid rgba(255,255,255,0.6) !important;
  color: #fff !important;
  box-shadow: none !important;
}

/* Reveal on header hover */
.xp-header:hover {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.xp-header:hover .xp-nav { opacity: 1; pointer-events: auto; }
.xp-header:hover .xp-logo__img { filter: none; }
.xp-header:hover .xp-nav-actions .xp-btn--primary {
  background: var(--xp-accent) !important;
  border-color: var(--xp-accent) !important;
  color: #fff !important;
}

/* Logo white tint on transparent state */
.xp-header .xp-logo__img {
  filter: brightness(0) invert(1);
  transition: filter 0.4s ease, height 0.3s ease;
  height: 32px;
  width: auto;
}

/* Scrolled state */
.xp-header.header--scrolled {
  background: rgba(255,255,255,0.92) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
.xp-header.header--scrolled .xp-nav { opacity: 1; pointer-events: auto; }
.xp-header.header--scrolled .xp-logo__img { filter: none; height: 26px; }
.xp-header.header--scrolled .xp-nav-actions .xp-btn--primary {
  background: var(--xp-accent) !important;
  border-color: var(--xp-accent) !important;
  color: #fff !important;
}

/* Top bar */
.xp-top-bar {
  background: var(--xp-navy);
  color: rgba(255,255,255,0.8);
  font-size: 0.82rem;
  padding: 6px 0;
}
.xp-top-bar__inner {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  align-items: center;
  max-width: var(--xp-container);
  margin: 0 auto;
  padding: 0 24px;
}
.xp-top-bar__reviews {
  margin-right: auto;
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}
.xp-top-bar__reviews:hover { color: #fff; }
.xp-top-bar__stars { color: #FBBC05; letter-spacing: 1px; }

/* Main nav inner */
.xp-main-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 100%;
  padding: 12px 24px;
  position: relative;
  transition: padding 0.3s ease;
}
.header--scrolled .xp-main-nav__inner { padding-top: 6px; padding-bottom: 6px; }

/* Nav menu */
.xp-nav { display: flex; list-style: none; gap: 4px; margin: 0; padding: 0; }
.xp-nav__item > a {
  display: block;
  padding: 10px 16px;
  color: var(--xp-text);
  font-weight: 500;
  font-size: 0.92rem;
  border-radius: var(--xp-radius);
  transition: background 0.2s;
}
.xp-nav__item > a:hover { background: var(--xp-bg); color: var(--xp-navy); }

/* Nav chevron */
.xp-nav-chevron {
  display: inline-block;
  margin-left: 4px;
  vertical-align: middle;
  transition: transform 0.3s ease;
}
.xp-nav__item:hover .xp-nav-chevron { transform: rotate(180deg); }

/* Home icon nav item */
.xp-nav__item--home > a {
  padding: 10px 12px;
  display: flex;
  align-items: center;
  color: var(--xp-text);
  opacity: 0.65;
  transition: opacity 0.2s, background 0.2s;
}
.xp-nav__item--home > a:hover { opacity: 1; background: var(--xp-bg); }
.xp-nav__item--home svg { display: block; flex-shrink: 0; }

/* Platforms sub-list in mega menu */
.xp-mega-menu__platforms {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #f0edff;
  font-size: 0.75rem;
}
.xp-mega-menu__platforms span {
  width: 100%;
  color: #9ca3af;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.xp-mega-menu__column .xp-mega-menu__platforms a {
  color: #6b7280;
  font-weight: 500;
  font-size: 0.78rem;
  padding: 2px 8px;
  border: 1px solid #e4e0ff;
  border-radius: 4px;
  transition: border-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.xp-mega-menu__column .xp-mega-menu__platforms a:hover { border-color: var(--xp-accent); color: var(--xp-accent); }

/* Nav actions */
.xp-nav-actions { display: flex; gap: 12px; align-items: center; }
.xp-nav-actions .xp-btn--primary { padding: 8px 20px !important; font-size: 0.85rem !important; }

/* Mobile toggle */
.xp-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  position: relative;
  width: 40px;
  height: 40px;
  z-index: 301;
}
.xp-nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
  position: absolute;
  left: 8px;
}
.xp-nav-toggle span:nth-child(1) { top: 10px; }
.xp-nav-toggle span:nth-child(2) { top: 19px; }
.xp-nav-toggle span:nth-child(3) { top: 28px; }
.xp-nav-toggle.is-active span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.xp-nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.xp-nav-toggle.is-active span:nth-child(3) { top: 19px; transform: rotate(-45deg); }
.header--scrolled .xp-nav-toggle span,
.xp-header:hover .xp-nav-toggle span { background: var(--xp-navy); }

/* Dropdown */
.xp-dropdown {
  position: absolute;
  top: 100%;
  background: #fff;
  border: 1px solid var(--xp-border);
  border-radius: var(--xp-radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  pointer-events: none;
  transform: translateY(8px);
  min-width: 200px;
}
.xp-nav__item--has-dropdown { position: relative; }
.xp-nav__item--has-dropdown.xp-dropdown--open .xp-dropdown,
.xp-nav__item--has-dropdown:hover .xp-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Mega menu */
.xp-mega-menu {
  min-width: 900px;
  padding: 0;
}
.xp-mega-menu__columns {
  display: flex;
  gap: 0;
  padding: 18px 0;
}
.xp-mega-menu__column {
  flex: 1;
  padding: 0 18px;
  border-right: 1px solid var(--xp-border);
}
.xp-mega-menu__column:last-child { border-right: none; }
.xp-mega-menu__column-header {
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--xp-border);
}
.xp-mega-menu__column-header h4 {
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--xp-accent) !important;
  margin-bottom: 2px;
}
.xp-mega-menu__column ul { list-style: none; padding: 0; margin: 0; }
.xp-mega-menu__column li { margin-bottom: 0; }
.xp-mega-menu__column a {
  display: block;
  padding: 4px 0;
  border-radius: var(--xp-radius);
  color: var(--xp-text);
  font-size: 0.85rem;
  transition: all 0.15s ease;
}
.xp-mega-menu__column a:hover { background: var(--xp-bg); color: var(--xp-accent); }
.xp-mega-menu__column a strong {
  display: block;
  font-weight: 600;
}
.xp-mega-menu__column a span {
  display: none;
}

/* ============================================
   HERO SECTIONS
   ============================================ */

/* Standard hero */
.xp-hero.et_pb_section,
.et_pb_section.xp-hero {
  position: relative;
  background: linear-gradient(135deg, var(--xp-navy) 0%, var(--xp-purple) 100%) !important;
  color: #fff !important;
  padding-top: 100px !important;
  padding-bottom: 120px !important;
  overflow: hidden;
  min-height: 60vh;
}
.xp-hero .et_pb_text_inner h1,
.xp-hero h1 { color: #fff !important; margin-bottom: 20px; }
.xp-hero .et_pb_text_inner p,
.xp-hero p { color: rgba(255,255,255,0.8) !important; }

/* Hero badge / pill */
.xp-hero-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--xp-accent);
  background: rgba(180,44,255,0.12);
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 20px;
}

/* Hero stats */
.xp-hero-stats {
  display: flex;
  gap: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
  flex-wrap: wrap;
}
.xp-hero-stat__number {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--xp-accent);
  line-height: 1.2;
}
.xp-hero-stat__label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Hero diagonal strips */
.xp-hero-strips {
  position: relative;
  height: 100%;
  background: #0a0a14;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.xp-hero-strips__panels {
  position: absolute;
  inset: 0;
  display: flex;
}

.xp-hero-strip {
  flex: 1;
  position: relative;
  overflow: hidden;
  transition: flex 0.6s cubic-bezier(0.4,0,0.2,1);
  cursor: pointer;
  transform: skewX(-15deg);
  margin: 0 -4%;
}
.xp-hero-strip:first-child { margin-left: -8%; }
.xp-hero-strip:last-child  { margin-right: -8%; }

.xp-hero-strip img {
  width: 120%;
  height: 100%;
  object-fit: cover;
  transform: skewX(15deg) scale(1.1);
  transform-origin: center;
  margin-left: -10%;
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
}

.xp-hero-strip__video {
  position: absolute;
  inset: 0;
  width: 120%;
  height: 100%;
  object-fit: cover;
  transform: skewX(15deg) scale(1.1);
  transform-origin: center;
  margin-left: -10%;
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: 1;
}
.xp-hero-strip:hover .xp-hero-strip__video { opacity: 1; }

.xp-hero-strip__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,10,20,0.6);
  transition: background 0.6s ease;
  z-index: 2;
}
.xp-hero-strips__panels::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 100%);
  z-index: 4;
  pointer-events: none;
}

.xp-hero-strip__text {
  position: absolute;
  top: 148px;
  left: 50%;
  transform: translateX(-50%) skewX(15deg);
  text-align: center;
  z-index: 3;
  white-space: nowrap;
}
.xp-hero-strip__label {
  display: block;
  font-family: var(--xp-font);
  font-size: clamp(0.9rem,1.2vw,1.1rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.35);
  transition: all 0.5s ease;
  line-height: 1;
}
.xp-hero-strip__desc {
  display: block;
  font-size: 1.05rem;
  color: rgba(255,255,255,0);
  margin-top: 12px;
  max-width: 280px;
  white-space: normal;
  line-height: 1.6;
  transition: all 0.5s ease 0.1s;
  transform: translateY(8px);
}

.xp-hero-strips__panels:hover .xp-hero-strip { flex: 0.65; }
.xp-hero-strips__panels:hover .xp-hero-strip:hover { flex: 1.7; }
.xp-hero-strip:hover .xp-hero-strip__overlay { background: rgba(10,10,20,0.55); }
.xp-hero-strip:hover img { transform: skewX(15deg) scale(1.15); }
.xp-hero-strip:hover .xp-hero-strip__label {
  color: rgba(255,255,255,0.95);
  letter-spacing: 4px;
  font-size: clamp(1.1rem,1.5vw,1.3rem);
  font-weight: 900;
}
.xp-hero-strip:hover .xp-hero-strip__desc { color: #fff; transform: translateY(0); }
.xp-hero-strips__panels:hover .xp-hero-strip:not(:hover) .xp-hero-strip__overlay { background: rgba(10,10,20,0.82); }
.xp-hero-strips__panels:hover .xp-hero-strip:not(:hover) .xp-hero-strip__label { color: rgba(255,255,255,0.1); }

.xp-hero-strip + .xp-hero-strip::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 1px;
  background: rgba(255,255,255,0.08);
  z-index: 4;
}

.xp-hero-strips__content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: var(--xp-container);
  margin: 0 auto;
  padding: 0 24px 40px;
  pointer-events: none;
  text-align: left;
}
.xp-hero-strips__content h1,
.xp-hero-strips__content .xp-hero__subtitle,
.xp-hero-strips__content .xp-hero__ctas { max-width: 50%; }
.xp-hero-strips__content h1,
.xp-hero-strips__content .xp-hero__subtitle { pointer-events: auto; cursor: default; }
.xp-hero-strips__content h1 {
  color: #fff;
  font-size: clamp(2rem,4vw,3.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  text-shadow: 0 4px 60px rgba(0,0,0,0.6);
}
.xp-hero-strips__content .xp-hero__subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.75;
  margin-bottom: 36px;
  text-shadow: 0 2px 30px rgba(0,0,0,0.5);
}
.xp-hero-strips__content .xp-hero__ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  pointer-events: auto;
}

/* Service page hero */
.xp-service-hero {
  background: var(--xp-navy);
  color: #fff;
  text-align: center;
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}
.xp-service-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to right, rgba(13,13,43,0.88) 0%, rgba(13,13,43,0.85) 100%);
  background-size: 24px 24px, 100% 100%;
  pointer-events: none;
}
.xp-service-hero h1 { color: #fff !important; font-size: clamp(2rem,4.5vw,3.4rem); line-height: 1.15; }
.xp-service-hero p { color: rgba(255,255,255,0.7) !important; }

/* ============================================
   TRUST BAR
   ============================================ */
.xp-trust-bar {
  background: var(--xp-navy);
  padding: 16px 0;
  border-bottom: 2px solid var(--xp-accent);
}
.xp-trust-bar__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  max-width: var(--xp-container);
  margin: 0 auto;
  padding: 0 24px;
}
.xp-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  font-weight: 500;
}
.xp-trust-item__icon { font-size: 1rem; color: #FBBF24; }

/* ============================================
   LOGO MARQUEE
   ============================================ */
.xp-logo-marquee {
  overflow: hidden;
  position: relative;
  padding: 24px 0;
}
.xp-logo-marquee::before,
.xp-logo-marquee::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}
.xp-logo-marquee::before { left: 0; background: linear-gradient(90deg, #fff, transparent); }
.xp-logo-marquee::after  { right: 0; background: linear-gradient(270deg, #fff, transparent); }

.xp-logo-marquee__track {
  display: flex;
  gap: 48px;
  animation: xp-marquee var(--marquee-speed, 35s) linear infinite;
  width: max-content;
}
.xp-logo-marquee__track:hover { animation-play-state: paused; }

.xp-logo-marquee__item { flex-shrink: 0; }
.xp-logo-marquee__item img {
  height: 48px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s ease;
}
.xp-logo-marquee__item:hover img { filter: grayscale(0%); opacity: 1; }
.xp-logo-placeholder {
  display: inline-block;
  padding: 10px 20px;
  background: var(--xp-bg);
  border: 1px solid var(--xp-border);
  border-radius: var(--xp-radius);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--xp-text-muted);
}
.xp-logo-name {
  display: inline-block;
  padding: 12px 28px;
  font-family: var(--xp-font);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--xp-text-muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color 0.2s;
}
.xp-logo-marquee__item:hover .xp-logo-name { color: var(--xp-purple); }

@keyframes xp-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Dark background marquee */
.xp-section--dark .xp-logo-marquee::before { background: linear-gradient(90deg, var(--xp-navy), transparent); }
.xp-section--dark .xp-logo-marquee::after  { background: linear-gradient(270deg, var(--xp-navy), transparent); }

/* ============================================
   STAT BAR (shortcode [xp_stats])
   ============================================ */
.xp-stat-bar {
  display: flex;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  background: linear-gradient(135deg, var(--xp-navy) 0%, var(--xp-purple) 100%);
  border-radius: var(--xp-radius-lg);
  color: #fff;
  padding: 36px;
}
.xp-stat-item {
  flex: 1;
  min-width: 140px;
  text-align: center;
  padding: 0 24px;
}
.xp-stat-item + .xp-stat-item { border-left: 1px solid rgba(255,255,255,0.15); }
.xp-stat-value {
  display: block;
  font-size: clamp(2rem,3.5vw,2rem);
  font-weight: 800;
  color: var(--xp-accent);
  line-height: 1.1;
  margin-bottom: 6px;
}
.xp-stat-label {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}

/* ============================================
   TAG / PILL
   ============================================ */
.xp-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  background: var(--xp-accent);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.xp-tag--light {
  background: var(--xp-bg);
  color: var(--xp-text-muted);
  border: 1px solid var(--xp-border);
}
.xp-tag--accent-light {
  background: rgba(180,44,255,0.1);
  color: var(--xp-accent);
  border: 1px solid rgba(180,44,255,0.2);
}

/* ============================================
   CARDS — General
   ============================================ */
.xp-card {
  background: var(--xp-card);
  border: 1px solid var(--xp-border);
  border-radius: var(--xp-radius-lg);
  padding: 32px 28px;
  transition: box-shadow 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
}
.xp-card:hover {
  box-shadow: var(--xp-shadow-xl);
  transform: translateY(-4px);
}
.xp-card--dark {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
  color: #fff;
}
.xp-card--dark:hover { border-color: var(--xp-accent); background: rgba(255,255,255,0.08); }
.xp-card--dark h3, .xp-card--dark h4 { color: #fff !important; }
.xp-card--dark p { color: rgba(255,255,255,0.65) !important; }

/* Gradient top border on hover */
.xp-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--xp-accent), var(--xp-teal));
  transform: scaleX(0);
  transition: transform 0.3s ease;
  border-radius: var(--xp-radius-lg) var(--xp-radius-lg) 0 0;
}
.xp-card:hover::after { transform: scaleX(1); }

/* ============================================
   CASE STUDY CARDS (.xp-case-card)
   ============================================ */
.xp-case-grid { display: grid; gap: 32px; }
.xp-case-grid--3col { grid-template-columns: repeat(3,1fr); }
.xp-case-grid--2col { grid-template-columns: repeat(2,1fr); }
.xp-case-grid--1col { grid-template-columns: 1fr; }

.xp-case-card {
  display: block;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--xp-radius-lg);
  overflow: hidden;
  transition: all 0.3s;
  text-decoration: none;
  color: inherit;
}
.xp-case-card:hover {
  border-color: var(--xp-accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.xp-case-card__image {
  height: 200px;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s;
}
.xp-case-card__body { padding: 28px; }
.xp-section--dark .xp-case-card__body h3,
.xp-section--gradient .xp-case-card__body h3 { color: var(--xp-navy) !important; font-size: 1.3rem; margin-bottom: 8px; }
.xp-section--dark .xp-case-card__body p,
.xp-section--gradient .xp-case-card__body p { color: rgba(255,255,255,0.6); font-size: 0.95rem; margin-bottom: 20px; }

/* Light-background case cards */
.xp-section--light .xp-case-card,
.xp-section--white .xp-case-card,
.et_pb_section:not(.xp-section--dark):not(.xp-section--gradient) .xp-case-card {
  background: var(--xp-card);
  border-color: var(--xp-border);
}
.xp-section--light .xp-case-card__body h3,
.xp-section--white .xp-case-card__body h3 { color: var(--xp-navy) !important; }
.xp-section--light .xp-case-card__body p,
.xp-section--white .xp-case-card__body p { color: var(--xp-text-muted) !important; }

/* ============================================
   STEP CARDS (.xp-step-card) — timeline shortcode
   ============================================ */
.xp-timeline { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; position: relative; }

/* Connector line */
.xp-timeline::before {
  content: '';
  position: absolute;
  top: 21px;
  left: 60px; right: 60px;
  height: 2px;
  background: var(--xp-border);
}

.xp-step-card {
  background: var(--xp-card);
  border: 1px solid var(--xp-border);
  border-radius: var(--xp-radius-lg);
  padding: 40px 32px;
  position: relative;
  text-align: center;
  transition: all 0.3s;
}
.xp-step-card:hover {
  box-shadow: var(--xp-shadow-lg);
  border-color: var(--xp-accent);
  transform: translateY(-3px);
}
.xp-step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--xp-accent);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
}
.xp-step-card h4 { font-size: 1.25rem; margin-bottom: 10px; }
.xp-step-card p { color: var(--xp-text-muted); font-size: 0.95rem; line-height: 1.7; margin: 0; }

/* Dark section step cards */
.xp-section--dark .xp-step-card {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}
.xp-section--dark .xp-step-card h4 { color: #fff !important; }
.xp-section--dark .xp-step-card p { color: rgba(255,255,255,0.65) !important; }
.xp-section--dark .xp-timeline::before { background: rgba(255,255,255,0.1); }

/* ============================================
   FORM CARD (.xp-form-card)
   ============================================ */
.xp-form-card {
  background: var(--xp-bg);
  border: 1px solid var(--xp-border);
  border-radius: var(--xp-radius-lg);
  padding: 24px 22px;
}
.xp-form-title { font-size: 1.3rem; margin-bottom: 4px; }
.xp-form-subtitle {
  color: var(--xp-text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 18px;
}
.xp-contact-form input,
.xp-contact-form textarea,
.xp-contact-form select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--xp-border);
  border-radius: var(--xp-radius);
  font-family: var(--xp-font);
  font-size: 0.95rem;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  margin-top: 12px;
  margin-bottom: 12px;
  display: block;
}
.xp-contact-form input:focus,
.xp-contact-form textarea:focus {
  outline: none;
  border-color: var(--xp-accent);
  box-shadow: 0 0 0 3px rgba(180,44,255,0.1);
}
.xp-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; row-gap: 12px; }
.xp-form-row input { margin-bottom: 0; }
.xp-contact-form textarea { resize: vertical; min-height: 100px; }

.xp-form-response {
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: var(--xp-radius);
  font-size: 0.9rem;
}
.xp-form-response--success {
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
}
.xp-form-response--error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}

/* ============================================
   PROMISE CARDS (.xp-promise-card)
   ============================================ */
.xp-promises-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; margin-bottom: 48px; }

.xp-promise-card {
  position: relative;
  overflow: hidden;
  text-align: left;
  padding: 36px 24px;
  background: #fff;
  border: 1px solid var(--xp-border);
  border-radius: var(--xp-radius-lg);
  transition: all 0.3s;
}
.xp-promise-card:hover {
  box-shadow: var(--xp-shadow-md);
  border-color: var(--xp-accent);
  transform: translateY(-2px);
}
.xp-promise-card__icon {
  position: absolute;
  top: 16px; right: 16px;
  color: rgba(0,0,0,0.04);
  pointer-events: none;
}
.xp-promise-card__icon svg { display: block; width: 96px; height: 96px; }
.xp-promise-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.xp-promise-card p { color: var(--xp-text-muted); font-size: 0.9rem; line-height: 1.6; margin: 0; }

/* ============================================
   CTA SECTION (.xp-cta-section)
   ============================================ */
.xp-cta-section {
  padding: 100px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-radius: var(--xp-radius-lg);
}
.xp-cta-pulse {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(180,44,255,0.12) 0%, transparent 50%);
  pointer-events: none;
}
.xp-cta-content { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.xp-cta-content h2 { color: #fff !important; font-size: clamp(2rem,3.5vw,2.8rem); margin-bottom: 20px; }
.xp-cta-content p { color: rgba(255,255,255,0.75) !important; font-size: 1.15rem; margin-bottom: 36px; }

/* ============================================
   SERVICE CARDS (grid layout)
   ============================================ */
.xp-services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }

.xp-service-card {
  background: var(--xp-card);
  border: 1px solid var(--xp-border);
  border-radius: var(--xp-radius-lg);
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
  position: relative;
}
.xp-service-card:hover { box-shadow: var(--xp-shadow-xl); transform: translateY(-4px); }
.xp-service-card--featured { border-color: var(--xp-accent); box-shadow: 0 0 0 1px var(--xp-accent); }

.xp-service-card__image { position: relative; overflow: hidden; height: 200px; }
.xp-service-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.xp-service-card:hover .xp-service-card__image img { transform: scale(1.05); }
.xp-service-card__body { padding: 28px; }
.xp-service-card__body h3 { margin-bottom: 10px; }
.xp-service-card__body p { color: var(--xp-text-muted); margin-bottom: 16px; font-size: 0.95rem; }

.xp-service-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--xp-accent), var(--xp-teal));
  transform: scaleX(0);
  transition: transform 0.3s ease;
  border-radius: var(--xp-radius-lg) var(--xp-radius-lg) 0 0;
}
.xp-service-card:hover::after { transform: scaleX(1); }

/* ============================================
   RESULT / FEATURE CARDS
   ============================================ */
.xp-results-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.xp-result-card {
  padding: 32px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--xp-radius-lg);
  transition: all 0.3s;
  background: rgba(255,255,255,0.04);
}
.xp-result-card:hover {
  border-color: var(--xp-accent);
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}
.xp-result-card h3 { color: #fff; margin-bottom: 8px; }
.xp-result-card p { color: rgba(255,255,255,0.65); font-size: 0.95rem; }

/* ============================================
   TESTIMONIAL CARDS
   ============================================ */
.xp-testimonials-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }

.xp-testimonial {
  background: var(--xp-bg);
  border: 1px solid var(--xp-border);
  border-radius: var(--xp-radius-lg);
  border-left: 3px solid var(--xp-accent);
  padding: 32px;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  position: relative;
}
.xp-testimonial:hover { box-shadow: var(--xp-shadow-md); transform: translateY(-2px); }
.xp-testimonial::before {
  content: '\201C';
  position: absolute;
  top: 12px; right: 16px;
  font-size: 4rem;
  color: rgba(180,44,255,0.06);
  font-family: Georgia, serif;
  line-height: 1;
}
.xp-testimonial__stars { color: #FBBF24; font-size: 1.1rem; margin-bottom: 16px; }
.xp-testimonial p {
  font-size: 1rem;
  color: var(--xp-text);
  margin-bottom: 20px;
  font-style: italic;
  flex: 1;
  line-height: 1.7;
}
.xp-testimonial__footer { display: flex; align-items: center; gap: 12px; font-style: normal; }
.xp-testimonial__avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--xp-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}
.xp-testimonial cite { font-style: normal; font-size: 0.9rem; font-weight: 600; color: var(--xp-text); display: block; }
.xp-testimonial__footer span { font-size: 0.8rem; color: var(--xp-text-muted); }

/* ============================================
   SERVICE ROWS (alternating layout)
   ============================================ */
.xp-service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 80px;
  position: relative;
}
.xp-service-row:last-child { margin-bottom: 0; }
.xp-service-row--reverse { direction: rtl; }
.xp-service-row--reverse > * { direction: ltr; }

.xp-service-row__number {
  position: absolute;
  top: -40px;
  font-size: 10rem;
  font-weight: 900;
  color: rgba(90,0,209,0.05);
  line-height: 1;
  pointer-events: none;
  z-index: 0;
}
/* Odd rows (1st, 3rd, etc) - top left */
.xp-service-row:nth-child(even) .xp-service-row__number {
  left: -36px;
}
/* Even rows (2nd, 4th, etc) - top right */
.xp-service-row:nth-child(odd) .xp-service-row__number {
  right: -36px;
}
.xp-service-row--reverse .xp-service-row__number { left: auto; right: -100px; }

.xp-service-row__image {
  position: relative;
  border-radius: var(--xp-radius-lg);
  overflow: hidden;
  box-shadow: 12px 12px 0 rgba(180,44,255,0.1);
  z-index: 1;
}
.xp-service-row--reverse .xp-service-row__image { box-shadow: -12px 12px 0 rgba(180,44,255,0.1); }
.xp-service-row__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; aspect-ratio: 4/3; }
.xp-service-row:hover .xp-service-row__image img { transform: scale(1.03); }

.xp-service-row__content h3 { font-size: clamp(1.4rem,2.5vw,1.8rem); margin-bottom: 16px; }
.xp-service-row__content p { color: var(--xp-text-muted); margin-bottom: 24px; font-size: 1.05rem; line-height: 1.7; }

/* ============================================
   HOW IT WORKS / PROCESS STEPS
   ============================================ */
.xp-steps-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; }

.xp-how-step {
  background: var(--xp-card);
  border: 1px solid var(--xp-border);
  border-radius: var(--xp-radius-lg);
  padding: 40px 32px;
  position: relative;
  transition: all 0.3s;
}
.xp-how-step:hover { box-shadow: var(--xp-shadow-lg); border-color: var(--xp-accent); transform: translateY(-3px); }
.xp-how-step__number {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--xp-border);
  line-height: 1;
  margin-bottom: 16px;
}
.xp-how-step h3 { font-size: 1.35rem; margin-bottom: 12px; }
.xp-how-step p { color: var(--xp-text-muted); font-size: 0.98rem; line-height: 1.7; }

/* ============================================
   OUTCOMES / CHECKLIST
   ============================================ */
.xp-outcomes-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 20px 48px;
  max-width: 900px;
  margin: 0 auto;
}
.xp-outcome-item { display: flex; align-items: flex-start; gap: 16px; padding: 16px 0; }
.xp-outcome-check {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(180,44,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--xp-accent);
  font-size: 0.9rem;
  margin-top: 2px;
}
.xp-outcome-item h4 { color: #fff; font-size: 1.05rem; margin-bottom: 4px; }
.xp-outcome-item p { color: rgba(255,255,255,0.6); font-size: 0.9rem; line-height: 1.6; margin: 0; }

/* ============================================
   STAT BANNER (full-width)
   ============================================ */
.xp-stat-banner {
  background: var(--xp-navy);
  padding: 48px 0;
  position: relative;
}
.xp-stat-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
.xp-stat-banner__inner {
  display: flex;
  justify-content: center;
  gap: 64px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
  max-width: var(--xp-container);
  margin: 0 auto;
  padding: 0 24px;
}
.xp-stat-banner__item { text-align: center; }
.xp-stat-banner__number {
  display: block;
  font-size: clamp(2rem,3.5vw,2.8rem);
  font-weight: 800;
  color: var(--xp-accent);
  line-height: 1.1;
  margin-bottom: 6px;
}
.xp-stat-banner__label { display: block; color: rgba(255,255,255,0.6); font-size: 0.9rem; }

/* ============================================
   TECH / PLATFORM LOGOS
   ============================================ */
.xp-tech-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}
.xp-tech-logo {
  padding: 10px 20px;
  background: var(--xp-bg);
  border: 1px solid var(--xp-border);
  border-radius: var(--xp-radius);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--xp-text-muted);
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.xp-tech-logo:hover { border-color: var(--xp-accent); color: var(--xp-accent); transform: translateY(-2px); }
.xp-tech-logo img { height: 24px; width: auto; max-width: 100px; object-fit: contain; }

/* ============================================
   THE SHIFT — Editorial section
   ============================================ */
.xp-the-shift {
  padding: var(--xp-section-py) 0;
  background: var(--xp-navy);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.xp-the-shift::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.12) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  pointer-events: none;
}
.xp-the-shift .et_pb_row { position: relative; z-index: 1; }
.xp-the-shift__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.xp-the-shift h2 { color: #fff !important; font-size: clamp(2rem,3.5vw,2.8rem); margin-bottom: 32px; line-height: 1.25; }
.xp-the-shift p { font-size: 1.15rem; line-height: 1.8; color: rgba(255,255,255,0.75); margin-bottom: 24px; }
.xp-the-shift__image {
  border-radius: var(--xp-radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}
.xp-the-shift__image img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; transition: transform 0.4s ease; }
.xp-the-shift__image:hover img { transform: scale(1.03); }

.xp-shift-stats {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 28px;
  padding-top: 24px;
  text-align: center;
}
.xp-shift-stat__number { display: block; font-size: 2rem; font-weight: 800; color: var(--xp-accent); line-height: 1.1; }
.xp-shift-stat__label { display: block; font-size: 0.82rem; color: rgba(255,255,255,0.55); margin-top: 4px; line-height: 1.4; }

/* ============================================
   BLOG / NEWS CARDS
   ============================================ */
.xp-blog-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }

.xp-blog-card {
  border: 1px solid var(--xp-border);
  border-radius: var(--xp-radius-lg);
  overflow: hidden;
  background: var(--xp-card);
  transition: all 0.3s;
}
.xp-blog-card:hover { box-shadow: var(--xp-shadow-md); transform: translateY(-3px); }
.xp-blog-card__image { height: 180px; overflow: hidden; }
.xp-blog-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.xp-blog-card:hover .xp-blog-card__image img { transform: scale(1.05); }
.xp-blog-card__body { padding: 16px; }
.xp-blog-card__category {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--xp-accent);
  margin-bottom: 6px;
}
.xp-blog-card h4 { font-size: 0.92rem; }
.xp-blog-card a { color: var(--xp-text); }
.xp-blog-card a:hover { color: var(--xp-accent); }

/* ============================================
   FOOTER
   ============================================ */
.xp-footer {
  background: var(--xp-navy) !important;
  color: rgba(255,255,255,0.8);
  padding: 80px 0 32px;
}
.xp-footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 56px;
}
.xp-footer-col h4 {
  color: #fff;
  font-size: 0.9rem !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}
.xp-footer-col ul { list-style: none; margin: 0; padding: 0; }
.xp-footer-col li { margin-bottom: 10px; }
.xp-footer-col a { color: rgba(255,255,255,0.6); font-size: 0.88rem; transition: color 0.2s; }
.xp-footer-col a:hover { color: #fff; }

.xp-footer-brand p { margin: 16px 0 20px; color: rgba(255,255,255,0.6); font-size: 0.9rem; line-height: 1.6; }
.xp-footer-brand .xp-logo__img { height: 28px; filter: brightness(0) invert(1); }

.xp-footer-social { display: flex; list-style: none; gap: 12px; margin: 0; padding: 0 0 24px; }
.xp-footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.45);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.xp-footer-social a:hover { color: #fff; border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.08); }

.xp-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.xp-footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.4); margin: 0; }
.xp-footer-legal { display: flex; list-style: none; gap: 16px; margin: 0; padding: 0; }
.xp-footer-legal a { font-size: 0.8rem; color: rgba(255,255,255,0.4); }
.xp-footer-legal a:hover { color: #fff; }

.xp-footer-locals { border-top: 1px solid rgba(255,255,255,0.08); padding: 32px 0; margin-bottom: 24px; }
.xp-footer-locals h4 { color: rgba(255,255,255,0.5); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.xp-footer-locals__list { display: flex; flex-wrap: wrap; gap: 8px 16px; list-style: none; padding: 0; margin: 0; }
.xp-footer-locals__list a { font-size: 0.78rem; color: rgba(255,255,255,0.35); transition: color 0.2s; }
.xp-footer-locals__list a:hover { color: rgba(255,255,255,0.7); }

/* ============================================
   PLATFORM STRIPS (diagonal)
   ============================================ */
.xp-platform-strips {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  z-index: 2;
}
.xp-platform-strips--inline { margin-top: 32px; margin-bottom: 48px; }
.xp-platform-strips__panels { display: flex; height: 160px; }

.xp-platform-strip {
  flex: 1;
  position: relative;
  overflow: hidden;
  transition: flex 0.5s cubic-bezier(0.4,0,0.2,1);
  cursor: pointer;
  transform: skewX(-12deg);
  margin: 0 -3%;
  text-decoration: none;
}
.xp-platform-strip:first-child { margin-left: -6%; }
.xp-platform-strip:last-child  { margin-right: -6%; }
.xp-platform-strip img {
  width: 130%; height: 100%;
  object-fit: cover;
  transform: skewX(12deg) scale(1.1);
  transform-origin: center;
  margin-left: -15%;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.xp-platform-strip__overlay {
  position: absolute; inset: 0;
  background: rgba(10,10,20,0.82);
  transition: background 0.5s ease;
  z-index: 1;
}
.xp-platform-strip__text {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%) skewX(12deg);
  text-align: center;
  z-index: 2;
  white-space: nowrap;
}
.xp-platform-strip__label {
  display: block;
  font-family: var(--xp-font);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #fff;
  transition: all 0.4s ease;
  line-height: 1;
}
.xp-platform-strips__panels:hover .xp-platform-strip { flex: 0.7; }
.xp-platform-strips__panels:hover .xp-platform-strip:hover { flex: 2; }
.xp-platform-strip:hover .xp-platform-strip__overlay { background: rgba(10,10,20,0.7); }
.xp-platform-strip:hover img { transform: skewX(12deg) scale(1.15); }
.xp-platform-strips__panels:hover .xp-platform-strip:not(:hover) .xp-platform-strip__overlay { background: rgba(10,10,20,0.82); }
.xp-platform-strips__panels:hover .xp-platform-strip:not(:hover) .xp-platform-strip__label { color: rgba(255,255,255,0.15); }
.xp-platform-strip + .xp-platform-strip::before {
  content: '';
  position: absolute; top: 0; bottom: 0; left: 0;
  width: 1px;
  background: rgba(255,255,255,0.1);
  z-index: 3;
}

/* ============================================
   SERVICE MAGAZINE LAYOUT
   ============================================ */
.xp-service-magazine { padding: 80px 0; }
.xp-service-magazine__card {
  display: grid;
  grid-template-columns: 45fr 55fr;
  border-radius: var(--xp-radius-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 24px rgba(0,0,0,0.07);
  margin-bottom: 48px;
}
.xp-service-magazine__card:last-child { margin-bottom: 0; }
.xp-service-magazine__card--reverse { direction: rtl; }
.xp-service-magazine__card--reverse > * { direction: ltr; }

.xp-service-magazine__visual { position: relative; min-height: 420px; overflow: hidden; }
.xp-service-magazine__visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.xp-service-magazine__visual-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,13,43,0.92) 0%, rgba(13,13,43,0.55) 100%);
}
.xp-service-magazine__visual-text {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 40px; color: #fff; z-index: 1;
}
.xp-service-magazine__number {
  display: block; font-size: 3.5rem;
  font-weight: 700; opacity: 0.15; line-height: 1; margin-bottom: 8px;
}
.xp-service-magazine__visual-text h2 { font-size: 1.65rem; margin-bottom: 4px; color: #fff !important; }
.xp-service-magazine__visual-text p { font-size: 0.95rem; opacity: 0.7; margin: 0; color: #fff !important; }
.xp-service-magazine__body { padding: 48px; display: flex; flex-direction: column; }
.xp-service-magazine__body > p { color: var(--xp-text-muted); font-size: 1rem; line-height: 1.7; margin-bottom: 28px; }

.xp-service-magazine__links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 32px; flex: 1; }
.xp-service-magazine__link {
  display: block; padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid rgba(13,13,43,0.08);
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.xp-service-magazine__link:hover { border-color: var(--xp-accent); box-shadow: 0 2px 12px rgba(180,44,255,0.1); transform: translateY(-2px); }
.xp-service-magazine__link strong { display: block; font-size: 0.92rem; color: var(--xp-navy); margin-bottom: 2px; }
.xp-service-magazine__link span { font-size: 0.82rem; color: var(--xp-text-muted); }

/* ============================================
   WHY STRIP
   ============================================ */
.xp-why-strip { background: var(--xp-navy); padding: 56px 0; }
.xp-why-strip__inner {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 32px;
  max-width: var(--xp-container);
  margin: 0 auto;
  padding: 0 24px;
}
.xp-why-item { display: flex; align-items: flex-start; gap: 16px; color: #fff; }
.xp-why-item svg { flex-shrink: 0; margin-top: 2px; color: var(--xp-accent); }
.xp-why-item strong { display: block; font-size: 0.95rem; margin-bottom: 4px; }
.xp-why-item span { font-size: 0.85rem; opacity: 0.6; }

/* ============================================
   VERTICAL TIMELINE
   ============================================ */
.xp-timeline-v {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding-left: 60px;
}
.xp-timeline-v__line {
  position: absolute;
  left: 20px; top: 0; bottom: 0;
  width: 2px;
  background: var(--xp-border);
}
.xp-timeline-v__step { position: relative; padding-bottom: 48px; }
.xp-timeline-v__step:last-child { padding-bottom: 0; }
.xp-timeline-v__number {
  position: absolute; left: -60px; top: 0;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--xp-accent);
  color: #fff; font-weight: 800; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  z-index: 1;
}
.xp-timeline-v__step h3 { font-size: 1.3rem; margin-bottom: 8px; padding-top: 6px; }
.xp-timeline-v__step p { color: var(--xp-text-muted); font-size: 0.98rem; line-height: 1.7; }

/* ============================================
   ANIMATIONS & SCROLL EFFECTS
   ============================================ */

/* Fade-in animation (JS adds .xp-visible) */
.xp-fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.xp-fade-in.xp-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay helpers */
.xp-fade-in:nth-child(1) { transition-delay: 0s; }
.xp-fade-in:nth-child(2) { transition-delay: 0.1s; }
.xp-fade-in:nth-child(3) { transition-delay: 0.2s; }
.xp-fade-in:nth-child(4) { transition-delay: 0.3s; }
.xp-fade-in:nth-child(5) { transition-delay: 0.4s; }
.xp-fade-in:nth-child(6) { transition-delay: 0.5s; }

/* Hero image float animation */
@keyframes xp-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
.xp-hero-float { animation: xp-float 6s ease-in-out infinite; }

/* Counter element (JS animates value) */
.xp-counter { font-variant-numeric: tabular-nums; }



/* ============================================
   UTILITY CLASSES
   ============================================ */
.xp-text-center { text-align: center; }
.xp-text-left   { text-align: left; }
.xp-text-right  { text-align: right; }

.xp-mt-0  { margin-top: 0 !important; }
.xp-mb-0  { margin-bottom: 0 !important; }
.xp-mt-sm { margin-top: 16px !important; }
.xp-mb-sm { margin-bottom: 16px !important; }
.xp-mt-md { margin-top: 32px !important; }
.xp-mb-md { margin-bottom: 32px !important; }
.xp-mt-lg { margin-top: 64px !important; }
.xp-mb-lg { margin-bottom: 64px !important; }

.xp-visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* 1200px — Container starts compressing */
@media (max-width: 1200px) {
  .xp-footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .xp-promises-grid { grid-template-columns: repeat(2,1fr); }
  .xp-why-strip__inner { grid-template-columns: 1fr 1fr; }
  .xp-platform-strips__panels { height: 120px; }
}

/* 1024px — Tablet landscape */
@media (max-width: 1024px) {
  .xp-services-grid,
  .xp-results-grid,
  .xp-testimonials-grid { grid-template-columns: 1fr 1fr; }

  .xp-blog-grid { grid-template-columns: 1fr 1fr; }
  .xp-the-shift__grid { grid-template-columns: 1fr; gap: 32px; }
  .xp-service-row { grid-template-columns: 1fr; gap: 32px; }
  .xp-service-row--reverse { direction: ltr; }
  .xp-case-grid--3col { grid-template-columns: repeat(2,1fr); }
  .xp-steps-grid { grid-template-columns: 1fr 1fr; }
  .xp-outcomes-grid { grid-template-columns: 1fr; }
  .xp-hero-strips { min-height: 80vh; }
  .xp-service-magazine__card { grid-template-columns: 1fr; }
  .xp-service-magazine__card--reverse { direction: ltr; }
  .xp-service-magazine__visual { min-height: 280px; }
  .xp-stat-banner__inner { gap: 40px; }

  /* Divi: show mobile menu toggle on tablet */
  .xp-nav-toggle { display: block; }
  .xp-nav, .xp-nav-actions { display: none; }
}

/* 768px — Mobile */
@media (max-width: 768px) {
  .xp-nav, .xp-nav-actions { display: none !important; }
  .xp-nav-toggle { display: block !important; }

  .xp-services-grid,
  .xp-results-grid,
  .xp-testimonials-grid,
  .xp-steps-grid,
  .xp-promises-grid,
  .xp-case-grid--3col,
  .xp-case-grid--2col { grid-template-columns: 1fr; }

  .xp-blog-grid { grid-template-columns: 1fr; }
  .xp-footer-grid { grid-template-columns: 1fr; }
  .xp-why-strip__inner { grid-template-columns: 1fr; gap: 24px; }
  .xp-stat-banner__inner { flex-direction: column; gap: 24px; }
  .xp-stat-bar { flex-direction: column; }
  .xp-stat-item + .xp-stat-item { border-left: none; border-top: 1px solid rgba(255,255,255,0.15); padding-top: 24px; margin-top: 24px; }
  .xp-outcomes-grid { grid-template-columns: 1fr; }

  .xp-form-row { grid-template-columns: 1fr; }
  .xp-timeline { grid-template-columns: 1fr; }
  .xp-timeline::before { display: none; }
  .xp-step-card { text-align: left; display: flex; gap: 16px; align-items: flex-start; }
  .xp-step-number { margin: 0; flex-shrink: 0; }
}

/* Laptop/Tablet adjustments */
@media (max-width: 1450px) {
  .xp-hero-strips__content h1 {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem) !important;
  }
  .xp-btn--lg {
    padding: 12px 28px !important;
    font-size: 0.95rem !important;
  }
  .xp-btn--primary,
  .et_pb_button.xp-btn--primary,
  a.xp-btn--primary {
    padding: 12px 24px !important;
    font-size: 0.9rem !important;
  }
}

@media (max-width: 1024px) {
  /* Hero strips mobile */
  .xp-hero-strips {
    min-height: auto;
    align-items: stretch;
    flex-direction: column;
  }
  .xp-hero-strips .et_pb_code_inner {
    display: initial !important;
  }
  .xp-hero-strips__panels {
    position: relative;
    height: 35vh;
  }
  .xp-hero-strip { transform: none; margin: 0; }
  .xp-hero-strip:first-child { margin-left: 0; }
  .xp-hero-strip:last-child  { margin-right: 0; }
  .xp-hero-strip img { transform: none; width: 100%; margin-left: 0; }
  .xp-hero-strip:hover img { transform: none; }
  .xp-hero-strip__video { display: none; }
  .xp-hero-strip__text,
  .xp-hero-strip:nth-child(2) .xp-hero-strip__text {
    top: 50%; bottom: auto; left: 50%;
    transform: translate(-50%,-50%);
  }
  .xp-hero-strip__label { font-size: 0.7rem; letter-spacing: 2px; color: rgba(255,255,255,0.6); }
  .xp-hero-strip__desc { display: none; }
  .xp-hero-strip + .xp-hero-strip::before { display: none; }
  .xp-hero-strips__panels::after { display: none; }
  .xp-hero-strips__content {
    position: relative;
    z-index: 10;
    padding: 40px 24px 32px;
    background: linear-gradient(160deg, #0a0a14 0%, var(--xp-navy) 100%);
    pointer-events: auto;
  }
  .xp-hero-strips__content h1,
  .xp-hero-strips__content .xp-hero__subtitle,
  .xp-hero-strips__content .xp-hero__ctas { max-width: 100%; }
  .xp-hero-strips__content h1 { font-size: clamp(1.8rem,7vw,2.4rem); }
  .xp-hero-strips__content .xp-hero__ctas { flex-direction: column; }

  /* Platform strips mobile */
  .xp-platform-strips__panels { height: 80px; }
  .xp-platform-strip { transform: skewX(0); margin: 0; }
  .xp-platform-strip:first-child { margin-left: 0; }
  .xp-platform-strip:last-child { margin-right: 0; }
  .xp-platform-strip img { transform: skewX(0) scale(1.1); margin-left: 0; width: 100%; }
  .xp-platform-strip__text { transform: translate(-50%,-50%) skewX(0); }
  .xp-platform-strip__label { font-size: 0.7rem; letter-spacing: 1.5px; }

  .xp-service-magazine { padding: 48px 0; }
  .xp-service-magazine__card { margin-bottom: 32px; }
  .xp-service-magazine__visual { min-height: 220px; }
  .xp-service-magazine__body { padding: 28px; }
  .xp-service-magazine__links { grid-template-columns: 1fr; }

  .xp-footer-bottom { flex-direction: column; text-align: center; }
  .xp-trust-bar__inner { flex-direction: column; gap: 12px; }

  .xp-hero.et_pb_section { padding-top: 80px !important; padding-bottom: 64px !important; }
  .xp-service-hero { padding: 120px 0 60px; }

  .xp-timeline-v { padding-left: 52px; }
  .xp-timeline-v__line { left: 16px; }
  .xp-timeline-v__number { left: -52px; width: 36px; height: 36px; font-size: 0.95rem; }

  .xp-shift-stats { flex-direction: column; gap: 20px; }
  .xp-the-shift__grid { grid-template-columns: 1fr; gap: 32px; }
}

/* 480px — Small mobile */
@media (max-width: 480px) {
  .xp-stat-banner__inner { gap: 20px; }
  .xp-hero-stat__number { font-size: 1.3rem; }
  .xp-cta-section { padding: 64px 24px; }
  .xp-service-magazine__visual-text { padding: 24px; }
  .xp-service-magazine__visual-text h2 { font-size: 1.3rem; }
  .xp-service-magazine__number { font-size: 2.5rem; }
}

/* ============================================
   MOBILE NAV (slide-in panel)
   ============================================ */
.xp-nav--open {
  position: fixed;
  top: 0; right: 0;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  background: #fff;
  z-index: 300;
  display: flex !important;
  flex-direction: column;
  box-shadow: -8px 0 30px rgba(0,0,0,0.15);
  overflow-y: auto;
  padding: 80px 0 24px;
  opacity: 1 !important;
  pointer-events: auto !important;
}
.xp-nav--open .xp-nav__item { border-bottom: 1px solid var(--xp-border); }
.xp-nav--open .xp-nav__item > a {
  padding: 16px 20px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--xp-text);
  border-radius: 0;
}
.xp-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 299;
  display: none;
}
.xp-nav-backdrop.is-visible { display: block; }

/* ============================================================
   GLOBAL LAYOUT HELPERS — ensure flex/grid inside Code Modules
   ============================================================ */
.xp-hero__ctas {
  display: flex !important;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
.xp-hero__content { max-width: 800px; }
.xp-trust-signals {
  display: flex !important;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  margin-top: 32px;
}
.xp-trust-item { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; }

/* Card grids inside code modules */
.xp-cards-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.xp-cards-grid--2 { grid-template-columns: repeat(2, 1fr); }
.xp-cards-grid--3 { grid-template-columns: repeat(3, 1fr); }
.xp-cards-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Service category rows */
.xp-service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 60px 0;
}
.xp-service-row--reverse { direction: rtl; }
.xp-service-row--reverse > * { direction: ltr; }
.xp-service-row__label {
  font-size: 4rem;
  font-weight: 800;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  margin-bottom: -20px;
  font-family: var(--xp-font);
}
.xp-service-row__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.xp-service-row__links { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 24px; }

/* Outcome / feature grid items */
.xp-outcome-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.xp-outcome-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px;
  border-radius: var(--xp-radius);
  background: rgba(255,255,255,0.04);
}
.xp-outcome-check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--xp-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.75rem;
  margin-top: 2px;
}

@media (max-width: 768px) {
  .xp-cards-grid--2,
  .xp-cards-grid--3,
  .xp-cards-grid--4 { grid-template-columns: 1fr; }
  .xp-service-row { grid-template-columns: 1fr; gap: 32px; }
  .xp-service-row--reverse { direction: ltr; }
}

/* ===========================================
   SUCCESS STORY SINGLE & ARCHIVE TEMPLATES
   =========================================== */

/* Single hero */
.xp-case-single__hero {
  background: var(--xp-navy);
  padding: 110px 0 60px;
  position: relative;
  overflow: hidden;
}
.xp-case-single__hero--has-image {
  min-height: 400px;
}
.xp-case-single__hero .xp-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.xp-case-single__hero-content {
  z-index: 2;
}
.xp-case-single__hero-image {
  position: relative;
  z-index: 1;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.xp-case-single__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.xp-case-single__hero-image img:hover {
  transform: scale(1.02);
}

/* Prev / Next case navigation */
.xp-case-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  backdrop-filter: blur(8px);
  transition: color 0.2s, background 0.2s;
  z-index: 10;
}
.xp-case-nav:hover {
  color: #fff;
  background: rgba(255,255,255,0.18);
}
.xp-case-nav--prev { left: 16px; }
.xp-case-nav--next { right: 16px; }
@media (max-width: 1100px) { .xp-case-nav { display: none; } }

@media (max-width: 900px) {
  .xp-case-single__hero .xp-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .xp-case-single__hero-image {
    order: -1;
  }
}

.xp-breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  margin-bottom: 20px;
}
.xp-breadcrumb a { color: rgba(255,255,255,0.7); text-decoration: none; }
.xp-breadcrumb a:hover { color: var(--xp-purple); }

.xp-case-single__hero-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.xp-case-single__hero .xp-tag {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
}

.xp-case-single__headline {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: #fff;
  font-weight: 700;
  max-width: 800px;
  margin: 0;
}

/* Body layout */
.xp-case-single__body {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 60px;
  padding: 60px 20px;
  align-items: start;
}

@media (max-width: 900px) {
  .xp-case-single__body { grid-template-columns: 1fr; }
  .xp-case-single__sidebar { order: -1; }
}

/* Case sections */
.xp-case-section {
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--xp-border);
}
.xp-case-section:last-child { border-bottom: none; }
.xp-case-section h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--xp-navy);
  margin-bottom: 16px;
}
.xp-case-section__content p { color: var(--xp-muted); line-height: 1.7; }

.xp-case-section--kpis { background: var(--xp-light); border-radius: 12px; padding: 32px; border: none; }
.xp-case-section--results { background: linear-gradient(135deg, var(--xp-navy) 0%, #1a0533 100%); border-radius: 12px; padding: 32px; border: none; }
.xp-case-section--results h2,
.xp-case-section--results p { color: #fff; }
.xp-case-results p { font-size: 1.05rem; }

/* Testimonials */
.xp-testimonial {
  background: var(--xp-light);
  border-left: 4px solid var(--xp-purple);
  border-radius: 0 12px 12px 0;
  padding: 28px 32px;
  margin: 0 0 20px;
}
.xp-testimonial p { font-style: italic; color: var(--xp-navy); font-size: 1.05rem; }
.xp-testimonial footer { color: var(--xp-muted); font-size: 0.9rem; margin-top: 12px; }

/* Sidebar */
.xp-case-meta-box {
  background: var(--xp-light);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
}
.xp-case-meta-box h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--xp-muted);
  margin-bottom: 12px;
}
.xp-case-meta-box p { color: var(--xp-navy); font-size: 0.95rem; }
.xp-tag-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }

/* Sidebar image */
.xp-case-image { padding: 0; overflow: hidden; }
.xp-case-sidebar-image {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
  transition: transform 0.3s ease;
  border-radius: 12px;
}
.xp-case-sidebar-image:hover { transform: scale(1.05); }

/* Image modal */
.xp-case-modal {
  display: none;
  position: fixed;
  z-index: 99999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.95);
}
.xp-case-modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90vh;
  animation: zoom 0.3s;
}
@keyframes zoom {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.xp-case-modal-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}
.xp-case-modal-close:hover,
.xp-case-modal-close:focus {
  color: #bbb;
}

.xp-case-cta { background: linear-gradient(135deg, var(--xp-navy) 0%, #1a0533 100%); text-align: center; }
.xp-case-cta h3 { color: #fff !important; font-size: 1.1rem !important; text-transform: none !important; letter-spacing: 0 !important; }
.xp-case-cta p { color: rgba(255,255,255,0.8) !important; font-size: 0.9rem; margin-bottom: 16px; }

/* Related */
.xp-case-single__related { padding: 60px 0; }
.xp-case-single__related h2 { font-size: 1.8rem; margin-bottom: 32px; color: var(--xp-navy); }

/* Archive */
.xp-case-archive { padding: 60px 20px; }
.xp-case-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 40px;
}
.xp-case-filters__label { color: var(--xp-muted); font-size: 0.9rem; }
.xp-filter-btn {
  padding: 6px 18px;
  border: 1px solid var(--xp-border);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--xp-navy);
  text-decoration: none;
  transition: all 0.2s;
}
.xp-filter-btn:hover,
.xp-filter-btn.active { background: var(--xp-purple); border-color: var(--xp-purple); color: #fff; }

/* Tag variants */
.xp-tag { display: inline-block; padding: 4px 12px; background: rgba(108,53,255,0.1); color: var(--xp-purple); border-radius: 20px; font-size: 0.8rem; font-weight: 600; }
.xp-tag--outline { background: transparent; border: 1px solid var(--xp-border); color: #fff; }
.xp-tag--accent { background: rgba(234,0,122,0.1); color: var(--xp-fuchsia); }

/* Case card (used by shortcode) */
.xp-case-grid {
  display: grid;
  gap: 28px;
}
.xp-case-grid--3col { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.xp-case-grid--2col { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }

.xp-case-card {
  display: block;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--xp-border);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
}
.xp-case-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.1); }

.xp-case-card__image {
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: var(--xp-navy);
}
.xp-case-card__body { padding: 24px; }
.xp-case-card__body .xp-tag { margin-bottom: 4px; }
.xp-case-card__body h3 { font-size: 1.05rem; color: var(--xp-navy); margin: 12px 0 8px; line-height: 1.4; }
.xp-case-card__body p { color: var(--xp-muted); font-size: 0.9rem; line-height: 1.6; margin-bottom: 16px; }

/* Page hero (used by archive) */
.xp-page-hero { background: var(--xp-navy); padding: 80px 0; text-align: center; }
.xp-page-hero--dark { background: linear-gradient(135deg, var(--xp-navy) 0%, #1a0533 100%); }
.xp-page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 16px; }
.xp-page-hero .xp-hero__subtitle { color: rgba(255,255,255,0.75); font-size: 1.15rem; max-width: 640px; margin: 0 auto; }

/* ===========================================
   HEADER / NAV CLASS NAME CORRECTIONS
   Fix mismatches between header.php and style.css
   =========================================== */

/* CRITICAL: .xp-nav is the outer <nav> element — should NEVER be hidden.
   Only .xp-nav-menu (the <ul>) should fade in/out */
.xp-header .xp-nav {
  opacity: 1 !important;
  pointer-events: auto !important;
}
.xp-header .xp-nav-menu {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.xp-header:hover .xp-nav-menu {
  opacity: 1;
  pointer-events: auto;
}
.xp-header.header--scrolled .xp-nav-menu {
  opacity: 1;
  pointer-events: auto;
}

/* Fix <nav> element layout — it's a block container, not a flex list */
.xp-nav {
  display: block !important;
  list-style: none;
}

/* The actual flex list should be .xp-nav-menu */
.xp-nav-menu {
  display: flex;
  list-style: none;
  gap: 4px;
  margin: 0;
  padding: 0;
}

/* nav__inner: HTML uses xp-nav__inner, CSS uses xp-main-nav__inner */
.xp-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 100%;
  padding: 12px 24px;
  position: relative;
  transition: padding 0.3s ease;
}
.header--scrolled .xp-nav__inner { padding-top: 6px; padding-bottom: 6px; }

/* Desktop: Full-width navigation */
@media (min-width: 1025px) {
  .xp-nav__inner {
    max-width: 100%;
    padding-left: 40px;
    padding-right: 40px;
  }
}

/* Mobile toggle: HTML uses xp-mobile-toggle, CSS uses xp-nav-toggle */
.xp-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  position: relative;
  width: 40px;
  height: 40px;
  z-index: 301;
}
.xp-mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
  position: absolute;
  left: 8px;
}
.xp-mobile-toggle span:nth-child(1) { top: 10px; }
.xp-mobile-toggle span:nth-child(2) { top: 19px; }
.xp-mobile-toggle span:nth-child(3) { top: 28px; }
.xp-mobile-toggle.is-active span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.xp-mobile-toggle.is-active span:nth-child(2) { opacity: 0; }
.xp-mobile-toggle.is-active span:nth-child(3) { top: 19px; transform: rotate(-45deg); }
.header--scrolled .xp-mobile-toggle span,
.xp-header:hover .xp-mobile-toggle span { background: var(--xp-navy); }

/* Mega menu col header: HTML uses xp-mega-menu__col-header */
.xp-mega-menu__col-header {
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--xp-border);
}
.xp-mega-menu__col-header h4 {
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--xp-accent) !important;
  margin-bottom: 2px;
}
.xp-mega-menu__col-header h4 a {
  color: var(--xp-accent) !important;
  text-decoration: none;
}
.xp-mega-menu__col-header h4 a:hover { color: var(--xp-purple) !important; }
.xp-mega-menu__col-header p {
  font-size: 0.78rem;
  color: var(--xp-muted);
  margin: 0;
  line-height: 1.4;
}

/* CTA column in mega menu: HTML uses xp-mega-menu__cta-col */
.xp-mega-menu__cta-col {
  background: var(--xp-bg);
  border-right: none !important;
  border-radius: 0 var(--xp-radius-lg) var(--xp-radius-lg) 0;
  display: flex;
  align-items: stretch;
  padding: 0 !important;
}
.xp-mega-menu__cta-card {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 180px;
  width: 100%;
}
.xp-mega-menu__cta-card h4 {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: var(--xp-navy) !important;
  margin: 0 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
.xp-mega-menu__cta-card p {
  font-size: 0.82rem;
  color: var(--xp-muted);
  line-height: 1.5;
  margin: 0;
  flex: 1;
}
.xp-mega-menu__cta-card .xp-btn--primary {
  align-self: flex-start;
  margin-top: 4px;
}

/* Mobile menu panel: HTML uses xp-mobile-menu */
.xp-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 340px;
  max-width: 90vw;
  height: 100vh;
  background: #fff;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 30px rgba(0,0,0,0.15);
  overflow-y: auto;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.xp-mobile-menu.is-open { right: 0; }
.xp-mobile-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--xp-border);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
}
.xp-mobile-menu__header .xp-logo__img { filter: none; height: 28px; }
.xp-mobile-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--xp-navy);
  line-height: 1;
  padding: 4px;
}
.xp-mobile-menu__body { flex: 1; overflow-y: auto; }
.xp-mobile-menu__list { list-style: none; padding: 8px 0; margin: 0; }
.xp-mobile-menu__item { }
.xp-mobile-menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--xp-navy);
  background: none;
  border: none;
  border-bottom: 1px solid var(--xp-border);
  cursor: pointer;
  text-align: left;
  text-decoration: none;
}
.xp-mobile-menu__link:hover { color: var(--xp-accent); background: var(--xp-bg); }
.xp-mobile-menu__link svg { flex-shrink: 0; transition: transform 0.25s; }
.xp-mobile-has-children .xp-mobile-menu__link[aria-expanded="true"] svg { transform: rotate(180deg); }
.xp-mobile-menu__sub {
  list-style: none;
  padding: 8px 0;
  margin: 0;
  background: var(--xp-bg);
}
.xp-mobile-menu__sub li a {
  display: block;
  padding: 10px 24px 10px 36px;
  color: var(--xp-text);
  font-size: 0.9rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.xp-mobile-menu__sub li a:hover { color: var(--xp-accent); }
.xp-mobile-menu__heading {
  padding: 12px 24px 4px 24px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--xp-muted);
}
.xp-mobile-menu__footer {
  padding: 24px;
  border-top: 1px solid var(--xp-border);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.xp-mobile-menu__contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}
.xp-mobile-menu__contact a {
  color: var(--xp-muted);
  font-size: 0.9rem;
  text-decoration: none;
}
.xp-mobile-menu__contact a:hover { color: var(--xp-accent); }

/* Backdrop */
.xp-mobile-menu__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  display: none;
  cursor: pointer;
}
.xp-mobile-menu__backdrop.is-visible { display: block; }

/* Responsive: show mobile toggle, hide desktop nav menu + actions */
@media (max-width: 1024px) {
  .xp-mobile-toggle { display: block !important; }
  .xp-nav-menu, .xp-nav-actions { display: none !important; }
}

/* ===========================================
   FOOTER CLASS NAME CORRECTIONS & ADDITIONS
   Fix mismatches between footer.php and style.css
   =========================================== */

/* BEM double-underscore → single-dash aliases */
.xp-footer__grid { /* same as xp-footer-grid */
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding: 64px 0 48px;
}
.xp-footer__col { /* same as xp-footer-col */
  color: rgba(255,255,255,0.6);
}
.xp-footer__col h4 {
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}
.xp-footer__col ul { list-style: none; margin: 0; padding: 0; }
.xp-footer__col li { margin-bottom: 10px; }
.xp-footer__col a { color: rgba(255,255,255,0.6); font-size: 0.88rem; transition: color 0.2s; }
.xp-footer__col a:hover { color: #fff; }

.xp-footer__col--brand { /* same as xp-footer-brand */ }
.xp-footer__col--brand p { margin: 16px 0 20px; color: rgba(255,255,255,0.6); font-size: 0.9rem; line-height: 1.6; }
.xp-footer__col--brand .xp-logo__img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
}

/* Top bar phone/email */
.xp-top-bar__phone,
.xp-top-bar__email {
  color: rgba(255,255,255,0.7);
  font-size: 0.82rem;
}

/* Top bar uses xp-container not xp-top-bar__inner */
.xp-top-bar .xp-container {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  align-items: center;
}

/* Google logo in top bar */
.xp-google-logo { font-weight: 700; }

/* Top bar mobile */
@media (max-width: 600px) {
  .xp-top-bar__reviews-word { display: none; }
  .xp-top-bar__phone { white-space: nowrap; }
}

/* Eyebrow small (used in mega menu CTA) */
.xp-eyebrow-small {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--xp-accent);
  font-weight: 700;
}

/* Footer contact & office */
.xp-footer-contact { list-style: none; padding: 0; margin: 0; }
.xp-footer-contact li {
  margin-bottom: 10px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
}
.xp-footer-contact strong { color: rgba(255,255,255,0.8); }
.xp-footer-contact a { color: rgba(255,255,255,0.6); }
.xp-footer-contact a:hover { color: #fff; }

.xp-footer-office {
  margin-bottom: 16px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
}
.xp-footer-office strong { display: block; color: rgba(255,255,255,0.75); margin-bottom: 4px; }
.xp-footer-office address { font-style: normal; }

/* Footer made in */
.xp-footer-made-in {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  margin-top: 8px;
}
.xp-footer-made-in svg { flex-shrink: 0; }

/* Footer badges / eco */
.xp-badge img { height: 40px; width: auto; opacity: 0.7; transition: opacity 0.2s; }
.xp-badge img:hover { opacity: 1; }

.xp-footer-eco {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 24px;
}
.xp-footer-eco__green { display: flex; align-items: center; }
.xp-footer-eco__green img { height: 30px; width: auto; opacity: 0.8; transition: opacity 0.2s; }
.xp-footer-eco__green:hover img { opacity: 1; }

/* Responsive footer grid */
@media (max-width: 1024px) {
  .xp-footer__grid,
  .xp-footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
  }
}
@media (max-width: 768px) {
  .xp-footer__grid,
  .xp-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ============================================
   MISSING BASE: .xp-container
   Used throughout header, footer, and all page templates
   ============================================ */
.xp-container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .xp-container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* ============================================
   MISSING BASE: body/html foundations
   Ensure font and box model are correct
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: var(--xp-font);
  color: var(--xp-text);
  background-color: var(--xp-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ============================================
   XP-TEXT-CENTER utility
   ============================================ */
.xp-text-center { text-align: center; }
.xp-text-left   { text-align: left; }
.xp-text-right  { text-align: right; }

/* fix the main content not being under the menu **/
#main-content {
    margin-top: -80px;
}
.page.et_pb_pagebuilder_layout #main-content {
    margin-top: -80px;
}

/* ============================================
   HERO STRIP: CTA BUTTON + WEBGENTIC BADGE
   ============================================ */
.xp-hero-strip__cta {
  display: inline-block;
  margin-top: 14px;
  padding: 8px 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0);
  border: 1px solid rgba(255,255,255,0);
  border-radius: var(--xp-radius);
  background: transparent;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: all 0.4s ease;
  transform: translateY(8px);
  pointer-events: none;
}
.xp-hero-strip:hover .xp-hero-strip__cta {
  color: #fff;
  border-color: rgba(255,255,255,0.5);
  transform: translateY(0);
  pointer-events: auto;
}
.xp-hero-strip:hover .xp-hero-strip__cta:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
}

.xp-hero-webgentic-badge {
  position: absolute;
  bottom: 60px;
  right: 48px;
  z-index: 6;
  text-align: right;
}
.xp-hero-webgentic-badge a {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  text-decoration: none;
  color: rgba(255,255,255,0.7);
  font-size: 0.78rem;
  transition: color 0.2s;
}
.xp-hero-webgentic-badge a:hover { color: #fff; }
.xp-hero-webgentic-badge img { height: 20px; width: auto; filter: brightness(0) invert(1); opacity: 0.6; }

/* ============================================
   THE SHIFT SECTION
   ============================================ */
.xp-the-shift__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  margin-bottom: 64px;
}
.xp-the-shift__content { padding-top: 8px; }
.xp-the-shift__content .xp-eyebrow-text {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--xp-accent);
  margin-bottom: 16px;
}
.xp-the-shift__content h2 { color: #fff !important; margin-bottom: 20px; }
.xp-the-shift__content p { color: rgba(255,255,255,0.7); line-height: 1.75; margin-bottom: 14px; }
.xp-the-shift__right { display: flex; flex-direction: column; gap: 28px; }
.xp-the-shift__image {
  border-radius: var(--xp-radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  transform: translateY(-12px);
}
.xp-the-shift__image img { width: 100%; height: 340px; object-fit: cover; display: block; }
.xp-shift-stats { display: flex; gap: 20px; }
.xp-shift-stat {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--xp-radius);
  padding: 20px 16px;
  text-align: center;
}
.xp-shift-stat__number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--xp-accent);
  line-height: 1.1;
  margin-bottom: 6px;
}
.xp-shift-stat__label {
  display: block;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.4;
}

/* ============================================
   PLATFORM LOGOS
   ============================================ */
.xp-platform-logos {
  display: flex;
  gap: 48px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.xp-platform-logo img {
  height: 28px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  filter: invert(1) grayscale(100%) brightness(100);
  opacity: 0.8;
  transition: all 0.3s;
}
.xp-platform-logo:hover img { opacity: 1; }
.xp-section--light .xp-platform-logo img,
.xp-section--pattern .xp-platform-logo img {
  filter: grayscale(100%);
  opacity: 0.45;
}
.xp-section--light .xp-platform-logo:hover img,
.xp-section--pattern .xp-platform-logo:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* ============================================
   SERVICE ROWS (alternating layout)
   ============================================ */
.xp-service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 64px 0;
  border-bottom: 1px solid var(--xp-border);
  position: relative;
}
.xp-service-row:last-child { border-bottom: none; }
.xp-service-row--reverse { direction: rtl; }
.xp-service-row--reverse > * { direction: ltr; }

.xp-service-row__number {
  position: absolute;
  top: -40px;
  font-size: 10rem;
  font-weight: 900;
  color: rgba(90,0,209,0.06);
  pointer-events: none;
  line-height: 1;
  z-index: 0;
}
/* Odd rows (1st, 3rd, etc) - top left */
.xp-service-row:nth-child(even) .xp-service-row__number {
  left: -36px;
}
/* Even rows (2nd, 4th, etc) - top right */
.xp-service-row:nth-child(odd) .xp-service-row__number {
  right: -36px;
}
.xp-service-row__image {
  border-radius: var(--xp-radius-lg);
  overflow: hidden;
  box-shadow: var(--xp-shadow-lg);
  position: relative;
  z-index: 1;
}
.xp-service-row__image img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.xp-service-row:hover .xp-service-row__image img { transform: scale(1.03); }
.xp-service-row__content { position: relative; z-index: 1; }
.xp-service-row__content h3 { font-size: clamp(1.4rem,2vw,1.8rem); margin-bottom: 14px; }
.xp-service-row__content p { color: var(--xp-text-muted); line-height: 1.75; margin-bottom: 24px; }

.xp-service-row__logos {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.xp-service-row__logos .xp-platform-logo img {
  height: 22px;
  filter: grayscale(100%);
  opacity: 0.4;
}
.xp-service-row__logos .xp-platform-logo:hover img { filter: grayscale(0%); opacity: 1; }

.xp-service-row__links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.xp-service-row__links li {
  list-style: none;
}
.xp-service-row__links li::marker {
  display: none;
  content: none;
}
.xp-service-row__links li a {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--xp-border);
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--xp-text);
  transition: all 0.2s;
}
.xp-service-row__links li a:hover {
  border-color: var(--xp-accent);
  color: var(--xp-accent);
  background: rgba(180,44,255,0.05);
}

/* ============================================
   OUTCOMES GRID (What Changes)
   ============================================ */
.xp-outcomes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.xp-outcome-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--xp-radius-lg);
  transition: all 0.3s;
}
.xp-outcome-item:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(180,44,255,0.3);
}
.xp-outcome-check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: rgba(180,44,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--xp-accent);
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 2px;
}
.xp-outcome-item h4 { color: #fff !important; margin-bottom: 6px; font-size: 1rem; }
.xp-outcome-item p { color: rgba(255,255,255,0.6) !important; font-size: 0.9rem; margin: 0; line-height: 1.6; }

/* ============================================
   UPTIME BAR (below promise cards)
   ============================================ */
.xp-uptime-bar {
  display: flex;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  border-top: 1px solid var(--xp-border);
  padding-top: 40px;
  margin-top: 8px;
}
.xp-uptime-bar__stat {
  flex: 1;
  min-width: 160px;
  text-align: center;
  padding: 0 32px;
}
.xp-uptime-bar__stat + .xp-uptime-bar__stat { border-left: 1px solid var(--xp-border); }
.xp-uptime-bar__number {
  display: block;
  font-size: clamp(2rem,3.5vw,2.8rem);
  font-weight: 800;
  color: var(--xp-navy);
  line-height: 1.1;
  margin-bottom: 6px;
}
.xp-uptime-bar__label {
  display: block;
  font-size: 0.85rem;
  color: var(--xp-text-muted);
}

/* ============================================
   RESPONSIVE: new homepage components
   ============================================ */
@media (max-width: 768px) {
  .xp-the-shift__grid { grid-template-columns: 1fr; gap: 40px; }
  .xp-shift-stats { flex-direction: column; }
  .xp-service-row { grid-template-columns: 1fr; gap: 32px; }
  .xp-service-row--reverse { direction: ltr; }
  .xp-service-row__number { display: none; }
  .xp-outcomes-grid { grid-template-columns: 1fr; }
  .xp-promises-grid { grid-template-columns: repeat(2, 1fr); }
  .xp-uptime-bar { flex-direction: column; gap: 24px; }
  .xp-uptime-bar__stat + .xp-uptime-bar__stat { border-left: none; border-top: 1px solid var(--xp-border); padding-top: 24px; }
  .xp-hero-webgentic-badge { bottom: 24px; right: 24px; }
}
@media (max-width: 480px) {
  .xp-promises-grid { grid-template-columns: 1fr; }
}

/* ============================================
   FEATURE CARDS
   ============================================ */
.feature-card {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: var(--radius-lg) !important;
  padding: 40px 36px !important;
  transition: all 0.3s !important;
}

.feature-card.et_pb_blurb_0.et_pb_blurb,
.feature-card.et_pb_blurb_1.et_pb_blurb,
.feature-card.et_pb_blurb_2.et_pb_blurb,
.feature-card.et_pb_blurb_3.et_pb_blurb,
.feature-card.et_pb_blurb_4.et_pb_blurb,
.feature-card.et_pb_blurb_5.et_pb_blurb {
  padding-top: 40px !important;
  padding-right: 36px !important;
  padding-bottom: 40px !important;
  padding-left: 36px !important;
}

.feature-card .et_pb_blurb_content {
  display: flex !important;
  flex-direction: column !important;
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  transform: translateY(-4px);
}

.feature-card .et_pb_blurb_content h4,
.feature-card h4.et_pb_module_header,
.xp-section--dark .feature-card h4.et_pb_module_header,
.xp-section--dark .et_pb_blurb.feature-card h4.et_pb_module_header {
  color: #ffffff !important;
  font-weight: 600 !important;
}

.feature-card .et_pb_blurb_content p {
  color: rgba(255, 255, 255, 0.9) !important;
  stroke-width: 2 !important;
  fill: none !important;
  display: block !important;
}

/* ============================================
   SERVICE FORM CARD & COMPONENTS
   ============================================ */

/* Service Form Card */
.service-form-card {
  background: var(--xp-card);
  border: 1px solid var(--xp-border);
  border-radius: var(--xp-radius-lg);
  padding: 32px 28px;
}

.service-form-card__header {
  margin-bottom: 24px;
}

.service-form-card__title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--xp-text);
  margin-bottom: 6px;
}

.service-form-card__subtitle {
  color: var(--xp-text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

/* Honeypot Field */
.service-form .hp-field,
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

/* Service Form */
.service-form__group {
  margin-bottom: 16px;
}

.service-form__group label,
.service-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--xp-text);
  margin-bottom: 6px;
}

.service-form__group input,
.service-form__group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--xp-border);
  border-radius: var(--xp-radius);
  font-family: var(--xp-font);
  font-size: 0.95rem;
  background: #fff;
  color: var(--xp-text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.service-form__group input:focus,
.service-form__group textarea:focus {
  outline: none;
  border-color: var(--xp-accent);
  box-shadow: 0 0 0 3px rgba(180, 44, 255, 0.1);
}

.service-form__group input::placeholder,
.service-form__group textarea::placeholder {
  color: #94a3b8;
}

.service-form__textarea {
  resize: vertical;
  min-height: 100px;
}

.service-form__note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--xp-text-muted);
  margin-top: 12px;
  margin-bottom: 0;
}

/* Form Status Messages */
.service-form-error,
.service-form__error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
  padding: 12px 16px;
  border-radius: var(--xp-radius);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.service-form-success,
.service-form__success {
  text-align: center;
  padding: 24px 16px;
  background: #f0fdfa;
  border: 1px solid #5eead4;
  border-radius: var(--xp-radius);
  margin-bottom: 16px;
}

.service-form-success h4,
.service-form__success h4 {
  color: var(--xp-teal);
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.service-form-success p,
.service-form__success p {
  color: var(--xp-text-muted);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Service George Box */
.service-george-box {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding: 16px 20px;
  background: var(--xp-card);
  border: 1px solid var(--xp-border);
  border-radius: var(--xp-radius-lg);
}

.service-george-box img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.service-george-box__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--xp-text-muted);
  margin-bottom: 2px;
}

.service-george-box h4 {
  font-size: 0.95rem;
  margin-bottom: 2px;
  font-weight: 600;
  color: var(--xp-text);
}

.service-george-box h4 a {
  color: #0077b5;
  margin-left: 4px;
  vertical-align: middle;
  text-decoration: none;
  transition: color 0.2s;
}

.service-george-box h4 a:hover {
  color: #005885;
}

.service-george-box h4 svg {
  display: inline-block;
  vertical-align: middle;
}

.service-george-box p {
  font-size: 0.8rem;
  color: var(--xp-text-muted);
  margin: 0;
}

/* Service Form Card Contact Box */
.service-form-card__contact {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  padding: 16px 20px;
  background: var(--xp-bg);
  border: 1px solid var(--xp-border);
  border-radius: var(--xp-radius-lg);
}

.service-form-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.service-form-card__contact-info {
  flex: 1;
}

.service-form-card__contact-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--xp-text);
  margin: 0 0 2px 0;
}

.service-form-card__contact-title {
  font-size: 0.8rem;
  color: var(--xp-text-muted);
  margin: 0 0 6px 0;
}

.service-form-card__contact-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #0077b5;
  text-decoration: none;
  transition: color 0.2s;
}

.service-form-card__contact-link:hover {
  color: #005885;
}

.service-form-card__contact-link svg {
  flex-shrink: 0;
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--xp-font);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: var(--xp-radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  line-height: 1;
}

.btn--primary {
  background: var(--xp-accent);
  color: #fff;
  border-color: var(--xp-accent);
}

.btn--primary:hover {
  background: var(--xp-accent-hover);
  border-color: var(--xp-accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(180, 44, 255, 0.3);
}

.btn--sm {
  padding: 10px 20px;
  font-size: 0.85rem;
}

.btn--lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.btn--full {
  width: 100%;
  justify-content: center;
}

.btn__icon {
  margin-left: 8px;
  flex-shrink: 0;
}

.btn__text {
  flex-grow: 1;
}

/* Overview Editorial Form (if needed) */
.overview-editorial__form {
  margin-top: 24px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .service-form-card {
    padding: 24px 20px;
  }

  .service-george-box {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   404 ERROR PAGE
   ============================================ */

/* Dark Hero Section */
.error-404-hero {
  background: linear-gradient(135deg, #0D0D2B 0%, #1a0f3e 100%);
  position: relative;
  padding: clamp(80px, 12vw, 140px) 20px;
  text-align: center;
  overflow: hidden;
  margin-top: -80px;
}

.error-404-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(180, 44, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.error-404-hero__container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.error-404-hero__visual {
  margin-bottom: 32px;
  animation: float 6s ease-in-out infinite;
}

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

.error-404-hero__visual svg {
  max-width: 200px;
  height: auto;
  margin: 0 auto;
}

.error-404-hero__title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  line-height: 1.1;
}

.error-404-hero__description {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* Main Content Section - Single Column */
.error-404-main {
  background: var(--xp-bg);
}

.error-404-container {
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(60px, 8vw, 100px) 20px;
}

.error-404-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

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

.btn--secondary:hover {
  background: var(--xp-accent);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(180, 44, 255, 0.3);
}

.error-404-search {
  margin-bottom: 60px;
  padding: 32px 24px;
  background: var(--xp-card);
  border: 1px solid var(--xp-border);
  border-radius: var(--xp-radius-lg);
  text-align: center;
}

.error-404-search h3 {
  font-size: 1.1rem;
  color: var(--xp-text);
  margin-bottom: 16px;
  text-align: center;
}

.error-404-search form {
  display: flex;
  gap: 8px;
  max-width: 500px;
  margin: 0 auto;
}

.error-404-search input[type="search"] {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--xp-border);
  border-radius: var(--xp-radius);
  font-family: var(--xp-font);
  font-size: 0.95rem;
  background: #fff;
  color: var(--xp-text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.error-404-search input[type="search"]:focus {
  outline: none;
  border-color: var(--xp-accent);
  box-shadow: 0 0 0 3px rgba(180, 44, 255, 0.1);
}

.error-404-search button[type="submit"] {
  padding: 12px 24px;
  background: var(--xp-accent);
  color: #fff;
  border: none;
  border-radius: var(--xp-radius);
  font-family: var(--xp-font);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
}

.error-404-search button[type="submit"]:hover {
  background: var(--xp-accent-hover);
  transform: translateY(-1px);
}

.error-404-links {
  text-align: center;
}

.error-404-links h3 {
  font-size: 1.3rem;
  color: var(--xp-text);
  margin-bottom: 24px;
}

.error-404-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 600px;
  margin: 0 auto;
}

.error-404-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 20px;
  background: var(--xp-card);
  border: 1px solid var(--xp-border);
  border-radius: var(--xp-radius-lg);
  text-decoration: none;
  color: var(--xp-text);
  transition: all 0.25s ease;
}

.error-404-link:hover {
  border-color: var(--xp-accent);
  transform: translateY(-4px);
  box-shadow: var(--xp-shadow-md);
}

.error-404-link svg {
  stroke: var(--xp-accent);
  transition: transform 0.25s ease;
}

.error-404-link:hover svg {
  transform: scale(1.1);
}

.error-404-link span {
  font-weight: 600;
  font-size: 0.95rem;
}

/* 404 Page Responsive */
@media (max-width: 768px) {
  .error-404-hero {
    padding: clamp(60px, 10vw, 100px) 20px;
  }

  .error-404-actions {
    flex-direction: column;
    gap: 12px;
  }

  .error-404-actions .btn {
    width: 100%;
  }

  .error-404-search form {
    flex-direction: column;
  }

  .error-404-search button[type="submit"] {
    width: 100%;
  }

  .error-404-links-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   LOGO MARQUEE
   ========================================== */
.xp-logo-marquee {
  overflow: hidden;
  padding: 24px 0;
  position: relative;
  width: 100%;
}

.xp-logo-marquee__track {
  display: flex;
  align-items: center;
  gap: 48px;
  animation: marquee-scroll 30s linear infinite;
  width: max-content;
}

.xp-logo-marquee__slide {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 110px;
}

.xp-logo-marquee__slide img {
  max-height: 90px;
  max-width: 130px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.6);
  transition: all 0.3s ease;
}

.xp-logo-marquee__slide img:hover {
  filter: grayscale(0%) opacity(1);
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Pause animation on hover */
.xp-logo-marquee:hover .xp-logo-marquee__track {
  animation-play-state: paused;
}

/* ═══════════════════════════════════════════════════════════════
   BLOG LISTING & CATEGORY ARCHIVE  (home.php + category.php)
   ═══════════════════════════════════════════════════════════════ */

/* ── Hero ─────────────────────────────────────────────────── */
.xp-blog-hero {
  background: linear-gradient(135deg, var(--xp-purple, #6f2da8) 0%, var(--xp-fuchsia, #c026d3) 100%);
  color: #fff;
  padding: 100px 0 60px;
  min-height: 220px;
}

.xp-blog-hero .xp-breadcrumb {
  margin-bottom: 20px;
  color: rgba(255,255,255,0.75);
}

.xp-blog-hero .xp-breadcrumb a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
}

.xp-blog-hero .xp-breadcrumb a:hover {
  color: #fff;
  text-decoration: underline;
}

.xp-blog-hero .xp-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  margin-bottom: 12px;
}

.xp-blog-hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 16px;
  line-height: 1.15;
}

.xp-blog-hero__subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.88);
  max-width: 640px;
  margin: 0;
  line-height: 1.6;
}

/* ── Filter Bar ───────────────────────────────────────────── */
.xp-blog-filters {
  position: sticky;
  top: 0;
  z-index: 90;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.xp-blog-filters__inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 14px;
  padding-bottom: 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.xp-blog-filters__inner::-webkit-scrollbar {
  display: none;
}

.xp-blog-filters__btn {
  display: inline-block;
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
  padding: 7px 18px;
  border-radius: 999px;
  border: 1.5px solid #d1d5db;
  color: #374151;
  text-decoration: none;
  background: transparent;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  flex-shrink: 0;
}

.xp-blog-filters__btn:hover {
  background: var(--xp-purple, #6f2da8);
  border-color: var(--xp-purple, #6f2da8);
  color: #fff;
}

.xp-blog-filters__btn--active {
  background: var(--xp-purple, #6f2da8);
  border-color: var(--xp-purple, #6f2da8);
  color: #fff;
}

/* ── Blog Section Spacing ─────────────────────────────────── */
.xp-blog-section {
  padding: 56px 0 64px;
}

/* ── Post Grid ────────────────────────────────────────────── */
.xp-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}

/* ── Blog Card ────────────────────────────────────────────── */
.xp-blog-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.22s, transform 0.22s;
}

.xp-blog-card:hover {
  box-shadow: 0 8px 30px rgba(111,45,168,0.13);
  transform: translateY(-3px);
}

.xp-blog-card__image-wrap {
  display: block;
  overflow: hidden;
}

.xp-blog-card__image {
  height: 220px;
  background-size: cover;
  background-position: center;
  transition: transform 0.38s ease;
}

.xp-blog-card__image-wrap:hover .xp-blog-card__image {
  transform: scale(1.04);
}

.xp-blog-card__image--placeholder {
  background: linear-gradient(135deg, var(--xp-purple, #6f2da8) 0%, var(--xp-fuchsia, #c026d3) 100%);
}

.xp-blog-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.xp-blog-card__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.xp-blog-card__meta {
  font-size: 0.78rem;
  color: #6b7280;
  margin-bottom: 10px;
}

.xp-blog-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 10px;
}

.xp-blog-card__title a {
  color: inherit;
  text-decoration: none;
}

.xp-blog-card__title a:hover {
  color: var(--xp-purple, #6f2da8);
}

.xp-blog-card__excerpt {
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.6;
  margin: 0 0 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

/* ── Pagination ───────────────────────────────────────────── */
.xp-blog-pagination {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

.xp-blog-pagination .page-numbers {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.xp-blog-pagination .page-numbers li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.xp-blog-pagination a,
.xp-blog-pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid #d1d5db;
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
  text-decoration: none;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.xp-blog-pagination a:hover {
  background: var(--xp-purple, #6f2da8);
  border-color: var(--xp-purple, #6f2da8);
  color: #fff;
}

.xp-blog-pagination .current {
  background: var(--xp-purple, #6f2da8);
  border-color: var(--xp-purple, #6f2da8);
  color: #fff;
}

.xp-blog-pagination .prev,
.xp-blog-pagination .next {
  font-size: 1rem;
}

/* ── Empty State ──────────────────────────────────────────── */
.xp-blog-empty {
  text-align: center;
  padding: 80px 24px;
  color: #6b7280;
  font-size: 1.05rem;
}

.xp-blog-empty a {
  color: var(--xp-purple, #6f2da8);
}

/* ── Fade-in Animation ────────────────────────────────────── */
@keyframes xpFadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.xp-fade-in {
  animation: xpFadeInUp 0.45s ease both;
}

.xp-blog-grid .xp-blog-card:nth-child(2) { animation-delay: 0.07s; }
.xp-blog-grid .xp-blog-card:nth-child(3) { animation-delay: 0.14s; }
.xp-blog-grid .xp-blog-card:nth-child(4) { animation-delay: 0.04s; }
.xp-blog-grid .xp-blog-card:nth-child(5) { animation-delay: 0.09s; }
.xp-blog-grid .xp-blog-card:nth-child(6) { animation-delay: 0.14s; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .xp-blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .xp-blog-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .xp-blog-hero {
    padding: 70px 0 40px;
  }

  .xp-blog-hero h1 {
    font-size: 1.7rem;
  }

  .xp-blog-card__image {
    height: 180px;
  }

  .xp-blog-pagination a,
  .xp-blog-pagination span {
    width: 34px;
    height: 34px;
    font-size: 0.82rem;
  }
}

/* ═══════════════════════════════════════════════════════════════
   SINGLE BLOG POST — FULL-BLEED HERO
   ═══════════════════════════════════════════════════════════════ */

/* ── Hero container ───────────────────────────────────────── */
.xp-blog-single__hero {
  position: relative;
  min-height: 520px;
  height: 65vh;
  max-height: 700px;
  display: flex;
  align-items: flex-end;       /* text block sits at the bottom */
  overflow: hidden;
  background: linear-gradient(135deg, var(--xp-purple, #6f2da8) 0%, var(--xp-fuchsia, #c026d3) 100%);
}

/* ── Background image ─────────────────────────────────────── */
.xp-blog-single__hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  z-index: 0;
  transform: scale(1.03);      /* slight oversize to allow smooth zoom */
  transition: transform 6s ease;
}

.xp-blog-single__hero--has-image:hover .xp-blog-single__hero-bg {
  transform: scale(1.07);
}

/* ── Dark gradient overlay ────────────────────────────────── */
.xp-blog-single__hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* heavy at bottom where text lives, fades to near-transparent at top */
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.80) 0%,
    rgba(0, 0, 0, 0.45) 40%,
    rgba(0, 0, 0, 0.10) 100%
  );
}

/* no-image variant: overlay still provides depth on the gradient bg */
.xp-blog-single__hero--no-image .xp-blog-single__hero-overlay {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.40) 0%,
    rgba(0, 0, 0, 0.05) 100%
  );
}

/* ── Inner content (bottom-left) ──────────────────────────── */
.xp-blog-single__hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: 52px;
  padding-top: 100px;           /* keeps breadcrumb away from the top edge */
  max-width: 820px;             /* readable line-length for the h1 */
}

/* ── Breadcrumb ───────────────────────────────────────────── */
.xp-blog-single__hero .xp-breadcrumb {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
  font-size: 0.82rem;
}

.xp-blog-single__hero .xp-breadcrumb a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.xp-blog-single__hero .xp-breadcrumb a:hover {
  color: #fff;
  text-decoration: underline;
}

.xp-blog-single__hero .xp-breadcrumb span[aria-hidden] {
  margin: 0 6px;
  opacity: 0.5;
}

/* ── Title ────────────────────────────────────────────────── */
.xp-blog-single__title {
  font-size: clamp(1.7rem, 3.8vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  margin: 0 0 18px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

/* ── Meta row (categories + date) ────────────────────────── */
.xp-blog-single__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.xp-blog-single__date {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

/* category tags in the hero get a semi-transparent pill treatment */
.xp-blog-single__hero .xp-tag--accent {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.xp-blog-single__hero .xp-tag--accent:hover {
  background: rgba(255, 255, 255, 0.30);
  border-color: rgba(255, 255, 255, 0.55);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .xp-blog-single__hero {
    min-height: 380px;
    height: 55vw;
    max-height: 520px;
  }

  .xp-blog-single__hero-inner {
    padding-bottom: 36px;
    padding-top: 80px;
  }

  .xp-blog-single__title {
    font-size: clamp(1.4rem, 5vw, 1.9rem);
  }
}

@media (max-width: 480px) {
  .xp-blog-single__hero {
    min-height: 320px;
    height: auto;
    max-height: none;
    padding-top: 0;
  }

  .xp-blog-single__hero-inner {
    padding-top: 70px;
    padding-bottom: 28px;
  }
}

/* ── Post body ────────────────────────────────────────────── */
.xp-blog-single__body {
  padding-top: 56px;
  padding-bottom: 56px;
}

.xp-blog-single__content {
  max-width: 740px;
}

.xp-blog-single__content h2,
.xp-blog-single__content h3 {
  margin-top: 2em;
}

.xp-blog-single__content p {
  line-height: 1.75;
  margin-bottom: 1.25em;
}

.xp-blog-single__content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5em 0;
}

/* ── Tags footer ──────────────────────────────────────────── */
.xp-blog-single__tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid #e5e7eb;
}

.xp-blog-single__tags-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 4px;
}

/* ── Author box ───────────────────────────────────────────── */
.xp-author-box {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 40px;
  padding: 24px;
  background: #f9fafb;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}

.xp-author-box__avatar img {
  border-radius: 50%;
  width: 64px;
  height: 64px;
  object-fit: cover;
}

.xp-author-box__name {
  font-weight: 700;
  margin: 0 0 4px;
}

.xp-author-box__bio {
  font-size: 0.88rem;
  color: #4b5563;
  margin: 0;
  line-height: 1.5;
}

/* ── Related posts grid ───────────────────────────────────── */
.xp-blog-single__related {
  padding: 56px 0;
}

.xp-posts-grid--3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 28px;
}

.xp-post-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}

.xp-post-card:hover {
  box-shadow: 0 6px 22px rgba(111,45,168,0.12);
  transform: translateY(-2px);
}

.xp-post-card__thumb {
  display: block;
  overflow: hidden;
}

.xp-post-card__img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.xp-post-card__thumb:hover .xp-post-card__img {
  transform: scale(1.04);
}

.xp-post-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.xp-post-card__meta {
  font-size: 0.78rem;
  color: #9ca3af;
  margin-bottom: 8px;
}

.xp-post-card__title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 8px;
  flex-grow: 1;
}

.xp-post-card__title a {
  color: inherit;
  text-decoration: none;
}

.xp-post-card__title a:hover {
  color: var(--xp-purple, #6f2da8);
}

.xp-post-card__excerpt {
  font-size: 0.85rem;
  color: #6b7280;
  margin: 0 0 16px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 768px) {
  .xp-posts-grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .xp-posts-grid--3 {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════════
   SINGLE BLOG POST — TWO-COLUMN LAYOUT + SIDEBAR
   ═══════════════════════════════════════════════════════════════ */

/* ── Main layout grid ─────────────────────────────────────── */
.xp-blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  align-items: start;
}

.xp-blog-main {
  min-width: 0;                 /* prevents content overflowing grid cell */
}

/* Remove the old standalone max-width now grid handles sizing */
.xp-blog-single__content {
  max-width: none;
}

/* ── Sticky sidebar ───────────────────────────────────────── */
.xp-blog-sidebar {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ── Sidebar cards (shared wrapper) ──────────────────────── */
.xp-sidebar-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
}

/* ── Sidebar section headings ─────────────────────────────── */
.xp-sidebar-heading {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #111827;
  margin: 0 0 16px;
}

.xp-sidebar-heading span {
  color: #ae1daa;
}

.xp-sidebar-heading--sm {
  margin-top: 20px;
  margin-bottom: 10px;
}

/* ── Author card ──────────────────────────────────────────── */
.xp-sidebar-author__header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.xp-sidebar-author__avatar {
  width: 52px;
  height: 52px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.xp-sidebar-author__info {
  flex: 1;
  min-width: 0;
}

.xp-sidebar-author__name {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.2;
}

.xp-sidebar-author__socials {
  display: flex;
  gap: 8px;
}

.xp-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  transition: opacity 0.18s;
}

.xp-social-icon:hover {
  opacity: 0.75;
}

.xp-social-icon--linkedin {
  color: #0077b5;
}

.xp-social-icon--facebook {
  color: #1877f2;
}

/* ── Credential + experience rows ────────────────────────── */
.xp-sidebar-author__credential,
.xp-sidebar-author__experience {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.xp-sidebar-author__credential {
  color: #16a34a;
}

.xp-sidebar-author__experience {
  color: #374151;
}

.xp-sidebar-author__credential svg,
.xp-sidebar-author__experience svg {
  flex-shrink: 0;
}

.xp-sidebar-author__experience svg {
  color: #1a56db;
}

/* ── Bio with truncation ──────────────────────────────────── */
.xp-sidebar-author__bio {
  font-size: 0.85rem;
  color: #4b5563;
  line-height: 1.6;
  margin: 14px 0 0;
  overflow: hidden;
  max-height: 80px;
  transition: max-height 0.35s ease;
  /* fade mask at the bottom when collapsed */
  -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

.xp-sidebar-author__bio--expanded {
  max-height: 600px;
  -webkit-mask-image: none;
  mask-image: none;
}

/* ── Show more/less button ────────────────────────────────── */
.xp-sidebar-author__more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1a56db;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 0;
  margin-top: 4px;
}

.xp-sidebar-author__more:hover {
  text-decoration: underline;
}

.xp-sidebar-author__more svg {
  transition: transform 0.28s ease;
}

.xp-sidebar-author__more--expanded svg {
  transform: rotate(180deg);
}

/* ── Expertise tags ───────────────────────────────────────── */
.xp-sidebar-author__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.xp-expertise-tag {
  display: inline-block;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #374151;
}

/* ── Sidebar divider ──────────────────────────────────────── */
.xp-sidebar-divider {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 0 0 16px;
}

/* ── Recent posts list ────────────────────────────────────── */
.xp-sidebar-posts__list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.xp-sidebar-posts__item {
  border-bottom: 1px solid #f3f4f6;
}

.xp-sidebar-posts__item:last-child {
  border-bottom: none;
}

.xp-sidebar-posts__item a {
  display: block;
  padding: 10px 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: #111827;
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.16s;
}

.xp-sidebar-posts__item a:hover {
  color: #ae1daa;
}

/* ── View All button (full-width outline) ─────────────────── */
.xp-btn--outline {
  display: inline-block;
  padding: 9px 20px;
  border: 1.5px solid var(--xp-purple, #6f2da8);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--xp-purple, #6f2da8);
  background: transparent;
  text-decoration: none;
  text-align: center;
  transition: background 0.18s, color 0.18s;
}

.xp-btn--outline:hover {
  background: var(--xp-purple, #6f2da8);
  color: #fff;
}

.xp-btn--sm {
  padding: 7px 16px;
  font-size: 0.82rem;
}

.xp-btn--full {
  display: block;
  width: 100%;
}

/* ── Responsive — collapse sidebar below content ─────────── */
@media (max-width: 980px) {
  .xp-blog-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .xp-blog-sidebar {
    position: static;            /* no sticky on mobile */
  }
}

/* ==========================================================================
   SUCCESS STORIES ARCHIVE  (.xp-cs-*)
   page-success-stories.php
   ========================================================================== */

/* ── Hero ─────────────────────────────────────────────────────────────────── */
/* Hero — canvas mosaic background */
.xp-cs-hero {
  background: #1a0533;   /* fallback while canvas paints */
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  align-items: center;
}

/* Canvas fills the entire hero section as background layer */
.xp-cs-hero__canvas {
  position: absolute;
  top: -25%;
  left: -25%;
  width: 150%;
  height: 150%;
  display: block;
  z-index: 0;
  transform: rotate(14deg);
  transform-origin: center center;
}

/* Dark diagonal gradient overlay — keeps text legible over moving images */
.xp-cs-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(135deg, rgba(26,5,51,0.93) 0%, rgba(45,20,96,0.82) 45%, rgba(15,23,42,0.90) 100%),
    linear-gradient(to bottom, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.55) 100%);
}

/* Hero content sits above both canvas and overlay */
.xp-cs-hero__content {
  position: relative;
  z-index: 2;
}

.xp-cs-hero .xp-breadcrumb { margin-bottom: 20px; }
.xp-cs-hero .xp-breadcrumb a,
.xp-cs-hero .xp-breadcrumb span { color: rgba(255,255,255,0.50); font-size: 0.82rem; }
.xp-cs-hero .xp-breadcrumb a:hover { color: #c084fc; }
.xp-cs-hero .xp-eyebrow { color: #c084fc; margin-bottom: 12px; font-size: 0.78rem; letter-spacing: 0.15em; text-transform: uppercase; font-weight: 700; }
.xp-cs-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; margin-bottom: 16px; line-height: 1.12; }
.xp-cs-hero__sub { color: rgba(255,255,255,0.75); font-size: 1.1rem; max-width: 600px; line-height: 1.65; margin-bottom: 36px; }

/* CTA buttons */
.xp-cs-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.xp-cs-hero__browse-btn {
  color: rgba(255,255,255,0.85) !important;
  border-color: rgba(255,255,255,0.35) !important;
  background: transparent !important;
}
.xp-cs-hero__browse-btn:hover {
  background: rgba(255,255,255,0.1) !important;
  border-color: rgba(255,255,255,0.7) !important;
  color: #fff !important;
}

/* Stats row */
.xp-cs-stats {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 32px;
  margin-top: 8px;
}
.xp-cs-stat {
  flex: 1 1 120px;
  text-align: center;
  padding: 0 24px;
  border-right: 1px solid rgba(255,255,255,0.12);
}
.xp-cs-stat:first-child { padding-left: 0; }
.xp-cs-stat:last-child  { border-right: none; }
.xp-cs-stat__num {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: #c084fc;
  line-height: 1;
  margin-bottom: 4px;
}
.xp-cs-stat__label { font-size: 0.78rem; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 0.08em; }

/* ── Filter bar — dropdown version ───────────────────────────────────────── */
.xp-cs-filters-wrap {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 90;
  padding: 14px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.xp-cs-filters-inner {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}
.xp-cs-filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 180px;
}
.xp-cs-filter-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9ca3af;
}
.xp-cs-select-wrap {
  position: relative;
}
.xp-cs-select-wrap::after {
  content: '▾';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  color: #9ca3af;
  pointer-events: none;
}
.xp-cs-select-wrap--active::after { color: var(--xp-accent, #7c3aed); }
.xp-cs-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  padding: 9px 36px 9px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #374151;
  background: #f9fafb;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.xp-cs-select:focus { outline: none; border-color: var(--xp-accent, #7c3aed); background: #fff; }
.xp-cs-select-wrap--active .xp-cs-select {
  border-color: var(--xp-accent, #7c3aed);
  background: #f5f3ff;
  color: var(--xp-accent, #7c3aed);
  font-weight: 600;
}
.xp-cs-filters-reset {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #ef4444;
  border: 1.5px solid #fca5a5;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  align-self: flex-end;
  transition: background 0.15s;
  margin-bottom: 0;
}
.xp-cs-filters-reset:hover { background: #fef2f2; }

/* ── Results bar ──────────────────────────────────────────────────────────── */
.xp-cs-results-bar {
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  padding: 10px 0;
  font-size: 0.88rem;
  color: #6b7280;
}
.xp-cs-results-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.xp-cs-results-bar__count { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.xp-cs-results-bar__count strong { color: #111827; }
.xp-cs-active-filter {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ede9fe;
  color: #6d28d9;
  border-radius: 12px;
  padding: 2px 10px 2px 12px;
  font-size: 0.78rem;
  font-weight: 600;
}
.xp-cs-active-filter a {
  color: #7c3aed;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.15s;
}
.xp-cs-active-filter a:hover { opacity: 1; }
.xp-cs-clear-all {
  color: #ef4444;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #fca5a5;
  border-radius: 12px;
  padding: 2px 10px;
  transition: background 0.15s;
}
.xp-cs-clear-all:hover { background: #fef2f2; }
.xp-cs-sort { display: flex; align-items: center; gap: 8px; }
.xp-cs-sort__label { font-size: 0.82rem; color: #9ca3af; white-space: nowrap; }
.xp-cs-sort select {
  font-size: 0.82rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 4px 10px;
  background: #fff;
  color: #374151;
  cursor: pointer;
}

/* ── Card grid ────────────────────────────────────────────────────────────── */
.xp-cs-grid-section { padding: 48px 0 64px; }
.xp-cs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Card */
.xp-cs-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s, transform 0.25s;
}
.xp-cs-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  transform: translateY(-4px);
}

/* Image */
.xp-cs-card__img-wrap {
  position: relative;
  display: block;
  height: 200px;
  overflow: hidden;
  flex-shrink: 0;
}
.xp-cs-card__img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: top center;
  transition: transform 0.4s ease;
}
.xp-cs-card:hover .xp-cs-card__img { transform: scale(1.05); }
.xp-cs-card__img--placeholder {
  background: linear-gradient(135deg, #4c1d95 0%, #7c3aed 50%, #c084fc 100%);
}
.xp-cs-card__badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(17,7,33,0.82);
  color: #c084fc;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  border-radius: 10px;
  backdrop-filter: blur(4px);
}

/* Override white tag colours inside the card (cards have white bg, not dark bg) */
.xp-cs-card .xp-tag--outline { color: #6b7280; border-color: #d1d5db; }

/* Body */
.xp-cs-card__body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.xp-cs-card__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.xp-cs-card__types {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 12px;
}
.xp-cs-card__type {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7c3aed;
  background: #f5f3ff;
  border-radius: 4px;
  padding: 2px 8px;
}
.xp-cs-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 10px;
  color: #1a0533;
}
.xp-cs-card__title a { color: inherit; text-decoration: none; }
.xp-cs-card__title a:hover { color: var(--xp-accent, #7c3aed); }
.xp-cs-card__excerpt {
  font-size: 0.88rem;
  color: #6b7280;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Empty state */
.xp-cs-empty {
  text-align: center;
  padding: 80px 32px;
  background: #f9fafb;
  border-radius: 16px;
  border: 2px dashed #e5e7eb;
}
.xp-cs-empty__icon { font-size: 3rem; margin-bottom: 16px; display: block; }
.xp-cs-empty h3 { font-size: 1.3rem; color: #374151; margin-bottom: 8px; }
.xp-cs-empty p { color: #6b7280; }
.xp-cs-empty a { color: var(--xp-accent, #7c3aed); font-weight: 600; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .xp-cs-grid { grid-template-columns: repeat(2, 1fr); }
  .xp-cs-filters-inner { gap: 12px; }
  .xp-cs-filter-group { flex: 1 1 150px; }
}
@media (max-width: 600px) {
  .xp-cs-hero { padding: 72px 0 56px; min-height: 420px; }
  .xp-cs-hero h1 { font-size: 1.9rem; }
  .xp-cs-hero__sub { font-size: 0.95rem; }
  .xp-cs-hero__cta { flex-direction: column; align-items: flex-start; }
  .xp-cs-grid { grid-template-columns: 1fr; }
  .xp-cs-results-bar__inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .xp-cs-filters-wrap { position: static; padding: 10px 0; }
  .xp-cs-filters-inner { flex-wrap: nowrap; gap: 6px; align-items: flex-end; }
  .xp-cs-filter-group { flex: 1 1 0; min-width: 0; }
  .xp-cs-filter-label { font-size: 0.6rem; }
  .xp-cs-select { padding: 7px 22px 7px 8px; font-size: 0.75rem; }
  .xp-cs-select-wrap::after { right: 7px; font-size: 0.65rem; }
  .xp-cs-filters-reset { padding: 7px 10px; font-size: 0.75rem; white-space: nowrap; }
}

/* ── Team Layout Improvements ───────────────────────────────────────────── */

/* Team Expert Cards */
.xp-team-expert {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 20px !important;
}
.xp-team-expert:hover {
  transform: translateY(-4px);
}
.xp-team-expert-image {
  margin-bottom: 20px;
  display: block;
}
.xp-team-expert-text h3 {
  margin-bottom: 8px;
  font-size: 1.2rem !important;
}
.xp-team-expert-text strong {
  color: #1a0a3c;
  display: block;
  margin-bottom: 12px;
}

/* Team Leader Cards */
.xp-team-leader {
  background-color: #f8f7ff !important;
  padding: 40px !important;
  transition: box-shadow 0.3s ease;
  border-radius: 8px !important;
  margin-bottom: 24px !important;
}
.xp-team-leader:last-child {
  margin-bottom: 0;
}
.xp-team-leader .et_pb_column:first-child img {
  width: 100%;
  height: auto;
}
.xp-team-leader .et_pb_column:last-child {
  padding-left: 40px !important;
}
.xp-team-leader h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.4rem !important;
  color: #1a0a3c !important;
}
.xp-team-leader strong {
  color: #631a48;
  display: block;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

/* Responsive Team Layout */
@media (max-width: 768px) {
  .xp-team-expert {
    padding: 15px !important;
  }
  .xp-team-expert-text h3 {
    font-size: 1.1rem !important;
  }
  .xp-team-leader {
    background-color: #ffffff !important;
    padding: 30px 20px !important;
  }
  .xp-team-leader .et_pb_column {
    margin-bottom: 20px;
  }
}


/* ─── Tools Page: report + ROI calculator br suppression ─── */
.xp-roi br,
.xp-report-form-card br,
.xp-report-content br,
.xp-tools-logos__strip br,
.xp-report-video-wrap br {
  display: none;
}

/* Report hero section layout */
.xp-report-hero .et_pb_row {
  align-items: center;
}
@media (max-width: 767px) {
  .xp-report-hero .et_pb_column {
    margin-bottom: 32px;
  }
  .xp-report-focus-list {
    grid-template-columns: 1fr 1fr;
  }
}

/* ================================================
   AI Activity Feed Widget (pages: ai-marketing-workflows)
   Ported from production expre-ai-landing-page
   ================================================ */

.ai-activity-feed-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ai-activity-feed {
  background: rgba(15,15,25,0.9);
  border: 1px solid rgba(181,44,255,0.25);
  border-radius: 12px;
  padding: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 40px rgba(181,44,255,0.08);
}

.ai-activity-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ai-activity-pulse {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: xp-pulse-glow 2s ease-in-out infinite;
  box-shadow: 0 0 6px #22c55e;
  flex-shrink: 0;
}

@keyframes xp-pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.1); }
}

.ai-activity-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 340px;
  max-height: 420px;
  overflow-y: scroll;
  overflow-x: hidden;
  padding-top: 2px;
  scrollbar-width: thin;
  scrollbar-color: var(--xp-accent) transparent;
}

.ai-activity-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.02);
  border-radius: 8px;
  border-left: 2px solid var(--xp-accent);
  opacity: 1;
  transition: background 0.2s ease, opacity 0.4s ease, transform 0.4s ease;
}

.ai-activity-item:hover {
  background: rgba(255,255,255,0.05);
}

.ai-activity-item.entering {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin-bottom: -6px;
  opacity: 0;
  overflow: hidden;
  border-left-color: transparent;
}

.ai-activity-item.entering.slide-in,
.ai-activity-item.slide-in {
  max-height: 100px;
  padding: 8px 10px;
  margin-bottom: 0;
  opacity: 1;
  overflow: visible;
  border-left-color: var(--xp-accent);
  transition: max-height 0.5s cubic-bezier(0.4,0,0.2,1),
              padding 0.5s cubic-bezier(0.4,0,0.2,1),
              margin 0.5s cubic-bezier(0.4,0,0.2,1),
              opacity 0.4s ease 0.1s,
              border-left-color 0.3s ease 0.2s;
}

.ai-activity-item.fade-out {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.ai-activity-icon {
  width: 24px;
  height: 24px;
  background: rgba(181,44,255,0.2);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ai-activity-icon i {
  color: var(--xp-accent);
  font-size: 0.7rem;
}

.ai-activity-content { flex: 1; min-width: 0; }

.ai-activity-agent {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--xp-accent);
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.ai-activity-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}

.ai-activity-header-row .ai-activity-agent { margin-bottom: 0; }

.step-progress { display: flex; align-items: center; gap: 3px; }

.step-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transition: background 0.3s ease, transform 0.3s ease;
}

.step-dot.complete {
  background: #22c55e;
  box-shadow: 0 0 4px rgba(16,185,129,0.5);
}

.app-flow { display: flex; align-items: center; gap: 4px; margin-bottom: 4px; }

.app-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  font-size: 0.6rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  flex-shrink: 0;
  filter: grayscale(100%) brightness(0.5);
  opacity: 0.4;
  transform: scale(0.9);
}

.app-icon.active {
  filter: grayscale(0%) brightness(1);
  opacity: 1;
  transform: scale(1);
  animation: xp-iconActivate 0.4s ease-out forwards;
}

@keyframes xp-iconActivate {
  0% { filter: grayscale(100%) brightness(0.5); opacity: 0.4; transform: scale(0.9); }
  50% { transform: scale(1.15); filter: grayscale(0%) brightness(1.2); }
  100% { filter: grayscale(0%) brightness(1); opacity: 1; transform: scale(1); }
}

.app-arrow {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.5);
  opacity: 0.2;
  transition: opacity 0.3s ease;
}
.app-arrow.active { opacity: 0.8; }

.ai-activity-action {
  font-size: 0.85rem;
  color: #fff;
  margin-bottom: 4px;
  line-height: 1.3;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
  min-height: 1.3em;
}

.ai-activity-action .typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--xp-accent);
  margin-left: 2px;
  animation: xp-cursor-blink 0.8s ease-in-out infinite;
  vertical-align: text-bottom;
}

@keyframes xp-cursor-blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.ai-activity-time { font-size: 0.7rem; color: rgba(255,255,255,0.5); }

.ai-activity-expand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  cursor: pointer;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s, transform 0.3s;
  flex-shrink: 0;
  align-self: center;
}
.ai-activity-expand:hover { color: var(--xp-accent); }
.ai-activity-expand i { font-size: 0.7rem; transition: transform 0.3s ease; }
.ai-activity-item.expanded .ai-activity-expand i { transform: rotate(180deg); }

.ai-activity-detail {
  max-height: 0;
  overflow: hidden;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
  margin-top: 0;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease;
}

.ai-activity-item.expanded { max-height: none !important; }
.ai-activity-item.expanded .ai-activity-detail {
  max-height: 150px;
  opacity: 1;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.ai-activity-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.ai-activity-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
}
.ai-activity-stat i { color: var(--xp-accent); font-size: 0.7rem; }
.ai-activity-stat strong { color: #fff; font-family: 'SF Mono','Monaco',monospace; }

/* Responsive: hide feed on small screens */
@media (max-width: 980px) {
  .ai-activity-feed-wrapper { display: none; }
}

/* ================================================
   "What You Get" Services Grid (xp- design system)
   Used on ai-marketing-workflows page
   ================================================ */
.xp-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.xp-service-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s ease;
}
.xp-service-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.xp-service-card i {
  color: var(--xp-accent);
  font-size: 1.3rem;
  margin-top: 2px;
  flex-shrink: 0;
}
.xp-service-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--xp-navy);
  margin: 0 0 6px 0;
}
.xp-service-card p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.6;
  margin: 0;
}

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

/* ══════════════════════════════════════════════════════════
   Tools Pages — Report + ROI Calculator
   (loaded globally so both child pages get styles)
   ══════════════════════════════════════════════════════════ */

/* ─── ROI Calculator wrapper ──────────────────────────── */
.xp-roi {
  background: #fff;
  border-radius: 16px;
  padding: 48px;
  box-shadow: 0 4px 32px rgba(123,92,250,.10);
  max-width: 960px;
  margin: 0 auto;
}

/* Inputs row */
.xp-roi__inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
}
.xp-roi__input-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: #1a0a3c;
  margin-bottom: 8px;
  letter-spacing: .01em;
}
.xp-roi__money-wrap {
  display: flex;
  align-items: center;
  border: 2px solid #e4e0ff;
  border-radius: 8px;
  overflow: hidden;
  transition: border-color .2s;
}
.xp-roi__money-wrap:focus-within { border-color: #7b5cfa; }
.xp-roi__currency {
  padding: 0 12px;
  background: #f7f5ff;
  color: #7b5cfa;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 48px;
  border-right: 2px solid #e4e0ff;
  user-select: none;
}
.xp-roi__money-wrap input[type="number"] {
  border: none;
  outline: none;
  padding: 0 14px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a0a3c;
  width: 100%;
  height: 48px;
  background: transparent;
}

/* Two-column body: 60 sliders / 40 results */
.xp-roi__body {
  display: grid;
  grid-template-columns: 60fr 40fr;
  gap: 48px;
  align-items: start;
}
.xp-roi__left  { min-width: 0; }
.xp-roi__right { min-width: 0; }

/* Channel sliders */
.xp-roi__channels { margin-bottom: 0; }
.xp-roi__channels-label {
  font-size: .85rem;
  font-weight: 600;
  color: #1a0a3c;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.xp-roi__total-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  background: #34d399;
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  transition: background .3s;
}
.xp-roi__channel {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #f0edff;
}
.xp-roi__channel:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.xp-roi__ch-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.xp-roi__ch-name { font-weight: 600; color: #1a0a3c; font-size: .95rem; }
.xp-roi__ch-pct  { font-weight: 700; color: #7b5cfa; font-size: 1rem; min-width: 40px; text-align: right; }
.xp-roi__slider {
  width: 100%;
  -webkit-appearance: none;
  height: 6px;
  border-radius: 3px;
  background: #e4e0ff;
  outline: none;
  cursor: pointer;
  margin-bottom: 6px;
}
.xp-roi__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #7b5cfa;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(123,92,250,.4);
  cursor: pointer;
}
.xp-roi__slider::-moz-range-thumb {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #7b5cfa;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(123,92,250,.4);
  cursor: pointer;
}
.xp-roi__ch-desc { font-size: .8rem; color: #6b7280; margin: 0; line-height: 1.5; }

/* Results — stacked in the 35% right column */
.xp-roi__results {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 24px;
}
.xp-roi__result-card {
  background: #f7f5ff;
  border: 2px solid #e4e0ff;
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.xp-roi__result-card--accent {
  background: linear-gradient(135deg, #7b5cfa, #a855f7);
  border-color: transparent;
}
.xp-roi__result-card--accent .xp-roi__result-label,
.xp-roi__result-card--accent .xp-roi__result-value { color: #fff; }
.xp-roi__result-label {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: .06em;
  line-height: 1.3;
}
.xp-roi__result-value {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: #1a0a3c;
  line-height: 1;
  white-space: nowrap;
}

/* Chart — centred below results in the right column */
.xp-roi__chart-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
#roi-chart { max-width: 180px; max-height: 180px; }
.xp-roi__chart-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.xp-roi__leg-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  color: #3d3d3d;
}
.xp-roi__leg-item span {
  display: inline-block;
  width: 12px; height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
}
.xp-roi__disclaimer {
  text-align: center;
  font-size: .72rem;
  color: #9ca3af;
  margin: 0;
  line-height: 1.5;
}

/* ─── Website Report page ─────────────────────────────── */
.xp-report-header-img {
  max-width: 420px;
  width: 100%;
  height: auto;
  margin-bottom: 28px;
  border-radius: 8px;
  display: block;
}
.xp-report-content { color: #e5e0ff; }
.xp-report-content h1,
.xp-report-content h2 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 16px;
  line-height: 1.25;
}
.xp-report-lead {
  font-size: 1.05rem;
  color: rgba(255,255,255,.85);
  margin-bottom: 20px;
  line-height: 1.7;
}
.xp-report-focus-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
}
.xp-report-focus-list li {
  color: rgba(255,255,255,.85);
  padding-left: 22px;
  position: relative;
  font-size: .92rem;
  line-height: 1.5;
}
.xp-report-focus-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #a78bfa;
  font-weight: 700;
}
.xp-report-value { color: rgba(255,255,255,.65); font-size: .9rem; margin: 0; }
.xp-report-value strong { color: #fff; }

/* Form card */
.xp-report-form-card {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 8px 48px rgba(0,0,0,.3);
}
.xp-report-form-card h3 {
  color: #1a0a3c;
  font-size: 1.4rem;
  margin: 0 0 8px;
}
.xp-report-form-card > p {
  color: #6b7280;
  font-size: .9rem;
  margin: 0 0 24px;
}
.xp-report-form__field { margin-bottom: 18px; }
.xp-report-form__field label,
.xp-report-form__field legend {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: #1a0a3c;
  margin-bottom: 8px;
  border: none;
  padding: 0;
}
.xp-report-form__field fieldset {
  border: none;
  padding: 0;
  margin: 0;
}
.xp-report-form__field input[type="email"],
.xp-report-form__field input[type="url"] {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #e4e0ff;
  border-radius: 8px;
  font-size: .95rem;
  color: #1a0a3c;
  outline: none;
  transition: border-color .2s;
  box-sizing: border-box;
}
.xp-report-form__field input[type="email"]:focus,
.xp-report-form__field input[type="url"]:focus { border-color: #7b5cfa; }
.xp-report-checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.xp-report-checks label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  color: #3d3d3d;
  font-weight: 400;
  cursor: pointer;
  line-height: 1.3;
}
.xp-report-checks input[type="checkbox"] {
  accent-color: #7b5cfa;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  cursor: pointer;
}
.xp-report-submit {
  display: block;
  width: 100%;
  padding: 15px;
  background: #7b5cfa;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 12px;
  transition: background .2s, transform .15s;
  letter-spacing: .01em;
}
.xp-report-submit:hover  { background: #6a4de8; transform: translateY(-1px); }
.xp-report-submit:active { transform: translateY(0); }
.xp-report-submit:disabled { background: #a78bfa; cursor: not-allowed; transform: none; }
.xp-report-status {
  padding: 12px 14px;
  border-radius: 8px;
  font-size: .88rem;
  margin-bottom: 12px;
}
.xp-report-status--ok  { background: #d1fae5; color: #065f46; }
.xp-report-status--err { background: #fee2e2; color: #991b1b; }

/* Tool logos strip */
.xp-tools-logos__label {
  text-align: center;
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #9ca3af;
  margin-bottom: 24px;
}
.xp-tools-logos__strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
}
.xp-tools-logos__strip img {
  height: 40px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .55;
  transition: opacity .25s, filter .25s;
}
.xp-tools-logos__strip img:hover { filter: grayscale(0); opacity: 1; }

/* Video wrap */
.xp-report-video-wrap {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 32px rgba(0,0,0,.14);
  height: 100%;
}
.xp-report-video-wrap video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Align report hero columns vertically */
.xp-report-hero .et_pb_row > .et_pb_column { align-self: center; }

/* Suppress WordPress auto-br inside our components */
.xp-roi br,
.xp-report-form-card br,
.xp-report-content br,
.xp-tools-logos__strip br,
.xp-report-video-wrap br { display: none; }

/* ─── Responsive ──────────────────────────────────────── */
@media (max-width: 900px) {
  .xp-roi { padding: 28px 20px; }
  .xp-roi__inputs { grid-template-columns: 1fr; }
  /* collapse two-column body to single column on small screens */
  .xp-roi__body { grid-template-columns: 1fr; gap: 32px; }
  /* restore side-by-side result cards when stacked */
  .xp-roi__results { grid-template-columns: 1fr; }
  .xp-roi__result-card { flex-direction: column; align-items: flex-start; gap: 4px; }
  .xp-roi__result-value { font-size: 1.4rem; }
  .xp-report-focus-list { grid-template-columns: 1fr; }
  .xp-report-checks { grid-template-columns: 1fr; }
  .xp-report-form-card { padding: 28px 20px; }
}

/* 64/33 hero column split (AI Marketing Workflows hero) */
.xp-row--60-40.et_pb_row {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: flex-start;
  gap: 3%;
}
.xp-row--60-40.et_pb_row > .et_pb_column:first-child {
  width: 54% !important;
  flex: 0 0 54% !important;
  max-width: 54%;
}
.xp-row--60-40.et_pb_row > .et_pb_column:last-child {
  width: 33% !important;
  flex: 0 0 33% !important;
  max-width: 33%;
}
