/**
 * Default Theme - Complete Stylesheet
 * 
 * This CSS file contains ALL styles for rendering pages and blog posts.
 * It uses CSS variables that are injected from theme.json.
 * 
 * To create a new theme:
 * 1. Copy this entire folder to buzz/themes/{new-theme-name}/
 * 2. Modify theme.json for colors, fonts, spacing
 * 3. Customize this CSS as needed for unique layouts/components
 * 
 * Available CSS Variables from theme.json:
 * - Fonts: var(--heading-font), var(--body-font)
 * - Colors: var(--accent-0), var(--accent-1), var(--accent-2)
 * - Colors: var(--dark-0), var(--dark-1), var(--dark-2)
 * - Colors: var(--light-0), var(--light-1), var(--light-2)
 * - Colors: var(--text-primary), var(--text-secondary), var(--text-muted), var(--text-light)
 * - Colors: var(--bg-body), var(--bg-section), var(--bg-cards)
 * - Typography: var(--font-size-hero-title), var(--font-size-section-title), etc.
 * - Footer: var(--footer-background), var(--footer-font-color)
 * - And many more...
 */

/* ==========================================================================
   WEBSITE STYLES (from style.css)
   ========================================================================== */

/* Final mobile/tablet weight normalization for Services labels */
@media (max-width: 1024px) {
  .navbar .dropdown-menu.custom-width a.dropdown-item strong,
  .navbar .dropdown-menu.custom-width a.dropdown-item .ms-1.text-muted,
  .navbar .dropdown-menu.custom-width a.dropdown-item span.ms-1.text-muted {
    font-weight: 500 !important;
    color: var(--text-menu) !important;
    font-family: var(--body-font) !important;
  }
  /* Capitalize top-level section titles */
  .navbar .dropdown > .nav-link { text-transform: capitalize !important; }
}
/* Ensure Services menu is simplified on tablets too */
@media (max-width: 1024px) {
  .navbar .dropdown-menu.custom-width {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .navbar .dropdown-menu.custom-width li { margin: 0 !important; padding: 0 !important; border: 0 !important; }
  .navbar .dropdown-menu.custom-width li.mb-4 { margin: 0 !important; }
  .navbar .dropdown-menu.custom-width a.dropdown-item { padding: 0.55rem 0 !important; }
  .navbar .dropdown-menu.custom-width a.dropdown-item > .d-flex { display: inline !important; align-items: baseline !important; margin: 0 !important; padding: 0 !important; }
  .navbar .dropdown-menu.custom-width .mb-1 { margin: 0 !important; }
  .navbar .dropdown-menu.custom-width a.dropdown-item strong { font-weight: 500 !important; color: var(--text-menu) !important; }
  .navbar .dropdown-menu.custom-width a.dropdown-item .text-muted { display: inline !important; color: var(--text-menu) !important; opacity: 1 !important; }
  .navbar .dropdown-menu.custom-width small { display: none !important; }
  .navbar .dropdown-menu.custom-width .ms-1 { margin-left: 0 !important; }
  /* Company alignment match */
  .navbar .company-menu { padding: 0 !important; background: transparent !important; box-shadow: none !important; border: 0 !important; }
  .navbar .company-menu .dropdown-item { padding-left: 0 !important; margin-left: 0 !important; }
}

/* Hard override: hide ONLY long descriptions (<small>) under Services on phones/tablets */
@media (max-width: 1024px) {
  .navbar .dropdown-menu.custom-width .dropdown-item small,
  .navbar .dropdown-menu.custom-width small.text-muted {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
  }
  /* Ensure a small gap after the colon between label and type */
  .navbar .dropdown-menu.custom-width a.dropdown-item strong + .ms-1 { margin-left: 0.25rem !important; }
  /* Match Services link styling to Company */
  .navbar .dropdown-menu.custom-width a.dropdown-item { color: var(--text-menu) !important; text-transform: none !important; }
  /* Force identical weight/color/family for both parts */
  .navbar .dropdown-menu.custom-width a.dropdown-item,
  .navbar .dropdown-menu.custom-width a.dropdown-item strong,
  .navbar .dropdown-menu.custom-width a.dropdown-item .text-muted {
    font-weight: 500 !important;
    color: var(--text-menu) !important;
    font-family: var(--body-font) !important;
  }
  .navbar .dropdown-menu.custom-width a.dropdown-item:hover { color: var(--primary) !important; background: transparent !important; }
}

/* Also hide long descriptions whenever the mobile menu is expanded (collapsed navbar state) */
@media (max-width: 1024px) {
  .navbar .navbar-collapse.show .dropdown-menu.custom-width small,
  .navbar .navbar-collapse.show .dropdown-menu.custom-width small.text-muted {
    display: none !important;
  }
}
/* Mobile navbar simplification (applies when navbar is collapsed: <992px) */
@media (max-width: 991.98px) {
  /* Expand dropdowns by default inside collapsed navbar */
  .navbar .dropdown-menu { 
    display: block !important; 
    position: static; 
    transform: none !important; 
    float: none; 
    box-shadow: none !important; 
    border: 0 !important; 
    background: transparent !important;
    border-radius: 0 !important;
    width: 100%; 
    padding: 0 !important;
    margin: 0; 
  }
  /* Simplify Services mega menu */
  .dropdown-menu.custom-width .dropdown-icon-circle,
  .dropdown-menu.custom-width small { display: none !important; }
  .dropdown-menu.custom-width .dropdown-item { padding: 0.6rem 0; }
  .dropdown-menu.custom-width { background: transparent !important; border-radius: 0 !important; box-shadow: none !important; }
  .dropdown-menu.custom-width li { border: 0; background: transparent !important; }
  /* Remove separators/dividers under SERVICES completely */
  .dropdown-menu.custom-width li + li { border-top: 0 !important; margin-top: 0 !important; padding-top: 0.55rem !important; }
  /* Make Services items plain links like Company (keep both labels visible, unbolded, no indent) */
  .dropdown-menu.custom-width .text-muted { display: inline !important; color: var(--text-menu) !important; opacity: 1 !important; }
  .dropdown-menu.custom-width .ms-1 { margin-left: 0 !important; }
  .dropdown-menu.custom-width strong { font-weight: 400 !important; color: var(--text-menu) !important; }
  .dropdown-menu.custom-width .dropdown-item > .d-flex { display: inline !important; align-items: baseline !important; margin: 0 !important; }
  .dropdown-menu.custom-width .dropdown-item { line-height: 1.2; padding-left: 0 !important; }
  .dropdown-menu.custom-width .dropdown-item * { vertical-align: baseline; }
  .dropdown-menu.custom-width strong { font-weight: 400 !important; font-size: 1rem; }
  .dropdown-menu.custom-width .text-muted { font-size: 1rem; opacity: 1 !important; }

  /* Simplify Company menu as well */
  .navbar .company-menu { 
    display: block !important; 
    position: static; 
    box-shadow: none; 
    border: 0; 
    padding: 0; 
    width: 100%;
  }
  .company-menu .dropdown-item { padding: 0.6rem 0; padding-left: 0 !important; margin-left: 0 !important; }

  /* Reduce visual noise on toggles */
  .navbar .dropdown-toggle .bi-chevron-down { display: none; }
  .navbar .dropdown-toggle { pointer-events: none; }

  /* Left align top-level sections; remove indentation and bolding */
  .navbar .navbar-collapse { justify-content: flex-start !important; }
  .navbar .navbar-nav { align-items: flex-start; gap: 0.5rem; }
  .navbar .nav-link { text-align: left; padding-left: 0 !important; padding-right: 0 !important; width: 100%; font-weight: 500; color: var(--text-menu); text-transform: none; letter-spacing: normal; }
  .navbar .dropdown > .nav-link { font-weight: 400 !important; color: var(--text-menu) !important; text-transform: uppercase !important; letter-spacing: normal !important; }
  .navbar .navbar-nav, .navbar .nav-item { margin-left: 0 !important; padding-left: 0 !important; width: 100%; }
  .navbar .dropdown-toggle { padding-left: 0 !important; padding-right: 0 !important; }

  /* Plain links under section titles (no special formatting) */
  .navbar .dropdown-menu .dropdown-item {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0.55rem 0 !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
    color: var(--text-menu) !important;
    font-weight: 500;
  }
  .navbar .dropdown-menu .dropdown-item:hover,
  .navbar .dropdown-menu .dropdown-item:focus {
    background: transparent !important;
    color: var(--primary) !important;
  }
  /* Kill any residual dropdown shadows/borders on mobile */
  .navbar .dropdown-menu,
  .navbar .dropdown-menu:focus,
  .navbar .dropdown-menu:focus-within {
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
  }
}
/* Blog styles */
/* Blog detail: related sidebar */
/* Blog detail: related section at bottom */
.related-section .related-card {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.related-section .related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.1);
}
.related-card .related-img { height: 140px; overflow: hidden; }
.related-card .related-img img { width: 100%; height: 100%; object-fit: cover; }
.related-card .related-body { padding: 0.9rem 1rem; }
.related-card .related-meta { font-size: 0.8rem; color: #6b7280; margin-bottom: 0.35rem; }
.related-card .related-title { font-size: 1rem; color: #111827; font-weight: 700; margin: 0; line-height: 1.35; }
/* Blog post hero (full-width image at top) */
.post-hero {
  width: 100%;
  min-height: 380px;
  background: #111 center/cover no-repeat;
}

@media (min-width: 992px) {
  .post-hero { min-height: 460px; }
}
.seg-btn {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font-weight: 600;
  color: #334155;
  transition: all 0.2s ease;
}
.seg-btn:hover { background: #f8fafc; transform: translateY(-1px); }
.seg-btn.active { background: #2A2A2A; color: #fff; border-color: #2A2A2A; }

.blog-section .card.blog-card {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}
.blog-section .card.blog-card .card-body { padding: 1.25rem 1.5rem; }
.blog-section .card.blog-card.blog-featured { border-width: 2px; box-shadow: 0 10px 28px rgba(0,0,0,0.12); }
.blog-section .card.blog-card:hover { transform: translateY(-6px); box-shadow: 0 14px 36px rgba(0,0,0,0.14); }
.blog-section .blog-image { height: 220px; overflow: hidden; }
.blog-section .blog-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.blog-section .card.blog-card:hover .blog-image img { transform: scale(1.05); }
.blog-section .blog-meta { color: #64748b; font-size: 0.9rem; font-family: var(--body-font); }
.blog-section .blog-title { color: #1f2937; font-weight: 700; font-size: 1.15rem; font-family: var(--heading-font); }
.blog-section .blog-excerpt { color: #6b7280; font-size: 0.95rem; font-family: var(--body-font); }

.blog-header { background: #f8f9fa; padding: 2rem 0 1rem 0; }
.blog-content p { font-size: 1.05rem; line-height: 1.8; color: #374151; margin-bottom: 1rem; }
.blog-content h2, .blog-content h3 { font-family: var(--heading-font); font-weight: 600; margin-top: 2rem; margin-bottom: 0.75rem; }
.blog-content ul { padding-left: 1.2rem; }

/* Avoid touching the footer */
.blog-section { padding-bottom: 12rem; position: relative; z-index: 0; }
.blog-section > .container { padding-bottom: 5rem; }

@media (max-width: 768px) {
  .blog-section .blog-image { height: 180px; }
  .blog-section { padding-bottom: 8rem; }
  .blog-section > .container { padding-bottom: 4rem; }

/* Ensure footer sits above and doesn't overlap content */
.footer-section { position: relative; z-index: 1; }
}
/* Extra breathing room after long resources list */
.resources-section {
  padding-bottom: 4rem !important;
}

@media (min-width: 992px) {
  .resources-section {
    padding-bottom: 5rem !important;
  }
}
/* Featured section styling */
.featured-section {
  background: #ffffff;
  padding-top: 1.5rem !important;
  padding-bottom: 0.75rem !important;
}

/* Use global .section-title styles; keep .featured-title only for scope hooks */
.featured-title {}

/* Featured content box (title + cards in one) */
#featured-results {
  background: #e6e6e6; /* darker neutral gray */
  border: 1px solid #d9d9d9;
  border-radius: 16px;
  padding: 1rem 1.25rem;
}

#featured-results .portfolio-card {
  border-top-width: 6px;
}

#featured-results .portfolio-card .card-image {
  height: 240px;
}

@media (max-width: 768px) {
  #featured-results .portfolio-card .card-image { height: 200px; }
}
/* Root Variables */
:root {
    /* Brand Colors */
    --primary: #991B1B;
    --text-main: #2A2A2A;
    --text-menu: #030303;
    --accent: #E67E22;
    --bg-light: #FFFFFF;
    --bg-secondary: #F5F6FA;
  
    /* Design System */
    --box-border-radius: 0.35em;
    --shape-border-width: 0.0625em;
    --button-border-radius: 0.375em;
    --shape-shadow: none;
    --clickable-shadow: 0 0.125em 0.25em -0.0625em rgba(0, 0, 0, 0.06);
  
    /* Typography */
    --body-font: "Roboto";
    --heading-font: "Raleway";
    --heading-font-weight: 400;
    --body-font-weight: 400;
  
    --line-height-body: 1.6;
    --line-height-heading: 1.25;
  
    --max-content-width: 1060px;
  }
  
  /* General */
  html {
    line-height: 1.5;
    text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizelegibility;
    touch-action: manipulation;
  }
  
  body {
    font-family: var(--body-font);
    font-weight: var(--body-font-weight);
    line-height: var(--line-height-body);
    color: var(--text-main);
    background-color: var(--bg-light);
    margin: 0;
    padding: 0;
  }
  
  .container {
    max-width: var(--max-content-width);
    margin: 0 auto;
    padding: 0 1rem;
  }
  
  h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: var(--heading-font-weight);
    line-height: var(--line-height-heading);
    margin-top: 0;
  }
  
  a {
    color: var(--primary);
    text-decoration: none;
  }
  
  a:hover {
    text-decoration: none;
  }
  
  /* Navbar */
  .navbar {
    box-shadow: none !important;
  }
  
  .navbar .nav-link {
    font-family: var(--body-font);
    font-size: 1.1rem;
    font-weight: 400 !important;
    color: var(--text-menu) !important;
    position: relative;
  }

  /* Extra tracking for uppercase nav items (SERVICES, COMPANY) */
  .navbar .nav-link.text-uppercase {
    letter-spacing: 0.06em;
    font-weight: 600;
  }

  /* Underline hover/active (no layout shift) */
  .navbar .nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
  }

  .navbar .nav-link:hover::before,
  .navbar .nav-link:focus-visible::before,
  .navbar .nav-link.active::before {
    content: none;
  }

  /* Replace triangle with chevron icon */
  .navbar .dropdown-toggle::after { content: none; }
  .navbar .dropdown-toggle .bi-chevron-down {
    font-size: 0.9rem;
    margin-left: 0.35rem;
    transition: transform 0.2s ease, color 0.2s ease;
    vertical-align: middle;
  }
  .navbar .dropdown-toggle:hover .bi-chevron-down { color: var(--primary); }
  .dropdown.show > .dropdown-toggle .bi-chevron-down {
    transform: rotate(180deg);
    color: var(--primary);
  }
  
  .navbar-nav > .nav-item {
    padding-left: 0.2rem;
    padding-right: 0.2rem;
  }
  
  .navbar .nav-link:hover {
    color: var(--primary);
    transition: color 0.2s ease-in-out;
  }

  /* Navbar CTA (text link style in brand red with arrow) */
  .nav-cta {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: var(--primary) !important;
    padding: 0.35rem 0.9rem;
    border-radius: var(--button-border-radius);
    border: 2px solid var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 1rem;
  }

  /* Show icon first and align it */
  .nav-cta i { display: inline-block; margin-right: 0.5rem; line-height: 1; }
  .nav-cta::after { content: none; }

  .nav-cta:hover { background: var(--primary); color: #ffffff !important; text-decoration: none; }

  /* Company dropdown width and no-wrap */
  .company-menu {
    min-width: 300px;
  }
  .company-menu .dropdown-item {
    white-space: nowrap;
  }

  /* Soft dividers and tighter rhythm in Services mega-dropdown */
.dropdown-menu.custom-width li + li {
  border-top: 1px solid rgba(0,0,0,0.06);
  margin-top: 0.75rem !important;
  padding-top: 0.75rem !important;
}
.dropdown-menu.custom-width li.mb-4 { margin-bottom: 1rem !important; }

  /* Reduce nav gap slightly on xl for tighter alignment */
  @media (min-width: 1200px) {
    .navbar-nav.gap-4 { gap: 1rem !important; }
  }

  /* Mobile: make nav CTA a full-width red button for tap comfort */
  @media (max-width: 991.98px) {
    .nav-cta {
      display: block;
      width: 100%;
      background: var(--primary);
      color: #ffffff !important;
      padding: 0.6rem 1rem;
      border-radius: var(--button-border-radius);
      text-align: center;
      margin: 0.75rem 0 0 0;
    }
    .nav-cta i { color: #ffffff; }
  }
  
  /* Hero section */
  .hero-section {
    position: relative;
    overflow: hidden;
    background-position: center 20%;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-start;
    padding-top: 30px;
    padding-bottom: 2rem;
    border-radius: var(--box-border-radius);
  }

  /* Make home hero taller without affecting other pages */
  body.home .hero-section { padding-bottom: 7rem; background-position: 75% 20%; }
  
  .hero-section .col-md-6 {
    padding-top: 0;
    margin-top: 0;
  }
  
  .hero-title {
    font-size: var(--font-size-hero-title, 3.45rem);
    font-weight: var(--font-weight-bold, 700);
    margin-top: 0;
    font-family: var(--heading-font, "Raleway");
  }
  
  .hero-subtitle {
    font-family: var(--heading-font, "Raleway");
    font-weight: var(--font-weight-semibold, 600);
    font-size: var(--font-size-hero-subtitle, 2rem);
    line-height: 1.4;
    margin-top: 2rem;
    margin-bottom: 7rem !important;
    text-shadow: none;
  }

    /* Hero section */
.smart-hero-section {
    position: relative;
    overflow: hidden;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-start;
    padding-top: 30px;
    border-radius: var(--box-border-radius);
}

  .smart-hero-title {
    font-size: 3em;
    font-weight: 400;
    margin-top: 0;
    font-family: var(--heading-font);
  }
  
  .smart-hero-subtitle {
    font-family: var(--body-font);
    font-weight: 400;
    font-size: 1.8em; /* larger subtext on Smart hero */
    line-height: 1.5;
    margin-top: 1.4rem; /* more space below tagline */
    margin-bottom: 10rem !important;
    text-shadow: none;
  }

  
  /* Buttons */
  
  /* Home hero tagline and subtitle sizing */
  .hero-tagline {
    font-family: var(--heading-font);
    font-weight: 500;
    font-size: 1.7rem; /* larger than subtext, below headline */
    color: var(--text-main); /* dark gray */
    margin-top: 2.0rem; /* much more space after headline */
    margin-bottom: 3.2rem; /* bigger gap before subtext */
  }
  .hero-section .hero-subtitle {
    font-family: var(--body-font);
    font-weight: 400;
    font-size: 1.7rem; /* larger subtext */
    margin-top: 3.2rem;
    margin-bottom: 2.2rem !important;
  }
  .btn-primary {
    font-family: var(--body-font);
    font-weight: 600;
    font-size: 1.1em;
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: var(--button-border-radius);
    box-shadow: var(--clickable-shadow);
    transition: all 0.2s ease-in-out;
  }
  
  .btn-primary:hover {
    background-color: #7f1515;
    border-color: #7f1515;
  }

  /* Page-specific: SmartSuccess uses blue CTAs */
  .smartsuccess .btn-primary {
    background-color: #3B73AE;
    border-color: #3B73AE;
  }
  .smartsuccess .btn-primary:hover {
    background-color: #2c5c90;
    border-color: #2c5c90;
  }

  /* Page-specific: SmartLedger uses orange CTAs */
  .smartledger .btn-primary {
    background-color: var(--accent);
    border-color: var(--accent);
  }
  .smartledger .btn-primary:hover {
    background-color: #c76919;
    border-color: #c76919;
  }
  
  /* Utility overrides */
  .rounded {
    border-radius: var(--box-border-radius) !important;
  }
  
  /* Sections */
  section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
  
  section h2 {
    font-family: var(--heading-font);
    font-size: 2.7em;
    margin-top: 0.5em;
    font-weight: 400;
    text-align: left;
  }
  
  section p {
    font-size: 1.3em;
    font-family: var(--body-font);
    font-weight: 400;
    text-align: left;
    margin-bottom: 0px !important;
    margin-top: 2rem;
  }
  
  .card .card-body {
    padding-left: 0;
    padding-right: 0;
  }
  
  .card .column-heading {
    font-family: var(--heading-font);
    font-size: 1.3em;
    font-weight: 400;
    margin-bottom: 0rem !important;
  }
  
  .card .column-subheading {
    font-family: var(--heading-font);
    font-size: 1.3em;
    font-weight: 700;
    margin-bottom: 1rem !important;
    margin-top: 0rem !important;
  }
  
  .card ul {
    font-family: var(--body-font);
    font-size: 1.1em;
    padding-left: 1.25rem;
    margin-bottom: 0;
    list-style-position: outside;
    line-height: 1.8em;
  }
  
  .card ul li {
    margin-bottom: 0.3em;
  }
  
  .icon-lg {
    font-size: 2.7rem;
    vertical-align: middle;
  }

  .offerings-section .section-subtitle {
    font-size: 1.3em;
}
  
  
    .offerings-section p {
        font-size: 1.1em;
    }

    .offerings-bullets {
        list-style-type: disc;
        padding-left: 1.5rem;
        font-family: var(--body-font);
        font-size: 1.1em;
        line-height: 1.8em;
        color: var(--text-main);
    }
    
    .offerings-bullets li {
    margin-bottom: 0.75rem;
    }

  /* Why Choose Reliancy Section */
  .dark-comparison-section {
    background-color: #3f4041 !important;
    color: #fff;
    padding: 3.5rem 0;
  }
  
  .dark-comparison-section h2 {
    font-family: var(--heading-font);
    font-size: 2.7em;
    font-weight: 400;
    margin-bottom: 2rem;
    text-align: left;
  }
  
  .dark-comparison-section h4 {
    font-family: var(--heading-font);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #cfcfcf;
  }
  
  .dark-comparison-section .item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 1.25rem;
  }
  
  .dark-comparison-section .item i {
    font-size: 1.75rem !important;
    color: #e8e8e8;
    line-height: 1;
  }
  
  .dark-comparison-section .challenge-title {
    font-family: var(--heading-font);
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0.25rem 0 0.25rem 0 !important;
  }
  
  .dark-comparison-section .challenge-desc {
    font-family: var(--body-font);
    font-size: 1.1rem;
    font-weight: 400;
    margin: 0 !important;
    color: #b9b9b9;
  }

  /* Subtle divider between columns on desktop */
  @media (min-width: 768px) {
    .dark-comparison-section .col-md-6:first-child {
      border-right: 1px solid rgba(255, 255, 255, 0.12);
      padding-right: 2rem;
    }
    .dark-comparison-section .col-md-6:last-child {
      padding-left: 2rem;
    }
  }

  /* Reduce vertical space between title/subtitle and lists */
  .dark-comparison-section .row.mt-5 {
    margin-top: 2rem !important;
  }
  
  /* Step Arrow Section */
  .step-arrow-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0rem;
    padding: 2rem 0;
  }
  
  .step {
    display: flex;
    gap: 2rem;
    align-items: center;
  }
  
  .step .icon-arrow {
    background-color: #2A2A2A;
    color: white;
    width: 90px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(
        0 0,          /* top left */
        50% 20%,      /* top inward notch */
        100% 0,       /* top right */
        100% 80%,     /* bottom right corner before tip */
        50% 100%,     /* bottom tip */
        0 80%         /* bottom left corner before tip */
      );
  }
  .step .icon-arrow i {
    font-size: 1.5rem;
    color: white;
    margin-top:1rem;
  }

  .step-text h5 {
    font-family: var(--heading-font);
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 0.5rem;
  }
  
  .step-text p {
    font-family: var(--body-font);
    font-size: 1.1em;
    font-weight: 400;
    margin: 0;
  }
  

  .diagnostic-bullets {
    list-style-type: disc;
    padding-left: 1.5rem;
    font-family: var(--body-font);
    font-size: 1.1em;
    line-height: 1.7em;
    color: var(--text-main);
  }
  
  .diagnostic-bullets li {
    margin-bottom: 0.75rem;
  }
  
  .diagnostic-bullets li strong {
    color: var(--text-main);
    font-weight: 600;
  }
  
  .diag-image {
    max-width: 75%;  /* Reduced from 90% */
    height: auto;
  }
  
  .align-left {
    display: block;
    margin-left: 0;
  }
  
  .diagnostic-row {
    margin-bottom: 4rem !important; /* Adds vertical space between diagnostics */
    display: flex;
    align-items: flex-start;
  }
  
  /* Enhanced styling for diagnostic section */
  .quick-wins-section .column-subheading {
    font-family: var(--heading-font);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    line-height: 1.3;
  }
  
  .quick-wins-section .diagnostic-row {
    background: white;
    border-radius: 1rem;
    padding: 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 3rem;
    transition: box-shadow 0.3s ease;
    overflow: hidden;
    border-top: 4px solid var(--accent);
  }
  
  .quick-wins-section .diagnostic-row:hover {
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
  }
  
  .quick-wins-section .diagnostic-row .col-md-6:last-child {
    padding: 2rem;
    border-radius: 0 1rem 1rem 0;
  }
  
  .quick-wins-section .diagnostic-row .col-md-6:first-child {
    padding: 0 0.75rem 0 0.75rem;
    display: flex;
    align-items: stretch;
  }
  
  .quick-wins-section .diagnostic-row .col-md-6.order-md-2 {
    padding: 0 0.75rem 0 0.75rem;
    display: flex;
    align-items: stretch;
  }
  
  .quick-wins-section .diag-image {
    max-width: 100%;
    width: 100%;
    height: 100%;
    min-height: 250px;
    object-fit: cover;
    border-radius: 1rem 0 0 1rem;
    display: block;
  }
  
  .diagnostics-subtitle{
    margin-bottom:2rem !important;
  }
  
  .quick-wins-section .section-subtitle {
    margin-bottom: 3rem !important;
  }
  
  /* SmartOps specific diagnostic styling (red color scheme) */
  .smartops-page .quick-wins-section .diagnostic-row {
    border-top: 4px solid #991B1B;
  }
  
  /* SmartSuccess specific diagnostic styling (blue color scheme) */
  .smartsuccess-page .quick-wins-section .diagnostic-row {
    border-top: 4px solid #4682B4;
  }
  
  /* SmartOps specific showcase styling (red color scheme) */
  .smartops-page .showcase-item:nth-child(1)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #991B1B, #DC2626);
  }
  
  .smartops-page .showcase-item:nth-child(2)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #E67E22, #F39C12);
  }
  
  .smartops-page .showcase-item:nth-child(3)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #27AE60, #2ECC71);
  }
  
  .smartops-page .showcase-slogan {
    font-size: 0.9rem;
    font-weight: 600;
    color: #991B1B;
    margin: 0 0 1rem 0;
    line-height: 1.4;
    font-style: italic;
  }
  
  .smartops-page .highlight::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #991B1B;
    border-radius: 50%;
    flex-shrink: 0;
  }
  
  .smartops-page .highlight:hover {
    color: #991B1B;
    transform: translateX(3px);
  }
  
  /* SmartSuccess specific showcase styling (blue color scheme) */
  .smartsuccess-page .showcase-item:nth-child(1)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4682B4, #5a9bd4);
  }
  
  .smartsuccess-page .showcase-item:nth-child(2)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #E67E22, #F39C12);
  }
  
  .smartsuccess-page .showcase-item:nth-child(3)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #27AE60, #2ECC71);
  }
  
  .smartsuccess-page .showcase-slogan {
    font-size: 0.9rem;
    font-weight: 600;
    color: #4682B4;
    margin: 0 0 1rem 0;
    line-height: 1.4;
    font-style: italic;
  }
  
  /* SmartLedger specific showcase styling (orange/golden color scheme) */
  .smartledger-page .showcase-item:nth-child(1)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #E67E22, #F39C12);
  }
  
  .smartledger-page .showcase-item:nth-child(2)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #991B1B, #DC2626);
  }
  
  .smartledger-page .showcase-item:nth-child(3)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #27AE60, #2ECC71);
  }
  
  .smartledger-page .showcase-slogan {
    font-size: 0.9rem;
    font-weight: 600;
    color: #E67E22;
    margin: 0 0 1rem 0;
    line-height: 1.4;
    font-style: italic;
  }
  
  .smartledger-page .highlight::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #E67E22;
    border-radius: 50%;
    flex-shrink: 0;
  }
  
  .smartledger-page .highlight:hover {
    color: #E67E22;
    transform: translateX(3px);
  }
  
  /* Three Column Showcase Style Offerings Section */
  .offerings-showcase {
    max-width: 1400px;
    margin: 0 auto;
  }
  
  .showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
  }
  
  .showcase-item {
    background: white;
    border-radius: 1.5rem;
    padding: 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
  }
  
  
  .showcase-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  }
  
  /* Page-specific hover effects for accent colors */
  .smartsuccess-page .showcase-item:hover::before {
    background: linear-gradient(90deg, #3a6b9a, #4682B4);
  }
  
  .smartops-page .showcase-item:hover::before {
    background: linear-gradient(90deg, #7f1515, #991B1B);
  }
  
  .smartledger-page .showcase-item:hover::before {
    background: linear-gradient(90deg, #d46a1a, #E67E22);
  }
  
  .showcase-content {
    text-align: left;
    padding: 2rem;
  }
  
  
  .showcase-image {
    position: relative;
  }
  
  .showcase-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 1.5rem 1.5rem 0 0;
    transition: transform 0.3s ease;
  }
  
  .showcase-image img:hover {
    transform: scale(1.05);
  }
  
  .showcase-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 1rem 0;
    line-height: 1.3;
  }
  
  .showcase-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    min-height: 4.5rem;
  }
  
  .showcase-benefits {
    margin-top: 1rem;
  }
  
  .benefits-subtitle {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0 0 0.75rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .showcase-highlights {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .highlight {
    background: transparent;
    color: var(--text-main);
    padding: 0;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    text-align: left;
  }
  
  .highlight::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #4682B4;
    border-radius: 50%;
    flex-shrink: 0;
  }
  
  .highlight:hover {
    color: #4682B4;
    transform: translateX(3px);
  }
  
  /* Responsive adjustments */
  @media (max-width: 992px) {
    .showcase-grid {
      grid-template-columns: 1fr;
      gap: 2rem;
    }
    
    .showcase-item {
      padding: 2rem;
    }
  }



  .case-box {
    background-color: #2A2A2A;
    color: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
  }
  
  .case-box h5 {
    font-family: var(--heading-font);
    font-size: 1.3em;
    font-weight: 700;
    margin-bottom: 1rem;
  }
  
  .case-box p {
    font-size: 1.1em;
    font-family: var(--body-font);
    font-weight: 400;
    margin-bottom: 0.5rem;
    margin-top: 0 !important;
  }
  
  .testimonial-box {
    border-left: 3px solid #2A2A2A;
    padding-left: 1rem;
  }
  
  .testimonial-text {
    font-family: var(--body-font);
    font-size: 1.1em;
    font-weight: 400;
    color: #2A2A2A;
  }
  
  .testimonial-author {
    font-size: 1em;
    color: #2A2A2A;
    margin-top: 0.5rem;
  }
  
 .cta-section{
    padding-top:0;
    padding-bottom:0;
 }
 .cta-section .section-subtitle{
    font-size:1.1rem;
 }

 .cta-section .section-cta-slogan{
   margin-top:0;
   font-size:1.1rem;
 }

 .cta-section .container{
    padding-top:4rem !important;
    padding-bottom:4rem !important;
 }

  .icon-box {
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 0.35em;
    font-size: 1.5rem;
    padding:0.8rem;
  }
  
  .cta-subtitle {
    font-family: "Raleway";
    font-weight: 400;
    font-size: 1.3em;
    margin-bottom: 0.5rem;
  }
  
  .cta-desc {
    font-size: 1.1em;
    font-family: "Roboto";
    font-weight: 400;
    margin: 0;
  }
  
  .bg-footer {
    background-color: #3F4041 !important;
  }
  
  /* Cropped CTA image helper (for SmartOps)
     Match portrait-like aspect of index CTA image */
  .cta-img-cropped {
    width: 100%;
    aspect-ratio: 2 / 3; /* portrait ratio similar to index */
    object-fit: cover;
    object-position: center;
    display: block;
  }

  /* Helper: extra bottom padding for sections that need more air */
  .pad-bottom-lg {
    padding-bottom: 6rem !important;
  }
  .pad-bottom-xl {
    padding-bottom: 14rem !important;
  }

  /* Ensure equal heights for solution images on SmartSuccess */
  .solve-img-cropped {
    width: 100%;
    aspect-ratio: 3 / 2; /* align to SmartOps-like native ratio */
    object-fit: cover;
    object-position: center;
    display: block;
  }
  
  /* Override Bootstrap dropdown defaults */
.dropdown-menu {
  background-color: #ffffff !important;
  border: none !important;
  outline: none !important;
}

.dropdown-menu:focus,
.dropdown-menu:focus-within {
  outline: none !important;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.dropdown-menu.custom-width {
  max-width: 620px;
  width: 100%;
  white-space: normal;  /* Enables wrapping */
  border-radius: 0.75rem;
  border: none !important; /* Remove border/outline */
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important; /* Keep shadow but remove outline */
}

/* MOBILE/TABLET ONLY: show Services in short form (no long descriptions) */
@media (max-width: 1024px) {
  .dropdown-menu.custom-width small { display: none !important; }
  .dropdown-menu.custom-width .dropdown-icon-circle { display: none !important; }
  .dropdown-menu.custom-width .dropdown-item { white-space: nowrap; }
  .dropdown-menu.custom-width .dropdown-item > .d-flex { display: inline !important; gap: 0.25rem; align-items: baseline !important; margin: 0 !important; padding: 0 !important; }
  .dropdown-menu.custom-width .dropdown-item > .d-flex.mb-1 { margin: 0 !important; }
  .dropdown-menu.custom-width .dropdown-item strong { font-weight: 400 !important; }
  .dropdown-menu.custom-width .dropdown-item .text-muted { display: inline !important; opacity: 1 !important; }
}


.dropdown-item {
  white-space: normal; /* allow wrapping */
  overflow-wrap: break-word;
  color: var(--text-main) !important; /* Keep original text color */
  background-color: transparent !important; /* Remove background */
}

.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item:active {
  background-color: #f8f9fa !important; /* Light gray on hover/focus */
  color: var(--text-main) !important; /* Keep text color consistent */
}

.dropdown-item:focus {
  outline: none !important; /* Remove focus outline */
  box-shadow: none !important; /* Remove focus box-shadow */
}

.dropdown-item small {
  white-space: normal;
  line-height: 1.4;
}

/* Dropdown Icon Circles */
.dropdown-icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
  position: relative;
}

.dropdown-icon-circle i {
  font-size: 1.1rem;
  color: #ffffff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  line-height: 1;
}

.smartops-bg {
  background: #991B1B;
}

.smartsuccess-bg {
  background: #4682B4;
}

.smartledger-bg {
  background: #E67E22;
}

/* Responsive Fixes */
@media (max-width: 768px) {
    .hero-title {
      font-size: 2.2em;
    }
    .hero-subtitle, .cta-section .section-subtitle, .cta-section .section-cta-slogan {
      font-size: 1em;
    }
    .btn-primary {
      font-size: 1em;
      padding: 0.5rem 1.25rem;
    }
    section h2 {
      font-size: 2.1em;
    }
    section p {
      font-size: 1.1em;
    }
    .icon-lg {
      font-size: 2rem;
    }
    /* Keep same ratio on mobile; height adjusts with width */
    /* aspect-ratio keeps images proportional on mobile */
  }
  
  .timeline-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    font-size: 1.25rem;
    z-index: 1;
    position: relative;
    padding:1rem;
  }
  .timeline-item {
    position: relative;
    z-index: 2;
  }
 
  .timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 1.75rem;
    width: 1px;
    background-color: #d1d5db;
    z-index: 1;
    height:75% !important;
  }
  
  .timeline-line::after {
    display: none;
  }
  

  .comparison-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .comparison-item {
    display: flex;
    align-items: start;
    gap: 1rem;
  }
  
  .comparison-item i {
    flex-shrink: 0;
    color: white;
  }
  
  .comparison-item h5.challenge-title {
    font-family: var(--heading-font);
    font-weight: 600;
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
  }
  
  .comparison-item p.challenge-desc {
    font-family: var(--body-font);
    font-size: 1.1rem;
    margin: 0;
    color: #ccc;
  }

  /* Tagline under home hero */
  .tagline-section { padding-top: 1rem; padding-bottom: 1rem; }
  .tagline-title {
    font-family: var(--heading-font);
    font-weight: 400; /* match section-title weight */
    font-size: 2.7em; /* match section-title size */
    margin-top: 0; /* keep top tight */
    margin-bottom: 0.6rem; /* add a bit more gap to subtitle */
    line-height: 1.15;
  }
  .tagline-subtitle {
    font-family: var(--body-font);
    font-size: 1.35em;
    line-height: 1.2;
    margin-top: 0; /* tight with title */
    margin-bottom: 0; /* no extra bottom */
  }
  @media (max-width: 768px) {
    .tagline-title { font-size: 1.9em; }
    .tagline-subtitle { font-size: 1em; }
  }

  /* How We Work section */
  .how-work .section-subtitle {
    margin-top: 0.75rem;
  }

  .how-tiles {
    display: grid;
    grid-template-columns: 1fr; /* mobile default */
    gap: 1rem;
  }

  .how-card {
    display: grid;
    grid-template-columns: 84px 1fr;
    align-items: center;
    gap: 1rem;
    background: #F5F6FA;
    border-radius: 0.75rem;
    padding: 1.25rem 1.25rem;
    box-shadow: var(--clickable-shadow);
  }

  .icon-badge {
    width: 84px;
    height: 84px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2A2A2A; /* dark, not pure black */
  }
  .icon-badge img { width: 44px; height: 44px; display:block; }

  .icon-badge--foundation { background: linear-gradient(145deg,#2A2A2A,#3A3B3C); }
  .icon-badge--intelligence { background: linear-gradient(145deg,#2A2A2A,#353637); }
  .icon-badge--automation { background: linear-gradient(145deg,#2A2A2A,#3A3B3C); }

  /* Stagger for desktop to reduce monotony */
  @media (min-width: 992px) {
    .how-tiles {
      grid-template-columns: repeat(12, 1fr);
      gap: 1.25rem;
    }
    .how-card:nth-child(1) { grid-column: span 5; }
    .how-card:nth-child(2) { grid-column: span 4; margin-top: 1.25rem; }
    .how-card:nth-child(3) { grid-column: span 3; margin-top: 2.5rem; }
  }

  /* Principles grid */
  .principle-item { align-items: flex-start; }
  .principle-item .principle-icon {
    width: 56px; height: 56px; /* larger visual weight */
    display: flex; align-items: center; justify-content: center;
    background: transparent; /* no background */
  }

  /* Our Approach section */
  .approach-steps {
    display: grid;
    grid-template-columns: 1fr; /* mobile */
    gap: 1rem;
    align-items: center;
  }
  .approach-card {
    background: #F5F6FA;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
  }
  .approach-icon { width: 56px; height: 56px; margin-bottom: 0.5rem; }
  .approach-title { font-family: var(--heading-font); font-weight: 600; font-size: 1.25rem; margin: 0.25rem 0; }
  .approach-subtitle { font-size: 1rem; opacity: 0.8; margin-top: 0.25rem; }
  .approach-text { font-size: 1rem; margin-top: 0.5rem; }
  .approach-connector { justify-content: center; font-size: 1.6rem; color: #9aa0a6; }

  @media (min-width: 992px) {
    .approach-steps { grid-template-columns: repeat(3, 1fr); }
  }
  .principle-item .principle-icon i {
    font-size: 2rem; /* larger icons */
    color: #2A2A2A;
  }
  .principle-title {
    font-family: var(--heading-font);
    font-weight: 600;
    font-size: 1.5rem;
    margin: 0 0 0.4rem 0;
  }
  .principle-text {
    font-family: var(--body-font);
    font-size: 1.05rem;
    margin: 0;
  }

  /* Founding Executives */
  .exec-photo {
    width: 168px;
    height: 168px;
    object-fit: cover;
    object-position: center;
    display: block;
    box-shadow: var(--clickable-shadow);
  }
  
  /* Our Approach section - NEW DESIGN for about.html */
  .approach-card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
  }
  
  .approach-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }
  
  .approach-step-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #4682B4;
    position: relative;
    box-shadow: 0 4px 12px rgba(70, 130, 180, 0.3);
  }
  
  .approach-step-circle::after {
    display: none;
  }
  
  .approach-step-number {
    color: white;
    font-family: var(--heading-font);
    font-size: 2rem;
    font-weight: 700;
  }
  
  .approach-step-title {
    font-family: var(--heading-font);
    font-weight: 600;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-main);
  }
  
  .approach-step-subtitle {
    font-family: var(--heading-font);
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--accent);
    margin-bottom: 1rem;
  }
  
  .approach-step-text {
    font-family: var(--body-font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-main);
    margin: 0;
  }
  
  /* Responsive adjustments */
  @media (max-width: 768px) {
    .approach-step-circle {
      width: 70px;
      height: 70px;
    }
    
    .approach-step-number {
      font-size: 1.75rem;
    }
    
    .approach-step-title {
      font-size: 1.2rem;
    }
    
    .approach-step-subtitle {
      font-size: 1rem;
    }
    
    .approach-step-text {
      font-size: 0.95rem;
    }
  }

/* Value Proposition Band Styling */
.value-band-section {
  background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 25%, #2A2A2A 50%, #1a1a1a 75%, #0f0f0f 100%);
  border-top: 1px solid #333333;
  border-bottom: 1px solid #333333;
  position: relative;
  margin-bottom: 2rem;
  overflow: hidden;
  animation: subtlePulse 6s ease-in-out infinite;
}

.value-band-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 15% 30%, rgba(153, 27, 27, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 70%, rgba(153, 27, 27, 0.05) 0%, transparent 40%),
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.02) 50%, transparent 100%);
  pointer-events: none;
  animation: backgroundShift 8s ease-in-out infinite;
}

