/* Blog Page Specific Styles */

.blog-search {
    display: flex;
    max-width: 600px;
    margin: 32px auto 0;
    gap: 8px;
}

.blog-search input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid rgba(0, 123, 255, 0.2);
    border-radius: 12px;
    font-size: 16px;
    background: white;
    transition: var(--transition);
}

.blog-search input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.blog-search button {
    padding: 14px 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.blog-search button:hover {
    background: var(--primary-dark);
}

.blog-section {
    padding: 80px 0;
}

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 48px;
}

.blog-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.blog-post {
    overflow: hidden;
    transition: var(--transition);
}

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

.post-image {
    height: 300px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--secondary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.post-content {
    padding: 32px;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 14px;
}

.category {
    background: rgba(0, 123, 255, 0.1);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 600;
}

.date,
.read-time {
    color: var(--text-secondary);
}

.post-content h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-primary);
    line-height: 1.3;
}

.post-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
    line-height: 1.4;
}

.post-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    margin-top: 12px;
    transition: var(--transition);
}

.read-more:hover {
    gap: 8px;
    color: var(--primary-dark);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

.page-btn {
    padding: 10px 16px;
    background: white;
    border: 2px solid rgba(0, 123, 255, 0.2);
    border-radius: 8px;
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.page-btn:hover,
.page-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Sidebar */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.sidebar-widget {
    padding: 32px;
}

.sidebar-widget h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.sidebar-widget p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

/* Newsletter Form */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.newsletter-form input {
    padding: 12px 16px;
    border: 2px solid rgba(0, 123, 255, 0.2);
    border-radius: 8px;
    font-size: 14px;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.newsletter-form button {
    padding: 12px;
}

.form-note {
    font-size: 12px !important;
    color: var(--text-secondary) !important;
    margin: 0 !important;
}

/* Categories */
.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 12px;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary);
    text-decoration: none;
    padding: 8px 0;
    transition: var(--transition);
}

.category-list a:hover {
    color: var(--primary-color);
    padding-left: 8px;
}

.category-list span {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Popular Posts */
.popular-posts {
    list-style: none;
}

.popular-posts li {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.popular-posts a {
    text-decoration: none;
}

.popular-posts h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.4;
    transition: var(--transition);
}

.popular-posts a:hover h4 {
    color: var(--primary-color);
}

.post-date {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Tags */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 6px 14px;
    background: rgba(0, 123, 255, 0.1);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
}

.tag:hover {
    background: var(--primary-color);
    color: white;
}

/* Responsive */
@media (max-width: 1024px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }
    
    .blog-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .post-content h2 {
        font-size: 24px;
    }
    
    .post-content h3 {
        font-size: 20px;
    }
    
    .blog-search {
        flex-direction: column;
    }
}
