.doctor-profile-about--compact{grid-template-columns:1fr}.doctor-profile-about--compact .doctor-profile-about-main{display:block}.doctor-profile-about--compact .doctor-profile-accordion{max-width:none}
@media (min-width:641px){.doctor-profile-section--animals .doctor-profile-animal-arrow{display:none!important}.doctor-profile-section--animals .doctor-profile-animal-viewport{overflow:visible}.doctor-profile-section--animals .doctor-profile-animal-list{flex-wrap:wrap;overflow:visible}}

/* Desktop uses the same compact tags as the mobile doctor profile. */
.doctor-profile-main .doctor-profile-specializations{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 0}.doctor-profile-main .doctor-profile-specialization-tag{display:inline-flex;align-items:center;min-height:32px;padding:0 12px;border:1px solid rgba(55,46,45,.22);border-radius:999px;background:rgba(255,255,255,.62);color:#372e2d;font-size:14px;font-weight:600;line-height:1.2}.doctor-profile-main .doctor-profile-subtitle:has(+ .doctor-profile-rating){display:none}.doctor-profile-main .doctor-profile-help-grid{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}.doctor-profile-main .doctor-profile-help-card{width:auto;max-width:100%;min-height:0;padding:8px 10px;border-radius:0;gap:0;box-shadow:none;flex:0 1 auto}.doctor-profile-main .doctor-profile-help-icon{display:none}.doctor-profile-main .doctor-profile-help-card span:last-child{width:auto;flex:0 1 auto;font-size:14px;line-height:1.25;white-space:normal;overflow:visible;text-overflow:clip}.doctor-profile-main .doctor-profile-help-card:hover,.doctor-profile-main .doctor-profile-help-card:focus-visible{transform:none}

.doctor-profile-page {
  background: var(--bg);
  color: #372e2d;
}

.doctor-profile-main {
  padding: 88px 0 0;
}

.doctor-profile-shell {
  width: var(--container-width);
  margin: 0 auto;
}

.doctor-profile-hero {
  position: relative;
  overflow: hidden;
  padding: 0 0 32px;
  background: linear-gradient(180deg, #f7eaec 0%, #f6fdb8 100%);
}

.doctor-profile-breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: rgba(55, 46, 45, 0.72);
  font-size: 14px;
  line-height: 1;
}

.doctor-profile-breadcrumbs a:hover,
.doctor-profile-breadcrumbs a:focus-visible {
  color: #f86076;
}

.doctor-profile-hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 520px);
  gap: 28px;
  align-items: start;
  min-height: 560px;
  max-height: 560px;
  padding-top: 32px;
}

.doctor-profile-copy {
  padding: 0;
}

.doctor-profile-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: #f7eaec;
  color: #f86076;
  font-size: 14px;
  font-weight: 700;
}

.doctor-profile-pill::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f86076;
  box-shadow: 0 0 0 6px rgba(248, 96, 118, 0.15);
}

.doctor-profile-title {
  margin: 16px 0 0;
  color: #372e2d;
  font-family: inherit;
  font-size: clamp(40px, 4vw, var(--font-size-2xl));
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.doctor-profile-subtitle {
  max-width: 470px;
  margin: 14px 0 0;
  color: rgba(55, 46, 45, 0.78);
  font-size: 20px;
  line-height: 1.28;
}

.doctor-profile-specializations {
  display: none;
}

.doctor-profile-photo-frame {
  display: contents;
}

.doctor-profile-hero-video-play {
  z-index: 2;
}

.doctor-profile-rating {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
}

.doctor-profile-stars {
  color: #f7c84b;
  font-size: 22px;
  letter-spacing: 0.16em;
}

.doctor-profile-rating-copy {
  color: rgba(55, 46, 45, 0.8);
  font-size: 18px;
}

.doctor-profile-metrics {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  margin-top: 18px;
}

.doctor-profile-metric {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  min-width: 0;
}

.doctor-profile-metric-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 0;
  background: transparent;
  color: #7b8646;
  opacity: 1;
  visibility: visible;
}