.value-band-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(153, 27, 27, 0.3) 20%, rgba(153, 27, 27, 0.6) 50%, rgba(153, 27, 27, 0.3) 80%, transparent 100%);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes backgroundShift {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.value-band-content {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 3rem;
  padding: 1.5rem 0;
  flex-wrap: nowrap;
  position: relative;
  z-index: 1;
}

.value-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  background: none;
  border: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  animation: slideInUp 0.8s ease-out forwards;
}

.value-item:nth-child(1) { animation-delay: 0.1s; }
.value-item:nth-child(2) { animation-delay: 0.2s; }
.value-item:nth-child(3) { animation-delay: 0.3s; }
.value-item:nth-child(4) { animation-delay: 0.4s; }

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

.value-item:hover {
  transform: translateY(-3px) scale(1.02);
}

.value-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(153, 27, 27, 0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 0.5rem;
}

.value-item:hover::before {
  opacity: 1;
}

.value-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), #ffffff);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 8px rgba(153, 27, 27, 0.5);
}

.value-item:hover::after {
  width: 100%;
}

.value-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  background: none;
  border-radius: 0;
  color: #ffffff;
  font-size: 1.1rem;
  flex-shrink: 0;
  line-height: 1;
  opacity: 0.8;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.value-icon i {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all 0.3s ease;
}

