/* Blog Page Specific Styles */

:root {
    --blog-primary: #4f46e5;
    --blog-secondary: #10b981;
    --blog-accent: #f59e0b;
    --blog-text: #111827;
    --blog-text-light: #6b7280;
    --blog-bg: #ffffff;
    --blog-bg-secondary: #f9fafb;
    --blog-border: #e5e7eb;
}

/* Blog Hero */
.blog-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0 60px;
    text-align: center;
}

.blog-hero h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
}

.blog-hero p {
    font-size: 20px;
    margin-bottom: 32px;
    opacity: 0.95;
}

.blog-search {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.blog-search i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    opacity: 0.8;
}

.blog-search input {
    width: 100%;
    padding: 16px 20px 16px 56px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Blog Main */
.blog-main {
    padding: 60px 0;
    background: var(--blog-bg-secondary);
}

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

/* Blog Articles */
.blog-articles {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.blog-article {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

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

.blog-article.featured {
    position: relative;
    border: 3px solid var(--blog-primary);
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--blog-accent);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 13px;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.blog-article:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    padding: 32px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.article-category {
    background: var(--blog-primary);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-meta time {
    color: var(--blog-text-light);
    font-size: 14px;
    font-weight: 500;
}

.article-reading-time {
    color: var(--blog-text-light);
    font-size: 14px;
    font-weight: 500;
}

.article-reading-time i {
    margin-right: 4px;
}

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

.blog-article.featured h2 {
    font-size: 32px;
}

.article-content p {
    color: var(--blog-text-light);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 16px;
}

.article-highlights {
    background: var(--blog-bg-secondary);
    padding: 20px;
    border-radius: 12px;
    margin: 24px 0;
}

.article-highlights h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--blog-text);
}

.article-highlights ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-highlights li {
    padding: 8px 0;
    color: var(--blog-text-light);
    font-size: 15px;
}

.article-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.tag {
    background: var(--blog-bg-secondary);
    color: var(--blog-text-light);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.tag:hover {
    background: var(--blog-primary);
    color: white;
    transform: translateY(-2px);
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--blog-primary);
    color: white;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
}

.read-more-btn:hover {
    background: #4338ca;
    transform: translateX(4px);
}

.read-more-btn i {
    transition: transform 0.3s;
}

.read-more-btn:hover i {
    transform: translateX(4px);
}

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

.pagination-btn {
    padding: 10px 16px;
    border: 2px solid var(--blog-border);
    background: white;
    color: var(--blog-text);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.pagination-btn:hover {
    border-color: var(--blog-primary);
    color: var(--blog-primary);
}

.pagination-btn.active {
    background: var(--blog-primary);
    border-color: var(--blog-primary);
    color: white;
}

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

.sidebar-widget {
    background: white;
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

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

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

.category-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--blog-text);
    font-weight: 500;
    transition: all 0.2s;
}

.category-list a:hover {
    background: var(--blog-bg-secondary);
    color: var(--blog-primary);
    transform: translateX(4px);
}

.category-list i {
    margin-right: 10px;
    color: var(--blog-primary);
}

.category-list span {
    color: var(--blog-text-light);
    font-size: 13px;
}

/* Popular Posts */
.popular-posts {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.popular-post {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: var(--blog-text);
    padding: 12px;
    border-radius: 8px;
    transition: all 0.2s;
}

.popular-post:hover {
    background: var(--blog-bg-secondary);
}

.popular-post-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

.popular-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-post-content h4 {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 6px;
    color: var(--blog-text);
}

.popular-post-meta {
    font-size: 12px;
    color: var(--blog-text-light);
    font-weight: 500;
}

/* Newsletter Widget */
.newsletter-widget {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.newsletter-widget h3 {
    color: white;
}

.newsletter-widget p {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 16px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.newsletter-form input {
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
}

.newsletter-form button {
    width: 100%;
    padding: 12px;
    background: white;
    color: var(--blog-primary);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.newsletter-widget small {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
}

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

/* CTA Widget */
.cta-widget {
    background: var(--blog-primary);
    color: white;
    text-align: center;
}

.cta-widget h3 {
    color: white;
}

.cta-widget p {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 16px;
}

.cta-widget .cta-button {
    width: 100%;
    background: white;
    color: var(--blog-primary);
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    font-weight: 700;
    transition: all 0.2s;
}

.cta-widget .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

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

@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: 36px;
    }
    
    .blog-hero p {
        font-size: 18px;
    }
    
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .blog-sidebar {
        order: 2;
    }
    
    .article-content h2 {
        font-size: 24px;
    }
    
    .blog-article.featured h2 {
        font-size: 28px;
    }
    
    .article-image {
        height: 220px;
    }
}

@media (max-width: 480px) {
    .blog-hero {
        padding: 60px 0 40px;
    }
    
    .blog-hero h1 {
        font-size: 28px;
    }
    
    .article-content {
        padding: 24px;
    }
    
    .sidebar-widget {
        padding: 20px;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}