/* Modern Blog page styling */

.blog-header {
    text-align: left;
    max-width: 820px;
    margin: 0 auto 1.75rem;
}

.blog-header h1 {
    font-family: 'Roboto', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(2rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0f172a;
    margin-bottom: 0.4rem;
}

.blog-header p {
    font-size: 0.98rem;
    color: #6b7280;
    max-width: 38rem;
}

/* Sidebar container */
.blog-sidebar {
    max-width: 820px;
    margin: 0 auto;
    padding-top: 0.75rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.75rem;
}

/* Section blocks inside sidebar */
.blog-sidebar section,
.blog-sidebar div,
.blog-sidebar > ul {
    background: radial-gradient(circle at top left, #ffffff 0, #f9fafb 45%, #ffffff 100%);
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    box-shadow:
        0 18px 38px rgba(15, 23, 42, 0.16),
        0 0 0 1px rgba(15, 23, 42, 0.12);
    padding: 1.2rem 1.3rem;
}

/* Heading style for sidebar blocks */
.blog-sidebar h2 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #6b7280;
    margin: 0 0 0.75rem;
}

/* Lists (categories, recent posts) */
.blog-sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.45rem;
    font-size: 0.92rem;
}

.blog-sidebar li a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #2563eb;
    text-decoration: none;
    padding: 0.05rem 0;
    transition:
        color 0.16s ease-out,
        transform 0.16s ease-out;
}

.blog-sidebar li a::before {
    content: "•";
    font-size: 0.9rem;
    color: #9ca3af;
}

.blog-sidebar li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.12rem;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #3b82f6, #22c55e);
    transition: width 0.2s ease-out;
}

.blog-sidebar li a:hover {
    color: #1d4ed8;
    transform: translateY(-1px);
}

.blog-sidebar li a:hover::after {
    width: 100%;
}

/* Responsive tweaks */
@media (max-width: 900px) {
    .blog-sidebar {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .blog-header {
        text-align: center;
    }

    .blog-header p {
        margin: 0 auto;
    }
}
