/* Universal Styles */
:root {
    --primary-color: #007bff; /* Raybeam-like blue */
    --secondary-color: #6c757d; /* Grey */
    --accent-color: #28a745; /* Green for highlights if needed */
    --dark-bg: #212529; /* Dark background for header/footer */
    --light-bg: #f8f9fa; /* Light background for sections */
    --text-dark: #343a40;
    --text-light: #f8f9fa;
    --border-color: #dee2e6;
    --font-montserrat: 'Montserrat', sans-serif;
    --font-open-sans: 'Open Sans', sans-serif;
    --card-bg: #ffffff;

    /* Gradient colors for How It Works section */
    --work-item-color-1: #e0f7fa; /* Light Cyan */
    --work-item-color-2: #e8f5e9; /* Light Green */
    --work-item-color-3: #fff3e0; /* Light Orange */
    --work-item-color-4: #fbe9e7; /* Light Red */
}

body {
    font-family: var(--font-open-sans);
    margin: 0;
    padding: 0;
    background-color: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-montserrat);
    color: var(--text-dark);
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--dark-bg);
}

.section-title {
    font-size: 3em;
    margin-bottom: 20px;
    text-align: center;
    color: var(--dark-bg);
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.1em;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 50px;
}

/* Header Styles */
.header {
    background-color: var(--dark-bg);
    padding: 15px 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;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px; /* Logo height increased from 40px to 50px */
    width: auto; /* Maintain aspect ratio */
    filter: brightness(0) invert(1); /* Makes a dark logo white on dark background */
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-item {
    margin-left: 30px;
}

.nav-link {
    color: var(--text-light);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    left: 0;
    bottom: -5px;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 28px;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    background-size: cover;
    background-position: center;
    color: var(--text-light);
    text-align: center;
    padding: 120px 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(142, 68, 173, 0.7), rgba(192, 57, 43, 0.7)); /* Raybeam-like gradient */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero-title {
    font-size: 4.5em;
    margin-bottom: 20px;
    color: #fff;
    font-weight: 700;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.5em;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 30px; /* Pill shape like Raybeam */
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
}

.btn-primary {
    background-color: #fff;
    color: var(--primary-color);
    border: 2px solid #fff;
}

.btn-primary:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-secondary { /* Not used in this version but kept for future */
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background-color: #fff;
    color: var(--primary-color);
    border-color: #fff;
}

.btn-dark {
    background-color: var(--dark-bg);
    color: #fff;
    border: 2px solid var(--dark-bg);
}

.btn-dark:hover {
    background-color: transparent;
    color: var(--dark-bg);
}

.btn-dark-outline {
    background-color: transparent;
    color: var(--dark-bg);
    border: 2px solid var(--dark-bg);
    border-radius: 30px; /* Added for consistency with other buttons */
}
.btn-dark-outline:hover {
    background-color: var(--dark-bg);
    color: #fff;
}


/* Stats Section */
.stats-section {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding: 30px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    margin: 15px 20px;
}

.stat-item h3 {
    font-size: 2.8em;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* About Us Section */
.about-section {
    padding: 80px 0;
    background-color: #fff;
}

.about-content {
    max-width: 900px;
    margin: 0 auto 50px auto;
    text-align: center;
}

.meta-badge {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.meta-badge img {
    height: 70px;
    margin-bottom: 10px;
}

.meta-badge span {
    font-size: 0.9em;
    color: var(--secondary-color);
}

.about-content p {
    font-size: 1.1em;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.client-trust-title {
    font-size: 2em;
    text-align: center;
    margin-top: 50px;
    margin-bottom: 10px;
    color: var(--dark-bg);
}

.client-trust-subtitle {
    font-size: 1em;
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 40px;
}

.client-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.client-logos img {
    max-height: 60px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.client-logos img:hover {
    opacity: 1;
}

/* How We Work Section */
.how-it-works-section {
    padding: 40px 0; /* Updated padding */
    background-color: var(--light-bg);
    text-align: center;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px; /* Updated gap */
    margin-top: 30px; /* Updated margin */
    margin-bottom: 30px; /* Updated margin */
}

/* How We Work Section */
.work-item {
    background-color: #ffffff; /* සුදු පැහැය */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08); /* කලින් තිබූ shadow එක */
    border: 1px solid rgba(0, 0, 0, 0.3); /* ලා කළු පැහැති outline එක */
    text-align: center;
    position: relative;
    overflow: hidden;

    /* Animation properties - මේවා එලෙසම තබා ගන්න */
    opacity: 0;
    transform: translateY(30px);
    animation: slideAndHold 5s ease-in-out infinite;
}

/* Gradient background for work-items (Background color overrides previous gradients) */
/* දැන් මේවා අවශ්‍ය නැහැ, `.work-item` එකේ `background-color: #ffffff;` මගින් override වේ */
.work-item:nth-child(1) {
    /* background-color: var(--work-item-color-1); - මේවා ඉවත් කරන්න */
    animation-delay: 0.1s;
}
.work-item:nth-child(2) {
    /* background-color: var(--work-item-color-2); - මේවා ඉවත් කරන්න */
    animation-delay: 0.3s;
}
.work-item:nth-child(3) {
    /* background-color: var(--work-item-color-3); - මේවා ඉවත් කරන්න */
    animation-delay: 0.5s;
}
.work-item:nth-child(4) {
    /* background-color: var(--work-item-color-4); - මේවා ඉවත් කරන්න */
    animation-delay: 0.7s;
}

.work-icon {
    font-size: 2em; /* Updated font size */
    color: var(--primary-color);
    margin-bottom: 7px; /* Updated margin */
}

.work-item h3 {
    font-size: 1.2em; /* Updated font size */
    margin-bottom: 5px;
    color: var(--dark-bg);
}

.work-item p {
    color: var(--secondary-color);
    font-size: 0.7em; /* Updated font size */
}

/* Tailored Solutions Section (Service Cards) */
.tailored-solutions-section {
    padding: 80px 0;
    background-color: #fff;
}

.tailored-solutions-section .section-title {
    margin-bottom: 20px;
}

.tailored-solutions-section .section-subtitle {
    margin-bottom: 50px;
}

.tailored-solutions-section .service-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card.large-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* New: Border for the service cards */
    border: 1px solid rgba(0, 0, 0, 0.3);
}


.service-card.large-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.service-card .card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card .card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card h3 {
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--dark-bg);
}

.service-card p {
    font-size: 1em;
    color: var(--secondary-color);
    margin-bottom: 20px;
    flex-grow: 1; /* Allows text to take available space */
}

.service-card .price {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: block; /* Ensures it's on its own line */
}
.service-card .price span {
    font-size: 0.6em; /* 'up' text smaller */
    font-weight: 400;
    color: var(--text-dark);
    vertical-align: super;
}

.btn-card-action {
    background-color: var(--primary-color);
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1em;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    align-self: flex-start; /* Align button to start of flex item */
}

.btn-card-action:hover {
    background-color: var(--dark-bg);
}

/* Testimonials Section */
.testimonials-section {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.testimonials-section .section-title {
    margin-bottom: 20px;
}

.testimonials-section .section-subtitle {
    margin-bottom: 30px;
}

.testimonials-controls {
    text-align: center;
    margin-bottom: 40px;
}

.testimonials-controls .btn-secondary {
    background-color: #fff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 25px;
    border-radius: 30px;
}

.testimonials-controls .btn-secondary:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.testimonials-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    /* Temporarily hide scrollbar if more than 3 cards, actual carousel needs JS */
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}
.testimonial-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    scroll-snap-align: start; /* For smooth scrolling behavior */
}

.client-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.client-name {
    font-weight: 600;
    font-size: 1.1em;
    color: var(--dark-bg);
    margin-bottom: 5px;
}

.review-date {
    font-size: 0.9em;
    color: var(--secondary-color);
    margin-bottom: 10px;
    display: block;
}

.stars {
    color: #ffc107; /* Gold color for stars */
    margin-bottom: 15px;
}

.stars .fas {
    margin-right: 2px;
}

.review-text {
    font-size: 0.95em;
    color: var(--text-dark);
}
.review-text a {
    font-weight: 600;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

.carousel-btn {
    background-color: #fff;
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.carousel-btn:hover {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* Final Call to Action Section */
.final-cta-section {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding: 80px 0;
    text-align: center;
}

.final-cta-section h2 {
    font-size: 3em;
    color: #fff;
    margin-bottom: 20px;
}

.final-cta-section p {
    font-size: 1.2em;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.btn-cta {
    display: flex;
    align-items: center;
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1.1em;
    color: #fff;
    transition: background-color 0.3s ease;
}

.btn-cta .fas, .btn-cta .fab {
    margin-right: 10px;
    font-size: 1.2em;
}

.book-btn {
    background-color: #fff;
    color: var(--dark-bg);
}
.book-btn:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.whatsapp-btn {
    background-color: #28a745; /* Green */
    color: #fff;
}
.whatsapp-btn:hover {
    background-color: #218838;
}

.email-btn {
    background-color: #dc3545; /* Red */
    color: #fff;
}
.email-btn:hover {
    background-color: #c82333;
}

.call-btn {
    background-color: var(--primary-color);
    color: #fff;
}
.call-btn:hover {
    background-color: #0056b3;
}

/* Footer Styles (as previously provided, with minor adjustments) */
.footer {
    background-color: var(--dark-bg);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--primary-color);
    font-size: 1.4em;
    margin-bottom: 25px;
    font-weight: 600;
    font-family: var(--font-montserrat);
}

.footer-col p {
    font-size: 0.95em;
    line-height: 1.8;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95em;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
}

.footer-col .logo {
    margin-bottom: 20px;
    /* justify-content: start; /* Align logo to the start for larger screens */
}

.footer-col .logo-img {
    height: 50px; /* Make logo larger in footer too */
    width: auto;
    filter: brightness(0) invert(1);
}

.social-links {
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    margin-right: 10px;
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
}

.footer-col p .fas {
    margin-right: 10px;
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 40px;
    text-align: center;
    font-size: 0.9em;
}

/* Modal Styles */
.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.6); /* Black w/ opacity */
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    width: 90%; /* Adjust width */
    max-width: 600px;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-button {
    color: var(--secondary-color);
    font-size: 30px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: var(--dark-bg);
    text-decoration: none;
    cursor: pointer;
}

.modal-body .form-header {
    text-align: center;
    margin-bottom: 25px;
}

.modal-body .service-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 2px solid var(--primary-color);
}

.modal-body h2 {
    font-size: 2em;
    margin-bottom: 8px;
    color: var(--dark-bg);
}

.modal-body p {
    font-size: 0.95em;
    color: var(--secondary-color);
    margin: 0;
}

/* Form Styles for Modal (reusing consultation-form styles) */
.consultation-form .form-group {
    margin-bottom: 18px;
}

.consultation-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.95em;
}

.consultation-form input[type="tel"],
.consultation-form input[type="email"],
.consultation-form textarea,
.consultation-form select {
    width: calc(100% - 20px);
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1em;
    color: var(--text-dark);
    background-color: var(--light-bg);
}

.consultation-form input:focus,
.consultation-form textarea:focus,
.consultation-form select:focus {
    border-color: var(--primary-color);
    outline: none;
}

.consultation-form textarea {
    resize: vertical;
}

.consultation-form .submit-button {
    background-color: var(--primary-color);
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    font-weight: 600;
}

.consultation-form .submit-button:hover {
    background-color: var(--dark-bg);
}

.form-message {
    text-align: center;
    margin-top: 15px;
    font-weight: 500;
    font-size: 0.95em;
    color: #e74c3c; /* Error color */
}

/* Keyframes for the slide-in-up animation with hold and reverse */
@keyframes slideAndHold {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    10% { /* First 10% of animation duration for slide-in */
        opacity: 1;
        transform: translateY(0);
    }
    90% { /* Hold for a significant portion of the animation (e.g., from 10% to 90%) */
        opacity: 1;
        transform: translateY(0);
    }
    100% { /* Reverse effect: fade out and slide down slightly */
        opacity: 0;
        transform: translateY(30px);
    }
}


/* Responsive Styles */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3.5em;
    }
    .hero-subtitle {
        font-size: 1.3em;
    }
    .stats-grid {
        justify-content: center;
    }
    .stat-item {
        flex-basis: 30%; /* Adjust for 3 columns on medium screens */
    }
    .service-card.large-card {
        flex-direction: row; /* For medium screens, stack image and content horizontally */
        text-align: left;
    }
    
    .service-card .card-image {
        width: 40%;
        height: auto;
    }
    .service-card .card-content {
        width: 60%;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-wrap: wrap;
        justify-content: center;
    }
    .logo {
        margin-bottom: 15px;
    }
    .logo-img { /* Adjust for mobile if needed */
        height: 45px;
    }
    .nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        background-color: var(--dark-bg);
        position: absolute; /* Allow overlay */
        top: 70px; /* Below header */
        left: 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    }
    .nav-list.active {
        display: flex;
    }
    .nav-item {
        margin: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    .nav-link {
        display: block;
        padding: 15px 0;
    }
    .nav-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 20px;
    }
    .hero-section {
        padding: 80px 0;
        min-height: 450px;
    }
    .hero-title {
        font-size: 2.8em;
    }
    .hero-subtitle {
        font-size: 1.1em;
    }
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .btn {
        width: 70%;
        margin: 0 auto;
    }
    .section-title {
        font-size: 2.5em;
    }
    .stat-item {
        flex-basis: 45%; /* Adjust for 2 columns on small screens */
    }
    .client-logos img {
        max-height: 50px;
    }
    .works-grid {
        grid-template-columns: 1fr;
    }
    .tailored-solutions-section .service-card.large-card {
        flex-direction: column; /* Stack vertically again on smaller screens */
        text-align: center; /* Card එකේ text center කරන්න */
    }
    .service-card.large-card {
        flex-direction: column;   /* vertical stack */
        text-align: center;       /* text center */
        align-items: center;      /* flex items center */
    }

    .service-card .card-image {
        width: 100%;
        height: 200px;
        display: block;
        margin: 0 auto;
        object-fit: cover;
    }

    .service-card .card-content {
        width: 100%;
        text-align: center;       /* text center */
        display: flex;
        flex-direction: column;
        align-items: center;      /* text + buttons center */
    }

    .btn-card-action {
        align-self: center;       /* button center */
    }
    .cta-buttons {
        flex-direction: column;
    }
    .btn-cta {
        width: 80%;
        margin: 0 auto;
    }
    .modal-content {
        width: 95%;
    }
}

