/* Global Styles */
:root {
    --primary-color: #2d9cdb;
    --secondary-color: #2f80ed;
    --dark-color: #333;
    --light-color: #f4f4f4;
    --danger-color: #eb5757;
    --success-color: #27ae60;
    --white-color: #fff;
    --gray-color: #828282;
    --light-gray: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white-color);
}

a {
    text-decoration: none;
    color: var(--dark-color);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white-color);
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--dark-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 10px auto;
}

/* Header Styles */
header {
    background-color: var(--white-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 10px;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

nav ul {
    display: flex;
    align-items: center;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.btn-book {
  background-color: #4a8ff7;   
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: 0.3s ease;
}

.btn-book:hover {
  background-color: #0051ff;
}

/* Testimonial progress bar */
.progress-bar {
    width: 100%;
    height: 3px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    margin-top: 20px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    width: 0%;
    background: #0077b6;
    border-radius: 2px;
    transition: width 5s linear;
}

/* Doctor card Profile button */
.btn-profile {
    display: inline-block;
    margin-top: 14px;
    padding: 9px 22px;
    background: transparent;
    border: 2px solid #0077b6;
    color: #0077b6;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
}
.btn-profile:hover {
    background: #0077b6;
    color: #fff;
}
/* WhatsApp Floating Button */
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    color: white;
    font-size: 28px;
    padding: 16px;
    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    background: #20b858;
}
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1588776814546-1ffcf47267a5?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') no-repeat center center/cover;
    color: var(--white-color);
    display: flex;
    align-items: center;
    text-align: center;
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Services Section */
.services {
    padding: 80px 0;
    background-color: var(--light-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: var(--white-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* About Section */
.about {
    padding: 80px 0;
}

.about .container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-content {
    flex: 1;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stats {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.stat {
    text-align: center;
}

.number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.label {
    display: block;
    font-size: 1rem;
    color: var(--gray-color);
}

/* Doctors Section */
.doctors {
    padding: 80px 0;
    background-color: var(--light-color);
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.doctor-card {
    background: var(--white-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.doctor-card:hover {
    transform: translateY(-10px);
}

.doctor-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.doctor-card h3 {
    font-size: 1.5rem;
    margin: 20px 0 5px;
    padding: 0 20px;
}

.specialty {
    color: var(--primary-color);
    font-weight: 500;
    padding: 0 20px;
    margin-bottom: 15px;
}

.doctor-card p {
    padding: 0 20px 20px;
    color: var(--gray-color);
}

/* Booking Section */
.booking {
    padding: 80px 0;
}

.booking-form {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--light-gray);
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Testimonials Section */
.testimonials {
    padding: 80px 0;
    background-color: var(--light-color);
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial {
    background: var(--white-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: none;
}

.testimonial.active {
    display: block;
}

.testimonial p {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 20px;
}

.author {
    display: flex;
    align-items: center;
    justify-content: center;
}

.author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
}

.author span {
    font-weight: 500;
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.slider-controls button {
    background: var(--primary-color);
    color: var(--white-color);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.slider-controls button:hover {
    background: var(--secondary-color);
}

/* Contact Section */
.contact {
    padding: 80px 0;
}

.contact .container {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 15px;
    margin-top: 5px;
}

.social-links {
    display: flex;
    margin-top: 30px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--white-color);
    border-radius: 50%;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.contact-map {
    flex: 1;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
    background: var(--dark-color);
    color: var(--white-color);
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--light-gray);
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.newsletter-form {
    display: flex;
    margin-top: 20px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 5px 0 0 5px;
}

.newsletter-form button {
    background: var(--primary-color);
    color: var(--white-color);
    border: none;
    padding: 0 15px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: var(--gray-color);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .about .container,
    .contact .container {
        flex-direction: column;
    }
    
    .about-image,
    .contact-map {
        margin-top: 40px;
    }
    
    .contact-map {
        height: 300px;
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--white-color);
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    nav ul.show {
        display: flex;
    }
    
    nav ul li {
        margin: 10px 0;
        text-align: center;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .booking-form {
        padding: 20px;
    }
    
    .stats {
        flex-direction: column;
        gap: 20px;
    }
}
.appointment-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
}
.appointment-button:hover {
    background-color: #0056b3;
}



.whatsapp-button {
    display: inline-block;
    padding: 12px 20px;
    background-color: #25D366; 
    color: white;
    border-radius: 5px;
    text-decoration: none;
    text-align: center;
    font-weight: bold;
    margin-top: 15px;
    transition: background-color 0.3s;
}

.whatsapp-button:hover {
    background-color: #128C7E; 
}






.service-link {
    display: block;
    text-decoration: none;
    color: inherit; 
    padding: 20px; 
    margin: -20px; 
}

.service-link:hover {
    text-decoration: none;
}





/* ═══════════════════════════════
   GLOBAL RESPONSIVE SETTINGS
═══════════════════════════════ */

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

img {
    max-width: 100%;
    height: auto;
}

/* ═══════════════════════════════
   HEADER
═══════════════════════════════ */

nav ul {
    display: flex;
    gap: 20px;
}

.mobile-menu {
    display: none;
}

/* ═══════════════════════════════
   HERO
═══════════════════════════════ */

.hero {
    padding: 80px 0;
}

.hero h2 {
    font-size: 48px;
}

.hero p {
    font-size: 18px;
}

/* ═══════════════════════════════
   SERVICES GRID
═══════════════════════════════ */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* ═══════════════════════════════
   DOCTORS GRID
═══════════════════════════════ */

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* ═══════════════════════════════
   ABOUT SECTION
═══════════════════════════════ */

.about .container {
    display: flex;
    gap: 40px;
    align-items: center;
}

/* ═══════════════════════════════
   BOOKING FORM
═══════════════════════════════ */

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    width: 100%;
}

/* ═══════════════════════════════
   CONTACT
═══════════════════════════════ */

.contact .container {
    display: flex;
    gap: 30px;
}

.contact-map {
    width: 100%;
    min-height: 350px;
}

/* ═══════════════════════════════
   FOOTER
═══════════════════════════════ */

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* ═══════════════════════════════
   TABLET (≤ 992px)
═══════════════════════════════ */

@media (max-width: 992px) {

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .doctors-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about .container {
        flex-direction: column;
        text-align: center;
    }

    .contact .container {
        flex-direction: column;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ═══════════════════════════════
   MOBILE (≤ 768px)
═══════════════════════════════ */

@media (max-width: 768px) {

    /* NAVBAR */
    nav ul {
        position: absolute;
        top: 70px;
        right: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        align-items: center;
        display: none;
        padding: 20px 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

    nav ul.active {
        display: flex;
    }

    .mobile-menu {
        display: block;
        font-size: 22px;
        background: none;
        border: none;
        cursor: pointer;
    }

    /* HERO */
    .hero h2 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-cta {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    /* GRID STACK */
    .services-grid,
    .doctors-grid {
        grid-template-columns: 1fr;
    }

    /* FORM */
    .form-row {
        flex-direction: column;
    }

    /* FOOTER */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* ═══════════════════════════════
   SMALL DEVICES (≤ 480px)
═══════════════════════════════ */

@media (max-width: 480px) {

    .hero {
        padding: 50px 0;
    }

    .hero h2 {
        font-size: 26px;
    }

    .section-title {
        font-size: 22px;
    }

    .btn,
    .btn-book {
        width: 100%;
        text-align: center;
    }
}
button, a {
    touch-action: manipulation;
}



html {
    scroll-behavior: smooth;
}
/* ✔ Better spacing on mobile */
section {
    padding: 60px 0;
}