.g-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background-color: #FFFFFF;
    border-bottom: 1px solid var(--light-gray);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
  }

  .g-header:hover {
    background-color: #FFFFFF;
  }

  .g-header.g-header-scrolled {
    background-color: #FFFFFF;
    border-bottom-color: var(--light-gray);
    box-shadow: var(--shadow-sm);
  }

  .g-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
    z-index: 999;
  }

  .g-header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
  }

  .g-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
  }

  .g-header-logo-wrap {
    flex-shrink: 0;
  }

  .g-header-logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
  }

  .g-logo-sm {
    font-size: 18px;
  }

  .g-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .g-portal-link {
    color: var(--brand-dark);
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
  }

  .g-portal-link:hover { color: var(--brand-primary); }
  [data-member-state][hidden] { display: none !important; }

  .g-mobile-toggle {
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
  }

  .g-nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 32px;
  }

  .g-nav-link {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
    color: var(--brand-dark);
    text-decoration: none;
    padding: 24px 0;
    transition: color var(--transition-fast);
    position: relative;
  }

  .g-nav-link:hover {
    color: var(--brand-secondary);
  }

  .g-nav-link.active {
    color: var(--brand-secondary) !important;
    font-weight: 600;
  }

  .g-nav-link.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 2px;
    background-color: var(--brand-secondary);
    border-radius: 1px;
  }

  .g-cta-btn {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: all 250ms ease;
    display: inline-block;
    border: none;
    background-color: var(--brand-secondary);
    color: var(--white);
  }

  .g-cta-btn:hover {
    background-color: var(--brand-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(143, 200, 104, 0.3);
  }

  .g-cta-btn-full {
    width: 100%;
    text-align: center;
  }

  .g-mobile-menu {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    height: 100%;
    width: 100%;
    max-width: 320px;
    background-color: var(--white);
    box-shadow: var(--shadow-xl);
    transform: translateX(-100%);
    transition: transform 300ms ease-in-out;
    z-index: 1001;
  }

  .g-mobile-menu.open {
    transform: translateX(0);
  }

  .g-mobile-menu-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
  }

  .g-mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--light-gray);
  }

  .g-mobile-menu-close {
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
  }

  .g-mobile-menu-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px 32px;
  }

  .g-mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .g-mobile-nav-list > li { border-bottom: 1px solid var(--light-gray); }
  .g-mobile-nav-list > li:last-child { border-bottom: none; }

  .g-mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 15px 4px;
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 600;
    color: var(--brand-dark);
    text-decoration: none;
    transition: color var(--transition-fast);
  }
  .g-mobile-nav-link:hover, .g-mobile-nav-link:active { color: var(--brand-primary); }
  .g-m-ico { width: 22px; height: 22px; flex-shrink: 0; color: var(--brand-primary); }
  .g-m-trigger-main { display: flex; align-items: center; gap: 14px; }

  .g-mobile-nav-link:hover {
    color: var(--brand-secondary);
  }

  .g-mobile-menu-footer {
    padding: 16px;
    border-top: 1px solid var(--light-gray);
    display: flex;
    justify-content: center;
  }

  /* Desktop styles */
  @media (min-width: 1024px) {
    .g-desktop-nav {
      display: block !important;
    }

    .g-desktop-only {
      display: inline-block !important;
    }

    .lg\:hidden {
      display: none !important;
    }
  }

  /* Mobile styles */
  @media (max-width: 1023px) {
    .g-desktop-nav {
      display: none !important;
    }

    .g-desktop-only {
      display: none !important;
    }
  }

  /* Mega menu (desktop) */
  .g-has-mega {
    position: relative;
  }

  .g-nav-link-mega {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  .g-nav-caret {
    transition: transform var(--transition-fast);
  }

  .g-mega {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 640px;
    max-width: calc(100vw - 48px);
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
    z-index: 1002;
  }

  /* Invisible hover bridge so the gap between trigger and panel stays hoverable */
  .g-mega::before {
    content: "";
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    height: 14px;
  }

  .g-has-mega:hover .g-mega,
  .g-has-mega:focus-within .g-mega,
  .g-mega.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }

  .g-has-mega:hover .g-nav-caret,
  .g-has-mega:focus-within .g-nav-caret {
    transform: rotate(180deg);
  }

  .g-mega-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .g-mega-resources {
    width: 900px;
  }

  .g-mega-resources .g-mega-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .g-mega-resources .g-mega-item {
    padding: 12px;
  }

  .g-mega-resources .g-mega-icon {
    width: 36px;
    height: 36px;
  }

  .g-mega-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px;
    border-radius: var(--radius-md);
    transition: background-color var(--transition-fast);
  }

  .g-mega-item:hover {
    background-color: #F7F9FB;
  }

  .g-mega-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--brand-secondary), var(--brand-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .g-mega-icon svg {
    color: var(--white);
  }

  .g-mega-item-title {
    display: block;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    color: var(--brand-primary);
    margin-bottom: 2px;
    line-height: 1.3;
  }

  .g-mega-item-desc {
    display: block;
    font-size: 13px;
    color: var(--brand-muted);
    line-height: 1.45;
  }

  .g-mega-pillar .g-mega-item-title {
    color: var(--brand-teal);
  }

  /* Resources mega — sectioned layout (format vs topic) */
  .g-mega-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--brand-muted);
    margin: 2px 4px 10px;
  }
  .g-mega-resources .g-mega-formats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .g-mega-section-topics {
    margin-top: 14px;
    padding-top: 16px;
    border-top: 1px solid var(--light-gray);
  }
  .g-mega-pillars {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2px;
  }
  .g-mega-pillar-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 9px 12px;
    border-radius: var(--radius-md);
    border-left: 2px solid transparent;
    transition: background-color var(--transition-fast), border-color var(--transition-fast);
  }
  .g-mega-pillar-item:hover {
    background-color: #F7F9FB;
    border-left-color: var(--brand-secondary);
  }
  .g-mega-pillar-title {
    display: block;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-teal);
    line-height: 1.3;
  }
  .g-mega-pillar-desc {
    display: -webkit-box;
    font-size: 12px;
    color: var(--brand-muted);
    line-height: 1.4;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .g-mega-resources .g-mega-cta {
    margin-top: 16px;
  }

  .g-mega-cta {
    grid-column: 1 / -1;
    margin-top: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--brand-teal), #007B7F);
    color: var(--white);
  }

  .g-mega-cta svg {
    color: var(--white);
    flex-shrink: 0;
    transition: transform var(--transition-fast);
  }

  .g-mega-cta:hover svg {
    transform: translateX(4px);
  }

  .g-mega-cta-title {
    display: block;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    color: var(--white);
  }

  .g-mega-cta-text {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
  }

  /* Mobile accordion (Our Services) */
  .g-m-acc-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    padding: 15px 4px;
    cursor: pointer;
    text-align: left;
  }

  .g-m-acc-caret {
    transition: transform var(--transition-fast);
    flex-shrink: 0;
    color: var(--brand-muted);
  }

  .g-m-acc.open .g-m-acc-caret {
    transform: rotate(180deg);
  }

  .g-m-acc-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
    display: flex;
    flex-direction: column;
  }

  .g-m-acc.open .g-m-acc-panel {
    max-height: 720px;
    padding-bottom: 10px;
  }

  .g-m-sub {
    display: block;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 500;
    color: var(--brand-muted);
    text-decoration: none;
    padding: 11px 0 11px 36px;
    border-top: 1px solid rgba(0,0,0,0.05);
    transition: color var(--transition-fast);
  }
  .g-m-acc-panel .g-m-sub:first-child { border-top: none; padding-top: 6px; }
  .g-m-sub:hover, .g-m-sub:active { color: var(--brand-primary); }

  .g-m-sub:first-child {
    padding-top: 16px;
  }

  .g-m-sub:hover {
    color: var(--brand-secondary);
  }
