/* =========================
   GENERAL STYLES
   ========================= */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  background: #f5f7fb;
  color: #333;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo {
  display: flex;
  align-items: center;
  font-size: 22px;
  font-weight: 600;
  color: #2c7be5;
}

.logo-img {
  width: 35px;
  height: 35px;
  margin-right: 8px;
}

nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover {
  color: #2c7be5;
}

/* =========================
   HERO SECTION (Home Page)
   ========================= */
.hero {
  padding: 80px 20px; 
  min-height: 60vh; /* Ensures banner is nice and tall */
  background: url("images/full.png") center center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.hero-content {
  background: rgba(0,0,0,0.6); /* Slightly darker for better readability */
  padding: 50px 40px;
  border-radius: 12px;
  max-width: 800px;
  width: 100%;
  box-sizing: border-box;
  /* Removed the top margins so it naturally centers perfectly */
}

.hero h1 {
  font-size: 45px;
  margin-top: 0;
  margin-bottom: 15px;
}

.hero p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 25px;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  background: #2c7be5;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover {
  background: #1b4f9c;
}

/* =========================
   PAGE HEADERS (Internal Pages)
   ========================= */
.page-header {
  background: #2c7be5;
  color: white;
  text-align: center;
  padding: 60px 20px;
}

.page-header h1 { margin: 0; font-size: 36px; }
.page-header p { margin-top: 10px; font-size: 18px; opacity: 0.9; }

/* =========================
   SERVICES SECTION
   ========================= */
.services {
  padding: 70px 40px;
  text-align: center;
}

.services h2 {
  text-align: center;
  margin-top: 0;
  margin-bottom: 40px;
  font-size: 32px;
  color: #333;
}

/* Flex Grid for Services */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Image Cards (Home Page) */
.service-img-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  padding-bottom: 20px;
  cursor: pointer;
}

.service-img-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(44, 123, 229, 0.2);
}

.service-img-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 3px solid #2c7be5;
}

.service-img-card h3 {
  margin: 20px 10px 0 10px;
  color: #333;
  font-size: 18px;
  font-weight: 600;
}

/* Detailed Cards (Services Page) */
.detailed-card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  text-align: left;
  border-top: 4px solid #2c7be5;
  transition: transform 0.3s ease;
}

