@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* CSS Variables for Color Palette */
:root {
    --primary-color: #000000;
    --primary-hover-color: #333333;
    --secondary-color: #f0f0f0;
    --text-color: #000000;
    --light-text-color: #ffffff;
    --background-color: #ffffff;
    --section-background-color: #ffffff;
    --border-color: #e0e0e0;
    --dark-background: #222222;
    --footer-text-color: #cccccc;
}

/* Global Resets and Box Sizing */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Remove any unwanted outlines, borders, or checkbox appearances */
button, input, select, textarea {
    outline: none;
    border: none;
    background: none;
}

/* Accessible focus styles */
button:focus, input:focus, select:focus, textarea:focus, a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}

/* Ensure no checkbox-like appearance on any elements */
*:before, *:after {
    box-sizing: border-box;
}

/* Remove any default browser styling that might look like checkboxes */
/* Avoid globally hiding native controls; scope custom styles locally if needed */

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--background-color);
    font-size: 16px; /* Base font size for rem calculation */
    transition: background-color 0.3s ease, color 0.3s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}



.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto; /* Simplified margin */
    padding: 0 20px; /* Horizontal padding handled by container */
}

/* New Header Styling */
.site-header {
    background: var(--section-background-color);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.header-content {
    display: flex;
    align-items: center;
    height: 80px;
    position: relative;
}

.logo-title-group {
    display: flex;
    align-items: center;
    gap: 15px;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
}

.site-header .logo {
    width: 60px;
    height: auto;
}

.site-header h1, .site-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.main-nav ul li {
    margin: 0 8px;
    flex-shrink: 0;
}

.main-nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 10px;
    white-space: nowrap;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
    background-color: transparent !important;
}

.main-nav ul li a:not(:hover) {
    background-color: transparent !important;
    color: var(--text-color) !important;
}

.main-nav ul li a:hover {
    background-color: #ffffff;
    color: #000000;
}

.main-nav ul li a.active {
    background-color: transparent;
    color: var(--text-color);
}

.main-nav {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-wrap: wrap;
    max-width: calc(100vw - 400px);
}

/* Avoid hiding all navs globally; ensure specific navs are styled explicitly */

/* Hero Section Styling (index.html) */
.hero { /* This class is on a <section> directly inside <body>, not a <main> element */
    background: #000000;
    color: #ffffff;
    padding: 80px 20px; /* Padding applied directly */
    text-align: center;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.hero h2 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Features Section Styling (index.html) */
/* The <main> element on index.html has classes "container features" */
/* It acts as the flex container for its <section> children (the cards) */
main.container.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around; /* Distribute space */
    gap: 30px; /* Space between cards */
    padding-top: 60px; /* Vertical padding for the section */
    padding-bottom: 60px;
    flex: 1;
    /* Horizontal padding is handled by .container */
    /* background-color: var(--background-color); /* Body background, not needed here */
}

/* Individual feature cards are <section> elements, direct children of main.container.features */
.features > section {
    background: var(--section-background-color);
    padding: 30px;
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 8px;
    text-align: center;
    flex-basis: calc(33.333% - 25px); /* Adjusted for gap. (gap * (items_per_row - 1) / items_per_row) */
    min-width: 280px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
/* Calculation for flex-basis with gap: (100% - (gap * (items_per_row - 1))) / items_per_row
   For 3 items: (100% - (25px * 2)) / 3 = (100% - 50px) / 3.
   So, calc( (100% - 50px) / 3 ) or more simply, let flex-grow handle it with a base percentage.
   Using calc(33.333% - X) is common: X should be related to the gap.
   If gap is 25px, for 3 items, there are 2 gaps. Total gap space = 50px.
   Each item's share of this gap space is 50px/3. So, calc(33.333% - (50px/3)).
   Or, more simply: flex: 1 1 calc(33.333% - 25px); (adjusting X in calc for basis usually means X = gap * (N-1)/N for N items).
   Let's use a slightly simpler flex-basis and let grow/shrink work:
*/
.features > section {
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: calc(33.333% - 25px); /* A common approximation that works well with space-around */
    /* Fallback for browsers not supporting gap fully with flex basis calc */
    margin-bottom: 25px; /* Ensure vertical spacing if wrapping before gap is fully effective */
}


.features > section:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.features > section h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.features > section p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1; 
}

