/*
Theme Name: Prasanthi Hospitals
Theme URI: https://prasanthihospitals.com/
Author: Prasanthi Hospitals
Description: Custom lightweight WordPress theme based on the Prasanthi Hospitals HTML website.
Version: 1.0.2
Requires at least: 6.0
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: prasanthi-hospitals
*/

:root {
  --purple: #6b2c91;
  --purple-dark: #4d1f69;
  --orange: #f28c28;
  --text: #252525;
  --muted: #666;
  --light: #f7f5f8;
  --white: #fff;
  --border: #e8e2eb;
  --shadow: 0 10px 30px rgba(54, 28, 68, .10);
  --radius: 14px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.65;
}
a { color: var(--purple); text-decoration: none; }
a:hover { color: var(--purple-dark); }

.container { width: min(92%, var(--max)); margin: 0 auto; }

.topbar {
  background: var(--purple-dark);
  color: #fff;
  font-size: 14px;
}
.topbar .container {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.topbar a { color: #fff; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.site-branding img { display: block; max-height: 68px; width: auto; }
.site-title { margin: 0; font-size: 22px; color: var(--purple); }
.site-description { margin: 0; color: var(--muted); font-size: 13px; }

.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.main-navigation a {
  color: #333;
  font-weight: 600;
  font-size: 15px;
}
.main-navigation a:hover { color: var(--purple); }

.hero {
  padding: 88px 0;
  background: linear-gradient(135deg, #faf7fc 0%, #fff 55%, #fff8f1 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: center;
  gap: 60px;
}
.eyebrow {
  color: var(--orange);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 13px;
}
.hero h1 {
  margin: 10px 0 18px;
  color: var(--purple-dark);
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.08;
}
.hero p { font-size: 18px; color: #555; max-width: 680px; }
.button {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 8px;
  background: var(--purple);
  color: #fff;
  font-weight: 700;
  border: 2px solid var(--purple);
}
.button:hover { color: #fff; background: var(--purple-dark); }
.button.secondary {
  background: transparent;
  color: var(--purple);
  margin-left: 8px;
}
.hero-card {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-card h3 { color: var(--purple); margin-top: 0; }

.notice {
  background: var(--purple);
  color: #fff;
  padding: 18px 0;
}
.notice strong { color: #fff; }

.section { padding: 78px 0; }
.section.alt { background: var(--light); }
.section-heading { max-width: 760px; margin-bottom: 38px; }
.section-heading h2 {
  color: var(--purple-dark);
  font-size: 34px;
  margin: 0 0 10px;
}
.section-heading p { color: var(--muted); margin: 0; }

.about-grid, .contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 45px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.card h3 { color: var(--purple); margin-top: 0; }

.doctor-profile {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 52px;
  align-items: center;
  padding: 54px 0;
  border-bottom: 1px solid var(--border);
}
.doctor-profile:last-child { border-bottom: 0; }
.doctor-profile.reverse { grid-template-columns: 1fr 360px; }
.doctor-profile.reverse .doctor-photo { order: 2; }
.doctor-photo img {
  width: 100%;
  aspect-ratio: 8 / 9;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.doctor-role { color: var(--orange); font-weight: 700; margin: 0 0 5px; }
.doctor-profile h3 { font-size: 30px; color: var(--purple-dark); margin: 0 0 8px; }
.doctor-profile .qualification { font-weight: 700; color: #555; }
.view-profile {
  display: inline-block;
  margin-top: 18px;
  font-weight: 700;
  color: var(--purple);
}
.view-profile::after { content: " →"; color: var(--orange); }
/* Doctors Grid */
.doctors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.doctor-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease;
}

.doctor-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 35px rgba(54, 28, 68, .14);
}

.doctor-card-photo {
  width: 100%;
  height: 320px;
  overflow: hidden;
  background: var(--light);
}

.doctor-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.doctor-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.doctor-card-content .doctor-role {
  margin: 0 0 6px;
}

.doctor-card-content h3 {
  color: var(--purple-dark);
  font-size: 25px;
  margin: 0 0 8px;
}

.doctor-card-content .qualification {
  margin: 0 0 12px;
}

.doctor-card-content > p:not(.doctor-role):not(.qualification) {
  color: #555;
  margin-top: 0;
}

.doctor-card-content .view-profile {
  margin-top: auto;
  padding-top: 12px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service-card {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}
.service-card h3 { margin-top: 0; color: var(--purple); }

.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { margin-bottom: 13px; }
.map-wrap iframe { width: 100%; min-height: 430px; border: 0; border-radius: var(--radius); }

.site-footer {
  background: #271633;
  color: #ddd;
  padding: 42px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 35px;
}
.site-footer h3 { color: #fff; }
.site-footer a { color: #fff; }
.copyright {
  border-top: 1px solid rgba(255,255,255,.15);
  margin-top: 30px;
  padding-top: 18px;
  font-size: 13px;
  color: #bbb;
}

.page-header {
  background: var(--light);
  padding: 55px 0;
}
.page-header h1 { margin: 0; color: var(--purple-dark); font-size: 42px; }

.entry-content { padding: 55px 0; }
.entry-content h2, .entry-content h3 { color: var(--purple-dark); }
/* Doctor Profile Page */
.profile-page {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 60px;
  padding: 65px 0;
  max-width: 1080px;
  margin: 0 auto;
  align-items: start;
}

.profile-image {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.profile-image img {
  display: block;
  width: 280px;
  height: 350px;
  object-fit: cover;
  object-position: center top;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.profile-content {
  min-width: 0;
}

.profile-meta {
  color: var(--orange);
  font-weight: 700;
  margin: 5px 0 8px;
}

.profile-content h1 {
  color: var(--purple-dark);
  font-size: 38px;
  line-height: 1.2;
  margin: 0 0 12px;
}

.profile-qualification {
  color: #555;
  font-size: 17px;
  margin: 0 0 18px;
}

.profile-intro {
  color: #444;
  font-size: 16px;
  margin-bottom: 24px;
}

.consultation-box {
  background: var(--light);
  border-left: 4px solid var(--purple);
  padding: 16px 20px;
  margin: 25px 0;
  border-radius: 0 8px 8px 0;
}

.consultation-box h3 {
  color: var(--purple-dark);
  margin: 0 0 5px;
  font-size: 17px;
}

.consultation-box p {
  margin: 0;
  color: #555;
}

.doctor-professional-profile {
  margin-top: 25px;
}

.doctor-professional-profile h2 {
  color: var(--purple-dark);
  font-size: 28px;
  margin-bottom: 20px;
}

.doctor-professional-profile h3 {
  color: var(--purple-dark);
}

.doctor-professional-profile ul {
  padding-left: 22px;
}

.doctor-enquiry {
  margin-top: 30px;
}

@media (max-width: 900px) {
  .hero-grid,
  .about-grid,
  .contact-grid,
  .profile-page {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  .header-inner {
    flex-direction: column;
    padding: 14px 0;
  }

  .main-navigation ul {
    justify-content: center;
    gap: 14px;
  }

  .doctor-profile,
  .doctor-profile.reverse {
    grid-template-columns: 1fr;
  }

  .doctor-profile.reverse .doctor-photo {
    order: 0;
  }

  .doctor-photo {
    max-width: 500px;
  }

  /* Doctor profile page */
  .profile-page {
    max-width: 700px;
    gap: 35px;
    padding: 50px 0;
  }

  .profile-image {
    justify-content: center;
  }

  .profile-image img {
    width: 260px;
    height: 325px;
  }

  .profile-content h1 {
    font-size: 32px;
  }
	  .doctors-grid {
    grid-template-columns: 1fr 1fr;
  }

  .doctor-card-photo {
    height: 300px;
  }
}
@media (max-width: 600px) {
  .topbar .container { flex-direction: column; justify-content: center; padding: 8px 0; }
  .hero { padding: 55px 0; }
  .section { padding: 55px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .button.secondary { margin: 10px 0 0; }
  .hero h1 { font-size: 40px; }
   .doctors-grid {
    grid-template-columns: 1fr;
  }
  .doctor-card-photo {
    height: 340px;
  }
}/* =========================================================
   Services Page
   ========================================================= */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 35px rgba(54, 28, 68, .14);
}

.service-icon {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light);
  border-radius: 14px;
  font-size: 28px;
  margin-bottom: 20px;
}

.service-card h3 {
  color: var(--purple-dark);
  font-size: 23px;
  margin: 0 0 12px;
}

.service-card p {
  color: #555;
  margin: 0 0 20px;
  flex: 1;
}

.service-card a {
  display: inline-block;
  color: var(--purple);
  font-weight: 700;
  margin-top: auto;
}

.service-card a::after {
  content: " →";
  color: var(--orange);
}

.service-card a:hover {
  color: var(--purple-dark);
}


/* Services page introduction */

.site-page .section-heading {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.site-page .section-heading p {
  color: var(--muted);
}


/* Why Choose Us */

.site-page .about-grid {
  align-items: stretch;
}

.site-page .about-grid > div {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.site-page .about-grid h3 {
  color: var(--purple-dark);
  margin-top: 0;
  margin-bottom: 10px;
}

.site-page .about-grid p {
  color: #555;
  margin-bottom: 0;
}


/* Services page responsive layout */

@media (max-width: 900px) {

  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

}


@media (max-width: 600px) {

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: 26px 22px;
  }

}
/* =========================================================
   Services Page
   ========================================================= */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 35px rgba(54, 28, 68, .14);
}

.service-icon {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light);
  border-radius: 14px;
  font-size: 28px;
  margin-bottom: 20px;
}

.service-card h3 {
  color: var(--purple-dark);
  font-size: 23px;
  margin: 0 0 12px;
}

.service-card p {
  color: #555;
  margin: 0 0 20px;
  flex: 1;
}

.service-card a {
  display: inline-block;
  color: var(--purple);
  font-weight: 700;
  margin-top: auto;
}

.service-card a::after {
  content: " →";
  color: var(--orange);
}

.service-card a:hover {
  color: var(--purple-dark);
}


/* Services page introduction */

.site-page .section-heading {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.site-page .section-heading p {
  color: var(--muted);
}


/* Why Choose Us */

.site-page .about-grid {
  align-items: stretch;
}

.site-page .about-grid > div {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.site-page .about-grid h3 {
  color: var(--purple-dark);
  margin-top: 0;
  margin-bottom: 10px;
}

.site-page .about-grid p {
  color: #555;
  margin-bottom: 0;
}


/* Services page responsive layout */

@media (max-width: 900px) {

  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

}


@media (max-width: 600px) {

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: 26px 22px;
  }

}
/* Why Choose Prasanthi Hospitals - 3 column layout */

.site-page .about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .site-page .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .site-page .about-grid {
    grid-template-columns: 1fr;
  }
}
/* =========================================================
   About Us Page
   ========================================================= */

.about-page-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, .8fr);
  gap: 60px;
  align-items: center;
}

.about-page-content h2 {
  color: var(--purple-dark);
  font-size: 36px;
  line-height: 1.25;
  margin: 0 0 20px;
}

.about-page-content p {
  color: #555;
  font-size: 16px;
}

.about-page-content .doctor-role {
  color: var(--orange);
  font-weight: 700;
  margin-bottom: 8px;
}


/* Highlight statistics */

.about-highlight {
  display: grid;
  gap: 16px;
}

.about-highlight-box {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}

.about-highlight-number {
  display: block;
  color: var(--purple);
  font-size: 32px;
  font-weight: 800;
  line-height: 1.1;
}

.about-highlight-label {
  display: block;
  color: #555;
  font-size: 14px;
  margin-top: 5px;
}


/* Our Approach */

.about-values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.about-value-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}

.about-value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 35px rgba(54, 28, 68, .14);
}

.about-value-icon {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light);
  border-radius: 14px;
  font-size: 28px;
  margin-bottom: 20px;
}

.about-value-card h3 {
  color: var(--purple-dark);
  font-size: 22px;
  margin: 0 0 12px;
}

.about-value-card p {
  color: #555;
  margin: 0;
}


/* Commitment section */

.about-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, .8fr);
  gap: 60px;
  align-items: start;
}

.about-story-grid h2 {
  color: var(--purple-dark);
  font-size: 34px;
  margin: 0 0 18px;
}

.about-story-grid p {
  color: #555;
}

.about-story-grid .doctor-role {
  color: var(--orange);
  font-weight: 700;
  margin-bottom: 8px;
}

.about-story-box {
  background: var(--light);
  border-radius: var(--radius);
  padding: 30px;
  border: 1px solid var(--border);
}

.about-story-box h3 {
  color: var(--purple-dark);
  margin-top: 0;
  margin-bottom: 16px;
}

.about-story-box ul {
  margin: 0;
  padding-left: 20px;
}

.about-story-box li {
  margin-bottom: 10px;
  color: #555;
}


/* Doctors CTA section */

.site-page .section-heading .button {
  margin-top: 18px;
}


/* Final About CTA */

.about-cta {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding: 10px 0;
}

.about-cta h2 {
  color: var(--purple-dark);
  font-size: 32px;
  margin: 0 0 12px;
}

.about-cta p {
  color: #555;
  margin-bottom: 22px;
}


/* About Us responsive layout */

@media (max-width: 900px) {

  .about-page-intro,
  .about-story-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-values-grid {
    grid-template-columns: 1fr 1fr;
  }

}


@media (max-width: 600px) {

  .about-page-content h2 {
    font-size: 30px;
  }

  .about-values-grid {
    grid-template-columns: 1fr;
  }

  .about-story-grid h2 {
    font-size: 30px;
  }

}/* =========================================================
   Contact Us Page
   ========================================================= */

.contact-page-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 35px;
  align-items: stretch;
}

.contact-page-details {
  display: grid;
  gap: 16px;
}

.contact-detail-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}

.contact-detail-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light);
  border-radius: 12px;
  font-size: 22px;
}

