/* Basic Reset & Defaults */
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    font-size: 16px; /* Base font size */
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 1.2em;
    margin-bottom: 0.6em;
    color: #2c3e50; /* Dark blue-gray */
}

p {
    margin-bottom: 1em;
}

a {
    color: #e67e22; /* Durametric Orange */
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block; /* Prevent extra space below images */
}

ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 1em;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.site-header {
    background-color: #fff;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
    position: sticky; /* Make header sticky */
    top: 0;
    z-index: 1000; /* Ensure header is above other content */
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.logo img {
    max-height: 50px; /* Adjust as needed */
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap; /* Allow links to wrap if needed */
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: #333;
    font-weight: 500;
    padding: 5px 0;
    display: block;
    position: relative; /* For underline effect */
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #e67e22;
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #e67e22;
    text-decoration: none;
}

.nav-links a:hover::after {
     width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none; /* Hidden by default */
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

/* Main Content Area */
.main-content {
    padding: 20px 0;
    display: flex;
    flex-wrap: wrap; /* Wrap columns on smaller screens */
    gap: 30px; /* Space between main content and sidebar */
}

.content-area {
    flex: 3; /* Takes up 3 parts of the space */
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.sidebar {
    flex: 1; /* Takes up 1 part of the space */
    min-width: 200px; /* Ensure sidebar doesn't get too narrow */
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    height: fit-content; /* Make sidebar height adjust to content */
}

.sidebar h5 {
    margin-top: 0;
    color: #e67e22;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar li {
    margin-bottom: 0.5em;
}

/* Footer */
.site-footer {
    background-color: #2c3e50; /* Dark blue-gray */
    color: #ecf0f1; /* Light gray */
    text-align: center;
    padding: 20px 0;
    margin-top: 30px;
    font-size: 0.9em;
}

.site-footer a {
    color: #fff; /* White links in footer */
    font-weight: bold;
}

.site-footer a:hover {
    color: #e67e22; /* Orange on hover */
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav {
        width: 100%;
        justify-content: space-between; /* Pushes toggle to the right */
        margin-top: 10px;
    }

    .menu-toggle {
        display: block; /* Show hamburger icon */
    }

    .nav-links {
        display: none; /* Hide links by default */
        flex-direction: column;
        width: 100%;
        background-color: #fff;
        position: absolute;
        top: 65px; /* Adjust based on header height */
        left: 0;
        padding: 10px 0;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        border-top: 1px solid #ddd;
    }

    .nav-links.active {
        display: flex; /* Show links when active */
    }

    .nav-links li {
        margin-left: 0;
        text-align: center;
        border-bottom: 1px solid #eee;
    }
    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        padding: 10px 15px;
        width: 100%;
        box-sizing: border-box;
    }
     .nav-links a:hover::after {
        width: 0; /* Disable underline effect on mobile */
    }
    .nav-links a:hover {
         background-color: #f9f9f9;
    }

    .main-content {
        flex-direction: column; /* Stack main content and sidebar */
    }

    .content-area, .sidebar {
        flex: 1 1 100%; /* Take full width */
    }
}

/* Utility Classes */
.orange {
    color: #e67e22;
}

/* Specific element adjustments if needed */
.content-area img {
    margin-bottom: 15px;
}

.content-area h5 {
    color: #e67e22; /* Orange headings in content */
    margin-top: 1.5em;
}
.content-area h5:first-of-type {
    margin-top: 0;
}

