/* Blog Specific Styles */

/* Blog Hero */
.blog-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 60px;
    margin-top: 80px;
}

.blog-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.blog-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Blog Layout */
.blog-content {
    padding: 80px 0;
    background: #f8fafc;
}

.blog-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

/* Main Content */
.blog-main {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Featured Article */
.featured-article {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 2px solid #e2e8f0;
}

.featured-article .article-image {
    position: relative;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
}

.featured-article .article-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s;
}

.featured-article .article-image:hover img {
    transform: scale(1.05);
}

.article-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #2563eb;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.featured-article h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.featured-article h2 a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.3s;
}

.featured-article h2 a:hover {
    color: #2563eb;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #64748b;
    flex-wrap: wrap;
}

.featured-article p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #64748b;
    margin-bottom: 1.5rem;
}

.read-more {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.read-more:hover {
    color: #1d4ed8;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.article-card .article-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.article-card .article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.article-card:hover .article-image img {
    transform: scale(1.1);
}

.article-card .article-content {
    padding: 1.5rem;
}

.article-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.article-card h3 a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.3s;
}

.article-card h3 a:hover {
    color: #2563eb;
}

.article-card p {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.page-current {
    background: #2563eb;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
}

.page-link,
.page-next {
    color: #64748b;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: background-color 0.3s, color 0.3s;
}

.page-link:hover,
.page-next:hover {
    background: #e2e8f0;
    color: #2563eb;
}

.page-dots {
    color: #94a3b8;
    padding: 0.5rem;
}

/* Sidebar */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sidebar-widget h3 {
    color: #1e293b;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

/* Search Form */
.search-form {
    display: flex;
    gap: 0.5rem;
}

.search-form input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
}

.search-form input:focus {
    outline: none;
    border-color: #2563eb;
}

.search-form button {
    padding: 0.75rem 1rem;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-form button:hover {
    background: #1d4ed8;
}

/* Categories List */
.categories-list {
    list-style: none;
}

.categories-list li {
    margin-bottom: 0.75rem;
}

.categories-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #64748b;
    text-decoration: none;
    padding: 0.5rem 0;
    transition: color 0.3s;
}

.categories-list a:hover {
    color: #2563eb;
}

.categories-list span {
    background: #f1f5f9;
    color: #64748b;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
}

/* Popular Articles */
.popular-articles {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.popular-article {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.popular-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.popular-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-content h4 {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.popular-content h4 a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.3s;
}

.popular-content h4 a:hover {
    color: #2563eb;
}

.popular-views {
    font-size: 0.8rem;
    color: #94a3b8;
}

/* CTA Widget */
.cta-widget {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.cta-widget h3 {
    color: white;
}

.cta-widget p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background: white;
    color: #2563eb;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin: 0.25rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.cta-button.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-button.secondary:hover {
    background: white;
    color: #2563eb;
}

/* Newsletter Widget */
.newsletter-widget {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.newsletter-widget h3 {
    color: #166534;
}

.newsletter-widget p {
    color: #166534;
    margin-bottom: 1.5rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.newsletter-form input {
    padding: 0.75rem;
    border: 2px solid #bbf7d0;
    border-radius: 8px;
    font-size: 0.9rem;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #10b981;
}

.newsletter-form button {
    padding: 0.75rem;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.newsletter-form button:hover {
    background: #059669;
}

/* Navigation Active State */
.nav a.active {
    color: #2563eb;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .blog-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 100px 0 40px;
    }
    
    .blog-hero h1 {
        font-size: 2rem;
    }
    
    .blog-content {
        padding: 60px 0;
    }
    
    .blog-main {
        padding: 1.5rem;
    }
    
    .featured-article .article-image img {
        height: 200px;
    }
    
    .featured-article h2 {
        font-size: 1.5rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .sidebar-widget {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .blog-layout {
        gap: 1rem;
    }
    
    .blog-main {
        padding: 1rem;
    }
    
    .featured-article {
        margin-bottom: 2rem;
        padding-bottom: 2rem;
    }
    
    .articles-grid {
        gap: 1rem;
    }
    
    .sidebar-widget {
        padding: 1rem;
    }
    
    .popular-article {
        gap: 0.75rem;
    }
    
    .popular-image {
        width: 50px;
        height: 50px;
    }
}