@font-face {
  font-family: 'IRANSansX';
  src: url('/Fonts/IRANSansXFaNum-Regular.woff2') format('woff2'),
       url('/Fonts/IRANSansXFaNum-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IRANSansX';
  src: url('/Fonts/IRANSansXFaNum-Bold.woff2') format('woff2'),
       url('/Fonts/IRANSansXFaNum-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IRANSansX-Display';
  src: url('/Fonts/IRANSansX-Bold.woff2') format('woff2'),
       url('/Fonts/IRANSansX-Bold.woff') format('woff');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

html[dir="rtl"] body {
  font-family: 'IRANSansX', sans-serif;
}

html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3,
html[dir="rtl"] h4, html[dir="rtl"] h5, html[dir="rtl"] h6,
html[dir="rtl"] .display-1, html[dir="rtl"] .display-2,
html[dir="rtl"] .display-3, html[dir="rtl"] .display-4,
html[dir="rtl"] .display-5, html[dir="rtl"] .display-6 {
  font-family: 'IRANSansX-Display', sans-serif !important;
}

html[dir="rtl"] .display-1,
html[dir="rtl"] .display-2,
html[dir="rtl"] .display-3,
html[dir="rtl"] .display-4,
html[dir="rtl"] .display-5,
html[dir="rtl"] .display-6 {
  font-size: 2rem !important;
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Pill-style language switcher (top bar) */
.lang-pill {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}

.lang-pill a {
  padding: 4px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.2s ease;
  line-height: 1.4;
}

.lang-pill a:hover {
  color: #fff;
}

.lang-pill a.active {
  background: var(--bs-primary);
  color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Footer: match template body color (#8d8d8d) since bootstrap.rtl.min.css
   sets a too-dark default (#212529) that's invisible on the dark footer bg */
.footer .footer-item a,
.footer .footer-item p,
.footer .footer-item {
  color: #8d8d8d;
}

.footer .footer-item a:hover {
  color: var(--bs-primary);
}

/* ===== Site Theme: blue background + yellow text ===== */
:root {
  --theme-bg-blue: rgb(170, 235, 255);
  --theme-bg-blue-dark: rgb(89, 130, 143);
  --theme-text-yellow: rgb(255, 203, 9);
  --bs-primary: rgb(255, 203, 9);
  --bs-primary-rgb: 255, 203, 9;
}

/* Top bar — darker shade of the navbar blue */
.top-bar {
  background-color: var(--theme-bg-blue-dark) !important;
  color: #fff !important;
}
.top-bar a, .top-bar span, .top-bar i, .top-bar small, .top-bar p,
.top-bar .text-light, .top-bar .text-primary {
  color: #fff !important;
}
.top-bar .lang-pill a {
  color: rgba(255, 255, 255, 0.75) !important;
}
.top-bar .lang-pill a.active {
  background: var(--theme-text-yellow) !important;
  color: #0a3d5e !important;
}

/* Social-media icons inside the topbar buttons should be yellow on white */
.top-bar a.btn.btn-light i {
  color: var(--theme-text-yellow) !important;
}
.top-bar a.btn.btn-light:hover i {
  color: #0a3d5e !important;
}

/* Navbar */
.navbar.navbar-light.bg-white {
  background-color: var(--theme-bg-blue) !important;
}
.navbar .nav-link,
.navbar .navbar-brand {
  color: var(--theme-text-yellow) !important;
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: #b58a00 !important;
  background-color: transparent;
}
.navbar .dropdown-menu {
  background-color: var(--theme-bg-blue);
}
.navbar .dropdown-item {
  color: #1f1f1f !important;
}
.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus,
.navbar .dropdown-item.active {
  color: #000 !important;
  background-color: rgba(255, 255, 255, 0.35);
}

/* Founders section (homepage, just below the slider) */
.founders-section {
  background: linear-gradient(180deg, #f7fbfd 0%, #ffffff 100%);
}
.founder-card {
  transition: transform .35s ease, box-shadow .35s ease;
}
.founder-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 .75rem 2rem rgba(0,0,0,.10) !important;
}
.founder-card .founder-photo img {
  transition: transform .5s ease;
}
.founder-card:hover .founder-photo img {
  transform: scale(1.04);
}
.founder-card .founder-bio {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.9;
}

/* Appointment / contact CTA form box — use theme blue instead of the template's salmon tint */
.appointment .appointment-form {
  background: rgba(170, 235, 255, 0.35) !important;
}

/* About section: keep the inner circle decorative (small, fixed size) instead of stretching to full image */
.about .about-img .about-img-inner {
  width: 180px !important;
  height: 180px !important;
  overflow: hidden;
}
.about .about-img .about-img-inner img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

/* Blog cards: show portrait seminar images fully instead of cropping them. */
.blog-card-image {
  height: auto;
  width: 100%;
  object-fit: contain;
  background: transparent;
}

.container-fluid.py-5 .col-lg-8 .card.h-100.shadow-sm > img.card-img-top[style*="height: 200px"],
.container-fluid.pb-5 .col-lg-8 .card.h-100.shadow-sm > img.card-img-top[style*="height: 200px"] {
  height: auto !important;
  object-fit: contain !important;
  background: transparent !important;
}

@media (max-width: 991.98px) {
  .about .about-img .about-img-inner {
    width: 140px !important;
    height: 140px !important;
  }
}

/* Remove underline from links inside topbar and footer */
.top-bar a,
.footer a {
  text-decoration: none !important;
}

/* Footer */
.footer {
  background: var(--theme-bg-blue-dark) !important;
  background-image: none !important;
}
/* Copyright bar — black */
.copyright {
  background: #000 !important;
  background-image: none !important;
}
.footer,
.footer h1, .footer h2, .footer h3, .footer h4, .footer h5, .footer h6,
.footer p, .footer span, .footer a, .footer i,
.footer .footer-item,
.footer .footer-item a,
.footer .footer-item p,
.copyright,
.copyright a, .copyright span, .copyright i,
.copyright .text-white, .copyright .text-light {
  color: #fff !important;
}
.footer .footer-item a:hover,
.copyright a:hover {
  color: rgba(255, 255, 255, 0.75) !important;
}

/* Primary buttons */
.btn-primary {
  background-color: var(--theme-text-yellow) !important;
  border-color: var(--theme-text-yellow) !important;
  color: #0a3d5e !important;
}
.btn-primary:hover {
  background-color: #e6b600 !important;
  border-color: #e6b600 !important;
  color: #0a3d5e !important;
}

/* text-primary -> yellow */
.text-primary {
  color: var(--theme-text-yellow) !important;
}

/* Patient-safety error reporting form */
.error-report-page {
  background: linear-gradient(180deg, #f5fbfe 0%, #ffffff 30%, #f8fafc 100%);
}

.error-report-intro {
  background: #fff;
  border-inline-start: 5px solid var(--theme-text-yellow);
}

.report-kicker {
  display: inline-block;
  color: #0a6388;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.report-confidentiality-note {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem;
  color: #0a3d5e;
  background: rgba(170, 235, 255, .3);
  border: 1px solid rgba(10, 99, 136, .12);
  border-radius: 1rem;
}

.report-confidentiality-note > i {
  flex: 0 0 auto;
  color: #0a6388;
  font-size: 2rem;
}

.report-confidentiality-note strong,
.report-confidentiality-note small {
  display: block;
}

.report-section {
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid #e6edf1;
  border-radius: 1rem;
}

.report-section-heading {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e9eff3;
}

.report-section-heading h3 {
  margin: 0 0 .25rem;
  color: #0a3d5e;
  font-size: 1.25rem;
}

.report-section-heading p {
  margin: 0;
  color: #6c757d;
  font-size: .92rem;
}

.report-step {
  display: inline-flex;
  flex: 0 0 2.35rem;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  color: #0a3d5e;
  background: var(--theme-text-yellow);
  border-radius: 50%;
  font-weight: 800;
}

.error-report-form .form-label {
  color: #263b46;
  font-weight: 600;
}

.error-report-form .required-label::after {
  content: " *";
  color: #c92a2a;
}

.error-report-form .optional-label {
  padding: .1rem .45rem;
  color: #6c757d;
  background: #eef2f4;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 400;
}

.error-report-form .form-control,
.error-report-form .form-select {
  min-height: 3rem;
  border-color: #d8e3e8;
  border-radius: .7rem;
}

.error-report-form textarea.form-control {
  min-height: auto;
  line-height: 1.9;
}

.error-report-form .form-control:focus,
.error-report-form .form-select:focus {
  border-color: #55b8db;
  box-shadow: 0 0 0 .2rem rgba(85, 184, 219, .18);
}

.report-submit-section {
  background: linear-gradient(135deg, #effaff 0%, #fffdf5 100%);
}

.report-captcha {
  padding: .65rem 1rem;
  color: #0a3d5e;
  background: #fff;
  border: 1px dashed #0a6388;
  border-radius: .65rem;
  font-family: "Courier New", monospace;
  font-size: 1.05rem;
  font-weight: 700;
  white-space: nowrap;
}

.report-captcha-input {
  max-width: 8rem;
  text-align: center;
}

@media (min-width: 768px) {
  .report-section {
    padding: 2rem;
  }
}

/* Homepage patient-safety link */
.error-report-home-cta {
  background: linear-gradient(180deg, #fff 0%, #f4fbfe 100%);
}

.error-report-home-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(10, 99, 136, .14);
}

.error-report-home-card::after {
  position: absolute;
  inset-block-start: -5rem;
  inset-inline-end: -4rem;
  width: 12rem;
  height: 12rem;
  background: rgba(170, 235, 255, .24);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.error-report-home-icon {
  display: inline-flex;
  flex: 0 0 4rem;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  color: #0a3d5e;
  background: var(--theme-text-yellow);
  border-radius: 1rem;
  font-size: 2rem;
}

.error-report-home-card .btn,
.error-report-home-card small {
  position: relative;
  z-index: 1;
}

@media (max-width: 575.98px) {
  .error-report-home-icon {
    flex-basis: 3rem;
    width: 3rem;
    height: 3rem;
    font-size: 1.5rem;
  }
}

/* Medical team cards: readable justified copy in both site directions. */
.team-page .team-member-card .team-card-text {
  text-align: justify;
  text-justify: inter-word;
  line-height: 1.9;
  hyphens: auto;
}

html[dir="rtl"] .team-page .team-member-card .team-card-text {
  direction: rtl;
}

html[dir="ltr"] .team-page .team-member-card .team-card-text {
  direction: ltr;
}

/* Long-form public copy: justify prose without affecting UI labels or headings. */
.prose-content,
.prose-content * {
  /* Ignore fonts embedded by the CMS editor and use the website typography. */
  font-family: inherit !important;
}

.prose-text,
.prose-content :where(p, li, blockquote) {
  /* Override text alignment imported or selected in the CMS editor. */
  text-align: justify !important;
  text-justify: inter-word;
  line-height: 1.9;
  hyphens: auto;
  overflow-wrap: break-word;
}

html[dir="rtl"] .prose-text,
html[dir="rtl"] .prose-content {
  direction: rtl;
}

html[dir="ltr"] .prose-text,
html[dir="ltr"] .prose-content {
  direction: ltr;
}
/* Research center interactive charts */
.research-charts { background: #f8fbff; border: 1px solid #dbe8f7; border-radius: 1rem; padding: 2rem 1rem; }
.research-chart-section { overflow-x: auto; padding: .25rem 0; }
.research-chart-heading { color: #1c5b9f; font-size: 1.25rem; font-weight: 700; margin: 0 0 1.5rem; text-align: center; }
.research-chart { min-width: 720px; text-align: center; }
.research-chart-level { display: flex; justify-content: center; list-style: none; margin: 0; padding: 0; position: relative; }
.research-chart-branch { display: flex; align-items: center; flex: 1 1 0; flex-direction: column; min-width: 0; padding: 0 .3rem; position: relative; }
.research-chart-branch > .research-chart-level { margin-top: 1.55rem; width: 100%; }
.research-chart-branch > .research-chart-level::before { display: none; }
.research-chart-branch > .research-chart-level::after { border-left: 2px solid #9bbbe1; content: ""; height: 1.55rem; position: absolute; top: -1.55rem; }
.research-chart-branch > .research-chart-level > .research-chart-branch::before { border-left: 2px solid #9bbbe1; content: ""; height: 1.55rem; position: absolute; top: -1.55rem; }
.research-chart-branch > .research-chart-level > .research-chart-branch::after { border-top: 2px solid #9bbbe1; content: ""; left: 0; position: absolute; right: 0; top: -1.55rem; }
.research-chart-branch > .research-chart-level > .research-chart-branch:first-child::after { left: 50%; }
.research-chart-branch > .research-chart-level > .research-chart-branch:last-child::after { right: 50%; }
.research-chart-branch > .research-chart-level > .research-chart-branch:only-child::after { display: none; }
.research-chart-node { align-items: center; background: #fff; border: 2px solid #4e8dcb; border-radius: .65rem; box-shadow: 0 2px 7px rgba(28,91,159,.10); color: #163d68; display: inline-flex; font-size: .88rem; font-weight: 700; justify-content: center; line-height: 1.55; min-height: 58px; overflow-wrap: anywhere; padding: .55rem .7rem; position: relative; text-decoration: none; width: 100%; z-index: 1; }
.research-chart-node.is-linked { background: #edf6ff; cursor: pointer; }
.research-chart-node.is-linked:hover, .research-chart-node.is-linked:focus-visible { background: #1c5b9f; border-color: #1c5b9f; color: #fff; outline: none; transform: translateY(-2px); transition: .18s ease; }
.research-chart-node .bi { font-size: .72rem; margin-inline-start: .45rem; }
.research-chart-board > .research-chart-level > .research-chart-branch > .research-chart-node { background: #285b9f; border-color: #285b9f; color: #fff; }
.research-chart-board > .research-chart-level > .research-chart-branch > .research-chart-level > .research-chart-branch > .research-chart-node { background: #edf4ff; border-color: #4479bf; color: #285b9f; }
.research-chart-organization > .research-chart-level > .research-chart-branch > .research-chart-node { background: #f47d2a; border-color: #f47d2a; color: #fff; }
.research-chart-organization > .research-chart-level > .research-chart-branch > .research-chart-level > .research-chart-branch > .research-chart-node { border-color: #f5b400; }
.research-chart-connector { color: #285b9f; font-size: 1.75rem; line-height: 1; margin: .8rem 0 1.25rem; text-align: center; }
@media (max-width: 767.98px) {
  .research-charts { padding: 1.25rem .85rem; }
  .research-chart { min-width: 0; text-align: inherit; }
  .research-chart-level, .research-chart-branch { align-items: stretch; display: block; min-width: 0; }
  .research-chart-branch { padding: 0; }
  .research-chart-branch + .research-chart-branch { margin-top: .55rem; }
  .research-chart-branch > .research-chart-level { border-inline-start: 2px solid #9bbbe1; margin: .55rem 0 .1rem 1rem; padding-inline-start: .75rem; width: auto; }
  .research-chart-branch > .research-chart-level::before, .research-chart-branch > .research-chart-level::after, .research-chart-branch > .research-chart-level > .research-chart-branch::before, .research-chart-branch > .research-chart-level > .research-chart-branch::after { display: none; }
  .research-chart-node { font-size: .84rem; min-height: 48px; text-align: center; }
}
/* Home-page founder specialty: dark enough for the light blue badge background. */
.home-founder-specialization {
  color: #123d6a !important;
}

/* Keep featured-service cards aligned while limiting summaries to three lines. */
.home-service-card .service-img img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.home-service-card .home-service-description {
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  display: -webkit-box;
  height: 5.7em;
  overflow: hidden;
}

/* Keep phone and email icons to the left of their LTR values in the RTL top bar. */
.top-bar-ltr-contact {
  align-items: center;
  direction: ltr;
  display: inline-flex;
  gap: 0.5rem;
}

.search-page-form {
  max-width: 760px;
}

.search-result-card {
  transition: box-shadow .2s ease, transform .2s ease;
}

.search-result-card:hover,
.search-result-card:focus-within {
  box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .12) !important;
  transform: translateY(-2px);
}
