body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #444;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    line-height: 1.6;
    font-weight: 400;
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
}

.sidebar {
    width: 240px;
    background-color: #f8f9fa;
    min-height: 100vh;
    padding: 25px;
    position: fixed;
    border-right: 1px solid #eee;
    display: flex;
    flex-direction: column;
    padding-top: 120px;
}

.main-content {
    margin-left: 290px;
    padding: 40px;
    width: calc(100% - 330px);
    max-width: 800px;
}

/* Post page specific styles */
.post-page .main-content {
    margin-left: 290px;
    padding: 40px;
    width: calc(100% - 330px);
    max-width: 800px;
}

/* About page specific styles */
.about-page .main-content {
    margin-left: 290px;
    padding: 40px;
    width: calc(100% - 330px);
    max-width: 800px;
}

.logo {
    font-size: 18px;
    font-weight: 400;
    color: #111;
    text-decoration: none;
    display: block;
    margin-bottom: 25px;
    transition: color 0.2s, border-bottom-color 0.2s;
    border-bottom: 1px solid transparent;
    letter-spacing: 0.2px;
}

.logo:hover {
    color: #0066cc;
    border-bottom-color: #0066cc;
}

.search-container {
    margin: 25px 0;
    width: 100%;
    box-sizing: border-box;
}

.search-box {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.search-input {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 12px 8px 32px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    transition: border-color 0.2s;
    font-weight: 400;
    letter-spacing: 0.2px;
}

.search-input:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: none;
}

@media (min-width: 769px) {
    .search-input:focus {
        box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
    }
}

.social-links {
    margin: 30px 0;
}

.social-link {
    display: flex;
    align-items: center;
    color: #666;
    text-decoration: none;
    padding: 6px 0;
    transition: color 0.2s;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.2px;
}

.social-link i {
    width: 20px;
    font-size: 16px;
}

.social-link span {
    margin-left: 8px;
}

.social-link:hover {
    color: #0066cc;
}

.blog-post {
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}

.blog-post h2 {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 15px;
    color: #2a5a8c;
    letter-spacing: 0.2px;
    line-height: 1.4;
    border-bottom: 1px solid transparent;
    display: inline-block;
    transition: color 0.2s, border-bottom-color 0.2s;
}

.blog-post-link:hover h2 {
    color: #0066cc;
    border-bottom-color: #0066cc;
}

.blog-preview {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
    margin: 20px 0;
    overflow: hidden;
    position: relative;
    max-height: 200px;
    letter-spacing: 0.1px;
}

.blog-preview.truncated::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(transparent, white);
}

.post-meta {
    color: #666;
    font-size: 14px;
}

.about-link {
    display: inline-block;
    margin-top: 20px;
    color: #0066cc;
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.2px;
}

.search-results {
    margin-top: 8px;
    max-height: 300px;
    overflow-y: auto;
    font-size: 13px;
    letter-spacing: 0.2px;
}

.search-result-item {
    padding: 6px 0;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    color: #666;
    text-decoration: none;
    display: block;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.2px;
    transition: color 0.2s;
}

.search-result-item:hover {
    color: #0066cc;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: #0066cc;
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    margin-top: 15px;
    transition: color 0.2s;
    letter-spacing: 0.2px;
}

.read-more:hover {
    color: #004499;
}

.read-more::after {
    content: '→';
    margin-left: 6px;
    transition: transform 0.2s;
}

.read-more:hover::after {
    transform: translateX(3px);
}

.page-title {
    font-size: 17px;
    font-weight: 400;
    color: #666;
    margin-bottom: 40px;
    letter-spacing: 0.3px;
}

.blog-post-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.2s;
}

.blog-post-link:hover {
    transform: translateX(3px);
}

.time-ago {
    color: #666;
    font-size: 13px;
    font-style: italic;
}

.post-full {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px 0;
}

.post-header {
    text-align: center;
    margin-bottom: 40px;
}