.value-icon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(153, 27, 27, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
  z-index: -1;
}

.value-item:hover .value-icon {
  opacity: 1;
  transform: scale(1.15) rotate(5deg);
  color: #ffffff;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

.value-item:hover .value-icon::before {
  width: 40px;
  height: 40px;
}

.value-item:hover .value-icon i {
  transform: scale(1.1);
}

.value-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.value-label {
  font-weight: 600;
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.3;
  letter-spacing: 0.02em;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.value-item:hover .value-label {
  color: #ffffff;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
  transform: translateX(2px);
}

.value-description {
  font-size: 0.9rem;
  color: #b0b0b0;
  line-height: 1.3;
  font-weight: 400;
  letter-spacing: 0.01em;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.value-item:hover .value-description {
  color: #e0e0e0;
  transform: translateX(2px);
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.2);
}


@keyframes subtlePulse {
  0%, 100% { 
    box-shadow: 0 0 0 rgba(153, 27, 27, 0);
  }
  50% { 
    box-shadow: 0 0 20px rgba(153, 27, 27, 0.1);
  }
}

/* Responsive adjustments for value band */
@media (max-width: 768px) {
  .value-band-content {
    gap: 1.5rem;
    padding: 0.5rem 0;
    justify-content: flex-start;
  }
  
  .value-item {
    flex-direction: column;
    gap: 0.25rem;
    text-align: left;
  }
  
  .value-text {
    gap: 0;
  }
}

@media (max-width: 576px) {
  .value-band-content {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  
  .value-item {
    flex-direction: row;
    gap: 0.4rem;
    text-align: left;
  }
  
  .value-icon {
    font-size: 1rem;
  }
  
  .value-label {
    font-size: 0.8rem;
  }
  
  .value-description {
    font-size: 0.75rem;
  }
}

/* Contact Form Styling */
.contact-form-container {
  background: #ffffff;
  border-radius: 1.5rem;
  padding: 3rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid #f0f0f0;
  position: relative;
  overflow: hidden;
}

.contact-form-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary);
}

.form-header {
  margin-bottom: 2.5rem;
}

.form-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  font-weight: 400;
  margin: 0;
}

