:root {
    --primary: #1c63ba;
    --secondary: #1dadbc;
    --accent: #b62015;
    --light-accent: #A52A2A;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --dark-gray: #333333;
}

:root {
    --navy: #1c63ba;
    --blue: #1dadbc;
    --maroon: #8C1C13;
    --light-maroon: #A52A2A;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --dark-gray: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    overflow-x: hidden;
    background-color: var(--white);
    color: var(--dark-gray);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background-color: rgba(255, 255, 255, 0.95);
    position: fixed;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--blue);
}

.logo span {
    color: var(--maroon);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 600;
    font-size: 16px;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--maroon);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--maroon);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu {
    display: none;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--dark-gray);
    margin: 5px 0;
    transition: 0.4s;
}

/* Hero Section with enhanced text visibility */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
    overflow: hidden;
}

/* Background image container */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('Medical-Clinic.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    z-index: 1;
}

/* Darkening overlay for better text visibility */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* Adjust opacity as needed (0.6 = 60% black) */
    z-index: 2;
}

/* Content positioning */
.hero .container {
    position: relative;
    z-index: 3;
    /* Ensure content appears above background and overlay */
}

.hero-content {
    max-width: 800px;
    opacity: 0;
    transform: translateY(30px);
    position: relative;
    z-index: 3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    /* Subtle text shadow for depth */
}

.hero h1 {
    font-size: 56px;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
    /* Make text bolder for better visibility */
}

.hero p {
    font-size: 24px;
    margin-bottom: 30px;
    line-height: 1.5;
}

/* Enhanced button style for better visibility */
.btn {
    display: inline-block;
    background-color: var(--maroon);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    /* Add shadow to button */
}

.btn:hover {
    background-color: var(--light-maroon);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(140, 28, 19, 0.3);
}

/* Section Styles */
section {
    padding: 80px 0;
}

section:nth-child(odd) {
    background-color: var(--light-gray);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title h2 {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background-color: var(--accent);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* About Section */
.about-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--blue);
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 16px;
}

.credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

.credential-item {
    background-color: var(--white);
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.credential-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.timeline {
    flex: 1;
    position: relative;
}

.timeline-item {
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    position: relative;
    transition: all 0.3s ease;
}

.timeline-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Expertise Section */
.expertise-cards {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-top: 50px;
}

.expertise-card {
    flex: 1;
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.expertise-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.expertise-card-img {
    height: 200px;
    background-color: var(--primary);
    position: relative;
    overflow: hidden;
}

.expertise-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.expertise-card:hover .expertise-card-img img {
    transform: scale(1.1);
}

.expertise-card-content {
    padding: 25px;
}

.expertise-card-content h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--primary);
}

.expertise-card-content p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.expertise-stat {
    display: flex;
    align-items: center;
    margin-top: 15px;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--blue);
    margin-right: 15px;
}

.stat-text {
    font-size: 14px;
    line-height: 1.4;
}

.read-more {
    display: inline-block;
    color: var(--blue);
    font-weight: 600;
    margin-top: 15px;
    text-decoration: none;
    position: relative;
}

.read-more::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -3px;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.read-more:hover::after {
    width: 100%;
}


/* Recognition Section */

#recognition {
    padding: 100px 0;
    background-color: var(--light-gray);
    position: relative;
    overflow: hidden;
}


.recognition-content {
    display: flex;
    gap: 50px;
    align-items: center;
}

.recognition-text {
    flex: 1;
    opacity: 0;
    transform: translateY(30px);
}

.recognition-text h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--navy);
}

.recognition-text p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.awards-list {
    margin-top: 30px;
}

.award-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    background-color: var(--white);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.award-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.award-icon {
    width: 50px;
    height: 50px;
    background-color: var(--blue);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    font-size: 20px;
    margin-right: 20px;
}

.award-content h4 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--navy);
}

.award-content p {
    font-size: 14px;
    color: var(--dark-gray);
}


/* Home Healthcare Services Section */
#homecare {
    background-color: #f9f9f9;
    padding: 80px 0;
}

