/* ==========================================================================
   DENTIST32 — PAGE COMPONENTS
   Listing · Dentist profile tabs · Education · Article · Register · About
   ========================================================================== */

/* ==========================================================================
   A. SHARED PAGE FURNITURE
   ========================================================================== */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  line-height: 18px;
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--orange);
}

.breadcrumb .sep {
  color: var(--text-faint);
}

.breadcrumb [aria-current] {
  font-weight: 700;
  color: var(--text);
}

.pill-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding-top: 70px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 22px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.pill:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.pill.is-active {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
  font-weight: 700;
}

.page-banner {
  margin-top: 30px;
}

/* .section-pad {
  padding: 40px 0 60px;
} */

/* Search strip on the listing page */
.search-strip {
  background: var(--white);
  padding-top: 40px;
}

/* ---- Enhanced Modern Directory Search Bar ---- */
.dir-search-bar {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
  padding: 8px 10px 8px 22px;
  gap: 16px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.dir-search-bar:focus-within {
  box-shadow: 0 12px 36px rgba(0, 107, 206, 0.12);
  border-color: #93c5fd;
}

.dir-search-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.dir-search-field label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #64748b;
  margin: 0;
  line-height: 1.2;
}

.dir-field-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.dir-field-icon {
  width: 18px;
  height: 18px;
  color: #ff6a00;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dir-field-input-wrap input,
.dir-field-input-wrap select {
  width: 100%;
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 14.5px;
  font-weight: 600;
  color: #1e293b;
  padding: 4px 0;
  font-family: inherit;
}

.dir-field-input-wrap input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.dir-field-input-wrap select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
  padding-right: 24px;
}

.dir-field-clear {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f1f5f9;
  border: none;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
  padding: 0;
}

.dir-field-clear:hover {
  background: #fee2e2;
  color: #ef4444;
}

.dir-field-clear svg {
  width: 12px;
  height: 12px;
}

.dir-search-divider {
  width: 1px;
  height: 42px;
  background: #e2e8f0;
  flex-shrink: 0;
}

.dir-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 700;
  background: var(--blue, #006bce);
  color: #ffffff;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.dir-search-btn:hover {
  background: #0059ab;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 107, 206, 0.3);
}

.dir-search-btn svg {
  width: 16px;
  height: 16px;
}

/* Mobile Filter Toggle Toolbar */
.mobile-filter-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  margin-bottom: 8px;
  gap: 12px;
}

.mobile-filter-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #ffffff;
  border: 1.5px solid #006bce;
  border-radius: 10px;
  color: #006bce;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}

.mobile-filter-toggle-btn.is-active {
  background: #006bce;
  color: #ffffff;
}

.mobile-filter-toggle-btn svg {
  width: 15px;
  height: 15px;
}

.filter-count-badge {
  background: #ff6a00;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 99px;
}

.mobile-filter-reset-link {
  font-size: 12.5px;
  font-weight: 600;
  color: #dc2626;
  text-decoration: none;
}

/* Active filter chips row */
.active-filter-chips-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.active-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 99px;
  font-size: 12.5px;
  font-weight: 600;
  color: #1e40af;
}

.active-filter-chip a {
  color: #ef4444;
  font-size: 16px;
  line-height: 1;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
}

.clear-all-chips-link {
  font-size: 12px;
  font-weight: 700;
  color: #dc2626;
  margin-left: 6px;
  text-decoration: underline;
}

/* Responsive Doctor Card & Search Bar */
@media (max-width: 860px) {
  .search-strip {
    padding-top: 16px;
  }

  .dir-search-bar {
    flex-direction: column;
    padding: 16px;
    gap: 14px;
    border-radius: 16px;
    align-items: stretch;
  }

  .dir-search-divider {
    display: none;
  }

  .dir-search-field {
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 10px;
  }

  .dir-search-field:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
  }

  .dir-search-btn {
    width: 100%;
    padding: 14px;
    margin-top: 4px;
    border-radius: 10px;
    justify-content: center;
  }

  .mobile-filter-bar {
    display: flex;
  }

  .filter-panel {
    display: none;
    margin-bottom: 24px;
  }

  .filter-panel.is-open-mobile {
    display: block;
  }

  .result-card {
    grid-template-columns: 84px 1fr !important;
    gap: 16px !important;
    padding: 16px !important;
  }

  .result-avatar-img {
    width: 84px !important;
    height: 84px !important;
    border-radius: 10px !important;
    object-fit: cover !important;
  }

  .result-action-wrap {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 8px;
  }

  .result-action-wrap .btn-profile {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }
}

/* ==========================================================================
   B. LISTING PAGE
   ========================================================================== */
.listing-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
  margin-top: 22px;
}

.filter-panel {
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

.filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.filter-head h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.filter-clear {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--orange);
}

.filter-clear svg {
  width: 12px;
  height: 12px;
}

.filter-group {
  margin-top: 24px;
}

.filter-group>summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text);
}

.filter-group>summary::-webkit-details-marker {
  display: none;
}

.filter-group>summary svg {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.filter-group[open]>summary svg {
  transform: rotate(180deg);
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
}

.check input {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 16px;
  height: 16px;
  border: 1px solid #cdd6d2;
  border-radius: 3px;
  background: var(--white);
  position: relative;
  cursor: pointer;
}

.check input:checked {
  background: var(--orange);
  border-color: var(--orange);
}

.check input:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1.5px;
  width: 4px;
  height: 9px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.check .count {
  color: var(--text-faint);
}

.filter-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--orange);
}

.filter-more svg {
  width: 12px;
  height: 12px;
}

.filter-panel .btn-clear {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 42px;
  margin-top: 20px;
  border: 1px solid var(--orange);
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--orange);
}

.filter-panel .btn-clear:hover {
  background: var(--orange-soft);
}

.filter-panel .btn-clear svg {
  width: 14px;
  height: 14px;
}

.results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 42px;
}

.results-head h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.results-head h1 span {
  color: var(--orange);
}

.sort-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--white);
  font-size: 13px;
  color: var(--text-muted);
}

.sort-select select {
  border: none;
  background: none;
  outline: none;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
}

.result-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 18px;
}

.result-card {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.result-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(20, 43, 39, 0.09);
}

.result-card>img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: var(--r-md);
  background: var(--surface-photo);
}

