/* Theme base styles */

/* Tools
Any animations, or functions used throughout the project.
Note: _macros.css needs to be imported into each stylesheet where macros are used and not included here
*/

/* Generic
This is where reset, normalize & box-sizing styles go.
*/

*, *:before, *:after {
  box-sizing: border-box;
}
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
   ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */

html {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/* Sections
   ========================================================================== */

/**
 * Remove the margin in all browsers.
 */

body {
  margin: 0;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
   ========================================================================== */

/**
 * Add the correct box sizing in Firefox.
 */

hr {
  box-sizing: content-box;
  height: 0;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

pre {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/* Text-level semantics
   ========================================================================== */

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, Opera, and Safari.
 */

abbr[title] {
  border-bottom: none; /* 1 */
  text-decoration: underline; /* 2 */
  text-decoration: underline dotted; /* 2 */
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */

b,
strong {
  font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

code,
kbd,
samp {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/**
 * Add the correct font size in all browsers.
 */

small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Forms
   ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-size: 100%; /* 1 */
  line-height: 1.15; /* 1 */
  margin: 0; /* 2 */
}

/**
 * Remove the inheritance of text transform in Edge and Firefox.
 * 1. Remove the inheritance of text transform in Firefox.
 */

button,
select { /* 1 */
  text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */

fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
 * Remove the padding so developers are not caught out when they zero out `fieldset` elements in all browsers.
 */

legend {
  padding: 0;
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */

progress {
  vertical-align: baseline;
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */

[type="search"] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */

[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/* Interactive
   ========================================================================== */

/*
 * Add the correct display in Edge and Firefox.
 */

details {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */

summary {
  display: list-item;
}


/* Usage: buttons */
:root {
  --tracking-wide: 0.075rem;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;

  /* Border Radius */

  --rounded-none: 0rem;
  --rounded-xs: 0.125rem;
  --rounded-sm: 0.25rem;
  --rounded-md: 0.375rem;
  --rounded-lg: 0.5rem;
  --rounded-xl: 0.75rem;
  --rounded-2xl: 1rem;
  --rounded-3xl: 1.5rem;
  --rounded-4xl: 2rem;
  --rounded-full: 9999px;

  /* Colors */
  --color-primary: #0b496b;
  --color-secondary: #f37c40;
  --color-tertiary: #f1f3f4;
}

/* Objects
Non-cosmetic design patterns including grid and layout classes)
*/

/* ------------------------------------------------
   DYNAMIC GRID SYSTEM
   ------------------------------------------------ */



/* CSS variables */
/* Initial Gap was smaller. Recalcualed to have slighly bigger gap. */
/* --column-gap: 2.13%; */

:root {
  /* Column layout variables */
  --column-gap: 1.15rem;
  --row-gap: 1.15rem; /* Add vertical spacing between rows */
  --column-width-multiplier: 8.333;
  
  /* Debug color variables (Using Tailwind CSS colors) */
  --debug-mobile-color: #f43f5e;      /* rose-500 */
  --debug-tablet-color: #3b82f6;      /* blue-500 */
  --debug-desktop-color: #84cc16;     /* lime-500 */
  
  /* Transparent background versions */
  --debug-mobile-bg: rgba(244, 63, 94, 0.15);    /* rose-500 at 15% opacity */
  --debug-tablet-bg: rgba(59, 130, 246, 0.15);   /* blue-500 at 15% opacity */
  --debug-desktop-bg: rgba(132, 204, 22, 0.15);  /* lime-500 at 15% opacity */
}

/* Utility function for calculating column width 
   This creates a reusable formula that accounts for gaps correctly */


/* Mobile layout (default) - stacks everything */
.row-fluid {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  column-gap: var(--column-gap); /* Horizontal gap between columns */
  row-gap: var(--row-gap);       /* Vertical gap between rows */
}


  .row-fluid .span1,
  .row-fluid .span2,
  .row-fluid .span3,
  .row-fluid .span4,
  .row-fluid .span5,
  .row-fluid .span6,
  .row-fluid .span7,
  .row-fluid .span8,
  .row-fluid .span9,
  .row-fluid .span10,
  .row-fluid .span11,
  .row-fluid .span12{
  min-height: 1px;
  width: 100%;
}

/* ------------------------------------------------
   TABLET RESPONSIVE LAYOUT (768px - 1279px)
   ------------------------------------------------
   This is our custom solution to HubSpot's limitation of only having
   mobile and desktop breakpoints in the editor. We've created a
   "smart middleware" approach that automatically adjusts layouts
   for tablet screens without requiring editor configuration.
   
   The approach works by targeting HubSpot's auto-generated span classes
   with media queries specifically for tablet screen sizes.
*/
@media (min-width: 768px) {
  .row-fluid {
    flex-wrap: wrap; /* Enable wrapping for tablet layouts */
    justify-content: space-between;
    column-gap: var(--column-gap);
    row-gap: var(--row-gap);
  }

  /* SMART TABLET COLUMN BEHAVIOR:
     Our solution creates a responsive pattern optimized for tablet viewing:
     - Narrow columns (span1-3): Double their width to prevent tiny, hard-to-read content
     - Medium columns (span4-6): Keep their width (already good for tablet)
     - Wide columns (span7+): Go full width to maximize readable area
     - Special handling for common layouts like 3-column and 4-column grids
  */
  
  /* 1. SMALL COLUMNS: Double width for narrow columns to improve readability */
  
    
    .row-fluid .span1 {
      width: 
  calc(var(--column-width-multiplier) * 2% - var(--column-gap) * (10 / 12))
;
    }
  
    
    .row-fluid .span2 {
      width: 
  calc(var(--column-width-multiplier) * 4% - var(--column-gap) * (8 / 12))
;
    }
  
    
    .row-fluid .span3 {
      width: 
  calc(var(--column-width-multiplier) * 6% - var(--column-gap) * (6 / 12))
;
    }
  
  
  /* 2. MEDIUM COLUMNS: columns span4-6 maintain their width - already optimal for tablet */
  
    .row-fluid .span4 {
      width: 
  calc(var(--column-width-multiplier) * 4% - var(--column-gap) * (8 / 12))
;
    }
  
    .row-fluid .span5 {
      width: 
  calc(var(--column-width-multiplier) * 5% - var(--column-gap) * (7 / 12))
;
    }
  
    .row-fluid .span6 {
      width: 
  calc(var(--column-width-multiplier) * 6% - var(--column-gap) * (6 / 12))
;
    }
  
  
  /* 3. LARGE COLUMNS: Wide columns go full width on tablet for maximum readability */
  
    .row-fluid .span7 {
      width: 100%;
    }
  
    .row-fluid .span8 {
      width: 100%;
    }
  
    .row-fluid .span9 {
      width: 100%;
    }
  
    .row-fluid .span10 {
      width: 100%;
    }
  
    .row-fluid .span11 {
      width: 100%;
    }
  
    .row-fluid .span12 {
      width: 100%;
    }
  
  
  /* 4. COMMON LAYOUT PATTERNS:
     Special case handling for frequently used column arrangements
     to ensure they maintain their intended design on tablet
  */
  
  /* Keep 3-column layouts intact when using span4 
     How the selectors work:
     - :nth-child(3n+1) targets the first column in each group of 3
     - :nth-last-child(3) ensures we only target when there are exactly 3 columns total
     - Combined, they precisely identify "true" 3-column layouts
     - The ~ selector then targets all siblings that follow the first matched element
     This surgical approach only affects genuine 3-column grids, not random span4 elements.
  */
  .row-fluid .span4:nth-child(3n+1):nth-last-child(3),
  .row-fluid .span4:nth-child(3n+1):nth-last-child(3) ~ .span4 {
    width: 
  calc(var(--column-width-multiplier) * 4% - var(--column-gap) * (8 / 12))
;
  }
  
  /* Keep 2-column layouts intact when using span6
     The selectors identify only genuine 2-column layouts with span6 columns,
     leaving other span6 elements untouched if they're used differently.
  */
  .row-fluid .span6:nth-child(2n+1):nth-last-child(2),
  .row-fluid .span6:nth-child(2n+1):nth-last-child(2) ~ .span6 {
    width: 
  calc(var(--column-width-multiplier) * 6% - var(--column-gap) * (6 / 12))
;
  }
  
  /* Convert 4-column layouts (span3) to 2 rows of 2 columns for better tablet viewing
     The selectors explained:
     - :nth-child(4n+1) matches the 1st, 5th, 9th, etc. child (first in each group of 4)
     - :nth-last-child(4) ensures there are exactly 4 columns total
     - Combined, they perfectly target only complete 4-column layouts
     - The ~ selector then applies the same style to all siblings that follow
     This ensures we only transform proper 4-column layouts without affecting
     other span3 elements that might be used in different contexts.
  */
  .row-fluid .span3:nth-child(4n+1):nth-last-child(4),
  .row-fluid .span3:nth-child(4n+1):nth-last-child(4) ~ .span3 {
    width: 
  calc(var(--column-width-multiplier) * 6% - var(--column-gap) * (6 / 12))
;
  }
  
  /* Convert 6-column layouts (span2) to 2 rows of 3 columns for better tablet viewing
     Using the same selector pattern to identify only genuine 6-column layouts,
     ensuring we don't affect span2 elements used in other layout patterns.
  */
  .row-fluid .span2:nth-child(6n+1):nth-last-child(6),
  .row-fluid .span2:nth-child(6n+1):nth-last-child(6) ~ .span2 {
    /* 3-up → each col = 4/12 = 33.333 % */
    width: 
  calc(var(--column-width-multiplier) * 4% - var(--column-gap) * (8 / 12))
;
  }
  
  /* 5. UNEVEN COLUMN PAIRS:
     Convert asymmetrical column combinations to 50/50 layouts on tablet
     to create more balanced and visually appealing designs
     
     We use the direct child selector (>) for precision and to avoid
     affecting nested columns with these same classes.
  */
  .row-fluid > .span7, 
  .row-fluid > .span8, 
  .row-fluid > .span9,
  .row-fluid > .span5, 
  .row-fluid > .span4, 
  .row-fluid > .span3 {
    width: 
  calc(var(--column-width-multiplier) * 6% - var(--column-gap) * (6 / 12))
;
  }
  
  /* 6. SPECIAL OVERRIDES - Higher specificity to ensure they take precedence */
  /* Override for 3-column layout span4 */
  .row-fluid .span4:nth-child(3n+1):nth-last-child(3),
  .row-fluid .span4:nth-child(3n+1):nth-last-child(3) ~ .span4 {
    width: 
  calc(var(--column-width-multiplier) * 4% - var(--column-gap) * (8 / 12))
;
  }
  
  /* Override for 4-column layout span3 */
  .row-fluid .span3:nth-child(4n+1):nth-last-child(4),
  .row-fluid .span3:nth-child(4n+1):nth-last-child(4) ~ .span3 {
    width: 
  calc(var(--column-width-multiplier) * 6% - var(--column-gap) * (6 / 12))
;
  }
}

/* Desktop Layout (1280px and above) */
@media (min-width: 1280px) {
  .row-fluid {
    flex-wrap: nowrap;
    justify-content: space-between;
    column-gap: var(--column-gap);
    row-gap: var(--row-gap);
  }
  
  /* Base desktop column widths - restore original widths */
  
    .row-fluid .span1 {
      width: 
  calc(var(--column-width-multiplier) * 1% - var(--column-gap) * (11 / 12))
;
    }
  
    .row-fluid .span2 {
      width: 
  calc(var(--column-width-multiplier) * 2% - var(--column-gap) * (10 / 12))
;
    }
  
    .row-fluid .span3 {
      width: 
  calc(var(--column-width-multiplier) * 3% - var(--column-gap) * (9 / 12))
;
    }
  
    .row-fluid .span4 {
      width: 
  calc(var(--column-width-multiplier) * 4% - var(--column-gap) * (8 / 12))
;
    }
  
    .row-fluid .span5 {
      width: 
  calc(var(--column-width-multiplier) * 5% - var(--column-gap) * (7 / 12))
;
    }
  
    .row-fluid .span6 {
      width: 
  calc(var(--column-width-multiplier) * 6% - var(--column-gap) * (6 / 12))
;
    }
  
    .row-fluid .span7 {
      width: 
  calc(var(--column-width-multiplier) * 7% - var(--column-gap) * (5 / 12))
;
    }
  
    .row-fluid .span8 {
      width: 
  calc(var(--column-width-multiplier) * 8% - var(--column-gap) * (4 / 12))
;
    }
  
    .row-fluid .span9 {
      width: 
  calc(var(--column-width-multiplier) * 9% - var(--column-gap) * (3 / 12))
;
    }
  
    .row-fluid .span10 {
      width: 
  calc(var(--column-width-multiplier) * 10% - var(--column-gap) * (2 / 12))
;
    }
  
    .row-fluid .span11 {
      width: 
  calc(var(--column-width-multiplier) * 11% - var(--column-gap) * (1 / 12))
;
    }
  
    .row-fluid .span12 {
      width: 
  calc(var(--column-width-multiplier) * 12% - var(--column-gap) * (0 / 12))
;
    }
  
}

/* ------------------------------------------------
   GRID DEBUGGING
   To enable: Add class 'debug-dnd-grid' to a parent element
   To disable: Remove the class or comment out this section
   ------------------------------------------------ */

/* 
 * ABOUT THE HUBSPOT GRID SOLUTION:
 * 
 * HubSpot's grid system uses both span classes and data-w attributes.
 * But these can sometimes contradict each other! For example:
 * - An element might have class="span2" but data-w="6"
 * - The data-w attribute is more reliable, as it's what HubSpot actually uses for layout
 * 
 * Our solution creates a priority-based system:
 * 1. First, we target elements with data-w attributes (HubSpot-specific)
 * 2. Then, we target elements with span classes BUT NO data-w attributes
 * 3. This prevents conflicts between HubSpot and standard elements
 * 
 * NESTING SOLUTION:
 * HubSpot often creates deeply nested structures with multiple levels of .row-fluid
 * We solve this by:
 * 1. Only showing labels on direct children of .row-fluid (using > selector)
 * 2. Handling nested .row-fluid containers with a nesting counter
 * 3. Ensuring deeper nested element labels appear on top with higher z-index
 */

/* Base styles for all spans - only target DIRECT children of row-fluid for cleaner UI */
.debug-dnd-grid .row-fluid > [class*="span"],
.debug-dnd-grid .row-fluid > [data-w] {
  position: relative;
  background-color: var(--debug-mobile-bg);
  box-shadow: inset 0 0 0 1px var(--debug-mobile-color);
  /* Add margin indicator for row spacing (top and bottom) */
  outline: 1px dashed var(--debug-mobile-color);
  outline-offset: calc(var(--row-gap) / 2);
}

/* Single Label - Only show ONE info label per direct child */
.debug-dnd-grid .row-fluid > [class*="span"]::before,
.debug-dnd-grid .row-fluid > [data-w]::before {
  content: "Mobile: 100%";
  position: absolute;
  top: 0;
  left: 0;
  font-size: 11px;
  line-height: 1.2;
  padding: 2px 5px;
  background: var(--debug-mobile-color);
  color: white;
  font-weight: 500;
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.4);
  z-index: 100; /* Base z-index */
  white-space: nowrap;
  border-bottom-right-radius: 3px;
  pointer-events: none;
}

/* Apply higher z-index for deeper nested elements when needed */
.debug-dnd-grid .row-fluid .row-fluid > [class*="span"]::before,
.debug-dnd-grid .row-fluid .row-fluid > [data-w]::before {
  z-index: 101; /* Higher than parent */
  top: 20px; /* Offset nested labels */
  left: 5px;
}

.debug-dnd-grid .row-fluid .row-fluid .row-fluid > [class*="span"]::before,
.debug-dnd-grid .row-fluid .row-fluid .row-fluid > [data-w]::before {
  z-index: 102; /* Even higher for deeper nesting */
  top: 40px; /* Offset more for deeper nesting */
  left: 10px;
}

/* Add even deeper nesting level */
.debug-dnd-grid .row-fluid .row-fluid .row-fluid .row-fluid > [class*="span"]::before,
.debug-dnd-grid .row-fluid .row-fluid .row-fluid .row-fluid > [data-w]::before {
  z-index: 103; 
  top: 60px;
  left: 15px;
}

/* Hide the second label */
.debug-dnd-grid .row-fluid > [class*="span"]::after,
.debug-dnd-grid .row-fluid > [data-w]::after {
  display: none;
}

/* 
 * CONTAINER HANDLING: 
 * Instead of hiding container labels, we'll position them to avoid overlap
 * This ensures all grid information is visible at all nesting levels
 */

/* Remove previous container-hiding rules */
.debug-dnd-grid .span12:has(> .row-fluid)::before,
.debug-dnd-grid .span12:has(> .row-fluid-wrapper)::before,
.debug-dnd-grid [data-w="12"]:has(> .row-fluid)::before,
.debug-dnd-grid [data-w="12"]:has(> .row-fluid-wrapper)::before,
.debug-dnd-grid .widget-span.widget-type-cell.span12:before,
.debug-dnd-grid .widget-type-custom_widget.span12:before,
.debug-dnd-grid .dnd-module.span12:before,
.debug-dnd-grid .span12 > .row-fluid-wrapper::before,
.debug-dnd-grid .span12 > .row-fluid::before,
.debug-dnd-grid [data-w="12"] > .row-fluid-wrapper::before,
.debug-dnd-grid [data-w="12"] > .row-fluid::before {
  display: initial !important;
}

/* 
 * NESTED LABEL POSITIONING:
 * Position labels at different corners to avoid overlap
 * This allows seeing all nested grid information clearly
 */
 
/* Remove redundant rules that were previously used for hiding labels */
 
/* First level: top-left corner (default) */
.debug-dnd-grid .row-fluid > [class*="span"]::before,
.debug-dnd-grid .row-fluid > [data-w]::before {
  top: 0;
  left: 0;
  border-bottom-right-radius: 3px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-left-radius: 0;
  z-index: 100;
}

/* Second level: top-right corner */
.debug-dnd-grid .row-fluid .row-fluid > [class*="span"]::before,
.debug-dnd-grid .row-fluid .row-fluid > [data-w]::before {
  top: 0;
  left: auto;
  right: 0;
  border-bottom-left-radius: 3px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  z-index: 101;
}

/* Third level: bottom-left corner */
.debug-dnd-grid .row-fluid .row-fluid .row-fluid > [class*="span"]::before,
.debug-dnd-grid .row-fluid .row-fluid .row-fluid > [data-w]::before {
  top: auto;
  bottom: 0;
  left: 0;
  right: auto;
  border-top-right-radius: 3px;
  border-top-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
  z-index: 102;
}

/* Fourth level: bottom-right corner */
.debug-dnd-grid .row-fluid .row-fluid .row-fluid .row-fluid > [class*="span"]::before,
.debug-dnd-grid .row-fluid .row-fluid .row-fluid .row-fluid > [data-w]::before {
  top: auto;
  bottom: 0;
  left: auto;
  right: 0;
  border-top-left-radius: 3px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
  z-index: 103;
}

/* ------------------------------------------------
   TABLET BREAKPOINT DEBUGGING (768px - 1279px)
   ------------------------------------------------ */
@media (min-width: 768px) {
  /* Only target direct children of row-fluid */
  .debug-dnd-grid .row-fluid > [class*="span"],
  .debug-dnd-grid .row-fluid > [data-w] {
    box-shadow: inset 0 0 0 1px var(--debug-tablet-color);
    background-color: var(--debug-tablet-bg);
    outline: 1px dashed var(--debug-tablet-color);
    outline-offset: calc(var(--row-gap) / 2);
  }
  
  /* 
   * PRIORITY SYSTEM: TABLET BREAKPOINT
   * We use a cascade of specificity to ensure correct labels
   */
   
  /* PRIORITY 1: HubSpot Specific Elements (data-w attribute)
   * These selectors have highest priority and will override any span class
   * The data-w attribute tells us exactly how wide HubSpot thinks the column should be
   */
  
  .debug-dnd-grid .row-fluid > [data-w="1"]::before {
    content: "HubSpot 1/12: 8.3%";
    background: var(--debug-tablet-color);
    color: white;
  }
  
  .debug-dnd-grid .row-fluid > [data-w="2"]::before {
    content: "HubSpot 2/12: 16.6%";
    background: var(--debug-tablet-color);
    color: white;
  }
  
  .debug-dnd-grid .row-fluid > [data-w="3"]::before {
    content: "HubSpot 3/12: 24.9%";
    background: var(--debug-tablet-color);
    color: white;
  }
  
  .debug-dnd-grid .row-fluid > [data-w="4"]::before {
    content: "HubSpot 4/12: 33.2%";
    background: var(--debug-tablet-color);
    color: white;
  }
  
  .debug-dnd-grid .row-fluid > [data-w="5"]::before {
    content: "HubSpot 5/12: 41.5%";
    background: var(--debug-tablet-color);
    color: white;
  }
  
  .debug-dnd-grid .row-fluid > [data-w="6"]::before {
    content: "HubSpot 6/12: 49.8%";
    background: var(--debug-tablet-color);
    color: white;
  }
  
  .debug-dnd-grid .row-fluid > [data-w="7"]::before {
    content: "HubSpot 7/12: 58.1%";
    background: var(--debug-tablet-color);
    color: white;
  }
  
  .debug-dnd-grid .row-fluid > [data-w="8"]::before {
    content: "HubSpot 8/12: 66.4%";
    background: var(--debug-tablet-color);
    color: white;
  }
  
  .debug-dnd-grid .row-fluid > [data-w="9"]::before {
    content: "HubSpot 9/12: 74.7%";
    background: var(--debug-tablet-color);
    color: white;
  }
  
  .debug-dnd-grid .row-fluid > [data-w="10"]::before {
    content: "HubSpot 10/12: 83.0%";
    background: var(--debug-tablet-color);
    color: white;
  }
  
  .debug-dnd-grid .row-fluid > [data-w="11"]::before {
    content: "HubSpot 11/12: 91.3%";
    background: var(--debug-tablet-color);
    color: white;
  }
  
  .debug-dnd-grid .row-fluid > [data-w="12"]::before {
    content: "HubSpot 12/12: 99.6%";
    background: var(--debug-tablet-color);
    color: white;
  }
  
  
  /* PRIORITY 2: Standard Span Classes
   * Only apply to elements WITHOUT data-w attributes
   * The :not([data-w]) selector ensures HubSpot elements are handled separately
   */
  
  /* Update labels for narrow columns (span1-3) */
  
    
    .debug-dnd-grid .row-fluid > .span1:not([data-w])::before {
      content: "Tablet span1→2: 16.6%";
      background: var(--debug-tablet-color);
      color: white;
    }
    
  
    
    .debug-dnd-grid .row-fluid > .span2:not([data-w])::before {
      content: "Tablet span2→4: 33.2%";
      background: var(--debug-tablet-color);
      color: white;
    }
    
    /* This specific rule for span2 needs to be exactly as the user specified, separate from the loop logic */
    
  
    
    .debug-dnd-grid .row-fluid > .span3:not([data-w])::before {
      content: "Tablet span3→6: 49.8%";
      background: var(--debug-tablet-color);
      color: white;
    }
    
  
  
  /* Corrected generic span2 label, outside and after the loop for span1-3 */
  .debug-dnd-grid .row-fluid > .span2:not([data-w])::before {
    content: "Tablet span2→4: 33.3%";
  }
  
  /* Update labels for medium columns (span4-6) */
  
  .debug-dnd-grid .row-fluid > .span4:not([data-w])::before {
    content: "Tablet span4: 33.2%";
    background: var(--debug-tablet-color);
    color: white;
  }
  
  .debug-dnd-grid .row-fluid > .span5:not([data-w])::before {
    content: "Tablet span5: 41.5%";
    background: var(--debug-tablet-color);
    color: white;
  }
  
  .debug-dnd-grid .row-fluid > .span6:not([data-w])::before {
    content: "Tablet span6: 49.8%";
    background: var(--debug-tablet-color);
    color: white;
  }
  
  
  /* Update labels for wide columns (span7+) */
  
  .debug-dnd-grid .row-fluid > .span7:not([data-w])::before {
    content: "Tablet span7→12: 100%";
    background: var(--debug-tablet-color);
    color: white;
  }
  
  .debug-dnd-grid .row-fluid > .span8:not([data-w])::before {
    content: "Tablet span8→12: 100%";
    background: var(--debug-tablet-color);
    color: white;
  }
  
  .debug-dnd-grid .row-fluid > .span9:not([data-w])::before {
    content: "Tablet span9→12: 100%";
    background: var(--debug-tablet-color);
    color: white;
  }
  
  .debug-dnd-grid .row-fluid > .span10:not([data-w])::before {
    content: "Tablet span10→12: 100%";
    background: var(--debug-tablet-color);
    color: white;
  }
  
  .debug-dnd-grid .row-fluid > .span11:not([data-w])::before {
    content: "Tablet span11→12: 100%";
    background: var(--debug-tablet-color);
    color: white;
  }
  
  .debug-dnd-grid .row-fluid > .span12:not([data-w])::before {
    content: "Tablet span12→12: 100%";
    background: var(--debug-tablet-color);
    color: white;
  }
  
  
  /* PRIORITY 3: Special Layout Patterns
   * These complex selectors identify specific multi-column layouts
   * We add :not([data-w]) to every part to ensure they don't apply to HubSpot elements
   * We also add > to ensure only direct children are targeted
   */
  
  /* 3-column (span4) layouts */
  .debug-dnd-grid .row-fluid > .span4:not([data-w]):nth-child(3n+1):nth-last-child(3) ~ .span4:not([data-w])::before {
    content: "Tablet span4: 33.3% (3-col)";
  }
  
  /* 2-column (span6) layouts */
  .debug-dnd-grid .row-fluid > .span6:not([data-w]):nth-child(2n+1):nth-last-child(2) ~ .span6:not([data-w])::before {
    content: "Tablet span6: 50% (2-col)";
  }
  
  /* 4-column (span3) layouts */
  .debug-dnd-grid .row-fluid > .span3:not([data-w]):nth-child(4n+1):nth-last-child(4) ~ .span3:not([data-w])::before {
    content: "Tablet span3→6: 50% (4→2-col)";
  }
  
  /* 6-column (span2) layouts */
  .debug-dnd-grid .row-fluid > .span2:not([data-w]):nth-child(6n+1):nth-last-child(6) ~ .span2:not([data-w])::before {
    content: "Tablet span2→4: 33.3% (6→3-col)";
  }
  
  /* Debug labels for uneven column pairs - only for non-HubSpot elements */
  .debug-dnd-grid .row-fluid > .span7:not([data-w])::before {
    content: "Tablet span7→6: 50%";
  }
  
  /* Span3 tablet label */
  .debug-dnd-grid .row-fluid > .span3:not([data-w])::before {
    content: "Tablet span3→6: 50%";
  }
  
  .debug-dnd-grid .row-fluid > .span5:not([data-w])::before {
    content: "Tablet span5→6: 50%";
  }
  
  .debug-dnd-grid .row-fluid > .span8:not([data-w])::before {
    content: "Tablet span8→6: 50%";
  }
  
  .debug-dnd-grid .row-fluid > .span4:not([data-w])::before {
    content: "Tablet span4→6: 50%";
  }
  
  .debug-dnd-grid .row-fluid > .span9:not([data-w])::before {
    content: "Tablet span9→6: 50%";
  }
  
  /* Override for 3-column layout span4 debugging */
  .debug-dnd-grid .row-fluid > .span4:not([data-w]):nth-child(3n+1):nth-last-child(3)::before,
  .debug-dnd-grid .row-fluid > .span4:not([data-w]):nth-child(3n+1):nth-last-child(3) ~ .span4:not([data-w])::before {
    content: "Tablet span4: 33.3% (3-col)";
  }
  
  /* Override for 4-column layout span3 debugging */
  .debug-dnd-grid .row-fluid > .span3:not([data-w]):nth-child(4n+1):nth-last-child(4)::before,
  .debug-dnd-grid .row-fluid > .span3:not([data-w]):nth-child(4n+1):nth-last-child(4) ~ .span3:not([data-w])::before {
    content: "Tablet span3→6: 50% (4→2-col)";
  }
}

/* ------------------------------------------------
   DESKTOP BREAKPOINT DEBUGGING (1280px+)
   ------------------------------------------------ */
@media (min-width: 1280px) {
  /* Only target direct children of row-fluid */
  .debug-dnd-grid .row-fluid > [class*="span"],
  .debug-dnd-grid .row-fluid > [data-w] {
    box-shadow: inset 0 0 0 1px var(--debug-desktop-color);
    background-color: var(--debug-desktop-bg);
    outline: 1px dashed var(--debug-desktop-color);
    outline-offset: calc(var(--row-gap) / 2);
  }
  
  /*
   * PRIORITY SYSTEM: DESKTOP BREAKPOINT
   * Same approach as tablet: data-w attributes take precedence over span classes
   */
    
  /* PRIORITY 1: HubSpot Specific Elements (data-w attributes)
   * These will override any span class for HubSpot elements
   */
  
  .debug-dnd-grid .row-fluid > [data-w="1"]::before {
    content: "HubSpot 1/12: 8.3%";
    background: var(--debug-desktop-color);
    color: white;
  }
  
  .debug-dnd-grid .row-fluid > [data-w="2"]::before {
    content: "HubSpot 2/12: 16.6%";
    background: var(--debug-desktop-color);
    color: white;
  }
  
  .debug-dnd-grid .row-fluid > [data-w="3"]::before {
    content: "HubSpot 3/12: 24.9%";
    background: var(--debug-desktop-color);
    color: white;
  }
  
  .debug-dnd-grid .row-fluid > [data-w="4"]::before {
    content: "HubSpot 4/12: 33.2%";
    background: var(--debug-desktop-color);
    color: white;
  }
  
  .debug-dnd-grid .row-fluid > [data-w="5"]::before {
    content: "HubSpot 5/12: 41.5%";
    background: var(--debug-desktop-color);
    color: white;
  }
  
  .debug-dnd-grid .row-fluid > [data-w="6"]::before {
    content: "HubSpot 6/12: 49.8%";
    background: var(--debug-desktop-color);
    color: white;
  }
  
  .debug-dnd-grid .row-fluid > [data-w="7"]::before {
    content: "HubSpot 7/12: 58.1%";
    background: var(--debug-desktop-color);
    color: white;
  }
  
  .debug-dnd-grid .row-fluid > [data-w="8"]::before {
    content: "HubSpot 8/12: 66.4%";
    background: var(--debug-desktop-color);
    color: white;
  }
  
  .debug-dnd-grid .row-fluid > [data-w="9"]::before {
    content: "HubSpot 9/12: 74.7%";
    background: var(--debug-desktop-color);
    color: white;
  }
  
  .debug-dnd-grid .row-fluid > [data-w="10"]::before {
    content: "HubSpot 10/12: 83.0%";
    background: var(--debug-desktop-color);
    color: white;
  }
  
  .debug-dnd-grid .row-fluid > [data-w="11"]::before {
    content: "HubSpot 11/12: 91.3%";
    background: var(--debug-desktop-color);
    color: white;
  }
  
  .debug-dnd-grid .row-fluid > [data-w="12"]::before {
    content: "HubSpot 12/12: 99.6%";
    background: var(--debug-desktop-color);
    color: white;
  }
  
  
  /* PRIORITY 2: Standard Span Classes
   * Only apply to elements WITHOUT data-w attributes
   */
  
  .debug-dnd-grid .row-fluid > .span1:not([data-w])::before {
    content: "Desktop span1: 8.3%";
    background: var(--debug-desktop-color);
    color: white;
  }
  
  .debug-dnd-grid .row-fluid > .span2:not([data-w])::before {
    content: "Desktop span2: 16.6%";
    background: var(--debug-desktop-color);
    color: white;
  }
  
  .debug-dnd-grid .row-fluid > .span3:not([data-w])::before {
    content: "Desktop span3: 24.9%";
    background: var(--debug-desktop-color);
    color: white;
  }
  
  .debug-dnd-grid .row-fluid > .span4:not([data-w])::before {
    content: "Desktop span4: 33.2%";
    background: var(--debug-desktop-color);
    color: white;
  }
  
  .debug-dnd-grid .row-fluid > .span5:not([data-w])::before {
    content: "Desktop span5: 41.5%";
    background: var(--debug-desktop-color);
    color: white;
  }
  
  .debug-dnd-grid .row-fluid > .span6:not([data-w])::before {
    content: "Desktop span6: 49.8%";
    background: var(--debug-desktop-color);
    color: white;
  }
  
  .debug-dnd-grid .row-fluid > .span7:not([data-w])::before {
    content: "Desktop span7: 58.1%";
    background: var(--debug-desktop-color);
    color: white;
  }
  
  .debug-dnd-grid .row-fluid > .span8:not([data-w])::before {
    content: "Desktop span8: 66.4%";
    background: var(--debug-desktop-color);
    color: white;
  }
  
  .debug-dnd-grid .row-fluid > .span9:not([data-w])::before {
    content: "Desktop span9: 74.7%";
    background: var(--debug-desktop-color);
    color: white;
  }
  
  .debug-dnd-grid .row-fluid > .span10:not([data-w])::before {
    content: "Desktop span10: 83.0%";
    background: var(--debug-desktop-color);
    color: white;
  }
  
  .debug-dnd-grid .row-fluid > .span11:not([data-w])::before {
    content: "Desktop span11: 91.3%";
    background: var(--debug-desktop-color);
    color: white;
  }
  
  .debug-dnd-grid .row-fluid > .span12:not([data-w])::before {
    content: "Desktop span12: 99.6%";
    background: var(--debug-desktop-color);
    color: white;
  }
  
}

/* Status indicator - shows appropriate breakpoint */
.debug-dnd-grid::after {
  content: "MOBILE";
  position: fixed;
  bottom: 0;
  right: 0;
  background: var(--debug-mobile-color);
  color: white;
  font-weight: 500;
  padding: 5px 10px;
  font-size: 12px;
  z-index: 9999;
  border-top-left-radius: 3px;
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.4);
}

@media (min-width: 768px) {
  .debug-dnd-grid::after {
    content: "TABLET (SMART)";
    background: var(--debug-tablet-color);
  }
}

@media (min-width: 1280px) {
  .debug-dnd-grid::after {
    content: "DESKTOP";
    background: var(--debug-desktop-color);
  }
}
.content-wrapper {
  margin: 0 auto;
  /* Lex: Check this. See where padding was used and why. Comment out for now */
  /* padding: 0 1rem; */
}

.dnd-section {
  position: relative;
}

/* @media screen and (min-width: 1380px) {
  .content-wrapper {
    padding: 0;
  }
} */

.dnd-section > .row-fluid {
  margin: 0 auto;
}

/* Removed this, better to control spacing with the grid */
/* .dnd-section .dnd-column {
  padding: 0 1rem;
} */

/* @media (max-width: 767px) {
  .dnd-section .dnd-column {
    padding: 0;
  }
} */

/* Elements
Base HMTL elements are styled in this section (<body>, <h1>, <a>, <p>, <button> etc.)
*/

/* The overflow-wrap is meant to prevent long/large words from breaking the mobile responsiveness of a page (e.g. horizontal scrolling). It is preferred to reduce font sizes on mobile to address this, with this CSS specifically helping with extreme scenarios where a reduction in font size is not possible. */

body {
  line-height: 1.4;
  overflow-wrap: break-word;
}

/* Handles word breaking for a few specific languages which handle breaks in words differently. If your content is not translated into these languages, you can safely remove this.  */

html[lang^="ja"] body,
html[lang^="zh"] body,
html[lang^="ko"] body {
  line-break: strict;
  overflow-wrap: normal;
  word-break: break-all;
}

/* Paragraphs */

p {
  font-size: 1rem;
  margin: 0 0 1.4rem;
}

/* Anchors */

a {
  cursor: pointer;
}

/* Headings */

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 1.4rem;
  line-height: 1.2;
  /* letter-spacing: -2px; */
  letter-spacing: 0.05rem;
}

/* Lists */

ul,
ol {
  margin: 0 0 1.4rem;
}

ul ul,
ol ul,
ul ol,
ol ol {
  margin: 0;
}

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

/* Code blocks */

pre {
  overflow: auto;
}

code {
  vertical-align: bottom;
}

/* Blockquotes */

blockquote {
  border-left: 2px solid;
  margin: 0 0 1.4rem;
  padding-left: 0.7rem;
}

/* Horizontal rules */

hr {
  border: none;
  border-bottom: 1px solid #ccc;
}

/* Image alt text */

img {
  font-size: 0.583rem;
  word-break: normal;
}
button,
.button,
.hs-button {
  cursor: pointer;
  display: inline-block;
  text-align: center;
  transition: all 0.15s linear;
  white-space: normal;
}

button:disabled,
.button:disabled,
.hs-button:disabled {
  background-color: #d0d0d0;
  border-color: #d0d0d0;
  color: #e6e6e6;
}

/* No button */

.no-button,
.no-button:hover,
.no-button:focus,
.no-button:active {
  background: none;
  border: none;
  border-radius: 0;
  color: initial;
  font-family: inherit;
  font-size: inherit;
  font-style: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  margin-bottom: 0;
  padding: 0;
  text-align: left;
  text-decoration: none;
  transition: none;
}
/* Fields */

.hs-form-field {
  margin-bottom: 1.4rem;
}

/* Labels */

form label {
  display: block;
  font-size: 0.875rem;
  margin-bottom: 0.35rem;
}

/* Form Title */
.form-title {
  margin-bottom: 0;
}

/* Help text */

form legend {
  font-size: 0.875rem;
}

/* Inputs */

form input[type=text],
form input[type=search],
form input[type=email],
form input[type=password],
form input[type=tel],
form input[type=number],
form input[type=file],
form select,
form textarea {
  display: inline-block;
  font-size: 0.875rem;
  padding: 0.7rem;
  width: 100%;
}

form textarea {
  resize: vertical;
}

form fieldset {
  max-width: 100% !important;
}

/* Inputs - checkbox/radio */

form .inputs-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

form .inputs-list > li {
  display: block;
  margin: 0.7rem 0;
}

form .inputs-list input,
form .inputs-list span {
  vertical-align: middle;
}

form input[type=checkbox],
form input[type=radio] {
  cursor: pointer;
  margin-right: 0.35rem;
}

/* Inputs - date picker */

.hs-dateinput {
  position: relative;
}

.hs-dateinput:before {
  content:'\01F4C5';
  position: absolute;
  right: 10%;
  top: 50%;
  transform: translateY(-50%);
}

.fn-date-picker .pika-table thead th {
  color: #FFF;
}

.fn-date-picker td.is-selected .pika-button {
  border-radius: 0;
  box-shadow: none;
}

.fn-date-picker td .pika-button:hover,
.fn-date-picker td .pika-button:focus {
  border-radius: 0 !important;
  color: #FFF;
}

/* Inputs - file picker */

form input[type=file] {
  background-color: transparent;
  border: initial;
  padding: initial;
}

/* Headings and text */

form .hs-richtext,
form .hs-richtext p {
  font-size: 0.875rem;
  margin: 0 0 1.4rem;
}

form .hs-richtext img {
  max-width: 100% !important;
}

/* GDPR */

.legal-consent-container .hs-form-booleancheckbox-display > span,
.legal-consent-container .hs-form-booleancheckbox-display > span p {
  margin-left: 1rem !important;
}

/* Validation */

.hs-form-required {
  color: #EF6B51;
}

.hs-input.invalid.error {
  border-color: #EF6B51;
}

.hs-error-msg {
  color: #EF6B51;
  margin-top: 0.35rem;
}

/* Submit button */

form input[type=submit],
form .hs-button {
  cursor: pointer;
  display: inline-block;
  text-align: center;
  transition: all 0.15s linear;
  white-space: normal;
}

/* Captcha */

.grecaptcha-badge {
  margin: 0 auto;
}


  /* Search button input field and suggestions */
  .body-container-wrapper .hs-search-field__button {
    padding: 15px;
  }

  .body-container-wrapper .hs-search-field__bar--button-inline .hs-search-field__button {
    margin-left: 6px;
    margin-bottom: 0;
  }

  .body-container-wrapper .hs-search-field__button svg {
    height: 15px;
    fill: #fff;
  }

  .body-container-wrapper .hs-search-field__bar > form > .hs-search-field__input {
    padding: 10px;
  }

  .body-container-wrapper .hs-search-field__suggestions li a {
    color: #494A52;
    padding: 0.35rem 0.7rem;
    text-decoration: none;
    transition: background-color 0.3s;
  }


[data-hsfc-id=Renderer] .hsfc-RichText p {
  color: #ffffff;
}
/* Table */

table {
  border-collapse: collapse;
  margin-bottom: 1.4rem;
  overflow-wrap: break-word;
}

/* Table cells */

td,
th {
  vertical-align: top;
}

/* Table header */

thead th {
  vertical-align: bottom;
}

/* Components
Specific pieces of UI that are stylized. Typically used for global partial styling
*/

.header .dnd-section {
  padding: 0;
}

.header__container {
  display: flex;
  justify-content: space-between;
  /* padding: 1rem; */
  align-items: center;
  /* column-gap: 1rem; */
  flex-wrap: nowrap;
}

.header__row-1 {
  padding-top: 1rem;
}

.header__row-1,
.header__row-2 {
  align-items: center;
  display: flex;
  justify-content: center;
  width: 100%;
}



.header__desktop-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
}


.header__desktop-nav .menu--mobile {
  display: none !important;
}

/* Logo */
.header__logo {
  align-items: center;
  display: flex;
  height: auto;
  margin-right: 1rem; /* Space between logo and navigation */
  width: 280px;
  flex-shrink: 0; 
}

.header__logo img {
  display: block; /* Ensures no extra space around the image */
  max-width: 100%;
  height: auto; /* Maintains aspect ratio */
}

.header__logo .logo-company-name {
  font-size: 1.167rem;
  margin-top: 0.7rem;
}


/* @media (min-width: 1151px) {
  .header__container {
    padding: 1rem 2rem; 
  }
} */


/* @media (max-width: 1150px) and (min-width: 768px) {
  .header__column {
    flex: 1;
  }
} */

/* Small tablet screens */
/* @media (min-width: 768px) and (max-width: 1023px) {
  .header__container {
    padding: 0.5rem 1rem;
    flex-flow: row nowrap; 
  }
} */

@media (max-width: 1079px) {
  .header__container {
    flex-flow: row;
    background-color: #fff;
    z-index: 5; /* Match the header z-index */
  }

  header.header {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    z-index: 5;
    background-color: #fff;
  }

  /* When the mobile menu is open, give the header a subtle glass effect */
  .body-scroll-lock header.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }

  .header__row-1 {
    padding-top: 0;
  }

  .header__row-2 {
    justify-content: flex-end;
    padding: 0;
    display: flex;
    align-items: center;
  }

  .header__desktop-nav {
    display: none; 
  }
  
  /* Ensure logo takes up appropriate space */
  .header__logo {
    margin-right: 0;
  }
  
  /* Make column flex in mobile view */
  .header__column {
    justify-content: flex-end;
    flex: 0 0 auto;
  }

  /* Ensure appropriate body padding to account for fixed header */
  body {
    padding-top: 60px; /* Match header height to prevent content being hidden */
  }
  
  /* Increase touch targets */
  .header--toggle {
    min-height: 34px;
    min-width: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Adjust spacing for mobile toggles */
  .header__navigation--toggle,
  .header__search--toggle,
  .header__language-switcher--toggle,
  .header__close--toggle {
    cursor: pointer;
    position: relative;
    margin-left: 0.5rem; /* Add space between icons */
  }
}

/* Body scroll lock styles */
.body-scroll-lock {
  position: fixed;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Background overlay with glass effect when menu is open - mobile only */
@media (max-width: 1079px) { 
  .body-scroll-lock::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 4; /* Below the header (z-index 5) but above everything else */
    transition: all 0.3s ease;
  }
}



/* Mobile menu scrolling */
@media (max-width: 1079px) {
  .header__navigation,
  .header__search,
  .header__language-switcher {
    display: none;
  }

  /* Toggle styles - these are still needed */
  .header__navigation--toggle,
  .header__search--toggle,
  .header__language-switcher--toggle,
  .header__close--toggle {
    cursor: pointer;
    position: relative;
    margin-left: 0.5rem; /* Add space between icons */
  }

  .header__navigation--toggle.hide,
  .header__search--toggle.hide,
  .header__language-switcher--toggle.hide {
    display: none;
  }

  .header__language-switcher--toggle.open {
    display: block !important;
    margin-left: 0;
    margin-right: auto;
  }

  .header__navigation--toggle:after,
  .header__search--toggle:after,
  .header__language-switcher--toggle:after {
    display: none; 
    font-size: 1.083rem;
    font-weight: 600;
    position: absolute;
    left: 40px;
    text-transform: uppercase;
    top: -10px;
  }

  .header__navigation--toggle.open:after,
  .header__search--toggle.open:after,
  .header__language-switcher--toggle.open:after {
    display: block;
    word-break: normal;
  }
  .header__navigation--toggle {
    background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHdpZHRoPSIyNHB4IiBoZWlnaHQ9IjI0cHgiIHZpZXdCb3g9IjAgMCAyNCAxOSIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIj4gICAgICAgIDx0aXRsZT5oYW1idXJnZXI8L3RpdGxlPiAgICA8ZGVzYz5DcmVhdGVkIHdpdGggU2tldGNoLjwvZGVzYz4gICAgPGcgaWQ9ImhhbWJ1cmdlciIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+ICAgICAgICA8ZyBpZD0iR3JvdXAiIHN0cm9rZT0iIzQ5NEE1MiIgc3Ryb2tlLXdpZHRoPSIzIj4gICAgICAgICAgICA8cmVjdCBpZD0iUmVjdGFuZ2xlIiB4PSIxLjUiIHk9IjEuNSIgd2lkdGg9IjIxIiBoZWlnaHQ9IjEiIHJ4PSIwLjUiPjwvcmVjdD4gICAgICAgICAgICA8cmVjdCBpZD0iUmVjdGFuZ2xlLUNvcHktNCIgeD0iMS41IiB5PSI5LjUiIHdpZHRoPSIyMSIgaGVpZ2h0PSIxIiByeD0iMC41Ij48L3JlY3Q+ICAgICAgICAgICAgPHJlY3QgaWQ9IlJlY3RhbmdsZS1Db3B5LTUiIHg9IjEuNSIgeT0iMTcuNSIgd2lkdGg9IjIxIiBoZWlnaHQ9IjEiIHJ4PSIwLjUiPjwvcmVjdD4gICAgICAgIDwvZz4gICAgPC9nPjwvc3ZnPg==);
    background-size: 80%; 
    background-repeat: no-repeat;
    background-position: center;
    width: 34px; 
    height: 34px;
  }
  

  .header__language-switcher--toggle {
    background-image: url(//static.hsappstatic.net/cos-LanguageSwitcher/static-1.1/img/globe.png);
    background-size: cover;
    height: 34px;
    width: 34px;
  }

  .header__language-switcher--toggle:after {
    content: "Language";
  }

  .header__search--toggle {
    background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHdpZHRoPSIyNHB4IiBoZWlnaHQ9IjI0cHgiIHZpZXdCb3g9IjAgMCAyNCAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIj4gICAgICAgIDx0aXRsZT5TZWFyY2g8L3RpdGxlPiAgICA8ZGVzYz5DcmVhdGVkIHdpdGggU2tldGNoLjwvZGVzYz4gICAgPGRlZnM+ICAgICAgICA8cGF0aCBkPSJNOS4xMzg2MTUzNCwxNS44OTI1Njg1IEM1LjQxMzk1NzQyLDE1Ljg5MjU2ODUgMi4zODM4ODUyNywxMi44NjM0NDc1IDIuMzgzODg1MjcsOS4xMzkwMDM3NiBDMi4zODM4ODUyNyw1LjQxNDU2MDA1IDUuNDEzOTU3NDIsMi4zODM4ODUyNyA5LjEzODYxNTM0LDIuMzgzODg1MjcgQzEyLjg2MzI3MzMsMi4zODM4ODUyNyAxNS44OTI1Njg1LDUuNDE0NTYwMDUgMTUuODkyNTY4NSw5LjEzOTAwMzc2IEMxNS44OTI1Njg1LDEyLjg2MzQ0NzUgMTIuODYzMjczMywxNS44OTI1Njg1IDkuMTM4NjE1MzQsMTUuODkyNTY4NSBNOS4xMzg3NTI0NSwyLjQzMzYwODg3ZS0xMyBDMTQuMTc3OTk1NSwyLjQzMzYwODg3ZS0xMyAxOC4yNzY0NTM3LDQuMTAwMzI0NzEgMTguMjc2NDUzNyw5LjEzOTI3Nzk2IEMxOC4yNzY0NTM3LDExLjIyOTgyMTEgMTcuNTcxMDE2OSwxMy4xNTg0NDM0IDE2LjM4NTYzMTMsMTQuNjk5NjY5NiBMMjMuNjUwODg4MSwyMS45NjUyMjY2IEMyNC4xMTYzNzA2LDIyLjQzMDcwOTIgMjQuMTE2MzcwNiwyMy4xODU0MDU1IDIzLjY1MDg4ODEsMjMuNjUwODg4MSBDMjMuMTg1NDA1NSwyNC4xMTYzNzA2IDIyLjQzMDcwOTIsMjQuMTE2MzcwNiAyMS45NjUyMjY2LDIzLjY1MDg4ODEgTDE0LjY5OTgxMzMsMTYuMzg1NDcxMyBDMTMuMTU4NDQwNSwxNy41NzA5NTA5IDExLjIyOTU3MzgsMTguMjc2NDUzNyA5LjEzODc1MjQ1LDE4LjI3NjQ1MzcgQzQuMDk5NTA5MzgsMTguMjc2NDUzNyAtMy43MzAzNDkzNmUtMTQsMTQuMTc4MjMxMiAtMy43MzAzNDkzNmUtMTQsOS4xMzkyNzc5NiBDLTMuNzMwMzQ5MzZlLTE0LDQuMTAwMzI0NzEgNC4wOTk1MDkzOCwyLjQzMzYwODg3ZS0xMyA5LjEzODc1MjQ1LDIuNDMzNjA4ODdlLTEzIFoiIGlkPSJwYXRoLTEiPjwvcGF0aD4gICAgPC9kZWZzPiAgICA8ZyBpZD0iU2VhcmNoIiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4gICAgICAgIDxtYXNrIGlkPSJtYXNrLTIiIGZpbGw9IndoaXRlIj4gICAgICAgICAgICA8dXNlIHhsaW5rOmhyZWY9IiNwYXRoLTEiPjwvdXNlPiAgICAgICAgPC9tYXNrPiAgICAgICAgPHVzZSBpZD0iSWNvbnMvQWN0aW9ucy9TZWFyY2giIGZpbGw9IiM0OTRBNTIiIHhsaW5rOmhyZWY9IiNwYXRoLTEiPjwvdXNlPiAgICA8L2c+PC9zdmc+);
    background-size: cover;
    height: 25px;
    width: 25px;
  }

  .header__search--toggle:after {
    content: "Search";
  }


  .header__close--toggle {
    background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMTkiIHZpZXdCb3g9IjAgMCAyNCAxOSIgZmlsbD0id2hpdGUiIHhtbG5zPSJodHRwOi8vd3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3dy53My5vcmcvMTk5OS94bGluayI+PHRpdGxlPmNsb3NlPC90aXRsZT48ZGVzYz5DcmVhdGVkIHdpdGggU2tldGNoLjwvZGVzYz48ZyBpZD0iY2xvc2UiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJ3aGl0ZSIgZmlsbC1ydWxlPSJldmVub2RkIj48ZyBpZD0iR3JvdXAiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDIuMDAwMDAwLCAtMS4wMDAwMDApIiBzdHJva2U9IiNGQ0ZDRkMiIHN0cm9rZS13aWR0aD0iMyI+PHJlY3QgaWQ9IlJlY3RhbmdsZSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTAuMDAwMDAwLCAxMC41MDAwMDApIHJvdGF0ZSgtNDUuMDAwMDAwKSB0cmFuc2xhdGUoLTEwLjAwMDAwMCwgLTEwLjUwMDAwMCkiIHg9Ii0wLjUiIHk9IjEwLjUiIHdpZHRoPSIyMSIgaGVpZ2h0PSIxIiByeD0iMC41Ij48L3JlY3Q+PHJlY3QgaWQ9IlJlY3RhbmdsZS1Db3B5LTUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEwLjAwMDAwMCwgMTAuNTAwMDAwKSByb3RhdGUoNDUuMDAwMDAwKSB0cmFuc2xhdGUoLTEwLjAwMDAwMCwgLTEwLjUwMDAwMCkiIHg9Ii0wLjUiIHk9IjEwLjUiIHdpZHRoPSIyMSIgaGVpZ2h0PSIxIiByeD0iMC41Ij48L3JlY3Q+PC9nPjwvZz48L3N2Zz4=);
    background-repeat: no-repeat;
    background-size: 100%;
    display: none;
    height: 34px;
    margin-right: 0;
    width: 34px;
  }

  .header__close--toggle.show {
    display: block;
  }
}

/* Navigation skipper */

.header__skip {
  height: 1px;
  left: -1000px;
  overflow: hidden;
  position: absolute;
  text-align: left;
  top: -1000px;
  width: 1px;
}

.header__skip:hover,
.header__skip:focus,
.header__skip:active {
  height: auto;
  left: 0;
  overflow: visible;
  top: 0;
  width: auto;
}

/* Search bar */

.header__search {
  padding: 0 1rem;
  width: auto;
}



  .hs-search-field__form {
    position: relative;
  }

  .header__search .hs-search-field__label {
    flex-basis: auto;
  }



.header__search .hs-search-field__input {
  
  height: 45px;
  padding: 0 0.7rem;
}



  .header__search .hs-search-field__button {
    padding: 0;
    fill: #000;
    background-color: transparent;
    border: none;
    padding: 10px;
    position: absolute;
    top: 0;
    right: 0;
  }

  .header__search .hs-search-field__button svg {
    height: 25px;
  }


.header__search .hs-search-field--open .hs-search-field__input {
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  max-width: 100%;
}

.header__search .hs-search-field--open .hs-search-field__suggestions {
  background-color: #FFF;
  border: 2px solid #D1D6DC;
  border-radius: 0 0 6px 6px;
  border-top-width: 1px;
  position: absolute;
  width: 100%;
  z-index: 10;
}

.header__search .hs-search-field__suggestions li {
  border-top: 1px solid #D1D6DC;
  font-size: 0.875rem;
}

.header__search .hs-search-field__suggestions li a {
  color: #494A52;
  padding: 0.35rem 0.7rem;
  text-decoration: none;
  transition: background-color 0.3s;
}

.header__search .hs-search-field__suggestions #results-for {
  display: none;
}

@media (min-width: 1080px) {
  .header__search form {
    align-items: center;
    display: flex;
    flex-direction: row;
  }

  .header__search label {
    margin: 0 1rem 0 0;
  }

  .header__search .hs-search-field__input {
    width: auto;
  }
}

@media (max-width: 1079px) {
  .header__search {
    border-top: 2px solid #CED4DB;
    order: 1;
    padding: 1.05rem;
  }
}

/* Language switcher */

.header__language-switcher {
  cursor: pointer;
  padding-right: 1.4rem;
}

.header__language-switcher .lang_switcher_class {
  position: static;
}

.header__language-switcher .lang_list_class {
  border: 2px solid;
  border-radius: 3px;
  box-shadow: 0 2px 9px 0 rgba(0, 0, 0, 0.2);
  display: block;
  left: calc(100% - 24px);
  opacity: 0;
  min-width: 100px;
  padding-top: 0;
  text-align: left;
  top: 100%;
  transition: opacity 0.3s;
  visibility: hidden;
}

.header__language-switcher:hover .lang_list_class,
.header__language-switcher:focus .lang_list_class {
  opacity: 1;
  transition: opacity 0.3s;
  visibility: visible;
}

.header__language-switcher .lang_list_class:before {
  left: 70%;
  top: -25px;
}

.header__language-switcher .lang_list_class:after {
  left: 70%;
  top: -22px;
}

.header__language-switcher .lang_list_class.first-active::after {
  top: -22px;
  transition: 0.3s;
}

.header__language-switcher .lang_list_class li {
  border: none;
  font-size: 18px;
  padding: 0.35rem 0.7rem;
}

.header__language-switcher .lang_list_class li:first-child {
  border-radius: 6px 6px 0 0;
  border-top: none;
}

.header__language-switcher .lang_list_class li:last-child {
  border-bottom: none;
  border-radius: 0 0 6px 6px;
}

.header__language-switcher .lang_list_class li:hover {
  transition: background-color 0.3s;
}

.header__language-switcher--label {
  display: flex;
  position: relative;
}

.header__language-switcher--label-current {
  align-items: center;
  display: flex;
  font-size: 0.75rem;
  margin-bottom: 0.175rem;
  margin-left: 0.7rem;
}

.header__language-switcher--label-current:after {
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 6px solid #494A52;
  content: "";
  display: block;
  height: 0px;
  margin-left: 0.7rem;
  margin-top: 0.175rem;
  width: 0px;
}

@media (max-width: 1079px) {
  .header__language-switcher {
    border-top: 2px solid #CED4DB;
    padding-left: 1.05rem;
    padding-right: 0;
  }

  .header__language-switcher .lang_list_class {
    border: none;
    box-shadow: unset;
    display: block;
    left: 30px;
    opacity: 1;
    padding: 0 1.05rem;
    top: 0;
    visibility: visible;
  }

  .header__language-switcher .lang_list_class li {
    background-color: inherit;
    font-size: 0.917rem;
  }

  .header__language-switcher--label-current {
    display: none;
  }

  .header__language-switcher .globe_class {
    background-image: none;
  }

  .header__language-switcher .lang_list_class li:hover{
    background-color: inherit;
  }

  .header__language-switcher .lang_list_class:before,
  .header__language-switcher .lang_list_class:after {
    content: none;
  }}

/* Navigation */

#nav-toggle {
  display: none;
}

/* ===== Mobile drawer layer (outside header) ===== */
@media (max-width: 1079px) {
  /* Container for the mobile menu that sits above the overlay */
  .mobile-drawer-layer { 
    position: fixed; 
    inset: 0; /* Shorthand for top/right/bottom/left: 0 */
    z-index: 30; 
    display: none; 
    pointer-events: none; /* Allow clicks to pass through by default */
  }
  
  /* When drawer is open, make it visible */
  .mobile-drawer-layer.open { 
    display: block; 
  }

  /* The navigation container inside the drawer */
  .mobile-drawer-layer .header__navigation {
    position: absolute; 
    left: 1rem; 
    right: 1rem; 
    top: 3rem;
    background: #F8FAFC; 
    border-radius: 1rem; 
    padding: 1rem;
    max-height: calc(100vh - 4rem); 
    overflow-y: hidden; /* Prevents double scrollbars - menu__wrapper handles scrolling */
    pointer-events: auto; /* Make navigation interactive */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    opacity: 1;
    display: block;
  }
  
  /* Special display rules for the mobile menu in the drawer */
  .mobile-drawer-layer .menu--mobile {
    display: block !important; /* Force display the mobile menu */
  }
  
  .mobile-drawer-layer .menu--desktop {
    display: none !important; /* Hide the desktop menu in mobile drawer */
  }

  /* Close button in the top right corner */
  .mobile-drawer-layer .header__close--toggle {
    position: fixed; 
    top: 1rem; 
    right: 1rem; 
    z-index: 40; 
    display: none;
    pointer-events: auto; /* Make close button interactive */
    background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBzdHJva2U9IiM0OTRBNTIiIHN0cm9rZS13aWR0aD0iMyIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMyAzTDIxIDIxIi8+PHBhdGggZD0iTTMgMjFMMjEgMyIvPjwvZz48L3N2Zz4=);
    background-repeat: no-repeat;
    background-size: contain;
    height: 25px;
    width: 25px;
    cursor: pointer;
  }
  
  /* Show close button when drawer is open */
  .mobile-drawer-layer.open .header__close--toggle { 
    display: block; 
  }

  /* Hide the original close button in the header when drawer is open */
  body.body-scroll-lock .header .header__close--toggle {
    display: none;
  }
}

/* Overlay should sit just under drawer layer */
@media (max-width: 1079px) {
  .body-scroll-lock::after { 
    z-index: 20; 
    pointer-events: none; /* Ensure overlay doesn't block interactions */
  }
}

/* Mobile navigation container */
.header__navigation {
  display: block;
}

/* Special rules for mobile drawer */
@media (max-width: 1079px) {
  /* Hide desktop navigation in mobile view */
  .header__desktop-nav {
    display: none;
  }
  
  /* Hide desktop menu in mobile drawer */
  .mobile-drawer-layer .menu--desktop {
    display: none !important;
  }
  
  /* Show mobile menu in drawer */
  .mobile-drawer-layer .menu--mobile {
    display: block !important;
  }
}

/* Special rules to ensure menu displays correctly based on screen size */
@media (min-width: 1080px) {
  
  .menu--mobile {
    display: none !important;
  }
  

  .menu--desktop {
    display: flex !important;
  }
}

@media (max-width: 1079px) {
  
  .menu--desktop {
    display: none !important;
  }
  
  
  .menu--mobile {
    display: block !important;
  }
  
  /* Special handling for navigation in the main container vs drawer container */
  #main-navigation-container .menu,
  #mobile-navigation-container .menu {
    width: 100%;
  }
  
  
  .header__desktop-nav {
    display: none;
  }
}
/* Footer DND sections */

/* footer.footer {
  padding: 2rem 0;
} */

/* footer.footer .footer-cap {} */

footer.footer .hs-menu-wrapper ul {
  gap: 0.75rem;
  justify-content: end;
}

footer.footer li.hs-menu-item a:link {
  font-weight: 500;
  text-decoration: none;
}

footer.footer .menu--desktop ul {
  display: flex;
  width: 100%;
  flex-flow: wrap;
}

footer.footer .menu--desktop ul li.menu__item.menu__item--depth-1 {
  padding: 0;
  width: 25%;
}

footer.footer .menu--desktop ul li.menu__item.menu__item--depth-1 a.menu__link {
  color: #0f161e;
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
}
/* Menu and simple menu */

.hs-menu-wrapper ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding-left: 0;
}

