:root {
  --site-primary: #0b5ed7;
  --site-text: #1f2937;
  --site-muted: #6b7280;
  --site-surface: #f7f9fc;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  color: var(--site-text);
  background-color: #ffffff;
}

.container-xxl {
  max-width: 1240px;
}

.container-wide {
  width: 100%;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 1400px) {
  .container-wide {
    max-width: 1440px;
  }
}

.site-main {
  flex: 1 0 auto;
}

.card.h-100 {
  height: 100%;
}

a {
  color: var(--site-primary);
}

a:hover {
  color: #084298;
}

.topbar {
  background: var(--site-surface);
  margin: 0;
}

.topbar-layout {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.topbar-left {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex: 0 0 auto;
}

.topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--site-text);
  flex: 0 0 auto;
}

.topbar-brand:hover {
  color: var(--site-text);
}

.topbar-brand-logo {
  width: 51px;
  height: 47px;
  display: block;
  object-fit: cover;
  object-position: center;
  flex: 0 0 auto;
}

.topbar-brand-mark {
  width: 70px;
  height: 70px;
  border: 2px solid #2f9f5a;
  border-radius: 999px;
  background: #fff;
  color: #0b5ed7;
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.topbar-brand-text {
  display: inline-flex;
  flex-direction: column;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  max-width: 190px;
}

.topbar-phones {
  display: inline-flex;
  flex-direction: column;
  gap: 0.15rem;
}

.topbar-phone {
  color: #1f2937;
  font-weight: 700;
  line-height: 1.1;
  font-size: clamp(1rem, 1.15vw, 1.22rem);
}

.topbar-phone-link {
  display: block;
  padding: 0.1rem 0;
  border-radius: 0.25rem;
}

.topbar-book-btn {
  padding: 0.75rem 1.65rem;
  border-radius: 0.35rem;
  font-weight: 700;
  font-size: clamp(0.9rem, 0.85vw, 1rem);
  line-height: 1.15;
  text-transform: uppercase;
  white-space: nowrap;
}

.topbar-hours {
  margin-left: auto;
  color: #7b8794;
  font-size: clamp(0.84rem, 0.72vw, 0.95rem);
  line-height: 1.35;
  padding: 0.55rem 0.9rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 0.35rem;
}

.site-nav .nav-link {
  white-space: nowrap;
  line-height: 1.2;
}

.language-switcher {
  width: 64px;
  min-width: 64px;
}

@media (min-width: 992px) {
  .main-navbar {
    min-height: 64px;
  }

  .main-navbar > .container-wide {
    display: flex;
    flex-wrap: inherit;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
  }

  .main-navbar .navbar-brand {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    line-height: 1.1;
    white-space: nowrap;
    margin-right: 1rem;
  }

  .main-navbar .navbar-collapse {
    align-items: center;
    min-height: 40px;
  }

  .site-nav {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
  }

  .site-nav .nav-item {
    display: flex;
    align-items: center;
  }

  .site-nav .nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    padding-top: 0;
    padding-bottom: 0;
    font-size: 0.95rem;
  }

  .site-nav-actions {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    white-space: nowrap;
  }

  .site-nav-actions form {
    margin: 0;
  }

  .site-nav-actions .btn-sm,
  .language-switcher.form-select-sm {
    height: 34px;
    line-height: 1.1;
  }

  .site-nav-actions .nav-ask-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    line-height: 1;
    padding-top: 0;
    padding-bottom: 0;
  }
}

@media (max-width: 991.98px) {
  .topbar-layout {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    gap: 0.65rem;
  }

  .topbar-left {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.65rem;
  }

  .topbar-brand {
    justify-content: center;
  }

  .topbar-phones {
    align-items: center;
  }

  .topbar-book-btn {
    width: 100%;
    max-width: 320px;
  }

  .topbar-hours {
    width: 100%;
    margin-left: 0;
  }

  .site-nav .nav-link {
    padding-left: 0;
    padding-right: 0;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
    font-size: 0.95rem;
    line-height: 1.4;
  }

  .site-nav-actions {
    width: 100%;
    padding-top: 0.75rem;
    align-items: stretch;
  }

  .site-nav-actions .nav-ask-btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  .main-navbar .navbar-collapse {
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
  }
}

