/* General Styles */
:root {
    --primary-color: #00bfca; /* Blue */
    --secondary-color: #00b990; /* Green */
    --dark-color: #343a40; /* Dark Gray */
    --light-color: #f8f9fa; /* Light Gray */
    --white-color: #ffffff;
    --text-color: #555;
    --heading-color: #333;
    --footer-bg: #212529;
    --section-padding: 80px 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    background-color: var(--white-color);
    scroll-behavior: smooth;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    color: var(--heading-color);
    margin-bottom: 20px;
}

h2 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
}

.section-padding {
    padding: var(--section-padding);
}

.section-title p {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px auto;
    font-size: 1.1em;
    color: #777;
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    margin-right: 10px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.btn-primary:hover {
    background-color: #0056b3;
    color: var(--white-color);
}

.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);
    border-color: var(--primary-color);
}

/* Header */
header {
    background-color: var(--white-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--dark-color);
}

.logo a:hover {
    color: var(--primary-color);
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    font-weight: 500;
    color: var(--dark-color);
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
}

.cta-button .btn-primary {
    padding: 10px 20px;
    font-size: 0.9em;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../img/hero.webp') no-repeat center center/cover;
    color: var(--white-color);
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: var(--section-padding);
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
    max-width: 50%;
    padding-right: 30px;
}

.hero-content h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--white-color);
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--light-color);
}

.hero-cta .btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.hero-cta .btn-primary:hover {
    background-color: #218838;
    border-color: #218838;
}

.hero-image {
    flex: 1;
    text-align: right;
}

.hero-image img {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* About Us Section */
.about .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    flex-wrap: wrap;
}

.about-content {
    flex: 1;
    max-width: 50%;
}

.about-content h2 {
    text-align: left;
}

.about-content h2::after {
    margin: 10px 0 0 0;
}

.about-content p {
    margin-bottom: 20px;
    font-size: 1.1em;
    color: var(--text-color);
}

.about-image {
    flex: 1;
}

.about-image img {
    border-radius: 8px;
}

