.nd-container,
.nd-container * {
  font-family: var(--e-global-typography-text-font-family, inherit);
}
.nd-container svg,
.nd-container svg * {
  font-family: unset;
}
.nd-archive-head h1,
.nd-hero-content h1,
.nd-panel h2,
.nd-panel h3,
.nd-card-meta h2 {
  font-family: var(--e-global-typography-primary-font-family, var(--e-global-typography-text-font-family, inherit));
}
.nd-body {
  background: #f6faff;
  color: #111d25;
}
.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}
.nd-container {
  max-width: var(--noor-content-max-width, 1140px);
  margin-inline: auto;
  padding-block: 2rem 5rem;
  padding-inline: 1rem;
  box-sizing: border-box;
}
.nd-archive-head h1 {
  color: #001b44;
  margin: 0 0 8px;
}
.nd-breadcrumbs {
  margin-bottom: 14px;
  font-size: 13px;
  color: #6b7280;
}
.nd-breadcrumbs a,
.nd-breadcrumbs .rank-math-breadcrumb a {
  color: #00658b !important;
  text-decoration: none;
}
.nd-breadcrumbs a:hover,
.nd-breadcrumbs .rank-math-breadcrumb a:hover {
  color: #001b44 !important;
}
.nd-archive-head p { color: #5f6b73; margin: 0; }
.nd-archive-hero {
  margin-bottom: 28px;
}
.nd-archive-hero h1 {
  font-size: 27px;
  font-weight: 600;
  line-height: 1.2;
}
.nd-archive-hero p {
  max-width: 760px;
  line-height: 1.9;
}
.nd-archive-layout {
  display: grid;
  grid-template-columns: var(--noor-sidebar-width, 18rem) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}
.nd-sidebar {
  position: relative;
  min-width: 0;
  max-width: 100%;
}
.nd-filter-card {
  background: #eaf5ff;
  border: 1px solid #d7e4ef;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 16px;
}
.nd-filter-label,
.nd-filter-title {
  display: block;
  margin: 0 0 10px;
  color: #001b44;
  font-size: 14px;
  font-weight: 700;
}
.nd-search-form {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #c7d9ea;
  border-radius: 12px;
  padding: 4px;
}
.nd-search-form input {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 12px 12px;
  font-size: 15px;
  outline: none;
}
.nd-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 0;
  background: #f2f8ff;
  color: #001b44;
  cursor: pointer;
  transition: all 0.2s ease;
}
.nd-icon-btn:hover {
  background: #dcecff;
  color: #003e7a;
}
.nd-icon-btn .material-symbols-outlined {
  font-size: 21px;
  line-height: 1;
}
.nd-search-form:focus-within {
  border-color: #74b8e9;
  box-shadow: 0 0 0 3px rgba(116, 184, 233, 0.2);
}
.nd-search-form input::placeholder {
  color: #9197a6;
}
.nd-search-form button {
  flex: 0 0 auto;
}

.nd-sidebar .nd-filter-card {
  box-shadow: 0 1px 2px rgba(0, 27, 68, 0.03);
}

.nd-archive-main {
  min-width: 0;
}

.nd-archive-main .nd-card-meta h2 {
  word-break: break-word;
}

.nd-archive-main .nd-card-meta .nd-subtitle {
  word-break: break-word;
}

.nd-archive-main .nd-card-stats {
  flex-wrap: wrap;
}

.nd-archive-main .nd-card-footer {
  margin-top: 14px;
}

.nd-archive-main .nd-profile-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
}