.contact-form .form-group {
  margin-bottom: 1.5rem;
}

.contact-form .form-label {
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-form .form-label i {
  color: var(--primary);
  font-size: 0.9rem;
}

.contact-form .form-control {
  border: 2px solid #e9ecef;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: #fafbfc;
}

.contact-form .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(153, 27, 27, 0.15);
  background-color: #ffffff;
  transform: translateY(-1px);
}

.contact-form .form-control::placeholder {
  color: #adb5bd;
  font-style: italic;
}

.contact-form textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-submit-section {
  padding-top: 1rem;
  border-top: 1px solid #e9ecef;
  margin-top: 1rem;
}

.contact-form .btn-primary {
  background-color: var(--primary);
  border: none;
  border-radius: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  color: #ffffff;
  text-decoration: none;
}

.contact-form .btn-primary:hover {
  background-color: #7f1515;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(153, 27, 27, 0.3);
  color: #ffffff;
}

.contact-form .btn-primary:active {
  transform: translateY(0);
}

.form-note {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-style: italic;
}

.form-note i {
  color: #28a745;
}

/* Responsive adjustments for contact form */
@media (max-width: 768px) {
  .contact-form-container {
    padding: 2rem 1.5rem;
    border-radius: 1rem;
  }
  
  .form-header {
    margin-bottom: 2rem;
  }
  
  .form-subtitle {
    font-size: 1rem;
  }
  
  .contact-form .form-control {
    padding: 0.875rem 1rem;
  }
  
  .contact-form .btn-primary {
    width: 100%;
    padding: 1rem;
  }
}

