/* Site-wide footer — centered cards, above side ads & FAB */
.dg-site-footer-band {
  position: relative;
  z-index: 2100;
  width: 100%;
  margin-top: auto;
  background: linear-gradient(180deg, #2f2f2f 0%, #1f1f1f 100%);
  color: #f5f5f5;
  padding: 48px 16px max(100px, calc(72px + env(safe-area-inset-bottom)));
  box-sizing: border-box;
  isolation: isolate;
}

.dg-site-footer-center {
  max-width: min(960px, calc(100vw - 32px));
  margin: 0 auto;
}

@media (min-width: 1025px) {
  .dg-site-footer-center {
    max-width: min(820px, calc(100vw - 440px));
  }
}

.dg-footer-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.dg-footer-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 22px 20px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  min-width: 0;
  box-sizing: border-box;
}

.dg-footer-card h3 {
  margin: 0 0 14px;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: #fff;
  line-height: 1.3;
}

.dg-footer-card h3 i {
  color: #ff8a50;
  margin-right: 6px;
}

.dg-footer-card p {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.dg-footer-card a {
  color: #ffcba4;
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.dg-footer-card a:hover {
  color: #fff;
  text-decoration: underline;
}

.dg-footer-card-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.dg-footer-card-list a {
  display: inline-block;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.85);
}

.dg-footer-card-list a:hover {
  color: #ff8a50;
  text-decoration: none;
}

.dg-footer-doctor-block {
  background: linear-gradient(135deg, rgba(242, 103, 39, 0.22), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(242, 103, 39, 0.45);
  border-radius: 16px;
  padding: 24px 20px;
  margin-bottom: 24px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.dg-footer-doctor-block h3 {
  margin: 0 0 8px;
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: #fff;
}

.dg-footer-doctor-block p {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
  line-height: 1.55;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.dg-footer-doctor-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: linear-gradient(135deg, #f26727, #ff8a50);
  color: #fff !important;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 4px 16px rgba(242, 103, 39, 0.35);
  transition: transform 0.15s;
}

.dg-footer-doctor-btn:hover {
  transform: translateY(-1px);
  color: #fff !important;
}

.dg-site-footer-legal-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: center;
  padding: 18px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 16px;
}

.dg-site-footer-legal-bar a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 500;
}

.dg-site-footer-legal-bar a:hover {
  color: #ff8a50;
}

.dg-site-footer-copy {
  text-align: center;
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}

.dg-site-footer-copy a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.dg-site-footer-copy a:hover {
  color: #ff8a50;
}

/* Legacy index footer wrapper — keep readable when class combo used */
.footer.dg-site-footer {
  position: relative;
  z-index: 2100;
  padding-bottom: max(100px, calc(72px + env(safe-area-inset-bottom)));
}

.footer.dg-site-footer .dg-site-footer-center {
  max-width: min(960px, calc(100vw - 32px));
  margin: 0 auto;
}

@media (min-width: 1025px) {
  .footer.dg-site-footer .dg-site-footer-center {
    max-width: min(820px, calc(100vw - 440px));
  }
}