.doctor-profile-metric-icon svg {
  width: 28px;
  height: 28px;
  display: block;
}

.doctor-profile-metric strong,
.doctor-profile-booking strong {
  display: block;
  color: #372e2d;
  font-size: 17px;
  line-height: 1.15;
}

.doctor-profile-metric span,
.doctor-profile-booking span {
  display: block;
  margin-top: 4px;
  color: rgba(55, 46, 45, 0.72);
  font-size: 14px;
  line-height: 1.4;
}

.doctor-profile-metric strong {
  font-size: 14px;
  line-height: 1.2;
}

.doctor-profile-metric span {
  display: block;
  margin-top: 3px;
  font-size: 14px;
  line-height: 1.2;
}

.doctor-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.doctor-profile-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 18px;
  font-size: 17px;
  font-weight: 700;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.doctor-profile-button:hover,
.doctor-profile-button:focus-visible {
  transform: translateY(-2px);
}

.doctor-profile-button--primary {
  background: #372e2d;
  box-shadow: 0 18px 36px rgba(55, 46, 45, 0.2);
  color: #ffffff;
}

.doctor-profile-button--secondary {
  border: 1px solid rgba(55, 46, 45, 0.36);
  background: rgba(255, 255, 255, 0.42);
  color: #372e2d;
}

.doctor-profile-caption {
  margin: 10px 0 0;
  color: rgba(55, 46, 45, 0.66);
  font-size: 15px;
}

.doctor-profile-media {
  position: relative;
  min-height: 460px;
  align-self: end;
}

.doctor-profile-photo {
  position: absolute;
  right: 96px;
  bottom: 0;
  z-index: 1;
  width: min(100%, 430px);
  object-fit: contain;
}

.doctor-profile-booking {
  position: absolute;
  right: 15px;
  bottom: 45px;
  z-index: 2;
  width: min(calc(100% - 30px), 340px);
  padding: 18px 18px 20px;
  border: 1px solid rgba(117, 146, 167, 0.16);
  border-radius: 28px;
  background: rgba(10, 19, 30, 0.88);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.26);
}

.doctor-profile-booking-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.doctor-profile-booking-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 45px;
  height: 45px;
  border-radius: 40px;
  background: #f86076;
  color: #ffffff;
  flex: 0 0 45px;
}

.doctor-profile-booking-icon svg {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 24px;
  height: 24px;
}

.doctor-profile-booking-title {
  margin: 0;
  display: block;
  color: #f7fcff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.15;
}

.doctor-profile-booking-day {
  margin: 2px 0 0;
  color: #f7fcff;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.08;
}

.doctor-profile-booking-copy {
  margin: 0;
  color: rgba(215, 228, 236, 0.9);
  font-size: 16px;
  line-height: 1.35;
}

.doctor-profile-panel {
  position: relative;
  z-index: 3;
  margin-top: -40px;
  padding: 0 0 72px;
}

.doctor-profile-panel-inner {
  display: grid;
  gap: 18px;
  padding: 26px;
  border-radius: 34px 34px 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 250, 252, 0.98));
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.16), 0 22px 60px rgba(55, 46, 45, 0.08);
}

.doctor-profile-section {
  padding: 30px 32px;
  border: 1px solid rgba(222, 231, 238, 0.9);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 12px 36px rgba(55, 46, 45, 0.04);
}

.doctor-profile-section-title,
.doctor-profile-section-head h2,
.doctor-profile-contact-card h2 {
  margin: 0 0 12px;
  color: var(--color-primary);
  font-family: inherit;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.doctor-profile-help-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.doctor-profile-help-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 124px;
  padding: 18px 12px;
  border: 1px solid rgba(216, 229, 237, 0.95);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 34px rgba(36, 58, 84, 0.07);
  color: #142a45;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.doctor-profile-help-card:hover,
.doctor-profile-help-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(21, 152, 168, 0.34);
  box-shadow: 0 18px 38px rgba(36, 58, 84, 0.1);
}

