/* General Body & HTML Reset */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif; /* Changed font to Inter for a modern, professional look */
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

/* --- Global Containers & Sections --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.content-section {
    padding: 60px 0;
    background-color: #fff;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.content-section:last-of-type {
    margin-bottom: 0; /* No margin after the last content section */
}

/* --- Headings --- */
h1, h2, h3, h4, h5, h6 {
    color: #333;
    line-height: 1.2;
    margin-bottom: 15px;
    font-weight: 700; /* Made headings bolder */
}

h1 {
    font-size: 2.8em;
    text-align: center;
    color: #007bff; /* Primary blue */
}

h2 {
    font-size: 2.2em;
    color: #007bff; /* Primary blue */
    text-align: center;
    margin-bottom: 30px;
}

h3 {
    font-size: 1.8em;
    color: #444;
    margin-bottom: 15px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    background-color: #007bff; /* Primary blue */
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    font-weight: 600; /* Slightly bolder text for buttons */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.btn:hover {
    background-color: #0056b3; /* Darker blue on hover */
    transform: translateY(-2px); /* Slight lift effect */
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.primary-btn {
    display: inline-block;
    background-color: #007bff; /* Primary blue */
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.2); /* Stronger shadow for primary buttons */
}

.primary-btn:hover {
    background-color: #0056b3; /* Darker blue on hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 123, 255, 0.3);
}

.login-btn {
    background-color: #28a745; /* Green color for login button */
    padding: 8px 15px; /* Slightly smaller for header nav */
    font-size: 0.95em;
    border-radius: 20px; /* More rounded like a pill */
}

.login-btn:hover {
    background-color: #218838;
}

/* Added for service item buttons */
.btn-sm {
    padding: 8px 15px;
    font-size: 0.9em;
}

/* --- Header Styles - Inspired by Afrihost: Clean, spacious, focus on main navigation --- */
.main-header {
    background-color: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05); /* Slightly softer shadow */
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; /* Add horizontal padding to the container */
    position: relative; /* Crucial for correct positioning of mobile-menu-toggle */
}

.logo img {
    height: 55px; /* Slightly larger logo */
}

.header-right {
    display: flex;
    align-items: center;
    gap: 30px; /* Increased space between nav and login button */
}

/* Removed .search-bar styles as per request */

/* --- Main Navigation (Desktop) - Inspired by Afrihost: Prominent, clear, rounded buttons for key actions --- */
.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 25px; /* Spacing between primary nav items */
}

.main-nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500; /* Slightly lighter weight for general links */
    padding: 8px 0; /* Vertical padding for click area */
    transition: color 0.3s ease;
}

.main-nav ul li a:hover {
    color: #007bff; /* Primary blue on hover */
}

/* Dropdown Menu Styles */
.main-nav .dropdown {
    position: relative;
}

.main-nav .dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 200px; /* Wider dropdowns for more content */
    box-shadow: 0px 8px 20px 0px rgba(0,0,0,0.1); /* Softer, larger shadow */
    z-index: 1;
    border-radius: 8px; /* More rounded corners */
    overflow: hidden;
    top: 100%;
    left: 0;
    margin-top: 10px; /* More space between trigger and dropdown */
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.main-nav .dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.main-nav .dropdown-content a {
    color: #333;
    padding: 12px 20px; /* More padding inside dropdown links */
    text-decoration: none;
    display: block;
    text-align: left;
    font-weight: normal;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.main-nav .dropdown-content a:hover {
    background-color: #e6f2ff; /* Very light blue on hover */
    color: #007bff;
}

/* User Info Dropdown for Logged In State */
.user-info-dropdown {
    position: relative;
    display: inline-block;
    cursor: pointer;
    padding: 0 5px;
}

.user-initials {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #007bff; /* Primary color */
    color: #fff;
    font-weight: bold;
    font-size: 1.1em;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease;
}

.user-initials:hover {
    background-color: #0056b3;
}


.user-info-dropdown .dropdown-content {
    display: none; /* Hidden by default, toggled by JS */
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 5px;
    overflow: hidden;
    top: calc(100% + 5px); /* Position below the initials bubble */
    right: 0; /* Align to the right of the initials */
}

.user-info-dropdown .dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    font-weight: normal;
}

