:root {
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --primary: #0f766e;
    --primary-hover: #115e59;
    --border: #e2e8f0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    min-height: 100vh;
}

/* Sidebar Navigation */
aside {
    width: 260px;
    background-color: var(--card-bg);
    border-right: 1px solid var(--border);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: fixed;
    height: 100vh;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    margin-bottom: 2rem;
    display: block;
}

nav ul {
    list-style: none;
}

nav ul li {
    margin-bottom: 0.75rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

nav ul li a:hover, nav ul li a.active {
    color: var(--primary);
    background-color: #f0fdfa;
}

/* Main Content Wrapper - Expanded for Full Desktop Screen Usage */
main {
    margin-left: 260px;
    flex: 1;
    padding: 3rem 4rem;
    max-width: 1400px;
    width: calc(100% - 260px);
}

.content-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 3rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    width: 100%;
}

h1 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

h2 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

/* Blog Links Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.blog-item {
    background: #f8fafc;
    border: 1px solid var(--border);
    padding: 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-main);
    display: block;
    transition: border-color 0.2s ease;
}

.blog-item:hover {
    border-color: var(--primary);
}

.blog-item h3 {
    font-size: 1rem;
    margin-bottom: 0.35rem;
    color: var(--primary);
}

.blog-item p {
    font-size: 0.8125rem;
    margin-bottom: 0;
}

/* AdSense Placeholder Styling */
.ad-slot {
    background-color: #f1f5f9;
    border: 2px dashed var(--border);
    border-radius: 8px;
    text-align: center;
    padding: 1.5rem;
    margin: 2rem 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Footer / Legal Links */
footer {
    font-size: 0.8125rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}

footer a {
    color: var(--text-muted);
    text-decoration: underline;
    margin-right: 1rem;
}

/* Responsive Design for Mobile */
@media (max-width: 768px) {
    body {
        flex-direction: column;
    }
    aside {
        position: relative;
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 1rem 1.5rem;
    }
    .logo {
        margin-bottom: 1rem;
    }
    main {
        margin-left: 0;
        padding: 1.5rem;
        width: 100%;
    }
    .content-card {
        padding: 1.5rem;
    }
}