html[data-theme-color="skin-1"] {
  --bs-primary: var(--at-primary, #00BDE0);
  --bs-secondary: var(--at-secondary, #031B4E);
  --bs-heading-color: var(--at-secondary, #031B4E);
  --bs-body-color: color-mix(in srgb, var(--at-secondary, #031B4E) 62%, #8a93a8);
  --bs-primary-rgb: var(--at-primary-rgb);
  --bs-secondary-rgb: var(--at-secondary-rgb);
  --bs-heading-color-rgb: var(--at-secondary-rgb);
  --bs-primary-text-emphasis: color-mix(in srgb, var(--at-primary, #00BDE0) 42%, #000);
  --bs-secondary-text-emphasis: color-mix(in srgb, var(--at-secondary, #031B4E) 42%, #000);
  --bs-primary-bg-subtle: color-mix(in srgb, var(--at-primary, #00BDE0) 18%, #fff);
  --bs-secondary-bg-subtle: color-mix(in srgb, var(--at-primary, #00BDE0) 18%, #fff);
  --bs-primary-border-subtle: color-mix(in srgb, var(--at-primary, #00BDE0) 18%, #fff);
  --bs-primary-btn-hover-bg: color-mix(in srgb, var(--at-primary, #00BDE0) 85%, #000);
  --bs-primary-btn-hover-border-color: color-mix(in srgb, var(--at-primary, #00BDE0) 85%, #000);
  --bs-secondary-btn-hover-bg: color-mix(in srgb, var(--at-secondary, #031B4E) 85%, #000);
  --bs-secondary-btn-hover-border-color: color-mix(in srgb, var(--at-secondary, #031B4E) 85%, #000);
  --primary-hover: var(--at-accent, #00BDE0);
  --font-family-base: var(--at-font, Vazirmatn, sans-serif);
  --font-family-title: var(--at-font, Vazirmatn, sans-serif);
  --bs-body-font-family: var(--at-font, Vazirmatn, sans-serif);
  font-size: calc(16px * var(--at-font-scale, 1)) !important;
}

body.theme-medical .md-section {
  --bs-primary: var(--md-local-primary, var(--at-primary));
  --bs-primary-rgb: var(--md-local-primary-rgb, var(--at-primary-rgb));
  --bs-secondary: var(--md-local-secondary, var(--at-secondary));
  --bs-secondary-rgb: var(--md-local-secondary-rgb, var(--at-secondary-rgb));
  --bs-heading-color: var(--md-local-secondary, var(--at-secondary));
  --bs-heading-color-rgb: var(--md-local-secondary-rgb, var(--at-secondary-rgb));
}

body.theme-medical .md-section .text-primary {
  color: var(--bs-primary) !important;
}

body.theme-medical .md-section .text-secondary {
  color: var(--bs-secondary) !important;
}

body.theme-medical .md-section .bg-primary {
  background-color: var(--bs-primary) !important;
}

body.theme-medical .md-section .bg-secondary {
  background-color: var(--bs-secondary) !important;
}

body.theme-medical .md-section .btn-primary,
body.theme-medical .md-section .btn-primary.btn-hover1 {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
}

body.theme-medical .md-section .btn-secondary,
body.theme-medical .md-section .btn-secondary.btn-hover1 {
  background-color: var(--bs-secondary);
  border-color: var(--bs-secondary);
}

body.theme-medical,
body.theme-medical .title,
body.theme-medical .btn,
body.theme-medical .navbar-nav {
  font-family: var(--at-font, Vazirmatn, sans-serif);
}

body.theme-medical .logo-header img,
body.theme-medical .footer-logo img,
body.theme-medical .sidebar-header img {
  max-height: calc(2.75rem * var(--at-logo-scale, 1));
  width: auto;
}

body.theme-medical.has-preview {
  padding-top: 48px;
}

body.theme-medical.is-embed .dz-preloader-1,
body.theme-medical.is-embed .scroltop {
  display: none !important;
}

body.theme-medical .page-wraper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.theme-medical .page-content {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
}

body.theme-medical {
  --md-topbar-h: 3.65rem;
}

body.theme-medical #md-topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 10040;
  transform: translateY(-100%);
  visibility: hidden;
  pointer-events: none;
  background: var(--md-local-heading, #fff);
  color: var(--md-local-text, var(--md-local-secondary, var(--at-secondary, #031b4e)));
  border-bottom: 1px solid color-mix(in srgb, var(--md-local-secondary, var(--at-secondary, #031b4e)) 12%, #fff);
  transition: transform 0.28s ease, visibility 0.28s ease;
}

body.theme-medical.has-preview #md-topbar {
  top: 48px;
}

body.theme-medical #md-topbar.is-visible {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}

body.theme-medical .site-header {
  transition: padding-top 0.28s ease;
}

body.theme-medical.has-md-topbar-open .site-header:not(:has(.is-fixed)) {
  padding-top: var(--md-topbar-h);
}

body.theme-medical.has-md-topbar-open .is-fixed .main-bar {
  top: var(--md-topbar-h) !important;
}

body.theme-medical.has-preview.has-md-topbar-open .is-fixed .main-bar {
  top: calc(48px + var(--md-topbar-h)) !important;
}

body.theme-medical #md-topbar .md-topbar__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
  gap: 0.75rem 1rem;
  align-items: center;
  min-height: var(--md-topbar-h);
  padding: 0.55rem 0;
}

body.theme-medical #md-topbar .md-topbar__item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

body.theme-medical #md-topbar .md-topbar__icon {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  flex: 0 0 auto;
  border-radius: 0.7rem;
  background: color-mix(in srgb, var(--md-local-primary, var(--at-primary, #00bde0)) 12%, #fff);
}

body.theme-medical #md-topbar .md-topbar__icon img {
  width: 1.15rem;
  height: 1.15rem;
  object-fit: contain;
}

body.theme-medical #md-topbar .md-topbar__copy {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

body.theme-medical #md-topbar .md-topbar__title {
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--md-local-primary, var(--at-primary, #00bde0));
}

body.theme-medical #md-topbar .md-topbar__copy a,
body.theme-medical #md-topbar .md-topbar__copy span:not(.md-topbar__title) {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--md-local-secondary, var(--at-secondary, #031b4e));
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1199.98px) {
  body.theme-medical #md-topbar {
    display: none;
  }

  body.theme-medical.has-md-topbar-open .site-header:not(:has(.is-fixed)) {
    padding-top: 0;
  }

  body.theme-medical.has-md-topbar-open .is-fixed .main-bar {
    top: 0 !important;
  }

  body.theme-medical.has-preview.has-md-topbar-open .is-fixed .main-bar {
    top: 48px !important;
  }
}

body.theme-medical .site-footer {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
}

body.theme-medical #md-footer.md-section {
  --md-footer-heading: var(--md-local-heading, var(--at-secondary, #031B4E));
  --md-footer-text: var(--md-local-text, color-mix(in srgb, var(--md-footer-heading) 68%, #8a93a8));
  background-color: var(--md-local-secondary, var(--bs-light));
  --bs-heading-color: var(--md-footer-heading);
  --bs-body-color: var(--md-footer-text);
}

body.theme-medical #md-footer .footer-title,
body.theme-medical #md-footer h2,
body.theme-medical #md-footer h3,
body.theme-medical #md-footer h5,
body.theme-medical #md-footer .title,
body.theme-medical #md-footer .dz-title {
  color: var(--md-footer-heading);
}

body.theme-medical #md-footer p,
body.theme-medical #md-footer .text,
body.theme-medical #md-footer .text-body,
body.theme-medical #md-footer .copyright-text,
body.theme-medical #md-footer .widget_about p,
body.theme-medical #md-footer a,
body.theme-medical #md-footer .widget_services ul li a,
body.theme-medical #md-footer .list-hover1 a {
  color: var(--md-footer-text);
}

body.theme-medical #md-footer a:hover,
body.theme-medical #md-footer .widget_services ul li a:hover,
body.theme-medical #md-footer .list-hover1 a:hover {
  color: var(--bs-primary);
}

body.theme-medical #md-footer .md-footer-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: 1.35rem 0;
}

body.theme-medical #md-footer .md-footer-head .title {
  margin: 0;
  font-size: 1.25rem;
}

body.theme-medical #md-footer .md-footer-head .text {
  margin: 0.3rem 0 0;
  max-width: 36rem;
}

body.theme-medical #md-footer .md-footer-head .btn {
  color: #fff;
}

.md-media-slot {
  display: block;
  background: color-mix(in srgb, var(--bs-secondary) 8%, #fff);
}

.md-progress {
  --p: 85;
  position: relative;
  width: 4.75rem;
  height: 4.75rem;
  border-radius: 50%;
  background: conic-gradient(var(--bs-primary) calc(var(--p) * 1%), #e6eef5 0);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.md-progress::after {
  content: "";
  width: 3.45rem;
  height: 3.45rem;
  border-radius: 50%;
  background: #fff;
}

.md-progress span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--bs-secondary);
  z-index: 1;
}

@media (min-width: 992px) {
  body.theme-medical.page-home {
    --md-header-h: 5.75rem;
  }

  body.theme-medical.page-home .hero-banner.style-1 {
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
  }

  body.theme-medical.page-home.has-preview .hero-banner.style-1 {
    height: calc(100vh - 48px);
    height: calc(100dvh - 48px);
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
  }

  body.theme-medical.page-home .hero-banner.style-1 .inner-wrapper {
    padding-top: var(--md-header-h);
    box-sizing: border-box;
  }

  body.theme-medical.page-home .hero-banner.style-1 .hero-thumbnail .thumbnail {
    display: block;
    max-height: calc(100dvh - var(--md-header-h) - 1rem);
    width: auto;
    object-fit: contain;
    object-position: bottom center;
  }
}

@media (min-width: 1400px) {
  body.theme-medical.page-home {
    --md-header-h: 5.75rem;
  }
}

@media (max-width: 1199px) {
  body.theme-medical .hero-banner.style-1 .title {
    font-size: clamp(2rem, 6vw, 3.5rem);
  }
}

body.theme-medical .form-control,
body.theme-medical .form-select,
body.theme-medical textarea.form-control {
  font-family: var(--at-font, Vazirmatn, sans-serif);
}

body.theme-medical #md-hero .md-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

body.theme-medical #md-hero .md-hero-actions .btn {
  margin: 0;
}

body.theme-medical #md-why {
  background: #f3f8fb;
}

body.theme-medical #md-why .md-why-title {
  color: var(--bs-secondary);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 1.35rem;
}

body.theme-medical #md-why .md-why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

body.theme-medical #md-why .md-why-card {
  background: #fff;
  border: 1px solid #d7e4ee;
  border-radius: 1rem;
  padding: 1.15rem 1.15rem 1.2rem;
}

body.theme-medical #md-why .md-why-card h3 {
  color: var(--bs-secondary);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
}

body.theme-medical #md-why .md-why-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.7;
  color: color-mix(in srgb, var(--bs-secondary) 62%, #8a93a8);
}

body.theme-medical #md-why .md-why-card__icon {
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 0.75rem;
  background: color-mix(in srgb, var(--bs-primary) 16%, #fff);
  color: var(--bs-primary);
  display: grid;
  place-items: center;
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
}

body.theme-medical #md-why .md-why-media {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  background: color-mix(in srgb, var(--bs-primary) 12%, #fff);
  min-height: 280px;
}

body.theme-medical #md-why .md-why-media img,
body.theme-medical #md-why .md-why-media__slot {
  display: block;
  width: 100%;
  min-height: 320px;
  max-height: 460px;
  object-fit: cover;
}

body.theme-medical #md-why .md-why-badge {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  background: var(--bs-primary);
  color: #fff;
  border-radius: 1rem;
  padding: 0.85rem 1.15rem;
  min-width: 7.25rem;
  text-align: center;
  box-shadow: 0 10px 24px rgba(3, 27, 78, 0.18);
}

body.theme-medical #md-why .md-why-badge strong {
  display: block;
  font-size: 1.85rem;
  line-height: 1.1;
  font-weight: 800;
}

body.theme-medical #md-why .md-why-badge span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.82rem;
  font-weight: 600;
}

body.theme-medical .md-mobile-nav {
  display: none;
}

@media (max-width: 991px) {
  body.theme-medical.has-mobile-nav .md-mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: 10050;
    min-height: 3.65rem;
    padding: 0.35rem 0.2rem env(safe-area-inset-bottom, 0);
    background: var(--md-local-heading, var(--md-local-secondary, var(--at-secondary, #031B4E)));
    color: var(--md-local-text, #f4f7fb);
    justify-content: space-around;
    box-shadow: 0 -6px 18px rgba(3, 27, 78, 0.12);
  }

  body.theme-medical.has-mobile-nav .md-mobile-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    color: inherit !important;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0;
    text-decoration: none;
    padding: 0.4rem 0.15rem;
  }

  body.theme-medical.has-mobile-nav .md-mobile-nav a i {
    font-size: 1.28rem;
    font-weight: 400;
    line-height: 1;
    color: inherit;
  }

  body.theme-medical.has-mobile-nav .page-wraper {
    padding-bottom: 5.2rem;
  }

  body.theme-medical.has-mobile-nav .scroltop {
    display: none;
  }

  body.theme-medical #md-hero.hero-banner.style-1,
  body.theme-medical #md-hero.hero-banner.style-1 > * {
    height: auto !important;
    min-height: 0;
    max-height: none;
  }

  body.theme-medical #md-hero.hero-banner.style-1 {
    padding: 0 0 0.25rem;
    overflow: hidden;
  }

  body.theme-medical #md-hero .inner-wrapper {
    height: auto !important;
    padding-top: 4.6rem;
    padding-bottom: 0;
  }

  body.theme-medical #md-hero .text-vertical,
  body.theme-medical #md-hero .item1,
  body.theme-medical #md-hero .item2,
  body.theme-medical #md-hero .item3,
  body.theme-medical #md-hero .item4,
  body.theme-medical #md-hero .item5 {
    display: none !important;
  }

  body.theme-medical #md-hero .md-hero-row {
    align-items: center !important;
    margin: 0;
  }

  body.theme-medical #md-hero .title {
    font-size: clamp(1.7rem, 3.4vw, 2.35rem) !important;
    line-height: 1.35;
    margin-bottom: 0.55rem;
  }

  body.theme-medical #md-hero .title img {
    display: none;
  }

  body.theme-medical #md-hero .text {
    font-size: 0.95rem !important;
    max-width: none;
    margin-bottom: 1rem !important;
  }

  body.theme-medical #md-hero .md-hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.65rem;
  }

  body.theme-medical #md-hero .md-hero-actions .btn {
    flex: 1 1 9.5rem;
    width: auto;
    justify-content: center;
    border-radius: 0.85rem;
    padding: 0.7rem 0.9rem;
    font-size: 0.92rem;
  }

  body.theme-medical #md-hero .md-hero-actions .btn .right-icon,
  body.theme-medical #md-hero .md-hero-actions .btn .left-icon {
    display: none;
  }

  body.theme-medical #md-hero .md-hero-actions .btn-secondary {
    background: #fff;
    color: var(--bs-secondary);
    border: 1.5px solid color-mix(in srgb, var(--bs-secondary) 18%, #d7e4ee);
  }

  body.theme-medical #md-hero .md-hero-visual {
    display: flex;
    justify-content: center;
  }

  body.theme-medical #md-hero .hero-thumbnail {
    position: relative;
    width: min(100%, 22rem) !important;
    max-width: 22rem;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    overflow: hidden;
    background: transparent;
  }

  body.theme-medical #md-hero .circle-wrapper {
    display: block !important;
    position: absolute !important;
    inset: 6% 6% 0;
    width: auto !important;
    height: auto !important;
    bottom: 0 !important;
    aspect-ratio: auto !important;
    z-index: 0;
    pointer-events: none;
  }

  body.theme-medical #md-hero .hero-thumbnail .thumbnail {
    position: absolute !important;
    left: 50% !important;
    bottom: 0 !important;
    transform: translateX(-50%) !important;
    height: 94%;
    width: auto !important;
    max-width: 86%;
    max-height: none;
    object-fit: contain;
    object-position: bottom center;
    z-index: 2;
    margin: 0;
  }

  body.theme-medical #md-why .md-why-media img,
  body.theme-medical #md-why .md-why-media__slot {
    min-height: 220px;
    max-height: 280px;
  }

  body.theme-medical #md-book .text-vertical {
    display: none;
  }

  body.theme-medical #md-book .form-body {
    border-radius: 1.1rem;
    padding: 1.25rem 1.1rem;
  }

  body.theme-medical #md-services .icon-bx-wraper.style-3,
  body.theme-medical #md-team .dz-team.style-1 {
    background: #fff;
    border: 1px solid #d7e4ee;
    border-radius: 1rem;
    box-shadow: none;
  }
}