.doctor-profile-help-icon {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.doctor-profile-help-card span:last-child {
  font-size: 15px;
  line-height: 1.24;
  font-weight: 600;
}

.doctor-profile-about {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

.doctor-profile-about.has-accordion,
.doctor-profile-about:has(.doctor-profile-accordion) {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
}

.doctor-profile-about-main {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 26px;
}

.doctor-profile-video {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  min-height: 300px;
  background: linear-gradient(160deg, #b7eff2 0%, #9fe3e8 100%);
}

.doctor-profile-video img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

.doctor-profile-video-play {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #1a445f;
  box-shadow: 0 10px 24px rgba(10, 30, 46, 0.22);
  cursor: pointer;
}

.doctor-profile-video-play svg {
  width: 34px;
  height: 34px;
}

.doctor-profile-video-duration {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(5, 19, 29, 0.75);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

.doctor-profile-animal-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  margin-top: 0;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.doctor-profile-animal-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #46617d;
  font-size: 14px;
  text-align: center;
}

.doctor-profile-animal-item img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.doctor-profile-animal-arrow {
  width: 36px !important;
  height: 36px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(196, 214, 229, 0.7) !important;
  background: #f5f9fc !important;
  color: #2d5f84 !important;
  font-size: 28px !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  flex: 0 0 36px !important;
  cursor: pointer !important;
}

.doctor-profile-animal-carousel {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
}

.doctor-profile-animal-viewport {
  overflow: hidden;
  flex: 1 1 auto;
}

.doctor-profile-about-copy p {
  margin: 0;
  color: #506783;
  font-size: 17px;
  line-height: 1.72;
  overflow-wrap: anywhere;
}

.doctor-profile-about-copy p + p {
  margin-top: 16px;
}

.doctor-profile-about-copy {
  width: 100%;
  min-width: 0;
}

.doctor-profile-accordion {
  display: grid;
  gap: 12px;
}

.doctor-profile-details {
  border: 1px solid rgba(222, 231, 238, 0.92);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  overflow: hidden;
}

.doctor-profile-details summary {
  position: relative;
  list-style: none;
  padding: 22px 60px 22px 22px;
  cursor: pointer;
  color: #372e2d;
  font-size: 18px;
  font-weight: 700;
}

.doctor-profile-details summary::-webkit-details-marker {
  display: none;
}

.doctor-profile-details summary::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid #183156;
  border-bottom: 2px solid #183156;
  transform: translateY(-65%) rotate(45deg);
  transition: transform var(--transition-base);
}

.doctor-profile-details[open] summary::after {
  transform: translateY(-20%) rotate(-135deg);
}

.doctor-profile-details-body {
  padding: 0 22px 22px;
  color: #5d738d;
  font-size: 16px;
  line-height: 1.7;
}

.doctor-profile-process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.doctor-profile-process-item {
  position: relative;
  padding: 0 20px 0 0;
}

.doctor-profile-process-item:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -4px;
  top: 46px;
  color: #a9b8c8;
  font-size: 30px;
  line-height: 1;
}

.doctor-profile-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(180deg, #f1dcdf, #f1dcdf);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
}

.doctor-profile-process-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  margin-top: 14px;
  border-radius: 24px;
  background: #f3f8fc;
  color: #0f9bae;
}

.doctor-profile-process-icon svg {
  width: 34px;
  height: 34px;
}

.doctor-profile-process-item h3 {
  margin: 18px 0 0;
  color: #372e2d;
  font-size: 20px;
  line-height: 1.18;
}

.doctor-profile-process-item p {
  margin: 12px 0 0;
  color: #617894;
  font-size: 15px;
  line-height: 1.65;
}

.doctor-profile-grid-two {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
}

.doctor-profile-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.doctor-profile-section-link {
  color: #7b8646;
  font-size: 15px;
  font-weight: 700;
}

.doctor-profile-cert-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.doctor-cert-carousel {
  position: relative;
  margin-top: 18px;
  padding: 0 24px;
}

.doctor-cert-carousel-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.doctor-cert-carousel-track::-webkit-scrollbar {
  display: none;
}

