/* Minimal slider pagination: active dot filled, inactive dots outlined */
button[aria-label^="Страница "] {
  box-sizing: border-box;
  min-width: 9px !important;
  width: 9px !important;
  min-height: 9px !important;
  height: 9px !important;
  padding: 0 !important;
  border: 1px solid #c5a059 !important;
  border-radius: 50% !important;
  background: transparent !important;
  box-shadow: none !important;
  color: transparent !important;
  font-size: 0 !important;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

/* Active page */
button[aria-label^="Страница "][class*="w-8"] {
  background: #c5a059 !important;
  border-color: #c5a059 !important;
  transform: scale(1.05);
}

/* Slider navigation arrows */
button[aria-label="Предыдущий кейс"],
button[aria-label="Следующий кейс"] {
  position: relative;
  z-index: 5;
}

/* Doctors slider: align navigation with the heading, like clinical cases */
section#doctors > div {
  position: relative;
}

section#doctors > div > div:nth-child(2) {
  position: absolute;
  top: 76px;
  right: 24px;
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 5;
}

@media (max-width: 640px) {
  section#doctors > div > div:nth-child(2) {
    top: 118px;
    right: 16px;
  }
}

/* Align doctors heading and description to the left */
section#doctors > div > div:first-child {
  text-align: left !important;
}

section#doctors > div > div:first-child > p {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

@media (max-width: 640px) {
  section#doctors > div > div:first-child > h2 {
    max-width: calc(100% - 100px);
  }

  section#doctors > div > div:first-child > p {
    max-width: 100%;
  }
}

/* Doctors navigation: neutral by default, gold only on hover */
header nav a[href="#doctors"],
header nav a[href="/#doctors"] {
  color: var(--foreground, inherit) !important;
  font-weight: 500 !important;
}
header nav a[href="#doctors"]:hover,
header nav a[href="/#doctors"]:hover {
  color: var(--gold) !important;
}

/* Override React Router active styling for the doctors menu item */
header nav a[aria-current="page"][href$="#doctors"] {
  color: var(--foreground) !important;
  font-weight: 500 !important;
}
header nav a[href$="#doctors"]:hover {
  color: var(--gold) !important;
}

/* Keep the doctors section visible below the sticky header */
section#doctors {
  scroll-margin-top: 96px;
}
