/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.spacer {
  height: 30px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    /* Add these new properties */
    width: auto; /* Prevents forced stretching */
    object-fit: contain; /* Ensures proper aspect ratio */
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: #2a7fba;
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #1e6a9b;
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: #2a7fba;
    padding: 12px 25px;
    border: 2px solid #2a7fba;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #2a7fba;
    color: white;
}

/* Top Navigation */
.top-nav {
    background-color: #f8f9fa;
    padding: 10px 0;
    font-size: 14px;
}

.top-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info span {
    margin-right: 20px;
}

.contact-info i {
    margin-right: 5px;
    color: #2a7fba;
}

.auth-buttons .btn-login {
    margin-right: 15px;
}

.auth-buttons .btn-signup {
    background-color: #2a7fba;
    color: white;
    padding: 5px 15px;
    border-radius: 3px;
}

/* Main Header */
    .main-header {
        padding: 0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        position: sticky;
        top: 0;
        background-color: white;
        z-index: 100;
        width: 100%;
    }
    .main-header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
    }
    .logo {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    .logo-img {
         width: 80px !important; /* Force this size */
        height: auto;
    }
    .logo h1 {
         font-size: 24px;
        font-weight: 700;
        color: #2a7fba;
    }
    .logo h1 span {
        color: #333;
    }
    .main-nav ul {
        display: flex;
        margin: 0;
        padding: 0;
        list-style: none;
        gap: 20px;
    }
    .main-nav a {
        font-weight: 500;
        transition: color 0.3s ease;
        text-decoration: none;
        color: #333;
    }
    .main-nav a:hover {
        color: #2a7fba;
    }
    .mobile-menu-btn {
        display: none;
        font-size: 24px;
        cursor: pointer;
        background: none;
        border: none;
        color: #2a7fba;
    }
    /* Hero Section */
    .hero {
        width: 100%;
        position: relative;
        background-color: white;
        overflow: hidden;
        margin: 0 !important;
        padding: 0 !important;
        margin-bottom: 0 !important;
        min-height: 0px !important;
    }
    .hero-image {
        width: 100%;
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .hero-image img {
        width: 100%;
        height: auto;
        display: block;
        vertical-align: bottom; /* Removes whitespace under image */
    }
    .hero-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 30px;
        text-align: center;
        color: white;
        background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 70%, transparent 100%);
    }
    .hero-overlay h1 {
        font-size: clamp(1.5rem, 4vw, 2.5rem);
        margin-bottom: 5px;
    }
    .hero-overlay p {
        font-size: clamp(1rem, 2vw, 1.2rem);
        margin-bottom: 25px;
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }
    .hero-buttons {
        display: flex;
        justify-content: center;
        gap: 15px;
    }
    .btn-primary {
        background-color: #2a7fba;
        color: white;
        padding: 10px 20px;
        border-radius: 5px;
        text-decoration: none;
        font-weight: 500;
        transition: background-color 0.3s;
    }
    .btn-primary:hover {
        background-color: #1e5f8a;
    }
    /* Mobile Responsive */
    @media (max-width: 768px) {
        .main-header .container {
            padding: 10px 15px;
        }
        
        .main-nav {
           display: none;
        }
        
        .mobile-menu-btn {
            display: block;
        }
        
        .hero {
            height: auto;
            /* min-height: 60vh; */
            margin: 0;
            padding: 0;
        }
        
        .hero-image img {
            /* height: 60vh; */
            object-fit: cover;
            object-position: center;
            margin: 0;
            padding: 0;
            display: block;
        }
        
        .hero-overlay {
            padding: 20px;
            background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 70%, transparent 100%);
        }
        
        .hero-buttons {
            flex-direction: column;
            gap: 10px;
        }
    }
    @media (max-width: 480px) {
        .logo h1 {
            font-size: 1.2rem;
        }
        
        .hero-overlay {
            padding: 15px;
        }
        
        .hero-overlay h1 {
            font-size: 1.5rem;
        }
        
        .hero-overlay p {
            font-size: 1rem;
        }
        
    }