/* Horizontal menu */

.hs-menu-wrapper.hs-menu-flow-horizontal .hs-menu-children-wrapper {
  flex-direction: column;
}

@media (max-width: 767px) {
  .hs-menu-wrapper.hs-menu-flow-horizontal ul {
    flex-direction: column;
  }
}

/* Vertical menu */

.hs-menu-wrapper.hs-menu-flow-vertical ul {
  flex-direction: column;
}

/* Flyouts */

.hs-menu-wrapper.hs-menu-flow-vertical.flyouts ul {
  display: inline-flex;
}

@media (max-width: 767px) {
  .hs-menu-wrapper.hs-menu-flow-vertical ul {
    display: flex;
  }
}

.hs-menu-wrapper.flyouts .hs-item-has-children {
  position: relative;
}

.hs-menu-wrapper.flyouts .hs-menu-children-wrapper {
  left: -9999px;
  opacity: 0;
  position: absolute;
}

.hs-menu-wrapper.flyouts .hs-menu-children-wrapper a {
  display: block;
  white-space: nowrap;
}

.hs-menu-wrapper.hs-menu-flow-horizontal.flyouts .hs-item-has-children:hover > .hs-menu-children-wrapper {
  left: 0;
  opacity: 1;
  top: 100%;
}

.hs-menu-wrapper.hs-menu-flow-vertical.flyouts .hs-item-has-children:hover > .hs-menu-children-wrapper {
  left: 100%;
  opacity: 1;
  top: 0;
}