@media (max-width: 767px) {
  body.theme-medical #md-hero .inner-wrapper {
    padding-top: 4.15rem;
  }

  body.theme-medical #md-hero .md-hero-row {
    flex-direction: column;
  }

  body.theme-medical #md-hero .md-hero-copy,
  body.theme-medical #md-hero .md-hero-visual {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
  }

  body.theme-medical #md-hero .md-hero-visual {
    order: -1;
    margin-bottom: 0.35rem;
  }

  body.theme-medical #md-hero .hero-content {
    text-align: center;
    margin: 0;
    padding: 0.35rem 0 1.1rem;
  }

  body.theme-medical #md-hero .text {
    margin-right: auto;
    margin-left: auto;
  }

  body.theme-medical #md-hero .hero-thumbnail {
    width: min(78vw, 17.5rem) !important;
    max-width: 17.5rem;
  }

  body.theme-medical #md-why .md-why-grid {
    grid-template-columns: 1fr;
  }

  body.theme-medical #md-about .list-check.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  body.theme-medical #md-about .list-check li {
    background: #fff;
    border: 1px solid #d7e4ee;
    border-radius: 0.85rem;
    padding: 0.7rem 0.9rem;
    margin: 0;
  }

  body.theme-medical #md-services .icon-bx-wraper.style-3,
  body.theme-medical #md-team .dz-team.style-1 {
    background: #fff;
    border: 1px solid #d7e4ee;
    border-radius: 1rem;
    box-shadow: none;
  }

  body.theme-medical #md-stats .col-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  body.theme-medical #md-team .dz-team.style-1 .dz-media img {
    width: 100%;
    object-fit: cover;
  }
}