.user-info-dropdown .dropdown-content a:hover {
    background-color: #f1f1f1;
    color: #007bff;
}

/* --- Mobile Menu Styles (Hamburger Menu) --- */
.mobile-menu-toggle {
    display: none; /* Hidden on desktop */
    font-size: 2em; /* Larger icon for touch */
    cursor: pointer;
    color: #007bff; /* Primary blue for the toggle icon */
    position: absolute; /* Position relative to the header-container */
    right: 20px; /* Maintain consistent right spacing */
    top: 50%;
    transform: translateY(-50%); /* Vertically center */
    z-index: 1001; /* Ensure it's above header content */
    transition: color 0.3s ease;
}

.mobile-menu-toggle:hover {
    color: #0056b3;
}

.mobile-nav {
    display: none; /* Hidden by default; JavaScript will toggle this */
    background-color: #fff;
    position: fixed; /* Fixed to viewport */
    top: 0; /* Start from the very top */
    left: 0;
    width: 100%;
    height: 100%; /* Full viewport height */
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 999;
    overflow-y: auto; /* Enable scrolling if menu content exceeds screen height */
    padding-top: 80px; /* Space for the fixed header content */
    transform: translateX(100%); /* Start off-screen to the right */
    transition: transform 0.4s ease-out; /* Smooth slide-in transition */
}

.mobile-nav.active {
    display: block; /* Show menu when 'active' class is added by JS */
    transform: translateX(0); /* Slide into view */
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav ul li {
    border-bottom: 1px solid #eee;
}

.mobile-nav ul li:last-child {
    border-bottom: none;
}

/* Mobile dropdowns should also behave like accordions */
.mobile-nav .dropdown .dropbtn {
    display: flex; /* Allows caret to be aligned */
    justify-content: space-between;
    align-items: center;
}

.mobile-nav .dropdown-content {
    position: relative; /* Change to relative for stacking */
    display: block; /* Always block for the *CSS structure*, but controlled by JS for visibility */
    background-color: #f1f1f1; /* Slightly different background for sub-items */
    box-shadow: none; /* No shadow for nested content */
    border-radius: 0;
    margin-top: 0;
    opacity: 1; /* Always visible when parent dropdown is active */
    transform: translateY(0);
    transition: none; /* No animation for child dropdowns */
}

/* Initially hide dropdown content in mobile nav, show when parent li is 'open' */
.mobile-nav li.dropdown .dropdown-content {
    display: none; /* This controls the actual visibility of dropdown content */
}

.mobile-nav li.dropdown.open .dropdown-content {
    display: block; /* When 'open' class is added to parent li by JS */
}


.mobile-nav ul li a {
    display: block;
    padding: 15px 25px; /* More padding for mobile links */
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.mobile-nav ul li a:hover {
    background-color: #e6f2ff; /* Light blue on hover */
    color: #007bff;
}

/* Adjust mobile search bar if it were present - but it's removed */

/* --- Hero Slider Section --- */
.hero-slider {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    background-color: #f0f0f0;
}

.slider-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden; /* Added for smooth transition */
    z-index: 1; /* Ensure non-active slides are behind */
    transition: opacity 1s ease-in-out, visibility 0s linear 1s; /* Delay visibility change when fading out */
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    visibility: visible; /* Make visible when active */
    z-index: 2; /* Bring active slide to front */
    transition: opacity 1s ease-in-out, visibility 0s linear 0s; /* No delay for visibility when fading in */
    pointer-events: auto;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

.slide-content {
    position: relative;
    z-index: 1;
    color: #fff;
    text-align: center;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.55); /* Slightly darker overlay for better text contrast */
    border-radius: 8px;
    max-width: 80%;
    box-sizing: border-box;
}

.slide-content h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #fff;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.8); /* Stronger shadow for readability */
}

.slide-content p {
    font-size: 1.2em;
    margin-bottom: 20px; /* Added margin for button */
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8); /* Stronger shadow for readability */
}

/* Slider Navigation (Prev/Next Buttons) */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.6); /* Slightly darker */
    border-radius: 5px; /* Added slight rounding */
    z-index: 2;
}