.doctor-cert-slide {
  position: relative;
  flex: 0 0 calc((100% - 24px) / 3);
  min-width: 0;
  padding: 0;
  border: 1px solid rgba(20, 44, 75, 0.12);
  border-radius: 18px;
  background: #ffffff;
  cursor: pointer;
}

.doctor-cert-slide img {
  width: 100%;
  aspect-ratio: 0.9;
  border-radius: 17px;
  object-fit: contain;
  background: transparent;
  display: block;
}

.doctor-cert-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 1px solid rgba(216, 229, 237, 0.95);
  border-radius: 50%;
  background: #ffffff;
  color: #163253;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(17, 35, 54, 0.08);
  z-index: 2;
}

.doctor-cert-carousel-prev { left: -12px; }
.doctor-cert-carousel-next { right: -12px; }

.doctor-cert-open-all-wrap {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

#doctor-cert-open-all.booking-pet-show-more {
  gap: 0;
  text-align: center;
}

#doctor-cert-open-all.booking-pet-show-more::after {
  content: none;
}

.doctor-profile-cert-card {
  position: relative;
  min-height: 198px;
  padding: 20px;
  border-radius: 22px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(243, 249, 251, 0.95)),
    linear-gradient(135deg, rgba(19, 165, 182, 0.2), rgba(123, 224, 215, 0.12));
  border: 1px solid rgba(156, 205, 211, 0.55);
}

.doctor-profile-cert-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px dashed rgba(21, 152, 168, 0.28);
  border-radius: 16px;
}

.doctor-profile-cert-card::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 214, 112, 0.95), rgba(218, 158, 31, 0.9));
  box-shadow: inset 0 0 0 6px rgba(255, 250, 220, 0.45);
}

.doctor-profile-cert-card strong {
  position: relative;
  z-index: 1;
  display: block;
  color: #143150;
  font-family: "Baskerville Zooport", "Times New Roman", serif;
  font-size: 28px;
}

.doctor-profile-cert-card span {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 150px;
  margin-top: 12px;
  color: #4e667f;
  font-size: 15px;
  line-height: 1.5;
}

.doctor-profile-review-card {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid rgba(222, 231, 238, 0.92);
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
}

.doctor-profile-review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.doctor-profile-review-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.doctor-profile-review-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(180deg, #18bdd0, #0f97a8);
  color: #ffffff;
  font-weight: 800;
}

.doctor-profile-review-stars {
  color: #f4c84a;
  font-size: 20px;
  letter-spacing: 0.12em;
}

.doctor-profile-review-controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.doctor-profile-review-arrow {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(214, 228, 237, 0.95);
  border-radius: 50%;
  background: #ffffff;
  color: #163253;
  font-size: 32px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(17, 35, 54, 0.08);
}

.doctor-profile-review-card p {
  margin: 18px 0 0;
  color: #536c88;
  font-size: 16px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.doctor-profile-review-date {
  display: block;
  margin-top: 16px;
  color: #90a0b1;
  font-size: 14px;
}

.doctor-profile-specialists-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.doctor-profile-specialist-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(222, 231, 238, 0.92);
  border-radius: 24px;
  background: #ffffff;
}

.doctor-profile-specialist-card img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: contain;
  object-position: center bottom;
  background: #f7eaec;
}

.doctor-profile-specialist-card h3 {
  margin: 0;
  color: #372e2d;
  font-size: 18px;
  line-height: 1.22;
}

.doctor-profile-specialist-card h3 a {
  color: inherit;
  text-decoration: none;
}

.doctor-profile-specialist-card p {
  margin: 6px 0 0;
  color: #607792;
  font-size: 14px;
  line-height: 1.45;
}

.doctor-profile-specialist-card a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: #7b8646;
  font-size: 14px;
  font-weight: 700;
}

.doctor-profile-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  gap: 18px;
}

.doctor-profile-bottom-grid--full {
  grid-template-columns: minmax(0, 1fr);
}

.clinic-reviews-standalone-head {
  margin-bottom: 12px;
}

