/* Blog Styles - Skerritt Economics */

/* Blog Grid */
.blog-posts {
    padding: 4rem 0;
}

.blog-posts .container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    align-items: start;
}

.blog-grid {
    display: grid;
    gap: 2rem;
}

/* Blog Cards */
.blog-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.blog-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.blog-card.featured {
    grid-column: 1 / -1;
}

.blog-card-content {
    padding: 2rem;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.blog-category {
    background-color: #ca6c18;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.blog-card h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    line-height: 1.3;
}

.blog-card h2 a {
    color: #111827;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-card h2 a:hover {
    color: #ca6c18;
}

.blog-card p {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.blog-author {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.read-more {
    color: #ca6c18;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.2s ease;
}

.read-more:hover {
    gap: 0.75rem;
}

/* Blog Hero */
.blog-hero {
    background-color: #f9fafb;
    padding: 4rem 0;
    text-align: center;
}

.blog-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #111827;
}

.blog-hero .lead {
    font-size: 1.25rem;
    color: #4b5563;
    max-width: 600px;
    margin: 0 auto;
}

/* Blog Sidebar */
.blog-sidebar {
    position: sticky;
    top: 2rem;
}

.sidebar-section {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.sidebar-section h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: #111827;
}

.category-list {
    list-style: none;
}

.category-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.category-list a {
    color: #4b5563;
    text-decoration: none;
    transition: color 0.2s ease;
}

.category-list a:hover {
    color: #ca6c18;
}

.category-list span {
    color: #9ca3af;
    font-size: 0.875rem;
}

/* Recent Posts */
.recent-posts {
    list-style: none;
}

.recent-posts li {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f3f4f6;
}

.recent-posts li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-posts h4 {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.recent-posts a {
    text-decoration: none;
    color: #111827;
    transition: color 0.2s ease;
}

.recent-posts a:hover {
    color: #ca6c18;
}

.recent-posts time {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* Newsletter Form */
.newsletter-form {
    margin-top: 1rem;
}

.newsletter-form input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.newsletter-form .btn {
    width: 100%;
    padding: 0.75rem;
    font-size: 0.875rem;
}

/* Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.blog-pagination a,
.blog-pagination span {
    padding: 0.5rem 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    color: #4b5563;
    text-decoration: none;
    transition: all 0.2s ease;
}

.blog-pagination a:hover {
    background-color: #ca6c18;
    color: white;
    border-color: #ca6c18;
}

.blog-pagination .current {
    background-color: #ca6c18;
    color: white;
    border-color: #ca6c18;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .blog-posts .container {
        grid-template-columns: 1fr;
    }
    
    .blog-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: 2rem;
    }
    
    .blog-hero .lead {
        font-size: 1.125rem;
    }
    
    .blog-card-content {
        padding: 1.5rem;
    }
    
    .blog-card h2 {
        font-size: 1.25rem;
    }
    
    .blog-sidebar {
        grid-template-columns: 1fr;
    }
}

/* Topic Clusters Styles */
.topic-clusters {
    padding: 4rem 0;
}

.topic-cluster {
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
}

.topic-cluster:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.topic-cluster h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.topic-cluster > p {
    color: var(--light-text);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.cluster-articles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.cluster-card {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.cluster-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.cluster-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.cluster-card h3 a {
    color: var(--dark-text);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.cluster-card h3 a:hover {
    color: var(--primary-color);
}

.cluster-card p {
    color: var(--light-text);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.article-tag {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Related Resources */
.related-resources {
    background: var(--light-bg);
    padding: 4rem 0;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.resource-card {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    text-align: center;
    border: 1px solid var(--border-color);
}

.resource-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.resource-card p {
    color: var(--light-text);
    margin-bottom: 1.5rem;
}

/* Mobile Styles for Topic Clusters */
@media (max-width: 768px) {
    .topic-clusters {
        padding: 3rem 0;
    }
    
    .topic-cluster {
        margin-bottom: 3rem;
        padding-bottom: 2rem;
    }
    
    .cluster-articles {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
    }
}