/* --- Rectangular Doctor Image Styles --- */
.doctor-img-rect {
  width: 180px;
  height: 220px;
  margin: 0 auto 0.8rem auto;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.doctor-img-rect-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  display: block;
  transition: box-shadow 0.2s;
}
.doctor-glow:active .doctor-img-rect,
.doctor-glow:focus .doctor-img-rect,
.doctor-glow.glow .doctor-img-rect {
  box-shadow: 0 0 0 4px #ffe8ef, 0 4px 32px rgba(194,24,58,0.18);
  border: 2px solid var(--color-primary);
}
/* --- Doctor Cards Glow and Layout --- */
.doctor-cards-glow {
  gap: 2rem;
}
.doctor-glow {
  position: relative;
  background: #fff;
  border: 1.5px solid var(--color-border);
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(194,24,58,0.07);
  padding: 1.2rem 1.1rem 1.1rem 1.1rem;
  transition: box-shadow 0.2s, border-color 0.2s;
  cursor: pointer;
  outline: none;
}
.doctor-glow:active,
.doctor-glow:focus,
.doctor-glow.glow {
  box-shadow: 0 0 0 4px #ffe8ef, 0 4px 32px rgba(194,24,58,0.18);
  border-color: var(--color-primary);
  z-index: 2;
}
.doctor-img-wrap {
  width: 140px;
  height: 140px;
  margin: 0 auto 0.8rem auto;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}
.doctor-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.doctor-glow h3 {
  margin-top: 0.5rem;
  margin-bottom: 0.3rem;
  font-size: 1.18rem;
  color: var(--color-primary);
}
.doctor-glow .badge {
  margin-bottom: 0.2rem;
}
.doctor-glow p {
  font-size: 0.98rem;
  color: var(--color-text);
  margin-bottom: 0;
}
/* --- Doctor Image Styles --- */
.doctor-img {
  width: 100%;
  max-width: 180px;
  display: block;
  margin: 0 auto 0.7rem auto;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  object-fit: cover;
}
:root {
  --color-primary: #c2183a;
  --color-secondary: #f06292;
  --color-accent: #ef5350;
  --color-text: #333333;
  --color-muted: #6f6f6f;
  --color-bg: #ffffff;
  --color-surface: #f6f6f7;
  --color-border: #e5e5e8;
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-text);
  min-width: 0;
}

.logo-wrap img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.logo-wrap strong {
  display: block;
  font-size: 1rem;
  line-height: 1.2;
  white-space: normal;
  word-break: break-word;
}

.logo-wrap span {
  display: block;
  color: var(--color-muted);
  font-size: 0.85rem;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0;
  margin: 0;
}

.nav-links > li {
  position: relative;
}

.nav-links > li > a {
  padding: 0.5rem 0.4rem;
  font-weight: 600;
  color: var(--color-text);
}

.nav-links > li > a.active,
.nav-links > li > a:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.dropdown-menu {
  list-style: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  margin: 0;
  padding: 0.4rem;
  display: none;
}

.dropdown.open .dropdown-menu {
  display: block;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  display: block;
}

.dropdown-menu li a {
  display: block;
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
  color: var(--color-text);
}

.dropdown-menu li a:hover {
  background: var(--color-surface);
  text-decoration: none;
  color: var(--color-primary);
}

.dropdown-menu .has-submenu {
  position: relative;
}

.submenu-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
}

.category-link {
  flex: 1;
  display: block;
  color: var(--color-text);
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
}

.category-link:hover {
  background: var(--color-surface);
  color: var(--color-primary);
  text-decoration: none;
}

.submenu-toggle {
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  color: var(--color-text);
  font: inherit;
  text-align: center;
  padding: 0;
  border-radius: 6px;
  cursor: pointer;
}

.submenu-toggle:hover {
  background: var(--color-surface);
  color: var(--color-primary);
}

.nested-dropdown {
  list-style: none;
  position: absolute;
  top: -0.4rem;
  left: calc(100% + 0.35rem);
  min-width: 230px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  margin: 0;
  padding: 0.4rem;
  display: none;
}

.has-submenu.open .nested-dropdown {
  display: block;
}

.menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 0.4rem 0.65rem;
  font-size: 1.1rem;
  gap: 0.3rem;
}

.top-appointment {
  display: none;
  border-bottom: 1px solid var(--color-border);
  background: linear-gradient(120deg, #fff0f3, #ffffff);
}

.top-appointment.open {
  display: block;
}

.appointment-toggle-btn {
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  white-space: nowrap;
}

.appointment-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1200;
  padding: 1rem;
}

.appointment-modal.open {
  display: flex;
}

.appointment-modal-dialog {
  width: min(520px, 100%);
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
  padding: 1.1rem;
  position: relative;
}

.appointment-modal-dialog h2 {
  margin: 0 0 0.8rem;
}

.appointment-modal-close {
  position: absolute;
  top: 0.35rem;
  right: 0.45rem;
  border: none;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-muted);
}

.appointment-modal-form {
  display: grid;
  gap: 0.7rem;
}

