/* global.css */

@font-face {
  font-family: 'Bank Gothic Light';
  src: url('fonts/BankGothicBT-Light.woff2') format('woff2'),
       url('fonts/BankGothicBT-Light.woff') format('woff');
  font-weight: 300; /* Assuming Light is 300 weight */
  font-style: normal;
}

@font-face {
  font-family: 'Bank Gothic Medium';
  src: url('fonts/BankGothicBT-Medium.woff2') format('woff2'),
       url('fonts/BankGothicBT-Medium.woff') format('woff');
  font-weight: 500; /* Assuming Medium is 500 weight */
  font-style: normal;
}

.hero-title {
  font-family: 'Bank Gothic Medium', sans-serif;
}

/* === Global Header & Navigation Styles (Finalized Version) === */

header {
  background-color: #0c3c78;
  color: white;
  padding: 30px 20px;
  position: relative;
  text-align: center;
}

.header-content {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.site-title {
  text-align: center;
}
.site-title h1 {
  font-size: 2.2em;
  margin-top: 0;
  margin-bottom: 0;
  color: white;
}
.site-title p {
  font-size: 1em;
  margin-top: 0;
  margin-bottom: 0;
  color: #f0f0f0;
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  padding: 5px;
}

/* Desktop nav */
nav.main-navigation {
  background-color: #092e5e;
}
.nav-wrapper-desktop {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
ul.nav-links-desktop {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}
ul.nav-links-desktop li a {
  color: white;
  padding: 14px 20px;
  text-decoration: none;
  display: block;
  border-radius: 9999px;        /* pill shape */
  transition: background 0.2s;
}
ul.nav-links-desktop li a:hover {
  background-color: #0f4fa0;
}
ul.nav-links-desktop li a.current-page,
ul.nav-links-desktop li a.highlighted-nav {
  background-color: #d8f352;
  color: black;
  font-weight: bold;
}
ul.nav-links-desktop li a.current-page:hover,
ul.nav-links-desktop li a.highlighted-nav:hover {
  background-color: #c1da3b;
}

/* === Desktop Dropdown Menu Styles === */
ul.nav-links-desktop li.dropdown {
  position: relative;
  display: inline-block;
}
ul.nav-links-desktop li.dropdown .dropbtn {
  /* Inherits styling from ul.nav-links-desktop li a */
  /* If specific overrides needed for dropbtn appearance, add here */
}
ul.nav-links-desktop li.dropdown .dropdown-content {
  display: none;
  position: absolute;
  background-color: #092e5e; /* Match nav background */
  min-width: 200px; /* Adjust as needed */
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 100; /* Ensure it's above other content */
  border-radius: 5px; /* Rounded corners for the dropdown box */
}
ul.nav-links-desktop li.dropdown .dropdown-content a {
  color: white;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left; /* Align text to the left */
  border-radius: 5px; /* Match parent dropdown radius for consistency */
}
ul.nav-links-desktop li.dropdown .dropdown-content a:hover {
  background-color: #0f4fa0; /* Hover effect for dropdown items */
}
ul.nav-links-desktop li.dropdown:hover .dropdown-content {
  display: block; /* Show dropdown on hover */
}

/* Desktop auth buttons */
.auth-buttons-desktop {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
}
.auth-buttons-desktop a button,
.auth-buttons-desktop button {
  background-color: white;
  color: #0c3c78;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.auth-buttons-desktop a button:hover,
.auth-buttons-desktop button:hover {
  background-color: #0f4fa0;
  color: white;
}

/* Mobile nav */
.mobile-menu-container {
  display: none;
  background-color: #092e5e;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1000;
  padding-top: 20px;
  box-sizing: border-box;
  overflow-y: auto;
  text-align: center;
}
nav.main-navigation.mobile-menu--open .mobile-menu-container {
  display: block;
}
.mobile-menu-close {
  display: block;
  position: absolute;
  top: 10px; right: 10px;
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  z-index: 10;
}
ul.nav-links-mobile {
  list-style: none;
  padding: 0;
  margin: 50px 0 20px;
}
ul.nav-links-mobile li a {
  color: white;
  padding: 15px 20px;
  text-decoration: none;
  display: block;
  border-bottom: 1px solid #0c3c78;
  border-radius: 9999px;      /* pill shape */
  transition: background 0.2s;
}
ul.nav-links-mobile li:last-child a {
  border-bottom: none;
}
ul.nav-links-mobile li a:hover {
  background-color: #0f4fa0;
}

/* === Mobile Dropdown Menu Styles === */
ul.nav-links-mobile li.dropdown-mobile {
  /* Base styling inherited from ul.nav-links-mobile li */
}
ul.nav-links-mobile li.dropdown-mobile .dropbtn-mobile {
  /* Inherits general mobile link styling (padding, color, etc.) */
  /* Add specific styles if dropdown button needs to look different */
  /* display: flex; justify-content: space-between; align-items: center; */ /* If adding an arrow */
}
ul.nav-links-mobile li.dropdown-mobile .dropdown-content-mobile {
  display: none; /* Hidden by default, shown by JS */
  background-color: #0c3c78; /* Slightly different bg for nesting, or same as parent */
  padding-left: 20px; /* Indent dropdown items */
  /* transition: max-height 0.3s ease-out; */ /* For smooth expand/collapse if using max-height */
}
ul.nav-links-mobile li.dropdown-mobile .dropdown-content-mobile a {
  /* Inherits mobile link styling, but override border for nested items if needed */
  border-bottom: 1px solid #092e5e; /* Lighter border for sub-items */
  padding: 12px 20px; /* Adjust padding if needed */
  border-radius: 5px; /* Rounded corners for sub-items */
}
ul.nav-links-mobile li.dropdown-mobile .dropdown-content-mobile a:last-child {
  border-bottom: none;
}
/* Hover for mobile dropdown items is already covered by general mobile link hover */
/* ul.nav-links-mobile li.dropdown-mobile .dropdown-content-mobile a:hover { background-color: #0f4fa0; } */

.auth-buttons-mobile {
  padding: 20px;
}
.auth-buttons-mobile a button,
.auth-buttons-mobile button {
  background-color: #d8f352;
  color: #0c3c78;
  border: none;
  padding: 12px 20px;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  display: block;
  width: 80%;
  max-width: 250px;
  margin: 10px auto;
  box-sizing: border-box;
}
.auth-buttons-mobile a button:hover,
.auth-buttons-mobile button:hover {
  background-color: #c1da3b;
}

/* Footer */
footer,
footer.site-footer {
  background-color: #0c3c78;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: auto;
}

/* Responsive tweaks */

/* Styling for portal title link */
.portal-title-link {
  text-decoration: none; /* Removes underline from link */
  color: inherit; /* Inherits color from parent, which should be white */
  transition: color 0.3s ease-in-out; /* Smooth transition for color change */
}

.portal-title-link:hover {
  color: black !important; /* Changes color to black on hover, !important to override Tailwind if necessary */
}

.portal-title-link h1 {
  /* Ensures h1 inside the link doesn't have conflicting styles if any were added directly to h1 */
  display: inline; /* Or block, depending on desired layout with other elements if any */
}


@media (max-width: 768px) {
  header {
    padding: 10px 15px;
  }
  .header-content {
    justify-content: space-between;
    width: 100%;
  }
  .site-title {
    text-align: left;
  }
  .site-title h1 {
    font-size: 1.2em;
    margin-bottom: 0;
  }
  .site-title p {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .nav-wrapper-desktop {
    display: none;
  }
  .auth-buttons-desktop {
    display: none;
  }
  nav.main-navigation {
    padding: 0;
    background-color: transparent;
  }
}