/* Layout */
.vga-show-content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1200px;
  margin: 3rem auto 2rem auto;
  padding: 0 3rem;
}

/* Main Content */
.vga-show-main {
  flex: 1 1 60%;
  min-width: 320px;
}

/* Remove top margin from first paragraph only */
.vga-show-main .wp-block-paragraph:first-child {
  margin-top: 0;
}

/* Sidebar */
.vga-show-sidebar {
  flex: 0 0 320px;
  /* padding: 0rem 1.5rem 2rem 0; */
  min-width: 220px;
  max-height: fit-content;
  align-self: flex-start;
  border: 1px solid #e0e0e0;
  position: sticky;
  top: 40px;
}

.vga-show-sidebar .parent-page {
  background-color: rgba(0, 146, 203, 0.1);
  /* padding-left: calc(2rem + 5px); */
  border-bottom: 1px solid #e0e0e0;
}

/* Sidebar Navigation */
.vga-show-sidebar-nav {
  width: 100%;
}
.vga-show-sidebar-top-level {
  list-style: none;
  padding: 0;
  margin: 0;
}
.vga-show-sidebar-top-level > li {
  margin: 0;
  border-bottom: 1px solid #0f2132;
}
.vga-show-sidebar-top-level > li:last-child {
  border-bottom: none;
}
.vga-show-sidebar-top-level > li > a {
  display: block;
  padding-top: 1rem;
  padding-bottom: 1rem;
  text-decoration: none;
  font-weight: 400;
  transition: color 0.15s ease;
  font-size: 0.95rem;
}

/* Links outside current-menu: white */
.vga-show-sidebar-top-level > li:not(.current-menu) > a {
  color: #fff;
}

/* Links inside current-menu: #333 */
.vga-show-sidebar-top-level li.current-menu > a {
  color: #333;
}

.vga-show-sidebar-top-level li.current-menu > a.current-menu-item {
  color: var(--color-blue-ridge-blue);
}

.vga-show-sidebar-top-level li.current-menu > a.current-menu-item:hover {
  color: var(--color-blue-ridge-blue);
}

/* Current menu item: blue */
.vga-show-sidebar-submenu a.current-menu-item {
  color: var(--color-blue-ridge-blue);
}

.vga-show-sidebar-top-level > li > a:hover {
  /* color: var(--color-blue-ridge-blue); */
  background-color: rgba(0, 146, 203, 0.1);
  /* border-left: 5px solid var(--color-blue-ridge-blue); */
  /* box-shadow: inset 5px 0 0 var(--color-blue-ridge-blue); */
}

/* Current page styling */
/* .vga-show-sidebar-top-level > li.current-page > a {
  color: var(--color-blue-ridge-blue);
} */
.vga-show-sidebar-top-level a {
  padding-left: 1.25rem;
}

.vga-show-sidebar-top-level > li {
  background: #2a3a4d;
}

.vga-show-sidebar-top-level > li:hover {
  /* background:var(--color-blue-ridge-blue); */
  background-color: #00668e;
}

.vga-show-sidebar-top-level li.current-menu {
  background: #fff;
}

.vga-show-sidebar .current-menu-item {
  background-color: rgba(0, 146, 203, 0.1);
  /* border-left: 5px solid var(--color-blue-ridge-blue); */
  box-shadow: inset 5px 0 0 var(--color-blue-ridge-blue);
  padding-left: calc(2rem + 5px);
}

/* Submenus */
.vga-show-sidebar-submenu {
  list-style: none;

  margin: 0;
  padding-bottom: 1rem;
}

/* Submenu Items */
.vga-show-sidebar-submenu li {
  margin: 0;
}
.vga-show-sidebar-submenu a {
  display: block;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  color: #333;
  text-decoration: none;
  font-weight: 400;
  font-size: 0.9rem;
  transition: color 0.15s ease;
  position: relative;
}
.vga-show-sidebar-submenu a {
  padding-left: 1rem;
}
.vga-show-sidebar-submenu a:hover {
  color: var(--color-blue-ridge-blue);
  background-color: rgba(0, 146, 203, 0.1);
  /* box-shadow: inset 5px 0 0 var(--color-blue-ridge-blue); */
}
/* .vga-show-sidebar-submenu a:hover::before {
  content: "—";
  position: absolute;
  left: -1.25rem;
  color: var(--color-blue-ridge-blue);
  letter-spacing: -2px;
} */

/* Current Submenu Item */
/* .vga-show-sidebar-submenu a.current-submenu {
  color: var(--color-blue-ridge-blue);
  position: relative;
}
.vga-show-sidebar-submenu a.current-submenu::before {
  content: "—";
  position: absolute;
  left: -1rem;
  color: var(--color-blue-ridge-blue);
  font-weight: bold;
} */

/* External Link Icon */
.vga-external-link-icon {
  display: inline-block;
  vertical-align: text-bottom;
  opacity: 0.7;
  white-space: nowrap;
  position: relative;
  top: -1px;
}
.vga-show-sidebar-submenu a:hover .vga-external-link-icon {
  opacity: 1;
}

/* Mobile */
@media (max-width: 1080px) {
  .vga-show-content-wrapper {
    flex-direction: column;
    gap: 1rem;
    padding: 0;
    margin-top: 2rem;
  }

  .vga-show-main {
    flex: 1 1 100%;
    order: 1;
    padding: 0 1.5rem;
  }

  /* Left-align h1 in hero for show template on mobile */
  .vga-hero-welcome-section h1 {
    text-align: left !important;
  }

  .vga-show-sidebar {
    flex: 1 1 100%;
    order: 2;
    max-width: none;
    border-radius: 0;
    margin: 0;
    width: 100%;
    padding: 0;
    border-left: 1px solid #e0e0e0;
  }

  .vga-show-sidebar-top-level > li {
    /* padding-left: 1rem;
    padding-right: 1rem; */
  }

  /* .vga-show-sidebar-top-level > li.current-page {
    margin-left: -5px;
    padding-left: calc(1rem + 5px);
  } */

  .vga-show-sidebar-top-level > li:first-child {
    padding-top: 1.5rem;
  }

  .vga-show-sidebar-top-level > li:last-child {
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .vga-show-sidebar-submenu {
    padding-left: 1rem;
    padding-bottom: 0.75rem;
  }

  .vga-show-sidebar-submenu a {
    padding: 0.4rem 0;
    font-size: 0.85rem;
  }

  /* Mobile hover styles */
  .vga-show-sidebar-top-level > li > a:hover {
    margin-left: -5px;
    padding-left: calc(1rem + 5px);
  }

  .vga-show-sidebar-submenu a:hover {
    margin-left: -5px;
    padding-left: calc(1rem + 5px);
  }
}
