/* CSS Variables */
:root {
    --primary: #2d8a6e;
    --primary-dark: #236b56;
    --primary-light: #e8f5f0;
    --secondary: #f8b042;
    --text: #333;
    --text-light: #666;
    --white: #fff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --radius: 8px;
    --transition: all 0.3s ease;
}

/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo img {
    height: 90px;
    /* Increased for better clarity and visibility */
    width: auto;
    /* Maintain aspect ratio */
}

.nav ul {
    display: flex;
    gap: 30px;
}

.nav a {
    font-weight: 500;
    transition: var(--transition);
    padding: 8px 0;
    position: relative;
}

.nav a:hover,
.nav a.active {
    color: var(--primary);
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* Hero Banner Section */
.hero-banner {
    background: var(--white);
    padding: 20px 0;
}

.hero-banner-img {
    width: 100%;
    max-width: 1200px;
    height: auto;
    border-radius: var(--radius);
    display: block;
    margin: 0 auto;
}

.hero-secondary {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--white) 100%);
    padding: 60px 0;
    text-align: center;
}

.hero-secondary .hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-secondary .hero-buttons {
    justify-content: center;
}

.hero-secondary h1 {
    font-size: 2.5rem;
    color: var(--text);
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero-secondary h1 span {
    color: var(--primary);
}

.hero-secondary p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

/* Hero Section (legacy) */
.hero {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--white) 100%);
    padding: 80px 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-content h1 {
    font-size: 3rem;
    color: var(--text);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content h1 .tagline {
    color: var(--primary);
    font-style: italic;
    display: block;
    font-size: 2.8rem;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-image img {
    border-radius: var(--radius);
    max-height: 450px;
    object-fit: contain;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--text);
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-card .icon {
    width: 70px;
    height: 70px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text);
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.about-content h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--text);
}

.about-content p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.experience-badges {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.badge {
    text-align: center;
    padding: 20px;
    background: var(--primary-light);
    border-radius: var(--radius);
}

.badge .number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.badge .label {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Stats Section */
.stats {
    background: var(--primary);
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-item .number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-item .label {
    font-size: 1rem;
    opacity: 0.9;
}

/* Testimonials */
.testimonials {
    background: var(--gray-100);
}

.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin: 15px;
}

.testimonial-card .quote {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.testimonial-card .author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-card .author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-card .author-info h4 {
    color: var(--text);
    margin-bottom: 3px;
}

.testimonial-card .author-info span {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-item .icon {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 20px;
    flex-shrink: 0;
}

.contact-item h4 {
    margin-bottom: 5px;
}

.contact-item p,
.contact-item a {
    color: var(--text-light);
}

.contact-item a:hover {
    color: var(--primary);
}

/* Form Styles */
.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--white);
    color: var(--text);
    padding: 60px 0 20px;
    border-top: 1px solid var(--gray-200);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about img {
    height: 70px;
    margin-bottom: 20px;
}

.footer-about p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--gray-100);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    color: var(--white);
}

.footer h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--text);
    font-weight: 600;
}

.footer ul li {
    margin-bottom: 12px;
}

.footer ul a {
    color: var(--text-light);
    transition: var(--transition);
}

.footer ul a:hover {
    color: var(--primary);
}

.footer-contact-icon {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    vertical-align: middle;
    fill: var(--primary);
    position: relative;
    top: -1px;
}

/* Footer Clinic Locations Section */
.footer-locations-section {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--gray-200);
}

.footer-locations-title {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 600;
}

.footer-locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.footer-location-card {
    background: var(--gray-100);
    padding: 20px;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid transparent;
    transition: var(--transition);
}

.footer-location-card:hover {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.footer-location-card h5 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.footer-location-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 5px;
    line-height: 1.4;
}

.footer-location-card .timings {
    font-weight: 500;
    color: var(--text);
    margin-top: 8px;
}

.footer-bottom {
    margin-top: 40px;
    border-top: 1px solid var(--gray-200);
    padding-top: 20px;
    text-align: center;
    color: var(--text-light);
}



/* Dropdown Menu */
.nav ul li {
    /* Ensure parent li is relative for positioning */
    position: relative;
}

.nav .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    /* Use larger shadow for dropdown */
    border-radius: var(--radius);
    padding: 10px 0;
    z-index: 1001;
    /* Higher than header */
    flex-direction: column;
    /* Vertical list */
    gap: 0 !important;
    /* Override nav ul gap */
}

.nav .dropdown-menu li {
    width: 100%;
}

.nav .dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--text);
    font-weight: normal;
    font-size: 0.95rem;
    white-space: nowrap;
    /* Prevent wrapping */
}

.nav .dropdown-menu a:hover {
    background-color: var(--gray-100);
    color: var(--primary);
}

.nav .dropdown-menu a::after {
    display: none;
    /* Remove underline effect for dropdown items */
}

/* Show dropdown on hover (desktop) */
@media (min-width: 769px) {
    .nav li:hover .dropdown-menu {
        display: flex;
        /* Or block */
    }
}

/* JS Toggle class */
.nav .dropdown-menu.show {
    display: flex;
}

/* Mobile Dropdown Styles */
@media (max-width: 768px) {
    .nav .dropdown-menu {
        position: relative;
        /* Changed from static to relative for better control/z-index if needed */
        top: 0;
        box-shadow: none;
        background-color: var(--gray-100);
        /* Highlight submenu area */
        width: 100%;
        padding: 10px 20px;
    }

    .nav .dropdown-menu a {
        padding: 8px 0;
    }
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.page-header p {
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Blog Cards */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-content {
    padding: 25px;
}

.blog-card .date {
    color: var(--primary);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.blog-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 15px;
}



/* Awards Section */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.award-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.award-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.award-card-content {
    padding: 20px;
    text-align: center;
}

.award-card h3 {
    color: var(--text);
    margin-bottom: 5px;
}

.award-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {

    .hero .container,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero {
        text-align: center;
        padding: 60px 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content h1 .tagline {
        font-size: 2.2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav {
        position: fixed;
        top: 120px;
        /* Match the new header height */
        left: 0;
        right: 0;
        background: var(--white);
        padding: 20px;
        box-shadow: var(--shadow);
        display: none;
    }

    .nav.active {
        display: block;
    }

    .nav ul {
        flex-direction: column;
        gap: 15px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content h1 .tagline {
        font-size: 1.8rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .experience-badges {
        flex-direction: column;
    }

    .logo img {
        height: 70px;
        /* Slightly smaller on mobile */
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .btn {
        display: block;
        width: 100%;
        text-align: center;
    }
}