/*
  child.css — RCSA Theme
  Loaded after Growth parent styles. All brand overrides live here.

  Structure:
    1.  CSS custom properties (mapped from fields.json via HubL)
    2.  Typography
    3.  Global layout & containers
    4.  Navigation
    5.  Buttons
    6.  Forms
    7.  Cards (general)
    8.  Event cards & badges
    9.  Hero banner
   10.  Pillar navigation (three-column learning model)
   11.  Section backgrounds
   12.  Footer
   13.  Utilities
   14.  Responsive overrides

  HubL syntax notes:
    - Colour fields:  
    - Opacity:        0.0
    - RGBA:           rgba(#null, 0.0)
    - Font family:    , 
    - Number + unit:  px
    - Font CSS:         (outputs full font shorthand)

  Never use !important — use specificity instead.
  All measurements in rem for typography, px for borders/shadows, % for layout.
*/

/* Cache bust: brand kit accent updated to #1a3a5c — recompile forced

/* ============================================================
   1. CSS CUSTOM PROPERTIES
   Mapping all fields.json tokens → CSS variables so modules
   and templates can reference brand values without HubL.
   ============================================================ */

:root {

  /* --- Colours --- */
  --rcsa-primary:         #009fda;
  --rcsa-primary-dark:    #0077B6;
  --rcsa-primary-light:   #CCF0FF;
  --rcsa-accent:          #1a3a5c;
  --rcsa-text-dark:       #2d2d2d;
  --rcsa-text-mid:        #616365;
  --rcsa-bg-light:        #F0F1F2;
  --rcsa-white:           #ffffff;

  /* --- Secondary colour palette (brand guidelines section 2.7) --- */
  /* Secondary blues */
  --rcsa-secondary-cyan-light: #5BC8E8;  /* PMS 2985C */
  --rcsa-secondary-blue-light: #9DABE2;  /* PMS 2716C */
  --rcsa-secondary-blue-mid:   #5A85D7;  /* PMS 2718C */
  --rcsa-secondary-blue-dark:  #4C5CC5;  /* PMS 2726C */
  /* Cool greys */
  --rcsa-grey-dark:   #4D4F53;  /* Cool Grey 11C */
  --rcsa-grey-mid:    #616365;  /* Cool Grey 10C */
  --rcsa-grey-light:  #747678;  /* Cool Grey 9C */
  --rcsa-grey-xlight: #9A9B9C;  /* Cool Grey 7C */

  /* --- Typography --- */
  --rcsa-font-heading:    "Barlow", sans-serif;
  --rcsa-font-body:       "Open Sans", sans-serif;

  /* --- Spacing --- */
  --rcsa-max-width:       1200px;
  --rcsa-section-padding: 72px;
  --rcsa-card-radius:     8px;
  --rcsa-gutter:          24px;

  /* --- Buttons (primary) --- */
  --rcsa-btn-bg:          #009fda;
  --rcsa-btn-bg-hover:    #0077B6;
  --rcsa-btn-text:        #ffffff;
  --rcsa-btn-radius:      4px;

  /* --- Buttons (secondary / ghost) --- */
  --rcsa-btn-ghost-text:  #009FDA;
  --rcsa-btn-ghost-hover: #CCF0FF;

  /* --- Navigation --- */
  --rcsa-nav-bg:          #ffffff;
  --rcsa-nav-bg-sticky:   rgba(26, 58, 92, 0.97);
  --rcsa-nav-link:        #1a3a5c;
  --rcsa-nav-active:      #009fda;
  --rcsa-nav-dropdown-bg: #ffffff;

  /* --- Footer --- */
  --rcsa-footer-bg:       #1a3a5c;
  --rcsa-footer-text:     #CCF0FF;
  --rcsa-footer-link:     #CCF0FF;
  --rcsa-footer-link-hover: #ffffff;

  /* --- Forms --- */
  --rcsa-form-header-bg:  #009fda;
  --rcsa-form-label:      #2d2d2d;
  --rcsa-form-border:     #cccccc;
  --rcsa-form-focus:      #009fda;
  --rcsa-form-submit-bg:  #009fda;
  --rcsa-form-submit-hover: #0077B6;
  --rcsa-form-error:      #d0021b;

  /* --- Event card badges --- */
  --rcsa-badge-conference: #1a3a5c;
  --rcsa-badge-webinar:    #009fda;
  --rcsa-badge-certificate: #5A85D7;
  --rcsa-badge-awards:     #4C5CC5;
}