.result-name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.result-name h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.tag--featured {
  background: #fff1e6;
  color: var(--orange);
}

.tag--verified {
  background: #fff1e6;
  color: var(--orange);
}

.result-qual {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.chip {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eef5fd;
  font-size: 12px;
  color: var(--blue);
}

.result-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.result-meta svg {
  width: 13px;
  height: 13px;
}

.result-reviews {
  margin-top: 10px;
  font-size: 12px;
  color: var(--orange);
}

.btn-profile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 22px;
  border: 1px solid var(--orange);
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--orange);
  white-space: nowrap;
}

.btn-profile:hover {
  background: var(--orange);
  color: var(--white);
}

.load-more {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.load-more button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 26px;
  border: 1px solid var(--orange);
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--orange);
}

.load-more button:hover {
  background: var(--orange-soft);
}

.load-more svg {
  width: 14px;
  height: 14px;
}

/* ==========================================================================
   C. DENTIST PROFILE (detail tabs)
   ========================================================================== */
.profile-layout {
  display: grid;
  grid-template-columns: 805fr 354fr;
  gap: 21px;
  align-items: start;
  margin-top: 20px;
}

.profile-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 27px;
  padding: 20px;
  background: var(--surface);
  border-radius: var(--r-lg);
}

.profile-card>img {
  width: 220px;
  height: 385px;
  object-fit: cover;
  border-radius: var(--r-md);
  background: var(--surface-photo);
}

.profile-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.profile-title h1 {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
}

.tag--blue {
  background: #eaf3fb;
  color: var(--blue);
}

.profile-qual {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.profile-exp {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.profile-reviews {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.profile-reviews a {
  color: var(--blue);
}

.profile-reviews a:hover {
  text-decoration: underline;
}

.profile-loc {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.is-open {
  color: #17a34a;
  font-weight: 600;
}

.profile-bio {
  margin-top: 14px;
  max-width: 520px;
  font-size: 12.5px;
  line-height: 20px;
  color: var(--text-muted);
}

.fact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
}

.fact {
  min-width: 96px;
  padding: 12px 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  text-align: center;
}

.fact strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.fact span {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* Booking form */
.booking-card {
  padding: 24px;
  background: var(--surface);
  border-radius: var(--r-lg);
}

.booking-card h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.booking-card>p {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.booking-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.booking-form input,
.booking-form select,
.booking-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--white);
  font-size: 13px;
  color: var(--text);
  outline: none;
}

.booking-form textarea {
  resize: vertical;
  min-height: 62px;
}

.booking-form input::placeholder,
.booking-form textarea::placeholder {
  color: #9aa7ad;
}

.booking-form :is(input, select, textarea):focus {
  border-color: var(--orange);
}

.booking-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2366737d' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  color: #9aa7ad;
}

.booking-form button {
  justify-self: start;
  height: 40px;
  padding: 0 20px;
  border-radius: var(--r-sm);
  background: var(--orange);
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
}

.booking-form button:hover {
  background: var(--orange-hover);
}

/* Tabs */
.profile-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 68px;
  border-bottom: 1px solid var(--border);
}

.profile-tabs a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding-bottom: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}

.profile-tabs a sup {
  font-size: 9px;
  color: var(--text-faint);
}

.profile-tabs a:hover {
  color: var(--orange);
}

.profile-tabs li.active a,
.profile-tabs a.active {
  color: var(--orange);
  font-weight: 700;
}

.profile-tabs li.active a::after,
.profile-tabs a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--orange);
}

.tab-panel {
  margin-top: 32px;
  padding: 28px;
  background: var(--surface);
  border-radius: var(--r-lg);
  display: none;
  animation: tabFadeIn 0.2s ease;
}

.tab-panel.active {
  display: block;
}

@keyframes tabFadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Services Tab */
.services-profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.service-profile-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-profile-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  border-color: var(--blue, #006bce);
}

.service-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.service-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.service-card-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--orange, #ff6a00);
  white-space: nowrap;
}

.service-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.service-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  font-size: 12px;
}

/* Photos Tab */
.photos-profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.photo-profile-card {
  background: var(--white);
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.photo-profile-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.photo-profile-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.photo-card-caption {
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: var(--white);
}

/* Credentials & Experience */
.credentials-timeline-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

@media (max-width: 840px) {
  .credentials-timeline-grid {
    grid-template-columns: 1fr;
  }
}

.credential-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 22px;
}

.credential-block-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}

.timeline-item {
  position: relative;
  padding-left: 20px;
  padding-bottom: 18px;
  border-left: 2px solid #e2e8f0;
}

.timeline-item:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.timeline-dot {
  position: absolute;
  left: -6px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange, #ff6a00);
}

.timeline-heading {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
}

.timeline-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Clinic details tab */
.clinic-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
}

.clinic-grid h2 {
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
}

.clinic-about p {
  margin-top: 18px;
  font-size: 14px;
  line-height: 24px;
  color: var(--text-muted);
}

.credential-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 26px;
}

.credential {
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}

.credential svg {
  width: 15px;
  height: 15px;
  color: var(--orange);
}

.credential span {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-muted);
}

.credential strong {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.spec-list {
  margin-top: 18px;
}

.spec-list>div {
  display: grid;
  grid-template-columns: minmax(110px, 38%) 1fr;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
  line-height: 1.5;
}

.spec-list>div:last-child {
  border-bottom: none;
}

.spec-list dt {
  color: var(--text-muted);
}

.spec-list dd {
  min-width: 0;
  font-weight: 600;
  color: var(--text);
  text-align: right;
  overflow-wrap: anywhere;
}

/* Clinic timings inside the spec list */
.spec-list .timings-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.spec-list .timings-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  line-height: 1.4;
}

.timings-days {
  font-weight: 600;
  color: #1e293b;
  text-align: left;
}

.timings-hours {
  color: #334155;
  font-weight: 500;
  white-space: nowrap;
}

.timings-hours.is-closed {
  color: #dc2626;
  font-weight: 600;
}

@media (max-width: 640px) {

  /* Label above value, full width — no more squeezed right-aligned text */
  .spec-list>div {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 12px 0;
  }

  .spec-list dt {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
  }

  .spec-list dd {
    text-align: left;
    font-size: 14px;
  }

  .spec-list .timings-list {
    margin-top: 4px;
    padding: 10px 12px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
  }

  .spec-list .timings-row {
    font-size: 13.5px;
  }
}