@media (max-width: 767px) {
  .hs-menu-wrapper.flyouts .hs-menu-children-wrapper,
  .hs-menu-wrapper.hs-menu-flow-horizontal.flyouts .hs-item-has-children:hover > .hs-menu-children-wrapper,
  .hs-menu-wrapper.hs-menu-flow-vertical.flyouts .hs-item-has-children:hover > .hs-menu-children-wrapper {
    left: 0;
    opacity: 1;
    position: relative;
    top: auto;
  }
}

/* CTA, logo, and rich text images */

.hs_cos_wrapper_type_cta img,
.hs_cos_wrapper_type_logo img,
.hs_cos_wrapper_type_rich_text img {
  height: auto;
  max-width: 100%;
}

/* Theme Modules */

.custom-bg-holder {
  display: none;
}

.hs-inline-edit .custom-bg-holder {
  display: block;
  background: rebeccapurple;
  border: 8px dashed #fff;
  color: #fff;
  padding: 20px 20px;
  margin: 40px auto;
  font-size: 16px;
  max-width: 800px
}

.hs-inline-edit .custom-bg-holder span {
  font-size: 18px;
  display: block;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
}

.hs-inline-edit .custom-bg-holder strong {
  font-size: 14px;
  font-family: Arial;
  display: block;
  margin-top: 20px;
  background: red;
  border-radius: 5px;
  padding: 8px 10px;
}