/* ============================================================
   2. TYPOGRAPHY
   ============================================================ */

body {
  font-family: var(--rcsa-font-body);
  color: var(--rcsa-text-dark);
  font-size: 1rem;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--rcsa-font-heading);
  color: var(--rcsa-accent);
  line-height: 1.2;
  margin-top: 0;
}

h1 {
  color: #1a3a5c;font-size: 48px;font-weight: 700; font-family: Barlow, sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
}

h2 {
  color: #1a3a5c;font-size: 36px;font-weight: 700; font-family: Barlow, sans-serif;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
}

h3 {
  color: #1a3a5c;font-size: 24px;font-weight: 600; font-family: Barlow, sans-serif;
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
}

p {
  color: #2d2d2d;font-size: 16px;font-weight: 400; font-family: Open Sans, sans-serif;
  margin-bottom: 1rem;
}

/* Scope link colour to body content only.
   'a' alone hits every link on the page including nav and footer.
   'main a' restricts to the <main id="main-content"> wrapper in base.html,
   leaving Growth's nav and our footer free to control their own link colours. */
main a {
  color: var(--rcsa-primary);
  text-decoration: underline;
  transition: color 0.2s ease;
}

main a:hover,
main a:focus {
  color: var(--rcsa-primary-dark);
}

main a:focus-visible {
  outline: 3px solid var(--rcsa-primary);
  outline-offset: 2px;
  border-radius: 2px;
}

strong, b {
  font-weight: 600;
}

small,
.text-small {
  font-size: 0.875rem;
  color: var(--rcsa-text-mid);
}

.text-muted {
  color: var(--rcsa-text-mid);
}


/* ============================================================
   3. GLOBAL LAYOUT & CONTAINERS
   ============================================================ */

