/* Regular/Normal */
@font-face {
  font-family: "IranSans";
  src: url("/files/IRANSansWeb(FaNum).woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Bold */
@font-face {
  font-family: "IranSans";
  src: url("/files/IRANSansWeb(FaNum)_Bold.woff2") format("woff2");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

/* Light */
@font-face {
  font-family: "IranSans";
  src: url("/files/IRANSansWeb(FaNum)_Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* Medium */
@font-face {
  font-family: "IranSans";
  src: url("/files/IRANSansWeb(FaNum)_Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* UltraLight */
@font-face {
  font-family: "IranSans";
  src: url("/files/IRANSansWeb(FaNum)_UltraLight.woff2") format("woff2");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
}

body {
  margin: 0;

  min-height: 100vh;

  font-family: "IranSans", Tahoma, Arial, sans-serif;

  background: linear-gradient(135deg, #f5f8fb, #ffffff);

  color: #1d2939;

  display: flex;

  justify-content: center;

  align-items: center;

  padding: 20px;
}

.container {
  width: 100%;

  max-width: 500px;

  text-align: center;
}

.doctor-image {
  width: min(70vw, 220px);

  aspect-ratio: 3 / 4;

  object-fit: cover;

  border-radius: 10px;

  box-shadow: 5px 5px 15px #000;
}

h1 {
  margin-top: 25px;

  margin-bottom: 5px;

  font-size: clamp(24px, 6vw, 32px);
}

h2 {
  margin: 0;

  color: #2563eb;

  font-size: clamp(17px, 4vw, 21px);
}

.description {
  margin: 20px auto;

  line-height: 2;

  max-width: 400px;

  color: #667085;

  font-size: clamp(14px, 3.5vw, 16px);
}

.links {
  display: flex;

  flex-direction: column;

  gap: 15px;

  margin-top: 30px;
}

.card {
  width: 100%;

  display: flex;

  align-items: center;

  gap: 15px;

  padding: 18px;

  background: white;

  border-radius: 18px;

  text-decoration: none;

  color: #1d2939;

  text-align: right;

  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);

  transition: 0.25s;
}

.card:hover {
  transform: translateY(-5px);

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.icon {
  flex-shrink: 0;

  width: 55px;

  height: 55px;
}

.icon img {
  width: 100%;

  height: 100%;

  object-fit: contain;
}

.content {
  flex: 1;
}

.card strong {
  display: block;

  font-size: clamp(16px, 4vw, 19px);
}

.card span {
  display: block;

  margin: 6px 0;

  color: #2563eb;

  direction: ltr;

  text-align: right;
}

.card small {
  display: block;

  line-height: 1.8;

  color: #667085;

  font-size: 13px;
}

.phone {
  margin-top: 8px;
  font-weight: bold;
  color: #1d2939 !important;
}

.phone {
  direction: ltr;
  text-align: center;
  display: block;
}
.english {
  direction: ltr;
  text-align: center;
  display: block;
}

footer {
  margin-top: 40px;

  color: #98a2b3;

  font-size: 13px;
}

/* Tablets */

@media (min-width: 768px) {
  .container {
    max-width: 550px;
  }
}

/* Very small phones */

@media (max-width: 360px) {
  body {
    padding: 10px;
  }

  .doctor-image {
    width: 170px;
  }

  .card {
    padding: 14px;
  }
}

/* Footer Menu */
.footer-menu {
  margin-top: 40px;
  /* padding: 20px 0 10px 0; */
  border-top: 1px solid #e5e7eb;
  width: 100%;
  position: fixed;
  bottom: 0px;
  left: 0px;
  background: rgb(255 255 255);
  box-shadow: 0px 0px 6px 0px #01000061;
}
.footer-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 4px;
}

.footer-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #9ca3af;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
  min-width: 56px;
  gap: 4px;
}

.footer-link:hover {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.06);
}

.footer-link.active {
  color: #2563eb;
}

.footer-icon {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  flex-shrink: 0;
}

.footer-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* Optional: Active state for current page */
.footer-link[aria-current="page"] {
  color: #2563eb;
}

.bio-text {
  text-align: justify;
}
#fadeOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  /* height = 100% - 100px */
  height: calc(100% - 60px);
  background: white;
  opacity: 1;
  z-index: 9999;
  pointer-events: none;
  transition: opacity 0.5s ease-out;
  border-bottom: 2px solid rgba(0, 0, 0, 0.05);
}
#fadeOverlay.fade-out {
  opacity: 0;
}
