/* Minimalist Style Sheet */

/* Fonts and Resets */
html, body {
    box-sizing: border-box;
    font-size: 16px; /* Base font size */
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    line-height: 1.6;
    color: #333;
    background: #fff;
    overflow-x: hidden; /* Prevents horizontal scrolling */
}

*, *::before, *::after {
    box-sizing: inherit;
    margin: 0;
    padding: 0;
}

/* Header */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2%;
    border-bottom: 1px solid #ddd;
    background-color: #eff0e6;
}

.site-logo {
    height: 40px; /* Adjusted logo size for mobile */
}

.site-nav a {
    text-decoration: none;
    color: #333;
    margin-left: 2rem;
    font-size: 0.9rem;
}

/* Hero Section */
#hero {
    text-align: center;
    padding: 4rem 2%;
    margin: 0; /* Removed negative margins */
}

#hero h1 {
    font-weight: 400;
    font-size: 2rem;
}

#hero p {
    color: #555;
    margin-top: 1rem;
}

.cta {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin-top: 2rem;
    border: 1px solid #333;
    text-decoration: none;
    color: #333;
    font-size: 0.8rem;
}

/* Solutions Section */
#solutions {
    padding: 2rem 5%; /* Adjusted for mobile responsiveness */
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

#solutions h2 {
    font-weight: 400;
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

#solutions p {
    font-size: 0.9rem;
    color: #555;
    padding: 10px;
}

/* Articles Grid */
.articles-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 2rem 2%;
    gap: 2rem; /* Adjust gap between articles */
}

.article {
    width: calc(33.333% - 2rem); /* Subtract the gap to calculate width */
    background-color: #fff;
    border: 1px solid #ddd;
    margin-bottom: 2rem; /* Margin at the bottom of each article */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional shadow for depth */
}

.article img {
    width: 100%;
    display: block;
}

.article h3, .article p, .article time {
    padding: 0.5rem;
}

.article h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 400;
}

.article p {
    font-size: 0.9rem;
    color: #666;
}

.article time {
    font-size: 0.8rem;
    color: #999;
}

/* Responsive Layout for Articles */
@media (max-width: 1000px) {
    .article {
        width: calc(50% - 2rem); /* 2 articles per row */
    }
}

@media (max-width: 600px) {
    .article {
        width: 100%; /* 1 article per row */
    }
}

/* Footer */
footer {
    text-align: center;
    padding: 1rem 0;
    font-size: 0.8rem;
    color: #555;
    border-top: 1px solid #ddd;
    background-color: #ffffff;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    /* Hide sidebar on mobile */
    #sidebar {
        display: none;
    }

    /* Show dropdown menu on mobile */
    .mobile-dropdown {
        display: block;
        width: 90%; /* Slightly reduced from 100% to provide padding */
        padding: 10px;
        margin: 1rem auto; /* Centers the dropdown */
    }

    #main-content {
        margin: 0 1rem; /* Adds side margins for content padding */
    }

    .site-nav a {
        margin-left: 0.5rem; /* Adjusts navigation links spacing */
        font-size: 1rem; /* Larger font for easier tapping */
    }
}

/* General Layout */
.container {
    display: flex;
    flex-direction: row; /* Keep row for desktop */
    min-height: 100vh;
}

/* Header */
.site-header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: #eff0e6;
    padding: 1rem 2%;
    border-bottom: 1px solid #ddd;
}

/* Sidebar */
#sidebar {
    width: 400px;
    position: fixed;
    top: 60px; /* Adjust to be below header */
    left: 0;
    height: calc(100vh - 60px); /* Height adjustment */
    padding: 1rem;
    overflow-y: auto;
    display: block; /* Make sure it's visible on desktop */
    padding-top: 50px;
    padding-left: 45px;
}

/* Main Content */
#main-content {
    margin-left: 200px; /* Align with sidebar width */
    padding: 80px 20px 20px; /* Top padding adjusted to not hide content below header */
    overflow-y: auto;
    width: calc(100% - 200px); /* Adjust width to account for sidebar */
    padding-right: 400px;
    padding-top: 120px
}

/* Mobile Dropdown - Adjust for visibility */
.mobile-dropdown {
    display: none; /* Hidden by default, shown in media query */
    width: 100%;
    padding: 8px 10px;
    margin-top: 100px; /* Position below header */
    font-size: 0.9rem;
    border: 1px solid #ccc;
    background-color: #f8f8f8;
    position: relative;
    z-index: 10;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    /* Stack elements vertically on mobile */
    .container {
        flex-direction: column;
    }

    /* Hide sidebar and adjust main content for mobile */
    #sidebar {
        display: none;
    }

    #main-content {
        margin-left: 0;
        width: 100%; /* Full width */
        padding: 20px; /* Consistent padding */
    }

    /* Ensure the dropdown is visible on mobile */
    .mobile-dropdown {
        display: block;
    }
}

/* Additional responsiveness for articles */
@media (max-width: 1000px) {
    .article {
        width: 50%; /* Adjustments for medium screens */
    }
}

@media (max-width: 600px) {
    .article {
        width: 100%; /* Full width on smaller screens */
    }
}

/* Increasing specificity for desktop styles, example */
html body .site-header {
    padding: 1rem 2% !important;  /* Overriding padding for desktop */
}

html body .article {
    width: calc(33.333% - 2rem) !important; /* Ensuring desktop styles apply */
}
