/* ============================================================
   Atharvam Eye Hospital - Custom Clinic Theme
   Eye Care / Ophthalmology Specific Styling
   ============================================================ */

/* --- Top Info Bar (clinic address, phone, hours) --- */
.clinic-top-bar {
  background: linear-gradient(135deg, #0c2d48 0%, #0a3d62 100%);
  color: #cbd5e1;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 2px solid var(--primary-color);
  letter-spacing: 0.3px;
}
.clinic-top-bar a {
  color: #93c5fd;
  text-decoration: none;
  transition: color 0.3s ease;
}
.clinic-top-bar a:hover {
  color: #fff;
}
.clinic-top-bar i {
  color: var(--primary-color);
  margin-right: 6px;
}
.clinic-top-bar .top-divider {
  width: 1px;
  height: 16px;
  background: rgba(255,255,255,0.2);
  display: inline-block;
  margin: 0 15px;
  vertical-align: middle;
}

/* --- Why Choose Us Cards --- */
.clinic-feature-card {
  background: #fff;
  border-radius: 12px;
  padding: 35px 28px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(3,105,161,0.08);
  border: 1px solid rgba(3,105,161,0.08);
  transition: all 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
  position: relative;
  overflow: hidden;
}
.clinic-feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}
.clinic-feature-card:hover::before {
  transform: scaleX(1);
}
.clinic-feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(3,105,161,0.15);
}
.clinic-feature-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(3,105,161,0.1), rgba(14,165,233,0.1));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 28px;
  color: var(--primary-color);
  transition: all 0.3s ease;
}
.clinic-feature-card:hover .clinic-feature-icon {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #fff;
  transform: scale(1.08);
}
.clinic-feature-card h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #0c2d48;
}
.clinic-feature-card p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* --- Stats Counter Section --- */
.clinic-stats {
  background: linear-gradient(135deg, #0c2d48 0%, #0a3d62 60%, #0369a1 100%);
  position: relative;
  overflow: hidden;
}
.clinic-stats::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 60px solid rgba(255,255,255,0.03);
  pointer-events: none;
}
.clinic-stats::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 40px solid rgba(255,255,255,0.02);
  pointer-events: none;
}
.stat-item {
  text-align: center;
  padding: 20px 10px;
}
.stat-icon {
  font-size: 36px;
  color: var(--secondary-color);
  margin-bottom: 12px;
  display: block;
}
.stat-number {
  font-size: 42px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -1px;
}
.stat-number span {
  color: var(--secondary-color);
}
.stat-label {
  font-size: 14px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 500;
}

/* --- NABH / Trust Badge styling --- */
.trust-badges {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 15px;
}
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(3,105,161,0.08);
  border: 1px solid rgba(3,105,161,0.15);
  border-radius: 50px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-color);
  transition: all 0.3s ease;
}
.trust-badge:hover {
  background: var(--primary-color);
  color: #fff;
  transform: translateY(-2px);
}
.trust-badge i {
  font-size: 16px;
}

/* --- Emergency Banner --- */
.emergency-strip {
  background: linear-gradient(90deg, #dc2626 0%, #b91c1c 100%);
  color: #fff;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 600;
  animation: emergencyPulse 3s ease-in-out infinite;
}
.emergency-strip i {
  margin-right: 8px;
  animation: heartbeat 1.5s ease-in-out infinite;
}
@keyframes emergencyPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.92; }
}
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* --- Section Header Eye Decoration --- */
.eye-section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(3,105,161,0.08), rgba(14,165,233,0.08));
  border: 1px solid rgba(3,105,161,0.12);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.eye-section-badge i {
  font-size: 14px;
}

/* Hero section badge - larger and more prominent */
#hero-section .eye-section-badge {
  font-size: 18px;
  padding: 10px 24px;
  gap: 10px;
  letter-spacing: 1px;
}
#hero-section .eye-section-badge i {
  font-size: 20px;
}