/* Media (videos / press / events) */
.feature-media {
  display: grid;
  grid-template-columns: 552px 1fr;
  gap: 32px;
  align-items: center;
  padding: 20px;
  background: var(--white);
  border-radius: var(--r-md);
}

.feature-media img {
  width: 100%;
  height: 256px;
  object-fit: cover;
  border-radius: var(--r-md);
}

.feature-media h2 {
  margin-top: 12px;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.feature-media p {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 21px;
  color: var(--text-muted);
}

.feature-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--orange);
}

.feature-meta svg {
  width: 14px;
  height: 14px;
}

.feature-media .btn-orange {
  margin-top: 16px;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 28px;
}

.media-card {
  display: block;
  background: var(--white);
  border-radius: var(--r-md);
  overflow: hidden;
}

.media-card img {
  width: 100%;
  height: 201px;
  object-fit: cover;
}

.media-card .body {
  padding: 14px 16px 18px;
}

.media-card h3 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
}

.media-card span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--orange);
}

.media-card:hover h3 {
  color: var(--orange);
}

.pager {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
}

.pager button {
  height: 40px;
  padding: 0 26px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 600;
}

.pager .prev {
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
}

.pager .next {
  background: var(--orange);
  color: var(--white);
}

.pager .prev:hover {
  border-color: var(--text-muted);
}

.pager .next:hover {
  background: var(--orange-hover);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.filter-chips .pill {
  height: 34px;
  padding: 0 18px;
  font-size: 13px;
}

.filter-chips .pill.is-active {
  background: #fff1e6;
  border-color: #ffd9bf;
  color: var(--orange);
}

/* Testimonials tab */
.rating-summary {
  display: grid;
  grid-template-columns: 260px minmax(0, 520px);
  gap: 24px;
  align-items: center;
  justify-content: start;
}

.rating-box {
  padding: 24px;
  background: var(--white);
  border-radius: var(--r-md);
}

.rating-box .score {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rating-box .score strong {
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
}

.rating-box .stars svg {
  width: 15px;
  height: 15px;
}

.rating-box p {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.rating-box .recommend {
  margin-top: 20px;
  font-size: 13px;
  color: #17a34a;
}

.histogram-bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hist-row {
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.hist-row .label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.hist-row .label svg {
  width: 11px;
  height: 11px;
  fill: var(--orange);
}

.bar-track {
  height: 8px;
  border-radius: 999px;
  background: #e8ecea;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--orange);
  transition: width 0.8s ease;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.review-card {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

.review-card blockquote {
  font-family: var(--font-serif);
  font-style: normal;
  font-size: 15.5px;
  line-height: 25px;
  color: var(--text);
}

/* ==========================================================================
   D. EDUCATION / KIDS LISTING
   ========================================================================== */
.edu-layout {
  display: grid;
  grid-template-columns: 216px 1fr 268px;
  gap: 24px;
  align-items: start;
  margin-top: 22px;
}

.side-card {
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

.side-card+.side-card {
  margin-top: 20px;
}

.side-card h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.cat-list {
  margin-top: 14px;
}

.cat-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text);
}

.cat-list li:last-child a {
  border-bottom: none;
}

.cat-list a:hover {
  color: var(--orange);
}

.cat-list a.is-active {
  color: var(--orange);
  font-weight: 600;
}

.cat-list svg {
  width: 12px;
  height: 12px;
  color: var(--text-faint);
}

.search-articles {
  display: flex;
  gap: 10px;
}

.search-articles input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 13px;
  outline: none;
}

.search-articles input:focus {
  border-color: var(--orange);
}

.search-articles button {
  flex: none;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  background: var(--orange);
  color: var(--white);
}

.search-articles button:hover {
  background: var(--orange-hover);
}

.search-articles svg {
  width: 17px;
  height: 17px;
}

.list-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.list-meta select {
  border: none;
  background: none;
  outline: none;
  font-size: 12.5px;
  color: var(--text);
  cursor: pointer;
}

.post-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 14px;
}

.post-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(20, 43, 39, 0.09);
}

.post-card img {
  width: 150px;
  height: 144px;
  object-fit: cover;
  border-radius: var(--r-md);
  background: var(--surface-photo);
}

.post-badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  border-radius: var(--r-xs);
  background: #eef5fd;
  font-size: 11px;
  font-weight: 600;
  color: var(--blue);
}

.post-card h2 {
  margin-top: 10px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.post-card:hover h2 {
  color: var(--orange);
}

.post-card p {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 19px;
  color: var(--text-muted);
}

.post-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 11.5px;
  color: var(--text-muted);
}

.post-foot .left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.post-foot svg {
  width: 12px;
  height: 12px;
}

.post-foot .more {
  color: var(--text-muted);
}

.post-card:hover .post-foot .more {
  color: var(--orange);
}

/* Right rail */
.rail-card h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.rail-card>p {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Looking for a Dentist filter card & form */
.rail-find-dentist-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px 20px;
}

.rail-search-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}

.rail-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.rail-form-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: #334155;
  letter-spacing: 0.1px;
}

.rail-form-icon {
  width: 14px;
  height: 14px;
  color: var(--orange, #ff6a00);
  flex-shrink: 0;
}

.rail-input-wrapper,
.rail-select-wrapper {
  position: relative;
  width: 100%;
}

.rail-input,
.rail-select {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  font-size: 13.5px;
  font-family: inherit;
  color: #0f172a;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--r-sm, 8px);
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.rail-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.rail-input:focus,
.rail-select:focus {
  border-color: var(--orange, #ff6a00);
  box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.12);
  background: #ffffff;
}

.rail-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px;
  cursor: pointer;
  background-color: #ffffff;
}

.rail-select-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: #64748b;
  pointer-events: none;
  transition: transform 0.2s ease;
}

.rail-select:focus + .rail-select-arrow {
  color: var(--orange, #ff6a00);
  transform: translateY(-50%) rotate(180deg);
}

.rail-clear-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border: none;
  background: #f1f5f9;
  color: #64748b;
  border-radius: 50%;
  font-size: 15px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease, color 0.15s ease;
}

