/* --- Global Styles --- */
:root {
    --primary-color: #f69125; /* SeaGreen */
    --secondary-color: #fe0c24; /* SteelBlue */
    --accent-color: #fe0c24; /* Gold */
    --text-color: #333;
    --light-text-color: #666;
    --bg-light: #f8f9fa;
    --bg-dark: #ffffff;
    --border-radius: 8px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--bg-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    margin-bottom: 1rem;
    font-weight: 600;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.8rem;
}

p {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--light-text-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.section-subtitle {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.1rem;
    color: var(--light-text-color);
}

.btn-primary, .btn-secondary, .btn-outline {
    display: inline-block;
    padding: 12px 25px;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #f69125; /* Darker SeaGreen */
    box-shadow: 0 5px 15px rgba(246, 145, 37, 0.4);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #fe0c24; /* Darker SteelBlue */
    box-shadow: 0 5px 15px rgba(254, 12, 36, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-newsletter {
    background-color: var(--accent-color);
    color: var(--text-color);
    padding: 10px 20px;
    margin-top: 15px;
}

.btn-newsletter:hover {
    background-color: #fe0c24; /* Darker Gold */
}

/* --- Header --- */
header {
    background-color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--box-shadow);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-color);
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
}

.header-actions .btn-primary {
    padding: 8px 18px;
    font-size: 0.9rem;
}

/* --- Hero Section --- */
#hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img/hero.jpg'); /* Replace with your hero background image */
    background-size: cover;
    background-position: center;
    color: white;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 700px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-image {
    margin-top: 30px;
    max-width: 500px;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

/* --- About Section --- */
#about .container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.about-text p {
    font-size: 1.1rem;
    color: var(--light-text-color);
}

.about-image {
    flex: 1;
    min-width: 300px;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-item {
    background-color: white;
    padding: 30px;
    text-align: center;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.service-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-item h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* --- Why Choose Us Section --- */
.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.why-choose-item {
    background-color: white;
    padding: 30px;
    text-align: center;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.why-choose-item i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.why-choose-item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* --- Health Care Plan Section --- */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.plan-card {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.plan-card.featured {
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(246, 145, 37, 0.2);
    transform: scale(1.05);
}

.plan-card h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.plan-card .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.plan-card .price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--light-text-color);
}

.plan-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    text-align: left;
    flex-grow: 1; /* Make list take available space */
}

.plan-card ul li {
    margin-bottom: 12px;
    color: var(--light-text-color);
    font-size: 1rem;
}

.plan-card ul li i {
    margin-right: 10px;
    color: var(--primary-color);
}

.plan-card ul li .fa-times {
    color: #dc3545; /* Red for 'times' */
}

.plan-card .btn-primary,
.plan-card .btn-secondary {
    width: 100%;
    margin-top: auto; /* Push button to the bottom */
}

/* --- Contact Section & Form --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact-info {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contact-info p i {
    margin-right: 15px;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.social-links {
    margin-top: 25px;
}

.social-links a {
    display: inline-block;
    margin-right: 15px;
    font-size: 1.5rem;
    color: var(--light-text-color);
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

.appointment-form-container {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

#appointmentForm .form-group {
    margin-bottom: 20px;
}

#appointmentForm input[type="text"],
#appointmentForm input[type="email"],
#appointmentForm input[type="tel"],
#appointmentForm input[type="date"],
#appointmentForm textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

#appointmentForm textarea {
    min-height: 120px;
    resize: vertical;
}

#appointmentForm button {
    width: 100%;
}

.confirmation-message {
    margin-top: 20px;
    padding: 15px;
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--border-radius);
    text-align: center;
    font-weight: 600;
}

/* --- Testimonials Section --- */
.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 40px auto;
    overflow: hidden; /* Hide overflow for slider effect */
    text-align: center;
}

.testimonial-item {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    width: 100%;
    display: none; /* Hide all items by default, JS will show one */
    animation: fadeIn 0.7s ease-in-out;
    box-sizing: border-box;
}

.testimonial-item.active {
    display: block;
}

.testimonial-item p {
    font-size: 1.15rem;
    font-style: italic;
    margin-bottom: 25px;
    color: var(--light-text-color);
    max-width: 600px;
    margin: 0 auto 25px auto;
}

.testimonial-item .client-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.testimonial-item .client-info img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 15px;
    object-fit: cover;
}