/* RTL “more” chevron — do not use Material ligature names (font often not loaded on services archives). */
.nd-archive-main .nd-profile-link::after {
  content: "\203A";
  border: 0;
  font-family: inherit;
  font-size: 1.5em;
  line-height: 1;
  opacity: 0.85;
}
.nd-category-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nd-category-link {
  color: #485464;
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d7e4ef;
  background: #fff;
  transition: all 0.18s ease;
}
.nd-category-link--child {
  font-size: 14px;
  padding-inline-start: 26px;
}
.nd-category-link--child::before {
  content: "-";
  margin-inline-end: 0.35em;
  opacity: 0.8;
}
.nd-category-link:hover {
  color: #001b44;
  background: #eff7ff;
  border-color: #b9d3ea;
  font-weight: 400;
  transform: translateX(-2px);
}
.nd-category-link.is-active {
  color: #001b44;
  background: #e0effc;
  border-color: #00658b;
  font-weight: 500;
  box-shadow: 0 0 0 1px rgba(0, 101, 139, 0.12);
  transform: translateX(-2px);
}
.nd-category-link.is-active:hover {
  background: #d4e8fa;
  border-color: #00658b;
}
.nd-limit-list .nd-category-link:nth-child(n+6) {
  display: none;
}
.nd-limit-list.is-expanded .nd-category-link:nth-child(n+6) {
  display: block;
}
/* Neutral buttons: override theme/browser red defaults */
.nd-btn-neutral,
.nd-container .nd-btn-neutral {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  font: inherit;
  line-height: 1.4;
  box-sizing: border-box;
  background-color: #fff !important;
  color: #001b44 !important;
  border: 1px solid #c7d9ea !important;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  text-decoration: none !important;
}
.nd-btn-neutral:hover {
  background-color: #eff7ff !important;
  color: #003e7a !important;
  border-color: #b9d3ea !important;
}
.nd-btn-neutral:focus {
  outline: none !important;
  box-shadow: 0 0 0 2px #74b8e9 !important;
}
.nd-btn-neutral:focus:not(:focus-visible) {
  box-shadow: none !important;
}
.nd-btn-neutral:focus-visible {
  box-shadow: 0 0 0 2px #74b8e9 !important;
}
.nd-btn-neutral:active {
  background-color: #e3f0fb !important;
  color: #001b44 !important;
  border-color: #9ec5e0 !important;
}