.rcsa-container {
  max-width: var(--rcsa-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.rcsa-section {
  padding-top: var(--rcsa-section-padding);
  padding-bottom: var(--rcsa-section-padding);
}

.rcsa-section--light {
  background-color: var(--rcsa-bg-light);
}

.rcsa-section--primary {
  background-color: var(--rcsa-primary);
  color: var(--rcsa-white);
}

.rcsa-section--primary h1,
.rcsa-section--primary h2,
.rcsa-section--primary h3 {
  color: var(--rcsa-white);
}

.rcsa-section--accent {
  background-color: var(--rcsa-accent);
  color: var(--rcsa-white);
}

.rcsa-section--accent h1,
.rcsa-section--accent h2,
.rcsa-section--accent h3 {
  color: var(--rcsa-white);
}

.rcsa-grid {
  display: grid;
  gap: var(--rcsa-gutter);
}

.rcsa-grid--2 { grid-template-columns: repeat(2, 1fr); }
.rcsa-grid--3 { grid-template-columns: repeat(3, 1fr); }
.rcsa-grid--4 { grid-template-columns: repeat(4, 1fr); }

.rcsa-flex {
  display: flex;
  gap: var(--rcsa-gutter);
  align-items: center;
}

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

hr.rcsa-divider {
  border: none;
  border-top: 3px solid var(--rcsa-primary);
  width: 60px;
  margin: 1.5rem 0;
}

hr.rcsa-divider--center {
  margin-left: auto;
  margin-right: auto;
}


/* ============================================================
   4. NAVIGATION
   ============================================================ */

/* Skip link — visually hidden until focused by keyboard users */
.header__skip {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.header__skip:focus {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  padding: 8px 16px;
  background: var(--rcsa-primary);
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  z-index: 9999;
}

/* Header container — Growth renders the header global partial as a bare
   dnd_area which produces a .dnd-section div directly inside .body-wrapper.
   The header area is the first dnd-section in the body-wrapper. */
.body-wrapper > .dnd_area-header-row {
  background-color: var(--rcsa-nav-bg);
  border-bottom: 3px solid var(--rcsa-primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.body-wrapper > .dnd_area-header-row.is-scrolled {
  background-color: var(--rcsa-nav-bg-sticky);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

/* Logo sizing — constrain the @hubspot/logo module image.
   Class confirmed via DevTools: .hs-image-widget on the img element.
   theme.header.logo_height default is 50px, matches original site. */
.hs_cos_wrapper_type_logo img,
.hs-image-widget {
  height: 80px !important;
  width: auto !important;
  max-height: 80px !important;
}

/* Nav links — selectors confirmed from DevTools HTML inspection.
   Structure: .dnd-column.span9 > .dnd-row > .dnd-module >
              .hs_cos_wrapper_type_menu > .hs-menu-wrapper > ul > li > a
   The row-fluid containing logo (span3) and nav (span9) is the alignment target. */

/* Vertical centring — make the DnD row containing logo + nav a flex row
   so both columns share the same height and can centre their content */
.dnd-section .row-fluid {
  display: flex;
  align-items: center;
}

.dnd-section .dnd-column {
  display: flex;
  align-items: center;
}

.dnd-section .dnd-row {
  width: 100%;
}

/* Nav link styles */
.hs-menu-wrapper a {
  font-family: var(--rcsa-font-body);
  color: #1E1E1E;
  font-size: 1.0625rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.625rem 1.125rem;
  border-radius: 4px;
  transition: color 0.2s ease, background-color 0.2s ease;
  display: inline-block;
}

/* Dropdown items — slightly smaller, regular weight, matching original */
.hs-menu-wrapper .hs-menu-depth-2 a {
  font-size: 1rem;
  font-weight: 400;
  padding: 0.5rem 1rem;
}

.hs-menu-wrapper a:hover,
.hs-menu-wrapper a:focus {
  color: var(--rcsa-primary);
  background-color: var(--rcsa-primary-light);
  text-decoration: none;
}

.hs-menu-wrapper .hs-menu-item.active-branch > a,
.hs-menu-wrapper .hs-menu-item.active > a {
  color: var(--rcsa-primary);
  border-bottom: 2px solid var(--rcsa-primary);
}

/* Nav list layout — horizontal flex, vertically centred */
.hs-menu-wrapper ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Constrain header content to max-width container — matches original site layout.
   Use high specificity to beat Growth's .header-row-0-force-full-width-section override.
   Also constrain all dnd-section content rows to the same max-width for consistency. */
.dnd_area-header-row .row-fluid-wrapper .row-fluid,
.dnd_area-header-row > .row-fluid-wrapper > .row-fluid {
  max-width: var(--rcsa-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

/* Constrain all page content sections to same max-width for visual alignment */
.dnd-section > .row-fluid {
  max-width: var(--rcsa-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  box-sizing: border-box;
}

.hs-menu-item {
  display: flex;
  align-items: center;
}

/* Dropdown */
.hs-menu-wrapper .hs-menu-children-wrapper {
  background-color: var(--rcsa-nav-dropdown-bg);
  border-top: 3px solid var(--rcsa-primary);
  border-radius: 0 0 var(--rcsa-card-radius) var(--rcsa-card-radius);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  position: absolute;
  z-index: 1001;
  min-width: 180px;
  padding: 0.5rem 0;
}

.hs-menu-wrapper .hs-menu-children-wrapper a {
  display: block;
  padding: 0.5rem 1rem;
  white-space: nowrap;
}

/* Mobile hamburger */
.hs-nav__toggle-icon span,
.header__hamburger span {
  background-color: var(--rcsa-accent);
}


/* ============================================================
   5. BUTTONS
   ============================================================ */

.rcsa-btn,
.hs-button,
input[type="submit"],
button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--rcsa-font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--rcsa-btn-text);
  background-color: var(--rcsa-btn-bg);
  border: 2px solid var(--rcsa-btn-bg);
  border-radius: var(--rcsa-btn-radius);
  padding: 0.75rem 1.75rem;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
  white-space: nowrap;
}

.rcsa-btn:hover,
.rcsa-btn:focus,
.hs-button:hover,
.hs-button:focus,
input[type="submit"]:hover,
input[type="submit"]:focus,
button[type="submit"]:hover,
button[type="submit"]:focus {
  background-color: var(--rcsa-btn-bg-hover);
  border-color: var(--rcsa-btn-bg-hover);
  color: var(--rcsa-white);
  text-decoration: none;
  transform: translateY(-1px);
}

.rcsa-btn:active,
.hs-button:active {
  transform: translateY(0);
}

.rcsa-btn:focus-visible,
.hs-button:focus-visible {
  outline: 3px solid var(--rcsa-primary);
  outline-offset: 3px;
}

/* Ghost / secondary button */
.rcsa-btn--ghost,
.hs-button.hs-button--secondary {
  background-color: transparent;
  color: var(--rcsa-btn-ghost-text);
  border: 2px solid var(--rcsa-primary);
}

.rcsa-btn--ghost:hover,
.rcsa-btn--ghost:focus,
.hs-button.hs-button--secondary:hover,
.hs-button.hs-button--secondary:focus {
  background-color: var(--rcsa-btn-ghost-hover);
  color: var(--rcsa-primary-dark);
  border-color: var(--rcsa-primary-dark);
}

/* Small variant */
.rcsa-btn--sm {
  font-size: 0.875rem;
  padding: 0.5rem 1.25rem;
}

/* Full-width variant (forms, mobile) */
.rcsa-btn--full {
  width: 100%;
  justify-content: center;
}


/* ============================================================
   6. FORMS
   ============================================================ */

/* HubSpot native form wrapper */
.hs-form-private,
.hbspt-form form {
  font-family: var(--rcsa-font-body);
}

.hs-form-private fieldset,
.hbspt-form fieldset {
  max-width: 100%;
  border: none;
  padding: 0;
  margin: 0 0 1rem;
}

/* Labels */
.hs-form-private label,
.hbspt-form label,
.hs-form-private .hs-field-desc {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--rcsa-form-label);
  margin-bottom: 0.375rem;
}

/* Inputs, selects, textareas */
.hs-form-private input[type="text"],
.hs-form-private input[type="email"],
.hs-form-private input[type="tel"],
.hs-form-private input[type="number"],
.hs-form-private input[type="date"],
.hs-form-private select,
.hs-form-private textarea,
.hbspt-form input[type="text"],
.hbspt-form input[type="email"],
.hbspt-form input[type="tel"],
.hbspt-form select,
.hbspt-form textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-family: var(--rcsa-font-body);
  font-size: 1rem;
  color: var(--rcsa-text-dark);
  background-color: var(--rcsa-white);
  border: 1.5px solid var(--rcsa-form-border);
  border-radius: var(--rcsa-card-radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
}

.hs-form-private input:focus,
.hs-form-private select:focus,
.hs-form-private textarea:focus,
.hbspt-form input:focus,
.hbspt-form select:focus,
.hbspt-form textarea:focus {
  border-color: var(--rcsa-form-focus);
  box-shadow: 0 0 0 3px rgba(0, 159, 218, 0.2);
  outline: none;
}

/* Error states */
.hs-form-private .hs-error-msgs,
.hs-form-private .hs-main-font-element {
  color: var(--rcsa-form-error);
  font-size: 0.8125rem;
  margin-top: 0.25rem;
}

.hs-form-private .hs-error-msgs label {
  color: var(--rcsa-form-error);
  font-weight: 400;
}

.hs-form-private input.error,
.hs-form-private select.error,
.hs-form-private textarea.error {
  border-color: var(--rcsa-form-error);
}

/* Form header (title bar HubSpot adds to embedded forms) */
.hs-form-private .hs_cos_wrapper_type_form .form-title,
.hs-form-header {
  background-color: var(--rcsa-form-header-bg);
  color: var(--rcsa-white);
  padding: 1rem 1.25rem;
  font-family: var(--rcsa-font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: var(--rcsa-card-radius) var(--rcsa-card-radius) 0 0;
}

/* Submit button inherits global form settings */
.hs-form-private input[type="submit"],
.hs-form-private .hs-button,
.hbspt-form input[type="submit"] {
  background-color: var(--rcsa-form-submit-bg);
  border-color: var(--rcsa-form-submit-bg);
  color: var(--rcsa-white);
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: var(--rcsa-btn-radius);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.hs-form-private input[type="submit"]:hover,
.hs-form-private .hs-button:hover,
.hbspt-form input[type="submit"]:hover {
  background-color: var(--rcsa-form-submit-hover);
  border-color: var(--rcsa-form-submit-hover);
}

/* GDPR consent block */
.hs-form-private .legal-consent-container {
  font-size: 0.8125rem;
  color: var(--rcsa-text-mid);
}


/* ============================================================
   7. CARDS (GENERAL)
   ============================================================ */

.rcsa-card {
  background-color: var(--rcsa-white);
  border: 1.5px solid #CCF0FF;
  border-radius: var(--rcsa-card-radius);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.rcsa-card:hover {
  border-color: #009fda;
  box-shadow: 0 4px 20px rgba(0, 159, 218, 0.15);
  transform: translateY(-2px);
}

.rcsa-card__body {
  padding: 1.5rem;
}

.rcsa-card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.rcsa-card__title {
  font-family: var(--rcsa-font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--rcsa-accent);
  margin-bottom: 0.5rem;
}

.rcsa-card__meta {
  font-size: 0.8125rem;
  color: var(--rcsa-text-mid);
  margin-bottom: 0.75rem;
}

.rcsa-card__footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--rcsa-primary-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}


/* ============================================================
   8. EVENT CARDS & BADGES
   ============================================================ */

.rcsa-event-card {
  display: flex;
  flex-direction: column;
}

.rcsa-event-card .rcsa-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.rcsa-event-card .rcsa-card__footer {
  margin-top: auto;
}

/* Date block — left accent */
.rcsa-event-card__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--rcsa-primary-light);
  border-left: 4px solid var(--rcsa-primary);
  padding: 0.75rem 1rem;
  min-width: 56px;
  border-radius: 0 var(--rcsa-card-radius) var(--rcsa-card-radius) 0;
}

.rcsa-event-card__date-day {
  font-family: var(--rcsa-font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--rcsa-accent);
  line-height: 1;
}

.rcsa-event-card__date-month {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--rcsa-primary-dark);
}

/* Event type badges */
.rcsa-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.625rem;
  border-radius: 3px;
  color: var(--rcsa-white);
  line-height: 1.4;
}

.rcsa-badge--conference  { background-color: var(--rcsa-badge-conference); }
.rcsa-badge--webinar     { background-color: var(--rcsa-badge-webinar); }
.rcsa-badge--certificate { background-color: var(--rcsa-badge-certificate); }
.rcsa-badge--awards      { background-color: var(--rcsa-badge-awards); color: var(--rcsa-accent); }
.rcsa-badge--workshop    { background-color: var(--rcsa-primary-dark); }
.rcsa-badge--online      { background-color: var(--rcsa-text-mid); }

/* Availability indicators */
.rcsa-badge--sold-out {
  background-color: #e74c3c;
}

.rcsa-badge--waitlist {
  background-color: var(--rcsa-badge-awards);
  color: var(--rcsa-accent);
}

.rcsa-badge--member-only {
  background-color: var(--rcsa-accent);
}

/* Price display */
.rcsa-event-price {
  font-family: var(--rcsa-font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--rcsa-accent);
}

.rcsa-event-price__label {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--rcsa-text-mid);
  display: block;
}

.rcsa-event-price--free {
  color: var(--rcsa-badge-certificate);
}


/* ============================================================
   9. HERO BANNER
   ============================================================ */

.rcsa-hero {
  position: relative;
  background-color: var(--rcsa-accent);
  color: var(--rcsa-white);
  overflow: hidden;
}

.rcsa-hero__bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  opacity: 0.25;
  width: 100%;
  height: 100%;
}

.rcsa-hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--rcsa-max-width);
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

.rcsa-hero__eyebrow {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--rcsa-primary-light);
  margin-bottom: 1rem;
}

