/* General Body Styles */
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #F5F5DC; /* Creamy Beige from mockup */
    color: #333333;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Header & Navigation */
header {
    background-color: #0077B6; /* Vibrant Blue from mockup */
    color: #ffffff;
    padding: 0.6em 0; /* MODIFIED from 0.8em 0 - Slimmer */
    position: sticky; /* Make header sticky */
    top: 0;
    z-index: 1000; /* Ensure header stays on top */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* Add a subtle shadow */
}

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

header .logo a {
    color: #ffffff;
    font-size: 1.8em;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* --- Base (Mobile-First) Navigation Styles --- */
.menu-toggle {
    display: block; /* Shown by default for mobile-first */
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 5px;
    order: 1; /* Position on the right */
}

.language-selector.desktop-only {
    display: none; /* Hidden by default for mobile-first */
}

nav#main-nav {
    width: 100%;
    order: 2; /* Nav below logo/toggle on mobile */
}

nav#main-nav ul { /* Main UL for mobile dropdown */
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: none; /* Hidden by default, JS toggles .active */
    flex-direction: column;
    position: absolute;
    top: 100%; /* Position below header */
    left: 0;
    width: 100%;
    background-color: #005A8D; /* Slightly darker blue for dropdown */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1000;
}

nav#main-nav ul.active {
    display: flex; /* Show when active */
}

nav#main-nav ul > li { /* All LIs in the mobile dropdown */
    margin: 0;
    width: 100%;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: block; /* Ensure they stack and take full width */
}
nav#main-nav ul > li:last-child {
    border-bottom: none;
}

nav#main-nav ul > li a {
    display: block;
    padding: 12px 20px; /* MODIFIED from 15px 20px - Slimmer */
    width: 100%;
    box-sizing: border-box;
    font-size: 0.9em;    /* MODIFIED from 1em - Clearer */
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;  /* MODIFIED from 400 - Clearer */
    transition: background-color 0.3s ease;
    white-space: nowrap; /* ADDED - Ensure single line on mobile if possible, though less critical here */
    overflow: hidden;
    text-overflow: ellipsis;
}
nav#main-nav ul li a:hover,
nav#main-nav ul li a.active {
    background-color: #0077B6; /* Lighter blue for hover/active on mobile */
}

/* Responsive Language Menu Item (part of mobile nav) */
nav#main-nav ul > li.language-menu-item.responsive-only {
    display: block; /* Shown in mobile nav list */
}

.language-submenu {
    display: none;
    list-style-type: none;
    padding-left: 20px; /* Indent submenu items */
    margin: 0;
    background-color: #004c75; /* Slightly different background for submenu */
}
.language-submenu.active {
    display: block;
}
.language-submenu li a {
    color: #ffffff;
    text-decoration: none;
    display: block;
    padding: 10px 20px;
    font-size: 0.9em;
}
.language-submenu li a:hover {
    background-color: #0077B6;
}
.language-menu-item .language-toggle .arrow {
    display: inline-block;
    margin-left: 5px;
    transition: transform 0.3s ease;
}
.language-menu-item .language-toggle.submenu-active .arrow { 
     transform: rotate(180deg);
}