/* Other Ways to Connect Section */
.connect-section-header {
  margin-bottom: 3rem;
}

.connect-card {
  background: #ffffff;
  border-radius: 1.5rem;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.connect-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.connect-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  border-color: #e0e0e0;
}

.connect-card:hover::before {
  opacity: 1;
}

.connect-icon-container {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: all 0.3s ease;
}

.connect-card:hover .connect-icon-container {
  background: #7f1515;
}

.connect-icon-container i {
  font-size: 2rem;
  color: #ffffff;
  transition: transform 0.3s ease;
}

.connect-card:hover .connect-icon-container i {
  transform: scale(1.1);
}


.connect-title {
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.connect-description {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.connect-btn {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--primary);
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.connect-btn:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(153, 27, 27, 0.3);
}

.connect-btn i {
  transition: transform 0.3s ease;
}

.connect-btn:hover i {
  transform: translateX(3px);
}

/* Responsive adjustments for connect section */
@media (max-width: 768px) {
  .connect-card {
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
  }
  
  .connect-icon-container {
    width: 70px;
    height: 70px;
  }
  
  .connect-icon-container i {
    font-size: 1.75rem;
  }
  
  .connect-title {
    font-size: 1.25rem;
  }
  
  .connect-description {
    font-size: 0.95rem;
  }
}

/* Service Cards Styling */
.service-card {
  background: #ffffff;
  border-radius: 1.5rem;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
  height: 100%;
  position: relative;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  border-color: #e0e0e0;
}

.service-image-container {
  position: relative;
  overflow: hidden;
}

.service-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.service-icon-overlay {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 50px;
  height: 50px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.service-icon-overlay i {
  font-size: 1.5rem;
  color: #ffffff;
}

.service-card:hover .service-icon-overlay {
  background: #7f1515;
  transform: scale(1.1);
}

/* SmartSuccess service icon - blue color */
.col-md-4:nth-child(2) .service-icon-overlay {
  background: #4682B4;
}

.col-md-4:nth-child(2):hover .service-icon-overlay {
  background: #3a6b9a;
}

/* SmartLedger service icon - golden color */
.col-md-4:nth-child(3) .service-icon-overlay {
  background: #E67E22;
}

.col-md-4:nth-child(3):hover .service-icon-overlay {
  background: #d46a1a;
}

.service-content {
  padding: 2rem;
  position: relative;
  min-height: 300px;
}

.service-title {
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.service-subtitle {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.service-features {
  list-style: none;
  padding: 0;
  margin-bottom: 4rem;
}

.service-features li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.5;
  position: relative;
  padding-left: 1.5rem;
}

.service-features li::before {
  content: '•';
  color: var(--text-secondary);
  font-size: 1.2rem;
  position: absolute;
  left: 0;
  top: 0;
}

.service-link {
  display: inline-flex;
  align-items: center;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  right: 2rem;
}

.service-link:hover {
  color: #7f1515;
  transform: translateX(5px);
}

/* SmartSuccess Learn More link - blue color */
.col-md-4:nth-child(2) .service-link {
  color: #4682B4;
}

.col-md-4:nth-child(2) .service-link:hover {
  color: #3a6b9a;
}

/* SmartLedger Learn More link - golden color */
.col-md-4:nth-child(3) .service-link {
  color: #E67E22;
}

.col-md-4:nth-child(3) .service-link:hover {
  color: #d46a1a;
}

.service-link i {
  transition: transform 0.3s ease;
}

.service-link:hover i {
  transform: translateX(3px);
}

/* CTA Section Styling */
.cta-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

@media (min-width: 768px) {
  .cta-options {
    grid-template-columns: 1fr 1fr;
  }
}

.cta-option {
  background: #ffffff;
  border-radius: 1.5rem;
  padding: 2rem;
  border: 1px solid #f0f0f0;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cta-option::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cta-option:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-color: #e0e0e0;
}

.cta-option:hover::before {
  opacity: 1;
}

.cta-icon-container {
  width: 60px;
  height: 60px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}


.cta-icon-container i {
  font-size: 1.5rem;
  color: #ffffff;
}

.cta-title {
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.cta-description {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 0;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  background: var(--primary);
  color: #ffffff;
  text-decoration: none;
  font-weight: var(--button-font-weight, 600);
  font-size: var(--button-font-size, 0.95rem);
  padding: var(--spacing-button-padding, 0.75rem 1.5rem);
  border-radius: var(--button-border-radius, 0.75rem);
  transition: var(--button-transition, all 0.3s ease);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 1rem;
}

.cta-button:hover {
  color: #ffffff;
  transform: translateY(-2px);
}

.cta-button i {
  transition: transform 0.3s ease;
}

.cta-button:hover i {
  transform: translateX(3px);
}

/* Page-specific CTA button colors */
.smartsuccess .cta-button {
  background: #4682B4;
}

.smartsuccess .cta-button:hover {
  background: #3a6b9a !important;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(70, 130, 180, 0.3);
}

.smartledger .cta-button {
  background: #E67E22;
}

.smartledger .cta-button:hover {
  background: #d46a1a !important;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(230, 126, 34, 0.3);
}

/* Page-specific CTA icon container colors */
.smartsuccess .cta-icon-container {
  background: #4682B4;
}

.smartsuccess .cta-option:hover .cta-icon-container {
  background: #3a6b9a !important;
  transform: scale(1.1);
}

.smartledger .cta-icon-container {
  background: #E67E22;
}

.smartledger .cta-option:hover .cta-icon-container {
  background: #d46a1a !important;
  transform: scale(1.1);
}

/* Page-specific CTA box accent (top border) colors */
.smartsuccess .cta-option::before {
  background: #4682B4;
}

.smartsuccess .cta-option:hover::before {
  background: #3a6b9a;
}

.smartledger .cta-option::before {
  background: #E67E22;
}

.smartledger .cta-option:hover::before {
  background: #d46a1a;
}

/* Scope CTA section variables per page to avoid global red */
.smartsuccess .cta-section {
  --primary: #4682B4;
}

.smartledger .cta-section {
  --primary: #E67E22;
}

/* Clean Process Flow Styling */
.process-flow {
  max-width: 600px;
  margin: 0;
  position: relative;
  padding-top: 1.5rem;  /* so baseline starts at first circle center */
  padding-bottom: 1.5rem; /* so baseline ends at last circle center */
}

/* Continuous connector line aligned with icon centers */
.process-flow::before { display: none; }

.process-step {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
  position: relative;
}

.step-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-right: 2rem;
  flex-shrink: 0;
  position: relative;
}

.step-icon {
  width: 3rem;
  height: 3rem;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  box-shadow: 0 2px 8px rgba(153, 27, 27, 0.2);
  position: relative;
  z-index: 2;
}

.step-icon i {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.2rem;
  line-height: 1;
}

/* Specific centering for cash-coin icon */
.step-icon .bi-cash-coin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.1rem;
  line-height: 1;
}

/* Add connecting line from each icon to the next */
.step-marker::after { display: none; }

/* Remove the line from the last step */
.process-step:last-child .step-marker::after {
  display: none;
}

.step-content {
  flex-grow: 1;
  padding-top: 0.25rem;
}

/* Draw connector from the center of current circle down to next circle center */
.process-step::after {
  content: '';
  position: absolute;
  left: 1.5rem; /* center of 3rem icon */
  top: 1.5rem;  /* start at current circle center */
  width: 2px;
  height: calc(100% + 2rem); /* full step height + margin-bottom (desktop) */
  background: var(--primary);
  z-index: 1; /* behind circles */
}

.process-step:last-child::after { display: none; }

.step-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 0.25rem 0;
  line-height: 1.3;
}

.step-description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 0.75rem 0;
}

.step-outcome {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(153, 27, 27, 0.1);
  padding: 0.5rem 0.75rem;
  border-radius: 1rem;
  width: fit-content;
}

.outcome-text {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  line-height: 1;
}

.outcome-text .arrow {
  font-size: 1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.2rem;
  height: 1.2rem;
  margin-top: -0.2rem;
}

.outcome-text .text {
  line-height: 1.2;
}

.flow-connector {
  display: none; /* Hide the old connectors since we're using ::after pseudo-elements */
}

/* SmartSuccess specific styling (blue color scheme) */
.smartsuccess-page .step-icon {
  background: #4682B4;
  box-shadow: 0 2px 8px rgba(70, 130, 180, 0.2);
}

.smartsuccess-page .process-step::after {
  background: #4682B4;
}

.smartsuccess-page .step-outcome {
  color: #4682B4;
  background: rgba(70, 130, 180, 0.1);
}

/* SmartLedger specific styling (orange color scheme) */
.smartledger-page .step-icon {
  background: #E67E22;
  box-shadow: 0 2px 8px rgba(230, 126, 34, 0.2);
}

.smartledger-page .process-step::after {
  background: #E67E22;
}

