/* Apply Jost font family globally for blog */
body {
    font-family: 'Jost', sans-serif;
    line-height: 1.6;
    color: #374151;
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.post-list-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.post-list-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.post-list-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.post-list-icon[data-topic="physics"] {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.post-list-icon[data-topic="chemistry"] {
    background: rgba(236, 72, 153, 0.1);
    color: #ec4899;
}

.post-list-icon[data-topic="mathematics"] {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.post-list-icon[data-topic="biology"] {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.post-list-content {
    flex-grow: 1;
}

.post-list-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
    font-family: 'Jost', sans-serif;
}

.post-list-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    color: #6b7280;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-nav {
    display: flex;
    gap: 1rem;
}

.nav-link {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination button {
    padding: 0.5rem 1rem;
    border: 1px solid #e5e7eb;
    background: white;
    color: #6b7280;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination button:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.pagination button.active {
    background: #8b5cf6;
    color: white;
    border-color: #8b5cf6;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Blog Cards */
.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

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

.blog-card-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.75rem;
    font-family: 'Jost', sans-serif;
    line-height: 1.4;
}

.blog-card-content p {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.blog-read-more {
    color: #8b5cf6;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.blog-read-more:hover {
    color: #7c3aed;
}

/* Topic Buttons */
.topic-btn {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: white;
    color: #6b7280;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Jost', sans-serif;
    font-weight: 500;
}

.topic-btn:hover {
    background: rgba(139, 92, 246, 0.05);
    border-color: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
}

.topic-btn.active {
    background: #8b5cf6;
    color: white;
    border-color: #8b5cf6;
}

/* Section Titles */
.section-title {
    font-size: 2rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
    font-family: 'Jost', sans-serif;
}

/* Blog Header */
.blog-header {
    padding: 120px 0 80px;
    background: url('img/blog_bg.jpg') center/cover no-repeat;
    background-color: white;
    text-align: center;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    position: relative;
}

.blog-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    z-index: 1;
}

.blog-header > * {
    position: relative;
    z-index: 2;
}

.blog-header h1 {
    font-family: 'Jost', sans-serif;
    color: #1f2937;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.blog-header p {
    font-family: 'Jost', sans-serif;
    font-size: 1.25rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .blog-header {
        width: auto;
        margin-left: 0;
        padding: 100px 1rem 60px;
    }
    
    .blog-header h1 {
        font-size: 2.5rem;
    }
    
    .blog-header p {
        font-size: 1.1rem;
    }
}