/* --- Floating WhatsApp Button --- */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  left: 25px;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  z-index: 999;
  text-decoration: none;
  transition: all 0.3s ease;
  animation: whatsappBounce 2s ease infinite;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.5);
  color: #fff;
}
@keyframes whatsappBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* --- Doctor Card --- */
.doctor-highlight {
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border-radius: 16px;
  padding: 40px;
  border: 1px solid rgba(3,105,161,0.1);
}
.doctor-highlight .doctor-name {
  font-size: 22px;
  font-weight: 700;
  color: #0c2d48;
}
.doctor-highlight .doctor-qualification {
  font-size: 14px;
  color: var(--primary-color);
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* --- Appointment Form Eye-care Theme --- */
#booking_form .form-control {
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 16px;
  transition: all 0.3s ease;
}
#booking_form .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(3,105,161,0.1);
}

/* --- Medical Blue Gradient Overrides --- */
.bg-clinic-gradient {
  background: linear-gradient(135deg, #0c2d48 0%, #0369a1 100%) !important;
}

/* Premium Testimonial Card */
.testimonial-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(3, 105, 161, 0.15);
}

.testimonial-quote-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 60px;
    color: rgba(3, 105, 161, 0.08);
    z-index: 0;
    line-height: 1;
}

.testimonial-content {
    position: relative;
    z-index: 1;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.testimonial-stars {
    color: #ffc107;
    font-size: 14px;
    margin-bottom: 15px;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    font-style: italic;
    margin-bottom: 20px;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    border-top: 1px solid #f0f0f0;
    padding-top: 20px;
    margin-top: auto;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e8f0fe;
    color: #0369a1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    margin-right: 15px;
}

.testimonial-author-info h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
}

.testimonial-author-info span {
    font-size: 13px;
    color: #888;
}

/* --- Doctor Profile Section (Clean & Minimal) --- */
.doctor-profile-section {
    padding: 40px 0;
}

.doctor-image-wrapper {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
}

.doctor-image-wrapper img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.doctor-image-wrapper:hover img {
    transform: scale(1.02);
}

.doctor-name {
    font-size: 32px;
    font-weight: 700;
    color: #0c2d48;
    margin-bottom: 8px;
    margin-top: 0;
}

.doctor-designation {
    font-size: 16px;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 5px;
}

.doctor-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 0;
    font-weight: 500;
}

.doctor-bio {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.section-title {
    font-size: 16px;
    font-weight: 700;
    color: #0c2d48;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.simple-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.simple-list li {
    padding: 8px 0;
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}

.simple-list li::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    margin-right: 10px;
    vertical-align: middle;
}

/* --- Doctor Profile & List Styling --- */
.list-style-2 {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.list-style-2 li {
    padding-left: 30px;
    margin-bottom: 12px;
    position: relative;
    color: #555;
    line-height: 1.6;
    font-size: 15px;
}

.list-style-2 li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 16px;
}

