/* ---------- Root Variables ---------- */
:root {
  --primary: #0077cc;
  --primary-dark: #005fa3;
  --secondary: #f4f4f4;
  --text: #333;
  --text-light: #555;
  --bg: #fafafa;
  --white: #fff;
  --shadow: 0 4px 12px rgba(0,0,0,0.1);
  --radius: 8px;
  --transition: all 0.3s ease;
}

/* ---------- Reset & Base ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}
img {
  max-width: 100%;
  display: block;
  border-radius: var(--radius);
}
ul {
  list-style: none;
}
.section {
  padding: 3rem 1.5rem;
}
.big-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-align: center;
}
blockquote.highlight {
  font-style: italic;
  text-align: center;
  margin: 1rem auto;
  color: var(--text-light);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius);
  font-size: 1rem;
  transition: var(--transition);
}
.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--white);
  border-bottom: 1px solid #ddd;
  z-index: 1000;
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1.2rem;
}
.logo {
  height: 40px;
  margin-right: 0.5rem;
}
.brand {
  display: flex;
  align-items: center;
  font-weight: 600;
  color: var(--primary-dark);
}
.menu-btn,
.close-btn {
  font-size: 1.6rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* ---------- Mobile Menu ---------- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: var(--white);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 2000;
  padding: 2rem;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu ul {
  margin-top: 2rem;
}
.mobile-menu li {
  margin: 1.2rem 0;
}
.mobile-menu a {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text);
}


/* ---------- Hero Slider ---------- */
.hero {
  margin-top: 70px; /* header height */
  position: relative;
}

.slider-wrapper {
  overflow: hidden;
  width: 100%;
  height: 100vh;
  position: relative;
}

.slider {
  display: flex; /* make slides horizontal */
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.slide {
  flex: 0 0 100%; /* each slide full width */
  height: 100%;
  position: relative;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-heading {
  position: absolute;
  bottom: 20%;
  left: 10%;
  color: var(--white);
  font-size: 1.8rem;
  font-weight: 600;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

/* Dots */
.dots {
  display: flex;
  justify-content: center;
  margin: 1rem 0;
  position: absolute;
  bottom: 10px;
  width: 100%;
  z-index: 10;
}

.dots button {
  width: 10px;
  height: 10px;
  margin: 0 5px;
  border-radius: 50%;
  border: none;
  background: #ccc;
  cursor: pointer;
}

.dots .active {
  background: var(--primary-dark);
}


/* ---------- Services ---------- */
.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.service-card:hover {
  transform: translateY(-5px);
}

.service-content {
  padding: 1rem;
  text-align: center;
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.gallery img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- Founder & Doctor ---------- */
.founder-card,
.doctor-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}
.founder-photo,
.doctor-photo,
.founder-info,
.doctor-info {
  flex: 1 1 100%;
  text-align: center;
}
.doctor-img-large {
  border-radius: 12px;
  max-width: 300px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}
.founder-info h2,
.doctor-info h3 {
  margin-bottom: 0.5rem;
  color: var(--primary-dark);
}
.founder-info p,
.doctor-info p {
  margin-bottom: 0.5rem;
}

/* ---------- Contact ---------- */
#contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}
#contact-form input,
#contact-form textarea {
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  width: 100%;
}
.contact-info {
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-light);
}

/* ---------- Footer ---------- */
.footer {
  background: #222;
  color: #ddd;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .slider { height: 70vh; }
  .hero-heading {
    font-size: 1.4rem;
    bottom: 15%;
    left: 5%;
    right: 5%;
  }
}
@media (min-width: 768px) {
  .big-title { font-size: 2rem; }
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .founder-photo,
  .doctor-photo,
  .founder-info,
  .doctor-info {
    flex: 1 1 50%;
    text-align: left;
  }
  .hero-heading { font-size: 2.5rem; }
}
@media (min-width: 1024px) {
  .section { padding: 4rem 6rem; }
  .big-title { font-size: 2.2rem; }
}
/* Gallery Grid */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

/* Regular Images */
.gallery img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* "View More" Card */
.gallery-view-more {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

.gallery-view-more:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  background: var(--primary-dark);
}

.gallery-view-more .view-more-content {
  text-align: center;
}
.student-form select {
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  font-size: 1rem;
  width: 100%;
  background-color: #fff;
  color: var(--text);
  appearance: none; /* Remove default arrow styling */
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
}

/* Optional: Add a custom arrow using background */
.student-form select {
  background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="10"><polygon points="0,0 14,0 7,10" fill="%23999"/></svg>');
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
}
/* Footer container */
.footer {
  background: #222;
  color: #fff;
  padding: 2rem 1.5rem;
  font-size: 0.95rem;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

/* Individual clinic box */
.clinic {
  flex: 0 0 48%;
  background: #333;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.clinic h3 {
  color: #00aaff;
  margin-bottom: 0.5rem;
}

.clinic p, .clinic a {
  margin-bottom: 0.5rem;
  color: #ddd;
  text-decoration: none;
  display: block;
}

/* Map styling */
.clinic iframe {
  width: 100%;
  height: 200px;
  border: 0;
  border-radius: 8px;
}

/* Responsive tweak for very small phones */
@media (max-width: 400px) {
  .footer-container {
    flex-direction: column;
    gap: 1rem;
  }
  .clinic iframe {
    height: 150px;
  }
}

/* ---------- About Us Sections ---------- */
.section {
  padding: 3rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Section headings */
.section h2 {
  font-size: 2rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--primary-dark);
}

/* Highlight blockquote */
blockquote.highlight {
  font-style: italic;
  text-align: center;
  margin: 1rem auto 2rem;
  color: var(--primary);
  font-size: 1.1rem;
  border-left: 4px solid var(--primary);
  padding-left: 1rem;
}

/* Paragraphs */
.section p {
  margin-bottom: 1rem;
  line-height: 1.8;
  color: var(--text-light);
}

/* Lists */
.section ul {
  margin-left: 1rem;
  margin-top: 1rem;
  padding-left: 1rem;
}
.section ul li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.2rem;
}
.section ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--primary);
}