.rcsa-hero__title {
  font-family: var(--rcsa-font-heading);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--rcsa-white);
  line-height: 1.1;
  margin-bottom: 1.25rem;
  max-width: 720px;
}

.rcsa-hero__subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 580px;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.rcsa-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* Event hero variant — narrower, with event metadata strip */
.rcsa-hero--event .rcsa-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.rcsa-hero--event .rcsa-hero__meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.9);
}

.rcsa-hero--event .rcsa-hero__meta-icon {
  color: var(--rcsa-primary-light);
  flex-shrink: 0;
}

/* ---- Forward Momentum diagonal motif ----
   Echoes the RCSA brand slash/oblique graphic element from brand guidelines
   section 2.6 and 2.8. Applied as stacked diagonal bands using clip-path
   on ::before (overlay) and ::after (bottom accent slash).

   ::before — semi-transparent diagonal band overlay across the hero,
              angled like the Forward Momentum symbol
   ::after  — solid accent slash at the bottom-right of the hero,
              a direct nod to the brand mark's diagonal slash
*/

.rcsa-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 0%,
    transparent 55%,
    rgba(0, 159, 218, 0.18) 55%,
    rgba(0, 159, 218, 0.18) 68%,
    rgba(0, 159, 218, 0.08) 68%,
    rgba(0, 159, 218, 0.08) 78%,
    transparent 78%
  );
  pointer-events: none;
  z-index: 0;
}

