
/* Navbar */
.header-nav{
    height: 73px;
}

.navbar-main {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%; 
  z-index: 9999; 
  box-shadow: 0 2px 8px rgba(0,0,0,0.1); 
  background-color: #ffffff;
}

.navbar-custom {
  position: relative;
  background-color: #ffffff;
  height: 72px;
  padding: 0;
  /*box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);*/
  transition: var(--transition);
}

.navbar-custom .container-fluid {
  height: 100%;
  align-items: center;
  padding: 0 var(--spacing-md);
}

.navbar-brand {
  margin-right: 0;
  padding: 0;
  transition: var(--transition);
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.navbar-brand-logo {
  height: 25px;
  width: auto;
  transition: var(--transition);
}

.navbar-brand-text {
  font-family: "SVN-Gilroy", sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--primary-color);
  margin-left: var(--spacing-xs);
}

.nav-center {
  display: flex;
  justify-content: space-evenly;
  flex-grow: 1;
  margin: 0 var(--spacing-lg);
}

.nav-link-custom {
  font-family: "SVN-Gilroy", sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--secondary-color) !important;
  padding: 0 var(--spacing-md) !important;
  text-decoration: none;
  display: flex;
  align-items: center;
  height: 72px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.nav-link-custom::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link-custom:hover::before,
.nav-link-custom:focus::before {
  width: 80%;
}

.nav-link-custom:hover,
.nav-link-custom:focus {
  color: var(--primary-color) !important;
  transform: translateY(-2px);
}

.dropdown-menu {
  display: none !important;
}

.nav-item:hover > .dropdown-menu {
  display: flex !important;
}

.nav-item:not(:hover) > .dropdown-menu {
  display: none !important;
}

.navbar-actions {
  margin-left: auto;
}

.navbar-actions .nav-link-custom {
  padding: 0 1rem !important;
  font-size: 18px;
  text-align: center;
}

.icon-down {
  width: 11.39px;
  height: 6.51px;
  margin-left: 10px;
  filter: brightness(0);
  transition: filter 0.2s ease;
}

.nav-link-custom:hover .icon-down {
  filter: brightness(0) saturate(100%) invert(21%) sepia(75%) saturate(4295%)
    hue-rotate(347deg) brightness(89%) contrast(89%);
}

/* .btn-search {
  background: transparent;
  border: none;
  padding: 6px;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0px 1px 6px 0px rgba(219, 31, 31, 0.24);
} */

.btn-search:focus {
  box-shadow: none;
  outline: none;
}

.search-icon {
  width: 19px;
  height: 19px;
}

/* Dropdown styling */
.dropdown-menu {
  border: 1px solid rgba(219, 31, 31, 0.15);
  border-radius: 8px;
  box-shadow: 0px 4px 16px 0px rgba(219, 31, 31, 0.15);
  padding: 8px 0;
  margin-top: 16px;
  left: 50% !important;
  transform: translateX(-50%);
  top: 100% !important;
}

.dropdown-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -16px;
  height: 16px;
  background: transparent;
}

/* New multi-column dropdown menu */
.dropdown-menu-columns {
  display: flex;
  padding: 32px 40px !important;
  width: auto;
  gap: 48px;
  background: #ffffffec;
}

.course-column {
  flex: 1;
}

.course-column .dropdown-header {
  border-bottom: 1px dashed #db1f1f;
  padding-bottom: 8px;
  margin-bottom: 16px;
}

.dropdown-header {
  font-family: "SVN-Gilroy", sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.05;
  color: #db1f1f;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding: 0;
  list-style: none;
}

.dropdown-header a{
  font-family: "SVN-Gilroy", sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.05;
  color: #db1f1f;
  text-transform: uppercase;
  list-style: none;
  text-decoration: none;
}

.header-library .dropdown-menu {
    left: -182% !important;
}

.dropdown-item {
  font-family: "SVN-Gilroy", sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #252525;
  padding: 8px 20px 8px 0; /* reserve space on the right for arrow */
  transition: all 0.2s ease;
  white-space: nowrap;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  margin-right: 24px;
}

/* Pre-create the ::after element so layout doesn't shift on hover */
.dropdown-item::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 14px; /* matches hover arrow width */
  height: 14px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
  color: #db1f1f;
  background: transparent;
}

.dropdown-item:hover:after,
.dropdown-item:focus:after {
  content: "➔";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #db1f1f;
  font-size: 14px;
  line-height: 1;
  opacity: 1;
}

/* Arrow icon rotation */
.icon-down {
  width: 12px;
  height: 7px;
  transition: transform 0.2s ease;
}

/* Remove arrow rotation */

/* Mobile navbar toggler */
.navbar-toggler {
  padding: 4px 8px;
  border: none !important;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.search-container {
  background: transparent;
  border: none;
  padding: var(--spacing-xs);
  border-radius: 99px;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 10.8px 0 hsla(0, 75%, 49%, 0.12);
  transition: var(--transition);
}

.search-container:hover {
  transform: scale(1.02);
  box-shadow: inset 0 0 15px 0 hsla(0, 75%, 49%, 0.2);
}

.search-container.show {
  border-radius: var(--spacing-md);
  padding: var(--spacing-xs) var(--spacing-sm);
  animation: scaleIn 0.3s ease-out;
}

.search-input {
  border: none;
  display: none;
  width: 134px;
  transition: var(--transition);
}

.search-input.show {
  display: block;
  animation: fadeInLeft 0.3s ease-out;
}

.search-input:focus {
  outline: none;
  box-shadow: none;
}

.header-icon .social-networks{
    display: flex;
    gap: 5px;
}

.header-icon {
    padding: 0 10px;
}

.header-icon-mobile{
  display: none;
}
.header-icon .social-networks{
    display: flex;
    gap: 5px;
}
.header-icon .social-networks div:last-child{
  padding: 0px;
}

.header-icon .social-networks div{
    width: 24px;
    height: 24px;
    text-align: center;
}

.header-icon {
    padding: 0 10px;
}

.header-icon-mobile{
  display: none;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .navbar-custom {
    height: auto;
    min-height: 72px;
  }

  .nav-center {
    margin: 1rem 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar-actions {
    margin: 1rem 0;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .nav-link-custom {
    height: auto;
    padding: 0.5rem 0 !important;
    width: 100%;
  }

  .navbar-actions .nav-link-custom {
    width: auto;
    margin-right: 1rem;
  }
}

@media (max-width: 767.98px) {
    .header-icon-mobile{
    display: block;
    }
    .header-icon .social-networks{
        gap: 2px;
    }

  .navbar-brand-logo {
    height: 15px;
  }
}