.doctor-profile-section--reviews .clinic-reviews-standalone-head {
  margin-top: 0;
  margin-left: 0;
}

/* Keep the review controls consistent with the doctor profile palette. */
.doctor-profile-section--reviews .review-icon-btn,
.doctor-profile-section--reviews .review-arrow {
  border-color: #7b8646;
  color: #7b8646;
}

.clinic-reviews-standalone-head .reviews-title {
  margin: 0;
  color: #1c3658;
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.doctor-profile-section .review-grid {
  grid-template-columns: 1fr;
  gap: 0;
}

.doctor-profile-section .review-card {
  margin: 0;
}

.doctor-profile-blog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.doctor-profile-blog-card {
  overflow: hidden;
  border: 1px solid rgba(222, 231, 238, 0.92);
  border-radius: 24px;
  background: #ffffff;
}

.doctor-profile-blog-card img {
  width: 100%;
  aspect-ratio: 1.5;
  object-fit: cover;
}

.doctor-profile-blog-copy {
  padding: 18px;
}

.doctor-profile-blog-copy h3 {
  margin: 0;
  color: #372e2d;
  font-size: 18px;
  line-height: 1.35;
}

.doctor-profile-blog-copy span {
  display: block;
  margin-top: 12px;
  color: #93a2b3;
  font-size: 14px;
}

.doctor-profile-blog-card.is-collapsed-extra-blog {
  display: none;
}

.doctor-blog-show-more {
  margin-top: 16px;
}

.booking-pet-show-more {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  gap: 10px;
  border: 1.5px solid #58c7e3;
  border-radius: 12px;
  background: #fff;
  color: #2f9fc0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  margin-left: auto;
  margin-right: auto;
}

.booking-pet-show-more:hover {
  transform: translateY(-1px);
  border-color: #35b4d7;
  box-shadow: 0 8px 22px rgba(35, 166, 203, 0.16);
}

.booking-pet-show-more::after {
  content: "›";
  font-size: 20px;
  line-height: 1;
  transform: translateY(-1px);
}

.booking-pet-show-more.is-open::after {
  transform: rotate(90deg);
}

.doctor-profile-contact-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 18px;
  align-items: center;
  min-height: 100%;
  padding: 30px;
  border: 1px solid rgba(212, 229, 235, 0.95);
  border-radius: 28px;
  background:
    radial-gradient(circle at 100% 100%, rgba(255, 235, 198, 0.84), transparent 38%),
    linear-gradient(180deg, #fbfdff, #eef6fa);
}

.doctor-profile-contact-copy p,
.doctor-profile-cta-copy p {
  margin: 14px 0 0;
  color: #58708b;
  font-size: 16px;
  line-height: 1.65;
}

.doctor-profile-phone-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  margin-top: 20px;
  padding: 0 18px;
  border: 1px solid rgba(15, 157, 175, 0.34);
  border-radius: 16px;
  color: #0d90a1;
  font-size: 28px;
  font-weight: 800;
}

.doctor-profile-phone-link svg {
  width: 22px;
  height: 22px;
}

.doctor-profile-contact-hours {
  display: block;
  margin-top: 12px;
  color: #7f92a5;
  font-size: 14px;
}

.doctor-profile-contact-card img {
  width: 190px;
  object-fit: contain;
  align-self: end;
}

.clinic-gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  background: rgba(8, 20, 31, 0.7);
}

.clinic-gallery-modal[hidden] {
  display: none;
}

.clinic-gallery-modal-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
}

.clinic-gallery-image {
  width: 100%;
  height: 100%;
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 0;
  object-fit: contain;
  background: transparent;
}