a.learn-more {
    display: inline-block;
    background: var(--primary-color);
    color: var(--light-text-color);
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    margin-top: auto; 
}

a.learn-more:hover {
    background: var(--primary-hover-color);
}

/* Testimonials Section */
.testimonials {
    flex: 1;
    padding: 60px 0;
    background: var(--background-color);
}

.testimonial-grid {
    display: flex;
    gap: 30px;
    justify-content: space-around;
    flex-wrap: wrap;
}

.testimonial-card {
    flex: 1;
    min-width: 280px;
    background: var(--section-background-color);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: center;
}

/* Page Title Section (for individual pages) */
.page-title-section {
    background: var(--section-background-color);
    border-bottom: 1px solid var(--border-color);
    padding: 30px 0;
    text-align: center;
}

.page-title-section h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin: 0;
    font-weight: 700;
}

.page-title-section p {
    font-size: 1.1rem;
    color: var(--text-color);
    margin: 10px auto 0;
    max-width: 800px;
}

/* Page Hero Styling (for other HTML pages) */
.page-hero { /* This class is on a <section> directly inside <body> */
    background: var(--secondary-color);
    color: var(--text-color);
    padding: 50px 20px;
    text-align: center;
    margin-bottom: 50px;
}

.page-hero h2 {
    font-size: 2.3rem;
    margin-bottom: 10px;
    font-weight: 700;
}

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

/* Content Section Styling (for other HTML pages) */
/* These are <section class="content-section"> inside <main class="container"> */
.content-section { 
    background: var(--section-background-color);
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.content-section h3 {
    color: var(--primary-color);
    font-size: 1.7rem;
    margin-bottom: 20px;
}

.content-section ul {
    list-style-position: inside;
    padding-left: 0;
}

.content-section ul li {
    margin-bottom: 12px;
    line-height: 1.8;
}

.content-section ul li strong {
    color: var(--text-color);
    font-weight: 600;
}

/* Agent Breakdown Styling */
.agent-breakdown {
    background: var(--section-background-color);
    border-left: 4px solid #4a90e2;
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.agent-breakdown h4 {
    color: #4a90e2;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.agent-breakdown ul {
    margin: 15px 0;
    padding-left: 20px;
}

.agent-breakdown ul li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.agent-breakdown ul li strong {
    color: #333;
    font-weight: 600;
}

.agent-breakdown em {
    color: #666;
    font-style: italic;
    font-size: 0.95rem;
}

/* Footer Styling */
footer {
    background: var(--dark-background);
    color: var(--footer-text-color);
    text-align: center;
    padding: 30px 20px;
    margin-top: auto;
    border-top: 3px solid var(--primary-color);
    flex-shrink: 0;
}

footer p {
    font-size: 0.95rem;
}

/* General link styling */
a {
    color: var(--secondary-color);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
    color: var(--primary-hover-color);
}

a.learn-more, a.learn-more:hover {
    text-decoration: none;
    color: var(--light-text-color);
}



/* Contact Form Styling */
.contact-form {
    margin-top: 30px;
}

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

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

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    background-color: var(--background-color);
    color: var(--text-color);
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(0, 82, 204, 0.2);
}

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

#form-status {
    margin-top: 20px;
    font-size: 1rem;
    font-weight: 600;
}

/* Modern Dropdown Menu Styles */
.dropdown {
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
}

.dropdown .arrow {
    display: inline-block;
    margin-left: 8px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--text-color);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    vertical-align: middle;
}

