/* Base Styles */
:root {
    --primary-color: #2563eb;
    --text-color: #1f2937;
    --light-gray: #f3f4f6;
    --border-color: #e5e7eb;
    --border-radius: 8px;
    --box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

html, body {
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f9fafb;
    padding: 0;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

/* Header */
.main-header {
    background-color: white;
    box-shadow: var(--box-shadow);
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    margin: 0 auto;
    display: flex;
    justify-content: center;
    flex: 1;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
    white-space: nowrap;
}

.logo-image {
    height: 120px;
    width: auto;
    margin-right: 0;
    border-radius: 4px;
}

.logo .dynamic-domain {
    font-size: 1.25rem;
    font-weight: 700;
}

.main-nav {
    display: flex;
    gap: 1.5rem;
}

.main-nav a {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.main-nav a.active,
.main-nav a:hover {
    color: var(--primary-color);
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

/* Main Content Layout */
.content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 5%;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    flex: 1 0 auto;
    width: 100%;
}

/* Styles for content-wrapper on the Contact page */
.page-contact .content-wrapper {
    display: flex; /* Override the default grid display */
    flex-direction: column;
    align-items: center; /* Center .main-content if it has a max-width */
    padding: 2rem 1rem;  /* Specific padding for these pages */
    max-width: 1000px;   /* Specific max-width for these wrappers */
    margin: 0 auto;      /* Center the wrapper itself */
    grid-template-columns: none; /* Ensure no grid columns from general .content-wrapper rule */
    gap: 0; /* Ensure no gap from general .content-wrapper rule */
}

/* Main Content - Styles for the Contact Page */
.page-contact .main-content {
    width: 100%; /* Occupy full width of its flex parent */
    max-width: 800px;    /* Specific max-width for content like forms */
    margin: 0;           /* Centering is handled by parent's align-items: center */
    padding: 2rem 0;     /* Specific padding for content like forms */
}

/* Contact Page Specific Styles */
.page-contact .main-content > h1:first-child {
    text-align: center;
    margin-bottom: 1rem;
}

.page-contact .main-content > p:first-of-type {
    text-align: left; /* Or center, depending on desired look */
    margin: 0 auto 2rem;
    color: #4b5563;
    max-width: 600px; /* Match form width or be slightly wider */
    padding: 0 1rem; /* Adjust if needed */
    box-sizing: border-box;
}

/* Contact Form Styles (scoped to .page-contact) */
.page-contact .contact-form {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 2rem; /* Centered, with bottom margin */
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.page-contact .contact-form input[type="text"],
.page-contact .contact-form input[type="email"],
.page-contact .contact-form input[type="tel"],
.page-contact .contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem; /* Ensure spacing between fields */
    border: 1px solid #e5e7eb; /* var(--border-color) */
    border-radius: 4px; /* var(--border-radius) or specific value */
}

.page-contact .contact-form textarea {
    height: 150px;
    resize: vertical;
}

.page-contact .contact-form button[type="submit"] {
    display: block;
    width: 100%;
    padding: 0.75rem;
    background: #2563eb; /* var(--primary-color) */
    color: white;
    border: none;
    border-radius: 4px; /* var(--border-radius) or specific value */
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.2s;
}

.page-contact .contact-form button[type="submit"]:hover {
    background: #1d4ed8; /* Darker shade of primary */
}

/* Article Grid */
.main-content h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #111827;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.article-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.article-category {
    display: inline-block;
    background-color: var(--light-gray);
    color: #4b5563;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    margin-bottom: 0.75rem;
    align-self: flex-start;
}

.article-card h2 {
    font-size: 1.25rem;
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
}

.article-card h2 a {
    color: #111827;
}

.article-card h2 a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.article-card p {
    color: #4b5563;
    margin: 0 0 1rem 0;
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    padding-top: 0.75rem;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: #6b7280;
}

/* Article Card Enhancements */
.article-card .article-content {
    padding: 15px;
}

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

.article-card h2 a:hover {
    color: #007bff;
}

.article-category {
    font-size: 0.8em;
    color: #777;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.article-banner-image {
    width: 100%;
    height: auto;
    max-height: 300px; /* Limit banner height if needed */
    object-fit: cover; /* Ensures the image covers the area nicely */
    margin-bottom: 15px;
}

.article-meta-info {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 20px;
}

.continue-reading-btn {
    display: inline-block;
    background: #22c55e;
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(34,197,94,0.08);
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
    cursor: pointer;
    margin-top: 0.7rem;
}
.continue-reading-btn:hover {
    background: #16a34a;
    color: #fff;
    text-decoration: none;
}

/* Form Styles */
form {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

form div {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: var(--border-radius);
    transition: border-color 0.2s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

input[type="checkbox"] {
    margin-right: 0.5rem;
}

button[type="submit"] {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.2s;
}

button[type="submit"]:hover {
    background-color: #1d4ed8;
}

#formMessage {
    margin: 1rem 0;
    padding: 1rem;
    border-radius: var(--border-radius);
    display: none;
}

/* Article Page Specific Layout */
.article-layout {
    display: block;
    max-width: 900px;
    margin: 20px auto;
    padding: 0 20px;
}

.article-layout .main-content {
    flex: 2 1 auto; /* Grow 2, Shrink 1, Basis auto */
    min-width: 450px; /* Increased min-width for main content */
    background-color: #fff; /* Or var(--card-bg) if defined */
    padding: 20px; /* Or var(--space-4) */
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.article-layout .main-content p {
    margin-bottom: 1em;
}

.article-layout .sidebar {
    position: static; /* Crucial: Resets sticky positioning from global .sidebar style */
    top: auto;        /* Reset top value */
    align-self: flex-start; /* Align to the start of the flex container */
    flex: 1.2 1 auto; /* Grow 1.2, Shrink 1, Basis auto */
    min-width: 300px; /* Increased min-width for the sidebar */
    /* The .sidebar-section styles below should apply for content styling */
}

.article-meta .author {
    font-weight: 500;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 5rem;
    align-self: start;
}

.sidebar-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--box-shadow);
}

.sidebar h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #111827;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.popular-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.popular-post {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.post-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    background-color: var(--light-gray);
    color: #4b5563;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 600;
    flex-shrink: 0;
}

.post-content h4 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.post-content h4 a {
    color: #111827;
}

.post-date {
    font-size: 0.8rem;
    color: #6b7280;
}

/* Categories List */
.categories-list {
    list-style: none;
}

.categories-list li {
    margin-bottom: 0.5rem;
}

.categories-list a {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    color: #4b5563;
    transition: color 0.2s, padding-left 0.2s;
}

.categories-list a:hover {
    color: var(--primary-color);
    padding-left: 0.5rem;
}

.categories-list span {
    background-color: var(--light-gray);
    padding: 0.1rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
}

/* Subscribe Form */
.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.subscribe-form input[type="email"] {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.subscribe-form input[type="email"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.subscribe-form button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.subscribe-form button:hover {
    background-color: #1d4ed8;
}

.subscribe-form button:active {
    transform: translateY(1px);
}

/* Footer */
footer {
    background: #22c55e;
    color: #fff;
    padding: 2rem 5%;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #e0e7ef;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #fff;
    text-decoration: none;
}

.copyright {
    font-size: 0.85rem;
    text-align: center;
    color: #c7d2fe;
}

/* Contact Page Styles */
.contact-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-top: 1.5rem;
}

.contact-form .form-group {
    margin-bottom: 1.25rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.checkbox-group input[type="checkbox"] {
    margin: 0;
}

.submit-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.submit-button:hover {
    background-color: #1d4ed8;
}

/* Privacy Checkbox */
.privacy-checkbox {
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
}

.privacy-checkbox input[type="checkbox"] {
    margin: 0 8px 0 0;
    width: auto;
}

.privacy-checkbox label {
    display: inline;
    margin: 0;
}

.privacy-checkbox a {
    color: var(--primary-color);
    text-decoration: underline;
}

#formMessage {
    display: none;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
    background-color: #e0f2fe;
    color: #0369a1;
}

/* Page Wrapper */
.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.footer-content {
    width: 1000px;
    min-width: 1000px;
    margin: 0 auto;
}

/* Styles for Legal/Text Pages (e.g., Terms, Privacy) */
.page-legal .content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
    max-width: 1000px; /* Adjust as needed, allows main-content to be 800px with some space */
    margin: 0 auto;
    grid-template-columns: none; /* Override general .content-wrapper grid if applicable */
    gap: 0;
    flex: 1 0 auto; /* Ensure it takes up available space if body is flex column */
}

.page-legal .main-content {
    width: 100%;
    max-width: 1000px; /* Updated from 980px */
    margin: 0; /* Centering handled by parent's align-items: center */
    padding: 2rem 0; /* Vertical padding for the content block */
    background-color: #fff; /* Optional: give it a white background if body is not white */
    box-shadow: var(--box-shadow); /* Optional: consistent shadow with other content blocks */
    border-radius: var(--border-radius); /* Optional: consistent border radius */
}

.page-legal .main-content h1,
.page-legal .main-content h2,
.page-legal .main-content h3 {
    margin-top: 1.5em;
    margin-bottom: 0.75em;
    padding: 0 1.5rem; /* Add some horizontal padding for headings */
}

.page-legal .main-content p,
.page-legal .main-content ul,
.page-legal .main-content ol {
    margin-bottom: 1em;
    line-height: 1.7;
    padding: 0 1.5rem; /* Add some horizontal padding for text blocks */
}

.page-legal .main-content ul,
.page-legal .main-content ol {
    list-style-position: inside;
}

.page-legal .main-content > *:first-child {
    margin-top: 0; /* Remove top margin from the very first element in main-content */
}

.page-legal .main-content > *:last-child {
    margin-bottom: 0; /* Remove bottom margin from the very last element in main-content */
}

/* Styles for tables within legal pages */
.page-legal table {
    width: 95%; /* Adjust width to less than 100% to see margins effectively */
    margin-left: auto; /* Center the table */
    margin-right: auto; /* Center the table */
    border-collapse: collapse;
    font-size: 0.6em; /* Reduce font size for all text in table - updated from 0.9em */
    margin-top: 1em; /* Add some space above the table */
    margin-bottom: 1em; /* Add some space below the table */
}

.page-legal th,
.page-legal td {
    border: 1px solid #000;
    padding: 2px; /* Reduced padding from 8px */
    text-align: left;
}

.page-legal th {
    background-color: #f2f2f2;
}

/* Modern Featured Article Section */
.featured-article-section {
    width: 100%;
    padding: 0;
    margin: 0 0 2.5rem 0;
    background: none;
}
.featured-article-bg {
    position: relative;
    min-height: 380px;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.13);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
}
.featured-article-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(0,0,0,0.68) 60%, rgba(37,99,235,0.45) 100%);
    z-index: 1;
}
.featured-article-content-modern {
    position: relative;
    z-index: 2;
    color: #fff;
    padding: 2.5rem 3.5rem 2.5rem 2.5rem;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.featured-badge {
    display: inline-block;
    background: #22c55e;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.35em 1.1em;
    border-radius: 999px;
    margin-bottom: 1.2rem;
    letter-spacing: 0.04em;
    box-shadow: 0 2px 8px rgba(34,197,94,0.13);
}
.featured-article-content-modern h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.1rem;
    line-height: 1.15;
}
.featured-article-content-modern h2 a {
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.featured-article-content-modern p {
    font-size: 1.18rem;
    margin-bottom: 2rem;
    color: #e0e7ef;
    text-shadow: 0 1px 4px rgba(0,0,0,0.13);
}
.featured-continue-btn {
    background: #22c55e;
    color: #fff;
    font-weight: 700;
    font-size: 1.08rem;
    padding: 0.85em 2.2em;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(34,197,94,0.13);
    border: none;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
    letter-spacing: 0.01em;
}
.featured-continue-btn:hover {
    background: #16a34a;
    color: #fff;
}
@media (max-width: 900px) {
    .featured-article-bg {
        min-height: 260px;
    }
    .featured-article-content-modern {
        padding: 1.5rem 1.2rem;
        max-width: 100%;
    }
    .featured-article-content-modern h2 {
        font-size: 1.5rem;
    }
}
@media (max-width: 600px) {
    .featured-article-bg {
        min-height: 180px;
    }
    .featured-article-content-modern {
        padding: 1rem 0.7rem;
        align-items: center;
        text-align: center;
    }
    .featured-badge {
        margin-bottom: 0.7rem;
    }
    .featured-article-content-modern h2 {
        font-size: 1.1rem;
    }
    .featured-article-content-modern p {
        font-size: 1rem;
    }
}

/* Content Wrapper with Sidebar */
.content-wrapper.with-sidebar {
    grid-template-columns: 2.2fr 0.8fr;
    gap: 2.5rem;
}

/* Improved Popular Posts Sidebar */
.popular-posts-sidebar {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(37,99,235,0.06);
    padding: 1.2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    border: 1px solid #e5e7eb;
    margin-top: 0.5rem;
}
.popular-posts-sidebar h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}
.popular-posts-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    width: 100%;
    align-items: center;
}
.popular-post-item {
    display: block;
    width: 100%;
    max-width: 210px;
    background: #f8fafc;
    border-radius: 10px;
    padding: 0.7rem 0.7rem 0.9rem 0.7rem;
    box-shadow: 0 1px 4px rgba(37,99,235,0.04);
    border: 1px solid #e5e7eb;
    text-align: center;
    margin: 0 auto;
    transition: box-shadow 0.18s, background 0.18s;
}
.popular-post-item:hover {
    box-shadow: 0 4px 16px rgba(37,99,235,0.10);
    background: #e0f7ef;
}
.popular-post-item img {
    width: 100%;
    max-width: 170px;
    height: 90px;
    object-fit: cover;
    border-radius: 7px;
    margin-bottom: 0.7rem;
    background: #e5e7eb;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.popular-post-info {
    width: 100%;
}
.popular-post-info span {
    color: #1e293b;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.3;
    display: block;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    margin: 0 auto;
}
@media (max-width: 1100px) {
    .popular-post-item {
        max-width: 160px;
    }
    .popular-post-item img {
        max-width: 120px;
        height: 70px;
    }
}
@media (max-width: 900px) {
    .article-layout {
        padding: 0 8px;
        margin: 0 auto;
    }
    .popular-posts-sidebar {
        max-width: 100%;
        min-width: 0;
        margin: 2.5rem auto 0 auto;
    }
}

.sidebar-categories {
    margin-top: 2.2rem;
    width: 100%;
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.2rem 0.7rem 1.2rem 0.7rem;
    box-shadow: 0 1px 4px rgba(37,99,235,0.04);
    border: 1px solid #e5e7eb;
    text-align: center;
}
.sidebar-categories h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.1rem;
    color: var(--primary-color);
    letter-spacing: -0.5px;
    text-align: center;
}
.sidebar-categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    align-items: center;
}
.sidebar-categories li {
    margin: 0;
}
.sidebar-categories a {
    display: inline-block;
    color: #2563eb;
    background: #e0e7ef;
    font-size: 0.98rem;
    font-weight: 500;
    text-decoration: none;
    padding: 0.45em 1.3em;
    border-radius: 999px;
    transition: background 0.18s, color 0.18s;
    box-shadow: 0 1px 2px rgba(37,99,235,0.03);
    border: 1px solid #e5e7eb;
}
.sidebar-categories a:hover {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}