/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', 'Noto Sans Telugu', sans-serif;
  background-color: #f0fdf4;
  color: #1f2a44;
  line-height: 1.6;
}

/* Header */
.main-header {
  text-align: center;
  background-color: #a7f3d0;
  padding: 2.5rem 1rem;
}

.header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.header-title {
  text-align: center;
}

.main-header h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: #2563eb;
  letter-spacing: 0.05rem;
}

.subtitle {
  font-size: 1.25rem;
  color: #166534;
  margin-top: 0.5rem;
}

.legacy-photos {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.legacy-photo {
  max-width: 10rem;
}

.legacy-image {
  width: 100%;
  height: 10rem;
  object-fit: cover;
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.legacy-image:hover {
  transform: scale(1.05);
}

.legacy-photo p {
  font-size: 1rem;
  font-weight: 700;
  color: #166534;
  margin-top: 0.5rem;
  text-align: center;
}

.legacy-caption {
  font-size: 1.1rem;
  font-weight: 700;
  color: #166534;
  text-align: center;
  margin-top: 0.75rem;
}

/* Doctor Section */
.doctor-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 3rem 5%;
  background-color: #ffffff;
  gap: 2rem;
}

.doctor-image {
  width: 16rem;
  height: 16rem;
  object-fit: cover;
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.doctor-image:hover {
  transform: scale(1.05);
}

.doctor-info h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #166534;
}

.doctor-info p {
  font-size: 1.125rem;
  color: #4b5563;
  margin-top: 0.75rem;
}

/* Galleries, Branches, and Reviews */
.treatment-gallery,
.branches-section,
.reviews-section,
.video-posts,
.contact-section {
  padding: 3rem 5%;
  background-color: #f0fdf4;
}

.treatment-gallery h2,
.branches-section h2,
.reviews-section h2,
.video-posts h2,
.contact-section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #166534;
  text-align: center;
  margin-bottom: 1.5rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.gallery img {
  width: 100%;
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.05);
}

/* Branches Grid */
.branches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.branch-card {
  background-color: #ffffff;
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.branch-card:hover {
  transform: translateY(-0.5rem);
}

.branch-image {
  width: 100%;
  height: 12rem;
  object-fit: cover;
  border-bottom: 2px solid #a7f3d0;
}

.branch-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #166534;
  padding: 1rem 1.5rem 0.5rem;
}

.branch-card p {
  font-size: 1rem;
  color: #4b5563;
  padding: 0.5rem 1.5rem;
}

.branch-card p strong {
  color: #2563eb;
}

.branch-card p a {
  color: #2563eb;
  text-decoration: none;
  transition: color 0.3s ease;
}

.branch-card p a:hover {
  color: #1e40af;
  text-decoration: underline;
}

/* Reviews Grid */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.review-card {
  background-color: #ffffff;
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s ease;
}

.review-card:hover {
  transform: translateY(-0.5rem);
}

.patient-image {
  width: 6rem;
  height: 6rem;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.review-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #166534;
  margin-bottom: 0.5rem;
}

.rating {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  background-color: #facc15;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  margin-bottom: 0.75rem;
  display: inline-block;
}

.review-card p {
  font-size: 0.875rem;
  color: #4b5563;
  line-height: 1.5;
}

/* Video and Social Embeds */
.video-embed,
.fb-embed,
.map-embed {
  position: relative;
  height: 300px;
  max-width: 500px;
  margin: 1.5rem auto;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.video-embed iframe,
.fb-embed iframe,
.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.map-caption {
  font-size: 1.125rem;
  color: #4b5563;
  text-align: center;
  margin-bottom: 0.5rem;
}

/* Contact Section */
.contact-section {
  text-align: center;
  background-color: #ffffff;
}

.address,
.contact,
.map-link,
.social-links {
  font-size: 1.125rem;
  color: #4b5563;
  margin-bottom: 1rem;
}

.contact a,
.map-link a,
.social-links a {
  color: #2563eb;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact a:hover,
.map-link a:hover,
.social-links a:hover {
  color: #1e40af;
  text-decoration: underline;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #2563eb;
  color: #ffffff;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 700;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #1e40af;
}

/* Footer */
.main-footer {
  text-align: center;
  background-color: #a7f3d0;
  padding: 1.5rem 1rem;
  color: #166534;
  font-size: 1rem;
}

.main-footer a {
  color: #2563eb;
  text-decoration: none;
  margin: 0 0.5rem;
}

.main-footer a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  .main-header h1 {
    font-size: 2.5rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .legacy-photo {
    max-width: 8rem;
  }

  .legacy-image {
    height: 8rem;
  }

  .legacy-caption {
    font-size: 1rem;
  }

  .doctor-section {
    flex-direction: column;
    text-align: center;
  }

  .doctor-image {
    margin: 0 auto 1.5rem;
  }

  .doctor-info h2 {
    font-size: 1.75rem;
  }

  .treatment-gallery h2,
  .branches-section h2,
  .reviews-section h2,
  .video-posts h2,
  .contact-section h2 {
    font-size: 1.75rem;
  }

  .branches-grid,
  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .branch-card h3,
  .review-card h3 {
    font-size: 1.25rem;
  }

  .branch-card p,
  .review-card p {
    font-size: 0.875rem;
  }

  .video-embed,
  .fb-embed,
  .map-embed {
    height: 250px;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .main-header {
    padding: 1.5rem 0.5rem;
  }

  .legacy-photos {
    flex-direction: column;
    gap: 1rem;
  }

  .legacy-photo {
    max-width: 10rem;
  }

  .legacy-image {
    height: 10rem;
  }

  .legacy-photo p {
    font-size: 0.875rem;
  }

  .legacy-caption {
    font-size: 0.875rem;
  }

  .doctor-image {
    width: 12rem;
    height: 12rem;
  }

  .patient-image {
    width: 5rem;
    height: 5rem;
  }

  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }

  .branch-image {
    height: 10rem;
  }

  .video-embed,
  .fb-embed,
  .map-embed {
    height: 200px;
  }
}