.smartledger-page .step-outcome {
  color: #E67E22;
  background: rgba(230, 126, 34, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .process-flow {
    max-width: 100%;
  }
  
  .process-step {
    margin-bottom: 1.5rem;
  }
  
  .step-marker {
    margin-right: 1.5rem;
  }
  
  .step-icon {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
  }
  
  .process-step::after {
    height: calc(100% + 1.5rem); /* full step + mobile margin-bottom */
  }
  
  .step-title {
    font-size: 1.1rem;
  }
  
  .step-description {
    font-size: 0.95rem;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .service-content {
    padding: 1.5rem;
  }
  
  .service-title {
    font-size: 1.3rem;
  }
  
  .service-features li {
    font-size: 1rem;
  }
  
  .cta-option {
    padding: 1.5rem;
  }
  
  .cta-title {
    font-size: 1.2rem;
  }
  
  .cta-description {
    font-size: 1rem;
  }
}

/* Diagnostic Section - Professional Card Layout */
.diagnostic-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.diagnostic-card {
  background: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.diagnostic-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.diagnostic-image {
  height: 200px;
  overflow: hidden;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.diagnostic-image img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
}

.diagnostic-content {
  padding: 2rem;
}

.diagnostic-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.diagnostic-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
}

.diagnostic-icon i {
  font-size: 1.3rem;
  color: #ffffff;
}

.smartops-icon {
  background: #991B1B;
}

.smartsuccess-icon {
  background: #4682B4;
}

.smartledger-icon {
  background: #E67E22;
}

.diagnostic-title {
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--text-main);
  margin: 0;
}

.diagnostic-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-item {
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 0.5rem;
  border-left: 3px solid var(--primary);
}

.feature-title {
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.feature-description {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
}

.diagnostic-cta {
  margin-top: 2rem;
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .diagnostic-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .diagnostic-card {
    display: flex;
    align-items: stretch;
  }
  
  .diagnostic-image {
    width: 40%;
    height: auto;
    min-height: 250px;
  }
  
  .diagnostic-content {
    width: 60%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

@media (max-width: 767px) {
  .diagnostic-header {
    flex-direction: column;
    text-align: center;
  }
  
  .diagnostic-icon {
    margin-right: 0;
    margin-bottom: 1rem;
  }
  
  .diagnostic-title {
    font-size: 1.2rem;
  }
  
  .feature-title {
    font-size: 1rem;
  }
  
  .feature-description {
    font-size: 0.95rem;
  }
}

/* Resource Hub Styling */
.resource-hero {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding-top: 100px;
}

.search-container {
  max-width: 600px;
  margin: 0 auto;
}

.search-bar {
  position: relative;
  display: flex;
  align-items: center;
  background: white;
  border-radius: 50px;
  padding: 12px 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.search-bar:focus-within {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(220, 38, 38, 0.2);
}

.search-icon {
  color: #6c757d;
  font-size: 1.2rem;
  margin-right: 12px;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1.1rem;
  background: transparent;
}

.search-input::placeholder {
  color: #6c757d;
}

.search-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 25px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.search-btn:hover {
  background: #dc2626;
  transform: translateY(-1px);
}

.search-filters {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.filter-select {
  padding: 8px 16px;
  border: 1px solid #dee2e6;
  border-radius: 25px;
  background: white;
  font-size: 0.9rem;
  color: #495057;
  transition: all 0.3s ease;
}

.filter-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Pillar Tiles */
.pillar-tile {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
  border: 2px solid transparent;
}

.pillar-tile:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.smartops-tile:hover {
  border-color: #991B1B;
}

.smartsuccess-tile:hover {
  border-color: #4682B4;
}

.smartledger-tile:hover {
  border-color: #f59e0b;
}

.pillar-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: white;
}

.smartops-tile .pillar-icon {
  background: linear-gradient(135deg, #991B1B, #DC2626);
}

.smartsuccess-tile .pillar-icon {
  background: linear-gradient(135deg, #4682B4, #5a9bd4);
}

.smartledger-tile .pillar-icon {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.pillar-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1f2937;
}

.pillar-description {
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 1rem;
}

.pillar-text {
  color: #6b7280;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.pillar-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
}

.pillar-link:hover {
  color: #dc2626;
  transform: translateX(4px);
}

/* Featured Assets */
.featured-asset {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
  position: relative;
  border: 2px solid transparent;
}

.featured-asset:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  border-color: var(--primary);
}

.asset-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--primary);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.asset-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #dc2626);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: white;
}

.asset-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #1f2937;
}

.asset-description {
  color: #6b7280;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.asset-tags {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.tag {
  background: #f3f4f6;
  color: #374151;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.asset-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
}

.asset-link:hover {
  color: #dc2626;
  transform: translateX(4px);
}

/* Resource Type Cards */
.resource-type-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.resource-type-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.type-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #dc2626);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  color: white;
}

.type-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1f2937;
}

.type-count {
  color: #6b7280;
  font-size: 0.9rem;
}

/* Resource Cards */
.resource-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
  position: relative;
  border: 2px solid transparent;
}

.resource-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  border-color: var(--primary);
}

.resource-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.resource-badge.ungate {
  background: #10b981;
  color: white;
}

.resource-badge.light-gate {
  background: #f59e0b;
  color: white;
}

.resource-badge.strong-gate {
  background: var(--primary);
  color: white;
}

.resource-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), #dc2626);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: white;
}

.resource-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #1f2937;
}

.resource-description {
  color: #6b7280;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.resource-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.resource-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
}

.resource-link:hover {
  color: #dc2626;
  transform: translateX(4px);
}

/* Gating Modal */
.modal-content {
  border-radius: 16px;
  border: none;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal-header {
  border-bottom: 1px solid #e5e7eb;
  padding: 1.5rem;
}

.modal-title {
  font-weight: 600;
  color: #1f2937;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  border-top: 1px solid #e5e7eb;
  padding: 1.5rem;
}

/* Vertical Resource Pages */
.smartops-hero {
  background: linear-gradient(135deg, #991B1B 0%, #DC2626 100%);
  color: white;
}

.smartsuccess-hero {
  background: linear-gradient(135deg, #4682B4 0%, #5a9bd4 100%);
  color: white;
}

.smartledger-hero {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
}

.hero-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-size: 3rem;
  color: white;
}

.breadcrumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 25px;
  padding: 0.5rem 1rem;
}

.breadcrumb-item a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.breadcrumb-item.active {
  color: white;
}

/* Quick Tool Cards */
.quick-tool-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
  border: 2px solid transparent;
}

.quick-tool-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  border-color: var(--primary);
}

.tool-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #dc2626);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: white;
}

.tool-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #1f2937;
}

.tool-description {
  color: #6b7280;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.tool-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
}

.tool-link:hover {
  color: #dc2626;
  transform: translateX(4px);
}

/* Resource Categories */
.resource-category {
  margin-bottom: 4rem;
}

.category-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: #1f2937;
  display: flex;
  align-items: center;
}

.category-title i {
  color: var(--primary);
  font-size: 1.5rem;
}

/* Cross-Promotion Cards */
.cross-promo-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  align-items: center;
  border: 2px solid transparent;
}

.cross-promo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  border-color: var(--primary);
}

.promo-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.5rem;
  font-size: 2rem;
  color: white;
  flex-shrink: 0;
}

.smartops-resources .cross-promo-card:nth-child(1) .promo-icon {
  background: linear-gradient(135deg, #10b981, #059669);
}

.smartops-resources .cross-promo-card:nth-child(2) .promo-icon {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.smartsuccess-resources .cross-promo-card:nth-child(1) .promo-icon {
  background: linear-gradient(135deg, #991B1B, #DC2626);
}

.smartsuccess-resources .cross-promo-card:nth-child(2) .promo-icon {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.smartledger-resources .cross-promo-card:nth-child(1) .promo-icon {
  background: linear-gradient(135deg, #991B1B, #DC2626);
}

.smartledger-resources .cross-promo-card:nth-child(2) .promo-icon {
  background: linear-gradient(135deg, #10b981, #059669);
}

.promo-content {
  flex: 1;
}

.promo-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1f2937;
}

.promo-description {
  color: #6b7280;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.promo-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
}

.promo-link:hover {
  color: #dc2626;
  transform: translateX(4px);
}

/* Resource Hub Responsive Design */
@media (max-width: 768px) {
  .search-filters {
    flex-direction: column;
    align-items: center;
  }
  
  .filter-select {
    width: 200px;
  }
  
  .pillar-tile,
  .featured-asset,
  .resource-card {
    margin-bottom: 2rem;
  }
  
  .resource-type-card {
    margin-bottom: 1rem;
  }
  
  .cross-promo-card {
    flex-direction: column;
    text-align: center;
  }
  
  .promo-icon {
    margin-right: 0;
    margin-bottom: 1rem;
  }
}
  
/* Resource Hub Hero Enhancement */
/* Resource Hub Hero Section - specific styling for resource hub page */
.resource-hub-hero {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.resource-hub-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%23ffffff" opacity="0.05"/><circle cx="10" cy="60" r="0.5" fill="%23ffffff" opacity="0.05"/><circle cx="90" cy="40" r="0.5" fill="%23ffffff" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

/* Premium Resource Hub Filters */
.premium-filters {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #f0f0f0;
  margin: 2rem auto 1.5rem auto;
  position: relative;
  z-index: 1;
  transition: opacity 0.4s ease, transform 0.4s ease;
  max-width: 100%;
  width: 100%;
}

/* Hide main filters when sticky filters are visible */
body.sticky-filters-active .premium-filters {
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
}

/* No content margin needed - narrow menu doesn't overlap */

.filter-section {
  margin-bottom: 1.5rem;
}

.filter-section:last-child {
  margin-bottom: 0;
}

.filter-label {
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Vertical Tiles */
.vertical-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.vertical-tile {
  background: #f8f9fa;
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 1.25rem 0.75rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.vertical-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: #e5e7eb;
}

.vertical-tile.active {
  background: #2A2A2A;
  color: white;
  border-color: #2A2A2A;
  box-shadow: 0 8px 25px rgba(42, 42, 42, 0.2);
}

.tile-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  font-size: 1.5rem;
  color: #6b7280;
  transition: all 0.3s ease;
}

.vertical-tile.active .tile-icon {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.tile-icon.smartops {
  background: #991B1B;
  color: white;
}

.tile-icon.smartsuccess {
  background: #4682B4;
  color: white;
}

.tile-icon.smartledger {
  background: #f59e0b;
  color: white;
}

.tile-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.tile-subtitle {
  display: block;
  font-size: 0.8rem;
  opacity: 0.7;
  font-weight: 400;
}

/* Type Pills */
.type-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.type-pill {
  background: #f8f9fa;
  border: 1px solid #e5e7eb;
  border-radius: 25px;
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #6b7280;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
}

.type-pill:hover {
  background: #e5e7eb;
  color: #374151;
  transform: translateY(-1px);
}

.type-pill.active {
  background: #2A2A2A;
  color: white;
  border-color: #2A2A2A;
  box-shadow: 0 4px 12px rgba(42, 42, 42, 0.2);
}

.type-pills::-webkit-scrollbar {
  height: 4px;
}

.type-pills::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 2px;
}

/* Resource Hub result cards reuse .service-card styles */
#resource-results .service-card { 
  height: 100%; 
}

/* Featured section styling */
#featured-results .service-card {
  height: 100%;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

#featured-results .service-card:hover {
  border-color: #1f2937;
  transform: translateY(-4px);
}

/* Search Bar Enhancement */
.resource-hub-hero .input-group {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  overflow: hidden;
}

.resource-hub-hero .input-group-text {
  border: none;
  background: white;
  color: #6b7280;
  font-size: 1.1rem;
}

.resource-hub-hero .form-control {
  border: none;
  font-size: 1rem;
  padding: 1rem 1.25rem;
}

.resource-hub-hero .form-control:focus {
  box-shadow: none;
  border-color: transparent;
}

/* Results Section Enhancement */
#resource-results {
  margin-top: 2rem;
}

#resource-results .service-card {
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
}

#resource-results .service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  border-color: #e5e7eb;
}

/* Clean Portfolio Layout with More Spacing */
.row.g-5 {
  margin-top: 2rem;
  --bs-gutter-x: 3rem; /* Increased from default 1.5rem to 3rem */
}

/* Clean Portfolio Card Styling - More Square */
.portfolio-card {
  background: white;
  border: none;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  cursor: pointer;
  width: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  min-height: 320px;
}

.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Clean Card Image - More Square */
.card-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
}

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

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

/* Clean Card Overlay */
.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.2) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-card:hover .card-overlay {
  opacity: 1;
}

/* Clean Card Icon Overlay */
.card-icon-overlay {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.portfolio-card:hover .card-icon-overlay {
  transform: scale(1.05);
  background: white;
}

/* Clean Card Type Badge */
.card-type-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
}

.card-type-badge .badge {
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.4rem 0.6rem;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* Clean Card Content */
.card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: white;
}

/* Clean Card Title */
.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

/* Clean Card Description */
.card-description {
  color: #6b7280;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
  font-weight: 400;
}

/* Featured Wide Card (2 columns) */
.portfolio-card.featured-tall {
  min-height: 350px;
}

.portfolio-card.featured-tall .card-image {
  height: 220px;
}

/* Vertical Accent Colors - Matching Brand Colors */
.portfolio-card.vertical-smartops {
  border-top: 4px solid #991B1B; /* Red for SmartOps (matches brand) */
}

.portfolio-card.vertical-smartsuccess {
  border-top: 4px solid #4682B4; /* Blue for SmartSuccess (matches brand) */
}