.dropdown:hover .arrow,
.dropdown.active .arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% - 5px);
    left: 0;
    background-color: var(--section-background-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.1);
    min-width: 280px;
    z-index: 1000;
    list-style: none;
    padding: 8px 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 400px;
    overflow-y: auto;
    backdrop-filter: blur(10px);
    display: none;
    flex-direction: column;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-menu {
    display: flex;
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Show dropdown when active (for mobile/click) */
.dropdown.active .dropdown-menu {
    display: flex;
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Ensure dropdown closes when not hovering (desktop) */
@media (min-width: 769px) {
    .dropdown:not(:hover):not(.active) .dropdown-menu {
        display: none;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px) scale(0.95);
    }
}

.dropdown-menu li {
    margin: 0;
    display: block;
    width: 100%;
    flex-shrink: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 8px;
    margin: 2px 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    width: calc(100% - 16px);
    box-sizing: border-box;
    white-space: nowrap;
}

.dropdown-menu li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.dropdown-menu li a:hover {
    background-color: #ffffff;
    color: #000000;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.dropdown-menu li a:hover::before {
    left: 100%;
}

/* Custom scrollbar for dropdown */
.dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.dropdown-menu::-webkit-scrollbar-track {
    background: transparent;
}

.dropdown-menu::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 3px;
}

.dropdown-menu::-webkit-scrollbar-thumb:hover {
    background-color: var(--primary-color);
}


/* Responsive Design - Media Queries */

/* Medium devices (tablets, landscape phones) */
@media (max-width: 992px) {
    .container {
        width: 95%;
    }

    header h1 {
        font-size: 2rem;
    }

    .hero h2 {
        font-size: 2.4rem;
    }
    .hero p {
        font-size: 1.2rem;
    }

    /* Adjust flex-basis for cards on index.html for 2 columns */
    .features > section {
        flex-basis: calc(50% - 25px); /* Two cards per row, accounting for gap */
    }

    .page-hero h2 {
        font-size: 2rem;
    }
    .page-hero p {
        font-size: 1.1rem;
    }

    .content-section h3 {
        font-size: 1.5rem;
    }
}

/* Medium screen menu adjustments */
@media (max-width: 1200px) {
    .main-nav ul li a {
        font-size: 0.85rem;
        padding: 6px 8px;
    }
    
    .main-nav ul li {
        margin: 0 4px;
    }
}

/* Tablet menu styles */
@media (max-width: 992px) {
    .main-nav {
        right: 60px;
        max-width: calc(100vw - 300px);
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .main-nav ul li {
        margin: 2px 4px;
    }
    
    .main-nav ul li a {
        font-size: 0.8rem;
        padding: 6px 8px;
    }
}

/* Small devices (portrait tablets, large portrait phones) */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }
    
    .header-content {
        height: 60px;
    }
    
    .logo-title-group {
        position: static;
        transform: none;
        justify-content: center;
        width: auto;
    }
    
    .site-header .logo {
        width: 50px;
    }
    
    .site-header h1 {
        font-size: 1.6rem;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .main-nav ul li {
        margin: 0;
    }
    
    .main-nav ul li a {
        font-size: 1rem;
        padding: 12px 20px;
        display: block;
        text-align: center;
        min-width: 150px;
    }
    
    /* Mobile dropdown adjustments */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: transparent;
        min-width: auto;
        padding: 0;
        margin-top: 10px;
    }
    
    .dropdown-menu li a {
        background-color: var(--secondary-color);
        margin: 4px 0;
        border-radius: 6px;
        font-size: 0.9rem;
        padding: 10px 16px;
    }

    .hero h2 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1.1rem;
    }

    /* Adjust flex-basis for cards on index.html for 1 column */
    .features > section {
        flex-basis: 100%; /* One card per row */
        /* margin-bottom: 25px; -- Already added as fallback */
    }
    /* No need to change main.container.features gap, as items will wrap */

    .page-hero h2 {
        font-size: 1.8rem;
    }
    .page-hero p {
        font-size: 1rem;
    }

    .content-section {
        padding: 20px;
    }
    .content-section h3 {
        font-size: 1.4rem;
    }
    .content-section ul {
        padding-left: 5px;
    }
}

/* Side Menu Styles */
.side-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100vh;
    background: var(--section-background-color);
    border-left: 1px solid var(--border-color);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.side-menu.open {
    right: 0;
}