.contact-detail-card h3 {
  color: var(--purple-dark);
  font-size: 18px;
  margin: 0 0 5px;
}

.contact-detail-card p {
  color: #555;
  margin: 0;
}

.contact-detail-card a {
  font-weight: 600;
}


.contact-whatsapp-card {
  background: var(--purple-dark);
  color: #fff;
  border-radius: var(--radius);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  box-shadow: var(--shadow);
}

.contact-whatsapp-icon {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.12);
  border-radius: 14px;
  font-size: 28px;
  margin-bottom: 20px;
}

.contact-whatsapp-card h2 {
  color: #fff;
  margin: 0 0 12px;
  font-size: 30px;
}

.contact-whatsapp-card p {
  color: rgba(255,255,255,.88);
}

.contact-whatsapp-card .button {
  margin-top: 12px;
  background: var(--orange);
  color: #fff;
}

.contact-whatsapp-card .button:hover {
  color: #fff;
}

.contact-whatsapp-number {
  font-weight: 700;
  margin-top: 18px;
}


.opd-timing-card {
  max-width: 850px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.opd-timing-card > div {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 25px;
  text-align: center;
  box-shadow: var(--shadow);
}

.opd-label {
  display: block;
  color: var(--orange);
  font-weight: 700;
  margin-bottom: 8px;
}

.opd-timing-card strong {
  display: block;
  color: var(--purple-dark);
  font-size: 22px;
}


.contact-map {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-map iframe {
  display: block;
  width: 100%;
  min-height: 450px;
}


@media (max-width: 900px) {

  .contact-page-grid {
    grid-template-columns: 1fr;
  }

}


@media (max-width: 600px) {

  .opd-timing-card {
    grid-template-columns: 1fr;
  }

  .contact-whatsapp-card {
    padding: 32px 25px;
  }

  .contact-whatsapp-card h2 {
    font-size: 26px;
  }

  .contact-detail-card {
    padding: 18px;
  }

}
/* =========================================================
   Contact Us Page
   ========================================================= */

.contact-page-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 35px;
  align-items: stretch;
}

.contact-page-details {
  display: grid;
  gap: 16px;
}

.contact-detail-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}