.prev {
    left: 10px; /* Some padding from the edge */
}

.next {
    right: 10px; /* Some padding from the edge */
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Dot Navigation */
.dot-navigation {
    text-align: center;
    padding: 15px 0; /* Slightly less padding */
    background-color: #f4f4f4;
    border-top: 1px solid #eee;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.dot {
    cursor: pointer;
    height: 12px; /* Slightly smaller dots */
    width: 12px;
    margin: 0 4px; /* Less margin */
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.dot.active, .dot:hover {
    background-color: #007bff; /* Active dot is primary blue */
}


/* --- Intro Section Styles --- */
.intro-section {
    padding: 60px 0;
    background-color: #fff;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.intro-section p {
    text-align: center;
    max-width: 800px;
    margin: 20px auto 40px;
    font-size: 1.1em;
    color: #555;
}

.highlights {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.highlight-item {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    text-align: center;
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.highlight-item h3 {
    color: #007bff;
    margin-top: 0;
    font-size: 1.4em;
}

.highlight-item p {
    font-size: 0.95em;
    color: #666;
    margin-bottom: 0;
}

.whatsapp-btn {
    display: block;
    width: fit-content;
    margin: 30px auto 0;
    background-color: #25D366; /* WhatsApp green */
}

.whatsapp-btn:hover {
    background-color: #1DA851; /* Darker green on hover */
}

/* --- Services Overview Section --- */
.services-overview {
    padding: 60px 0;
    background-color: #fff;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-item {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.service-item h3 {
    color: #007bff;
    margin-top: 0;
    font-size: 1.4em;
    text-align: center;
}

.service-item p {
    font-size: 0.95em;
    color: #666;
    text-align: center;
    margin-bottom: 15px;
}

.service-item .btn {
    margin-top: 10px;
}


/* --- Contact Info Section (for Contact Us page layout) --- */
.contact-info-section .row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.contact-info-section .col-md-6 {
    flex: 1;
    min-width: 300px;
}

.contact-details {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    margin-top: 20px;
    border: 1px solid #eee;
}

.contact-details h3 {
    color: #007bff;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.contact-details address,
.contact-details p {
    margin-bottom: 10px;
    color: #555;
    font-style: normal;
}

.contact-details p i {
    margin-right: 10px;
    color: #007bff;
}

/* --- Map Section --- */
.map-section {
    text-align: center;
}

#map {
    height: 450px;
    width: 100%;
    border-radius: 8px;
    margin-top: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* --- General Form Styles (for contact and login/signup forms) --- */
.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
    font-size: 0.95em;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
textarea {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    color: #555;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
    outline: none;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* Specific button style for forms (reusing primary-btn styles) */
.contact-form .primary-btn,
.login-form .primary-btn,
.signup-form .primary-btn {
    display: block;
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    background-color: #007bff;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.2);
}

.contact-form .primary-btn:hover,
.login-form .primary-btn:hover,
.signup-form .primary-btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 123, 255, 0.3);
}

.contact-form .primary-btn:active,
.login-form .primary-btn:active,
.signup-form .primary-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 123, 255, 0.2);
}

/* Status messages for forms */
.form-status-message {
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-weight: 500;
    text-align: center;
}

.form-status-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-status-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}


/* --- Page Hero Styles (for internal pages) --- */
.page-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/your-contact-hero-image.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 80px 0;
    margin-bottom: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-hero .hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-hero h1 {
    color: #fff;
    font-size: 3em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-hero p {
    font-size: 1.2em;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Login / Signup Form Specific Styles --- */
.login-form-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align to top, not center vertically in case of height differences */
    padding: 40px 0; /* Generous vertical padding */
    min-height: 500px; /* Ensure sufficient height for the forms */
}

.login-form,
.signup-form {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15); /* More prominent shadow for forms */
    width: 100%;
    max-width: 480px; /* Slightly wider forms */
    box-sizing: border-box;
    transition: all 0.5s ease-in-out; /* Smooth transition for toggling forms */
}

.login-form .form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 0.9em;
}

.login-form .remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-form .remember-me input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, border-color 0.2s;
}