/* --- Responsive Adjustments (Consolidated) --- */
@media (max-width: 768px) {
  /* Fix layout and typography for mobile */
  h1 { font-size: 36px !important; line-height: 1.2 !important; }
  h2 { font-size: 28px !important; line-height: 1.3 !important; }
  h3 { font-size: 22px !important; line-height: 1.3 !important; }
  h4 { font-size: 18px !important; line-height: 1.4 !important; }

  .clinic-top-bar {
    font-size: 12px;
    padding: 6px 0;
  }
  .clinic-top-bar .top-divider {
    display: none;
  }
  .stat-number {
    font-size: 32px;
  }
  .stat-label {
    font-size: 12px;
  }
  .whatsapp-float {
    bottom: 15px;
    left: 15px;
    width: 48px;
    height: 48px;
    font-size: 24px;
  }
  .clinic-feature-card {
    padding: 25px 20px;
    margin-bottom: 15px;
  }
  
  /* Fix: Overriding all section padding was breaking pt-0 and pb-0 */
  section {
    padding-top: 50px !important;
    padding-bottom: 50px !important;
  }
  
  /* Add top padding to the very first section so content clears the mobile header */
  main > section:first-of-type {
    padding-top: 110px !important;
  }
  
  section.pb-0, section.no-bottom { padding-bottom: 0 !important; }
  section.pt-0, section.no-top { padding-top: 0 !important; }
  
  /* Fix Trust Badges */
  .trust-badges {
    gap: 10px;
  }
  .trust-badge {
    padding: 6px 12px;
    font-size: 12px;
  }

  /* Fix Rating block */
  .d-lg-flex.align-items-center {
      flex-wrap: wrap;
      gap: 10px;
      justify-content: flex-start;
  }

  /* Testimonial Fixes */
  .testimonial-card {
      padding: 20px;
  }
  .testimonial-quote-icon {
      font-size: 40px;
      top: 10px;
      right: 10px;
  }

  /* About page specific mobile styles */
  #subheader h1 {
    font-size: 2rem !important;
  }
  
  .doctor-profile-section {
    padding: 30px 0;
  }
  
  .doctor-name {
    font-size: 24px;
    margin-bottom: 6px;
  }
  
  .doctor-designation {
    font-size: 14px;
  }
  
  .doctor-subtitle {
    font-size: 13px;
  }
  
  .doctor-image-wrapper {
    margin-bottom: 20px;
  }
  
  .section-title {
    font-size: 14px;
    margin-bottom: 12px;
    padding-bottom: 8px;
  }
  
  .simple-list li {
    font-size: 13px;
    padding: 6px 0;
  }

  /* Header UI layout on mobile */
  .header-inner .btn-main {
      display: none !important;
  }
  #logo img.logo-mobile {
      max-width: 180px !important;
      height: auto !important;
  }
  
  /* Fix absolute positioned images overlapping in About section */
  .abs.mb-min-50 {
      margin-bottom: 0 !important;
      position: relative !important;
      width: 80% !important;
      margin-top: -30px !important;
      margin-left: auto;
      margin-right: auto;
      display: block;
      right: auto !important;
      bottom: auto !important;
  }
  .w-90 {
      width: 100% !important;
  }

  /* FAQ Accordion Tabs */
  .d-tab-nav {
      display: flex;
      flex-direction: column;
      gap: 10px;
  }
  .d-tab-nav li {
      margin: 0 !important;
      text-align: center;
  }
  
  /* Make sure images stay responsive */
  img.w-100 {
      max-width: 100% !important;
      height: auto !important;
  }
}

@media (max-width: 576px) {
  .doctor-profile-section {
    padding: 20px 0;
  }
  
  .doctor-name {
    font-size: 20px;
  }
  
  .doctor-designation {
    font-size: 13px;
  }
  
  .doctor-bio {
    font-size: 14px;
  }
  
  .section-title {
    font-size: 13px;
  }

  .list-style-2 li {
    padding-left: 20px;
    font-size: 14px;
    margin-bottom: 10px;
  }
}

/* ============================================================
   Atharvam Eye Hospital - Custom Premium Footer Extensions
   ============================================================ */

/* --- Advanced Premium Footer --- */
.clinic-footer {
  background: linear-gradient(135deg, #071928 0%, #0d273a 50%, #081d2d 100%) !important;
  color: #94a3b8 !important;
  padding: 80px 0 0 0 !important;
  font-size: 15px !important;
  position: relative !important;
  overflow: hidden !important;
  border-top: 3px solid var(--primary-color) !important;
}

/* Fix global template bug where .d-flex has white-space: nowrap */
.clinic-footer .d-flex,
.clinic-top-bar .d-flex,
.clinic-feature-card,
.clinic-feature-card p {
  white-space: normal !important;
  overflow-wrap: break-word !important;
}

/* Subtle glowing background sphere */
.clinic-footer::before {
  content: '';
  position: absolute;
  top: -150px;
  right: -150px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.08) 0%, rgba(3, 105, 161, 0) 70%);
  pointer-events: none;
}

.clinic-footer::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -200px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(3, 105, 161, 0.05) 0%, rgba(14, 165, 233, 0) 70%);
  pointer-events: none;
}

.clinic-footer .logo-footer {
  max-width: 180px !important;
  height: auto !important;
  margin-bottom: 20px !important;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2)) !important;
}

.footer-desc {
  font-size: 14.5px !important;
  line-height: 1.7 !important;
  color: #94a3b8 !important;
  margin-bottom: 22px !important;
}

/* Trust Rating in Footer */
.trust-rating {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 30px !important;
  padding: 8px 16px !important;
  margin-bottom: 25px !important;
  font-size: 13.5px !important;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.2) !important;
}

.trust-rating .stars {
  color: #f59e0b !important; /* Golden Yellow */
  display: flex !important;
  gap: 2px !important;
}

.trust-rating .rating-text {
  color: #e2e8f0 !important;
  font-weight: 500 !important;
}

/* Social Buttons */
.footer-social {
  display: flex !important;
  gap: 12px !important;
}