.post-title {
    font-size: 28px;
    font-weight: 400;
    color: #2a5a8c;
    margin-bottom: 15px;
    letter-spacing: 0.3px;
    line-height: 1.4;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    transition: color 0.2s;
}

.post-title:hover {
    color: #0066cc;
}

.post-meta time {
    color: #666;
    font-size: 14px;
    font-style: italic;
}

.post-content {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    margin: 30px 0;
    letter-spacing: 0.1px;
}

.post-footer {
    margin-top: 50px;
    padding-top: 20px;
}

.back-link {
    color: #0066cc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.back-link:hover {
    color: #004499;
}

@media (max-width: 768px) {
    body {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        min-height: auto;
        position: static;
        padding: 20px;
        border-right: none;
        border-bottom: 1px solid #eee;
        padding-top: 30px;
        box-sizing: border-box;
    }

    .main-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        margin: 0;
        padding: 20px 20px 0;
        min-height: 0;
    }

    .post-page .main-content,
    .about-page .main-content {
        margin-left: 0;
        padding: 20px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .blog-post {
        margin-bottom: 25px;
        padding-bottom: 15px;
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .blog-preview {
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .search-container {
        padding: 0;
        margin: 15px 0;
    }

    .search-input {
        width: 100%;
        box-sizing: border-box;
    }

    .social-links {
        margin: 20px 0;
    }

    .newsletter-container {
        width: 100%;
        max-width: 100%;
        margin: 10px auto;
        padding: 20px;
        box-sizing: border-box;
    }

    .subscribe-form {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px;
    }

    .subscribe-input {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .search-and-archives {
        display: flex;
        gap: 10px;
        align-items: center;
        margin-bottom: 20px;
    }

    .archives-container {
        margin: 0;
        white-space: nowrap;
    }

    .archives-link {
        padding: 8px 0;
        font-size: 13px;
        background: none;
        border: none;
        color: #0066cc;
        display: flex;
        align-items: center;
        gap: 6px;
        white-space: nowrap;
    }

    .archives-link:hover {
        color: #004499;
    }

    .archives-link i {
        font-size: 14px;
    }

    .logo {
        font-size: 16px;
        margin-bottom: 10px;
        text-align: center;
    }

    .search-box {
        width: 100%;
        position: relative;
    }

    .search-input {
        width: 100%;
        height: 32px;
        font-size: 12px;
        padding: 6px 12px 6px 28px;
    }

    .search-icon {
        left: 8px;
        font-size: 12px;
    }

    .social-links {
        display: flex;
        justify-content: center;
        gap: 15px;
        margin: 15px 0;
        width: 100%;
        flex-wrap: wrap;
    }

    .social-link {
        margin: 0;
        padding: 4px 0;
    }

    .about-link {
        text-align: center;
        display: block;
        margin: 10px 0;
    }

    .newsletter-container {
        width: 100%;
        max-width: 280px;
        margin: 10px auto;
        padding: 0;
        text-align: center;
        border: none;
    }

    .newsletter-title {
        font-size: 15px;
        margin-bottom: 4px;
    }

    .newsletter-desc {
        font-size: 12px;
        margin-bottom: 8px;
        padding: 0 10px;
    }

    .subscribe-form {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        width: 100%;
    }

    .subscribe-input {
        width: 100%;
        max-width: 240px;
        height: 32px;
        margin-bottom: 6px;
        font-size: 12px;
    }

    .subscribe-button {
        width: auto;
        min-width: 90px;
        padding: 6px 12px;
        font-size: 12px;
        height: 32px;
    }

    .page-title {
        font-size: 15px;
        text-align: center;
        margin: 15px 0 20px;
    }

    .blog-post {
        margin-bottom: 25px;
        padding-bottom: 15px;
        width: 100%;
        max-width: none;
        margin-left: 0;
        margin-right: 0;
    }

    .blog-post h2 {
        font-size: 17px;
        margin-bottom: 12px;
    }

    .blog-preview {
        font-size: 14px;
        margin: 15px 0;
        max-height: 150px;
    }

    .post-meta {
        font-size: 12px;
    }

    .search-results {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        max-width: 280px;
        background: white;
        border: none;
        border-radius: 6px;
        box-shadow: none;
        z-index: 1000;
        margin-top: 4px;
        max-height: 200px;
        overflow-y: auto;
        box-sizing: border-box;
    }

    .search-result-item {
        padding: 8px 12px;
        font-size: 12px;
        border: none;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .search-result-item:last-child {
        border: none;
    }

    /* Post page specific mobile styles */
    .post-page .sidebar {
        display: grid;
        grid-template-areas: 
            "logo"
            "search"
            "social"
            "about"
            "newsletter";
    }

    .post-page .logo {
        grid-area: logo;
    }

    .post-page .search-container {
        grid-area: search;
    }

    .post-page .social-links {
        grid-area: social;
    }

    .post-page .about-link {
        grid-area: about;
    }

    .post-page .newsletter-container {
        grid-area: newsletter;
        order: 5;
        border-top: 1px solid #eee;
        margin-top: 20px;
        padding-top: 20px;
    }

    /* About page specific mobile styles - matching post page pattern */
    .about-page .sidebar {
        display: grid;
        grid-template-areas: 
            "logo"
            "search"
            "social"
            "about";
        padding-bottom: 15px;
    }

    .about-page .logo {
        grid-area: logo;
    }

    .about-page .search-container {
        grid-area: search;
    }

    .about-page .social-links {
        grid-area: social;
    }

    .about-page .about-link {
        grid-area: about;
    }

    /* Hide newsletter in sidebar for about page */
    body.about-page .sidebar .newsletter-container {
        display: none !important;
    }

    /* Remove any fixed widths from content containers */
    .post-full,
    .about-content {
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
        padding: 0 15px;
    }

    /* Move newsletter to bottom for all pages including archive */
    .post-page .main-content .newsletter-container,
    .about-page .main-content .newsletter-container,
    .archive-page .main-content .newsletter-container:last-child {
        width: calc(100% + 40px) !important;
        margin: auto -20px 0 -20px !important;
        padding: 20px;
        background: #f8f9fa;
        border-top: 1px solid #eee;
        text-align: center;
        box-sizing: border-box;
        position: relative;
        max-width: none !important;
        bottom: 0;
    }

    /* Reset any conflicting styles */
    .archive-page .main-content {
        overflow: visible !important;
    }

    .archive-page .main-content .newsletter-container:last-child {
        transform: none !important;
        left: auto !important;
        right: auto !important;
    }

    /* Center align all content on mobile */
    .main-content {
        margin-left: 0;
        padding: 20px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Newsletter container styles for home page */
    body:not(.post-page):not(.about-page):not(.archive-page) .sidebar .newsletter-container {
        display: block;
        width: 100%;
        max-width: 280px;
        margin: 20px auto;
        padding: 0;
        text-align: center;
        border: none;
    }

    /* Subscribe form styles */
    .subscribe-form {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        padding: 0;
    }

    .subscribe-input {
        width: 100%;
        height: 36px;
        padding: 8px 12px;
        border: 1px solid #ddd;
        border-radius: 6px;
        font-size: 13px;
        margin: 0;
        text-align: center;
    }

    .subscribe-button {
        width: 100%;
        max-width: 280px;
        height: 36px;
        background: #0066cc;
        color: white;
        border: none;
        border-radius: 6px;
        font-size: 13px;
        font-weight: 500;
        cursor: pointer;
        transition: background-color 0.2s;
        margin: 0 auto;
        display: block;
    }

    /* Newsletter container general styles */
    .newsletter-container {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 20px !important;
        box-sizing: border-box;
    }

    .newsletter-title {
        font-size: 16px;
        font-weight: 500;
        margin-bottom: 10px;
        color: #333;
        text-align: center;
        width: 100%;
    }

    .newsletter-desc {
        font-size: 13px;
        color: #666;
        margin-bottom: 15px;
        line-height: 1.5;
        text-align: center;
        max-width: 240px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Blog post container centering */
    .blog-post {
        width: 100%;
        max-width: 100%;
        margin: 0 auto 25px;
        padding-bottom: 15px;
        text-align: center;
    }

    .blog-post h2 {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .blog-preview {
        text-align: center;
        margin: 15px auto;
    }

    .post-meta {
        text-align: center;
    }

    /* Center align read more links */
    .read-more {
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 15px auto;
    }

    .post-page .main-content,
    .about-page .main-content,
    .archive-page .main-content {
        padding: 20px 20px 0 20px !important;
        margin: 0 !important;
        min-height: calc(100vh - 200px); /* Adjust based on your header height */
        display: flex;
        flex-direction: column;
    }

    .post-page .main-content .newsletter-container,
    .about-page .main-content .newsletter-container,
    .archive-page .main-content .newsletter-container:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .main-content > *:not(.newsletter-container):last-child {
        margin-bottom: 0 !important;
    }

    .subscribe-form {
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .subscribe-button {
        margin-bottom: 0;
    }

    /* About page specific fixes */
    .about-page .main-content .newsletter-container {
        margin: 0 -20px !important;
        padding: 20px !important;
        width: calc(100% + 40px) !important;
        position: relative;
        bottom: 0;
        border-bottom: 0;
    }

    /* General newsletter container padding for all pages */
    .post-page .main-content .newsletter-container,
    .about-page .main-content .newsletter-container,
    .archive-page .main-content .newsletter-container:last-child {
        padding: 20px !important;
    }
}

/* Ensure proper spacing in desktop view */
.about-page .main-content .newsletter-container,
.post-page .main-content .newsletter-container,
.archive-page .main-content .newsletter-container:last-child {
    margin-top: 40px;
    padding: 25px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
    text-align: center;
}

.toc {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    margin: 20px 0;
    font-size: 14px;
}

.toc-title {
    font-weight: 500;
    color: #333;
    margin-bottom: 10px;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-item {
    margin: 8px 0;
}

.toc-link {
    color: #2a5a8c;
    text-decoration: none;
    transition: color 0.2s;
}

.toc-link:hover {
    color: #0066cc;
}

.post-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 15px 0;
}

.post-tag {
    background: #f0f0f0;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    color: #666;
    text-decoration: none;
    transition: background-color 0.2s;
}

.post-tag:hover {
    background: #e0e0e0;
}

.share-buttons {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.share-button {
    color: #666;
    text-decoration: none;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}

.share-button:hover {
    color: #0066cc;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 20px;
}

.prev-post,
.next-post {
    max-width: 45%;
}

.nav-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.nav-title {
    font-size: 14px;
    color: #2a5a8c;
    text-decoration: none;
}

.nav-title:hover {
    color: #0066cc;
}

/* Simplified about page styles */
.about-page {
    width: 100%;
}

.about-content {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    width: 100%;
}

.about-content p {
    margin: 25px 0;
}

@media (max-width: 768px) {
    .about-content {
        font-size: 15px;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .about-page {
        width: 100%;
        margin: 0;
        padding: 0;
    }
}

/* Base newsletter styles */
.newsletter-container {
    margin: 30px 0;
    padding: 20px 0;
    border: none;
    text-align: center;
}

.newsletter-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.newsletter-desc {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.subscribe-input {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    height: 36px;
}

.subscribe-button {
    background: #0066cc;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    height: 36px;
}

@media (max-width: 768px) {
    /* Post page specific mobile styles */
    .post-page .sidebar {
        display: grid;
        grid-template-areas: 
            "logo"
            "search"
            "social"
            "about"
            "newsletter";
    }

    .post-page .logo {
        grid-area: logo;
    }

    .post-page .search-container {
        grid-area: search;
    }

    .post-page .social-links {
        grid-area: social;
    }

    .post-page .about-link {
        grid-area: about;
    }

    .post-page .newsletter-container {
        grid-area: newsletter;
        order: 5;
        border-top: 1px solid #eee;
        margin-top: 20px;
        padding-top: 20px;
    }

    /* Move subscribe section after content for non-home pages */
    .post-page .sidebar .newsletter-container,
    .about-page .sidebar .newsletter-container {
        display: none;
    }

    .post-page .main-content::after,
    .about-page .main-content::after {
        content: '';
        display: block;
        margin-top: 40px;
    }

    /* Common styles for bottom newsletter in post and about pages */
    .post-page .main-content .newsletter-container,
    .about-page .main-content .newsletter-container {
        display: block;
        width: 100vw;
        max-width: none;
        margin: 40px calc(50% - 50vw) 0;
        padding: 30px 15px;
        background: #f8f9fa;
        border: none;
        text-align: center;
        box-sizing: border-box;
        position: relative;
    }

    /* About page specific mobile styles - matching post page pattern */
    .about-page .sidebar {
        display: grid;
        grid-template-areas: 
            "logo"
            "search"
            "social"
            "about";
        padding-bottom: 15px;
    }

    .about-page .logo {
        grid-area: logo;
    }

    .about-page .search-container {
        grid-area: search;
    }

    .about-page .social-links {
        grid-area: social;
    }

    .about-page .about-link {
        grid-area: about;
    }

    /* Hide newsletter in sidebar for about page */
    body.about-page .sidebar .newsletter-container {
        display: none !important;
    }
}

/* Desktop: Hide bottom newsletter for all pages */
@media (min-width: 769px) {
    .main-content {
        max-width: 800px;
    }

    .main-content .newsletter-container {
        display: none;
    }
}

/* Admin panel styles */
.admin-panel {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.post-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    color: #444;
}

.post-input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}

.post-textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    min-height: 300px;
    resize: vertical;
}

.post-submit {
    background: #0066cc;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.post-submit:hover {
    background: #0052a3;
}

.post-message {
    margin-top: 20px;
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
}

.post-message.success {
    background: #dcfce7;
    color: #16a34a;
}

.archives-container {
    margin: 25px 0;
    width: 100%;
    box-sizing: border-box;
}

.archives-toggle {
    width: 100%;
    background: none;
    border: none;
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s;
}

.archives-toggle:hover {
    color: #0066cc;
}

.archives-toggle i {
    transition: transform 0.3s ease;
}

.archives-list {
    max-height: 300px;
    overflow-y: auto;
    font-size: 13px;
    letter-spacing: 0.2px;
    margin-top: 10px;
}

.archive-item {
    padding: 6px 0;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    color: #666;
    text-decoration: none;
    display: block;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.2px;
    transition: color 0.2s;
}

.archive-item:hover {
    color: #0066cc;
}

.archives-loading {
    text-align: center;
    color: #666;
    padding: 10px 0;
}

.archives-error {
    text-align: center;
    color: #dc2626;
    padding: 10px 0;
    font-size: 13px;
}

.archives-empty {
    text-align: center;
    color: #666;
    padding: 10px 0;
    font-size: 13px;
}

@media (max-width: 768px) {
    .archives-container {
        width: 100%;
        max-width: 280px;
        margin: 10px auto;
        position: relative;
        border: none;
    }

    .archives-toggle {
        font-size: 15px;
        text-align: center;
        padding: 8px 0;
    }

    .archives-list {
        max-height: 200px;
    }

    .archive-item {
        padding: 8px 0;
        font-size: 12px;
        text-align: center;
    }
}

.archive-page-title {
    font-size: 17px;
    font-weight: 400;
    color: #666;
    margin-bottom: 40px;
    letter-spacing: 0.3px;
}

.archive-dates {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
}

.archive-date-link {
    color: #2a5a8c;
    text-decoration: none;
    font-size: 15px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    transition: color 0.2s, transform 0.2s;
    display: flex;
    justify-content: space-between;
}

.archive-date-link:hover {
    color: #0066cc;
    transform: translateX(5px);
}

.archive-month-title {
    font-size: 20px;
    font-weight: 500;
    color: #333;
    margin: 30px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

@media (max-width: 768px) {
    .archive-page-title {
        font-size: 15px;
        text-align: center;
        margin-bottom: 20px;
    }

    .archive-dates {
        gap: 8px;
    }

    .archive-date-link {
        font-size: 14px;
        padding: 10px 0;
    }

    .archive-month-title {
        font-size: 18px;
        text-align: center;
    }
}

.archives-link {
    width: 100%;
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s, transform 0.2s;
}

.archives-link:hover {
    color: #0066cc;
    transform: translateX(3px);
}

.archives-link i {
    font-size: 14px;
}

@media (max-width: 768px) {
    .archives-link {
        font-size: 15px;
        text-align: center;
        padding: 8px 0;
        justify-content: center;
        gap: 8px;
    }
}

/* Ensure all containers respect the viewport width */
.post-content,
.about-content,
.archive-dates,
.post-navigation,
.share-buttons,
.post-tags {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Fix any potential overflow from text elements */
h1, h2, h3, h4, h5, h6, p, .post-title, .blog-post h2 {
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

/* Hide newsletter in sidebar and top for archive page - ONLY ON MOBILE */
@media (max-width: 768px) {
    .archive-page .sidebar .newsletter-container,
    .archive-page .main-content > .newsletter-container:not(:last-child) {
        display: none !important;
    }
}

/* Desktop specific newsletter rules */
@media (min-width: 769px) {
    .main-content {
        max-width: 800px;
    }

    /* Hide newsletter in main content for all pages on desktop */
    .main-content .newsletter-container {
        display: none;
    }

    /* Ensure newsletter is always visible in sidebar on desktop */
    .sidebar .newsletter-container {
        display: block !important;
        margin: 30px 0;
        padding: 20px 0;
    }
}

/* Move newsletter to bottom for mobile views */
@media (max-width: 768px) {
    .post-page .main-content .newsletter-container,
    .about-page .main-content .newsletter-container,
    .archive-page .main-content .newsletter-container:last-child {
        width: calc(100% + 40px) !important;
        margin: auto -20px 0 -20px !important;
        padding: 20px;
        background: #f8f9fa;
        border-top: 1px solid #eee;
        text-align: center;
        box-sizing: border-box;
        position: relative;
        max-width: none !important;
        bottom: 0;
    }

    /* Ensure main content has no bottom padding */
    .post-page .main-content,
    .about-page .main-content,
    .archive-page .main-content {
        padding: 20px 20px 0 20px !important;
        margin: 0 !important;
        min-height: calc(100vh - 200px); /* Adjust based on your header height */
        display: flex;
        flex-direction: column;
    }

    /* Ensure the container takes full width */
    .newsletter-container {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 20px !important;
        box-sizing: border-box;
    }

    /* Center the form contents but keep container full width */
    .subscribe-form {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        padding: 0;
    }

    /* Remove any bottom margins from the last content element */
    .main-content > *:not(.newsletter-container):last-child {
        margin-bottom: 0 !important;
    }
}

/* Standardized back button styles for both post and archive pages */
.back-to-home,
.back-to-posts {
    display: inline-flex;
    align-items: center;
    color: #0066cc;
    text-decoration: none;
    font-size: 14px;
    margin: 20px 0;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    width: 100%;
    transition: color 0.2s;
}

.back-to-home i,
.back-to-posts i {
    margin-right: 8px;
    font-size: 14px;
}

.back-to-home:hover,
.back-to-posts:hover {
    color: #004499;
}

@media (max-width: 768px) {
    .back-to-home,
    .back-to-posts {
        font-size: 13px;
        margin: 15px 0;
        padding: 6px 0;
    }

    .back-to-home i,
    .back-to-posts i {
        font-size: 13px;
        margin-right: 6px;
    }
} 