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

/* Variables */
:root {
    --primary-color: #047866;
    --text-color: #d1d5db;
    --bg-color: #1f2937;
    --sidebar-bg: #2d3748;
    --accent-color: #c5e232;
    --max-width: 1200px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* Ensures body takes full height */
}

/* Ensure container fills available space */
.container {
    display: flex;
    flex-direction: row;
    grid-template-columns: 250px 1fr;
    /* flex: 1; */
    /* Makes container fill the remaining space */
    max-width: var(--max-width);
}

/* Sidebar Styles */
.sidebar {
    background-color: var(--sidebar-bg);
    padding: 2rem;
    position: sticky;
    top: 0;
    height: 100vh;
    border-right: 1px solid #4b5563;
}

.sidebar h2 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin-bottom: 0.75rem;
}

.sidebar a {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 0.375rem;
    display: block;
    transition: all 0.2s ease;
}

.sidebar a:hover {
    background-color: var(--accent-color);
    color: white;
}

/* Main Content Styles */
.main-content {
    padding: 2rem;
}

header {
    margin-bottom: 3rem;
}

h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section {
    margin-bottom: 4rem;
}

h2 {
    font-size: 1.875rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

p {
    margin-bottom: 1.5rem;
    color: #e5e7eb;
}

/* Blog Posts Container */
#blog-posts {
    display: grid;
    gap: 2rem;
}

.blog-post {
    background-color: #374151;
    color: var(--text-color);
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.blog-post:hover {
    transform: translateY(-2px);
}

/* Footer Styles */
footer {
    background-color: var(--sidebar-bg);
    padding: 1.5rem;
    text-align: center;
    border-top: 1px solid #4b5563;
    margin-top: auto;
    position: fixed;
    bottom: 0;
    width: 100%;

}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.social-links a {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: color 0.2s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

/* Profile Styles */

.social-links-profile {
    display: flex;
    gap: 1rem;
    justify-content: left;
    margin-top: 1rem;
}

.social-links-profile a {
    color: var(--text-color);
    font-size: 2rem;
    transition: color 0.2s ease;
}

.social-links-profile a:hover {
    color: var(--primary-color);
}

.profile-image img {
    width: 115px;
    height: 115px;
    border-radius: 50%;
    object-fit: cover;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #4b5563;
    }

    .main-content {
        padding: 1.5rem;
    }
}