.login-form .remember-me input[type="checkbox"]:checked {
    background-color: #007bff;
    border-color: #007bff;
}

.login-form .remember-me input[type="checkbox"]:checked::before {
    content: '\2713';
    color: #fff;
    font-size: 14px;
    font-weight: bold;
}

.login-form .remember-me label {
    margin-bottom: 0;
    cursor: pointer;
}

.login-form .forgot-password {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.login-form .forgot-password:hover {
    color: #0056b3;
    text-decoration: underline;
}

.login-form .signup-link,
.signup-form .login-link {
    text-align: center;
    margin-top: 30px;
    font-size: 0.95em;
    color: #555;
}

.login-form .signup-link a,
.signup-form .login-link a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.login-form .signup-link a:hover,
.signup-form .login-link a:hover {
    text-decoration: underline;
}

/* --- Alert and Message Styles (Useful for Form Feedback) --- */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 0.95em;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}


/* --- Footer Styles --- */
.main-footer {
    background-color: #222;
    color: #fff;
    padding: 40px 0 20px;
    font-size: 0.9em;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    gap: 30px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
}

.footer-section h3 {
    color: #007bff;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.footer-section p,
.footer-section address,
.footer-section ul {
    color: #bbb;
    margin-bottom: 10px;
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #bbb;
    text-decoration: none;
}

.footer-section a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-section form {
    display: flex;
    margin-top: 15px;
}

.footer-section input[type="email"] {
    flex-grow: 1;
    padding: 10px;
    border: none;
    border-radius: 5px 0 0 5px;
    outline: none;
}

.footer-section button {
    padding: 10px 15px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.footer-section button:hover {
    background-color: #0056b3;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 20px;
    margin-top: 20px;
    color: #bbb;
}

/* --- Cookie Consent Banner --- */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: none; /* Changed to display: none by default; JS will manage its visibility explicitly */
    align-items: center;
    gap: 20px;
    z-index: 1001;
    max-width: 90%;
    flex-wrap: wrap;
    justify-content: center;
}

.cookie-banner p {
    margin: 0;
    font-size: 0.95em;
}

.cookie-banner a {
    color: #007bff;
    text-decoration: underline;
}

.cookie-banner .cookie-btn {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.cookie-banner .cookie-btn:hover {
    background-color: #0056b3;
}

/* --- RoboChat Specific Styles --- */
.chat-bubble {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #007bff;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8em;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 1004; /* Increased Z-index to ensure it's always on top */
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.chat-bubble:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

.chat-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    max-height: 500px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1003; /* Lower than chat-bubble so bubble is always clickable */
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden; /* Start hidden */
    transition: opacity 0.3s ease-out, transform 0.3s ease-out, visibility 0s linear 0.3s; /* Delay visibility change when hiding */
    pointer-events: none; /* Crucial: prevent interaction when hidden */
}

.chat-window.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible; /* Make visible when active */
    transition: opacity 0.3s ease-out, transform 0.3s ease-out, visibility 0s linear 0s; /* No delay for visibility when showing */
    pointer-events: auto; /* Crucial: allow interaction when visible */
}

.chat-header {
    background-color: #007bff;
    color: #fff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.chat-header h3 {
    margin: 0;
    color: #fff;
    font-size: 1.2em;
}

.close-chat-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5em;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-chat-btn:hover {
    color: #f1f1f1;
}

.chat-body {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-messages {
    flex-grow: 1;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    padding: 10px 15px;
    border-radius: 15px;
    max-width: 80%;
    word-wrap: break-word;
}

.bot-message {
    background-color: #e2e6ea;
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 5px;
}

.user-message {
    background-color: #007bff;
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

.faq-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.faq-button {
    background-color: #f0f8ff;
    color: #007bff;
    border: 1px solid #cceeff;
    padding: 10px 15px;
    border-radius: 5px;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    font-size: 0.95em;
    width: 100%;
}

.faq-button:hover {
    background-color: #e0f0ff;
    border-color: #aaddff;
}

.faq-button.back-button {
    background-color: #6c757d;
    color: #fff;
    border-color: #5a6268;
    margin-top: 15px;
}

.faq-button.back-button:hover {
    background-color: #5a6268;
    border-color: #495057;
}

/* --- Responsive Design Media Queries --- */
@media (max-width: 768px) {
    .header-right {
        display: none; /* Hide desktop nav and login button */
    }

    .mobile-menu-toggle {
        display: block; /* Show mobile toggle */
    }

    .main-header .header-container {
        justify-content: space-between; /* Logo on left, toggle on right */
    }

    /* Slider Responsive Adjustments */
    .hero-slider {
        margin: 10px auto;
    }

    .slider-container {
        padding-bottom: 65%; /* Adjust aspect ratio for mobile view (taller) */
    }

    .slide-content h1 {
        font-size: 1.8em;
    }

    .slide-content p {
        font-size: 1em;
    }

    .prev, .next {
        font-size: 16px;
        padding: 10px;
    }

    h2 {
        font-size: 1.8em;
    }

    .contact-info-section .row {
        flex-direction: column;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-section {
        min-width: unset;
        width: 100%;
    }

    .footer-section form {
        justify-content: center;
    }

    .cookie-banner {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        display: flex; /* Ensure it uses flex for its internal layout when shown */
    }

    .intro-section .highlights {
        flex-direction: column;
        align-items: center;
    }

    .intro-section .highlight-item {
        max-width: 90%;
    }

    /* Responsive adjustments for Login Form */
    .login-form,
    .signup-form {
        padding: 25px;
        max-width: 90%; /* Wider on small screens */
    }

    .login-form .primary-btn,
    .signup-form .primary-btn {
        padding: 12px;
        font-size: 1em;
    }

    .login-form .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    /* RoboChat Mobile Adjustments */
    .chat-bubble {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.5em;
    }

    .chat-window {
        width: 90%;
        max-width: 400px;
        height: 80vh;
        bottom: 80px;
        right: 5%;
        left: 5%; /* Center it properly */
        transform: translateX(0); /* Reset transform */
    }
}

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

    .content-section {
        padding: 40px 0;
    }

    h1 {
        font-size: 2.2em;
    }

    .page-hero h1 {
        font-size: 2em;
    }

    .page-hero p {
        font-size: 1em;
    }

    /* Slider Responsive Adjustments for very small screens */
    .slider-container {
        padding-bottom: 75%;
    }

    .slide-content {
        padding: 10px;
        max-width: 90%;
    }

    .slide-content h1 {
        font-size: 1.5em;
    }

    .slide-content p {
        font-size: 0.9em;
    }

    h2 {
        font-size: 1.5em;
    }

    .contact-form {
        padding: 20px;
    }

    .contact-form .primary-btn {
        width: 100%;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Modal Styles --- */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 2000; /* Sit on top, higher than other elements */
    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.4); /* Black w/ opacity */
    display: flex; /* Use flex to center content */
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 30px;
    border: 1px solid #888;
    width: 80%; /* Could be adjusted */
    max-width: 500px;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    animation-name: animatetop;
    animation-duration: 0.4s;
    text-align: center; /* Center text inside modal */
}

/* Add Animation */
@keyframes animatetop {
    from {top: -300px; opacity: 0}
    to {top: 0; opacity: 1}
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute; /* Position relative to modal-content */
    top: 10px;
    right: 15px;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-body {
    padding: 20px 0;
}

.modal-icon {
    font-size: 4em; /* Larger icons for modal */
    margin-bottom: 20px;
}

.modal-icon .fa-check-circle {
    color: #28a745; /* Green for success */
}

.modal-icon .fa-times-circle {
    color: #dc3545; /* Red for error */
}


/* --- Social Login Button Styles --- */
.social-login-options .btn {
    display: flex; /* Use flex to align icon and text */
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    font-size: 1em;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease;
}

.social-login-options .btn i {
    margin-right: 10px;
    font-size: 1.2em;
}

.google-btn {
    background-color: #DB4437; /* Google Red */
    color: #fff;
}

.google-btn:hover {
    background-color: #c0392b;
}

.facebook-btn {
    background-color: #3b5998; /* Facebook Blue */
    color: #fff;
}

.facebook-btn:hover {
    background-color: #2d4373;
}