.homecare-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.homecare-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.homecare-intro h3 {
    color: #1a5276;
    margin-bottom: 15px;
    font-size: 28px;
}

.homecare-intro p {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

.homecare-services {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.service-column {
    flex: 1;
    min-width: 280px;
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.service-column h4 {
    color: var(--blue);
    font-size: 20px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

.service-column ul {
    list-style-type: none;
    padding: 0;
}

.service-column ul li {
    padding: 8px 0;
    position: relative;
    padding-left: 25px;
    color: #444;
}

.service-column ul li:before {
    content: "✓";
    color: var(--blue);
    position: absolute;
    left: 0;
    top: 8px;
}

.homecare-process {
    margin-top: 20px;
}

.homecare-process h4 {
    text-align: center;
    color: #1a5276;
    font-size: 24px;
    margin-bottom: 25px;
}

.process-steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.process-step {
    flex: 1;
    min-width: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #3498db;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 10px;
}

.step-info {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

@media (max-width: 768px) {
    .homecare-services {
        flex-direction: column;
    }

    .process-steps {
        flex-direction: column;
        align-items: center;
    }

    .process-step {
        width: 100%;
        margin-bottom: 15px;
    }
}

/* Testimonials */
.testimonials-slider {
    margin-top: 50px;
    position: relative;
    overflow: hidden;
}

.testimonial-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin: 10px;
}

.testimonial-content {
    position: relative;
    padding-left: 30px;
    margin-bottom: 20px;
}

.testimonial-content::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -20px;
    font-size: 60px;
    color: var(--accent);
    opacity: 0.5;
}

.testimonial-content p {
    font-style: italic;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.author-info h4 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--primary);
}

.author-info p {
    font-size: 14px;
    color: var(--dark-gray);
}

/* Appointment Section */
#appointment {
    padding: 100px 0;
    background: linear-gradient(rgba(10, 35, 66, 0.9), rgba(10, 35, 66, 0.9)), url('/api/placeholder/1920/1080') no-repeat center center/cover;
    color: var(--white);
}

.appointment-content {
    display: flex;
    justify-content: space-between;
    gap: 50px;
}

.appointment-text {
    flex: 1;
    opacity: 0;
    transform: translateY(30px);
}

.appointment-text h3 {
    font-size: 28px;
    margin-bottom: 20px;
}

.appointment-text p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.contact-info {
    margin-top: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background-color: var(--maroon);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
}

.appointment-form {
    flex: 1;
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    color: var(--dark-gray);
    opacity: 0;
    transform: translateY(30px);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(18, 104, 114, 0.2);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
footer {
    background-color: var(--navy);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-column {
    flex: 1;
    padding: 0 20px;
}

.footer-column h3 {
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 2px;
    background-color: var(--maroon);
    bottom: 0;
    left: 0;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    margin-top: 20px;
}

.social-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--maroon);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
}

/* AI Chatbot Styles */
.ai-chatbot {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: 'Montserrat', sans-serif;
}



.chat-icon {
    width: 60px;
    height: 60px;
    background-color: var(--accent);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
    box-shadow: 0 4px 10px rgba(140, 28, 19, 0.3);
    transition: all 0.3s ease;
    overflow: hidden;
}


/* Typing indicator styles */
.typing-indicator .message-content {
    display: flex;
    align-items: center;
    height: 30px;
}

.typing-indicator .dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 4px;
    background-color: #888;
    border-radius: 50%;
    animation: typing-animation 1.4s infinite ease-in-out both;
}