.rcsa-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 340px;
  height: 8px;
  background: var(--rcsa-primary);
  clip-path: polygon(18px 0%, 100% 0%, 100% 100%, 0% 100%);
  z-index: 2;
}

/* Ensure hero content sits above the diagonal overlays */
.rcsa-hero__content {
  position: relative;
  z-index: 1;
}


/* ============================================================
   10. PILLAR NAVIGATION (three-column learning model)
   Plan / Develop / Extend
   ============================================================ */

.rcsa-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--rcsa-gutter);
}

.rcsa-pillar {
  background-color: var(--rcsa-white);
  border: 1.5px solid var(--rcsa-primary-light);
  border-top: 5px solid var(--rcsa-primary);
  border-radius: 0 0 var(--rcsa-card-radius) var(--rcsa-card-radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.rcsa-pillar:hover {
  box-shadow: 0 6px 24px rgba(0, 159, 218, 0.18);
  transform: translateY(-3px);
}

/* Colour-coded pillar top borders — diagonal slash accent echoing brand motif */
.rcsa-pillar--plan    { border-top-color: var(--rcsa-primary); }
.rcsa-pillar--develop { border-top-color: var(--rcsa-accent); }
.rcsa-pillar--extend  { border-top-color: var(--rcsa-primary-dark); }

/* Diagonal slash accent on pillar top — Forward Momentum motif */
.rcsa-pillar::before {
  content: "";
  display: block;
  position: absolute;
  top: -5px;
  right: 1.5rem;
  width: 32px;
  height: 5px;
  background: rgba(255, 255, 255, 0.55);
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}

.rcsa-pillar {
  position: relative;
}

.rcsa-pillar__icon {
  width: 56px;
  height: 56px;
  background-color: var(--rcsa-primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--rcsa-primary-dark);
}

.rcsa-pillar__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--rcsa-primary);
  margin-bottom: 0.5rem;
}

