/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.8;
    color: #333;
    background-color: #f8faf9;
    min-height: 100%;
    padding-top: 120px;
}

/* Colors and Variables */
:root {
    --primary-color: #2E7D32;
    --primary-light: #4CAF50;
    --secondary-color: #FF9800;
    --text-dark: #2c3e50;
    --text-light: #666;
    --bg-light: #f4f7f6;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
}

h1, h2, h3 {
    margin-bottom: 20px;
    color: var(--text-dark);
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 15px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

p {
    margin-bottom: 15px;
    color: var(--text-light);
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
    margin-right: 10px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.2);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(46, 125, 50, 0.3);
    color: white;
}

.btn-secondary {
    background: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.2);
}

.btn-secondary:hover {
    background: #e68a00;
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.3);
}

header {
    z-index: 1001;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Header */
.top-header {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 0;
    font-size: 0.85rem;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1002;
    height: 40px;
}

.top-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.top-header .contact-info span {
    margin-right: 20px;
}

.top-header .contact-info a {
    color: white;
    transition: var(--transition);
}

.top-header .contact-info a:hover {
    color: var(--secondary-color);
}

.top-header .social-links a {
    color: white;
    margin-left: 15px;
    transition: var(--transition);
}

.top-header .social-links a:hover {
    color: var(--secondary-color);
    transform: translateY(-2px);
    display: inline-block;
}

/* Header and Navigation */
header {
    position: fixed;
    top: 40px;
    width: 100%;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1001;
    transition: var(--transition);
    height: 80px;
}

header.scrolled {
    top: 0;
    background-color: rgba(255,255,255,0.98);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

nav #navbar {
    height: 100%;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 100%;
}

/* 1. Ensure the logo container is a flexbox to align image and text */
.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
    display: flex;         /* Added */
    align-items: center;    /* Added: Centers text vertically with image */
    gap: 10px;             /* Added: Space between image and text */
}

/* 2. Constrain the image size */
.logo img {
    height: 90px;          /* Adjust this value based on your navbar height */
    width: auto;           /* Maintains aspect ratio */
    display: block;
    object-fit: contain;   /* Ensures image isn't distorted */
}

/* 3. Optional: Ensure the nav container doesn't grow past a specific height */
nav {
    height: 100px;          /* Define a set height for your navbar if not already set */
    line-height: 100px; 
    background-color: #fff;  /* Ensure background is solid to hide hero behind it */
    position: fixed;         /* Assuming your nav is fixed */
    width: 100%;
    top: 40px;
    z-index: 1000;
}

@media (max-width: 768px) {
    .logo img {
        height: 60px; /* Smaller logo for mobile screens */
    }
    .logo {
        font-size: 1.0rem;
    }
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    font-weight: 600;
    color: var(--text-dark);
    transition: var(--transition);
    position: relative;
    font-size: 0.95rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
    border-radius: 2px;
}

/* Page Hero */
.page-hero {
    /* background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1551190822-a9333d879b1f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80');
     */
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/gurumauli_page_hero_3.png ');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    color: white;
    text-align: center;
    margin-top: 0;
}

.page-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.page-hero p {
    font-size: 1.3rem;
    opacity: 0.95;
    color: #fff;
    max-width: 800px;
    margin: 0 auto;
}

/* Sections */
section {
    padding: 100px 0;
}

.hero {
    position: relative;
    height: calc(100vh - 120px);
    width: 100%;
    overflow: hidden;
    padding: 0;
    margin: 0;
    background-color: #000;
}

.slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #222;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    padding: 0 20px;
    max-width: 900px;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 20px;
    text-shadow: 0 2px 15px rgba(0,0,0,0.5);
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 35px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 20;
    pointer-events: none;
}