.clinic-gallery-close,
.clinic-gallery-nav {
  position: absolute;
  top: 50%;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #123049;
  background: rgba(255, 255, 255, 0.9);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.clinic-gallery-close {
  top: 20px;
  right: 20px;
  transform: none;
}

.clinic-gallery-prev { left: 14px; }
.clinic-gallery-next { right: 14px; }

.clinic-gallery-meta {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(17, 31, 45, 0.58);
  backdrop-filter: blur(4px);
}

.clinic-gallery-progress {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.clinic-gallery-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
}

.clinic-gallery-dot.is-active {
  width: 18px;
  border-radius: 999px;
  background: #fff;
}

.clinic-gallery-counter {
  color: #fff;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.doctor-profile-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 34px 36px;
  border-radius: 30px;
  background: #f7eaec;
}

.doctor-profile-cta-copy h2 {
  margin: 0;
  color: #0f97a8;
  font-family: inherit;
  font-size: clamp(34px, 3vw, 48px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.doctor-profile-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.doctor-profile-cta-meta {
  display: grid;
  gap: 10px;
  text-align: right;
}

.doctor-profile-cta-meta span {
  color: #6d8196;
  font-size: 15px;
}

.doctor-profile-cta-meta a {
  color: #173153;
  font-size: clamp(26px, 2vw, 38px);
  font-weight: 800;
}

.doctor-profile-note-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border-color: #372e2d;
  border-radius: 18px;
  background: #ffffff;
  color: #372e2d;
  font-size: 16px;
  font-weight: 700;
}

.doctor-profile-note-button:hover,
.doctor-profile-note-button:focus-visible {
  transform: translateY(-2px);
}

.doctor-profile-cta .doctor-profile-button--primary {
  background: #372e2d;
  border-color: #372e2d;
  color: #ffffff;
}

@media (max-width: 1180px) {
  .doctor-profile-hero-shell,
  .doctor-profile-about,
  .doctor-profile-grid-two,
  .doctor-profile-bottom-grid {
    grid-template-columns: 1fr;
  }

  .doctor-profile-blog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .doctor-profile-help-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .doctor-profile-specialists-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .doctor-profile-process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .doctor-profile-process-item:nth-child(2)::after,
  .doctor-profile-process-item:last-child::after {
    content: none;
  }

  .doctor-profile-about-main {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .doctor-profile-hero-shell {
    min-height: 520px;
    max-height: none;
  }

  .doctor-profile-media {
    min-height: 440px;
  }

  .doctor-profile-photo {
    right: 50%;
    transform: translateX(50%);
    width: min(100%, 420px);
  }

  .doctor-profile-booking {
    right: auto;
    left: -10px;
    bottom: 104px;
    width: min(100%, 360px);
  }
}

@media (max-width: 860px) {
  .doctor-profile-main {
    padding-top: 88px;
  }

  .doctor-profile-shell {
    width: min(100% - 24px, 100%);
  }

  .doctor-profile-panel-inner {
    padding: 14px;
    border-radius: 28px 28px 0 0;
  }

  .doctor-profile-panel {
    margin-top: -24px;
  }

  .doctor-profile-section {
    padding: 24px 20px;
    border-radius: 24px;
  }

  .doctor-profile-title {
    font-size: clamp(40px, 11vw, 60px);
  }

  .doctor-profile-section--reviews .clinic-reviews-standalone-head {
    margin-top: 0;
  }

  .doctor-profile-subtitle {
    font-size: 20px;
  }

  .doctor-profile-metrics {
    flex-wrap: wrap;
    gap: 16px 24px;
  }

  .doctor-profile-help-grid,
  .doctor-profile-blog-grid,
  .doctor-profile-cert-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .doctor-cert-gallery-grid.clinic-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .doctor-profile-about-main {
    grid-template-columns: 1fr;
  }

  .doctor-profile-video {
    min-height: 260px;
  }

  .doctor-profile-contact-card,
  .doctor-profile-cta {
    grid-template-columns: 1fr;
  }

  .doctor-profile-cta-meta {
    text-align: left;
  }
}

@media (max-width: 640px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .doctor-profile-page,
  .doctor-profile-main,
  .doctor-profile-shell,
  .doctor-profile-panel-inner,
  .doctor-profile-section {
    max-width: 100%;
    overflow-x: hidden;
  }

  .doctor-profile-panel,
  .doctor-profile-grid-two,
  .doctor-profile-bottom-grid,
  .doctor-profile-cta {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
  }

  .doctor-profile-hero {
    padding-bottom: 20px;
    background: #fff;
  }

  .doctor-profile-section--reviews .clinic-reviews-standalone-head {
    margin-top: 0;
  }

  .doctor-profile-panel {
    margin-top: 14px;
  }

  .doctor-profile-page .doctor-profile-panel {
    margin-top: 18px !important;
  }

  .doctor-profile-hero-shell {
    display: flex;
    flex-direction: column;
    min-height: auto;
    gap: 8px;
  }

  .doctor-profile-copy {
    display: contents;
    padding: 18px 0 12px;
  }

  .doctor-profile-title {
    font-size: 30px;
    line-height: 1;
  }

  .doctor-profile-subtitle {
    display: none;
  }

  .doctor-profile-pill {
    min-height: 34px;
    padding: 0 14px;
    font-size: 13px;
  }

  .doctor-profile-rating {
    flex-wrap: wrap;
    gap: 10px;
  }

  .doctor-profile-stars {
    font-size: 18px;
  }

  .doctor-profile-rating-copy {
    font-size: 16px;
  }

  .doctor-profile-breadcrumbs { order: 1; }
  .doctor-profile-media { order: 2; }
  .doctor-profile-title { order: 3; }
  .doctor-profile-specializations { order: 4; }
  .doctor-profile-pill { order: 5; }
  .doctor-profile-rating { order: 6; }
  .doctor-profile-metrics { order: 7; }
  .doctor-profile-caption { order: 8; }
  .doctor-profile-actions { order: 9; }

  .doctor-profile-specializations {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 2px 0 0;
  }

  .doctor-profile-specialization-tag {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid rgba(55, 46, 45, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.62);
    color: #372e2d;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
  }

  .doctor-profile-actions {
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
    width: 100%;
    text-align: center;
  }

  .doctor-profile-button,
  .doctor-profile-note-button {
    width: min(100%, 260px);
    margin: 0 auto;
  }

  .doctor-profile-cta .doctor-profile-button,
  .doctor-profile-cta .doctor-profile-note-button {
    font-size: 15px;
  }

  .doctor-profile-button--primary {
    display: inline-flex;
    align-self: center;
    margin-inline: auto;
  }

  .doctor-profile-button--secondary {
    display: none;
  }

  .doctor-profile-media {
    min-height: auto;
    padding-top: 8px;
    display: grid;
    place-items: center;
    width: 100%;
  }

  .doctor-profile-photo-frame {
    display: flex;
    position: relative;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    min-height: 320px;
    padding: 14px 12px 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 24px;
    background: linear-gradient(180deg, #f7eaec 0%, #f6fdb8 100%);
    box-shadow: 0 16px 30px rgba(55, 46, 45, 0.1);
  }

  .doctor-profile-photo,
  .doctor-profile-booking {
    position: relative;
    right: auto;
    left: auto;
    bottom: auto;
    transform: none;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .doctor-profile-photo {
    display: block;
    width: min(86vw, 300px);
    max-height: 306px;
    object-fit: contain;
    object-position: 56% bottom;
    justify-self: center;
    margin-inline: auto;
  }

  .doctor-profile-booking { display: none; }

  .doctor-profile-caption {
    display: none;
  }

  .doctor-profile-help-grid,
  .doctor-profile-process,
  .doctor-profile-specialists-grid,
  .doctor-profile-blog-grid,
  .doctor-profile-cert-grid {
    grid-template-columns: 1fr;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
  }

  .doctor-profile-about-main {
    grid-template-columns: 1fr;
    gap: 14px;
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .doctor-profile-about {
    grid-template-columns: 1fr;
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }
  .doctor-profile-about.has-accordion {
    grid-template-columns: 1fr;
    gap: 20px;
  }


  .doctor-profile-about-main > * {
    min-width: 0;
    width: 100%;
  }

  .doctor-profile-video {
    min-height: 160px;
    height: 160px;
    max-height: 160px;
    display: grid;
    place-items: center;
    overflow: hidden;
  }

  .doctor-profile-video img {
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 28%;
    margin: 0 auto;
  }

  .doctor-profile-help-card {
    width: 100%;
    min-width: 0;
    min-height: 0;
    box-sizing: border-box;
    overflow: hidden;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 14px 16px;
    text-align: left;
  }

  .doctor-profile-help-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
  }

  .doctor-profile-help-card span:last-child {
    width: auto;
    min-width: 0;
    flex: 1 1 auto;
    font-size: 16px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .doctor-profile-help-card br {
    display: none;
  }

  .doctor-profile-animal-carousel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    gap: 6px !important;
  }

  .doctor-profile-animal-list {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
  }

  .doctor-profile-animal-viewport {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden !important;
  }

  .doctor-profile-animal-item {
    flex: 0 0 calc((100% - 16px) / 3) !important;
  }

  .doctor-profile-about-copy {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: visible;
  }

  .doctor-profile-about-copy p {
    width: 100%;
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .doctor-cert-slide { flex-basis: 76%; }

  .doctor-profile-main .home-treatment-steps {
    padding-inline: 0;
    scroll-padding-inline: 0;
  }
  .doctor-profile-main .home-treatment-dots {
    width: 100%;
    justify-content: center;
    margin-inline: auto;
  }


  .doctor-profile-main .home-treatment-step {
    flex-basis: 100%;
    flex: 0 0 100%;
    width: 100%;
    scroll-snap-align: start;
    text-align: center;
  }
  .doctor-profile-main .home-treatment-step-title,
  .doctor-profile-main .home-treatment-step-text {
    align-self: center;
    margin-inline: auto;
    text-align: center;
  }


  .doctor-profile-main .home-treatment-step-number {
    left: 50%;
    transform: translateX(-62px);
  }

  .doctor-profile-process-item {
    padding-right: 0;
  }

  .doctor-profile-process-item::after {
    content: none !important;
  }

  .doctor-profile-contact-card {
    padding: 24px 20px;
  }

  .doctor-profile-phone-link {
    font-size: 22px;
  }

  .doctor-profile-contact-card img {
    width: 150px;
  }

  .clinic-gallery-modal-inner {
    width: min(96vw, 96vw);
    height: min(78vh, 78vh);
  }

  .clinic-gallery-image {
    object-fit: contain;
  }
}

/* Compact rectangular service tags in the mobile doctor profile. */
@media (max-width: 640px) {
  .doctor-profile-main .doctor-profile-help-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
  }

  .doctor-profile-main .doctor-profile-help-card {
    width: auto;
    max-width: 100%;
    flex: 0 1 auto;
    min-height: 0;
    padding: 8px 10px;
    border-radius: 0;
    gap: 0;
  }

  .doctor-profile-main .doctor-profile-help-icon {
    display: none;
  }

  .doctor-profile-main .doctor-profile-help-card span:last-child {
    width: auto;
    flex: 0 1 auto;
    font-size: 14px;
    line-height: 1.25;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
}

/* Mobile: collapse extra doctor-help tags until explicitly requested. */
.doctor-profile-help-more {
  display: none;
}

@media (max-width: 640px) {
  .doctor-profile-main .doctor-profile-help-grid:not(.is-expanded) .doctor-profile-help-card:nth-child(n + 4) {
    display: none;
  }

  .doctor-profile-help-more {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    margin-top: 10px;
    padding: 7px 12px;
    border: 1px solid rgba(21, 42, 69, 0.3);
    border-radius: 0;
    background: transparent;
    color: #142a45;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
  }

  .doctor-profile-help-grid.is-expanded + .doctor-profile-help-more {
    display: none;
  }
}

/* Hide review navigation when there is only one review. */
.doctor-profile-section--reviews:not(:has(.review-card:nth-child(2))) .review-arrows {
  display: none;
}

/* The fallback review has no hidden continuation to expand. */
.doctor-profile-section--reviews #doctor-review-link {
  display: none;
}
