/* --- Global Styles & Resets --- */
html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4CAF50; /* Main color changed to green */
    --primary-color-dark: #45a049;
    --text-dark: #1f2937;
    --text-light: #f9fafb;
    --text-muted: #6b7280;
    --background-light: #f3f4f6;
    --border-color: #d1d5db;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #ffffff;
    color: var(--text-dark);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-color-dark);
}

.btn-full {
    width: 100%;
    font-size: 1.1rem;
}

/* --- Navbar Section --- */
.navbar {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
}

.logo svg {
    color: var(--primary-color);
}

.nav-links ul {
    display: flex;
    gap: 35px;
}

.nav-links a {
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-toggle-btn, .nav-close-btn {
    display: none; /* Hidden by default */
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-dark);
}

/* --- Hero Section --- */
.hero-section {
    color: var(--text-light);
    padding: 80px 0;
    background: 
        linear-gradient(rgba(10, 30, 20, 0.75), rgba(10, 30, 20, 0.75)), 
        url('https://educationpost.in/_next/image?url=https%3A%2F%2Fapi.educationpost.in%2Fs3-images%2F1707287209044-Delving-into-Doctor-Patient-Ratio.jpg&w=3840&q=75') no-repeat center center;
    background-size: cover;
    min-height: calc(100vh - 80px); /* Full viewport height minus navbar */
    display: flex;
    align-items: center;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
}

.hero-text {
    flex: 1;
    max-width: 550px;
}

.hero-text p {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 60px;
}

.hero-text p::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 2px;
    background-color: var(--primary-color);
}

.hero-text h1 {
    font-size: 3.8rem;
    font-weight: 700;
    line-height: 1.2;
}

/* --- Form --- */
.form-wrapper {
    flex-basis: 450px;
    background-color: var(--background-light);
    padding: 35px;
    border-radius: 16px;
    color: var(--text-dark);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.form-wrapper h2 {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 25px;
}

.form-group, .form-group-split {
    margin-bottom: 15px;
}

.form-group-split {
    display: flex;
    gap: 15px;
}

.form-wrapper input,
.form-wrapper textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    background-color: #ffffff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-wrapper input:focus,
.form-wrapper textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

.form-wrapper textarea {
    resize: vertical;
    min-height: 100px;
}

/* --- Section 2: Committed to Excellence --- */
.section2 {
    padding: 100px 0;
    background-color: #fff;
}

.section2-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.image-column {
    flex: 1;
    position: relative;
    min-width: 0; /* Prevents flexbox overflow */
}

.image-bg-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
}

.bg-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(76, 175, 80, 0.6), rgba(76, 175, 80, 0.1));
    z-index: 1;
}

.fg-image {
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 50%;
    max-width: 250px;
    border-radius: 16px;
    border: 6px solid white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.text-column {
    flex: 1;
}

.text-column h2 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
}

.divider {
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    margin-top: 15px;
    margin-bottom: 25px;
}

.text-column p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.text-column .btn {
    margin-top: 15px;
}


/* --- RESPONSIVE STYLES --- */

/* Tablet and below */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 50px;
    }

    .hero-text {
        max-width: 600px;
    }

    .hero-text p {
        padding-left: 0;
        justify-content: center;
    }

    .hero-text p::before {
        left: 50%;
        top: -15px;
        transform: translateX(-50%);
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .form-wrapper {
        width: 100%;
        max-width: 500px;
    }

    /* Section 2 Responsive */
    .section2-container {
        flex-direction: column;
        gap: 80px; /* Increased gap for stacked layout */
    }
    
    .image-column {
        width: 100%;
        max-width: 500px;
    }

    .text-column {
        text-align: center;
    }

    .divider {
        margin-left: auto;
        margin-right: auto;
    }
}