.hero-section {
  background: linear-gradient(135deg, #f2f7ff 0%, #fbfdff 100%);
  border-bottom: 1px solid #e5e7eb;
}

.hero-image-box {
  min-height: 320px;
  height: 320px;
  border-radius: 1rem;
  overflow: hidden;
  background: #e9eef8;
}

.hero-image-box img,
.hero-banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 991.98px) {
  .hero-image-box {
    min-height: 240px;
    height: 240px;
  }
}

#homeHeroCarousel .carousel-indicators [data-bs-target] {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  margin-left: 4px;
  margin-right: 4px;
  background-color: #6b7280;
}

.hero-content {
  position: relative;
  z-index: 3;
}

.hero-carousel-wrap {
  position: relative;
}

.hero-carousel .carousel-indicators {
  bottom: 10px;
  margin-bottom: 0;
  z-index: 1;
}

.hero-carousel .hero-carousel-control {
  position: absolute;
  width: 48px;
  height: 48px;
  top: auto;
  bottom: 8px;
  transform: none;
  opacity: 0.85;
  z-index: 2;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-carousel .carousel-control-prev.hero-carousel-control {
  left: calc(50% - 96px);
  right: auto;
}

.hero-carousel .carousel-control-next.hero-carousel-control {
  right: calc(50% - 96px);
  left: auto;
}

.hero-carousel .hero-carousel-control:hover,
.hero-carousel .hero-carousel-control:focus {
  opacity: 1;
}

.hero-carousel .hero-carousel-control:focus-visible {
  outline: 2px solid rgba(11, 94, 215, 0.55);
  outline-offset: 2px;
}

.hero-chevron {
  font-size: 42px;
  line-height: 1;
  color: rgba(0, 0, 0, 0.35);
  font-weight: 300;
}

.hero-carousel .hero-carousel-control:hover .hero-chevron,
.hero-carousel .hero-carousel-control:focus .hero-chevron {
  color: rgba(0, 0, 0, 0.55);
}

@media (min-width: 992px) {
  .hero-carousel .carousel-control-prev.hero-carousel-control {
    left: calc(50% - 96px);
  }

  .hero-carousel .carousel-control-next.hero-carousel-control {
    right: calc(50% - 96px);
  }
}

@media (max-width: 991.98px) {
  .hero-carousel .hero-carousel-control {
    width: 42px;
    height: 42px;
    bottom: 8px;
  }

  .hero-carousel .carousel-control-prev.hero-carousel-control {
    left: calc(50% - 82px);
  }

  .hero-carousel .carousel-control-next.hero-carousel-control {
    right: calc(50% - 82px);
  }

  .hero-chevron {
    font-size: 34px;
  }
}

@media (max-width: 767.98px) {
  .hero-image-box {
    min-height: 200px;
    height: 200px;
  }

  .hero-carousel .hero-carousel-control {
    display: none;
  }

  .hero-carousel .carousel-indicators {
    bottom: 6px;
  }

  .hero-section .display-6 {
    font-size: 1.85rem;
  }

  .hero-section .lead {
    font-size: 1rem;
  }

  .hero-section .btn.btn-lg {
    width: 100%;
    font-size: 1rem;
    padding: 0.7rem 1rem;
  }

  .card-hover .card-body {
    padding: 1rem;
  }

  .doctor-card-img,
  .card-media-placeholder.doctor-card-placeholder {
    height: 232px;
  }
}

@media (max-width: 576px) {
  .topbar-layout {
    gap: 0.5rem;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
  }

  .topbar-left {
    gap: 0.5rem;
  }

  .topbar-brand {
    width: 100%;
    justify-content: center;
  }

  .topbar-phones {
    width: 100%;
    align-items: center;
    gap: 0.2rem;
  }

  .topbar-phone-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 280px;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
    font-size: 1rem;
  }

  .topbar-book-btn {
    padding: 0.65rem 1rem;
    font-size: 0.92rem;
  }

  .topbar-hours {
    padding: 0.45rem 0.65rem;
    font-size: 0.82rem;
    line-height: 1.3;
  }

  .main-navbar .navbar-brand {
    font-size: 1rem;
    max-width: calc(100% - 64px);
  }

  .main-navbar .navbar-toggler {
    padding: 0.3rem 0.5rem;
  }

  .site-nav .nav-link {
    font-size: 0.9rem;
  }
}

.section-title {
  margin-bottom: 1rem;
}

.doctor-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #dbeafe;
  color: #1e40af;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.doctor-photo {
  width: 100%;
  max-width: 420px;
  border-radius: 1rem;
  object-fit: cover;
}