/* Who We Serve Carousel */
.hero + .audience-carousel {
  margin-top: -1px !important;
}
.audience-carousel {
  padding: 40px 0 0 0; /* Remove top padding */
  background: #f8fafc;
  overflow: hidden; 
  margin-top: 0 !important;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-heading {
  text-align: center;
  font-size: 2.5rem;
  color: #1e3a8a;
  margin-bottom: 15px;
  font-weight: 600;
}

.section-intro {
  text-align: center;
  font-size: 1.2rem;
  color: #4b5563;
  max-width: 700px;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

.carousel-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 1rem 0;
}

.carousel-track {
  display: flex;
  gap: 30px;
  width: max-content;
  will-change: transform;
}

.carousel-card {
  min-width: 350px;
  width: 350px;
  background: white;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 450px; /* Fixed height */
}

.card-image {
  height: 200px;
  overflow: hidden;
  flex-shrink: 0;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-content h3 {
  font-size: 1.25rem;
  color: #1e40af;
  margin-bottom: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
}

.card-content p {
  color: #4b5563;
  line-height: 1.5;
  font-size: 0.95rem;
  margin-bottom: 0;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 2rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #cbd5e1;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: #1e40af;
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .section-heading {
    font-size: 2rem;
  }
  
  .section-intro {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }
  
  .carousel-card {
    min-width: 300px;
    width: 300px;
    height: 420px;
  }
  
  .card-image {
    height: 180px;
  }
  
  .card-content {
    padding: 1.25rem;
  }
}

/* Services Section */
.services {
    padding: 40px 0;
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: #2a7fba;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.service-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.service-icon {
    width: 70px;
    height: 70px;
    background-color: #e6f2fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #2a7fba;
    font-size: 24px;
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.service-card p {
    color: #666;
    margin-bottom: 20px;
    font-size: 15px;
}


.btn-book {
    background: #2a7fba;
    color: white;
    border: none;
    padding: 10px 22px;
    border-radius: 24px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.btn-book:hover {
    background: #1e6ba1;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 20px;
    }
}

/* How It Works Section */
.how-it-works {
    padding: 40px 0;
    background-color: #f9f9f9;
    justify-content: center;
}

.steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.step {
    flex: 1;
    min-width: 250px;
    text-align: center;
    padding: 40px 35px;
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: #2a7fba;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.step p {
    color: #666;
    font-size: 15px;
}

/* Testimonials Section */
.testimonials {
    padding: 30px 0;
    background-color: #2a7fba;
    color: white;
}

.testimonials .section-title {
    color: white;
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.testimonial-content p {
    font-size: 16px;
    font-style: italic;
    margin-bottom: 20px;
}
.patient-info {
    display: flex;
    align-items: center;
    justify-content: center;
}

.patient-info img {
    border-radius: 50%;
    margin-right: 15px;
}

.patient-info h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.patient-info span {
    font-size: 14px;
    opacity: 0.8;
}

/* Call to Action Section */
.cta {
    padding: 60px 0;
    text-align: center;
    background-color: #f0f8ff;
}

.cta h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: #2a7fba;
}

.cta p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #555;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-app-store, .btn-google-play {
    display: flex;
    align-items: center;
    background-color: #333;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.btn-app-store:hover, .btn-google-play:hover {
    transform: translateY(-3px);
}

.btn-app-store i, .btn-google-play i {
    font-size: 30px;
    margin-right: 10px;
}

.btn-app-store span, .btn-google-play span {
    text-align: left;
    line-height: 1.2;
}

.btn-app-store strong, .btn-google-play strong {
    font-size: 16px;
}

.btn-app-store {
    background-color: #000;
}

.btn-google-play {
    background-color: #0F9D58;
}

/* Footer */
.main-footer {
    background-color: #2a2a2a;
    color: #ccc;
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about h3 {
    color: white;
    font-size: 24px;
    margin-bottom: 20px;
}

.footer-about p {
    margin-bottom: 20px;
    font-size: 14px;
}

.social-links {
    align-items: center;
    justify-content: center;
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 35px;
    height: 35px;
    background-color: #444;
    border-radius: 70%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}


.social-links a:hover {
    background-color: #2a7fba;
}

.social-icon {
    width: 24px;   /* Adjust as needed */
    height: 24px;  /* Adjust as needed */
    object-fit: contain;
}


.footer-links h3, .footer-services h3, .footer-contact h3 {
    color: white;
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after, .footer-services h3::after, .footer-contact h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: #2a7fba;
}

.footer-links li, .footer-services li {
    margin-bottom: 10px;
}

.footer-links a, .footer-services a {
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover, .footer-services a:hover {
    color: #2a7fba;
}

.footer-contact li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    font-size: 14px;
}

.footer-contact i {
    margin-right: 10px;
    color: #2a7fba;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.legal-links {
    display: flex;
    gap: 20px;
}

.legal-links a {
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: #2a7fba;
}
/* Added */



/* Equipment Section */
.equipment {
    padding: 40px 0;
}
.equipment-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.equipment-item {
    display: flex;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.equipment-item img {
    width: 150px;
    height: 150px;
    object-fit: cover;
}

.equipment-details {
    padding: 1.5rem;
    flex: 1;
    text-align: center;
}

.equipment-details h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    text-align: center;
}

.equipment-details p {
    margin-bottom: 0.5rem;
    color: #555;
    text-align: center;
}

/* Buttons */
.btn-book {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 1rem;
    transition: background 0.3s ease;
}

.btn-book:hover {
    background: #2980b9;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    position: relative;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    color: #aaa;
    cursor: pointer;
}

.close:hover {
    color: #333;
}

#modalTitle {
    margin-bottom: 1.5rem;
    color: #2c3e50;
    text-align: center;
}

#bookingForm {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#bookingForm input,
#bookingForm select {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.btn-submit {
    background: #27ae60;
    color: white;
    padding: 0.8rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 1rem;
    transition: background 0.3s ease;
}

.btn-submit:hover {
    background: #219653;
}

/* Responsive Design */
@media (max-width: 768px) {
    .doctors-grid,
    .equipment-list {
        grid-template-columns: 1fr;
    }
    
    .equipment-item {
        flex-direction: column;
    }
    
    .equipment-item img {
        width: 100%;
        height: 200px;
    }
}
/* Added */
/* WhatsApp Widget */
.whatsapp-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  cursor: pointer;
}

.whatsapp-icon {
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  transition: all 0.3s ease;
}

.whatsapp-icon:hover {
  transform: scale(1.1);
}

.whatsapp-icon img {
  width: 36px;
  height: 36px;
}

.whatsapp-tooltip {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  color: #333;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

.whatsapp-widget:hover .whatsapp-tooltip {
  opacity: 1;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}
.whatsapp-icon {
  animation: pulse 2s infinite;
}

@media (max-width: 768px) {
  .whatsapp-icon {
    width: 50px;
    height: 50px;
  }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 0px;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .section-title {
        font-size: 28px;
        margin-bottom: 10px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .top-nav .container {
        flex-direction: column;
        gap: 10px;
    }
    
    .contact-info {
        margin-bottom: 10px;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .steps {
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .legal-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}