.detailed-card:hover { transform: translateY(-5px); }
.detailed-card h3 { color: #2c7be5; font-size: 22px; margin-top: 0; margin-bottom: 15px; }
.detailed-card ul { padding-left: 20px; color: #555; line-height: 1.8; font-size: 15px; }
.detailed-card li { margin-bottom: 8px; }

/* =========================
   BLOG STYLES
   ========================= */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
  gap: 30px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.blog-card {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  border: 1px solid #eaeaea;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(44, 123, 229, 0.15);
}

.blog-card h3 { color: #2c7be5; font-size: 20px; margin-top: 0; margin-bottom: 10px; line-height: 1.3; }
.blog-meta { font-size: 13px; color: #888; display: block; margin-bottom: 15px; font-weight: 500; }
.blog-summary { color: #555; font-size: 15px; line-height: 1.6; margin-bottom: 25px; }

.read-more-btn {
  display: inline-block;
  background: #f0f4fb;
  color: #2c7be5;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  align-self: flex-start;
  border: 1px solid transparent;
}

.read-more-btn:hover {
  background: #2c7be5;
  color: white;
}

/* Single Blog Page Styles */
.single-blog-content {
  max-width: 800px;
  margin: 40px auto;
  padding: 40px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  line-height: 1.8;
  color: #444;
  box-sizing: border-box; 
}

.single-blog-content h1 { color: #2c7be5; margin-bottom: 10px; font-size: 32px; }
.single-blog-content .date { color: #888; font-size: 14px; margin-bottom: 30px; display: block; border-bottom: 1px solid #eee; padding-bottom: 15px; }
.single-blog-text p { margin-bottom: 20px; font-size: 16px; }
.back-btn { display: inline-block; margin-top: 30px; color: #2c7be5; text-decoration: none; font-weight: bold; }
.back-btn:hover { text-decoration: underline; }

/* =========================
   APPOINTMENT PAGE STYLES
   ========================= */
.appointment-container {
  max-width: 500px;
  margin: 0 auto;
}

.appointment-container .card {
  background: #fff;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.appointment-container input,
.appointment-container select {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 14px;
  outline: none;
  transition: 0.3s;
  box-sizing: border-box;
}

.appointment-container input:focus,
.appointment-container select:focus {
  border-color: #25D366;
  box-shadow: 0 0 5px rgba(37,211,102,0.3);
}

.appointment-container .btn:hover {
  background: #1ebe5d !important;
}

/* =========================
   CONTACT PAGE STYLES
   ========================= */
.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info-box, .contact-form-box {
  flex: 1;
  min-width: 300px;
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  box-sizing: border-box;
}

.contact-info-box {
  text-align: left;
}

.contact-input {
  width: 100%;
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  box-sizing: border-box;
}

.social-buttons-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.social-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px;
  border-radius: 8px;
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.whatsapp-box { background: #25D366; }
.insta-box { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.fb-box { background: #1877F2; }
.x-box { background: #000000; }

/* =========================
   DOCTOR & TESTIMONIALS
   ========================= */
.doctor, .testimonials {
  background: white;
  padding: 70px 40px;
  text-align: center;
}

.doctor-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.doctor-box img {
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  max-width: 100%;
  height: auto;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.testimonial {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  font-style: italic;
  color: #555;
  border: 1px solid #f0f0f0;
}

/* =========================
   THIN CTA SECTION
   ========================= */
.cta {
  text-align: center;
  padding: 40px 20px;
  background: #2c7be5;
  color: white;
}
.cta h2 { margin-top: 0; margin-bottom: 15px; font-size: 28px; }
.cta .btn { margin-top: 0; background: white; color: #2c7be5; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.cta .btn:hover { background: #f5f7fb; transform: translateY(-2px); }

/* =========================
   FOOTER & FLOATING WHATSAPP
   ========================= */
footer { text-align: center; padding: 20px; background: #1b4f9c; color: white; }

.whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25D366;
  color: white;
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  font-size: 28px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  transition: 0.3s;
  z-index: 1000;
}
.whatsapp:hover { transform: scale(1.1); }


/* =========================================
   📱 EXTREME MOBILE RESPONSIVENESS (FIXED) 
   ========================================= */

@media(max-width: 768px) {
  /* Header & Navigation */
  header { flex-direction: column; padding: 15px; text-align: center; }
  nav { margin-top: 15px; display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; }
  nav a { margin: 0; font-size: 15px; }
  
  /* Hero Section (Banner Fix) */
  .hero { 
    padding: 40px 15px; 
    min-height: 55vh; 
    /* This keeps the people in the illustration visible on tall screens */
    background-position: center top; 
  }
  .hero-content { 
    padding: 25px 20px; 
    /* Makes the box take up less room so the background shows */
  }
  .hero h1 { font-size: 26px; margin-bottom: 10px; }
  .hero p { font-size: 14px; margin-bottom: 15px; }
  .hero .btn { padding: 10px 20px; font-size: 14px; }
  
  /* Hard-force grids into 1 column so nothing squishes */
  .service-grid, 
  .blog-grid, 
  .testimonial-grid, 
  .social-buttons-container { 
    grid-template-columns: 1fr !important; 
  }
  
  /* Layout Adjustments */
  .services { padding: 50px 20px; }
  .services h2 { font-size: 26px; }
  .contact-wrapper { flex-direction: column; gap: 20px; }
  .contact-info-box, .contact-form-box { padding: 25px; }
  .doctor-box { text-align: center; flex-direction: column; gap: 20px; }
  
  /* Page Headers */
  .page-header { padding: 40px 20px; }
  .page-header h1 { font-size: 26px; }
  .page-header p { font-size: 15px; }
  
  /* Single Blog Fixes */
  .single-blog-content { margin: 20px 15px; padding: 25px 20px; }
  .single-blog-content h1 { font-size: 24px; }
  
  /* Appointment Fixes */
  .appointment-container { margin: 10px; }
  .appointment-container .card { padding: 20px; }
}

/* Ultra small phones */
@media(max-width: 400px) {
  .hero h1 { font-size: 22px; }
  .cta h2 { font-size: 20px; }
}