.nd-filter-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nd-search-combined {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.nd-search-combined .nd-search-field:last-of-type {
  margin-bottom: 0;
}
.nd-search-combined .nd-filter-label {
  margin: 0 0 12px;
}
.nd-search-combined .nd-search-form {
  border: none !important;
  box-shadow: none !important;
  background: #fff;
  border-radius: 10px;
  padding: 0;
}
.nd-search-combined .nd-search-form:focus-within {
  border: none !important;
  box-shadow: none !important;
}
.nd-search-combined .nd-search-form input {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: #fff;
  border-radius: 10px;
  padding: 12px 10px;
}
.nd-search-combined .nd-search-form input:focus {
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(116, 184, 233, 0.45) !important;
}
.nd-search-combined .nd-filter-submit {
  margin-top: 6px;
  align-self: stretch;
}

.nd-filter-submit {
  width: 100%;
  margin-top: 4px;
}

.nd-show-more-btn {
  margin-top: 10px;
  width: 100%;
}
.nd-show-more-btn.nd-btn-neutral {
  margin-top: 10px;
}
.nd-muted {
  color: #747781;
  font-size: 13px;
}
.nd-archive-toolbar {
  background: #e3f0fb;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.nd-sort-toolbar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.nd-sort-toolbar .nd-sort-label {
  margin: 0;
  white-space: nowrap;
}
.nd-sort-select {
  font: inherit;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #c7d9ea;
  background: #fff;
  color: #001b44;
  min-width: 10rem;
  cursor: pointer;
}
.nd-sort-select:focus {
  outline: none;
  box-shadow: 0 0 0 2px #74b8e9;
}
.nd-count {
  color: #001b44;
  font-size: 14px;
  font-weight: 700;
}
.nd-sort-label {
  color: #434750;
  font-size: 13px;
}
.nd-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.nd-card {
  background: #fff;
  border: 1px solid #d7e4ef;
  border-radius: 14px;
  padding: 16px;
}
.nd-card-top {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.nd-card-avatar {
  width: 88px;
  height: 88px;
  border-radius: 12px;
  overflow: hidden;
  flex: 0 0 88px;
}
.nd-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.nd-card-meta h2 {
  margin: 0 0 6px;
  color: #001b44;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}
.nd-service-card .nd-card-meta h2 a {
  color: inherit;
  text-decoration: none;
}
.nd-service-card .nd-card-meta h2 a:hover {
  color: #00658b;
}
.nd-card-avatar-link {
  display: block;
  text-decoration: none;
}
.nd-card-meta .nd-subtitle {
  margin: 0 0 10px;
  color: #00658b;
  font-size: 15px;
  font-weight: 700;
}
.nd-card-stats {
  display: flex;
  gap: 14px;
  color: #434750;
  font-size: 12px;
}
.nd-card-branches {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.nd-card-branches a {
  display: inline-block;
  text-decoration: none;
  color: #004c6a;
  background: #eaf5ff;
  border: 1px solid #d7e4ef;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
}
.nd-card-footer {
  border-top: 1px solid #e9edf2;
  margin-top: 12px;
  padding-top: 12px;
  display: flex;
  justify-content: flex-end;
}
.nd-profile-link {
  color: #001b44;
  font-weight: 500;
  text-decoration: none;
}
.nd-profile-link:hover {
  color: #00658b;
}
.nd-empty {
  background: #fff;
  border: 1px solid #d7e4ef;
  border-radius: 12px;
  padding: 16px;
  margin: 0;
  box-sizing: border-box;
}

/* Empty state sits in .nd-cards-grid (2 cols); span full main width */
.nd-cards-grid > .nd-empty {
  grid-column: 1 / -1;
  width: 100%;
}
.nd-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}
.nd-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 36px;
  border-radius: 8px;
  text-decoration: none;
  background: #fff;
  color: #434750;
  border: 1px solid #d7e4ef;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
}
/* Numeric pages: fixed square (prev/next labels need more room) */
.nd-pagination .page-numbers:not(.prev):not(.next):not(.dots) {
  width: 36px;
  min-width: 36px;
  padding: 0;
}
.nd-pagination .page-numbers.prev,
.nd-pagination .page-numbers.next {
  width: auto;
  min-width: 36px;
  padding: 0 14px;
  white-space: nowrap;
}
.nd-pagination .page-numbers.dots {
  min-width: auto;
  width: auto;
  padding: 0 4px;
  border-color: transparent;
  background: transparent;
  font-weight: 500;
  color: #6b7280;
}
.nd-pagination .page-numbers.current {
  background: #001b44;
  color: #fff;
  border-color: #001b44;
}
.nd-single .nd-hero {
  display: grid;
  grid-template-columns: var(--noor-sidebar-width, 18rem) minmax(0, 1fr);
  gap: 3rem;
  margin-bottom: 1rem;
  align-items: stretch;
}
.nd-single {
  font-size: 15px;
}
.nd-hero-image {
  min-width: 0;
}
.nd-hero-image img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid #d7e4ef;
}
.nd-hero-content {
  min-width: 0;
}

/* Two columns: text column matches image height; bio box grows to fill. Single column: reset in @media below. */
@media (min-width: 901px) {
  .nd-single .nd-hero-content {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .nd-single .nd-about {
    flex: 1 1 auto;
    min-height: 0;
  }
}
.nd-hero-content h1 { margin: 8px 0; color: #001b44; }
.nd-badge {
  background: #e0f6e8;
  color: #00522c;
  border-radius: 999px;
  font-size: 14px;
  display: inline-block;
  padding: 6px 12px;
}
.nd-subtitle { color: #00658b; font-size: 18px; margin: 0 0 14px; }
.nd-about { background: #fff; padding: 14px; border-radius: 12px; border: 1px solid #d7e4ef; font-size: 15px; line-height: 1.8; }
.nd-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-top: 14px; }
.nd-stats div { background: #fff; border: 1px solid #d7e4ef; border-radius: 10px; padding: 10px; text-align: center; }
.nd-stats strong { color: #001b44; display: block; font-size: 20px; }
.nd-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--noor-sidebar-width, 18rem);
  gap: 3rem;
  margin-bottom: 0.5rem;
  align-items: stretch;
}
/* Main + sidebar columns: equal height (stretch with grid); inner panel fills the cell */
.nd-main-grid > .nd-panel {
  height: 100%;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.nd-main-grid > .nd-panel > .nd-content {
  flex: 1 1 auto;
  min-height: 0;
}
/* Doctor profile: schedule column ~35% width, tighter gutter */
.nd-single .nd-main-grid {
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) 35%;
}
.nd-single .nd-main-grid--single-column {
  grid-template-columns: 1fr;
}
.nd-single .nd-main-grid > aside.nd-panel {
  font-size: 15px;
}
.nd-single .nd-main-grid > aside.nd-panel .nd-schedule-row {
  padding: 9px 0;
}
.nd-panel { background: #fff; border: 1px solid #d7e4ef; border-radius: 12px; padding: 18px; margin-bottom: 16px; }
.nd-panel h2, .nd-panel h3 { color: #001b44; margin-top: 0; }
.nd-schedule-row { display: flex; justify-content: space-between; border-bottom: 1px solid #edf3f8; padding: 8px 0; }
.nd-emergency { margin-top: 14px; }
.nd-emergency-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-decoration: none;
  color: #93000a;
  background: #ffe2de;
  border: 1px solid #ffccc6;
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 700;
}
.nd-emergency-btn:hover {
  background: #ffd6d0;
}
.nd-emergency-btn span {
  font-size: 12px;
}
.nd-emergency-btn strong {
  font-size: 16px;
  letter-spacing: 0.02em;
}
.nd-social-links { display: flex; flex-wrap: wrap; gap: 10px; }
.nd-social-links a {
  text-decoration: none;
  background: #e3f0fb;
  color: #001b44;
  border-radius: 8px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 14px;
  line-height: 1.4;
  overflow: visible;
}
.nd-social-links a > span {
  line-height: inherit;
}
.nd-social-links .nd-social-svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  display: block;
  overflow: visible;
  align-self: baseline;
  vertical-align: baseline;
}
.nd-social-links .material-symbols-outlined {
  font-size: 18px;
}
.nd-branches { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); }
.nd-branch { background: #f8fbff; border: 1px solid #d7e4ef; border-radius: 10px; padding: 12px; }

/* Services single template (archive uses shared .nd-* doctor layout) */
.ns-service-single .ns-service-hero {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin-bottom: 24px;
}
.ns-service-hero-media {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #d7e4ef;
  background: #eaf5ff;
}
.ns-service-hero-media img {
  width: 100%;
  height: auto;
  display: block;
}
.ns-service-hero-text h1 {
  margin: 0 0 10px;
  color: #001b44;
  line-height: 1.2;
}
.ns-service-hero-icon {
  font-size: 2.5rem;
  color: #00658b;
  margin-bottom: 8px;
}
.ns-service-terms {
  margin: 0;
  font-size: 14px;
  color: #5f6b73;
}
.ns-service-terms a {
  color: #00658b;
  text-decoration: none;
}
.ns-service-terms a:hover {
  text-decoration: none;
}
.ns-service-widget-body {
  margin: 0;
  color: #111d25;
  line-height: 1.85;
  font-size: 15px;
}
.ns-service-three-title {
  margin: 0 0 14px;
  color: #001b44;
  font-size: 1.25rem;
}
.ns-service-three-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.ns-service-three-item h3 {
  margin-top: 0;
  color: #001b44;
  font-size: 1.05rem;
}
.ns-service-three-content {
  font-size: 14px;
  line-height: 1.75;
  color: #434750;
}
.ns-service-elementor .nd-content {
  font-size: 15px;
  line-height: 1.85;
}

@media (max-width: 600px) {
  .ns-service-single {
    padding-left: max(1rem, env(safe-area-inset-left, 0px));
    padding-right: max(1rem, env(safe-area-inset-right, 0px));
  }
  .nd-archive-main .nd-card-meta h2 {
    font-size: 1rem;
  }
  .nd-archive-main .nd-card-meta .nd-subtitle {
    font-size: 14px;
  }
  .nd-archive-main .nd-profile-link {
    font-size: 13px;
  }
}

@media (max-width: 900px) {
  .nd-archive-layout,
  .nd-cards-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .nd-archive-hero h1 {
    font-size: 25px;
  }
  .nd-single .nd-hero,
  .nd-single .nd-main-grid,
  .nd-main-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .ns-service-single .ns-service-hero {
    grid-template-columns: 1fr;
  }
  .ns-service-hero-media {
    display: none;
  }
  .ns-service-three-grid {
    grid-template-columns: 1fr;
  }
}
