/* === HEADER STYLING === */
.pd-header{

    .header-menu{
      display: flex;
      align-items: center;
      background-color: #ffffff;
      padding: 15px 100px;
      color: #1e2d56;
      font-size: 18px;
      width: 100%;
  }
}

.nav-wrapper {
  display: flex;
  align-items: center;
  width: 100%;
}

/* Left align logo */
.logo {
  margin-right: auto;
}

.logo img {
  height: 80px;
  max-width: 200px;
}

/* Navigation content - Ensures alignment */
.nav-content {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  width: 100%;
}

/* Navigation Links */
.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
  margin: 0 auto;
  font-size: 18px;
}

.nav-links a {
  text-decoration: none;
  color: #1e2d56;
  font-weight: bold;
}

.nav-links img {
  width: 10px;
}

/* Disabled Link */
.nav-links .disabled a {
  color: #a9b3c1;
  pointer-events: none;
}

/* Navigation Icons */
.nav-icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Icons Links */
.nav-icons a {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-icons img {
  height: 35px;
  width: auto;
}

/* === MENU TOGGLE (Hide on Desktop, Show Only on Mobile) === */
#menu-toggle {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  color: #1e2d56;
  cursor: pointer;
  text-decoration: none;
}

/* === POPUP MOBILE MENU === */
.popup-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #1e2d56;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
  z-index: 9999;
}

.popup-mobile-menu.active {
  transition: transform 0.3s ease-in-out;
}

#grades-dropdown, #resources-dropdown-mobile {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

/* === POPUP HEADER (Logo Centered, Icons & Close Button Left-Aligned) === */
.popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 15px 35px;
  background-color: #1e2d56;
}

/* Popup Icons (Language, User, Help) - Left-Aligned */
.popup-icons {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0px;
}

.popup-icons a {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-icons img {
    height: 35px;
    width: auto;
}


/* Keep Logo Centered */
.popup-logo {
  max-width: 100px;
  padding-right: 5px;
}

/* Close Button Right-Aligned */
#popup-menu-close {
  background: none;
  border: none;
  font-size: 40px;
  color: white;
  cursor: pointer;
  text-decoration: none;
}

/* Move and Left Align Navigation Links */
.popup-nav-links {
  list-style: none;
  padding: 10px 20px;
  text-align: left;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Left-align individual links */
.popup-nav-links li {
  font-size: 18px;
  font-weight: bold;
}

.popup-nav-links a {
  
}

.reg-popup-nav-links {
  padding: 0px 15px;
}

/* === GRADES & RESOURCES DROPDOWN BUTTONS === */
.grades-toggle,
.resources-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #1e2d56;
  font-size: 18px;
  font-weight: bold;
  padding: 0px 15px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  text-align: left;
  width: 100%;
  max-width: 420px;
  transition: background-color 0.3s ease-in-out;
}

.grades-toggle {
  background-color: white;
}

/* Dropdown Icons (Using Image Inside Button) */
.grades-toggle img,
.resources-toggle img {
  width: 15px;
  height: 15px;
  display: inline-block;
}


.grades-toggle img {
  margin-left: auto; /* Pushes icon to the right */
}

.resources-toggle img {
  margin-left: 20px;
}

/* Show Dropdown When Active */
.grades-toggle.active,
.resources-toggle.active {
  border-radius: 10px 10px 0px 0px;
}

/* Hover Effect */
.grades-toggle:hover,
.resources-toggle:hover {
  
}

.dropdown li {
  justify-content: center;
}

.resources-dropdown-desktop-content {
  width: 100%;
  height: 100%;
  display: block;
  
  opacity: 0;
  transition: 0.3s;
}

.resources-dropdown-desktop {
  position: absolute;
  white-space: nowrap;
  width: 220px;
  background-color: white;
  border-top: 0.25rem solid #053E68;
  margin-top: 20px;
  right: -50px;
}

.resources-dropdown-desktop a {
  font-size: 15px;
  margin-left: 20px;
}

/*
.resources-dropdown-desktop.active {
  display: block;
}
*/

.dropdown:hover .resources-dropdown-desktop-content {
  display: block;
  opacity: 1;
}

/* Empty Grades & Resources Dropdown */
.grades-dropdown,
.resources-dropdown {
  display: none;
  width: 100%;
  max-width: 420px;
  margin: auto;
  border-radius: 0px 0px 10px 10px;
}

.grades-dropdown {
  background-color: white;
}

.grades-dropdown .dashboard-inner div{
   
    background-color: white;
  
}

.resource-links { 
  margin-left: 30px;
  justify-content: left;
  text-decoration: none;
  color: white;
  display: flex;
  align-items: center;
  padding: 5px 0px;
}

/* Show Dropdown When Active */
.grades-dropdown.active,
.resources-dropdown.active {
  display: block;
}

.main-nav-links {
  justify-content: left;
  text-decoration: none;
  color: white;
  display: flex;
  align-items: center;
  font-weight: bold;
  font-size: 22px;
  padding: 10px;
}

/* Language toggle */
.language-toggle-wrapper {
    position: relative;
    display: inline-block;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    display: none;
    flex-direction: column;
    min-width: 80px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 10000;
}

.language-dropdown a {
    padding: 10px 14px;
    text-decoration: none;
    color: #1e2d56 !important; 
    font-size: 15px;
}

.language-dropdown a:hover {
        background-color: #f0f0f0;
}



/* Ensure Popup Menu Disappears in Desktop View */
@media screen and (min-width: 1120px) {
    .popup-mobile-menu {
        display: none !important;
    }
}

/* === MOBILE VIEW CHANGES === */
@media screen and (max-width: 1119px) {

    .pd-header {
        .header-menu {
      padding: 15px 35px;
    }
  }

  .nav-links {
    display: none;
  }

  #menu-toggle {
    display: flex;
    font-size: 30px;
  }

  .logo img {
    height: 60px;
    max-width: 150px;
  }

  .nav-icons img {
    height: 35px;
  }

.desktop-view {
    display: none !important;
}

}

/* Buttons in Inner Box */
.nav-icons > button {
  font-size: 14pt;
  width: 55%;
  padding: 5px 10px;
  border: none;
  border-radius: 10px;
  color: white;
  cursor: pointer;
}

.nav-icons > button:hover {
  background-color: #0055aa;
}

.nav-icons > button > a {
  color: white;
  text-decoration: none;
}


