/* Desktop navigation styles */
.desktop-nav {
  position: fixed;
  display: flex;
  justify-content: space-between;
  width: 100%;
  background: #ffffff;
  min-height: 90px;
  z-index: 999;
}

.desktop-nav .nav-left,
.desktop-nav .nav-right {
  display: flex;
  align-items: center;
}

.desktop-nav .nav-left {
  flex: 1 1 50%;
  background-color: #ffffff;
}

.desktop-nav .nav-right {
  flex: 1 1 50%;
  background-color: #0e3561;
  padding: 12px 24px;
  color: #ffffff;
  justify-content: space-between;
}

/* Logo */
.logo img {
  height: 50px;
  width: auto;
  display: block;
}

/* Navigation links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
  margin-left: 40px;
}

.nav-links li a {
  text-decoration: none;
  color: #0c3255;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s ease;

  font-weight: 400;
  font-size: 14px;
  line-height: 28px;
  letter-spacing: 0%;
}

.nav-links li a:hover {
  color: #2b5d9c;
}

/* Arrow styling */
.nav-links .arrow {
  font-size: 10px;
  margin-left: 4px;
}

/* Contact info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-right: 24px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  line-height: 1.2;

  font-weight: 400;
  font-size: 14px;
}

.info-item a {
  color: inherit;
  text-decoration: none;
  font-size: 13px;
}

.info-item a:hover {
  text-decoration: underline;
}

.nav-right .icon,
.mobile-contact .icon {
  color: #84a7c6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Button */
.btn-appointment {
  background-color: #4b9cd3;
  padding: 5px 20px;
  border-radius: 24px;
  font-weight: 400;
  font-size: 14px;
  line-height: 37px;
  letter-spacing: 0%;

  display: inline-block;
  transition: background-color 0.2s ease;
  white-space: nowrap;
}

.btn-appointment:hover {
  background-color: #4779b0;
}

/* Mobile nav top bar */
.mobile-nav {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background-color: #ffffff;
  position: fixed;
  min-height: 80px;
  width: 100%;
  z-index: 999;
}

.mobile-nav .logo img {
  height: 42px;
  width: auto;
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 26px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger .bar {
  width: 100%;
  height: 3px;
  background-color: #0e3561;
  margin: 3px 0;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hamburger animation when menu is open */
.hamburger.open .bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.hamburger.open .bar:nth-child(2) {
  opacity: 0;
}
.hamburger.open .bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Full-screen mobile menu overlay */
.mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100vh;
  background-color: #ffffff;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  z-index: 999;
  overflow-y: auto;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  box-shadow: 0px 4px 16px 0px #00000012;
  min-height: 80px;
}

.mobile-menu-header .logo img {
  height: 42px;
  width: auto;
}

.close-menu {
  font-size: 32px;
  line-height: 1;
  background: transparent;
  border: none;
  color: #0e3561;
  cursor: pointer;
}

.mobile-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  padding: 2rem 2rem 2rem 2rem;
  gap: 3rem;
  flex-grow: 1;
}

.mobile-links li a {
  font-weight: 400;
  font-size: 18px;
  line-height: 28px;
  letter-spacing: 0%;
  color: #0c3255;
}

.mobile-links li a .arrow {
  font-size: 12px;
  margin-left: 6px;
}

.mobile-contact {
  background-color: #0c3255;
  color: #ffffff;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-contact .info-item {
  font-size: 14px;
}

.mobile-contact .info-item a {
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
}

.mobile-contact .info-item a:hover {
  text-decoration: underline;
}

.mobile-contact .btn-appointment {
  align-self: flex-start;
  margin-top: 3rem;
  width: 100%;
  text-align: center;
}

/* Desktop: wrapper for About */
.about-item {
  position: relative;
}

/* Shared dropdown menu styling */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  list-style: none;
  padding: 8px 0;
  margin: 0;
  min-width: 180px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 1500;
  display: none;
}

.dropdown-menu li a {
  display: block;
  padding: 8px 16px;
  color: #0e3561;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

.dropdown-menu li a:hover {
  background-color: #f5f5f5;
}

/* Rotate arrows when open */
.about-item.open > a .arrow,
.about-item-mobile.open > .about-toggle .arrow {
  transform: rotate(180deg);
}

/* Mobile dropdown adjustments */
.about-item-mobile .dropdown-menu {
  position: static;
  border: none;
  box-shadow: none;
  padding-left: 20px;
  padding-top: 4px;
  padding-bottom: 8px;
}
.about-item-mobile .dropdown-menu li a {
  color: #0e3561;
  padding: 6px 0;
  font-size: 16px;
}

/* Toggle element styling for mobile */
.about-toggle {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 18px;
  font-weight: 500;
  color: #0e3561;
  user-select: none;
}
.about-toggle .arrow {
  font-size: 12px;
  margin-left: 6px;
  transition: transform 0.3s ease;
}

/* Make the desktop arrow smoothly rotate */
.nav-links .arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

.dropdown {
  display: none;
  flex-direction: column;
}

.dropdown.show {
  display: flex;
}

.nav-item.open img {
  transform: rotate(180deg);
}

.mobile-dropdown {
  border-top: 1px solid #d9d9d9;
  border-bottom: 1px solid #d9d9d9;
}

.mobile-dropdown li a {
  font-size: 16px;
}

/* Responsive breakpoints */
@media (max-width: 991px) {
  /* Hide desktop and show mobile navigation on small screens */
  .desktop-nav {
    display: none;
  }
  .mobile-nav {
    display: flex;
  }

  .dropdown-menu {
    border-width: 1px, 0px, 1px, 0px;
    border-style: solid;
    border-color: #d9d9d9;
    box-shadow: none !important;
  }
}

@media (min-width: 992px) {
  .mobile-nav,
  .mobile-menu {
    display: none !important;
  }
}
