/* Reset and base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: Arial, sans-serif;
  background: #f8f9fa;
  color: #333;
  line-height: 1.6;
}
a {
  color: inherit;
  text-decoration: none;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & nav */
header {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-top {
  padding: 0.5rem 0;
  text-align: center;
  font-size: 0.9rem;
}
nav {
  border-top: 1px solid rgba(255,255,255,0.2);
}
nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
nav li {
  margin: 0.6rem 1rem;
}
nav a {
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
  padding-bottom: 0.2rem;
  border-bottom: 2px solid transparent;
}
nav a:hover,
nav a.active {
  border-color: #ffd700;
}

/* Hero (home only) */
.hero {
  background: linear-gradient(rgba(0,123,255,0.85), rgba(0,86,179,0.85));
  color: #fff;
  text-align: center;
  padding: 4.5rem 0 3.5rem;
}
.hero h1 {
  font-size: 2.3rem;
  margin-bottom: 0.5rem;
}
.hero h2 {
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 1.2rem;
}
.hero p {
  font-size: 1rem;
  max-width: 650px;
  margin: 0.3rem auto;
}
.hero-cta {
  margin-top: 1.8rem;
}
.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 2px solid #fff;
  color: #007bff;
  background: #fff;
}
.btn.secondary {
  background: transparent;
  color: #fff;
  border-color: #ffd700;
  margin-left: 0.6rem;
}
.btn:hover {
  opacity: 0.9;
}

/* Page layout */
main {
  padding: 2.5rem 0 3rem;
}
.page-title {
  text-align: center;
  margin-bottom: 2rem;
}
.page-title h1 {
  font-size: 1.9rem;
  color: #007bff;
}
.page-title p {
  color: #555;
  margin-top: 0.4rem;
}

/* Home: about & services */
.grid-2 {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 2rem;
  align-items: start;
}
.card {
  background: #fff;
  padding: 1.6rem;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}
.card h2 {
  font-size: 1.3rem;
  color: #007bff;
  margin-bottom: 0.8rem;
}
.card p {
  margin-bottom: 0.7rem;
}
.doctor-photo {
  height: 260px;
  border-radius: 10px;
  background: linear-gradient(135deg, #e3f2fd, #e3f2fd);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2f4f6f;
  font-size: 0.95rem;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin-top: 1rem;
}
.service-card {
  background: #fff;
  border-radius: 10px;
  padding: 1.1rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
  text-align: left;
}
.service-card h3 {
  font-size: 1rem;
  color: #007bff;
  margin-bottom: 0.4rem;
}
.service-card p {
  font-size: 0.9rem;
  color: #555;
}

/* Info blocks for subpages */
.info-list {
  list-style: none;
}
.info-list li {
  margin-bottom: 0.6rem;
}
.info-list strong {
  color: #007bff;
}
.notice {
  background: #fff3cd;
  border: 1px solid #ffeeba;
  color: #856404;
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* Location & contact */
.contact-block {
  display: grid;
  grid-template-columns: 3fr 4fr;
  gap: 1.5rem;
}
.contact-details p {
  margin-bottom: 0.4rem;
}
.badge {
  display: inline-block;
  background: #e3f2fd;
  color: #0056b3;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  margin-bottom: 0.4rem;
}
.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.8rem;
  font-size: 0.9rem;
}
.hours-table th,
.hours-table td {
  padding: 0.4rem 0.3rem;
  border-bottom: 1px solid #eee;
  text-align: left;
}
.map-embed,
.map-placeholder {
  border-radius: 10px;
  overflow: hidden;
  background: #e0e0e0;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 0.9rem;
}

/* Payment */
.payment-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}
.payment-box {
  padding: 1rem;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
}
.payment-box h3 {
  font-size: 1rem;
  color: #007bff;
  margin-bottom: 0.5rem;
}
.payment-box p {
  font-size: 0.9rem;
}
.payment-note {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.6rem;
}

/* Forms link */
.forms-list {
  list-style: none;
}
.forms-list li {
  margin-bottom: 0.6rem;
}

/* Footer */
footer {
  background: #333;
  color: #eee;
  font-size: 0.8rem;
  text-align: center;
  padding: 1.2rem 0;
}
footer a {
  color: #007bff;
}

/* === Base styles already defined above (no change) === */

/* Mobile-first tweaks: default base is for desktop/tablet.
   Below we adapt layouts for smaller screens. */

/* Up to 768px: phones & small tablets */
@media (max-width: 768px) {
  body {
    font-size: 15px;
  }

  header .header-top {
    padding: 0.4rem 0.5rem;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
  }

  nav li {
    margin: 0.3rem 0;
  }

  .hero {
    padding: 3.2rem 0 2.3rem;
  }

  .hero h1 {
    font-size: 1.7rem;
  }

  .hero h2 {
    font-size: 1rem;
  }

  .hero p {
    padding: 0 0.4rem;
  }

  .hero-cta {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
  }

  .btn.secondary {
    margin-left: 0;
  }

  main {
    padding: 2rem 0 2.4rem;
  }

  .grid-2,
  .contact-block {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 1.2rem 1rem;
  }

  .doctor-photo,
  .map-placeholder,
  .map-embed {
    height: 100px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .payment-options {
    grid-template-columns: 1fr;
  }

  .hours-table th,
  .hours-table td {
    font-size: 0.85rem;
  }

  footer {
    padding: 1rem 0.5rem;
  }
}

/* Very small phones: up to 480px */
@media (max-width: 480px) {
  .container {
    padding: 0 14px;
  }

  .hero {
    padding: 2.7rem 0 2rem;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .hero h2 {
    font-size: 0.95rem;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .page-title h1 {
    font-size: 1.5rem;
  }

  .page-title p {
    font-size: 0.9rem;
  }

  nav a {
    font-size: 0.8rem;
  }
}

/* Medium screens (769px–1024px): tablets / small laptops */
@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    max-width: 960px;
  }

  .grid-2 {
    grid-template-columns: 2fr 2fr;
    gap: 1.4rem;
  }

  .contact-block {
    grid-template-columns: 2.2fr 2.8fr;
  }

  .doctor-photo,
  .map-placeholder,
  .map-embed {
    height: 600px;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .payment-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Large desktops (1200px and up): slightly wider max width */
@media (min-width: 1200px) {
  .container {
    max-width: 1200px;
  }
}