/* Services Section */
.services {
    background-color: var(--light-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.service-item {
    text-align: center;
    background-color: var(--white-color);
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
}

.service-item img {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    filter: brightness(0) saturate(100%) invert(36%) sepia(97%) saturate(667%) hue-rotate(182deg) brightness(96%) contrast(97%); /* Primary Color */
}

.service-item h3 {
    margin-bottom: 10px;
    font-size: 1.4em;
    color: var(--primary-color);
}

.service-item p {
    font-size: 0.95em;
}

.additional-service {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 8px;
}

.additional-service h4 {
    color: var(--white-color);
    font-size: 1.6em;
    margin-bottom: 10px;
}

.additional-service p {
    color: var(--light-color);
    font-size: 1.1em;
}

/* Why Choose Us Section */
.why-choose-us {
    background-color: var(--white-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 20px;
}

.feature-item .icon {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-item h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 0.95em;
}

/* Health Care Plan Section */
.plans {
    background-color: var(--light-color);
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    justify-items: center;
}

.plan-item {
    background-color: var(--white-color);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.plan-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
}

.plan-item.featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.plan-item h3 {
    font-size: 1.6em;
    margin-bottom: 15px;
}

.plan-item .price {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.plan-item .price span {
    font-size: 0.6em;
    font-weight: normal;
    color: #666;
}

.plan-item ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    text-align: left;
    flex-grow: 1; /* Pushes button to bottom */
}

.plan-item ul li {
    margin-bottom: 15px;
    font-size: 1.05em;
    display: flex;
    align-items: center;
}

.plan-item ul li i {
    margin-right: 10px;
    color: var(--secondary-color);
    font-size: 1.1em;
}

.plan-item ul li .fa-times {
    color: #ccc;
}

.plan-item .btn-primary,
.plan-item .btn-secondary {
    width: 100%;
    margin-top: auto; /* Pushes button to bottom */
}

/* Testimonials Section */
.testimonials {
    background-color: var(--white-color);
}

.testimonials-slider {
    display: flex;
    overflow-x: auto; /* Basic slider functionality */
    scroll-snap-type: x mandatory;
    padding-bottom: 20px; /* For scrollbar */
    gap: 30px;
    justify-content: center; /* Center items if not many are visible */
}

.testimonial-item {
    flex: 0 0 400px; /* Fixed width for cards */
    scroll-snap-align: start;
    background-color: var(--light-color);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-item:hover {
    transform: translateY(-5px);
}

.testimonial-item p {
    font-style: italic;
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #444;
    flex-grow: 1; /* Allow text to take available space */
}

.testimonial-item .author {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.testimonial-item .author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.testimonial-item .author h4 {
    margin: 0;
    font-size: 1.2em;
    color: var(--dark-color);
}

.testimonial-item .author span {
    display: block;
    font-size: 0.9em;
    color: #777;
}

/* Contact and Appointment Form Section */
.contact {
    background-color: var(--light-color);
}

.contact-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 50px;
    flex-wrap: wrap;
}

.contact-info {
    flex: 1;
    max-width: 30%;
    background-color: var(--white-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.contact-info h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.contact-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contact-info p i {
    margin-right: 10px;
    color: var(--secondary-color);
    font-size: 1.2em;
}

.contact-form-container {
    flex: 2;
    background-color: var(--white-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.contact-form-container h3 {
    margin-bottom: 25px;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-group label { /* For newsletter DOB */
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-color);
}

.form-group.checkbox-group {
    display: flex;
    align-items: center;
}

.form-group.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    cursor: pointer;
}

.form-group.checkbox-group label {
    margin-bottom: 0;
    cursor: pointer;
}

.form-submit-btn {
    width: auto;
    padding: 12px 30px;
    font-size: 1.05em;
    border-radius: 5px;
}

.confirmation-message {
    margin-top: 20px;
    padding: 15px;
    background-color: var(--secondary-color);
    color: var(--white-color);
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
}

/* Footer */
/* Footer Styles */
footer {
    background-color: #333;
    color: white;
    padding: 40px 0;
    font-size: 16px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-col {
    flex: 1;
    min-width: 220px;
    margin: 0 20px;
}

.footer-col h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    color: white;
}

.footer-col p,
.footer-col ul {
    font-size: 14px;
    color: #ddd;
}

.footer-col a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: #00bfca; /* Pinkish hover effect */
}

.footer-col .social-links a {
    margin-right: 10px;
    color: #ddd;
    font-size: 20px;
    transition: color 0.3s ease;
}

.footer-col .social-links a:hover {
    color: #00bfca; /* Pinkish hover effect */
}

.footer-bottom {
    background-color: #222;
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
    color: #bbb;
    margin-top: 40px;
}

.footer-bottom p {
    margin: 0;
}

/* Footer responsiveness */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
    }

    .footer-col {
        margin: 10px 0;
        text-align: center;
    }

    .footer-col h3 {
        margin-bottom: 15px;
    }

    .footer-bottom {
        font-size: 12px;
    }
}

/* Button Styling */
.btn-secondary {
    background-color: #00bfca;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-secondary:hover {
    background-color: #e58f98;
}

/* Icon Styling */
.fas, .fab {
    margin-right: 10px;
}

/* Pop-up Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup-overlay.active {
    display: flex;
    opacity: 1;
}

.popup-content {
    background-color: var(--white-color);
    padding: 40px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    max-height: 80vh; /* Limit height, add scroll if needed */
    overflow-y: auto; /* Add scroll for content overflow */
}

.popup-content h2 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.popup-content p {
    margin-bottom: 15px;
    color: #555;
}

.popup-content h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.popup-content .form-group {
    margin-bottom: 15px;
}

.popup-content .form-submit-btn {
    width: 100%;
    margin-top: 10px;
}

.popup-close {
    display: block;
    margin: 15px auto 0; /* Center the button */
    background-color: #6c757d;
    color: var(--white-color);
    border: none;
}

.popup-close:hover {
    background-color: #5a6268;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero .container,
    .about .container,
    .contact-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .hero-content,
    .about-content,
    .contact-info {
        max-width: 100%;
        padding-right: 0;
        margin-bottom: 30px;
    }

    .hero-image,
    .about-image {
        margin-top: 30px;
        text-align: center;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        margin-top: 20px;
        display: none; /* Hide nav by default on small screens, implement toggle later */
    }

    nav ul li {
        margin: 10px 0;
    }

    .cta-button {
        display: none; /* Hide CTA button on small screen for basic demo, implement toggle */
    }

    header .container {
        flex-wrap: wrap;
        justify-content: center;
    }

    .logo {
        margin-bottom: 15px;
    }

    .hero-content h1 {
        font-size: 2.8em;
    }

    .hero-content p {
        font-size: 1.1em;
    }

    .contact-info {
        max-width: 100%;
    }

    .testimonials-slider {
        flex-wrap: wrap;
        overflow-x: visible;
        justify-content: center;
    }

    .testimonial-item {
        flex: 0 1 400px; /* Allow items to wrap */
        width: 90%; /* Full width on very small screens */
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-col {
        width: 100%;
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    h2 {
        font-size: 2em;
    }

    .hero-content h1 {
        font-size: 2.5em;
    }

    .hero {
        min-height: 60vh;
    }

    .service-item, .plan-item {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .hero-content, .hero-image {
        max-width: 100%;
    }

    .hero-content h1 {
        font-size: 2em;
    }

    .hero-content p {
        font-size: 1em;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        margin-bottom: 10px;
    }

    .popup-content {
        width: 95%;
        padding: 25px;
    }
}