:root {
    --primary-color: #4263eb;
    --text-color: #333;
    --light-gray: #f8f9fa;
    --border-color: #e9ecef;
    --footer-color: #495057;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
ul, ol {
    padding-left: 2em;
    margin-bottom: 1em;
}
h1, h2 {
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    padding: 40px 0 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 40px;
}

.site-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.site-description {
    font-size: 1.2rem;
    color: #6c757d;
    margin-bottom: 20px;
}

nav {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

nav a {
    margin: 0 15px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

nav a:hover{
    color: darkgray;
}

nav a.active{
    color: black;
    font-weight: bold;
}

nav a.active:hover {
    color: #333; /* Keep active tab unchanged */
}



.post {
    margin-bottom: 60px;
}

.post-title {
    font-size: 2rem;
    /*margin-bottom: 10px;*/
    margin-bottom: 2px; 
    line-height: 1.1; 
}

.post-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s;
}

.post-title a:hover {
    color: darkgray;
}

.post-meta {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 20px;
    margin-top: 0 !important; /* Removes any extra space above */
}

.post-excerpt {
    margin-bottom: 20px;
}


.read-more {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.read-more:hover {
    opacity: 0.8;
}

.pagination {
    display: flex;
    justify-content: space-between;
    margin: 40px 0;
}

.pagination a, .pagination span {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.pagination a:hover {
    opacity: 0.8;
}

.pagination .disabled {
    color: #ced4da;
}

.featured-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 20px;
}

.sidebar {
    margin-top: 40px;
    background-color: var(--light-gray);
    padding: 20px;
    border-radius: 5px;
}

.sidebar h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.sidebar-section {
    margin-bottom: 30px;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.categories-list, .recent-posts-list {
    list-style: none;
}

.categories-list li, .recent-posts-list li {
    margin-bottom: 10px;
}

.categories-list a, .recent-posts-list a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s;
}

.categories-list a:hover, .recent-posts-list a:hover {
    color: darkgray;
}

footer {
    text-align: center;
    padding: 40px 0;
    margin-top: 60px;
    border-top: 1px solid var(--border-color);
    color: var(--footer-color);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    justify-content: center;
    margin-bottom: 20px !important;
}

.social-links a {
    display: flex;
    align-items: center;
    margin: 0 10px;
    color: var(--footer-color);
    text-decoration: none;
    transition: color 0.2s;
}

.social-links a svg {
    margin-right: 6px;
    width: 16px;
    height: 16px;
}

.social-links a:hover {
    color: darkgray;
}

@media (max-width: 768px) {
    .site-title {
        font-size: 2rem;
    }
    
    .post-title {
        font-size: 1.7rem;
    }
    
    .featured-image {
        height: 200px;
    }


}





.post-content ol,
.post-content ul {
    padding-left: 2em; /* Indents the list */
}


.post-content h1 {
    border-bottom: 1px solid #6c757d; /* Thin gray border for h1 */
    padding-bottom: 0.5em; 
    margin-bottom: 1em; 
}

.post-content h2 {
    border-bottom: 1px solid #6c757d; /* Thin gray border for h2 */
    padding-bottom: 0.5em; 
    margin-bottom: 1em; 
}

.post-content h3 {
    border-bottom: 1px solid var(--border-color); /* Light border for h3 */
    padding-bottom: 0.5em; 
    margin-bottom: 1em; 
} 

.post-content p {
    margin-bottom: 1em; /* Adjust this value for more/less space */
}

/* Projects page styles */
.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.page-header p {
    color: #6c757d;
    font-size: 1.1rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.project-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    background: white;
}

.project-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.project-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.project-content {
    padding: 20px;
}

.project-title {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--text-color);
}

.project-preview {
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 15px;
}

.external-link-indicator {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9rem;
}

.project-link:hover .external-link-indicator {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
}