.portfolio-card.vertical-smartledger {
  border-top: 4px solid #E67E22; /* Orange for SmartLedger (matches brand) */
}

/* AOS Animation Styling */
[data-aos] {
  pointer-events: none;
}

[data-aos].aos-animate {
  pointer-events: auto;
}

/* Responsive adjustments for portfolio cards */
@media (max-width: 768px) {
  .row.g-5 {
    --bs-gutter-x: 2rem; /* Reduce spacing on tablets */
  }
  
  .portfolio-card {
    min-height: 300px;
  }
  
  .portfolio-card.featured-tall {
    min-height: 320px;
  }
  
  .card-image {
    height: 180px;
  }
  
  .portfolio-card.featured-tall .card-image {
    height: 200px;
  }
  
  .card-content {
    padding: 1.25rem;
  }
}

@media (max-width: 576px) {
  .row.g-5 {
    --bs-gutter-x: 1.5rem; /* Standard spacing on mobile */
  }
  
  .portfolio-card {
    min-height: 280px;
  }
  
  .portfolio-card.featured-tall {
    min-height: 300px;
  }
  
  .card-image {
    height: 160px;
  }
  
  .portfolio-card.featured-tall .card-image {
    height: 180px;
  }
  
  .card-content {
    padding: 1rem;
  }
}

/* Blog Hero */
.blog-hero { min-height: 420px; padding: 4rem 0; background: #111; position: relative; background-size: cover; background-position: center; }
.blog-hero::before { content:""; position:absolute; inset:0; background: rgba(0,0,0,0.25); z-index:0; }
.blog-hero::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.6) 40%, rgba(0,0,0,0.75) 100%); z-index:0; }
.blog-hero .blog-hero-content { position: relative; z-index: 1; color: #fff; }
.blog-hero #blog-hero-title { font-family: var(--heading-font); font-weight: var(--heading-font-weight); line-height: var(--line-height-heading); font-size: 2.2rem; }
.blog-hero #blog-hero-excerpt { font-size: 1.125rem; color: rgba(255,255,255,0.88); max-width: 800px; }
.blog-hero .btn.btn-light { color: #111; }
/* Ensure hero text uses site fonts */
.blog-hero #blog-hero-title { font-family: var(--heading-font); }
.blog-hero #blog-hero-excerpt, .blog-hero .blog-hero-content, .blog-hero .btn { font-family: var(--body-font); }

/* Footer font consistency */
.footer-section h5 { font-family: var(--heading-font); font-weight: var(--heading-font-weight); }

/* Document Landing Page Styles */
.doc-preview {
  margin-right: 2rem;
}

.doc-preview img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.doc-benefits ul li {
  font-size: 1.1rem;
  line-height: 1.6;
}

.download-form-container {
  background: #ffffff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid #e9ecef;
  border-top: 4px solid var(--primary);
}

.download-form .form-group {
  margin-bottom: 1.5rem;
}

.download-form .form-label {
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.download-form .form-label i {
  color: var(--primary);
  font-size: 0.9rem;
}

.download-form .form-control {
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.download-form .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(153, 27, 27, 0.15);
  background-color: #ffffff;
}

.doc-benefits ul li i {
  color: var(--primary) !important;
}

.download-form .form-control::placeholder {
  color: #6c757d;
  font-style: italic;
}

.form-submit-section {
  margin-top: 2rem;
}

.download-form .cta-button {
  border: none;
  outline: none;
  box-shadow: none;
}

.download-form .cta-button:focus {
  border: none;
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(153, 27, 27, 0.15);
}

.trust-item {
  padding: 1.5rem;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.trust-item:hover {
  transform: translateY(-5px);
}

.trust-icon {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Document Preview Enhancements */
.doc-preview {
  position: relative;
  overflow: hidden;
}

.doc-preview-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(153, 27, 27, 0.1) 0%, rgba(153, 27, 27, 0.05) 100%);
  border-radius: 8px;
  z-index: 1;
  pointer-events: none;
}

.doc-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(153, 27, 27, 0.3);
  z-index: 2;
}

/* Form Header Icon */
.form-header-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary) 0%, #7a1515 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 8px 25px rgba(153, 27, 27, 0.2);
}

.form-header-icon i {
  font-size: 1.5rem;
  color: white;
}

/* Enhanced Trust Items */
.trust-item {
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
}

.trust-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.trust-icon {
  transition: all 0.3s ease;
}

.trust-item:hover .trust-icon {
  transform: scale(1.1);
}

/* Enhanced Form Interactions */
.download-form .form-control {
  transition: all 0.3s ease;
}

.download-form .form-control:focus {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(153, 27, 27, 0.15);
}

.download-form .cta-button {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.download-form .cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(153, 27, 27, 0.4);
}

.download-form .cta-button:active {
  transform: translateY(-1px);
}

/* Contact Form Button Styling */
.contact-form .cta-button {
  border: none;
  outline: none;
  box-shadow: none;
}

.contact-form .cta-button:focus {
  border: none;
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(153, 27, 27, 0.15);
}

/* Professional Polish */
.doc-benefits {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 12px;
  padding: 1.5rem;
}

.doc-benefits h5 {
  color: var(--primary);
  font-weight: 700;
}

@media (max-width: 768px) {
  .download-form-container {
    padding: 2rem 1.5rem;
  }
  
  .doc-content h1 {
    font-size: 2rem;
  }
  
  .doc-badge {
    top: 15px;
    right: 15px;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
}

/* Hero Landing Page Styles (scoped) */
.doc-hero {
  min-height: 85vh;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
  padding-top: 0;
  padding-bottom: 2rem;
}

/* Ensure visible internal spacing regardless of content height */
.doc-hero > .container { padding-top: 0 !important; padding-bottom: 1rem !important; }

/* Align hero title and form tops; remove extra top offsets */
.doc-hero .hero-content { margin-top: 0 !important; }
.doc-hero .hero-form-container { margin-top: 0 !important; }

/* Remove any heading top margin in doc hero */
.doc-hero .hero-content h1 { margin-top: 0; }

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('assets/smartops/hero.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  z-index: 1;
}

.hero-background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.2) 100%);
  z-index: 1;
}

.hero-overlay {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  margin-top: 4rem;
}

.hero-content h1 {
  text-shadow: none;
  font-size: 2.2rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-content .lead {
  text-shadow: none;
}

.hero-benefits {
  background: transparent;
  border-radius: 0;
  padding: 0;
  border-left: none;
}

.hero-benefits h5 {
  color: #ffffff;
  font-weight: 700;
}

.hero-benefits ul li {
  color: #ffffff;
  font-size: 1.1rem;
  line-height: 1.6;
}

.hero-form-container {
  position: relative;
  z-index: 2;
  margin-top: 4rem;
  margin-bottom: 8rem;
}

.hero-form {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

/* Reduce space above and below the form box on doc hero */
.doc-hero .hero-form-container { margin-top: 1.5rem; margin-bottom: 2rem; }
@media (max-width: 768px) {
  .doc-hero .hero-form-container { margin-top: 1rem; margin-bottom: 1.5rem; }
}

.hero-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: transparent;
}

.hero-form .form-label {
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.hero-form .form-label i {
  color: var(--primary);
  font-size: 0.9rem;
}

.hero-form .form-control {
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.9);
}

.hero-form .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(153, 27, 27, 0.15);
  background: #ffffff;
  transform: translateY(-2px);
}

.hero-form .form-control::placeholder {
  color: #6c757d;
  font-style: italic;
}

.hero-form .cta-button {
  border: none;
  outline: none;
  box-shadow: none;
  transition: all 0.3s ease;
}

.hero-form .cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(153, 27, 27, 0.4);
}

.hero-form .cta-button:focus {
  border: none;
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(153, 27, 27, 0.15);
}

/* Mobile Responsiveness for Doc Hero */
@media (max-width: 768px) {
  .doc-hero {
    min-height: 70vh;
    padding: 4rem 0;
  }
  .doc-hero > .container { padding-top: 2rem !important; padding-bottom: 3rem !important; }
  
  .hero-form {
    padding: 2rem 1.5rem;
    margin-top: 2rem;
  }
  .hero-form-container { margin-top: 3.5rem; margin-bottom: 6rem; }
  .hero-content { margin-top: 3.5rem; }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-benefits {
    padding: 1rem;
  }
}

/* Red circle with white check (hero only) */
.hero-benefits .bi-bullet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  position: relative;
  vertical-align: middle;
}
.hero-benefits .bi-bullet .bi-circle-fill { color: var(--primary); font-size: 1.4rem; line-height: 1; }
.hero-benefits .bi-bullet .bi-check {
  color: #ffffff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
}
.footer-section p, .footer-section li, .footer-section a, .footer-section .small { font-family: var(--body-font); }

/* Featured Section Enhancement */
/* Featured container: remove heavy boxy frame for a cleaner, premium look */
#featured-results {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0.5rem 0; /* light vertical breathing room */
  margin-bottom: 0.5rem;
  position: relative;
}

/* Tighten heading spacing inside Featured container */
#featured-results .mb-4 {
  margin-bottom: 0.5rem !important;
}

/* Subtle inner highlight to make the box feel premium */
/* Remove inner highlight */
#featured-results::before { content: none; }

/* Gentle top sheen */
/* Remove sheen */
#featured-results::after { content: none; }

/* Featured heading refinement */
/* Featured heading refinement: understated underline using brand red */
#featured-results .featured-title {
  font-family: var(--heading-font);
  font-weight: var(--heading-font-weight);
  line-height: var(--line-height-heading);
  position: relative;
}

#featured-results .featured-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 64px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary, #B4231E), rgba(180, 35, 30, 0.2));
}

/* Make Featured cards feel a bit more elevated vs main grid */
/* Featured cards: light glass effect for premium feel */
#featured-results .portfolio-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  backdrop-filter: saturate(150%) blur(6px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

#featured-results .portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.16);
  border-color: rgba(0, 0, 0, 0.10);
}

/* Slightly taller images in featured to increase visual pop */
#featured-results .card-image { height: 220px; }
#featured-results .portfolio-card.featured-tall .card-image { height: 280px; }

#featured-results .service-card {
  background: white;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

#featured-results .service-card:hover {
  border-color: #1f2937;
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(31, 41, 55, 0.15);
}

/* Clear Filters Link */
#featured-clear {
  color: #6b7280;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

#featured-clear:hover {
  color: #1f2937;
}

/* No Results State */
#no-results {
  text-align: center;
  padding: 3rem 2rem;
  color: #6b7280;
}

#no-results i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* Sticky Filter Toggle Button */
/* Protruding vertical tab attached to sticky panel */
/* Floating Filters Toggle Button (non-vertical) */
.filter-toggle-btn {
  position: fixed;
  top: 96px; /* slightly lower than the menu for spacing */
  left: 0;
  transform: none;
  height: 44px;
  padding: 0 14px;
  background: linear-gradient(135deg, #2A2A2A 0%, #3A3A3A 100%);
  border: none;
  border-radius: 0 22px 22px 0; /* attached at left edge */
  color: white;
  cursor: pointer;
  z-index: 1001;
  box-shadow: 0 4px 16px rgba(42, 42, 42, 0.3);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  display: none; /* Hidden by default */
  display: none;
  align-items: center;
  justify-content: center;
  column-gap: 10px;
}

.filter-toggle-btn:hover { box-shadow: 0 8px 22px rgba(42, 42, 42, 0.4); }
.filter-toggle-btn.visible { display: flex; }
.filter-toggle-btn.hidden { display: none; }

.filter-toggle-text { font-size: 13px; font-weight: 700; letter-spacing: 1px; }
.filter-toggle-icon { font-size: 16px; line-height: 1; }

.sticky-filters-tab .tab-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
}

.sticky-filters-tab .tab-icon {
  font-size: 16px;
  line-height: 1;
}