/* Mobile View */
@media (max-width: 768px) {
    .nav-cta-btn {
        display: none;
    }

    .nav-toggle-btn {
        display: block; /* Show hamburger */
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1001; /* Above navbar */
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links ul {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .nav-close-btn {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
    }

    .hero-section {
        padding: 60px 0;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .form-wrapper {
        padding: 25px;
    }

    .form-group-split {
        flex-direction: column;
        gap: 0; /* Remove gap if inputs have margin-bottom */
    }
    .form-group-split input {
        margin-bottom: 15px;
    }

    /* Section 2 Responsive */
    .section2 {
        padding: 80px 0;
    }

    .text-column h2 {
        font-size: 2rem;
    }

    .fg-image {
        width: 60%;
        right: -15px;
        bottom: -30px;
    }
}





/* --- Section 3: Call to Action --- */
.section3 {
    padding: 100px 0;
    /* Faint hexagonal background pattern */
    background-color: #f8f9fa;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='173.2' viewBox='0 0 100 173.2'%3E%3Cpath d='M50 0L100 28.867v57.735L50 115.47 0 86.602V28.867zM50 57.735L100 86.602v57.735L50 173.2 0 144.337V86.602z' fill-opacity='0.03' fill='%234CAF50'/%3E%3C/svg%3E");
}

.cta-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 40px 50px;
    border-radius: 24px;
    box-shadow: 0 15px 30px rgba(76, 175, 80, 0.2);
}

.cta-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.cta-content p {
    font-size: 1rem;
    opacity: 0.9;
    max-width: 450px;
}

.cta-button {
    flex-shrink: 0; /* Prevents the button from shrinking */
    padding: 14px 28px;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* --- Responsive Styles for Section 3 --- */
@media (max-width: 992px) {
    .cta-banner {
        padding: 35px 40px;
    }
    .cta-content h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .section3 {
        padding: 80px 0;
    }
    .cta-banner {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }
    .cta-content p {
        max-width: 100%; /* Allow paragraph to take full width */
    }
}





/* --- Section 4: Our Procedures --- */
.section4 {
    padding: 100px 0;
    /* Using the same faint hexagonal background from section3 */
    background-color: #f8f9fa;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='173.2' viewBox='0 0 100 173.2'%3E%3Cpath d='M50 0L100 28.867v57.735L50 115.47 0 86.602V28.867zM50 57.735L100 86.602v57.735L50 173.2 0 144.337V86.602z' fill-opacity='0.03' fill='%234CAF50'/%3E%3C/svg%3E");
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.section-header p {
    color: var(--text-muted);
    line-height: 1.7;
}

.procedures-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.procedure-card {
    background-color: #f7fbf7; /* Very light green-tinted background */
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid #eef3ee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.procedure-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(76, 175, 80, 0.1);
}

.procedure-card .icon {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.procedure-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.procedure-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}


/* --- Responsive Styles for Section 4 --- */

/* Tablet View */
@media (max-width: 992px) {
    .procedures-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile View */
@media (max-width: 768px) {
    .section4 {
        padding: 80px 0;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }

    .procedures-grid {
        grid-template-columns: 1fr;
    }
}


/* --- Section 5: Happy Stories (Testimonials) --- */
.section5 {
    padding: 100px 0;
    background-color: #f7fbf7; /* Very light green-tinted background */
}

.testimonials-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.testimonial-card {
    background-color: #fff;
    border: 1px solid #eef3ee;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.1);
}

.large-card {
    flex: 1.2; /* Makes the left card slightly larger */
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.right-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.small-card {
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.testimonial-card .avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #eef3ee;
}

.large-card .avatar {
    margin-bottom: 20px;
}

.small-card .avatar {
    flex-shrink: 0;
}

.card-content {
    text-align: left;
}

.quote {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.author-info {
    width: 100%;
}

.author-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.stars {
    color: #f5b014; /* Gold star color */
    font-size: 1rem;
}

.review-us-section {
    margin-top: 80px;
    text-align: center;
}

.review-us-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 12px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary-color-dark);
    transform: scale(1.1);
}

/* --- Responsive Styles for Section 5 --- */

/* Tablet View */
@media (max-width: 992px) {
    .testimonials-container {
        flex-direction: column;
    }

    .large-card {
        flex: 1; /* Reset flex-grow */
    }
}

/* Mobile View */
@media (max-width: 768px) {
    .section5 {
        padding: 80px 0;
    }

    .small-card {
        flex-direction: column;
        text-align: center;
    }

    .card-content {
        text-align: center;
    }

    .small-card .avatar {
        margin-bottom: 15px;
    }
}









/* --- Section 6: Appointment CTA & Map --- */
.appointment-section {
    padding: 100px 0;
    background-color: #fff;
}

.appointment-section .section-header {
    margin-bottom: 40px;
}

.appointment-section .btn {
    margin-top: 15px;
}

.map-container {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    display: block; /* Removes bottom space under iframe */
}


/* --- Footer --- */
.site-footer {
    background-color: #f7fbf7; /* Very light green-tinted background */
    padding: 80px 0 0 0;
    color: var(--text-muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 60px;
}

.footer-column {
    font-size: 0.95rem;
}

.footer-column .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.footer-column h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.footer-column p, .footer-column a {
    display: block;
    margin-bottom: 10px;
    line-height: 1.6;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--primary-color);
}

.footer-column .social-icons {
    justify-content: flex-start;
}

/* Footer Bottom */
.footer-bottom {
    background-color: #eef3ee; /* Slightly darker than footer bg */
    padding: 20px 0;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- Responsive Styles for Appointment Section & Footer --- */

/* Tablet View */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .logo-column {
        grid-column: 1 / -1; /* Make logo span full width */
        text-align: center;
    }
    .logo-column .logo {
        justify-content: center;
    }
}

/* Mobile View */
@media (max-width: 768px) {
    .appointment-section {
        padding: 80px 0;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .footer-bottom-container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-column a, .footer-column p {
        margin-left: auto;
        margin-right: auto;
    }
    .footer-column .social-icons {
        justify-content: center;
    }
}