.rail-clear-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Dropdown list for location autocomplete */
.rail-autocomplete-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  z-index: 1050;
  max-height: 240px;
  overflow-y: auto;
  padding: 6px 0;
}

.rail-autocomplete-dropdown.show {
  display: block;
  animation: railDropdownFadeIn 0.18s ease forwards;
}

@keyframes railDropdownFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.rail-autocomplete-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rail-autocomplete-list li {
  padding: 8px 12px;
  font-size: 13px;
  color: #1e293b;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.12s ease, color 0.12s ease;
}

.rail-autocomplete-list li:hover,
.rail-autocomplete-list li.is-active {
  background: #fff7ed;
  color: var(--orange, #ff6a00);
}

.rail-opt-city {
  font-weight: 600;
  border-top: 1px solid #f1f5f9;
}

.rail-opt-city:first-child {
  border-top: none;
}

.rail-opt-city .opt-icon {
  width: 14px;
  height: 14px;
  color: var(--orange, #ff6a00);
  flex-shrink: 0;
}

.rail-opt-sub {
  padding-left: 28px !important;
  font-size: 12px !important;
  color: #64748b !important;
}

.rail-opt-sub .sub-dot {
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1;
}

.rail-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 44px;
  background: var(--orange, #ff6a00);
  color: #ffffff;
  border: none;
  border-radius: var(--r-sm, 8px);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(255, 106, 0, 0.25);
  margin-top: 4px;
}

.rail-submit-btn:hover {
  background: var(--orange-hover, #e05d00);
  box-shadow: 0 6px 16px rgba(255, 106, 0, 0.35);
  transform: translateY(-1px);
}

.rail-submit-btn:active {
  transform: translateY(0);
}

.rail-field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.rail-field select {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--r-sm, 8px);
  background: var(--white);
  font-size: 13.5px;
  color: #0f172a;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2366737d' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.rail-card .rail-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--blue);
}

.rail-card .btn-outline-orange {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 42px;
  margin-top: 16px;
  border: 1px solid var(--orange);
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--orange);
}

.btn-outline-orange:hover {
  background: var(--orange-soft);
}

.related-list {
  margin-top: 16px;
}

.related-list a {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
  font-size: 12.5px;
  line-height: 18px;
  color: var(--text);
}

.related-list img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--r-xs);
  background: var(--surface-photo);
}

.related-list a:hover {
  color: var(--orange);
}

/* ==========================================================================
   E. ARTICLE DETAIL
   ========================================================================== */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 268px;
  gap: 24px;
  align-items: start;
  margin-top: 20px;
}

.article-body {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

.article-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.share-btn {
  flex: none;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  color: var(--blue);
}

.share-btn:hover {
  background: #eef5fd;
}

.share-btn svg {
  width: 16px;
  height: 16px;
}

.article-body h1 {
  margin-top: 14px;
  font-size: 27px;
  font-weight: 700;
  line-height: 36px;
  color: var(--text);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-size: 11.5px;
  color: var(--text-muted);
}

.article-meta svg {
  width: 12px;
  height: 12px;
}

.article-hero {
  width: 100%;
  height: 234px;
  object-fit: cover;
  border-radius: var(--r-md);
  margin-top: 16px;
  background: var(--surface-photo);
}

/* .article-prose h2 {
  margin-top: 28px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
} */

/* .article-prose p {
  margin-top: 14px;
  font-size: 13.5px;
  line-height: 22px;
  color: var(--text-muted);
} */

.article-prose p strong {
  color: var(--text);
}

/* ==========================================================================
   F. REGISTER
   ========================================================================== */
.stepper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-top: 46px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 130px;
  text-align: center;
}

.step .dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--orange);
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
}

.step span {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--orange);
}

.step-line {
  flex: none;
  width: 66px;
  height: 2px;
  margin-top: 13px;
  background: var(--orange);
}

.accordion {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 30px;
  padding: 18px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  text-align: left;
}

.accordion .tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
}

.accordion .tick svg {
  width: 13px;
  height: 13px;
}

.accordion strong {
  flex: 1;
  font-size: 14px;
  font-weight: 700;
  color: var(--orange);
}

.accordion .caret {
  color: var(--text-faint);
}

.accordion .caret svg {
  width: 12px;
  height: 12px;
}

.register-panel {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 56px;
  margin-top: 20px;
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

.register-aside {
  text-align: center;
}

.register-aside img {
  width: 100%;
  max-width: 300px;
  margin-inline: auto;
}

.register-aside h3 {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.register-aside p {
  margin-top: 6px;
  font-size: 11.5px;
  line-height: 18px;
  color: var(--text-muted);
}

.register-form .step-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--blue);
}

.register-form h2 {
  margin-top: 8px;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}

.register-form>p {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 20px;
  margin-top: 20px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-row.span-3 {
  grid-column: span 3;
}

.form-row.span-2 {
  grid-column: span 2;
}

.form-row label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
}

.form-row label .req {
  color: var(--orange);
}

.form-row :is(input, select) {
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-size: 13px;
  color: var(--text);
  outline: none;
}

.form-row :is(input, select):focus {
  border-color: var(--orange);
  background: var(--white);
}

.form-row input::placeholder {
  color: #9aa7ad;
}

.form-row select {
  appearance: none;
  -webkit-appearance: none;
  color: #9aa7ad;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2366737d' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.register-form .btn-orange {
  margin-top: 22px;
  height: 42px;
  gap: 8px;
}

.register-form .btn-orange svg {
  width: 14px;
  height: 14px;
}

.benefits {
  padding: 80px 0 0;
  text-align: center;
}

.benefits .section-title {
  margin-top: 11px;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
  text-align: left;
}

.benefit-card {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

.benefit-card .ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--r-md);
  background: var(--orange-soft);
  color: var(--orange);
}

.benefit-card .ico svg {
  width: 20px;
  height: 20px;
}

.benefit-card h3 {
  margin-top: 16px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.benefit-card p {
  margin-top: 8px;
  font-size: 13px;
  line-height: 21px;
  color: var(--text-muted);
}

/* ==========================================================================
   G. ABOUT
   ========================================================================== */
.about-hero {
  background: var(--surface);
  padding: 70px 0 76px;
  text-align: center;
}

.about-hero .hero-eyebrow {
  letter-spacing: 2.4px;
}

.about-hero h1 {
  margin-top: 20px;
  font-size: 46px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--orange);
}

