/* ================== BLOG LISTING PAGE STYLES ================== */

/* Specific rule to make header semi-transparent on page load */
.blog-listing-page .main-header {
    background-color: var(--header-scrolled-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.blog-main {
    padding-top: 10rem;
    padding-bottom: 6rem;
    background-color: var(--bg-secondary);
}

.blog-header {
    text-align: center;
    margin-bottom: 4rem;
}

.blog-header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-inverted);
    margin-bottom: 0.5rem;
}

.blog-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 50ch;
    margin: 0 auto;
}

.posts-container {
    max-width: 900px;
    margin: 0 auto;
}

.blog-post {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2.5rem;
    align-items: center;
    background: var(--bg-primary);
    padding: 2.5rem;
    margin-bottom: 3rem;
    border-radius: 24px;
    border: 1px solid var(--border-light);
    box-shadow: 0 10px 40px var(--shadow-color);
}

.post-image-container {
    border-radius: 16px;
    overflow: hidden;
    perspective: 1000px;
}

.post-image-container img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    transition: transform 0.4s ease;
}

.post-text-content {
    text-align: left;
}

.post-category {
    display: inline-block;
    background-color: var(--tag-secondary-bg);
    color: var(--primary-blue);
    border: 1px solid var(--tag-secondary-border);
    padding: 0.4rem 0.9rem;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

body.dark-mode .post-category {
    color: #a5b4fc;
}

.post-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-inverted);
    line-height: 1.3;
    margin: 0 0 1rem 0;
}

.post-title a { color: var(--text-inverted); }
.post-title a:hover { color: var(--primary-purple); }

.post-body p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.read-more {
    font-weight: 600;
    color: var(--primary-blue);
    text-decoration: none;
}

.author-byline {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-tertiary);
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.author-name {
    font-weight: 500;
    color: var(--text-primary);
}

.post-date {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.post-date svg {
    width: 16px;
    height: 16px;
}

/* Header CTA styles moved to main style.css */

/* Responsive */
@media (max-width: 768px) {
    .blog-main {
        padding-top: 8rem;
    }
    .blog-header h1 {
        font-size: 2rem;
    }
    .blog-post {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 1.5rem;
    }
    .post-title {
        font-size: 1.5rem;
    }
}