/* Two-column layout for method/impact on large screens */
@media (min-width: 768px) {
  .section.two-col {
    display: flex;
    gap: 2rem;
  }
  .section.two-col > div {
    flex: 1;
  }
}

/* Doctor Card */
.doctor-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: 2rem;
}

/* Info */
.doctor-info {
  flex: 1 1 300px;
  text-align: center;
}

/* Image */
.doctor-photo {
  flex: 1 1 350px; /* increase from 250px to 350px */
  text-align: center;
}

.doctor-img-large {
  max-width: 350px; /* increase max width */
  width: 100%;       /* make it responsive */
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}


/* Fix founder/doctor alignment on desktop */
.founder-card {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: center; /* center horizontally */
}

.founder-photo {
  flex: 1 1 300px;
  display: flex;
  justify-content: center; /* center the image */
}

.founder-photo img {
  max-width: 320px;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.founder-info {
  flex: 1 1 400px;
  text-align: left;
}

/* ---------- REVIEW SLIDER ---------- */
#reviews {
  text-align: center;
  padding: 80px 20px;
  background: #f4f7fb;
}

.reviews-slider {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  overflow: hidden;
}

.review-card {
  display: none;
  max-width: 600px;
  background: #fff;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.review-card.active {
  display: block;
  animation: fadeIn 0.6s ease;
}

.review-card p {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 15px;
  line-height: 1.6;
}

.review-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #0077cc;
}

/* Dots */
.review-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.review-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: #bbb;
  cursor: pointer;
  transition: background 0.3s;
}

.review-dots button.active {
  background: #0077cc;
}

/* Fade-in animation */
@keyframes fadeIn {
  from {opacity: 0; transform: translateY(10px);}
  to {opacity: 1; transform: translateY(0);}
}

/* Responsive */
@media (max-width: 768px) {
  .review-card { padding: 25px; font-size: 1rem; }
}

/* Responsive */
@media (max-width: 768px) {
  .review-card {
    padding: 25px;
    font-size: 1rem;
  }

  .review-controls button {
    width: 35px;
    height: 35px;
    font-size: 1.3rem;
  }
}


/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .review-card {
    padding: 25px;
    font-size: 1rem;
  }

  .review-buttons button {
    width: 35px;
    height: 35px;
    font-size: 1.3rem;
  }
}



/* WhatsApp Card */
.whatsapp-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  background: #25D366;
  color: white;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.whatsapp-card .whatsapp-logo {
  width: 80px;       /* fixed width */
  max-width: 20%;    /* responsive max width */
  height: auto;
}

/* Optional: adjust on smaller screens */
@media (max-width: 768px) {
  .whatsapp-card .whatsapp-logo {
    width: 60px;
    max-width: 25%;
  }
}

