/* General Styles */
body {
    background-image: url('images/blog_bg.jpg'); /* Path to your image */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    
}

a {
    text-decoration: none;
    color: inherit;
}

.site-header {
    display: flex;
    align-items: center; /* Align items vertically */
    justify-content: space-between; /* Space out the items */
    padding: 10px 20px;
    background-color: #fff; /* Optional, can change based on your theme */
    position: relative;
}


/* Centering Title and Description */
.site-title {
    flex-grow: 1;
    
    text-align: left; 
    font-size: 1.8em;
    margin: 0;
}

.site-description {
    margin-left: 20px;
    font-size: 1.2em;
}

/* Navigation Menu */
.menu-container {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.menu {
    text-decoration: none;
    color: #333;
    font-size: 1em;
}

.hashnode-button {
    display: inline-block;
    margin-right: 50px;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #1a73e8;
    color: white;
    border-radius: 40px;
    text-transform: uppercase;
}
/* Theme Toggle Button */
.theme-toggle-btn {
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    position: absolute;
    top: 50%;
    right: 20px; /* Adjust the right margin to position the toggle on the right */
    transform: translateY(-50%);
}


.post-container {
    max-width: 800px;
    margin: 30px auto;
}

.post {
    margin-bottom: 40px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.post-title {
    font-size: 1.8em;
    color: #0073e6;
}

.post-info {
    font-size: 0.9em;
    color: #888;
}

.post-feature-image {
    display: block;
    height: 200px;
    background-size: cover;
    background-position: center;
    margin-top: 15px;
    border-radius: 8px;
}

.post-abstract {
    margin-top: 15px;
}

.pagination-container {
    text-align: center;
    margin-top: 30px;
}

/* Light Mode (default) */
body {
    background-color: #ffffff;
    color: #333;
    transition: all 0.3s ease;
}

.site-header {
    background-color: #f8f9fa;
}

.site-title {
    color: #000;
}

.post {
    background-color: #fff;
    color: #333;
    border: 1px solid #ddd;
}

.post-title {
    color: #0073e6;
}

.post-info {
    color: #888;
}

/* Dark Mode */
body[data-theme="dark"] {
    background-color: #121212;
    color: #e0e0e0;
}

body[data-theme="dark"] .site-header {
    background-color: #333;
}

body[data-theme="dark"] .site-title {
    color: #fff;
}

body[data-theme="dark"] .post {
    background-color: #333;
    color: #e0e0e0;
    border: 1px solid #555;
}

body[data-theme="dark"] .post-title {
    color: #64b5f6;
}

body[data-theme="dark"] .post-info {
    color: #bbb;
}

/* Footer */
#copyright {
    background-color: black;
    padding: 15px;
    text-align: center;
}