@media (max-width: 480px) {
    .logo a {
        font-size: 24px;
    }
    .logo-img {
        height: 35px;
    }
    .hero-title {
        font-size: 2.2em;
    }
    .hero-subtitle {
        font-size: 1em;
    }
    .btn {
        width: 80%;
    }
    .stat-item {
        flex-basis: 100%; /* Single column on very small screens */
    }
    .section-title {
        font-size: 2em;
    }
    .client-logos img {
        max-height: 40px;
    }
    .btn-cta {
        width: 90%;
    }

    /* Chatbot Responsive Adjustments */
    .chatbot-container {
        width: 100%;
        max-width: unset; /* Remove max-width restriction */
        height: 100%;
        bottom: 0;
        right: 0;
        border-radius: 0;
    }
    .chatbot-header {
        border-radius: 0;
    }
    .chatbot-toggle-btn {
        bottom: 10px;
        right: 10px;
    }
}

/* Chatbot Base Styles */
.chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    height: 450px;
    background-color: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1002; /* Above modal */
    transform: scale(0); /* Initially hidden */
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.chatbot-container.active {
    transform: scale(1); /* Show when active */
}

.chatbot-header {
    background-color: #fefefe; /* White background as in image */
    color: var(--text-dark);
    padding: 15px 20px;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-montserrat);
    font-weight: 600;
    font-size: 1.1em;
    border-bottom: 1px solid var(--border-color); /* Separator from messages */
}