.appointment-modal-form input,
.appointment-modal-form select,
.appointment-modal-form button {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font: inherit;
}

.appointment-bar {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr auto;
  gap: 0.65rem;
  padding: 0.9rem 0;
}

.appointment-bar input,
.appointment-bar select,
.appointment-bar button,
.form-grid input,
.form-grid select,
.form-grid textarea,
.contact-grid input,
.contact-grid textarea,
.contact-grid button {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font: inherit;
}

.btn-primary {
  background: var(--color-primary);
  color: #ffffff;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: #a81231;
}

.hero {
  background: linear-gradient(135deg, #fff5f7 0%, #ffffff 55%, #f7f7f8 100%);
  padding: 3.4rem 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.hero h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.65rem, 2.8vw, 2.8rem);
  line-height: 1.2;
}

.hero p {
  color: var(--color-muted);
  margin: 0.45rem 0;
}

.glow-circles-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
  margin-top: 1.2rem;
}

.glow-circle-item {
  flex: 0 0 176px;
  width: 176px;
  margin-left: -14px;
  text-align: center;
}

.glow-circle-item:nth-child(4n + 1) {
  margin-left: 0;
}

.glow-circle-item:nth-child(n + 5) {
  margin-top: -10px;
}

.glow-circle-item p {
  margin: 0.55rem 0 0;
  font-weight: 800;
  color: var(--color-text);
  font-size: 1rem;
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  letter-spacing: 0.2px;
}

.glow-circle {
  width: 140px;
  height: 140px;
  border-radius: 999px;
  border: 2px solid #f7a6c0;
  background: radial-gradient(circle at 35% 30%, #ffeef5 0%, #ffc8dc 55%, #f59abc 100%);
  color: #83182f;
  padding: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.circle-icon {
  font-size: 3.2rem;
  line-height: 1;
}

.glow-circle:hover,
.glow-circle:focus-visible,
.glow-circle.active {
  transform: translateY(-2px) scale(1.02);
  border-color: #f06292;
  box-shadow: 0 0 12px rgba(240, 98, 146, 0.65), 0 0 24px rgba(240, 98, 146, 0.45);
  outline: none;
}

.achievements {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.25rem;
}

.stat-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 0.9rem;
  text-align: center;
}

.stat-card strong {
  display: block;
  color: var(--color-primary);
  font-size: 1.3rem;
}

.hero img,
.feature img,
.blog-photos img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--color-border);
  object-fit: cover;
}

.section {
  padding: 3rem 0;
}

.section h2 {
  margin-top: 0;
  font-size: clamp(1.4rem, 2.3vw, 2.2rem);
}

.section-lead {
  color: var(--color-muted);
  max-width: 780px;
}

.grid-3,
.grid-4,
.grid-2,
.cards-grid {
  display: grid;
  gap: 1rem;
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

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

.cards-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card,
.feature,
.doctor,
.service-card,
.testimonial,
.info-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1rem;
}

.faq-toggle-card,
.about-toggle-card {
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.faq-toggle-card.open,
.about-toggle-card.open {
  border-color: #f3a1be;
  box-shadow: 0 0 16px rgba(240, 98, 146, 0.48), 0 0 30px rgba(240, 98, 146, 0.28);
}

.faq-question,
.about-toggle-btn {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--color-text);
  text-align: left;
  font: inherit;
  font-weight: 700;
  font-size: 1.08rem;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  cursor: pointer;
}

.faq-question::after,
.about-toggle-btn::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--color-primary);
  transition: transform 0.2s ease;
}

.faq-toggle-card.open .faq-question::after,
.about-toggle-card.open .about-toggle-btn::after {
  content: "-";
}

.faq-answer,
.about-toggle-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin: 0;
  transition: max-height 0.3s ease, opacity 0.25s ease, margin-top 0.2s ease;
}

.faq-toggle-card.open .faq-answer,
.about-toggle-card.open .about-toggle-content {
  max-height: 320px;
  opacity: 1;
  margin-top: 0.65rem;
}

.floating-actions {
  position: fixed;
  right: 14px;
  bottom: 18px;
  z-index: 1300;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.floating-action-btn {
  width: 62px;
  height: 62px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  animation: flash-pulse 1.5s infinite;
}

.floating-action-btn svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.floating-action-btn:hover {
  transform: scale(1.06);
  text-decoration: none;
}

.floating-action-btn.whatsapp {
  background: #1aae57;
}

.floating-action-btn.call {
  background: #cc2249;
}

.contact-action-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.3rem;
}

.contact-action-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  animation: flash-pulse 1.5s infinite;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
}

.contact-action-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.contact-action-icon.whatsapp {
  background: #1aae57;
}

.contact-action-icon.call {
  background: #cc2249;
}

.contact-action-icon.whatsapp,
.contact-action-icon.call {
  width: 66px;
  height: 66px;
}

.contact-action-icon.whatsapp svg,
.contact-action-icon.call svg {
  width: 28px;
  height: 28px;
}

.contact-action-icon.mail {
  background: #1477c9;
}

