:root {
    --bg-yellow: #f7d046;
    --dark-sidebar: #1e1e1e;
    --card-white: #ffffff;
    --accent-coral: #ff6b6b;
    --text-main: #333;
}

body {
    background-color: var(--bg-yellow);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    display: block;
}

.main-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.mobile-nav {
    display: none;
}

/* Sidebar Styling */
.sidebar {
    width: 100%;
    background: var(--dark-sidebar);
    position: sticky;
    top: 0;
    color: white;
    padding: 10px 24px;
    box-sizing: border-box;
    z-index: 25;
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.nav-links li a {
    color: #999;
    text-decoration: none;
    padding: 12px 18px;
    display: block;
    font-size: 1rem;
    transition: 0.3s;
}

.nav-links li.active a, .nav-links li a:hover {
    color: var(--accent-coral);
}

.sidebar-footer {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 8px;
}

.sidebar-footer a {
    color: #bbb;
}

/* Blog Content Area */
.content-area {
    margin-left: 0;
    padding: 50px;
    width: 100%;
    box-sizing: border-box;
}

.highlight {
    color: var(--accent-coral);
}

.blog-header {
    margin-bottom: 40px;
}

.blog-header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.filter-bar {
    margin-bottom: 26px;
}

.filter-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--dark-sidebar);
}

.filter-input {
    width: 100%;
    max-width: 640px;
    border: 2px solid var(--dark-sidebar);
    border-radius: 6px;
    background: #fff8dc;
    color: var(--dark-sidebar);
    font-size: 1rem;
    padding: 12px 14px;
    box-sizing: border-box;
}

.filter-input:focus {
    outline: 2px solid var(--accent-coral);
    outline-offset: 2px;
}

.no-results {
    margin-top: 18px;
    font-weight: 700;
    color: var(--dark-sidebar);
}

/* Blog Grid and Cards */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    align-items: start;
}

.blog-card {
    background: var(--card-white);
    padding: 30px;
    border-radius: 4px;
    box-shadow: 10px 10px 0px rgba(0,0,0,0.05); /* Blocky shadow like your theme */
    transition: transform 0.2s;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.post-date {
    font-size: 0.8rem;
    color: var(--accent-coral);
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.blog-card h2 {
    margin: 0 0 15px 0;
    font-size: 1.5rem;
}

.post-more {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.post-more.open {
    max-height: 450px;
    opacity: 1;
}

.post-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.read-more {
    display: inline-block;
    margin-top: 20px;
    color: var(--dark-sidebar);
    font-weight: bold;
    text-decoration: none;
    border-bottom: 2px solid var(--accent-coral);
    background: transparent;
    border-top: 0;
    border-left: 0;
    border-right: 0;
    padding: 0;
    cursor: pointer;
    font-size: 0.95rem;
}

.share-post {
    display: inline-block;
    margin-top: 20px;
    color: var(--dark-sidebar);
    font-weight: 700;
    background: #fff8dc;
    border: 2px solid var(--dark-sidebar);
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: sticky;
        top: 0;
        padding: 10px 0;
    }

    .nav-links {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }

    .nav-links li a {
        padding: 10px 14px;
    }

    .content-area {
        margin-left: 0;
        padding: 30px 20px;
    }

    .blog-header h1 {
        font-size: 2.2rem;
    }

    .filter-input {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .mobile-nav {
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: var(--dark-sidebar);
        color: #fff;
        padding: 14px;
        position: sticky;
        top: 0;
        z-index: 40;
        width: 100%;
        box-sizing: border-box;
    }

    .mobile-brand {
        font-size: 2rem;
        font-weight: 700;
    }

    .mobile-menu-toggle {
        border: 2px solid var(--accent-coral);
        border-radius: 8px;
        background: transparent;
        color: #fff;
        font-size: 1.4rem;
        padding: 8px 12px;
        cursor: pointer;
    }

    .sidebar {
        display: block;
        width: 100%;
        height: calc(100vh - 72px);
        max-height: 0;
        overflow: hidden;
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        padding: 0;
        z-index: 35;
        transition: max-height 0.3s ease;
    }

    .sidebar.open {
        max-height: calc(100vh - 72px);
        overflow-y: auto;
    }

    .nav-links {
        display: block;
    }

    .nav-links li a {
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        font-size: 1.1rem;
    }

    .sidebar-footer {
        display: none;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .blog-card {
        padding: 22px;
    }

    .blog-card h2 {
        font-size: 1.9rem;
        line-height: 1.1;
    }

    .content-area {
        margin-left: 0;
        padding: 24px 14px;
        width: 100%;
        box-sizing: border-box;
    }
}