/* Global Styles */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --white-color: #ffffff;
    --background-color: #f4f7f6;
    --text-color: #333;
    --heading-font: 'Poppins', sans-serif;
    --body-font: 'Roboto', sans-serif;
    --transition-speed: 0.3s;
}

body {
    font-family: var(--body-font);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    background-color: var(--background-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    color: var(--dark-color);
    margin-bottom: 20px;
}

h1 { font-size: 3.5em; }
h2 { font-size: 2.5em; }
h3 { font-size: 1.8em; }
h4 { font-size: 1.3em; }

p {
    margin-bottom: 20px;
    color: var(--secondary-color);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: #0056b3;
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease, border-color var(--transition-speed) ease;
    cursor: pointer;
    border: none;
    
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

section {
    padding: 80px 0;
}

section:nth-child(even) {
    background-color: var(--white-color);
}

/* Header */
#header {
    background-color: var(--white-color);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

#header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#header .logo a {
    font-family: var(--heading-font);
    font-size: 1.8em;
    font-weight: bold;
    color: var(--dark-color);
}

#header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

#header nav ul li {
    margin-left: 30px;
}

#header nav ul li a {
    color: var(--dark-color);
    font-weight: 500;
    transition: color var(--transition-speed) ease;
}

#header nav ul li a:hover {
    color: var(--primary-color);
}

#header nav ul li a.btn-primary {
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
}

.hamburger {
    display: none;
    font-size: 1.8em;
    cursor: pointer;
}

/* Hero Section */
#hero {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 100px 0;
    text-align: center;
}

#hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

#hero .hero-content {
    flex: 1;
    text-align: left;
}

#hero h1 {
    color: var(--white-color);
    margin-bottom: 20px;
}

#hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2em;
    margin-bottom: 30px;
}

.cta-button {
    font-size: 1.2em;
    padding: 15px 30px;
    color: #ffffff;
}

.cta-button:hover {
   
    color: #ffffff;
}

#hero .hero-image img {
    max-width: 40vw;
    height: auto;
    border-radius: 10px;
}

/* About Us Section */
#about .container {
    display: flex;
    align-items: center;
    gap: 40px;
}

#about .about-image {
    flex: 1;
}

#about .about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

#about .about-content {
    flex: 1;
}

#about h2 {
    margin-bottom: 20px;
}

#about p {
    color: var(--text-color);
    margin-bottom: 15px;
}