.rcsa-pillar__title {
  font-family: var(--rcsa-font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--rcsa-accent);
  margin-bottom: 0.75rem;
}

.rcsa-pillar__desc {
  font-size: 0.9375rem;
  color: var(--rcsa-text-mid);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}


/* ============================================================
   11. SECTION BACKGROUNDS (alternating content bands)
   ============================================================ */

.rcsa-band {
  padding: var(--rcsa-section-padding) 0;
}

.rcsa-band + .rcsa-band {
  border-top: 1px solid var(--rcsa-primary-light);
}

.rcsa-band--white   { background-color: var(--rcsa-white); }
.rcsa-band--light   { background-color: var(--rcsa-bg-light); }
.rcsa-band--primary { background-color: var(--rcsa-primary); }
.rcsa-band--accent  { background-color: var(--rcsa-accent); }

.rcsa-band--primary,
.rcsa-band--accent {
  color: var(--rcsa-white);
}

.rcsa-band--primary h1,
.rcsa-band--primary h2,
.rcsa-band--primary h3,
.rcsa-band--accent h1,
.rcsa-band--accent h2,
.rcsa-band--accent h3 {
  color: var(--rcsa-white);
}

/* CTA band — tight padding, centred, used above footer */
.rcsa-band--cta {
  background-color: var(--rcsa-primary);
  padding: 3rem 0;
  text-align: center;
}