.side-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.side-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.side-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--primary-color);
    color: var(--light-text-color);
}

.side-menu-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.side-menu-logo img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.side-menu-logo span {
    font-size: 1.2rem;
    font-weight: 600;
}

.side-menu-close {
    background: none;
    border: none;
    color: var(--light-text-color);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.side-menu-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.side-menu-content {
    flex: 1;
    padding: 20px 0;
}

.side-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.side-menu-list li {
    margin: 0;
}

.side-menu-list > li > a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.side-menu-list > li > a:hover,
.side-menu-list > li > a.active {
    background: #ffffff;
    border-left-color: #000000;
    color: #000000;
}

.side-menu-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.side-menu-arrow {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--text-color);
    transition: transform 0.3s ease;
}

.side-menu-dropdown.active .side-menu-arrow {
    transform: rotate(180deg);
}

.side-menu-submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    background: var(--secondary-color);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.side-menu-dropdown.active .side-menu-submenu {
    max-height: 500px;
}

.side-menu-submenu li a {
    display: block;
    padding: 12px 20px 12px 50px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.side-menu-submenu li a:hover {
    background: #ffffff;
    border-left-color: #000000;
    color: #000000;
}

.side-menu-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

.signin-button {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: var(--light-text-color);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.signin-button:hover {
    background: var(--primary-hover-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Side Menu Toggle Button */
.side-menu-toggle {
    display: flex;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    outline: none;
    box-shadow: none;
}

.side-menu-toggle:focus {
    outline: none;
    box-shadow: none;
}

.side-menu-toggle:hover {
    background-color: var(--secondary-color);
}

.side-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.side-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.side-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.side-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Simple Icons using CSS */
.side-menu-list i {
    margin-right: 12px;
    width: 20px;
    font-style: normal;
}

.icon-home::before { content: "🏠"; }
.icon-agents::before { content: "🤖"; }
.icon-products::before { content: "📦"; }
.icon-contact::before { content: "📧"; }
.icon-signin::before { content: "👤"; }

/* Mobile menu toggle button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.mobile-menu-toggle:hover {
    background-color: var(--secondary-color);
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Extra small devices (portrait phones) */
@media (max-width: 576px) {
    body {
        font-size: 14px;
    }
    .container { /* .container class itself, not specific to main.container.features */
        width: 100%;
        padding: 0 15px; 
    }
    /* Ensure main.container.features also gets its horizontal padding adjusted */
    main.container.features {
        padding-left: 15px;
        padding-right: 15px;
    }

    .site-header {
        padding: 15px 0;
    }
    
    .site-header .logo {
        width: 45px;
    }
    
    .site-header h1 {
        font-size: 1.4rem;
    }
    
    .mobile-menu-toggle {
        display: block;
        order: 1;
    }
    
    .main-nav {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--section-background-color);
        border-bottom: 1px solid var(--border-color);
        z-index: 1000;
        transform: none;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        width: 100%;
        background-color: var(--section-background-color);
        border-radius: 8px;
        padding: 15px 0;
        margin-top: 15px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    

    
    .hero {
        padding: 40px 15px;
    }
    .hero h2 {
        font-size: 1.8rem;
    }
    .hero p {
        font-size: 1rem;
    }

    .features > section {
        padding: 20px;
    }
    .features > section h2 {
        font-size: 1.5rem;
    }
    .features > section p {
        font-size: 0.95rem;
    }
    a.learn-more {
        padding: 10px 20px;
        font-size: 0.95rem;
    }

    .page-hero {
        padding: 30px 15px;
        margin-bottom: 25px;
    }
    .page-hero h2 {
        font-size: 1.6rem;
    }
    .page-hero p {
        font-size: 0.95rem;
    }

    .content-section {
        padding: 15px;
        margin-bottom: 20px;
    }
    .content-section h3 {
        font-size: 1.3rem;
    }
    .content-section ul li {
        font-size: 0.95rem;
    }

    footer {
        padding: 20px 15px;
        margin-top: 25px;
    }
    footer p {
        font-size: 0.9rem;
    }
}
