/* --- Variables & Global Reset --- */
:root {
    --primary-color: #007bff; /* Medical Blue */
    --secondary-color: #28a745; /* Health Green */
    --accent-color: #ffc107; /* Highlight Yellow */
    --dark-color: #343a40; /* Dark Grey */
    --light-color: #f8f9fa; /* Light Grey Background */
    --white-color: #ffffff;
    --text-color: #495057; /* Standard Text */
    --heading-color: #212529; /* Heading Text */
    --border-radius: 8px;
    --transition-speed: 0.3s ease;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white-color);
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

/* Sections Padding & Backgrounds */
.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light-color);
}

.bg-primary {
    background-color: var(--primary-color);
}

.bg-dark {
    background-color: var(--dark-color);
}

.text-white {
    color: var(--white-color) !important;
}

/* Headings & Paragraphs */
h1, h2, h3 {
    color: var(--heading-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

h1 { font-size: 3.5em; }
h2 { font-size: 2.8em; }
h3 { font-size: 2.2em; }

p {
    margin-bottom: 15px;
}

.section-title {
    text-align: center;
    font-size: 3em;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
}
.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}
.text-white.section-title::after {
    background-color: var(--secondary-color);
}


.section-description {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
    font-size: 1.15em;
    color: #6c757d;
}
.text-white.section-description {
    color: #e0e0e0;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 50px; /* Pill shape */
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all var(--transition-speed);
    border: none;
    cursor: pointer;
}

.btn-hero {
    background-color: var(--secondary-color);
    color: var(--white-color);
    box-shadow: var(--box-shadow);
    margin-top: 20px;
}

.btn-hero:hover {
    background-color: #218838; /* Darker green */
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-hero i {
    margin-left: 10px;
    transition: transform var(--transition-speed);
}
.btn-hero:hover i {
    transform: translateX(5px);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
    box-shadow: var(--box-shadow);
}
.btn-primary:hover {
    background-color: #0056b3; /* Darker blue */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.btn-text-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    transition: color var(--transition-speed);
}
.btn-text-link i {
    margin-left: 5px;
    transition: transform var(--transition-speed);
}
.btn-text-link:hover {
    color: var(--secondary-color);
}
.btn-text-link:hover i {
    transform: translateX(3px);
}

/* --- Layout Grids --- */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.grid-2-col-reverse {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.grid-2-col-reverse > :first-child {
    order: 2; /* Content on right */
}
.grid-2-col-reverse > :last-child {
    order: 1; /* Image on left */
}

/* --- Header & Navigation --- */
.main-header {
    background-color: var(--white-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.logo i {
    margin-right: 10px;
    color: var(--secondary-color);
    font-size: 1.2em;
}

.main-nav .nav-menu {
    list-style: none;
    display: flex;
}

.main-nav a {
    color: var(--dark-color);
    text-decoration: none;
    padding: 10px 18px;
    display: block;
    font-weight: 600;
    transition: color var(--transition-speed), background-color var(--transition-speed);
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 3px;
    background-color: var(--primary-color);
    transition: transform var(--transition-speed);
    border-radius: 2px;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    transform: translateX(-50%) scaleX(1);
}
.main-nav a:hover, .main-nav a.active {
    color: var(--primary-color);
}

.nav-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    font-size: 1.8em;
    color: var(--dark-color);
    cursor: pointer;
    padding: 5px;
}

/* --- Hero Section (Image Slider) --- */
.hero-section {
    position: relative;
    height: 800px; /* Adjust height as needed */
    overflow: hidden;
    background-color: var(--dark-color); /* Fallback */
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slider .slide.active {
    opacity: 1;
}

.hero-slider .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.hero-content {
    position: relative;
    z-index: 10;
    color: var(--white-color);
    text-align: center;
    padding: 20px;
    max-width: 900px;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
    border-radius: var(--border-radius);
}

.hero-content h1 {
    font-size: 4.5em;
    margin-bottom: 20px;
    color: var(--white-color);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.5em;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.slider-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
    z-index: 100;
}

.slider-nav button {
    background: rgba(0, 0, 0, 0.5);
    color: var(--white-color);
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 1.5em;
    border-radius: var(--border-radius);
    transition: background-color var(--transition-speed);
}

.slider-nav button:hover {
    background-color: rgba(0, 0, 0, 0.7);
}


/* --- About Us Section --- */
.about-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.about-content h3 {
    color: var(--secondary-color);
    font-size: 1.8em;
    margin-bottom: 15px;
}


/* --- Health Insurance Plans Grid --- */
.plans-grid, .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.plan-card, .service-card {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    border-top: 5px solid var(--primary-color);
}

.plan-card:hover, .service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.plan-icon, .service-icon {
    font-size: 3.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
}
.plan-card h3, .service-card h3 {
    color: var(--heading-color);
    font-size: 1.6em;
    margin-bottom: 10px;
}
.service-card {
    border-top-color: var(--secondary-color);
}
.service-card .service-icon {
    color: var(--secondary-color);
}

/* --- Stats Section --- */
.stats-section {
    padding: 60px 0;
    text-align: center;
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.stat-item {
    padding: 20px;
    margin: 15px;
    flex: 1; /* Distribute space */
    min-width: 200px; /* Minimum width before wrapping */
}

.stat-icon {
    font-size: 3.5em;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.stat-number {
    font-size: 3.5em;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 10px;
    color: var(--white-color);
}

.stat-label {
    font-size: 1.2em;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.8);
}

/* --- Health Insurance Detail Section (text with image) --- */
.insurance-detail-section {
    padding: 80px 0;
}
.insurance-detail-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}
.insurance-detail-content h2 {
    text-align: left;
    margin-bottom: 20px;
    padding-bottom: 0;
}
.insurance-detail-content h2::after {
    display: none;
}
.insurance-detail-content p {
    margin-bottom: 15px;
}
.insurance-detail-content .btn-primary {
    display: inline-flex;
    margin: 20px 0 0 0;
    max-width: none;
}

/* --- FAQ Section (Accordion Style) --- */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid #ccc;
    margin-bottom: 10px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background-color: var(--white-color);
    color: var(--heading-color);
    padding: 18px 25px;
    text-align: left;
    font-size: 1.15em;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background-color var(--transition-speed);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 1.5em;
    transition: transform var(--transition-speed);
}

.faq-question.active {
    background-color: var(--light-color);
    color: var(--primary-color);
}

.faq-question.active::after {
    content: '-';
    transform: rotate(0deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    background-color: var(--light-color);
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}

.faq-answer.open {
    max-height: 500px; /* Large enough value to show content */
    padding: 15px 25px 25px;
}

/* --- Testimonials Section (Carousel) --- */
.testimonials-section {
    background-color: var(--light-color);
}

.testimonial-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto 30px;
    overflow: hidden;
    height: 250px; /* Fixed height for carousel */
}

.testimonial-card {
    position: absolute;
    width: 100%;
    padding: 40px;
    background: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.testimonial-card.active {
    opacity: 1;
    position: relative;
}

.quote-icon {
    font-size: 2em;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.testimonial-text {
    font-style: italic;
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 20px;
}

.testimonial-author {
    font-weight: bold;
    color: var(--primary-color);
}

.testimonial-dots {
    text-align: center;
}

.testimonial-dots span {
    display: inline-block;
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color var(--transition-speed);
}

.testimonial-dots span.active {
    background-color: var(--primary-color);
}


/* --- Call to Action (CTA) Section --- */
.cta-section {
    padding: 50px 0;
    background-color: var(--primary-color);
}

.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.cta-item h3 {
    color: var(--white-color);
    font-size: 2em;
    margin-bottom: 10px;
}

.cta-item p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

/* Newsletter Form */
.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 450px;
}

.newsletter-form input[type="email"] {
    flex-grow: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 50px;
    font-size: 1em;
}

.newsletter-form .btn-hero {
    /* Uses the hero button style */
    padding: 10px 25px;
    border-radius: 50px;
    margin-top: 0; /* Override default margin */
}

/* Book Appointment Button (RED) */
.btn-appointment {
    background-color: #dc3545; /* Prominent Red */
    color: var(--white-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.3s;
}

.btn-appointment:hover {
    background-color: #c82333;
    transform: translateY(-2px);
}

.btn-appointment i {
    margin-left: 10px;
    font-size: 1.2em;
}

.book-appointment-cta {
    text-align: right;
}

/* --- Contact/Booking Page Specific Styles (contact.html) --- */
.contact-booking-section {
    padding-top: 100px; /* Space below header */
}

.contact-grid-page {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Form is wider than details */
    gap: 50px;
    max-width: 1000px;
    margin: 40px auto;
}

.contact-details {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border-left: 5px solid var(--secondary-color);
}

.contact-details h3 {
    color: var(--secondary-color);
    margin-bottom: 25px;
}

.contact-details p i {
    color: var(--primary-color);
    margin-right: 15px;
    font-size: 1.2em;
}

.contact-details label, .contact-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--heading-color);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
}

.map-placeholder {
    margin-top: 30px;
    padding: 10px;
    background-color: #eee;
    border-radius: 4px;
    text-align: center;
}
.map-placeholder img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
}

/* --- Footer --- */
.main-footer {
    background-color: #212529;
    color: #aaa;
    text-align: center;
    padding: 25px 0;
    font-size: 0.9em;
}

/* --- Back to Top Button --- */
.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--secondary-color);
    color: var(--white-color);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5em;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-speed), visibility var(--transition-speed);
    z-index: 999;
}

.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

/* --- Media Queries (Responsiveness) --- */
@media (max-width: 992px) {
    h1 { font-size: 3em; }
    h2 { font-size: 2.2em; }
    .hero-content h1 { font-size: 3.5em; }

    .grid-2-col, .grid-2-col-reverse {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .grid-2-col-reverse > :first-child { order: 1; }
    .grid-2-col-reverse > :last-child { order: 2; }
    .insurance-detail-content h2 { text-align: center; }
    
    .contact-grid-page {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
    }
    .main-nav .nav-menu {
        display: none; /* Hide menu by default */
        flex-direction: column;
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }
    .nav-toggle {
        display: block;
    }
    .main-nav .nav-menu.active {
        display: flex;
    }
    .main-nav a {
        padding: 10px;
    }

    .plans-grid, .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .hero-section {
        height: 600px;
    }
    .hero-content h1 { font-size: 2.5em; }
    .hero-content p { font-size: 1.2em; }
    .slider-nav button { padding: 10px 15px; font-size: 1.2em; }
    
    .cta-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .newsletter-form {
        max-width: 100%;
        justify-content: center;
    }
    .book-appointment-cta {
        text-align: center;
    }
}