/* --- Desktop Navigation Styles (min-width: 769px) --- */
@media (min-width: 769px) {
    .menu-toggle {
        display: none !important; /* Hide hamburger on desktop */
    }

    .language-selector.desktop-only {
        display: inline-block !important; /* Show desktop globe icon selector */
        margin-left: 15px; /* MODIFIED from 20px */
        position: relative;
    }
    .language-selector.desktop-only .lang-icon {
        cursor: pointer;
        font-size: 1.5em;
        color: #ffffff;
    }
    .language-selector.desktop-only .lang-dropdown {
        display: none;
        position: absolute;
        background-color: #005A8D;
        min-width: 160px;
        box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
        z-index: 1001;
        right: 0;
        border-radius: 4px;
        border: 1px solid #004C75;
    }
    .language-selector.desktop-only:hover .lang-dropdown {
        display: block;
    }
    .language-selector.desktop-only .lang-dropdown a {
        color: #ffffff;
        padding: 10px 15px;
        text-decoration: none;
        display: block;
        font-size: 0.9em;
    }
    .language-selector.desktop-only .lang-dropdown a:hover {
        background-color: #0077B6;
    }

    nav#main-nav {
        width: auto; /* Reset mobile width */
        order: 0; /* Reset mobile order */
    }

    nav#main-nav ul { /* Main UL for desktop */
        display: flex !important; /* Override mobile display:none */
        align-items: center; /* ADDED - Vertically align items */
        flex-direction: row !important; /* Horizontal layout */
        position: static !important; /* Not absolute */
        background-color: transparent !important; /* No background */
        box-shadow: none !important; /* No shadow */
        width: auto !important; /* Adjust width automatically */
    }

    nav#main-nav ul > li { /* Desktop LI items */
        margin: 0;
        padding: 0;
        width: auto; /* Auto width for horizontal items */
        border-bottom: none !important; /* Remove mobile border */
        list-style-type: none !important; /* Ensure no bullets */
    }
    nav#main-nav ul > li + li { /* Spacing between desktop LIs */
        margin-left: 10px !important; /* MODIFIED from 15px */
    }

    nav#main-nav ul > li a { /* Desktop LI links */
        display: inline-block !important; /* Proper display for horizontal items */
        padding: 5px 8px !important; /* MODIFIED from 6px 10px - Slimmer */
        width: auto !important;
        box-sizing: content-box !important;
        font-size: 0.82em !important; /* MODIFIED from 0.85em - Clearer */
        font-weight: 600 !important; /* MODIFIED from 700 - slightly less bold for space */
        letter-spacing: 0.1px !important; /* MODIFIED from 0.2px */
        color: #ffffff; /* Explicitly ensure white color */
        text-decoration: none; /* Explicitly ensure no underline */
        white-space: nowrap; /* ADDED - Ensure single line */
        overflow: hidden; /* ADDED - Handle potential overflow */
        text-overflow: ellipsis; /* ADDED - Add ellipsis if text still overflows */
        transition: background-color 0.3s ease, color 0.3s ease; /* Ensure smooth transition */
        line-height: 1.2; /* ADDED - Adjust line height for better fit */
    }
    nav#main-nav ul li a:hover,
    nav#main-nav ul li a.active {
        background-color: #005A8D; /* Darker blue for hover/active on desktop */
        color: #ffffff;
    }

    /* Hide responsive language menu item on desktop */
    nav#main-nav ul > li.language-menu-item.responsive-only {
        display: none !important;
    }
}


/* Hero Section */
.hero {
    background-size: cover;
    background-position: center center;
    color: #ffffff;
    text-align: center;
    padding: 100px 20px;
    position: relative;
}

.hero-content-overlay {
    background-color: rgba(0, 0, 0, 0.5); 
    display: inline-block;
    padding: 30px 40px;
    border-radius: 8px;
}

.hero h1 {
    font-size: 3.5em;
    margin-bottom: 0.5em;
    color: #ffffff;
    font-weight: 700;
}

.hero p {
    font-size: 1.5em;
    margin-bottom: 1.5em;
    color: #f0f0f0;
}

.cta-button {
    background-color: #0077B6; 
    color: #ffffff;
    padding: 15px 30px;
    font-size: 1.2em;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s ease;
    border: none;
}

.cta-button:hover {
    background-color: #005A8D; 
    text-decoration: none;
}

.cta-button-light {
    background-color: #FFFFFF;
    color: #556B2F; /* Dark Olive Green for text */
    border: 2px solid #556B2F;
}

.cta-button-light:hover {
    background-color: #e0e0e0;
    color: #556B2F;
}


/* About Curotherapy Section */
#about-curotherapy {
    padding: 40px 0;
}

.about-content-grid {
    display: flex;
    align-items: center;
    gap: 30px;
}

.about-image-container {
    flex: 1;
    max-width: 400px;
}

.about-image-container img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.about-text-container {
    flex: 2;
}

.about-text-container h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #556B2F; /* Earthy Green */
}

/* Treatments Section */
#treatments-preview {
    padding: 60px 0;
}

.treatments-content-grid {
    display: flex;
    align-items: center;
    gap: 30px;
}

.treatments-text-container {
    flex: 2;
}

.treatments-text-container h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #556B2F; /* Changed from #FFFFFF to #556B2F (Earthy Green) */
}

.treatments-text-container p {
    font-size: 1.1em;
    margin-bottom: 20px;
}

.treatments-image-container {
    flex: 1;
    max-width: 350px;
}