.chatbot-profile-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chatbot-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.online-status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #28a745; /* Green for online */
    border-radius: 50%;
    margin-right: 5px;
    vertical-align: middle;
}

.chatbot-header .close-btn {
    background: none;
    border: none;
    color: var(--secondary-color); /* Grey 'x' as in image */
    font-size: 1.5em;
    cursor: pointer;
    line-height: 1; /* Align 'x' properly */
    transition: color 0.2s ease;
}

.chatbot-header .close-btn:hover {
    color: var(--dark-bg);
}

.chatbot-messages {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    background-color: var(--light-bg);
    display: flex;
    flex-direction: column;
    /* No border-bottom here, as chatbot-input has its own section */
}

.message-timestamp {
    text-align: center;
    font-size: 0.8em;
    color: var(--secondary-color);
    margin: 5px 0 15px;
}

.chatbot-message {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start; /* Align avatar to top of message */
    max-width: 85%; /* Adjust as per image */
}

.chatbot-message.bot {
    justify-content: flex-start;
}

.chatbot-message.user {
    justify-content: flex-end;
    margin-left: auto; /* Push user message to the right */
}

.chatbot-small-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
    flex-shrink: 0; /* Prevent avatar from shrinking */
}

.chatbot-message-bubble {
    padding: 10px 15px;
    border-radius: 18px;
    font-size: 0.95em;
    line-height: 1.4;
    position: relative;
    max-width: 100%;
    word-wrap: break-word; /* Ensure long words break */
    box-shadow: 0 1px 2px rgba(0,0,0,0.1); /* Subtle shadow for bubbles */
}