.slider-controls button {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.slider-controls button:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

/* About Section */
.about {
    background-color: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 60px;
    align-items: center;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow);
    display: block;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.trust-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.badge {
    display: flex;
    align-items: center;
    background-color: var(--white);
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 15px 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.badge:hover {
    border-color: var(--primary-light);
    transform: translateY(-3px);
}

.badge i {
    color: var(--primary-light);
    margin-right: 15px;
    font-size: 1.4rem;
}

.badge span {
    font-weight: 600;
    color: var(--text-dark);
}

/* Services */
.services {
    background-color: var(--bg-light);
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.card {
    background-color: var(--white);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.card-icon {
    font-size: 3.5rem;
    color: var(--primary-light);
    margin-bottom: 25px;
}

.enquire-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--primary-light);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.enquire-link:hover {
    color: var(--primary-color);
}

.enquire-link i {
    margin-left: 8px;
    transition: transform 0.3s;
}

.enquire-link:hover i {
    transform: translateX(5px);
}

/* Why Choose Us & Testimonials */
.why-choose {
    background-color: var(--white);
}

.feature-grid,
.testimonial-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-item,
.testimonial {
    text-align: center;
    padding: 40px 30px;
    background-color: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #f0f0f0;
}

.feature-item:hover,
.testimonial:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.feature-item i {
    font-size: 3rem;
    color: var(--primary-light);
    margin-bottom: 20px;
}

.testimonial {
    text-align: left;
    background-color: #fff;
}

.testimonial p:first-child {
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.testimonial p:last-child {
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 15px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gallery */
.gallery {
    background-color: var(--bg-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.story-card {
    display: flex;
    flex-direction: column;
    background-color: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    border: none;
}

.story-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-hover);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 25px;
    text-align: center;
}

.card-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.images {
    display: flex;
    border-bottom: 1px solid #f0f0f0;
}

.image-container {
    position: relative;
    flex: 1;
    overflow: hidden;
}

.image-container img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: var(--transition);
}

.story-card:hover .image-container img {
    transform: scale(1.08);
}

.overlay-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.overlay-badge.before {
    background-color: #ef5350;
}

.overlay-badge.after {
    background-color: var(--primary-light);
}

.results {
    padding: 25px;
    text-align: center;
    background-color: #fff;
}

.results p {
    margin: 0;
    font-size: 1.15rem;
    color: var(--text-dark);
    font-weight: 500;
}

.results strong {
    color: var(--primary-color);
    font-weight: 700;
}

.footer-note {
    margin-top: auto;
    padding: 18px;
    background-color: #f1f8e9;
    text-align: center;
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 700;
    border-top: 1px solid #dcedc8;
}

/* Contact */
.contact {
    background-color: var(--bg-light);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: stretch;
}

.info-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.info-card {
    background-color: var(--white);
    border-radius: 15px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: default;
}

.info-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-hover);
}

.icon-circle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(46, 125, 50, 0.2);
}

.info-card-text h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.info-card-text p {
    margin-bottom: 0;
    font-size: 1rem;
    color: var(--text-light);
}

#contact-form {
    background-color: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow);
}

.form-header {
    margin-bottom: 30px;
    text-align: center;
}

.form-header h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #eee;
    border-radius: 10px;
    background-color: #fafafa;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.1);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

#contact-form .btn {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: transform 0.3s;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

.whatsapp-btn img {
    width: 35px;
    height: 35px;
}

.pulse {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    box-sizing: border-box;
    border: 2px solid #25D366;
    border-radius: 50%;
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* Footer */
.site-footer {
    background: linear-gradient(135deg, #1b3a19, #0f2412);
    color: #e0e0e0;
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-brand .footer-logo {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 20px;
}

.footer-brand p {
    color: #bbb;
    font-size: 1rem;
    margin-bottom: 25px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-light);
    transform: translateY(-5px);
}

.footer-links h4,
.footer-contact h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-light);
}

