@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

body{
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 600;
}

aside{
  font-family: 'Montserrat', sans-serif !important;
}

/* Nav Menu */
.main-nav a {
    font-weight: 500;
    color: black;
    letter-spacing: 0.05em;
    position: relative;
    text-decoration: none;
    transition: color 0.3s ease;
  }
  
  /* Underline effect for desktop screens (only on non-dropdown toggles) */
  .main-nav a:not(.dropdown-toggle)::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 100%;
    background-color: #546672;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
  }
  
  /* On hover and focus, reveal the underline (desktop only) */
  .main-nav a:not(.dropdown-toggle):hover::after,
  .main-nav a:not(.dropdown-toggle):focus::after {
    transform: scaleX(1);
    transform-origin: bottom left;
  }
  
  /* Change the text color on hover or if active */
  .main-nav a:hover,
  .main-nav a.active {
    color: #546672 !important;
  }
  
  /* Disable underline effect for dropdown menu links */
  .dropdown-menu .menu-item a::after {
    content: none;
  }
  
  /* Tablet and Mobile: Disable underline effect */
  @media (max-width: 991.98px) {
    .main-nav a:not(.dropdown-toggle)::after {
      display: none;
    }
  }
  
  /* Drop down */
  
  /* Modern styling for dropdown menus */
  .dropdown-menu {
    border: 1px solid #eeeeee;
    border-radius: 2px;
    /* box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1); */
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
    /* Ensure the menu displays as a block element */
    display: none;
    pointer-events: none; /* Prevent interaction while hidden */
  }
  
  /* When the dropdown menu is shown, animate into view */
  .dropdown-menu.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  
  /* Modern caret styling */
  .modern-caret {
    font-size: 0.75em; /* Adjust size as needed */
    transition: transform 0.3s ease;
  }
  
  /* Rotate the caret when the parent dropdown is open */
  .dropdown-toggle.show .modern-caret {
    transform: rotate(180deg);
  }

  .dropdown-toggle::after{
    content: none;
  }

  .dropdown-item.active, .dropdown-item:active{
    background-color:white;
  }
  
  /*search form
  *
  *
  *
  */
  /* Container styling for alignment */
@media (min-width: 1291px){
    .top-search{
        position: absolute;
        left: 50%;
        right: 50%;
    }
}
.search-form {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
  }
  @media (max-width: 991.98px) {
    .search-form{
        justify-content: left;
    }
  }
  
  /* Style for the search input */
  .search-form .search-field {
    border: none;
    border-bottom: 2px solid #ccc; /* Clean bottom line */
    padding: 8px 4px;
    font-size: 16px;
    background: transparent;
    transition: border-color 0.3s ease;
  }
  
  /* Focus state: change the bottom border color */
  .search-form .search-field:focus {
    outline: none;
    border-bottom-color: #546672;
  }
  
  /* Style for the search button */
  .search-form .search-submit {
    background: none;
    border: none;
    padding: 8px;
    margin-left: 10px;
    cursor: pointer;
    font-size: 20px;
    color: #000000;
    transition: color 0.3s ease;
  }
  
  /* Hover state for the search button */
  .search-form .search-submit:hover {
    color: #546672;
  }
  
  /*
  
  Header Logo
  
  */

  /* Make the entire header logo a flex container for horizontal alignment */
.header_logo {
    display: flex;
    align-items: center;
    text-decoration: none; /* Remove underline from the link */
    color: inherit;        /* Inherit the parent color to avoid default link colors */
  }
  
  /* Style the text portion of the logo */
  .header_logo .logo-text {
    font-weight: 600;  /* Set font weight to 600 */
    color: #000;       /* Set text color to black */
    margin-left: 10px; /* Adjust spacing between image and text as needed */
    line-height: 1.2;  /* Control line spacing for stacked words */
  }
  
  /* Optional: Remove any link-specific styling for the text only */
  .header_logo .logo-text a {
    text-decoration: none;
    color: inherit;
  }

  /*
  Nav Toggle
  */

/* Remove border and background from the button, even when clicked */
.navbar-toggler {
    border: none !important;
    background: transparent;
    padding: 0;
  }
  .navbar-toggler:focus {
    outline: none !important;
    box-shadow: none !important;
  }
  
  /* Flex container to evenly space the hamburger lines */
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
  }
  
  /* Hamburger line styles */
  .hamburger .line {
    height: 2px;
    width: 100%;
    background-color: black;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
  }
  
  /* Toggle active state: animate into an X */
  .navbar-toggler[aria-expanded="true"] .line1 {
    transform: translateY(11px) rotate(45deg);
    background-color: #546672;
  }
  
  .navbar-toggler[aria-expanded="true"] .line2 {
    opacity: 0;
  }
  
  .navbar-toggler[aria-expanded="true"] .line3 {
    transform: translateY(-11px) rotate(-45deg);
    background-color: #546672;

  }
  
  
  /*
  
  Menu Transitions
  
  */

  .collapsing {
    transition: height 0.6s ease;
  }

  .navbar-collapse.collapse {
    transition: opacity 0.6s ease;
  }
  
  .navbar-collapse.collapse.show {
    opacity: 1;
  }
  

  article p{
    font-weight: 400;
  }