/*
Theme Name: Hueman Child
Template: hueman
Description: Child theme for Hueman theme.
Author: Your Name
Version: 1.1.0
*/

/* Hide any parent theme menus */
#nav-topbar, #nav-header, #nav-footer {
  display: none;
}

/* Base Styles */
html {
  font-size: 62.5%;
}

body {
  font-size: 16px;
  line-height: 1.42857143;
  margin: 0;
  padding: 0;
  background-color: #fff;
}

/* Header Styles */
header#header {
  background-color: #003594; /* Pitt Blue */
  margin: 0;
  padding: 0;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative; /* Add this to position nav-toggle */
}

.header-top {
  display: flex;
  align-items: center;
  padding: 30px 0;
}

.pitt-shield {
  margin-right: 20px;
}

.pitt-shield img {
  width: 148px;
  height: auto;
}

.site-identity {
  font-size: 2.5rem;
  color: #fff;
}

.site-identity a {
  color: #fff;
  text-decoration: none;
}

.site-identity a:hover {
  text-decoration: underline;
}

hr.header-separator {
  display: none; /* Hide the white line to reduce visual clutter */
}

/* Navigation Bar Styles */
#nav-university-topbar {
  background-color: #003594; /* Pitt Blue */
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: none; /* Remove any borders that might be causing issues */
}

#nav-university-topbar .nav-wrap {
  max-width: 1200px;
  margin: 0 auto;
}

#nav-university-topbar .nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center; /* Align items vertically in the center */
}

#nav-university-topbar .nav li {
  margin: 0 15px;
  position: relative;
  border: none; /* Remove border to prevent extra separator lines */
}

/* Add dropdown icon for items with dropdowns */
#nav-university-topbar .nav li.has-dropdown > a:after {
  content: '\f078'; /* Font Awesome down arrow */
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  margin-left: 10px; /* Space between text and icon */
}

/* Improve link styling */
#nav-university-topbar .nav li a {
  color: #fff;
  text-decoration: none;
  font-size: 1.6rem;
  font-weight: 600;
  padding: 10px 10px;
  display: inline-block;
  transition: background-color 0.3s, color 0.3s;
  line-height: 1.4;
}

#nav-university-topbar .nav li a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

/* Dropdown Menu Styles for Desktop */
#nav-university-topbar .nav li ul {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #f0f0f0;
  padding: 10px 0;
  list-style: none;
  display: none;
  min-width: 200px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1001;
}

#nav-university-topbar .nav li:hover > ul {
  display: block;
}

#nav-university-topbar .nav li ul li {
  margin: 0;
}

#nav-university-topbar .nav li ul li a {
  color: #333 !important; /* Dark grey text for better readability */
  padding: 8px 15px;
  display: block;
  transition: background-color 0.3s;
  font-size: 1.4rem;
}

#nav-university-topbar .nav li ul li a:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

/* Main Content Adjustments */
#page {
  margin-top: 20px;
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Footer Styles */
.footer {
  background: #2b2b2b;
  color: #fff;
  padding: 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
}

.footer-container {
  text-align: center;
}

.footer .pitt-shield {
  margin-bottom: 10px;
}

.footer .site-identity {
  font-size: 2rem;
  margin-bottom: 10px;
}

.footer .footer-description {
  font-size: 1.4rem;
  max-width: 800px;
  line-height: 1.5;
}

/* Responsive Adjustments for Mobile */
@media screen and (max-width: 767px) {
  /* Display the nav-toggle (hamburger icon) */
  .nav-toggle {
    display: block;
    cursor: pointer;
    padding: 15px;
    color: #fff;
    font-size: 2rem;
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 1100;
  }

  /* Hide the navigation menu initially */
  #nav-university-topbar .nav-wrap {
    display: none;
  }

  /* Style the navigation menu when it's visible */
  #nav-university-topbar .nav {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  #nav-university-topbar .nav li {
    width: 100%;
    margin: 0;
  }

  #nav-university-topbar .nav li a {
    width: 100%;
    padding: 15px;
    border-bottom: 1px solid #ccc;
  }

  /* Dropdown Menu Styles for Mobile */
  #nav-university-topbar .nav li ul {
    position: static;
    display: none;
    background-color: #f0f0f0; /* Consistent background color with desktop */
    width: 100%;
    padding: 0;
    box-shadow: none;
  }

  #nav-university-topbar .nav li.open > ul {
    display: block;
  }

  #nav-university-topbar .nav li ul li a {
    padding-left: 30px;
    background-color: #f2f2f2; /* Consistent with desktop dropdown items */
    color: #333 !important; /* Set font color to dark grey for readability */
  }

  /* Adjust caret icon for dropdown */
  #nav-university-topbar .nav li.has-dropdown > a:after {
    content: '\f078'; /* Font Awesome down arrow */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    float: right;
    margin-right: 15px;
  }
}

/* Hide the nav-toggle on larger screens */
@media screen and (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  #nav-university-topbar .nav-wrap {
    display: block !important;
  }
}

/* Reset default list styles */
#nav-university-topbar ul,
#nav-university-topbar li {
  margin: 0;
  padding: 0;
  list-style: none;
}