.footer-links a {
    display: block;
    color: #bbb;
    margin-bottom: 12px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-contact p {
    color: #bbb;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 0.9rem;
    color: #888;
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal.fade-up { transform: translateY(30px); }
.reveal.fade-left { transform: translateX(-30px); }
.reveal.fade-right { transform: translateX(30px); }
.reveal.zoom-in { transform: scale(0.9); }

/* Responsive Design */
@media (max-width: 1200px) {
    .top-header {
        display: none;
    }

    header {
        top: 0;
    }

    body {
        padding-top: 80px;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 20px;
        transition: left 0.3s ease;
        z-index: 1001;
        overflow-y: auto;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 0;                  /* Reset all margins */
        padding: 10px 0;            /* Use padding for spacing instead */
        width: 100%;                /* Full width for easier clicking */
        text-align: center;
    }
    
    .nav-links a {
        font-size: 1.1rem;          /* Slightly larger for mobile tap targets */
        line-height: 1.5;           /* Ensures consistent spacing */
        display: block;             /* Makes the whole area clickable */
    }

    .hamburger {
        display: flex !important;
        position: relative;
        z-index: 1002;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .hero {
        height: calc(100vh - 80px);
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .page-hero h1 {
        font-size: 2.5rem;
    }

    .image-container img {
        height: 250px;
    }

    .images {
        flex-direction: column;
    }
}

/* ==================================================
@media (prefers-color-scheme: dark) {
    .chat-window.dark-mode {
        --chat-bg: #1a1a1a;
        --chat-text: #e0e0e0;
        --chat-bot-msg: #333;
        background: var(--chat-bg);
    }
    .chat-window.dark-mode .chat-messages {
        background-color: #121212;
    }
    .chat-window.dark-mode .chat-input-area {
        background: #1a1a1a;
        border-top-color: #333;
    }
    .chat-window.dark-mode .chat-input-area input {
        background: #333;
        border-color: #444;
        color: white;
    }
}

/* ==================================================
   FIXED AI CHATBOT WIDGET STYLES
   ================================================== */

:root {
    --chat-primary: #2E7D32;
    --chat-bg: #ffffff;
    --chat-text: #333333;
    --chat-bot-msg: #f0f2f5;
    --chat-user-msg: #2E7D32;
    --chat-shadow: 0 10px 30px rgba(0,0,0,0.2);
    --chat-z-index: 99999;
}

/* Floating Toggle Button */
.chat-toggle {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    width: 60px;
    height: 60px;
    background-color: var(--chat-primary);
    color: white !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--chat-shadow);
    z-index: var(--chat-z-index);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    outline: none;
}

.chat-toggle:hover {
    transform: scale(1.1) rotate(5deg);
}

/* Move WhatsApp button to avoid overlap */
.whatsapp-btn {
    right: 90px !important;
    bottom: 20px !important;
    z-index: calc(var(--chat-z-index) - 1) !important;
}

/* Chat Window */
.chat-window {
    position: fixed !important;
    bottom: 90px !important;
    right: 20px !important;
    width: 380px;
    height: 600px;
    max-height: calc(100vh - 120px);
    background: var(--chat-bg);
    border-radius: 15px;
    box-shadow: var(--chat-shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: var(--chat-z-index);
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-window.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chat-header {
    background: linear-gradient(135deg, var(--chat-primary), #1b5e20);
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header h3 {
    margin: 0;
    font-size: 1rem;
    color: white;
    font-weight: 600;
}

.chat-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-minimize, .chat-maximize, .chat-close {
    cursor: pointer;
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 4px;
}

.chat-minimize:hover, .chat-maximize:hover, .chat-close:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

.chat-window.minimized {
    height: 52px !important;
    overflow: hidden;
}

.chat-window.maximized {
    width: 600px !important;
    height: 80vh !important;
    max-height: 80vh !important;
}

.chat-window.minimized .chat-messages,
.chat-window.minimized .chat-input-area,
.chat-window.minimized .typing {
    display: none !important;
}

@media (max-width: 768px) {
    .chat-window.maximized {
        width: 100% !important;
        height: 100% !important;
        max-height: 100vh !important;
        bottom: 0 !important;
        right: 0 !important;
        border-radius: 0;
    }
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background-color: #f5f7f9;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
    position: relative;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.message.bot {
    align-self: flex-start;
    background-color: #fff;
    color: var(--chat-text);
    border-bottom-left-radius: 2px;
}

.message.user {
    align-self: flex-end;
    background-color: var(--chat-user-msg);
    color: #fff;
    border-bottom-right-radius: 2px;
}

.message-time {
    display: block;
    font-size: 0.7rem;
    opacity: 0.5;
    margin-top: 4px;
    text-align: right;
}

.chat-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.suggest-btn {
    background-color: #f0f2f5;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.suggest-btn:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.chat-input-area {
    padding: 12px;
    background: #fff;
    border-top: 1px solid #edf2f7;
    display: flex;
    gap: 8px;
}

.chat-input-area input {
    flex: 1;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.chat-input-area input:focus {
    border-color: var(--chat-primary);
}

.chat-send-btn {
    background: var(--chat-primary);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.typing {
    display: none;
    padding: 8px 15px;
    font-size: 0.8rem;
    color: #718096;
}

@media (max-width: 480px) {
    .chat-window {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        bottom: 0 !important;
        right: 0 !important;
        border-radius: 0;
    }
}

/* Professional Restructure Styles - Additive */

/* Section Headings - Professional Variant */
.section-title-alt {
    text-align: left;
}
.section-title-alt::after {
    left: 0;
    transform: none;
}

/* Problem Section */
.problem-section {
    background-color: #fff1f0;
}
.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.problem-card {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid #ff4d4f;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.problem-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}
.problem-card i {
    color: #ff4d4f;
    font-size: 2.5rem;
    margin-bottom: 15px;
}
.problem-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

/* Accordion Component */
.accordion {
    width: 100%;
    margin-bottom: 30px;
}
.accordion-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.accordion-header {
    width: 100%;
    padding: 20px 25px;
    background: #fff;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
}
.accordion-header:hover {
    background: #fcfcfc;
}
.accordion-header h4 {
    margin: 0;
    font-size: 1.15rem;
    color: var(--text-dark);
}
.accordion-header i {
    transition: transform 0.3s;
    color: var(--primary-color);
}
.accordion-header.active i {
    transform: rotate(180deg);
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s;
    background: #fdfdfd;
}
.accordion-content.active {
    max-height: 3000px; /* Large enough to fit content */
    padding: 25px;
    border-top: 1px solid #eee;
}

/* Usage Guide Styles */
.guide-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
    border: 1px solid #eee;
}
.usage-table-container {
    overflow-x: auto;
}
.usage-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    min-width: 600px;
}
.usage-table th, .usage-table td {
    padding: 18px;
    border: 1px solid #eee;
    text-align: left;
}
.usage-table th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}
.usage-table tr:nth-child(even) {
    background: #f9fbf9;
}

/* Knowledge Center / Articles */
.article-preview {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #eee;
}
.article-preview:hover {
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}
.article-preview h3 {
    color: var(--primary-color);
    font-size: 1.6rem;
    margin-bottom: 15px;
}
.article-preview .article-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 20px;
}

/* Policy Page Base */
.policy-content {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    padding: 60px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}
.policy-content h2 {
    text-align: left;
}
.policy-content h2::after {
    left: 0;
    transform: none;
}
.policy-content section {
    padding: 20px 0;
}

/* General Additions */
.highlight-box {
    background: #e8f5e9;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    margin: 20px 0;
}
.btn-whatsapp {
    background-color: #25d366;
    color: white;
}
.btn-whatsapp:hover {
    background-color: #1ebe57;
}

/* Lang switch enhancement */
.nav-links .lang-switch {
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid #eee;
}
@media (max-width: 1200px) {
    .nav-links .lang-switch {
        border-left: none;
        border-top: 1px solid #eee;
        margin-left: 0;
        padding-top: 20px;
        width: 100%;
        text-align: center;
    }
}
.lang-switch a.active {
    color: var(--primary-color);
    font-weight: 700;
}