.about-hero p {
  max-width: 620px;
  margin: 22px auto 0;
  font-size: 15px;
  line-height: 25px;
  color: var(--text-muted);
}

.about-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
}

.about-actions .btn-outline-orange {
  width: auto;
  margin-top: 0;
  padding: 0 24px;
}

.about-actions .btn-orange {
  height: 42px;
  padding: 0 24px;
}

.about-section {
  padding: 78px 0 0;
  text-align: center;
}

.about-section .section-title {
  margin-top: 10px;
}

.about-section .section-lede {
  max-width: 560px;
  margin-top: 14px;
}

.purpose-grid {
  display: grid;
  grid-template-columns: 420fr 340fr;
  gap: 20px;
  margin-top: 40px;
  text-align: left;
}

.purpose-card {
  padding: 32px;
  background: var(--surface);
  border-radius: var(--r-lg);
}

.purpose-card h3 {
  font-size: 21px;
  font-weight: 700;
  color: var(--text);
}

.purpose-card p {
  margin-top: 14px;
  font-size: 13.5px;
  line-height: 22px;
  color: var(--text-muted);
}

.purpose-card .btn-orange {
  margin-top: 20px;
  height: 40px;
}

.purpose-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.purpose-step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px 22px;
  background: var(--surface);
  border-radius: var(--r-lg);
}

.purpose-step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #f3c9ab;
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
}

.purpose-step h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.purpose-step p {
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--text-muted);
}

.offer-band {
  background: var(--surface);
  padding: 76px 0 80px;
  margin-top: 78px;
  text-align: center;
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px 20px;
  margin-top: 62px;
}

.offer-card {
  position: relative;
  padding: 52px 24px 26px;
  background: var(--white);
  border: 1px solid #f6ded0;
  border-radius: var(--r-lg);
}

.offer-card .num {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--orange);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
}

.offer-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.offer-card p {
  margin-top: 10px;
  font-size: 11.5px;
  line-height: 18px;
  color: var(--text-muted);
}

.offer-grid>.offer-card:nth-child(n + 4) {
  margin-top: 42px;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 46px;
  margin-top: 74px;
  text-align: left;
}

.audience-card {
  position: relative;
  padding: 44px 32px 32px;
  background: var(--surface);
  border-radius: var(--r-lg);
}

.audience-card .ico {
  position: absolute;
  top: -24px;
  left: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: var(--orange);
  color: var(--white);
}

.audience-card .ico svg {
  width: 24px;
  height: 24px;
}

.audience-card h3 {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
}

.audience-card .sub {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--orange);
}

.audience-card ul {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-top: 22px;
}

.audience-card li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 12.5px;
  line-height: 18px;
  color: var(--text-muted);
}

.audience-card li svg {
  width: 18px;
  height: 18px;
  color: var(--orange);
  margin-top: 0;
}

.audience-card .btn-orange {
  margin-top: 26px;
  height: 42px;
}

.works-band {
  background: var(--surface);
  padding: 74px 0 84px;
  margin-top: 82px;
  text-align: center;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 54px;
  position: relative;
}

.work-step {
  text-align: center;
  position: relative;
}

.work-step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--orange);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
}

.work-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 28px;
  left: calc(50% + 40px);
  right: calc(-50% + 40px);
  border-top: 1px dashed #f0b98d;
}

.work-step h3 {
  margin-top: 18px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.work-step p {
  margin-top: 10px;
  font-size: 11.5px;
  line-height: 18px;
  color: var(--text-muted);
}

/* ==========================================================================
   H. RESPONSIVE — PAGE COMPONENTS
   ========================================================================== */
@media (max-width: 1180px) {
  .edu-layout {
    grid-template-columns: 200px 1fr;
  }

  .edu-layout .edu-rail {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .edu-layout .edu-rail .side-card+.side-card {
    margin-top: 0;
  }

  .feature-media {
    grid-template-columns: 1fr;
  }

  .clinic-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .profile-layout {
    grid-template-columns: 1fr;
  }

  .register-panel {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .purpose-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1080px) {
  .listing-layout {
    grid-template-columns: 1fr;
  }

  .result-card {
    grid-template-columns: 120px 1fr;
  }

  .result-card>img {
    width: 120px;
    height: 120px;
  }

  .btn-profile {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .media-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .credential-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .offer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .works-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 20px;
  }

  .work-step::after {
    display: none;
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-layout .edu-rail {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .article-layout .edu-rail .side-card+.side-card {
    margin-top: 0;
  }
}

@media (max-width: 900px) {
  .edu-layout {
    grid-template-columns: 1fr;
  }

  .edu-layout .edu-side {
    order: 2;
  }

  .rating-summary {
    grid-template-columns: 1fr;
  }

  .review-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-row.span-3 {
    grid-column: span 2;
  }

  .audience-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .benefit-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .profile-card {
    grid-template-columns: 1fr;
  }

  .profile-card>img {
    width: 100%;
    height: 320px;
  }
}

@media (max-width: 720px) {
  .pill-nav {
    padding-top: 40px;
  }

  .post-card {
    grid-template-columns: 1fr;
  }

  .post-card img {
    width: 100%;
    height: 190px;
  }

  .result-card {
    grid-template-columns: 1fr;
  }

  .result-card>img {
    width: 100%;
    height: 220px;
  }

  .media-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-row.span-3,
  .form-row.span-2 {
    grid-column: span 1;
  }

  .benefit-grid,
  .offer-grid {
    grid-template-columns: 1fr;
  }

  .offer-grid>.offer-card:nth-child(n + 2) {
    margin-top: 42px;
  }

  .works-grid {
    grid-template-columns: 1fr;
  }

  .about-hero h1 {
    font-size: 32px;
  }

  .edu-layout .edu-rail,
  .article-layout .edu-rail {
    grid-template-columns: 1fr;
  }

  .article-layout .edu-rail .side-card+.side-card {
    margin-top: 20px;
  }

  .profile-tabs {
    gap: 18px;
  }

  .stepper {
    transform: scale(0.9);
  }
}

/* Contact Page Responsive */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 40px;
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

@media (max-width: 768px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
    padding: 24px 18px;
    gap: 28px;
  }

  .contact-form-row {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   ERROR PAGES (404, 419, 429)
   ========================================================================== */
.error-page-section {
  min-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px 80px;
  background: radial-gradient(circle at 50% 20%, rgba(255, 106, 0, 0.05) 0%, rgba(8, 120, 201, 0.04) 40%, #ffffff 80%);
}

.error-card {
  max-width: 680px;
  width: 100%;
  text-align: center;
  background: #ffffff;
  border: 1px solid #e9edf2;
  box-shadow: 0 16px 40px -12px rgba(15, 23, 42, 0.08), 0 0 1px 1px rgba(0, 0, 0, 0.02);
  border-radius: 28px;
  padding: 52px 40px 48px;
  position: relative;
  overflow: hidden;
  margin: 0 auto;
}

.error-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--orange) 0%, var(--orange-light) 50%, var(--blue) 100%);
}

.error-illustration {
  margin-bottom: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.error-illustration svg {
  filter: drop-shadow(0 12px 24px rgba(255, 106, 0, 0.12));
}

.error-code-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange-soft);
  color: var(--orange-deep);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 6px 16px;
  border-radius: 9999px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 106, 0, 0.2);
}

.error-code-badge.badge-blue {
  background: #eef6fc;
  color: var(--blue);
  border-color: rgba(8, 120, 201, 0.2);
}

.error-code-badge.badge-purple {
  background: #f5f3ff;
  color: #7c3aed;
  border-color: rgba(124, 58, 237, 0.2);
}

.error-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-ink);
  margin: 0 0 14px;
}