.news-cover {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 0.75rem;
}

.card-img-fixed,
.card-img-top.card-img-fixed {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center;
}

.doctor-card-media-link {
  display: block;
  border-radius: 0.5rem 0.5rem 0 0;
  overflow: hidden;
  line-height: 0;
}

.doctor-card-media-link:focus-visible {
  outline: 2px solid rgba(11, 94, 215, 0.55);
  outline-offset: 2px;
}

.doctor-card-img {
  height: 260px;
  object-position: center 38%;
}

.card-media-placeholder {
  width: 100%;
  height: 240px;
  border-radius: 0.5rem 0.5rem 0 0;
  background: #e5e7eb;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
}

.card-media-placeholder.doctor-card-placeholder {
  height: 260px;
}

.detail-image-wrapper {
  max-width: 420px;
}

.card-hover {
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.6rem 1.4rem rgba(15, 23, 42, 0.08);
}

.table-wrap {
  overflow-x: auto;
}

.price-table thead th {
  position: sticky;
  top: 0;
  background: #f8fafc;
  z-index: 2;
}

.form-section .form-label {
  font-weight: 500;
}

.footer-link-list a {
  color: #4b5563;
}

.footer-link-list a:hover {
  color: var(--site-primary);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  justify-content: space-between;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
}

.footer-policy-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.footer-policy-link:hover,
.footer-policy-link:focus {
  color: inherit;
  border-bottom-color: currentColor;
}

.footer-legal-separator {
  opacity: 0.45;
}

.developer-credit {
  opacity: 0;
  font-size: 0.72rem;
  line-height: 1.2;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.developer-credit,
.developer-credit a {
  color: inherit;
  text-decoration: none;
}

.site-footer:hover .developer-credit,
.developer-credit:hover,
.developer-credit:focus-within {
  opacity: 0.35;
}

.developer-credit a:hover,
.developer-credit a:focus {
  text-decoration: underline;
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1050;
  margin-left: auto;
  margin-right: auto;
  width: auto;
  max-width: 1440px;
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
}

.cookie-banner-text {
  flex: 1 1 auto;
  font-size: 0.875rem;
  line-height: 1.45;
  color: #475569;
}

.cookie-banner-link {
  color: inherit;
  font-weight: 600;
}

.cookie-banner-text-compact {
  display: none;
}

.cookie-banner-accept {
  flex: 0 0 auto;
  min-width: 92px;
}

.license-card {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  box-shadow: none;
}

.license-card .card-body {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.license-card h2 {
  font-size: 1.05rem;
}

.license-page-card {
  background: #fbfdff;
  border: 1px solid #e5e7eb;
}

.about-head-message {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: 1.5rem;
  align-items: start;
  margin-top: 1rem;
}

.about-head-photo img {
  width: 100%;
  max-width: 240px;
  border-radius: 0.75rem;
  object-fit: cover;
}

.about-head-text p {
  margin-bottom: 0.85rem;
}

.about-head-sign {
  margin-top: 1rem;
  font-weight: 600;
  color: #334155;
}

.education-legacy-image {
  max-width: 220px;
}

.school-article-details {
  width: 100%;
}

.school-article-summary {
  cursor: pointer;
  list-style: none;
}

.school-article-summary::-webkit-details-marker {
  display: none;
}

.school-article-summary::before {
  content: "+";
  display: inline-block;
  margin-right: 0.5rem;
  color: #6b7280;
}

.school-article-details[open] .school-article-summary::before {
  content: "−";
}

.school-article-body img {
  max-width: 100%;
  height: auto;
}

.school-article-body a {
  word-break: break-word;
}

@media (max-width: 991.98px) {
  .about-head-message {
    grid-template-columns: 1fr;
  }

  .about-head-photo img {
    max-width: 320px;
  }

  .education-legacy-image {
    max-width: 100%;
    float: none !important;
    margin-right: 0 !important;
  }
}

@media (max-width: 768px) {
  .footer-meta {
    justify-content: flex-start;
  }

  .developer-credit {
    opacity: 0;
    display: none;
  }

  .cookie-banner {
    left: 8px;
    right: 8px;
    bottom: 8px;
  }

  .cookie-banner-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0.85rem;
  }

  .cookie-banner-text {
    font-size: 0.8rem;
  }

  .cookie-banner-text-full {
    display: none;
  }

  .cookie-banner-text-compact {
    display: inline;
  }
}