.chatbot-message.bot .chatbot-message-bubble {
    background-color: #fefefe; /* White background for bot bubble */
    color: var(--text-dark);
    border-bottom-left-radius: 5px; /* Corner for bot */
}
.chatbot-message.user .chatbot-message-bubble {
    background-color: var(--primary-color);
    color: var(--text-light);
    border-bottom-right-radius: 5px; /* Corner for user */
}

/* Typing indicator for bot */
.chatbot-typing-indicator {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: 10px;
    margin-bottom: 10px; /* Space before input */
    opacity: 0;
    transition: opacity 0.3s ease;
    padding-left: 40px; /* Align with bot message bubble */
}

.chatbot-typing-indicator.active {
    opacity: 1;
}

.chatbot-typing-indicator span {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    margin: 0 3px;
    animation: bounce 1.4s infinite ease-in-out both;
}

.chatbot-typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.chatbot-typing-indicator span:nth-child(2) { animation-delay: -0.16s; }
.chatbot-typing-indicator span:nth-child(3) { animation-delay: 0s; }

@keyframes bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1.0); }
}

.chatbot-input {
    padding: 15px;
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column; /* Buttons stack vertically */
    gap: 10px; /* Space between buttons */
}

.chatbot-input .user-question-btn {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9em;
    text-align: left; /* Align text to left */
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15); /* Subtle shadow */
}

.chatbot-input .user-question-btn:hover {
    background-color: var(--dark-bg);
}

.chatbot-toggle-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.8em;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1003; /* Above chatbot container */
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.chatbot-toggle-btn:hover {
    background-color: var(--dark-bg);
    transform: translateY(-3px);
}