.error-desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 32px;
}

.error-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.error-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 9999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(255, 106, 0, 0.32);
  transition: all 0.25s ease;
}

.error-btn-primary:hover {
  background: var(--orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(255, 106, 0, 0.4);
}

.error-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: var(--text-ink) !important;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 9999px;
  text-decoration: none;
  border: 1.5px solid #d5dde5;
  cursor: pointer;
  transition: all 0.25s ease;
}

.error-btn-secondary:hover {
  border-color: var(--orange);
  color: var(--orange) !important;
  transform: translateY(-2px);
  background: #fffaf7;
}

.error-helpful-box {
  border-top: 1px dashed #e2e8f0;
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.error-helpful-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.error-quick-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s ease;
}

.error-quick-link:hover {
  color: var(--blue-hover);
  text-decoration: underline;
}

@media (max-width: 640px) {
  .error-card {
    padding: 36px 20px 32px;
    border-radius: 20px;
  }

  .error-title {
    font-size: 24px;
  }

  .error-desc {
    font-size: 14px;
  }

  .error-actions {
    flex-direction: column;
    width: 100%;
  }

  .error-btn-primary,
  .error-btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   MOBILE RESPONSIVE FIXES — Home search/nearby, /dentists, /dental-education
   ========================================================================== */

/* Search bar: the desktop left margin on the button pushed the full-width
   button off-centre once the bar wraps/stacks. */
@media (max-width: 1080px) {
  .search-bar .btn-search {
    margin: 0 !important;
    align-self: stretch !important;
  }
}

@media (max-width: 860px) {
  .search-bar .btn-search {
    margin: 4px 0 0 !important;
  }
}

/* Education / Kids article list: thumbnails + body.
   Image is never cropped (contain); a blurred copy fills the rest of the frame. */
.post-card {
  grid-template-columns: 210px 1fr;
}

.post-thumb-wrap {
  position: relative;
  align-self: stretch;
  min-height: 170px;
  overflow: hidden;
  border-radius: 12px;
  background: #f1f5f9;
}

.post-thumb-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--thumb) center / cover no-repeat;
  filter: blur(16px) saturate(1.1);
  transform: scale(1.25);
  opacity: 0.55;
}

.post-card .post-thumb-wrap .post-thumb {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  background: none;
}

.post-card .post-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.post-card h2 {
  overflow-wrap: anywhere;
}

/* Home: "Highly-rated near you" carousel */
.doctor-meta {
  flex-wrap: wrap;
  row-gap: 4px;
}

.rating {
  flex-wrap: wrap;
  row-gap: 2px;
}

@media (max-width: 640px) {
  .section-doctors .section-head {
    align-items: stretch !important;
  }

  .section-doctors .section-head>div:last-child {
    width: 100%;
    justify-content: space-between;
  }

  .section-doctors .section-head .btn-outline {
    height: 38px;
    padding: 0 16px;
    font-size: 13px;
  }

  .section-doctors .section-title {
    font-size: 26px;
    line-height: 1.25;
  }

  .doctor-carousel-wrapper {
    margin-top: 8px;
  }

  .doctor-carousel-track {
    gap: 14px;
    padding: 6px 2px 18px;
    scroll-padding-left: 2px;
  }

  .doctor-carousel-track .doctor-card {
    flex: 0 0 86%;
    min-width: 0;
    padding: 14px;
    gap: 12px;
  }

  .doctor-carousel-track .doctor-photo {
    width: 76px;
    height: 104px;
  }

  .doctor-carousel-track .doctor-name {
    font-size: 16px;
    line-height: 22px;
  }

  .doctor-carousel-track .doctor-meta {
    margin-top: 8px;
    gap: 2px 10px;
  }

  .doctor-carousel-track .rating {
    margin-top: 8px;
  }
}