.contact-action-icon.map {
  background: #f57c00;
}

@keyframes flash-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(240, 98, 146, 0.5), 0 6px 16px rgba(0, 0, 0, 0.16);
    opacity: 1;
  }
  50% {
    box-shadow: 0 0 0 10px rgba(240, 98, 146, 0), 0 6px 16px rgba(0, 0, 0, 0.16);
    opacity: 0.92;
  }
  100% {
    box-shadow: 0 0 0 0 rgba(240, 98, 146, 0), 0 6px 16px rgba(0, 0, 0, 0.16);
    opacity: 1;
  }
}

.service-card ul {
  margin: 0.55rem 0 0;
  padding-left: 1.1rem;
}

.services-category-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.service-category-btn {
  border: 1px solid #f3a1be;
  border-radius: 999px;
  background: #fff2f7;
  color: #8a1a36;
  padding: 0.65rem 1rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.service-category-btn:hover,
.service-category-btn.active {
  background: #ffd9e8;
  box-shadow: 0 0 10px rgba(240, 98, 146, 0.6), 0 0 20px rgba(240, 98, 146, 0.4);
  transform: translateY(-1px);
}

.services-subcategory-panel {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: #ffffff;
  padding: 1rem;
}

.subcategory-group h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.subcategory-group ul {
  margin: 0;
  padding-left: 1.1rem;
}

.subcategory-group li {
  margin: 0.35rem 0;
}

.services-toggle-wrap {
  margin-bottom: 1rem;
}

.category-toggle {
  width: 100%;
  text-align: left;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #ffffff;
  color: var(--color-text);
  padding: 0.55rem 0.7rem;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.category-toggle:hover {
  border-color: var(--color-primary);
}

.subcategory-list {
  margin-top: 0.65rem;
}

.hidden {
  display: none;
}

.doctor h3,
.service-card h3,
.feature h3,
.info-card h3 {
  margin: 0.2rem 0 0.35rem;
}

.badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  background: #ffe8ef;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.service-hero {
  background: var(--color-surface);
  padding: 2.6rem 0;
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--color-muted);
}

.footer {
  background: #2f3134;
  color: #ffffff;
  padding: 1.2rem 0;
  margin-top: 2rem;
}

.footer a {
  color: #ffd3e0;
}

.note {
  font-size: 0.9rem;
  color: var(--color-muted);
}

.alert {
  margin-top: 0.6rem;
  font-size: 0.92rem;
  color: var(--color-primary);
}

.contact-grid,
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.contact-grid textarea,
.form-grid textarea {
  grid-column: 1 / -1;
  min-height: 120px;
  resize: vertical;
}

.full-row {
  grid-column: 1 / -1;
}

@media (max-width: 980px) {
  .hero-grid,
  .grid-4,
  .grid-3,
  .grid-2,
  .contact-grid,
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .appointment-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .appointment-bar button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .menu-btn {
    display: inline-flex;
    align-items: center;
  }

  .menu-btn .menu-label {
    font-size: 0.85rem;
    font-weight: 700;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    right: 4%;
    width: min(300px, 92%);
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 0.8rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow-soft);
  }

  .nav-links.show {
    display: flex;
  }

  .dropdown-menu {
    position: static;
    display: none;
    border: none;
    box-shadow: none;
    padding-left: 0;
    margin-top: 0.25rem;
  }

  .dropdown.open .dropdown-menu {
    display: block;
  }

  .nested-dropdown {
    position: static;
    display: none;
    border: none;
    box-shadow: none;
    padding-left: 0.5rem;
    min-width: 0;
    background: transparent;
  }

  .has-submenu.open .nested-dropdown {
    display: block;
  }

  .hero-grid,
  .grid-4,
  .grid-3,
  .grid-2,
  .achievements,
  .services-category-buttons,
  .appointment-bar,
  .contact-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .glow-circles-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
  }

  .glow-circle-item,
  .glow-circle-item:nth-child(4n + 1),
  .glow-circle-item:nth-child(n + 5) {
    width: 100%;
    max-width: 220px;
    margin: 0;
  }

  .floating-actions {
    right: 10px;
    bottom: 12px;
  }

  .floating-action-btn {
    width: 56px;
    height: 56px;
  }

  .floating-action-btn svg {
    width: 25px;
    height: 25px;
  }

  .contact-action-icon.whatsapp,
  .contact-action-icon.call {
    width: 60px;
    height: 60px;
  }

  .contact-action-icon.whatsapp svg,
  .contact-action-icon.call svg {
    width: 26px;
    height: 26px;
  }

  .logo-wrap span {
    display: none;
  }

  .logo-wrap strong {
    font-size: 0.78rem;
    line-height: 1.2;
    max-width: calc(100vw - 130px);
    word-break: normal;
    overflow-wrap: normal;
    white-space: normal;
  }

  .logo-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .logo-wrap img {
    width: 46px;
    height: 46px;
  }

  .appointment-toggle-btn {
    order: 3;
    width: auto;
    padding: 0.45rem 0.7rem;
    font-size: 0.82rem;
  }
}
