/* General Styles */
@import "typography.css";

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Helvetica Neue LT Std Cn", Helvetica, Arial, sans-serif;
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 100%;
}

body.menu-open {
  height: 100vh;
  overflow: hidden;
}

.container {
  max-width: 1600px;
  padding: 20px;
  margin: 0 auto;
}

/* Header Content Styles */
.main-header {
  position: relative;
  background: url("../img/banner.jpg") no-repeat center center;
  background-size: cover;
  color: #ffffff;
}

.main-header.mobile-menu-active {
  background-color: #002b4b;
  background-image: none;
}

.main-header:not(.mobile-menu-active)::before {
  position: absolute;
  content: "";
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: #000000;
  opacity: 0.3;
}

.header-top {
  display: flex;
  align-items: center;
  z-index: 2;
  position: relative;
}

.am-branding {
  margin-right: 25px;
}

.header-menu {
  display: none;
}

.header-menu-link {
  padding: 15px 0;
  list-style-type: none;
  position: relative;
  display: inline-block;
}

.header-menu-link a,
.mobile-menu-link a {
  text-decoration: none;
  font-family: "Helvetica Neue LT Std", Helvetica, Arial, sans-serif;
}

.header-menu-link a {
  color: #ffffff;
  padding: 15px;
}

.header-menu-link:hover {
  background: #f1f1f1;
  border-radius: 8px;
}

.header-menu-link:has(.header-submenu):hover {
  border-radius: 8px 8px 0 0;
}

.header-menu-link:hover a {
  color: #002b4b;
}

.header-submenu {
  display: none;
  position: absolute;
  background-color: #f1f1f1;
  border-radius: 0 0 8px 8px;
  width: 100%;
  margin-top: 15px;
  padding: 0;
}

.header-submenu a {
  padding: 12px 16px;
  display: block;
}

.header-submenu a:hover {
  background-color: lightgrey;
}

.header-submenu a:last-child:hover {
  border-radius: 0 0 8px 8px;
}

.header-menu-link:hover .header-submenu {
  display: block;
}

.user-details {
  display: none;
}

.user-name {
  font-weight: bold;
  color: #ffffff;
}

.mobile-menu-toggler {
  margin-left: auto;
}

.mobile-menu-toggler:hover {
  cursor: pointer;
}

.mobile-menu-toggler img {
  width: 24px;
}

.mobile-menu-toggler-icon {
  display: none;
}

.mobile-menu-toggler-icon.active {
  display: block;
}

.mobile-menu-container {
  display: none;
}

.mobile-menu-container.active {
  display: block;
  background: #002b4b;
  position: absolute;
  top: 90px;
  left: 0;
  width: 100%;
  height: calc(100vh - 90px);
  z-index: 2;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

.mobile-menu-link {
  list-style-type: none;
  padding: 20px 0;
  width: 90%;
}

.mobile-menu-link.opened {
  margin-bottom: 30px;
}

.mobile-menu-link.opened > a:first-of-type {
  font-weight: 600;
  font-size: 20px;
}

.mobile-menu-link:not(.opened) {
  border-bottom: 1px solid #d3d3d3;
}

.mobile-menu-link a {
  color: #ffffff;
  position: relative;
  display: block;
  text-align: center;
}

.mobile-menu-arrow {
  position: absolute;
  right: 0;
  top: 0;
}

.mobile-menu-arrow.active {
  left: 0;
  right: unset;
}

.mobile-menu-arrow.active img {
  transform: rotate(180deg);
}

.mobile-menu-arrow img {
  width: 24px;
  height: 24px;
}

.mobile-submenu {
  display: none;
  padding: 0;
  margin: 0;
}

.mobile-submenu.active {
    display: block;
}

.submenu-link {
    list-style: none;
    padding: 20px 0;
    border-bottom: 1px solid #d3d3d3;
  }
  
  .submenu-link:first-child {
    margin-top: 20px;
    border-top: 1px solid #d3d3d3;
  }

.hidden {
  display: none;
}

.mobile-user-details {
  color: #d3d3d3;
  font-size: 20px;
  padding-bottom: 30px;
}

/* Page Content Styles */
.page-content {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding: 0 20px 20px 20px;
  flex-grow: 1;
}

.heading-content {
  padding: 30px 0;
  z-index: 1;
  position: relative;
}

.heading-title {
  font-weight: 500;
  margin: 10px 0;
}

.content-title {
  color: #002b4b;
  font-weight: 400;
  margin-bottom: 10px;
}

.employee-greetings {
  flex: 3;
}

.onboarding-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 30px;
  padding-top: 30px;
}

.onboarding-grid-item {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.grid-item-title {
  color: #002b4b;
  font-weight: 500;
  margin: 0;
  margin-bottom: 10px;
  font-size: 20px;
}

.onboarding-guide-card {
  margin-top: auto;
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.onboarding-guide-card img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.onboarding-guide-card a {
  position: absolute;
  bottom: 20px;
  left: 20px; 
  padding: 12px 20px;
  background-color: #ffffff;
  color: #002b4b;
  font-weight: 500;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer; 
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); 
  text-decoration: none;
  font-family: "Helvetica Neue LT Std", Helvetica, Arial, sans-serif;
}

.onboarding-guide-card a:hover {
  background-color: #f1f1f1;
}

.sidebar {
  flex: 1;
  background-color: #002b4b;
  color: #ffffff;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
}

.sidebar-item {
  margin: 0;
  font-size: 20px;
  font-weight: 400;
}

.sidebar-item:first-child {
  margin-bottom: 40px;
}

.sidebar-desc {
  margin-top: 40px;
}

.sidebar-item-bold {
  font-weight: bold;
}

.sidebar a {
  padding: 12px 20px;
  background-color: #ffffff;
  color: #002b4b;
  border: none;
  border-radius: 5px; 
  font-size: 14px;
  cursor: pointer; 
  margin-bottom: 15px;
  text-decoration: none;
  font-family: "Helvetica Neue LT Std", Helvetica, Arial, sans-serif;
  font-weight: 500;
  display: flex;
  gap: 8px;
}

.sidebar a:hover {
  background-color: #f1f1f1;
}

main:last-child {
  padding-bottom: 0;
}

.docs-heading {
  padding: 40px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.docs-summary-card {
  display: flex;
  flex-direction: column;
  background: #002b4b;
  color: #ffffff;
  padding: 20px;
}

.docs-summary-card-title {
  text-transform: uppercase;
  font-size: 28px;
  margin: 0;
  margin-bottom: 30px;
}

.docs-summary-list {
  padding-left: 30px;
  margin: 0;
}

.summary-list-item {
  margin-bottom: 15px;
}

.summary-list-item a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
}

.summary-list-item:hover {
  text-shadow: 0 0 0.01px #ffffff;
}

.docs-section img {
  max-width: 100%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.docs-section figcaption {
  text-align: center;
  padding-top: 10px;
  font-style: italic;
  font-weight: 300;
  font-size: 1rem;
}

/* MEDIA QUERIES */
@media (min-width: 960px) {
  .header-menu {
    display: flex;
  }

  .heading-title {
    font-size: 48px;
  }

  .heading-desc,
  .page-content {
    font-size: 20px;
  }

  .user-details {
    display: block;
    margin-left: auto;
    color: #d3d3d3;
  }

  .mobile-menu-toggler {
    display: none;
  }
}

@media (min-width: 960px) and (max-width: 1200px) {
  .onboarding-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .onboarding-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 960px) {
  .am-branding svg {
    width: 50px;
  }

  .page-content {
    flex-direction: column;
  }
}



.footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  text-align: center;
}