@media (max-width: 991px) {
  body.theme-medical .md-header-account {
    display: none !important;
  }
}

@media (max-width: 575px) {
  body.theme-medical.has-mobile-nav .site-header .extra-nav {
    display: none !important;
  }
}

/* Homepage blog + contact --------------------------------------------- */

body.theme-medical #md-blog.md-home-blog,
body.theme-medical #md-map.md-home-contact {
  padding: 4.25rem 0;
}

body.theme-medical .md-home-blog__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1.6rem;
}

body.theme-medical .md-home-blog__head h2 {
  margin: 0;
  max-width: 36rem;
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.4;
  color: var(--md-local-secondary, var(--at-secondary, #031b4e));
}

body.theme-medical .md-home-blog__head a {
  color: var(--md-local-primary, var(--at-primary, #00bde0));
  font-weight: 800;
  text-decoration: none;
}

body.theme-medical .md-home-blog__empty {
  margin: 0;
  padding: 2rem 1rem;
  text-align: center;
  background: #fff;
  border: 1px solid #d7e4ee;
  border-radius: 1.15rem;
  color: color-mix(in srgb, var(--at-secondary, #031b4e) 58%, #8a93a8);
}

body.theme-medical .md-home-blog__grid {
  display: grid;
  gap: 1.2rem;
}

body.theme-medical .md-home-blog__grid[data-count="1"] {
  grid-template-columns: 1fr;
}

body.theme-medical .md-home-blog__grid[data-count="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.theme-medical .md-home-blog__grid[data-count="3"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.theme-medical .md-home-post {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid #d7e4ee;
  border-radius: 1.15rem;
  overflow: hidden;
}

body.theme-medical .md-home-post__media {
  display: block;
  aspect-ratio: 16 / 10;
  background: color-mix(in srgb, var(--md-local-primary, var(--at-primary, #00bde0)) 12%, #fff);
  overflow: hidden;
}

body.theme-medical .md-home-post__media img,
body.theme-medical .md-home-post__ph {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.theme-medical .md-home-post__ph {
  display: block;
  background: color-mix(in srgb, var(--md-local-primary, var(--at-primary, #00bde0)) 10%, #f4f9fc);
}

body.theme-medical .md-home-post__body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.05rem 1.15rem 1.2rem;
  flex: 1;
}

body.theme-medical .md-home-post__body time {
  color: color-mix(in srgb, var(--at-secondary, #031b4e) 55%, #8a93a8);
  font-size: 0.8rem;
  font-weight: 700;
}

body.theme-medical .md-home-post__body h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.55;
}

body.theme-medical .md-home-post__body h3 a {
  color: var(--md-local-secondary, var(--at-secondary, #031b4e));
  text-decoration: none;
}

body.theme-medical .md-home-post__body p {
  margin: 0;
  color: color-mix(in srgb, var(--at-secondary, #031b4e) 62%, #8a93a8);
  font-size: 0.92rem;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.theme-medical .md-home-post__more {
  margin-top: auto;
  padding-top: 0.4rem;
  color: var(--md-local-primary, var(--at-primary, #00bde0));
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
}

@media (min-width: 992px) {
  body.theme-medical .md-home-blog__grid[data-count="1"] .md-home-post {
    flex-direction: row;
    min-height: 18rem;
  }

  body.theme-medical .md-home-blog__grid[data-count="1"] .md-home-post__media {
    flex: 0 0 48%;
    aspect-ratio: auto;
    min-height: 100%;
  }

  body.theme-medical .md-home-blog__grid[data-count="1"] .md-home-post__body {
    justify-content: center;
    padding: 1.6rem 1.7rem;
  }

  body.theme-medical .md-home-blog__grid[data-count="1"] .md-home-post__body h3 {
    font-size: 1.45rem;
  }
}

body.theme-medical .md-home-contact__grid {
  display: grid;
  grid-template-columns: minmax(18rem, 0.92fr) minmax(20rem, 1.08fr);
  min-height: 28rem;
  overflow: hidden;
  border: 1px solid #d7e4ee;
  border-radius: 1.25rem;
  background: #fff;
}

body.theme-medical .md-home-contact__panel {
  padding: 2rem 1.7rem 1.8rem;
  background: var(--md-local-secondary, var(--at-secondary, #031b4e));
  color: #fff;
}

body.theme-medical .md-home-contact__panel h2 {
  margin: 0 0 0.45rem;
  font-size: 1.55rem;
  font-weight: 800;
  color: #fff;
}

body.theme-medical .md-home-contact__lead {
  margin: 0 0 1.35rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.75;
}

body.theme-medical .md-home-contact__list {
  display: grid;
  gap: 1rem;
  margin: 0 0 1.4rem;
}

body.theme-medical .md-home-contact__list dt {
  margin: 0 0 0.15rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: color-mix(in srgb, var(--md-local-primary, var(--at-primary, #00bde0)) 70%, #fff);
}

body.theme-medical .md-home-contact__list dd {
  margin: 0;
  line-height: 1.7;
}

body.theme-medical .md-home-contact__list a {
  color: #fff;
  text-decoration: none;
}

body.theme-medical .md-home-contact__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  background: var(--md-local-primary, var(--at-primary, #00bde0));
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

body.theme-medical .md-home-contact__map {
  min-height: 22rem;
  background: color-mix(in srgb, var(--md-local-primary, var(--at-primary, #00bde0)) 8%, #f4f9fc);
}

body.theme-medical .md-home-contact__map iframe {
  width: 100%;
  height: 100%;
  min-height: 28rem;
  border: 0;
}

body.theme-medical .md-home-contact__place {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  min-height: 22rem;
  padding: 2rem 1.75rem;
}

body.theme-medical .md-home-contact__place-name {
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--md-local-secondary, var(--at-secondary, #031b4e));
}

body.theme-medical .md-home-contact__place p {
  margin: 0 0 1rem;
  color: color-mix(in srgb, var(--at-secondary, #031b4e) 62%, #8a93a8);
  line-height: 1.75;
}

body.theme-medical .md-home-contact__place a {
  color: var(--md-local-primary, var(--at-primary, #00bde0));
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 991.98px) {
  body.theme-medical .md-home-blog__head h2 {
    font-size: 1.4rem;
  }

  body.theme-medical .md-home-blog__grid[data-count="2"],
  body.theme-medical .md-home-blog__grid[data-count="3"] {
    grid-template-columns: 1fr;
  }

  body.theme-medical .md-home-contact__grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  body.theme-medical .md-home-contact__map iframe,
  body.theme-medical .md-home-contact__place {
    min-height: 16rem;
  }
}

/* Blog ---------------------------------------------------------------- */

body.theme-medical .md-blog-head {
  padding: 6.5rem 0 1.75rem;
  background: color-mix(in srgb, var(--at-primary) 7%, #fff);
}

body.theme-medical .md-blog-head--article {
  padding-bottom: 1.35rem;
}

body.theme-medical .md-blog-head__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 1.25rem;
}

body.theme-medical .md-blog-head h1 {
  margin: 0;
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--at-secondary, #031b4e);
}

body.theme-medical .md-blog-head p {
  margin: 0.4rem 0 0;
  max-width: 36rem;
  color: color-mix(in srgb, var(--at-secondary, #031b4e) 62%, #8a93a8);
  line-height: 1.7;
}

body.theme-medical .md-blog-head__count {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 5.5rem;
  margin: 0;
  padding: 0.65rem 0.95rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid #d7e4ee;
}

body.theme-medical .md-blog-head__count strong {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--at-primary);
}

body.theme-medical .md-blog-head__count span {
  font-size: 0.82rem;
  color: color-mix(in srgb, var(--at-secondary, #031b4e) 55%, #8a93a8);
}

body.theme-medical .md-blog-search {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

body.theme-medical .md-blog-search input {
  flex: 1;
  min-width: 0;
  min-height: 3rem;
  padding: 0.55rem 1rem;
  border: 1px solid #d7e4ee;
  border-radius: 0.85rem;
  background: #fff;
}

body.theme-medical .md-blog-search input:focus {
  outline: 0;
  border-color: var(--at-primary);
  box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--at-primary) 16%, transparent);
}

body.theme-medical .md-blog-search button {
  min-height: 3rem;
  padding: 0.5rem 1.25rem;
  border: 0;
  border-radius: 0.85rem;
  background: var(--at-primary);
  color: #fff;
  font-weight: 700;
}

body.theme-medical .md-blog-chips,
body.theme-medical .md-blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

body.theme-medical .md-blog-chips a,
body.theme-medical .md-blog-tags a,
body.theme-medical .md-blog-card__tags a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2rem;
  padding: 0.15rem 0.75rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #d7e4ee;
  color: var(--at-secondary, #031b4e);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

body.theme-medical .md-blog-chips a.is-active,
body.theme-medical .md-blog-chips a:hover,
body.theme-medical .md-blog-tags a.is-active,
body.theme-medical .md-blog-tags a:hover,
body.theme-medical .md-blog-card__tags a:hover {
  border-color: transparent;
  background: var(--at-primary);
  color: #fff;
}

body.theme-medical .md-blog-chips b {
  font-size: 0.75rem;
  font-weight: 800;
}

body.theme-medical .md-blog-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0.9rem 0 0;
  color: color-mix(in srgb, var(--at-secondary, #031b4e) 62%, #8a93a8);
  font-size: 0.88rem;
}

body.theme-medical .md-blog-filters a {
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #d7e4ee;
  color: var(--at-secondary, #031b4e);
  font-weight: 700;
  text-decoration: none;
}

body.theme-medical .md-blog-body {
  padding: 2rem 0 3.5rem;
}

body.theme-medical .md-blog-empty {
  padding: 2.5rem 1.25rem;
  text-align: center;
  background: #fff;
  border: 1px solid #d7e4ee;
  border-radius: 1.15rem;
}

body.theme-medical .md-blog-empty h2 {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
}

body.theme-medical .md-blog-empty p {
  margin: 0 0 1rem;
  color: color-mix(in srgb, var(--at-secondary, #031b4e) 62%, #8a93a8);
}

body.theme-medical .md-blog-empty a {
  color: var(--at-primary);
  font-weight: 700;
}

body.theme-medical .md-blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
  margin-top: 1.15rem;
}

body.theme-medical .md-blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid #d7e4ee;
  border-radius: 1.15rem;
  overflow: hidden;
}

body.theme-medical .md-blog-card.is-featured {
  flex-direction: row;
  margin-bottom: 0.25rem;
  min-height: 16rem;
}

body.theme-medical .md-blog-card__media {
  display: block;
  aspect-ratio: 16 / 10;
  background: color-mix(in srgb, var(--at-primary) 12%, #fff);
  overflow: hidden;
}

body.theme-medical .md-blog-card.is-featured .md-blog-card__media {
  flex: 0 0 46%;
  aspect-ratio: auto;
  min-height: 100%;
}

body.theme-medical .md-blog-card__media img,
body.theme-medical .md-blog-article__cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.theme-medical .md-blog-card__ph {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 10rem;
  background: color-mix(in srgb, var(--at-primary) 10%, #f4f9fc);
}

body.theme-medical .md-blog-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.05rem 1.15rem 1.2rem;
  flex: 1;
}

body.theme-medical .md-blog-card.is-featured .md-blog-card__body {
  justify-content: center;
  padding: 1.35rem 1.5rem;
}

body.theme-medical .md-blog-card__meta,
body.theme-medical .md-blog-article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
  color: color-mix(in srgb, var(--at-secondary, #031b4e) 58%, #8a93a8);
  font-size: 0.82rem;
  font-weight: 700;
}

body.theme-medical .md-blog-card h2 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.5;
}

body.theme-medical .md-blog-card.is-featured h2 {
  font-size: 1.4rem;
}

body.theme-medical .md-blog-card h2 a {
  color: var(--at-secondary, #031b4e);
  text-decoration: none;
}

body.theme-medical .md-blog-card h2 a:hover {
  color: var(--at-primary);
}

body.theme-medical .md-blog-card__excerpt {
  margin: 0;
  color: color-mix(in srgb, var(--at-secondary, #031b4e) 62%, #8a93a8);
  font-size: 0.92rem;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.theme-medical .md-blog-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
}

body.theme-medical .md-blog-card__more {
  margin-top: auto;
  padding-top: 0.35rem;
  color: var(--at-primary);
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
}

body.theme-medical .md-blog-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-top: 1.75rem;
  padding: 0.75rem 1rem;
  background: #fff;
  border: 1px solid #d7e4ee;
  border-radius: 1rem;
}

body.theme-medical .md-blog-pager a {
  min-height: 2.5rem;
  padding: 0.4rem 0.95rem;
  border-radius: 0.75rem;
  background: var(--at-primary);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

body.theme-medical .md-blog-pager span {
  font-size: 0.88rem;
  font-weight: 700;
  color: color-mix(in srgb, var(--at-secondary, #031b4e) 58%, #8a93a8);
}

body.theme-medical .md-blog-aside {
  display: grid;
  gap: 1rem;
}

body.theme-medical .md-blog-widget {
  background: #fff;
  border: 1px solid #d7e4ee;
  border-radius: 1.15rem;
  padding: 1.15rem 1.2rem 1.25rem;
}

body.theme-medical .md-blog-widget h2 {
  margin: 0 0 0.85rem;
  font-size: 1rem;
}

body.theme-medical .md-blog-widget p {
  margin: 0;
  color: color-mix(in srgb, var(--at-secondary, #031b4e) 62%, #8a93a8);
}

body.theme-medical .md-blog-widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.theme-medical .md-blog-widget ul a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0.55rem;
  border-radius: 0.7rem;
  color: var(--at-secondary, #031b4e);
  font-weight: 700;
  text-decoration: none;
}

body.theme-medical .md-blog-widget ul a:hover,
body.theme-medical .md-blog-widget ul a.is-active {
  background: color-mix(in srgb, var(--at-primary) 12%, #fff);
  color: var(--at-primary);
}

body.theme-medical .md-blog-widget ul b {
  font-size: 0.78rem;
  color: color-mix(in srgb, var(--at-secondary, #031b4e) 55%, #8a93a8);
}

body.theme-medical .md-blog-rail {
  display: grid;
  grid-template-columns: 4.4rem minmax(0, 1fr);
  gap: 0.7rem;
  align-items: center;
  color: inherit;
  text-decoration: none;
  margin-bottom: 0.7rem;
}

body.theme-medical .md-blog-rail:last-child {
  margin-bottom: 0;
}

body.theme-medical .md-blog-rail__media {
  width: 4.4rem;
  height: 4.4rem;
  border-radius: 0.8rem;
  overflow: hidden;
  background: color-mix(in srgb, var(--at-primary) 12%, #fff);
}

body.theme-medical .md-blog-rail__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.theme-medical .md-blog-rail__title {
  display: block;
  font-weight: 700;
  line-height: 1.5;
  color: var(--at-secondary, #031b4e);
}

body.theme-medical .md-blog-rail__date {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: color-mix(in srgb, var(--at-secondary, #031b4e) 55%, #8a93a8);
}

body.theme-medical .md-blog-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
  font-size: 0.88rem;
  font-weight: 700;
}

body.theme-medical .md-blog-crumb a {
  color: var(--at-primary);
  text-decoration: none;
}

body.theme-medical .md-blog-crumb span {
  color: color-mix(in srgb, var(--at-secondary, #031b4e) 50%, #8a93a8);
}

body.theme-medical .md-blog-article__meta {
  margin-top: 0.75rem;
}

body.theme-medical .md-blog-article__cover {
  display: block;
  max-height: 26rem;
  margin-bottom: 1.1rem;
  border-radius: 1.15rem;
}

body.theme-medical .md-blog-article__paper {
  background: #fff;
  border: 1px solid #d7e4ee;
  border-radius: 1.15rem;
  padding: 1.4rem 1.45rem 1.6rem;
  font-size: 1.05rem;
  line-height: 1.9;
}

body.theme-medical .md-blog-comments {
  margin-top: 1.5rem;
  background: #fff;
  border: 1px solid #d7e4ee;
  border-radius: 1.15rem;
  padding: 1.25rem 1.3rem 1.4rem;
}

body.theme-medical .md-blog-comments h2 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
}

body.theme-medical .md-blog-comments__list,
body.theme-medical .md-blog-comment ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.theme-medical .md-blog-comment {
  margin: 0 0 1rem;
}

body.theme-medical .md-blog-comment ul {
  margin: 0.75rem 0 0 1rem;
  padding-right: 0.85rem;
  border-right: 1px solid #d7e4ee;
}

body.theme-medical .md-blog-comment header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.45rem;
}

body.theme-medical .md-blog-comment header > span {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--at-primary) 16%, #fff);
  color: var(--at-primary);
  font-weight: 800;
}

body.theme-medical .md-blog-comment strong {
  display: block;
}

body.theme-medical .md-blog-comment time {
  font-size: 0.78rem;
  color: color-mix(in srgb, var(--at-secondary, #031b4e) 55%, #8a93a8);
}

body.theme-medical .md-blog-comment p {
  margin: 0;
  line-height: 1.75;
}

body.theme-medical .md-blog-comment details {
  margin-top: 0.55rem;
}

body.theme-medical .md-blog-comment summary {
  cursor: pointer;
  color: var(--at-primary);
  font-weight: 700;
}

body.theme-medical .md-blog-form {
  margin-bottom: 1.5rem;
}

body.theme-medical .md-blog-form.is-reply {
  margin: 0.75rem 0 0;
}

body.theme-medical .md-blog-form__to {
  margin-bottom: 0.65rem;
  font-size: 0.88rem;
  color: color-mix(in srgb, var(--at-secondary, #031b4e) 62%, #8a93a8);
}

@media (min-width: 992px) {
  body.theme-medical .md-blog-aside {
    position: sticky;
    top: 6rem;
  }
}

@media (max-width: 991.98px) {
  body.theme-medical .md-blog-head {
    padding-top: 5.5rem;
  }

  body.theme-medical .md-blog-head h1 {
    font-size: 1.5rem;
  }

  body.theme-medical .md-blog-card.is-featured {
    flex-direction: column;
    min-height: 0;
  }

  body.theme-medical .md-blog-card.is-featured .md-blog-card__media {
    flex: none;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 767.98px) {
  body.theme-medical .md-blog-grid {
    grid-template-columns: 1fr;
  }

  body.theme-medical .md-blog-search {
    flex-direction: column;
  }
}
