/*************************************
 * BLOG PAGE SPECIFIC STYLES
 *************************************/

/* Blog Navigation */
.blog-nav {
    margin: 20px auto;
    padding: 0 15px;
    text-align: center;
}

.nav-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 0;
    transition: color 0.2s ease;
}

.nav-back:hover {
    color: var(--secondary-text-color);
}

/* Blog Header */
.blog-header {
    margin: 30px auto;
    padding: 0 15px;
}

.blog-header-image {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--hover-bg-color);
    border: 1px solid var(--divider-color);
}

.header-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 30px 20px;
}

/* Blog Content */
.blog-content {
    margin: 40px auto;
    padding: 0 15px;
}

.blog-posts {
    max-width: 800px;
    margin: 0 auto;
}

.blog-post {
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--divider-color);
}

.blog-post:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.blog-post h2 {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.blog-post-meta {
    font-size: 14px;
    color: var(--tertiary-text-color);
    margin: 0 0 25px 0;
    font-weight: 500;
}

.blog-post-meta time {
    color: var(--secondary-text-color);
}

.blog-post-content {
    color: var(--text-color);
    line-height: 1.6;
}

.blog-post-content p {
    margin: 0 0 20px 0;
    font-size: 16px;
}

.blog-post-content p:last-child {
    margin-bottom: 0;
}

/* Blog post hyperlink styles - align with main site link style */
.blog-post-content a {
    color: var(--text-color);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.blog-post-content a:hover, 
.blog-post-content a:focus {
    color: var(--secondary-text-color);
}

.blog-post-content a:visited {
    color: var(--text-color);
}

/* Section headings inside posts */
.blog-post-content h3 {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text-color);
    margin: 28px 0 12px 0;
    position: relative;
}

.blog-post-content h3::after {
    content: '';
    display: block;
    width: 56px;
    height: 2px;
    background-color: var(--divider-color);
    margin-top: 6px;
    border-radius: 2px;
}



/*************************************
 * RESPONSIVE DESIGN
 *************************************/
@media (max-width: 768px) {
    .blog-header-image {
        height: 180px;
    }
    
    .header-image-placeholder h1 {
        font-size: 28px;
    }
    
    .header-image-placeholder p {
        font-size: 14px;
    }
    
    .blog-post h2 {
        font-size: 28px;
    }
    
    .blog-post-content h3 {
        font-size: 20px;
        margin: 24px 0 10px 0;
    }
    
    .blog-content {
        margin: 30px auto;
    }
}

@media (max-width: 480px) {
    .blog-header-image {
        height: 160px;
    }
    
    .header-image-placeholder {
        padding: 20px 15px;
    }
    
    .header-image-placeholder h1 {
        font-size: 24px;
    }
    
    .blog-post h2 {
        font-size: 24px;
    }
    
    .blog-post-content h3 {
        font-size: 18px;
        margin: 20px 0 8px 0;
    }
}