/* /dentists listing */
@media (max-width: 860px) {
  .result-card {
    align-items: start !important;
  }

  .result-avatar-wrap {
    width: 84px;
  }

  .result-name h2 {
    font-size: 17px;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }

  .chip {
    height: auto;
    min-height: 24px;
    padding: 4px 10px;
    font-size: 11.5px;
    line-height: 1.35;
    white-space: normal;
    max-width: 100%;
  }

  .chip-row {
    gap: 6px;
  }

  .result-action-wrap .btn-profile {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 42px !important;
  }

  .result-card .verified-avatar-badge {
    right: -4px !important;
    bottom: -4px !important;
    width: 24px !important;
    height: 24px !important;
  }

  .result-card .verified-avatar-badge svg {
    width: 12px !important;
    height: 12px !important;
  }

  .results-head {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .results-head h1 {
    font-size: 20px;
  }

  .custom-sort-dropdown .sort-trigger {
    display: flex;
    width: 100%;
  }

  .custom-sort-dropdown .sort-chevron {
    margin-left: auto;
  }

  .custom-sort-dropdown .sort-menu {
    left: 0;
    right: 0;
    min-width: 0;
  }

  .listing-layout {
    margin-top: 12px;
  }
}

/* Phones: photo + name side by side, details full width underneath */
@media (max-width: 560px) {
  .result-card {
    grid-template-columns: 72px 1fr !important;
    gap: 0 14px !important;
    padding: 14px !important;
  }

  .result-avatar-wrap {
    grid-row: span 2;
    width: 72px;
  }

  .result-avatar-img {
    width: 72px !important;
    height: 72px !important;
  }

  .result-info-body {
    display: contents;
  }

  .result-name {
    align-self: end;
  }

  .result-qual {
    align-self: start;
    margin-top: 2px;
  }

  .result-card .chip-row,
  .result-card .result-meta,
  .result-card .result-reviews,
  .result-card .result-action-wrap {
    grid-column: 1 / -1;
  }

  .result-card .chip-row {
    margin-top: 14px;
  }

  .result-card .result-meta {
    margin-top: 10px;
  }

  .result-card .result-reviews {
    margin-top: 4px;
  }

  .result-action-wrap {
    margin-top: 14px;
  }
}

/* /dental-education & /kids-dentistry listing */
@media (max-width: 900px) {
  .edu-layout .edu-rail {
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  .post-card {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px;
  }

  .post-thumb-wrap {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .post-card h2 {
    font-size: 16.5px !important;
  }

  .post-foot {
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  .list-meta {
    flex-wrap: wrap;
    gap: 8px;
  }

  .edu-layout {
    gap: 20px;
  }

  .edu-layout .edu-rail {
    grid-template-columns: 1fr;
  }

  .pill-nav {
    padding-top: 24px;
    gap: 8px;
  }

  .pill {
    height: 36px;
    padding: 0 16px;
    font-size: 13px;
  }
}

/* Education / Kids pages: stop wide content from pushing the middle column
   past the screen (grid items default to min-width: auto). */
.edu-layout>*,
.post-card,
.post-card .post-body {
  min-width: 0;
}

.edu-layout {
  overflow-wrap: anywhere;
}

@media (max-width: 720px) {

  /* Section tabs: one swipeable row instead of 3 stacked rows */
  .pill-nav {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    margin-inline: calc(var(--gutter) * -1);
    padding: 20px var(--gutter) 4px;
  }

  .pill-nav::-webkit-scrollbar {
    display: none;
  }

  .pill-nav .pill {
    flex: none;
    white-space: nowrap;
  }

  /* Compact mascot banner */
  .mascot-banner.page-banner {
    flex-wrap: nowrap;
    height: auto;
    gap: 12px;
    margin-top: 18px;
    padding: 14px 16px;
    border-width: 3px;
  }

  .mascot-banner.page-banner img {
    height: 60px;
    width: auto;
  }

  .mascot-banner.page-banner p {
    font-size: 19px;
    line-height: 1.3;
    font-weight: 600;
    text-align: center;
  }

  .list-meta {
    font-size: 12px;
  }

  .search-articles input {
    font-size: 14px;
  }
}

@media (max-width: 380px) {
  .mascot-banner.page-banner img+p+img {
    display: none;
  }

  .mascot-banner.page-banner img {
    height: 50px;
  }

  .mascot-banner.page-banner p {
    font-size: 17px;
  }
}

@media (max-width: 720px) {
  .custom-pagination {
    justify-content: center !important;
    text-align: center;
  }

  .custom-pagination nav {
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
  }

  .ad-carousel-container,
  .ad-placement-wrapper {
    max-width: 100%;
    min-width: 0;
  }
}

/* ==========================================================================
   ADVERTISEMENTS — <x-ad-placement> slider/single ad and <x-ad-slot>
   ========================================================================== */
.ad-placement-wrapper {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 24px 0;
}

.ad-box {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
}

.ad-box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}

.ad-box-label {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #94a3b8;
}

.ad-carousel-nav {
  display: flex;
  gap: 6px;
}

.ad-carousel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid #cbd5e1;
  border-radius: 50%;
  background: #f1f5f9;
  color: #334155;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ad-carousel-btn:hover {
  background: var(--orange, #ff6a00);
  border-color: var(--orange, #ff6a00);
  color: #ffffff;
}

.ad-slides-viewport {
  overflow: hidden;
  border-radius: 8px;
}

/* Each slide is exactly one viewport wide, so translateX(-n * 100%) always
   lands on a whole ad no matter what the ad contains. */
.ad-slides-track {
  display: flex;
  align-items: stretch;
  transition: transform 0.45s ease-in-out;
  will-change: transform;
}

.ad-slide-item {
  display: flex;
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

.ad-item {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
}

.ad-item--banner {
  background: #f8fafc;
}

/* Show the whole banner (300x250, 728x90, 300x600 or free crop) — never cropped */
.ad-item--banner img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: contain;
}

.edu-rail .ad-item--banner img,
.ad-placement--article_detail_sidebar .ad-item--banner img {
  max-height: 520px;
}

.ad-parsed-content {
  width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
}

.ad-parsed-content * {
  max-width: 100%;
  box-sizing: border-box;
}

.ad-parsed-content img,
.ad-parsed-content video,
.ad-parsed-content iframe {
  max-width: 100% !important;
  height: auto;
}

.ad-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}

.ad-carousel-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: none;
  border-radius: 99px;
  background: #cbd5e1;
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.ad-carousel-dot.is-active {
  width: 20px;
  background: var(--orange, #ff6a00);
}

/* <x-ad-slot> placeholders have fixed IAB widths; keep them inside the column */
.ad-slot-container,
.ad-slot-container>a,
.ad-slot-container>div {
  max-width: 100% !important;
  box-sizing: border-box;
}

@media (max-width: 720px) {
  .ad-slot-leaderboard>a {
    height: auto !important;
  }

  .ad-slot-leaderboard>a>div {
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 16px !important;
  }

  .ad-slot-halfpage>a {
    height: auto !important;
    min-height: 420px;
  }

  .ad-slot-banner>a {
    flex-wrap: wrap;
    gap: 6px;
  }
}

/* ==========================================================================
   LEGAL PAGES (Privacy Policy, Terms & Conditions) — mobile
   Page-level <style> blocks load after this file, so selectors are scoped
   one level deeper (.legal-layout ...) to win.
   ========================================================================== */
.legal-layout>* {
  min-width: 0;
}

@media (max-width: 900px) {

  /* The sticky contents box covered the text while scrolling */
  .legal-layout .legal-toc-wrapper {
    position: static;
    padding: 16px;
  }

  .legal-layout .legal-toc-title {
    margin-bottom: 10px;
    padding-bottom: 10px;
  }

  .legal-layout .legal-toc-list {
    gap: 2px;
  }

  .legal-layout .legal-toc-link {
    padding: 7px 10px;
    font-size: 13px;
  }

  .legal-layout .legal-quick-actions {
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 12px;
    padding-top: 12px;
  }

  .legal-layout .legal-action-btn {
    flex: 1 1 140px;
    text-align: center;
  }

  .legal-layout .legal-card {
    scroll-margin-top: 80px;
  }
}

@media (max-width: 640px) {
  .legal-page-hero {
    padding: 32px 0 26px !important;
  }

  .legal-page-hero .legal-eyebrow {
    font-size: 11px;
    padding: 5px 12px;
    margin-bottom: 12px;
  }

  .legal-page-hero .legal-title {
    font-size: 28px;
  }

  .legal-page-hero .legal-subtitle {
    font-size: 14.5px;
  }

  .legal-page-hero .legal-meta-bar {
    gap: 8px 16px;
    font-size: 12.5px;
  }

  .legal-layout {
    gap: 18px !important;
    padding: 20px 0 40px !important;
  }

  .legal-layout .legal-content {
    gap: 18px;
  }

  .legal-layout .legal-card {
    padding: 20px 16px;
    border-radius: 14px;
  }

  .legal-layout .legal-card-header {
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
  }

  .legal-layout .legal-badge-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .legal-layout .legal-badge-icon svg {
    width: 18px;
    height: 18px;
  }

  .legal-layout .legal-card-header h2 {
    font-size: 18px;
  }

  .legal-layout .legal-paragraph {
    font-size: 14.5px;
    line-height: 1.7;
    overflow-wrap: anywhere;
  }

  .legal-layout .legal-highlight-box,
  .legal-layout .legal-alert-box {
    padding: 14px 14px;
  }

  .legal-layout .legal-split-grid {
    gap: 12px;
  }

  .legal-layout .legal-split-item {
    padding: 16px;
  }

  .legal-layout .legal-contact-callout {
    padding: 24px 18px;
    gap: 16px;
  }

  .legal-layout .legal-contact-callout h3 {
    font-size: 19px;
  }

  .legal-layout .legal-contact-btn {
    width: 100%;
    justify-content: center;
    white-space: normal;
  }
}

/* ==========================================================================
   DENTIST PHOTO + VERIFIED BADGE — profile page hero & home slider cards
   ========================================================================== */
.profile-photo-wrap {
  position: relative;
  align-self: start;
  width: 220px;
  max-width: 100%;
}

.profile-photo {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  object-position: center top;
  border-radius: 12px;
  background: var(--surface-photo);
}

.verified-avatar-badge.profile-verified-badge {
  right: 10px;
  bottom: 10px;
  width: 34px;
  height: 34px;
  border-width: 3px;
}

.verified-avatar-badge.profile-verified-badge svg {
  width: 16px;
  height: 16px;
}

.doctor-photo-wrap {
  position: relative;
  flex: none;
  align-self: flex-start;
}

.doctor-photo-wrap .doctor-photo {
  display: block;
  object-position: center top;
}

.verified-avatar-badge.doctor-verified-badge {
  right: -6px;
  bottom: -6px;
  width: 26px;
  height: 26px;
  border-width: 2.5px;
}

.verified-avatar-badge.doctor-verified-badge svg {
  width: 12px;
  height: 12px;
}

@media (max-width: 900px) {
  .profile-card {
    gap: 20px;
  }

  .profile-photo-wrap {
    width: 100%;
    max-width: 420px;
  }

  .profile-photo {
    max-height: none;
  }
}

@media (max-width: 560px) {
  .profile-card {
    padding: 16px;
    gap: 16px;
  }

  .verified-avatar-badge.profile-verified-badge {
    right: 10px;
    bottom: 10px;
    width: 32px;
    height: 32px;
  }

  .verified-avatar-badge.profile-verified-badge svg {
    width: 14px;
    height: 14px;
  }

  .profile-title {
    gap: 8px;
  }

  .profile-title h1 {
    font-size: 22px;
    line-height: 1.3;
  }

  .profile-qual,
  .profile-loc,
  .profile-reviews {
    overflow-wrap: anywhere;
  }

  .doctor-carousel-track .verified-avatar-badge.doctor-verified-badge {
    width: 22px;
    height: 22px;
    right: -5px;
    bottom: -5px;
  }

  .doctor-carousel-track .verified-avatar-badge.doctor-verified-badge svg {
    width: 11px;
    height: 11px;
  }
}

/* Profile tabs ⓘ tooltips: on small screens the hidden 250px bubbles stuck out
   past the right edge and widened the whole page (horizontal scroll). Show them
   as a fixed card instead — fixed elements never affect page width. */
@media (max-width: 860px) {

  .profile-tabs .tab-info-trigger:hover,
  .profile-tabs .tab-info-trigger.is-open {
    transform: none;
  }

  .profile-tabs .tab-tooltip-bubble,
  .profile-tabs .tab-info-trigger:hover .tab-tooltip-bubble,
  .profile-tabs .tab-info-trigger.is-open .tab-tooltip-bubble {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: calc(120px + env(safe-area-inset-bottom, 0px));
    width: auto;
    max-width: none;
    transform: none;
  }

  .profile-tabs .tab-tooltip-bubble::after {
    display: none;
  }
}

/* Home "Browse by need" treatments: 2 per row on phones */
@media (max-width: 720px) {
  .treatment-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
  }

  .treatment-card {
    flex: none;
    width: auto;
    height: auto;
    min-height: 104px;
    padding: 16px 10px;
    border-radius: 16px;
    text-align: center;
  }

  .treatment-card img {
    width: 34px;
    height: 34px;
  }

  .treatment-card span {
    font-size: 12.5px;
    line-height: 1.35;
  }
}