/* Basic Reset & Defaults */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

ul {
    list-style: none;
}

/* Header */
.site-header {
    background-color: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

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

.logo a {
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

.main-nav ul {
    display: flex;
}

.main-nav li {
    margin-left: 20px;
}

.main-nav a {
    color: #555;
    font-weight: 500;
}
.main-nav a:hover {
    color: #007bff;
    text-decoration: none;
}

/* Main Content Area Layout */
.main-content-area {
    display: flex;
    gap: 30px; /* Space between main content and sidebar */
    margin-top: 30px;
    margin-bottom: 30px;
}

.content {
    flex: 3; /* Takes up 3 parts of the available space */
}

.sidebar {
    flex: 1; /* Takes up 1 part of the available space */
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
    height: fit-content; /* Make sidebar only as tall as its content */
}

/* Blog Post Styling */
.post {
    background-color: #fff;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
}

/* Adjust heading for single post view */
.single-post h1 {
    font-size: 2.2em; /* Make title larger on single post page */
    margin-bottom: 10px;
    line-height: 1.3;
}

/* Use h2 for post list titles, keep existing styles */
.post h2 {
    margin-bottom: 10px;
}

.post h2 a {
    color: #333;
    text-decoration: none;
}

.post h2 a:hover {
    color: #007bff;
}

.post-meta {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 15px;
}

/* Add some spacing for content within single post */
.single-post .post-content {
    margin-top: 20px;
}

.single-post .post-content p {
    margin-bottom: 1.2em;
}

.single-post .post-content h2 {
    font-size: 1.6em;
    margin-top: 1.8em;
    margin-bottom: 0.8em;
}

.single-post .post-content blockquote {
    margin: 1.5em 0;
    padding: 10px 20px;
    border-left: 4px solid #007bff;
    background-color: #f8f9fa;
    color: #555;
    font-style: italic;
}

.single-post .post-content ul,
.single-post .post-content ol {
    margin: 1.2em 0 1.2em 25px;
    padding-left: 15px;
}
.single-post .post-content ul li,
.single-post .post-content ol li {
    margin-bottom: 0.5em;
    list-style: disc; /* Use default disc for ul */
}
.single-post .post-content ol li {
    list-style: decimal; /* Use default decimal for ol */
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 15px;
    background-color: #007bff;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9em;
}

.read-more:hover {
    background-color: #0056b3;
    text-decoration: none;
}


/* Sidebar Widgets */
.widget {
    margin-bottom: 25px;
}

.widget h3 {
    font-size: 1.1em;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

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

.widget ul li a {
    color: #555;
}

.widget ul li a:hover {
    color: #007bff;
}


/* Footer */
.site-footer {
    background-color: #343a40;
    color: #ccc;
    padding: 20px 0;
    margin-top: 40px;
    font-size: 0.9em;
}

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

.footer-nav ul {
    display: flex;
}

.footer-nav li {
    margin-left: 15px;
}

.footer-nav a {
    color: #ccc;
}

.footer-nav a:hover {
    color: #fff;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .main-content-area {
        flex-direction: column;
    }

    .sidebar {
        margin-top: 20px; /* Add some space when stacked */
    }

    .site-header .container,
    .site-footer .container {
        flex-direction: column;
        text-align: center;
    }

    .main-nav {
        margin-top: 10px;
    }

     .main-nav ul,
     .footer-nav ul {
        justify-content: center;
     }

    .main-nav li {
        margin: 0 10px;
    }

     .footer-nav {
        margin-top: 10px;
     }
      .footer-nav li {
        margin: 0 8px;
    }
}