.rcsa-band--cta h2 {
  color: var(--rcsa-white);
  margin-bottom: 0.75rem;
}

.rcsa-band--cta p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 560px;
  margin: 0 auto 1.5rem;
}


/* ============================================================
   12. FOOTER
   ============================================================ */

.footer,
.hs-footer-wrapper {
  background-color: var(--rcsa-footer-bg);
  color: var(--rcsa-footer-text);
  padding-top: 60px;
  padding-bottom: 40px;
  border-top: 4px solid rgba(0, 159, 218, 0.6);
}

.footer a,
.hs-footer-wrapper a {
  color: var(--rcsa-footer-link);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer a:hover,
.footer a:focus,
.hs-footer-wrapper a:hover,
.hs-footer-wrapper a:focus {
  color: var(--rcsa-footer-link-hover);
  text-decoration: underline;
}

.footer h4,
.footer h5,
.hs-footer-wrapper h4 {
  color: var(--rcsa-white);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.footer__logo img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 1rem;
}

.footer__copy {
  font-size: 0.8125rem;
  color: rgba(240, 241, 242, 0.65);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 159, 218, 0.25);
}


/* ============================================================
   13. UTILITIES
   ============================================================ */

/* Spacing helpers */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 0.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-2 { margin-bottom: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-4 { margin-top: 2.5rem; }
.mb-4 { margin-bottom: 2.5rem; }

/* Text alignment */
.text-left   { text-align: left; }
.text-center { text-align: center; }
.text-right  { text-align: right; }

/* Visibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Aspect ratios */
.rcsa-ratio-16-9 { aspect-ratio: 16 / 9; overflow: hidden; }
.rcsa-ratio-4-3  { aspect-ratio: 4 / 3;  overflow: hidden; }
.rcsa-ratio-1-1  { aspect-ratio: 1 / 1;  overflow: hidden; }

.rcsa-ratio-16-9 img,
.rcsa-ratio-4-3  img,
.rcsa-ratio-1-1  img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Loading / skeleton state (used by event filter module) */
.rcsa-skeleton {
  background: linear-gradient(90deg, var(--rcsa-bg-light) 25%, var(--rcsa-primary-light) 50%, var(--rcsa-bg-light) 75%);
  background-size: 200% 100%;
  animation: rcsa-shimmer 1.4s ease-in-out infinite;
  border-radius: var(--rcsa-card-radius);
}

@keyframes rcsa-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Focus ring override for HubSpot default elements that use outline: none */
*:focus-visible {
  outline: 3px solid var(--rcsa-primary);
  outline-offset: 2px;
}


/* ============================================================
   14. EVENT LANDING PAGE LAYOUT
   Two-column sticky sidebar layout used by event-landing.html.
   Main content (8/12) left, registration sidebar (4/12) right.
   ============================================================ */

.rcsa-event-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 3rem;
  align-items: start;
  padding-top: 0;
  padding-bottom: 4rem;
}

.rcsa-event-layout__main {
  min-width: 0;
}

.rcsa-event-layout__sidebar {
  position: sticky;
  top: 100px;
}

/* Registration card wrapper */
.rcsa-registration-card,
.rcsa-event-layout__sidebar .dnd_area-module-wrapper {
  background-color: var(--rcsa-white);
  border: 1.5px solid var(--rcsa-primary-light);
  border-top: 4px solid var(--rcsa-primary);
  border-radius: var(--rcsa-card-radius);
  padding: 1.75rem;
  box-shadow: 0 4px 20px rgba(26, 58, 92, 0.08);
}

.rcsa-registration-card__pricing {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rcsa-primary-light);
}

/* Skip-to-content / accessibility link */
.rcsa-skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--rcsa-accent);
  color: var(--rcsa-white);
  padding: 0.75rem 1.5rem;
  z-index: 9999;
  font-weight: 600;
  text-decoration: none;
}

.rcsa-skip-link:focus {
  top: 0;
}

/* Eyebrow label (used above headings) — uses brand primary cyan */
.rcsa-eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--rcsa-primary);
  margin-bottom: 0.5rem;
}