/* Services Section */
#services {
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-item {
    background-color: var(--white-color);
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.service-icon {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-item h3 {
    margin-bottom: 10px;
    color: var(--dark-color);
}

/* Why Choose Us Section */
#why-choose-us {
    text-align: center;
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.choose-item {
    background-color: var(--white-color);
    padding: 30px 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.choose-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.choose-icon {
    font-size: 2em;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.choose-item h4 {
    margin-bottom: 10px;
    color: var(--dark-color);
}

/* Health Care Plan Section */
#healthcare-plans {
    text-align: center;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.plan-card {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: left;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.plan-card.featured {
    border: 3px solid var(--primary-color);
    transform: scale(1.05); /* Slightly enlarged */
}

.plan-card h3 {
    margin-top: 0;
    color: var(--dark-color);
    font-size: 1.8em;
}

.plan-card .price {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.plan-card .price span {
    font-size: 0.6em;
    font-weight: normal;
    color: var(--secondary-color);
}

.plan-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    flex-grow: 1; /* Allows list to take available space */
}

.plan-card ul li {
    margin-bottom: 15px;
    color: var(--text-color);
    font-size: 1.1em;
}

.plan-card ul li i {
    margin-right: 10px;
    color: var(--success-color);
}

.plan-card ul li:nth-child(3), /* Example for specific plan features */
.plan-card ul li:nth-child(4) {
    color: var(--secondary-color);
}

.plan-card ul li:nth-child(3) i,
.plan-card ul li:nth-child(4) i {
    color: var(--danger-color);
}

/* Contact and Booking Section */
#contact-and-book .container {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 40px;
    justify-content: center;
}

.contact-info {
    flex: 1;
    min-width: 300px; /* Ensure it has some width */
    background-color: var(--white-color);
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.contact-info h2 {
    margin-top: 0;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.contact-info i {
    color: var(--primary-color);
    font-size: 1.2em;
}

.social-links {
    margin-top: 20px;
}

.social-links a {
    display: inline-block;
    margin-right: 15px;
    font-size: 1.5em;
    color: var(--secondary-color);
    transition: color var(--transition-speed) ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

.appointment-form-container {
    flex: 1.5; /* Takes slightly more space */
    min-width: 300px;
    background-color: var(--white-color);
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.appointment-form-container h2 {
    margin-top: 0;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    font-family: var(--body-font);
    font-size: 1em;
    color: var(--text-color);
}

.form-group textarea {
    resize: vertical; /* Allow vertical resizing */
}

.form-group select {
    appearance: none; /* Remove default arrow */
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="15" viewBox="0 0 426.667 256"><path d="M213.333 181.333L0 0h426.667z" fill="%23777"/></svg>');
    background-repeat: no-repeat;
    background-position: right 15px top 50%;
    background-size: 12px auto;
    padding-right: 35px; /* Make space for the arrow */
}

.form-group button[type="submit"] {
    width: 100%;
    padding: 15px 25px;
    font-size: 1.1em;
}

.confirmation-message {
    background-color: var(--success-color);
    color: var(--white-color);
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
    text-align: center;
    font-weight: bold;
}

/* Testimonials Section */
#testimonials {
    text-align: center;
    background-color: var(--background-color); /* Light background for contrast */
}

.testimonial-slider {
    display: flex;
    overflow-x: auto; /* For potential horizontal scrolling on small screens if JS handles it */
    scroll-snap-type: x mandatory; /* For smoother scrolling */
    -webkit-overflow-scrolling: touch;
    padding-bottom: 20px; /* Space for scrollbar */
    margin-top: 40px;
    justify-content: center;
}

.testimonial-item {
    flex: 0 0 60%; /* Each item takes 60% of the container width */
    max-width: 600px; /* Max width for readability */
    min-width: 300px; /* Minimum width */
    scroll-snap-align: center;
    background-color: var(--white-color);
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    margin: 0 20px; /* Space between items if not using flex-grow */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.testimonial-item p {
    font-size: 1.2em;
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 25px;
    position: relative;
    padding: 0 15px;
}

.testimonial-item p::before,
.testimonial-item p::after {
    content: '"';
    font-size: 2em;
    color: var(--primary-color);
    opacity: 0.6;
    position: absolute;
    top: -10px;
}

.testimonial-item p::before { left: -10px; }
.testimonial-item p::after { right: -10px; }

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author h4 {
    margin: 0;
    color: var(--dark-color);
    font-size: 1.1em;
}

.testimonial-author span {
    color: var(--secondary-color);
    font-size: 0.9em;
}

.slider-nav {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.slider-nav button {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color var(--transition-speed) ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-nav button:hover {
    background-color: #0056b3;
}

/* Footer */
#footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 60px 0 20px 0;
}

#footer h4 {
    color: var(--white-color);
    margin-bottom: 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col p {
    color: var(--light-color);
    opacity: 0.8;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--light-color);
    opacity: 0.8;
    transition: opacity var(--transition-speed) ease;
}

.footer-col ul li a:hover {
    opacity: 1;
    color: var(--primary-color);
}

#footer form .form-group {
    margin-bottom: 10px;
}

#footer form input[type="text"],
#footer form input[type="email"],
#footer form input[type="date"],
#footer form button {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white-color);
    padding: 10px 15px;
    width: calc(100% - 30px); /* Adjust for padding */
}

#footer form input::placeholder,
#footer form textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

#footer form .checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

#footer form .checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    width: auto; /* Override default width */
}

#footer form .checkbox-group label {
    color: var(--light-color);
    opacity: 0.8;
    font-size: 0.9em;
}

#footer form .btn-primary {
    width: 100%;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9em;
    color: var(--light-color);
    opacity: 0.7;
}

/* Modals */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1001; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.5); /* Black w/ opacity */
    padding-top: 60px;
}

.modal-content {
    background-color: var(--white-color);
    margin: 5% auto; /* 15% from the top and centered */
    padding: 30px;
    border-radius: 10px;
    width: 80%; /* Could be more responsive */
    max-width: 600px; /* Max width */
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.modal-content h2 {
    margin-top: 0;
    color: var(--primary-color);
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: var(--dark-color);
    text-decoration: none;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 992px) {
    h1 { font-size: 3em; }
    h2 { font-size: 2em; }

    #header nav {
        display: none; /* Hide nav by default on smaller screens */
        position: absolute;
        top: 70px; /* Adjust based on header height */
        left: 0;
        width: 100%;
        background-color: var(--white-color);
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 20px 0;
        flex-direction: column;
        align-items: flex-start;
    }

    #header nav.active {
        display: flex; /* Show nav when active */
    }

    #header nav ul {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    #header nav ul li {
        margin: 10px 0;
        width: 100%;
        padding: 0 20px;
    }

    #header nav ul li a {
        display: block;
        width: 100%;
    }

    .hamburger {
        display: block; /* Show hamburger */
    }

    #hero .container,
    #about .container {
        flex-direction: column;
        text-align: center;
    }

    #hero .hero-content,
    #hero .hero-image,
    #about .about-image,
    #about .about-content {
        flex: none;
        width: 100%;
    }

    #hero .hero-content {
        order: 2; /* Content below image */
    }

    #about .about-image {
        order: 1; /* Image above content */
        margin-bottom: 30px;
    }

    #contact-and-book .container {
        flex-direction: column;
    }

    .contact-info, .appointment-form-container {
        width: 100%;
    }

    .testimonial-item {
        flex: 0 0 80%; /* Larger items on medium screens */
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5em; }
    h2 { font-size: 1.8em; }
    section { padding: 60px 0; }

    .testimonial-item {
        flex: 0 0 90%;
    }
}

@media (max-width: 576px) {
    h1 { font-size: 2em; }
    section { padding: 40px 0; }

    .service-item, .choose-item, .plan-card, .contact-info, .appointment-form-container {
        padding: 25px 15px;
    }

    .service-item, .choose-item {
        min-width: 240px;
    }

    .testimonial-item {
        margin: 0 10px;
        padding: 30px 20px;
    }
    .testimonial-item p {
        font-size: 1.1em;
    }

    .slider-nav {
        gap: 15px;
    }
    .slider-nav button {
        width: 35px;
        height: 35px;
        font-size: 1em;
    }
}