/* General Blog Post Styling */
.blog-post-container {
    padding: 40px 0;
}

.blog-article {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.blog-article__header {
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

/* Removed redundant h2, so this class is no longer needed */
.blog-article__title {
    /* font-size: 2.5rem; */
    /* font-weight: 700; */
    /* margin-bottom: 10px; */
    /* line-height: 1.2; */
}

.blog-article__meta {
    font-size: 0.9rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 15px;
}

.blog-article__meta::before {
    content: '\f073'; /* Font Awesome calendar icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #008ccc;
}

.blog-article__content {
    max-width: 75ch; /* Improves readability */
    margin: 0 auto; /* Center the content */
}

.blog-article__content h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0; /* Subtle separator */
}

.blog-article__content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #343a40;
    margin-bottom: 20px;
}

.blog-article__image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-article__image:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Sidebar Styling */
.blog-sidebar {
    position: sticky;
    top: 120px; /* Match hero margin-top + some buffer */
}

.sidebar-widget {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.sidebar-widget__title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
}

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

.related-posts__item a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #212529;
    padding: 10px;
    margin: 0 -10px;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease-in-out;
}

.related-posts__item:last-child a {
    border-bottom: none;
}

.related-posts__item a:hover {
    background-color: #e9ecef;
    border-radius: 4px;
}

.related-posts__thumbnail {
    width: 65px;
    height: 65px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 15px;
}

.related-posts__title {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
}

/* Hero Section */
.blog-hero {
    text-align: center;
    padding: 20px;
    margin-top: 100px; /* Pushes the hero down from the navbar */
}

.blog-hero__title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.3;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.gradient-text {
    background: linear-gradient(135deg, #008ccc, #00a8e6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    padding-bottom: 5px;
}

@media (max-width: 768px) {
    .blog-hero {
        margin-top: 80px;
    }
    .blog-hero__title {
        font-size: 2.5rem;
    }
    .blog-article__title {
        font-size: 2rem;
    }
    .blog-article__content {
        max-width: 100%; /* Full width on mobile */
    }
}