/* ===============================
    Base nav styling
=============================== */
nav {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  overflow-x: auto; /* enable horizontal scroll if too wide */
}

nav::-webkit-scrollbar {
  display: none; /* hides scrollbar on mobile for a cleaner look */
}

nav a,
nav button {
  font-size: 20px;
  padding: 12px 10px;
  text-decoration: none;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

nav a+a,
nav button+button {
  margin-left: 10px;
}

nav img {
  height: 48px;
  width: auto;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 4px;
}

.breadcrumbs a {
  display: flex;
  align-items: center;
  gap: 10px; /* small gap between > and text */
  text-decoration: none;
  color: inherit;
}

.breadcrumbs span {
  font-size: 20px;
}

.speaker-button {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background-color: rgba(255, 255, 255, 0.5);
    color: #007bff;
    padding: 8px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.speaker-button:hover {
    background-color: rgba(255, 255, 255, 0.7);
}

/* ===============================
    Medium screens (≤768px)
=============================== */
@media (max-width: 768px) {
  nav {
    height: 80px;
  }

  nav img {
    height: 40px;
  }

  nav a,
  nav button {
    font-size: 18px;
    padding: 10px 16px;
  }

  nav span {
    font-size: 22px;
  }

  .breadcrumbs {
    flex-direction: column;
    align-items: flex-start;
    margin-left: 30px; /* indent when stacked */
    gap: 4px; /* vertical spacing when stacked */
  }
}

/* ===============================
    Small screens (≤480px)
=============================== */
@media (max-width: 480px) {
  nav {
    height: auto; /* allow nav to expand naturally if needed */
  }

  nav img {
    height: 32px;
  }

  nav a,
  nav button {
    font-size: 16px;
    padding: 6px 10px;
  }

  nav span {
    font-size: 18px;
  }

  .breadcrumbs {
    flex-direction: column;
    align-items: flex-start;
    margin-left: 0px; /* indent when stacked */
    gap: 0px; /* vertical spacing when stacked */
  }
}