/* ============================================================
   15. RESPONSIVE OVERRIDES
   Mobile-first: styles above are base (mobile).
   These overrides apply from tablet and desktop upward.
   ============================================================ */

/* — Tablet: 768px and up — */
@media (min-width: 768px) {

  .rcsa-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .rcsa-hero__content {
    padding: 6rem 2rem;
  }

  .rcsa-hero__title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
  }

  .rcsa-pillars {
    grid-template-columns: repeat(3, 1fr);
  }

  .rcsa-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .rcsa-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .rcsa-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

/* — Desktop: 1024px and up — */
@media (min-width: 1024px) {

  .rcsa-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .rcsa-grid--4 { grid-template-columns: repeat(4, 1fr); }

  .rcsa-hero__content {
    padding: 7rem 2rem;
  }

}

/* — Event layout: collapse sidebar below main on tablet — */
@media (max-width: 1023px) {
  .rcsa-event-layout {
    grid-template-columns: 1fr;
  }

  .rcsa-event-layout__sidebar {
    position: static;
    order: -1;
  }
}

/* — Below tablet: stack grids and pillars — */
@media (max-width: 767px) {

  .rcsa-pillars {
    grid-template-columns: 1fr;
  }

  .rcsa-grid--2,
  .rcsa-grid--3,
  .rcsa-grid--4 {
    grid-template-columns: 1fr;
  }

  .rcsa-hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .rcsa-hero--event .rcsa-hero__meta {
    flex-direction: column;
    gap: 0.875rem;
  }

  .rcsa-event-card__date {
    flex-direction: row;
    gap: 0.5rem;
    align-items: baseline;
    border-left: none;
    border-bottom: 3px solid var(--rcsa-primary);
    border-radius: var(--rcsa-card-radius) var(--rcsa-card-radius) 0 0;
    padding: 0.625rem 1rem;
  }

  .rcsa-card__footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .rcsa-band--cta .rcsa-hero__actions {
    justify-content: center;
  }
}

/* — Print styles — */
@media print {
  .rcsa-hero,
  nav,
  .footer,
  .rcsa-btn {
    display: none;
  }
  body {
    font-size: 12pt;
    color: #000;
  }
  a {
    color: #000;
    text-decoration: none;
  }
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 10pt;
  }
}

/* RCSA Footer module overrides */
.rcsa-footer__heading {
  font-size: 25px;
  font-family: "Barlow", sans-serif;
  font-weight: 400;
}

/* Footer padding to match original */
.rcsa-footer__body {
  padding: 0px 0; !important
}

/* All columns stretch full height, heading top, content bottom */
.rcsa-footer__col {
  display: flex;
  flex-direction: column;
}

.rcsa-footer__col-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* Logo column: logo top-left, legal text bottom-right */
.rcsa-footer__col--logo {
  justify-content: space-between;
  align-items: flex-start;
}

.rcsa-footer__legal-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  width: 100%;
}

/* Allow logo size to be controlled by editor width/height fields */
.rcsa-footer__logo-img {
  max-width: none;
  height: auto;
}

/* Menu item spacing — zero out inherited margin, use line-height for breathing room */
.rcsa-footer__nav-list li {
  margin: 0 !important;
  padding: 0 !important;
  padding-bottom: var(--footer-item-spacing, 6px) !important;
  line-height: 1.0;
}

.rcsa-footer__nav-list li p,
.rcsa-footer__nav-list li span {
  margin: 0 !important;
  padding: 0 !important;
}

/* Font sizes — split selectors for reliability */
.rcsa-footer__nav-list a {
  padding: 0 !important;
  font-size: var(--footer-body-size, 14px) !important;
  line-height: 1.6 !important;
}
.rcsa-footer__contact-line {
  font-size: var(--footer-body-size, 14px) !important;
  line-height: 1 !important;
}
.rcsa-footer__contact-line a {
  font-size: var(--footer-body-size, 14px) !important;
}
.rcsa-footer__copy {
  font-size: var(--footer-body-size, 14px) !important;
}
.rcsa-footer__legal-link {
  font-size: var(--footer-body-size, 14px) !important;
}

/* Hide old bottom bar — no longer used */
.rcsa-footer__bar {
  display: none;
}