/* Utilities
Helper classes with ability to override anything that comes before it
*/

/* For content that needs to be visually hidden but stay visible for screenreaders */

.show-for-sr {
  border: 0 !important;
  clip: rect(0, 0, 0, 0) !important;
  height: 1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  white-space: nowrap !important;
  width: 1px !important;
}

@media (max-width: 767px) {
  .show-for-sr--mobile {
    border: 0 !important;
    clip: rect(0, 0, 0, 0) !important;
    height: 1px !important;
    overflow: hidden !important;
    padding: 0 !important;
    position: absolute !important;
    white-space: nowrap !important;
    width: 1px !important;
  }
}
/* 
 * ====================================
 * ANIMATIONS
 * ====================================
 *
 * QUICK USAGE:
 * 1. Add animation class to element: <span class="animate-fade-slide">Content</span>
 * 2. Animations trigger automatically on page load (no JavaScript needed)
 *
 * AVAILABLE ANIMATION:
 * - animate-fade-slide: Fades in and slides from right (the original animation)
 *
 * SPECIAL CLASSES:
 * - animate-on-scroll: Add this class to trigger the animation on scroll
 *   Example: <div class="animate-fade-slide animate-on-scroll">Content</div>
 *
 * For existing implementations, the .title-tag-animate class is still supported.
 *
 * --------------------------------------------
 * IMPLEMENTATION EXAMPLES:
 * --------------------------------------------
 *
 * 1. BASIC PAGE LOAD ANIMATION:
 *    <div class="animate-fade-slide">Content</div>
 *
 * 2. SCROLL-TRIGGERED ANIMATION:
 *    <div class="animate-fade-slide animate-on-scroll">Content</div>
 */

/* Base animation style */
.animate-fade-slide {
  display: inline-block;
  opacity: 0;
  transform: translateX(1.25rem);
  transition-property: opacity, transform;
  transition-duration: var(--animation-duration, 0.6s);
  transition-timing-function: ease-out;
  transition-delay: var(--animation-delay, 0.2s);
}

/* Animated state */
.animate-fade-slide.animate {
  opacity: 1;
  transform: translate(0);
}

/* Backward compatibility */
.title-tag-animate {
  display: inline-block;
  opacity: 0;
  transform: translateX(1rem);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  transition-delay: 0.2s;
}

.title-tag-animate.animate {
  opacity: 1;
  transform: translateX(0);
}