.header-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: transparent;
  transition: background 0.3s ease, height 0.3s ease, position 0.3s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
}
.header-container.scrolled {
  position: fixed !important;
  background: var(--scrolled-bg) !important;
  height: var(--scrolled-height);
  top: 0;
  left: 0;
  width: 100%;
}
.header__row {
  display: flex !important;
  align-items: center;
  justify-content: space-between !important;
  max-width: 1440px; /* Widened from 1200px */
  margin: 0 auto;
  padding: 0 20px 0 0;
  width: 100%;
  flex-wrap: nowrap;
}
.header__column {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}
.header__logo {
  flex-shrink: 0;
  **justify-content: flex-start;** /* Align logo left within column */
  **padding-left: 0 !important;** /* Zero left padding */
  **margin-left: 0 !important;** /* No margin offset */
}
.header__logo img {
  height: 40px;
  width: auto;
  **display: block;** /* Inline-block can center—block prevents */
}
.header__menu {
  flex: 1;
  text-align: center;
  min-width: 0;
  width: 100%; /* Full column width for centering */
  display: flex; /* Flex container for ul */
  align-items: center;
  justify-content: center;
}

.header__navigation {
  position: relative; /* Creates stacking context for children */
  z-index: 1001; /* Above header bg (1000) */
}
.header__navigation ul {
  list-style: none;
  display: flex !important;
  gap: 24px;
  margin: 0;
  padding: 0;
  justify-content: center !important;
  width: 100%;
  max-width: fit-content; 
  position: relative;
  z-index: inherit;
}
.header__navigation a {
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
  white-space: nowrap; /* Prevent link wrap */
}
.header-container.scrolled .header__navigation {
  position: relative;
  z-index: 1001;
}
.header-container.scrolled .header__navigation a {
  color: #ffffff;
}
.header__cta {
  flex-shrink: 0;
  text-align: right;
}
.header__cta .hs-cta-wrapper .hs-cta-button {
  background: #5A60E1;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
  border: none;
  font-weight: bold;
  white-space: nowrap;
}
.header-container.scrolled .header__cta .hs-cta-wrapper .hs-cta-button,
.header-container.scrolled .header__cta a.hs-cta-button {
  background: #ffffff !important;
  color: #5A60E1 !important;
  border: 2px solid #5A60E1 !important;
  padding: 10px 20px !important;
  border-radius: 5px !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  font-weight: bold !important;
}
.header__toggle-input {
  display: none;
}
.header__navigation-toggle {
  display: none !important; /* Force hide on all non-mobile */
  cursor: pointer;
  font-size: 24px;
  color: #ffffff;
  padding: 8px;
  flex-shrink: 0;
}
.header__mobile-menu-open-icon,
.header__mobile-menu-close-icon {
  display: inline-block;
}
.header__toggle-input:checked ~ .header__mobile-menu-open-icon {
  display: none;
}
.header__toggle-input:checked ~ .header__mobile-menu-close-icon {
  display: inline-block;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .header-container {
    height: var(--initial-height);
  }
  .header-container.scrolled {
    height: 60px;
  }
  .header__row {
    flex-wrap: wrap;
    padding: 0 16px;
  }
  .header__logo {
    order: 1;
    flex: 1;
  }
  .header__cta {
    order: 2;
    flex: 1;
    text-align: right;
  }
  .header__cta .hs-cta-wrapper .hs-cta-button {
    width: 100%;
    margin-top: 8px;
  }
  .header__menu {
    order: 3;
    width: 100%;
    position: relative;
  }
  .header__navigation-toggle {
    display: block !important; /* Show only on mobile */
    float: right;
  }
  .header__navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--scrolled-bg);
    flex-direction: column;
    padding: 16px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 999;
  }
  .header__toggle-input:checked ~ .header__navigation {
    display: flex;
  }
  .header__navigation ul {
    flex-direction: column;
    gap: 0;
    width: 100%;
    justify-content: center;
  }
  .header__navigation li {
    width: 100%;
    text-align: left;
  }
  .header__navigation a {
    display: block;
    padding: 12px 16px;
    font-size: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .header__navigation a:hover {
    background: rgba(255,255,255,0.1);
  }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
  .header__row {
    padding: 0 24px;
  }
  .header__navigation ul {
    gap: 20px;
  }
}