/* Poppins */

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

body {
  font-family: 'Poppins', sans-serif;
}

/* Control the font size and boldness of the font in the navigation bar */
.nav-link {
  font-weight: 600;
  color: #730d1b;
  background-color: transparent; /* Set default background color */
  padding: 5px 10px; /* Consistent padding */
  border-radius: 20px; /* Ensures the element always has rounded corners */
  transition: background-color 0.3s, color 0.3s; /* Smooth transitions */
}

a.nav-link.djd-red-round-box {
  color: white;
  background-color: #730d1b;
  font-weight: 600;
  border-radius: 20px;
  padding-top: 3px;
  padding-bottom: 3px;
  text-align: center;
}

a.nav-link.djd-red-round-box:hover {
  color: white !important;
  background-color: #730d1b;
  font-weight: 600;
  border-radius: 20px;
  padding-top: 3px;
  padding-bottom: 3px;
  text-decoration: none !important;
  text-underline-offset: 0 !important;
}

.nav-link:hover,
.nav-link:focus {
  color: #730d1b;
  font-weight: 600;
  /* padding-top: 5px;
  padding-bottom: 5px; */
}

/* Remove the shadow from the hamburger/grid icon used to open the menu */
.navbar-toggler:focus {
  box-shadow: none;
}

/* Remove borders from sub-entries in the dropdown menu and control its color */
.dropdown > .dropdown-menu {
  background-color: white;
  border: none;
  border-radius: 0;
}

/* Ensures right alignment for all .dropdown-menu-end menus, even when shown via hover or JS */
.dropdown-menu-end {
  right: 0;
  left: auto;
}

/* Change the font size of the hamburger/grid icon used to open the menu */
.fas.fa-bars {
  font-size: 1.5rem;
  color: #730d1b;
}

/* Change the font size of the hamburger/grid icon used to close the menu */
.far.fa-times-circle {
  font-size: 2rem;
  color: #730d1b;
}

.lni-cross-circle {
  font-size: 2rem;
  color: #730d1b;
}

/* Set the color of the divider horizontal rule in the dropdown menus */
/* hr.dropdown-divider {
  background-color: #730d1b;
  border: none;
  height: 1px;
  margin: 0;
} */

.dropdown-divider {
  border-top: 1px solid #730d1b;
  height: 1px; /* Set the height of the divider */
  margin: 0;
}

.dropdown-item.djd-red-bkg:hover {
  color: white;
  background-color: #730d1b;
}

.dropdown-item-red-tex-djd {
  color: #730d1b;
  margin: auto;
}

@media (min-width: 992px) {
  .dropdown > .dropdown-menu {
    visibility: hidden;
    opacity: 0;
    top: auto;
    display: block;
    transition: all 0.1s ease-out;
    color: #730d1b;
  }

  .dropdown:hover > .dropdown-menu {
    padding: 0 0;
    display: block;
    visibility: visible;
    opacity: 1;
    transition: all 0.3s ease-in-out;
  }

  .dropdown-item {
    background-color: #ebedf2;
    margin: 0px;
  }

  /* Set background color for accordion items in admin menu */
  #adminAccordion .accordion-body {
    background-color: #ebedf2;
  }
}

@media (max-width: 768px) {
  .offcanvas {
    max-height: 100vh; /* Ensures the menu does not exceed the viewport height */
    overflow-y: auto; /* Enables vertical scrolling when needed */
  }
}

.navbar .dropdown-toggle:hover,
.navbar .dropdown-toggle:focus {
  color: #730d1b;
  font-weight: 600;
}