/* Sticky Compact Filters - Left Side Panel */
.sticky-filters {
  position: fixed;
  top: 80px; /* Account for navbar height */
  bottom: 0;
  left: -240px;
  background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
  border: 1px solid #e5e5e5;
  border-left: none;
  border-radius: 0 16px 16px 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, visibility 0.4s ease;
  padding: 0;
  width: 220px;
  overflow-y: auto;
  overflow-x: hidden;
  opacity: 0;
  visibility: hidden;
  backdrop-filter: blur(10px);
}

/* Custom scrollbar for sticky filters */
.sticky-filters::-webkit-scrollbar {
  width: 6px;
}

.sticky-filters::-webkit-scrollbar-track {
  background: transparent;
}

.sticky-filters::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
  transition: background 0.3s ease;
}

.sticky-filters::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

/* Hide scrollbar when not needed */
.sticky-filters {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

/* Premium shimmer effect for sticky filters */
.sticky-filters::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.6s ease;
}

.sticky-filters.visible::before {
  left: 100%;
}

.sticky-filters.visible {
  left: 0;
  opacity: 1;
  visibility: visible;
}

/* Filter Close Button */
.filter-close-btn {
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #eeeeee 0%, #e5e5e5 100%);
  border: none;
  border-radius: 50%;
  color: #475569;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}

.filter-close-btn:hover {
  background: linear-gradient(135deg, #e5e5e5 0%, #d4d4d4 100%);
  color: #2A2A2A;
  transform: scale(1.1);
}

.sticky-filters-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.5rem 1rem;
}

.sticky-section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #6b7280;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sticky-vertical-pills {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sticky-pill {
  background: linear-gradient(135deg, #f7f7f7 0%, #f0f0f0 100%);
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #4b5563;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  white-space: nowrap;
  width: 100%;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
}

.sticky-pill:hover {
  background: linear-gradient(135deg, #eeeeee 0%, #e5e5e5 100%);
  color: #2A2A2A;
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.sticky-pill.active {
  background: linear-gradient(135deg, #2A2A2A 0%, #3A3A3A 100%);
  color: white;
  border-color: #2A2A2A;
  box-shadow: 0 4px 16px rgba(42, 42, 42, 0.3);
}

.sticky-pill i {
  font-size: 0.9rem;
}

.sticky-type-pills {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sticky-type-pill {
  background: linear-gradient(135deg, #f7f7f7 0%, #f0f0f0 100%);
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #4b5563;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  width: 100%;
  justify-content: flex-start;
  position: relative;
}

.sticky-type-pill:hover {
  background: linear-gradient(135deg, #eeeeee 0%, #e5e5e5 100%);
  color: #2A2A2A;
  transform: translateX(2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.sticky-type-pill.active {
  background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
  color: #ffffff;
  border-color: #2a2a2a;
  box-shadow: 0 2px 12px rgba(42, 42, 42, 0.25);
}

.sticky-type-pill i {
  font-size: 0.8rem;
}

.sticky-search {
  width: 100%;
}

.sticky-section-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.sticky-search .input-group {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.sticky-search .input-group-text {
  background: white;
  border: none;
  color: #6b7280;
  font-size: 0.8rem;
  padding: 0.4rem 0.6rem;
}

.sticky-search .form-control {
  border: none;
  font-size: 0.8rem;
  padding: 0.4rem 0.6rem;
}

.sticky-search .form-control:focus {
  box-shadow: none;
  border-color: transparent;
}

.sticky-type-pills::-webkit-scrollbar {
  height: 3px;
}

.sticky-type-pills::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 2px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .premium-filters {
    padding: 1.5rem;
  }
  
  .vertical-tiles {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .vertical-tile {
    padding: 1rem 0.75rem;
  }
  
  .tile-icon {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }
  
  .type-pills {
    gap: 0.5rem;
  }
  
  .type-pill {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }
  
  .resource-hub-hero .input-group {
    max-width: 100%;
  }
  
  #featured-results {
    padding: 1.5rem;
  }
  
  .sticky-filters {
    width: 200px;
    left: -220px;
    padding: 1rem 0.75rem;
    top: 70px; /* Account for smaller navbar on mobile */
    bottom: 0;
  }
  
  .sticky-filters.visible {
    left: 0;
  }
  
  .sticky-filters-content {
    gap: 1rem;
  }
  
  .sticky-pill {
    padding: 0.6rem 0.75rem;
    font-size: 0.8rem;
  }
  
  .sticky-type-pill {
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
  }
}

/* Global mobile optimizations (scoped; desktop unaffected) */
@media (max-width: 768px) {
  .container { padding-left: 1.25rem; padding-right: 1.25rem; }
  /* Homepage hero */
  body.home .hero-section { padding-top: 1.25rem; padding-bottom: 5rem; background-position: 70% 15%; }
  body.home .hero-title { font-size: 2.2rem; line-height: 1.15; }
  body.home .hero-subtitle { font-size: 1.1rem; margin-top: 1rem; margin-bottom: 1.25rem !important; }
  .hero-btn { padding: 0.65rem 1.1rem; font-size: 0.95rem; }
  /* Services hero */
  .smart-hero-section { padding-top: 16px; background-position: center top; }
  .smart-hero-title { font-size: 1.9rem; }
  .smart-hero-subtitle { font-size: 1rem; }
  /* Doc hero */
  .doc-hero { min-height: 72vh; padding-top: 0.5rem; padding-bottom: 1.25rem; background-position: center 28%; }
  .doc-hero .row.g-5 { --bs-gutter-y: 0.75rem; --bs-gutter-x: 1rem; }
  .doc-hero .hero-content h1 { font-size: 1.75rem; }
  .doc-hero .hero-content .lead { font-size: 1rem; }
  .doc-hero .hero-form { padding: 1.25rem 1rem; }
  .doc-hero .hero-form-container { margin-top: 0.5rem !important; margin-bottom: 1rem !important; }
  /* Navbar dropdown */
  .dropdown-menu.custom-width { min-width: 100% !important; max-width: 100% !important; padding: 1rem !important; }
  .dropdown-menu.custom-width .mb-4 { margin-bottom: 1rem !important; }
  /* Blog/cards spacing */
  .blog-section .card-body { padding: 1rem; }
  .portfolio-card { margin-bottom: 1rem; }
  /* Global section spacing for readability */
  section { padding-top: 2.25rem; padding-bottom: 2.25rem; }
  p, .lead { line-height: 1.7; }
  /* Footer spacing */
  .footer-section { padding-top: 2rem !important; padding-bottom: 2.5rem !important; }
}

/* Tablet-specific fix: prevent hero background repeating and keep cover */
@media (min-width: 769px) and (max-width: 1024px) {
  body.home .hero-section {
    background-repeat: no-repeat !important;
    background-size: cover !important;
    background-position: 80% 20% !important;
  }
}

/* Final mobile navbar cleanup (wins over earlier/global rules) */
@media (max-width: 991.98px) {
  .navbar .dropdown-menu,
  .navbar .dropdown-menu.custom-width,
  .navbar .company-menu {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .navbar .dropdown-menu.custom-width li,
  .navbar .company-menu li {
    background: transparent !important;
    border: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}

/* Final Services mobile normalization: plain, unindented links with both parts visible */
@media (max-width: 991.98px) {
  .navbar .dropdown-menu.custom-width { padding: 0 !important; }
  .navbar .dropdown-menu.custom-width a.dropdown-item { padding: 0.55rem 0 !important; line-height: 1.2; }
  .navbar .dropdown-menu.custom-width a.dropdown-item > .d-flex { display: inline !important; align-items: baseline !important; }
  .navbar .dropdown-menu.custom-width a.dropdown-item strong { font-weight: 500 !important; color: var(--text-menu) !important; }
  .navbar .dropdown-menu.custom-width a.dropdown-item .text-muted { display: inline !important; color: var(--text-menu) !important; opacity: 1 !important; }
  .navbar .dropdown-menu.custom-width a.dropdown-item .ms-1 { margin-left: 0 !important; }
  /* Unindent Company to match Services */
  .navbar .company-menu { padding: 0 !important; }
  .navbar .company-menu .dropdown-item { padding-left: 0 !important; margin-left: 0 !important; }
}

/* ==========================================================================
   BLOG CONTENT STYLES (for rendered blog posts)
   ========================================================================== */

.blog-content {
  font-family: var(--body-font, "Roboto"), sans-serif;
  font-size: var(--font-size-body, 1.1rem);
  font-weight: var(--font-weight-normal, 400);
  line-height: var(--line-height-normal, 1.6);
  color: var(--text-primary, #212529);
}

.blog-content h1,
.blog-content h2,
.blog-content h3,
.blog-content h4,
.blog-content h5,
.blog-content h6 {
  font-family: var(--heading-font, "Raleway"), sans-serif;
  font-weight: var(--font-weight-normal, 400);
  color: var(--text-primary, #212529);
  line-height: var(--line-height-tight, 1.25);
}

.blog-content h1,
.blog-content h2 {
  font-size: 2.7em;
  margin-top: 0.5em;
  margin-bottom: 0.75rem;
}

.blog-content h3 {
  font-size: 1.5em;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.blog-content h4 {
  font-size: 1.3em;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.blog-content p {
  font-family: var(--body-font, "Roboto"), sans-serif;
  font-size: var(--font-size-body, 1.1rem);
  font-weight: var(--font-weight-normal, 400);
  line-height: var(--line-height-normal, 1.6);
  margin-bottom: 1rem;
}

.blog-content ul,
.blog-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.blog-content ul li,
.blog-content ol li {
  font-family: var(--body-font, "Roboto"), sans-serif;
  font-size: var(--font-size-body, 1.1rem);
  font-weight: var(--font-weight-normal, 400);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.blog-content ul li:last-child,
.blog-content ol li:last-child {
  margin-bottom: 0;
}

.blog-content ul li::marker {
  color: var(--accent-0, #991B1B);
}

.blog-content ol li::marker {
  color: var(--accent-0, #991B1B);
  font-weight: var(--font-weight-semibold, 600);
}

.blog-content strong {
  font-weight: var(--font-weight-semibold, 600);
  color: var(--text-primary, #212529);
}

.blog-content blockquote {
  border-left: 4px solid var(--accent-0, #991B1B);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-secondary, #495057);
}

.blog-content a {
  color: var(--accent-0, #991B1B);
  text-decoration: underline;
}

.blog-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--card-border-radius, 1.5rem);
  margin: 1.5rem 0;
}

/* Blog Tables */
.blog-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-family: var(--body-font, "Roboto"), sans-serif;
  font-size: 1rem;
}

.blog-content table th,
.blog-content table td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--light-2, #e6e6e6);
  text-align: left;
}

.blog-content table th {
  background-color: var(--light-1, #f8f9fa);
  font-weight: var(--font-weight-semibold, 600);
  font-family: var(--heading-font, "Raleway"), sans-serif;
}

.blog-content table tr:nth-child(even) {
  background-color: var(--light-1, #f8f9fa);
}

/* Blog Code blocks */
.blog-content code {
  background: var(--light-1, #f8f9fa);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
}

.blog-content pre {
  background: var(--dark-2, #1a1a1a);
  color: #f8f8f2;
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 2rem 0;
}

.blog-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

/* Blog Hero */
.blog-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
}

.blog-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
}

.blog-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 2rem;
}

/* Blog Header */
.blog-header {
  background: var(--light-1, #f8f9fa);
  padding: 2rem 0 1rem 0;
}

/* Blog responsive */
@media (max-width: 768px) {
  .blog-content h1,
  .blog-content h2 {
    font-size: 2rem;
  }
  
  .blog-content h3 {
    font-size: 1.3rem;
  }
  
  .blog-hero {
    min-height: 400px;
  }
}