.testimonial-item .client-info h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.testimonial-item .client-info span {
    font-size: 0.9rem;
    color: var(--light-text-color);
}

.testimonial-nav {
    text-align: center;
    margin-top: 20px;
}

.testimonial-nav button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    margin: 0 10px;
    transition: background-color 0.3s ease;
}

.testimonial-nav button:hover {
    background-color: #f69125;
}

/* Fade-in animation for testimonials */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- Modals --- */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1001; /* Sit on top of everything */
    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.6); /* Black w/ opacity */
    padding-top: 60px;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto; /* 15% from the top and centered */
    padding: 30px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
    max-width: 600px; /* Max width for modal */
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: relative;
    animation: zoomIn 0.5s ease-out;
}

.modal-content h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.modal-content p {
    font-size: 1rem;
    color: var(--light-text-color);
    margin-bottom: 1rem;
}

.modal-content button.close-button {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #aaa;
    padding: 0;
    line-height: 1;
}

.modal-content button.close-button:hover {
    color: #777;
}

/* Newsletter specific styles */
#newsletterModal .modal-content {
    text-align: center;
}

#newsletterModal form .form-group {
    margin-bottom: 15px;
    text-align: left;
}

#newsletterModal form input[type="text"],
#newsletterModal form input[type="email"],
#newsletterModal form input[type="date"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    box-sizing: border-box;
}

#newsletterModal form label {
    display: inline-block;
    margin-top: 5px;
    color: var(--light-text-color);
    font-size: 0.9rem;
}

#newsletterModal form input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}

#newsletterModal button[type="submit"] {
    width: 100%;
    margin-top: 10px;
}

/* Zoom-in animation for modals */
@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* --- Footer --- */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0 20px 0;
    font-family: 'Roboto', sans-serif;
}

footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 30px;
}

.footer-about, .footer-links, .footer-contact, .footer-social {
    flex: 1;
    min-width: 200px;
}

.footer-about .logo {
    color: white;
    margin-bottom: 20px;
}

.footer-about .logo img {
    height: 35px;
}

.footer-about h3 {
    color: white;
    margin-bottom: 10px;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer-links h4, .footer-contact h4, .footer-social h4 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: white;
}

.footer-contact p, .footer-contact a {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 12px;
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.footer-contact p i {
    margin-right: 10px;
    color: white;
}

.footer-social h4 {
    text-align: center;
}

.footer-social a {
    display: inline-block;
    margin: 0 10px;
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: white;
}

.footer-social button {
    display: block;
    width: 100%;
    margin-top: 20px;
    font-size: 1rem;
}

.footer-bottom {
    width: 100%;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom p {
    margin-bottom: 10px;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 5px;
}

.footer-bottom a:hover {
    color: white;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .container {
        padding: 0 30px;
    }

    #hero .container {
        flex-direction: column;
    }

    .hero-content {
        margin-bottom: 30px;
    }

    .hero-content h2 {
        font-size: 3rem;
    }

    #about .container, .about-content {
        flex-direction: column;
        text-align: center;
    }

    .about-text {
        margin-bottom: 30px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-links ul, .footer-contact p, .footer-social a {
        justify-content: center;
    }

    .modal-content {
        width: 90%;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-wrap: wrap;
        justify-content: center;
    }

    nav {
        width: 100%;
        order: 3; /* Place nav below logo and actions */
        text-align: center;
        margin-top: 15px;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 10px 0;
    }

    .header-actions {
        order: 2; /* Place actions after logo */
        margin-left: auto; /* Push to the right if space allows */
    }

    .hero-content h2 {
        font-size: 2.8rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .services-grid, .plans-grid, .why-choose-grid {
        grid-template-columns: 1fr;
    }

    .section-padding {
        padding: 50px 0;
    }

    .modal-content {
        margin: 10% auto;
    }
}

@media (max-width: 480px) {
    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .btn-primary, .btn-secondary, .btn-outline {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .logo h1 {
        font-size: 1.3rem;
    }

    .hero-content h2 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .service-item, .plan-card, .why-choose-item, .contact-info, .appointment-form-container {
        padding: 20px;
    }

    .testimonial-item p {
        font-size: 1rem;
    }

    footer {
        padding: 40px 0 15px 0;
    }
}