.typing-indicator .dot:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-indicator .dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing-animation {

    0%,
    80%,
    100% {
        transform: scale(0.6);
        opacity: 0.6;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}



.chat-icon {
    position: relative;
}


.chat-icon:hover {
    transform: scale(1.05);
}

.doctor-icon {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.doctor-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid var(--accent);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.chat-container {
    position: fixed;
    /* Changed from absolute to fixed for better positioning */
    bottom: 75px;
    right: 20px;
    width: 380px;
    max-width: 95vw;
    height: 550px;
    max-height: 80vh;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
    transform: scale(0);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    /* Added z-index to ensure it appears above other elements */
}

.chat-container.active {
    transform: scale(1);
    opacity: 1;
}

.chat-header {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 10px 10px 0 0;
}

.chat-title {
    font-weight: 600;
    font-size: 16px;
}

.close-chat {
    font-size: 24px;
    cursor: pointer;
    line-height: 20px;
    transition: all 0.2s ease;
}

.close-chat:hover {
    transform: scale(1.2);
}

.chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: #f9fafb;
    /* Added subtle background for better readability */
}

.chat-message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 15px;
    margin-bottom: 5px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    /* Added subtle shadow */
}

.chat-message.user {
    background-color: #e6f7ff;
    align-self: flex-end;
    border-bottom-right-radius: 3px;
}

.chat-message.bot {
    background-color: #f0f2f5;
    align-self: flex-start;
    border-bottom-left-radius: 3px;
}

.message-content {
    font-size: 14px;
    line-height: 1.4;
    word-break: break-word;
    /* Prevents text overflow */
}

.suggestion-drawer {
    display: none;
    position: absolute;
    bottom: 70px;
    left: 15px;
    right: 15px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.suggestion-drawer.active {
    display: block;
}

.suggestion-item {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    font-size: 13px;
    transition: background-color 0.2s;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background-color: #f5f5f5;
}

.suggestion-item.no-match {
    color: #888;
    font-style: italic;
}

.chat-input {
    display: flex;
    padding: 10px 15px;
    border-top: 1px solid #eee;
    background-color: white;
    /* Added explicit background */
}

.chat-input input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 14px;
    outline: none;
}

.chat-input input:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 2px rgba(var(--secondary-rgb), 0.1);
    /* Added focus ring */
}

.chat-input button {
    width: 40px;
    height: 40px;
    margin-left: 10px;
    background-color: var(--accent);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
}

.chat-input button:hover {
    background-color: var(--light-accent);
    transform: scale(1.05);
}

/* Updated FAQ Section Styles */
.chat-suggestions {
    padding: 10px;
    border-top: 1px solid #eee;
    background-color: #f9f9f9;
}

.suggestion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.suggestion-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark-gray);
}

.minimize-faqs {
    background: none;
    border: none;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    color: var(--dark-gray);
    padding: 0 5px;
}

.faq-content {
    max-height: 90px;
    overflow-y: auto;
    /* Changed from hidden to auto to allow scrolling */
    transition: max-height 0.3s ease;
}

.faq-content.hidden {
    max-height: 0;
}

.faq-accordion {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    /* Increased gap for better spacing */
}

/* Make FAQ items into pills */
.faq-item {
    margin-bottom: 0;
}

.faq-question {
    background-color: #e6f7ff;
    border-radius: 30px;
    padding: 5px 12px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: inline-block;
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Added subtle border */
}

.faq-question:hover {
    background-color: #d0e8ff;
}

.faq-question span {
    font-weight: 500;
}

/* View all FAQs link */
.view-all-faqs {
    cursor: pointer;
    font-size: 12px;
    color: var(--secondary);
    padding: 5px 12px;
    transition: all 0.2s ease;
    text-decoration: underline;
}

.view-all-faqs:hover {
    color: var(--primary);
}

.faq-expanded-panel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: white;
    z-index: 100;
    /* Ensure it's above other elements in the chat */
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: fadeIn 0.3s ease;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
    /* Match parent container's radius */
}

.faq-expanded-panel.active {
    display: flex;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 10px 10px 0 0;
    /* Rounded top corners */
}

.panel-title {
    font-weight: 600;
    font-size: 16px;
}

.close-panel {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.2s ease;
    /* Added transition */
}

.close-panel:hover {
    transform: scale(1.1);
    /* Added hover effect */
}

.panel-content {
    padding: 15px;
    overflow-y: auto;
    flex: 1;
    word-wrap: break-word;
}

.panel-content .faq-item {
    margin-bottom: 12px;
    /* Increased spacing */
}

