/* ============================================
   NAVIGATION BAR — AWS STEPS
   ============================================ */

/* Container bar */
.aws-nav {
    background-color: #004c99;   /* deep blue brand color */
    color: #fff;
}

/* W3 bar wrapper */
.aws-nav .w3-bar {
    height: 48px;
    padding-top: 4px;
    padding-bottom: 4px;
}

/* Links */
.aws-nav .w3-bar .w3-bar-item {
    color: #fff;
    font-weight: 600;
    font-size: 16px;
}

.aws-nav .w3-bar .w3-bar-item:hover {
    background-color: rgba(255,255,255,0.15);
}

/* Active page indicator */
.aws-nav .active {
    background-color: rgba(255,255,255,0.25);
}

/* Mobile hamburger */
.aws-nav .w3-button {
    color: #fff;
}

/* Dropdowns or collapsed menu */
.aws-nav .w3-bar-block .w3-bar-item {
    padding: 10px 16px;
    color: #004c99;   /* dark blue text on white */
    font-weight: 600;
}

/* Make sure icons are visible on dark nav background */
.aws-nav .w3-bar .w3-bar-item,
.aws-nav .w3-bar .w3-button {
    color: #fff !important;
}

/* Explicitly color Font Awesome icons white */
.aws-nav .w3-bar .fa,
.aws-nav .w3-bar .fas,
.aws-nav .w3-bar .far,
.aws-nav .w3-bar .fab {
    color: #fff !important;
}

.aws-nav .w3-bar .w3-bar-item:hover,
.aws-nav .w3-bar .w3-button:hover {
    background-color: rgba(255,255,255,0.15);
}

/* ===== AWSSteps App Nav – shared ===== */

.aws-nav-app {
  font-size: 0.9rem;
}

/* ---------- Desktop / large screens (top bar) ---------- */

.aws-nav-top-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 8px 12px;
}

.aws-nav-logo a {
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.aws-nav-links {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

.aws-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  cursor: pointer;
}

.aws-nav-link i {
  font-size: 1rem;
}

.aws-nav-link:hover {
  background: rgba(255,255,255,0.15);
}

/* More dropdown (desktop) */
.aws-nav-more-wrap {
  position: relative;
}

.aws-more-menu {
  position: absolute;
  right: 0;
  top: 110%;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  padding: 6px 0;
  min-width: 180px;
  display: none;
  z-index: 2000;
}

.aws-more-menu a {
  display: block;
  padding: 6px 12px;
  color: #333;
  text-decoration: none;
  font-size: 0.9rem;
}
.aws-more-menu a:hover {
  background: #f5f5f5;
}

/* ---------- Mobile bottom nav ---------- */

.aws-nav-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid #ddd;
  z-index: 1500;
}

.aws-nav-bottom-inner {
  display: flex;
  justify-content: space-around;
  max-width: 720px;
  margin: 0 auto;
}

.aws-nav-bottom-item {
  flex: 1 1 0;
  text-align: center;
  padding: 6px 0 4px;
  border: none;
  background: none;
  text-decoration: none;
  color: #333;
  font-size: 0.75rem;
}

.aws-nav-bottom-item i {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 2px;
}

/* Optional: highlight active tab by adding .is-active class */
.aws-nav-bottom-item.is-active {
  color: #f44336;
}

/* ---------- Mobile “More” sheet ---------- */

.aws-more-sheet,
.aws-more-backdrop {
  display: none;
}

.aws-more-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1990;
}

.aws-more-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
}

.aws-more-sheet-inner {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 12px 16px 16px;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.2);
}

.aws-more-sheet-inner h3 {
  margin: 0 0 8px;
}

.aws-more-sheet-inner a {
  display: block;
  padding: 8px 4px;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
}
.aws-more-sheet-inner a:last-child {
  border-bottom: none;
}

.aws-more-sheet-inner a:hover {
  background: #f7f7f7;
}

.aws-more-close {
  float: right;
  border: none;
  background: none;
  font-size: 1.4rem;
  cursor: pointer;
}

/* When open */
.aws-more-open #aws-more-sheet,
.aws-more-open #aws-more-backdrop {
  display: block;
}

/* Ensure bottom padding so content isn't hidden behind nav on mobile */
@media (max-width: 600px) {
  body {
    padding-bottom: 100px !important;
  }
}
/*    padding-bottom: calc(80px + env(safe-area-inset-bottom)); */

/* Active state – TOP NAV (desktop) */
.aws-nav-link.is-active {
  background: #ffffff;
  color: #f44336;
  border-color: #f44336;
}

/* Active state – BOTTOM NAV (mobile) */
.aws-nav-bottom-item.is-active {
  color: #f44336;
  font-weight: 600;
}

.aws-nav-bottom-inner {
  display: flex;
  justify-content: space-around;
  max-width: 720px;
  margin: 0 auto;
}

.aws-nav-bottom-item {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 0 4px;
  border: none;
  background: none;
  text-decoration: none;
  color: #333;
  font-size: 0.75rem;
}

.aws-nav-bottom-item i {
  font-size: 1.2rem;
  margin-bottom: 2px;
}

/* Active state */
.aws-nav-bottom-item.is-active {
  color: #f44336;
  font-weight: 600;
}
