/* Subnav styles to match Figma secondary green bar */

.subnav {
  background: var(--ene-green);
  color: #fff;
  box-shadow: none;
  z-index: 800;
  position: fixed;
  top: 4.7rem;
  width: 100%;
  @media(max-width:768px){
        position: absolute;
  }
}

.subnav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
}

.subnav-title {
  color: #fff;
  font-weight: 600;
}

.subnav-title a {
  color: #fff;
  text-decoration: none;
}

.subnav-list {
  display: flex;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.subnav-item {
  background: #fff;
  color: var(--ene-green);
  padding: 8px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  &:visited {
    color: var(--ene-green);
  }
  &.is-active {
    color: #111;
}
}

.subnav-item .icon {
  color: var(--ene-green);
  margin-left: 6px;
}

.subnav-cta .cta-outline {
  background: #fff;
  color: var(--orange);
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  display: flex;
  @media(max-width:768px){
    font-size: 0.8rem;
    align-items: center;
    justify-content: space-between;
  }
}

@media (max-width: 768px) {
  .subnav-title {
    font-size: 0.9rem;
  }
  .subnav-item {
    font-size: 0.9rem;
  }
  .subnav-inner {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .subnav-list {
    order: 3;
    width: 100%;
    overflow: auto;
    padding: 0;
    display: flex;
    gap: 12px;
    justify-content: center;
  }
  .subnav-list li {
    width: 100%;
    display: flex;
    justify-content: center;
  }
  .subnav-list li a {
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
  }
  .subnav-title {
    order: 1;
    width: 100%;
    flex: 1;

  }
  .subnav-cta {
    order: 2;
    flex: 1;
  }
  .subnav-item .icon {
    display: none;
  }
}