.panel-content .faq-question {
    display: block;
    width: 100%;
    background-color: #f0f2f5;
    border-radius: 8px;
    padding: 12px 15px;
    text-align: left;
    font-size: 14px;
    margin-bottom: 10px;
    word-break: normal;
    overflow-wrap: break-word;
    white-space: normal;
    /* Allow text wrapping */
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Added subtle border */
}

.panel-content .faq-question:hover {
    background-color: #e6f7ff;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Responsive Styles - Clean up and improve */
@media screen and (max-width: 992px) {

    .expertise-cards,
    .blog-cards,
    .services-grid {
        flex-direction: column;
    }

    .about-content,
    .recognition-content,
    .appointment-content {
        flex-direction: column;
    }

    .process-step {
        flex: 0 0 calc(50% - 20px);
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero-img {
        display: none;
    }

    .chat-container {
        right: 15px;
        bottom: 75px;
        max-height: calc(100vh - 100px);
        width: 350px;
        /* Slightly reduced width */
    }
}

@media screen and (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        flex-direction: column;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        transition: all 0.3s ease;
        z-index: 1001;
        /* Ensure above chat container */
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 15px 0;
        width: 100%;
        text-align: center;
    }

    .mobile-menu {
        display: block;
    }

    .mobile-menu.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu.active .bar:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-column {
        margin-bottom: 30px;
    }

    .process-step {
        flex: 0 0 100%;
    }

    .chat-container {
        width: 90%;
        max-width: 350px;
        right: 5%;
        left: auto;
        /* Ensure it aligns right */
    }
}

/* Updated mobile responsive styling */
@media screen and (max-width: 480px) {
    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 18px;
    }

    .section-title h2 {
        font-size: 28px;
    }

    .about-text h3,
    .appointment-text h3 {
        font-size: 24px;
    }

    .expertise-card,
    .blog-card,
    .service-card {
        margin-bottom: 20px;
    }

    .appointment-form {
        padding: 25px;
    }

    /* Improved chat container for mobile */
    .chat-container {
        width: 100%;
        max-width: 100%;
        height: 85vh;
        bottom: 0;
        right: 0;
        border-radius: 10px 10px 0 0;
        max-height: 85vh;
    }


    .chat-body {
        padding: 12px;
    }

    /* Optimize input area */
    .chat-input {
        padding: 10px;
    }

    .chat-input input {
        padding: 8px 12px;
        font-size: 14px;
        /* Ensure readable text size */
    }

    .chat-input button {
        width: 36px;
        height: 36px;
    }

    /* Optimize FAQ section for mobile */
    .chat-suggestions {
        padding: 8px;
    }

    .suggestion-title {
        font-size: 12px;
    }

    .faq-question {
        padding: 4px 10px;
        font-size: 11px;
    }

    .panel-content .faq-question {
        padding: 10px 12px;
        font-size: 13px;
    }

    .panel-header {
        padding: 12px;
    }

    .panel-title {
        font-size: 15px;
    }

    /* Give more space to the chat body on mobile */
    .chat-body {
        flex: 1.2;
    }

    /* Make FAQ section more compact but still usable */
    .faq-content {
        max-height: 80px;
    }
}

/* Chat toggle button (missing in original) */
.chat-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: all 0.3s ease;
}

.chat-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.chat-toggle i {
    font-size: 24px;
}


/* Animation Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    animation: fadeIn 0.8s ease forwards;
}

/* Scroll Reveal Styles */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}



/* Accessibility Styles */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background-color: var(--primary);
    color: var(--white);
    padding: 8px 15px;
    z-index: 1001;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

input:focus,
button:focus,
a:focus {
    outline: 3px solid var(--secondary);
    outline-offset: 2px;
}

/* Print Styles */
@media print {

    header,
    footer,
    .ai-chatbot,
    #appointment {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background-color: #fff;
    }

    .container {
        width: 100%;
        max-width: none;
        padding: 0;
        margin: 0;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    .section-title::after {
        display: none;
    }
}