.social-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #cbd5e1 !important;
  font-size: 18px !important;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  text-decoration: none !important;
}

.social-btn:hover {
  transform: translateY(-5px) !important;
  color: #fff !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3) !important;
}

.social-btn.whatsapp:hover {
  background: #25d366 !important;
  border-color: #25d366 !important;
  box-shadow: 0 0 15px rgba(37, 211, 102, 0.4) !important;
}

.social-btn.youtube:hover {
  background: #ff0000 !important;
  border-color: #ff0000 !important;
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.4) !important;
}

/* Widgets styles */
.footer-widget {
  margin-bottom: 30px !important;
}

.widget-title {
  font-family: var(--heading-font) !important;
  color: #ffffff !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  margin-bottom: 25px !important;
  position: relative !important;
  padding-bottom: 12px !important;
}

.widget-title::after {
  content: '' !important;
  position: absolute !important;
  left: 0 !important;
  bottom: 0 !important;
  width: 35px !important;
  height: 3px !important;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color)) !important;
  border-radius: 2px !important;
  transition: width 0.3s ease !important;
}

.footer-widget:hover .widget-title::after {
  width: 60px !important;
}

/* Footer Menu Links */
.footer-links {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.footer-links li {
  margin-bottom: 12px !important;
}

.footer-links li a {
  color: #94a3b8 !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  display: inline-block !important;
  position: relative !important;
  padding-left: 0 !important;
}

.footer-links li a::before {
  content: '→' !important;
  position: absolute !important;
  left: -15px !important;
  opacity: 0 !important;
  color: var(--secondary-color) !important;
  transition: all 0.3s ease !important;
  font-weight: bold !important;
}

.footer-links li a:hover {
  color: #ffffff !important;
  transform: translateX(15px) !important;
  padding-left: 5px !important;
}

.footer-links li a:hover::before {
  opacity: 1 !important;
  left: -12px !important;
}

/* Contact Widget */
.contact-details {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.contact-icon {
  font-size: 18px !important;
  color: var(--secondary-color) !important;
  background: rgba(14, 165, 233, 0.08) !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  transition: all 0.3s ease !important;
  border: 1px solid rgba(14, 165, 233, 0.15) !important;
}

.contact-widget li:hover .contact-icon {
  background: var(--secondary-color) !important;
  color: #ffffff !important;
  transform: scale(1.1) !important;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3) !important;
}

.contact-text {
  color: #94a3b8 !important;
  font-size: 14.5px !important;
  text-decoration: none !important;
  line-height: 1.6 !important;
  transition: color 0.3s ease !important;
}

a.contact-text:hover {
  color: #ffffff !important;
}

.contact-widget small {
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: 0.5px !important;
}

/* Glassmorphism Subfooter */
.clinic-subfooter {
  margin-top: 50px !important;
  background: rgba(0, 0, 0, 0.2) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
  padding: 25px 0 !important;
  position: relative !important;
  z-index: 2 !important;
}

.copyright-text {
  font-size: 14px !important;
  color: #64748b !important;
}

.subfooter-links {
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
}

.subfooter-links .list-inline-item {
  margin-left: 20px !important;
  display: inline-block !important;
}

.subfooter-links a {
  color: #64748b !important;
  font-size: 14px !important;
  text-decoration: none !important;
  transition: color 0.3s ease !important;
}

.subfooter-links a:hover {
  color: #ffffff !important;
}

@media (max-width: 992px) {
  .clinic-footer {
    padding: 60px 0 0 0 !important;
  }
  .widget-title {
    margin-bottom: 18px !important;
  }
}

@media (max-width: 768px) {
  .subfooter-links {
    margin-top: 10px !important;
  }
  .subfooter-links .list-inline-item {
    margin: 0 10px !important;
  }
  .footer-links li a:hover {
    transform: none !important;
    padding-left: 0 !important;
  }
  .footer-links li a::before {
    display: none !important;
  }
}

/* Fix for overlapping boxes on mobile (forms with right-side images) */
@media (max-width: 991px) {
  .col-lg-6 > .h-100.relative {
    min-height: 350px !important;
    margin-top: 30px;
  }
  
  /* Fix #subheader padding on mobile so title does not overlap with navbar */
  #subheader {
    padding-top: 130px !important;
  }
}