.contact-detail-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light);
  border-radius: 12px;
  font-size: 22px;
}

.contact-detail-card h3 {
  color: var(--purple-dark);
  font-size: 18px;
  margin: 0 0 5px;
}

.contact-detail-card p {
  color: #555;
  margin: 0;
}

.contact-detail-card a {
  font-weight: 600;
}


.contact-whatsapp-card {
  background: var(--purple-dark);
  color: #fff;
  border-radius: var(--radius);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  box-shadow: var(--shadow);
}

.contact-whatsapp-icon {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.12);
  border-radius: 14px;
  font-size: 28px;
  margin-bottom: 20px;
}

.contact-whatsapp-card h2 {
  color: #fff;
  margin: 0 0 12px;
  font-size: 30px;
}

.contact-whatsapp-card p {
  color: rgba(255,255,255,.88);
}

.contact-whatsapp-card .button {
  margin-top: 12px;
  background: var(--orange);
  color: #fff;
}

.contact-whatsapp-card .button:hover {
  color: #fff;
}

.contact-whatsapp-number {
  font-weight: 700;
  margin-top: 18px;
}


.opd-timing-card {
  max-width: 850px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.opd-timing-card > div {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 25px;
  text-align: center;
  box-shadow: var(--shadow);
}

.opd-label {
  display: block;
  color: var(--orange);
  font-weight: 700;
  margin-bottom: 8px;
}

.opd-timing-card strong {
  display: block;
  color: var(--purple-dark);
  font-size: 22px;
}


.contact-map {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-map iframe {
  display: block;
  width: 100%;
  min-height: 450px;
}


@media (max-width: 900px) {

  .contact-page-grid {
    grid-template-columns: 1fr;
  }

}


@media (max-width: 600px) {

  .opd-timing-card {
    grid-template-columns: 1fr;
  }

  .contact-whatsapp-card {
    padding: 32px 25px;
  }

  .contact-whatsapp-card h2 {
    font-size: 26px;
  }

  .contact-detail-card {
    padding: 18px;
  }

}
/* =========================================================
   Final Header Polish
   ========================================================= */

.site-branding {
  display: flex;
  align-items: center;
}

.site-branding .custom-logo-link {
  display: block;
  line-height: 0;
}

.site-branding .custom-logo {
  display: block;
  width: auto;
  max-width: 180px;
  max-height: 78px;
  object-fit: contain;
}


/* Navigation */

.main-navigation ul {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-navigation li {
  margin: 0;
  padding: 0;
}

.main-navigation a {
  display: block;
  color: var(--text);
  font-weight: 700;
  padding: 10px 0;
  transition: color .2s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
  color: var(--purple);
}


/* Top bar links */

.topbar a {
  color: #fff;
}

.topbar a:hover {
  color: #fff;
  text-decoration: underline;
}


/* Mobile header */

@media (max-width: 900px) {

  .site-branding {
    justify-content: center;
  }

  .site-branding .custom-logo {
    max-width: 160px;
    max-height: 70px;
  }

  .main-navigation ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 18px;
  }

  .main-navigation a {
    padding: 5px 0;
  }

}


@media (max-width: 600px) {

  .site-branding .custom-logo {
    max-width: 145px;
    max-height: 65px;
  }

  .main-navigation ul {
    gap: 5px 14px;
  }

  .main-navigation a {
    font-size: 14px;
  }

}
/* =========================================================
   Homepage Hero - Final Layout
   ========================================================= */

.hero-content {
  min-width: 0;
}

.hero-content h1 {
  font-size: 64px;
  line-height: 1.08;
  margin: 12px 0 22px;
}

.hero-content h1 span {
  color: var(--purple);
}

.hero-content > p {
  max-width: 680px;
  font-size: 18px;
  color: #555;
  margin-bottom: 26px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions .button {
  margin: 0;
}

.hero-opd {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 28px;
}

.hero-opd > div {
  display: flex;
  gap: 6px;
  align-items: baseline;
}

.hero-opd strong {
  color: var(--text);
}

.hero-opd span {
  color: #555;
}


/* Hero image card */

.hero-image-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 38px 30px 30px;
  box-shadow: var(--shadow);
  text-align: center;
  min-height: 470px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-hospital-image {
  display: block;
  width: 300px;
  height: 300px;
  object-fit: contain;
  margin-bottom: 18px;
}

.hero-image-card h2 {
  color: var(--purple-dark);
  font-size: 27px;
  margin: 0 0 3px;
}

.hero-image-card p {
  color: var(--text);
  font-size: 17px;
  margin: 0 0 3px;
}

.hero-image-card span {
  color: #666;
  font-size: 14px;
}


/* Tablet */

@media (max-width: 900px) {

  .hero-content h1 {
    font-size: 50px;
  }

  .hero-image-card {
    min-height: 420px;
  }

  .hero-hospital-image {
    width: 260px;
    height: 260px;
  }

}


/* Mobile */

@media (max-width: 600px) {

  .hero-content h1 {
    font-size: 42px;
  }

  .hero-content > p {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .button {
    text-align: center;
  }

  .hero-opd {
    flex-direction: column;
    gap: 10px;
  }

  .hero-image-card {
    min-height: 380px;
    padding: 30px 20px;
  }

  .hero-hospital-image {
    width: 230px;
    height: 230px;
  }

}
/* =========================================================
   Header Hospital Branding
   ========================================================= */

.site-branding {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-logo-link {
  display: block;
  line-height: 0;
  flex-shrink: 0;
}

.site-logo-link .custom-logo {
  display: block;
  width: auto;
  max-width: 72px;
  max-height: 72px;
  object-fit: contain;
}

.site-brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.site-title-link {
  line-height: 1.1;
}

.site-title {
  color: var(--purple-dark);
  font-size: 23px;
  font-weight: 800;
}

.site-tagline {
  color: #777;
  font-size: 11px;
  letter-spacing: 1.5px;
  margin-top: 5px;
}


/* Mobile */

@media (max-width: 900px) {

  .site-branding {
    justify-content: center;
  }

  .site-logo-link .custom-logo {
    max-width: 62px;
    max-height: 62px;
  }

  .site-title {
    font-size: 20px;
  }

}

@media (max-width: 600px) {

  .site-branding {
    gap: 10px;
  }

  .site-logo-link .custom-logo {
    max-width: 55px;
    max-height: 55px;
  }

  .site-title {
    font-size: 18px;
  }

  .site-tagline {
    font-size: 9px;
    letter-spacing: 1px;
  }

}


/* =========================================================
   Formatting refinements — smaller images and clearer spacing
   ========================================================= */

.hero,
.section {
  padding: 56px 0;
}

.page-header {
  padding: 40px 0;
}

.section-heading {
  margin-bottom: 28px;
}

.hero h1,
.hero-content h1 {
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.12;
  margin-bottom: 18px;
}

.hero-image-card {
  min-height: 0;
  padding: 28px;
}

.hero-hospital-image {
  width: 220px;
  max-width: 100%;
  height: 220px;
  object-fit: contain;
  margin-bottom: 16px;
}

.section-heading h2,
.page-header h1,
.about-page-content h2,
.about-story-grid h2 {
  font-size: 32px;
  line-height: 1.25;
}

.profile-page {
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 40px;
  padding: 48px 0;
}

.profile-image img {
  width: 240px;
  max-width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: center top;
}

.profile-content {
  font-size: 16px;
  line-height: 1.7;
}

.profile-content h1 {
  font-size: 32px;
  line-height: 1.25;
  margin: 0 0 10px;
}

.profile-meta {
  margin: 0 0 6px;
}

.profile-qualification {
  margin: 0 0 16px;
}

.profile-intro {
  margin: 0 0 20px;
}

.consultation-box {
  margin: 24px 0;
}

.profile-content hr {
  margin: 24px 0;
  border: 0;
  border-top: 1px solid var(--border);
}

.doctor-professional-profile {
  margin-top: 24px;
}

.doctor-professional-profile h2 {
  font-size: 26px;
  line-height: 1.3;
  margin: 0 0 16px;
}

.doctor-professional-profile h3 {
  line-height: 1.35;
  margin: 24px 0 10px;
}

.doctor-professional-profile p {
  margin: 0 0 16px;
}

.doctor-enquiry {
  margin: 24px 0 0;
}

.doctor-card-photo {
  height: 220px;
}

.doctor-card-photo img {
  max-width: 100%;
  object-fit: contain;
  object-position: center top;
}

.footer-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
}

.footer-grid > * {
  min-width: 0;
}

.footer-grid h3,
.footer-grid p,
.footer-grid a {
  overflow-wrap: anywhere;
}

/* The current doctor templates retain an empty wrapper when no portrait exists. */
@supports selector(:has(img)) {
  .profile-page:not(:has(> .profile-image img)) {
    grid-template-columns: minmax(0, 1fr);
    max-width: 780px;
  }

  .profile-page > .profile-image:not(:has(img)) {
    display: none;
  }
}

@media (max-width: 900px) {
  .profile-page {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 40px 0;
  }

  .profile-image img {
    width: 220px;
    height: 275px;
  }
}

@media (max-width: 600px) {
  .hero,
  .section {
    padding: 40px 0;
  }

  .page-header {
    padding: 28px 0;
  }

  .section-heading h2,
  .page-header h1,
  .about-page-content h2,
  .about-story-grid h2,
  .profile-content h1 {
    font-size: 28px;
  }

  .hero-image-card {
    padding: 24px 20px;
  }

  .doctor-professional-profile h2 {
    font-size: 24px;
  }

  .doctor-card-photo {
    height: 230px;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
}

/* Allow both official email addresses to wrap inside the contact cards. */
.contact-detail-card > div:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Doctor availability */

.doctor-type-label {
  display: inline-block;
  color: var(--purple);
  font-weight: 700;
  font-size: 14px;
  margin: 0 0 15px;
}

.doctor-availability {
  padding: 16px 20px;
  margin: 20px 0 25px;
  border-radius: 8px;
  border-left: 4px solid var(--purple);
  background: var(--light);
}

.doctor-availability strong {
  display: block;
  font-size: 17px;
  color: var(--purple-dark);
  margin-bottom: 4px;
}

.doctor-availability span {
  display: block;
  color: #555;
  font-size: 15px;
}

.doctor-availability p {
  margin: 8px 0 0;
  color: #555;
  font-size: 15px;
}

/* Available */

.doctor-availability.availability-available {
  border-left-color: #2e8b57;
  background: #f3faf6;
}

.doctor-availability.availability-available strong {
  color: #26734a;
}

/* Currently unavailable */

.doctor-availability.availability-unavailable {
  border-left-color: #c0392b;
  background: #fdf5f4;
}

.doctor-availability.availability-unavailable strong {
  color: #a93226;
}

/* Appointment only */

.doctor-availability.availability-appointment {
  border-left-color: var(--orange);
  background: #fff8ef;
}

.doctor-availability.availability-appointment strong {
  color: #b86616;
}
/* Doctor card availability */

.doctor-card-availability {
  padding: 10px 13px;
  margin: 5px 0 15px;
  border-radius: 7px;
  border-left: 3px solid var(--purple);
  background: var(--light);
}

.doctor-card-availability strong {
  display: block;
  font-size: 14px;
  line-height: 1.4;
  color: var(--purple-dark);
}

.doctor-card-availability span {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: #555;
}

/* Available */

.doctor-card-availability.availability-available {
  border-left-color: #2e8b57;
  background: #f3faf6;
}

.doctor-card-availability.availability-available strong {
  color: #26734a;
}

/* Currently unavailable */

.doctor-card-availability.availability-unavailable {
  border-left-color: #c0392b;
  background: #fdf5f4;
}

.doctor-card-availability.availability-unavailable strong {
  color: #a93226;
}

/* Appointment only */

.doctor-card-availability.availability-appointment {
  border-left-color: var(--orange);
  background: #fff8ef;
}

.doctor-card-availability.availability-appointment strong {
  color: #b86616;
}

/* Full-width description for Doctors section */

#doctors .section-heading {
  max-width: 100%;
}

#doctors .section-heading p {
  max-width: 100%;
}

/* Reduce the gap above the appointment form */
body.page .entry-content {
    margin-top: 0;
    padding-top: 0;
}

body.page .entry-content > *:first-child {
    margin-top: 0;
}