.treatments-image-container img {
    width: 100%;
    border-radius: 8px;
}

/* Testimonials Section - Revised for 2-column layout */
#homepage-testimonials {
    padding: 40px 0;
}

#homepage-testimonials h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #556B2F; /* Earthy Green */
    text-align: center;
}

.testimonials-layout-grid {
    display: flex;
    flex-wrap: wrap; 
    gap: 30px;
    align-items: flex-start; 
}

.testimonial-text-column {
    flex: 1; 
    min-width: 300px; 
}

.testimonial-image-column {
    flex: 1; 
    min-width: 300px; 
    text-align: center; 
}

.testimonial-item {
    background-color: #FFFFFF;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border-left: 5px solid #8FBC8F; /* Lighter Earthy Green accent */
    margin-bottom: 20px; 
}
.testimonial-item:last-child {
    margin-bottom: 0;
}

.testimonial-item p {
    font-style: italic;
    margin-bottom: 10px;
}

.testimonial-item cite {
    font-weight: 700; 
    color: #556B2F;
}

.testimonial-section-image {
    width: 100%;
    max-width: 450px; 
    height: auto; 
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin: 0 auto; 
}

/* Text center utility class */
.text-center {
    text-align: center;
}

/* Margin top utility class */
.margin-top-large {
    margin-top: 30px;
}

/* Full-Width Banner Sections */
.full-width-banner {
    background-size: cover;
    background-position: center center;
    color: #ffffff;
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 20px; 
}

.full-width-banner h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #ffffff; 
}

.full-width-banner p {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #f0f0f0; 
}

.banner-overlay {
    background-color: rgba(0, 0, 0, 0.5); 
    padding: 20px;
    border-radius: 8px;
    display: inline-block; 
    width: 80%; 
    max-width: 900px; 
}


/* Responsive Design Adjustments (excluding nav, handled above) */
@media (max-width: 768px) {
    header .container {
        flex-wrap: wrap; /* Already in base, but good to ensure for mobile */
    }
    .hero h1 {
        font-size: 2.5em;
    }

    .hero p {
        font-size: 1.2em;
    }

    .about-content-grid,
    .treatments-content-grid {
        flex-direction: column;
    }

    .about-image-container,
    .treatments-image-container {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .testimonials-layout-grid {
        flex-direction: column; 
    }
    .testimonial-image-column {
        margin-top: 20px;
    }
    .testimonial-section-image {
        max-width: 90%;
    }

    .full-width-banner {
        padding: 40px 10px;
    }

    .banner-overlay {
        width: 90%;
    }
}

/* Honor Pro 6 specific fix for testimonials button */
@media (max-width: 600px) {
    #homepage-testimonials .text-center.margin-top-large {
        margin-top: 40px;
        position: relative;
        clear: both;
        display: flex;
        justify-content: center;
    }
    
    #homepage-testimonials .text-center.margin-top-large .cta-button {
        display: inline-block;
        position: relative;
        z-index: 10;
    }
    
    .testimonial-image-column {
        margin-bottom: 20px;
    }
}

/* Footer */
footer {
    background-color: #2c3e50; 
    color: #ffffff;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

footer p {
    margin: 0;
}




/* Styles for Who Benefits Page - Benefit Categories */
.benefit-category {
    background-color: #FFFFFF;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    border-left: 5px solid #8FBC8F; /* Lighter Earthy Green accent, similar to testimonial-item */
}

/* Ensure headings and paragraphs within benefit-category are styled appropriately if needed */
.benefit-category h3 {
    /* Add or adjust styles if they were lost or need to be different from default */
    color: #556B2F; /* Example: Earthy Green, consistent with other headings */
    margin-top: 0; /* Remove default top margin if present */
}

.benefit-category p {
    /* Add or adjust styles if they were lost or need to be different from default */
    color: #333333; /* Standard text color */
}



/* New style for footer links */
.footer-link a {
    color: #ffffff; /* White color for links */
    text-decoration: none; /* Remove underline by default */
    margin: 0 10px; /* Add some spacing between links if they are in the same p tag */
}

.footer-link a:hover {
    text-decoration: underline; /* Underline on hover */
    color: #8FBC8F; /* Lighter Earthy Green accent on hover, matches other accents */
}

footer p {
    margin: 5px 0; /* Added some margin for better spacing if multiple p tags */
}
