/* Blog Modern Styles */

/* Blog Header */
.blog-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="white" opacity="0.1"/><circle cx="80" cy="40" r="1" fill="white" opacity="0.1"/><circle cx="40" cy="80" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    opacity: 0.3;
}

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

.blog-header h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
    background: linear-gradient(45deg, #fff, #f8f9fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-header p {
    font-size: 1.3rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* Blog Stats */
.blog-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 2rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    display: block;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #fff, #f8f9fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Featured Article */
.featured-article {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 2px;
}

.section-header p {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}

.featured-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    max-width: 1000px;
    margin: 0 auto;
}

.featured-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}

.featured-image {
    position: relative;
    overflow: hidden;
}

.featured-image svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.featured-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #6c757d;
}

.featured-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.featured-content p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.featured-highlights {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.featured-highlights li {
    padding: 0.5rem 0;
    color: #495057;
    position: relative;
    padding-left: 1.5rem;
}

.featured-highlights li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.featured-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.featured-cta:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

/* Blog Categories */
.blog-categories {
    padding: 60px 0;
    background: white;
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.category-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border: 2px solid #e9ecef;
    background: white;
    color: #6c757d;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-btn:hover,
.category-btn.active {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* Blog Articles */
.blog-articles {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.article-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.article-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.article-image svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    color: #2c3e50;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.article-content {
    padding: 1.5rem;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #6c757d;
}

.article-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.article-content p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    background: #f8f9fa;
    color: #6c757d;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.article-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.article-link:hover {
    color: #764ba2;
    transform: translateX(5px);
    text-decoration: none;
}

/* Load More */
.load-more-section {
    text-align: center;
    margin-top: 3rem;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

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

.newsletter-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.newsletter-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.newsletter-text p {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.6;
}

.newsletter-signup {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.newsletter-signup input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
}

.newsletter-signup button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    color: #2c3e50;
    padding: 15px 25px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-signup button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.newsletter-privacy {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-header {
        padding: 80px 0 60px;
    }
    
    .blog-header h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .blog-header p {
        font-size: 1.1rem;
    }
    
    .blog-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin-top: 2rem;
    }
    
    .stat-item {
        padding: 1.5rem 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .featured-card {
        grid-template-columns: 1fr;
        margin-bottom: 2rem;
    }
    
    .featured-content {
        padding: 2rem;
    }
    
    .featured-content h3 {
        font-size: 1.5rem;
    }
    
    .category-filters {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 1rem;
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
        white-space: nowrap;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .article-card {
        padding: 1.5rem;
    }
    
    .newsletter-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .newsletter-text h2 {
        font-size: 2rem;
    }
    
    .newsletter-signup {
        flex-direction: column;
        gap: 1rem;
    }
    
    .newsletter-signup input {
        width: 100%;
    }
    
    .newsletter-signup .btn {
        width: 100%;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }
    
    .blog-header {
        padding: 60px 0 40px;
    }
    
    .blog-header h1 {
        font-size: 2rem;
        line-height: 1.1;
    }
    
    .blog-header p {
        font-size: 1rem;
    }
    
    .blog-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1.5rem 1rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 1rem;
    }
    
    .featured-content {
        padding: 1.5rem;
    }
    
    .featured-content h3 {
        font-size: 1.3rem;
    }
    
    .featured-content p {
        font-size: 0.95rem;
    }
    
    .category-filters {
        gap: 0.3rem;
    }
    
    .filter-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    .article-card {
        padding: 1.2rem;
    }
    
    .article-card h3 {
        font-size: 1.2rem;
    }
    
    .article-card p {
        font-size: 0.9rem;
    }
    
    .newsletter-text h2 {
        font-size: 1.8rem;
    }
    
    .newsletter-text p {
        font-size: 0.95rem;
    }
    
    .newsletter-signup input {
        padding: 12px 16px;
        font-size: 0.95rem;
    }
    
    .newsletter-signup .btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
}
/* Article Page Enhanced Styles */
.article-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #eef2f7 100%);
}
.article-section .container {
    max-width: 1000px;
}
.article-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
}
@media (max-width: 992px) {
    .article-layout {
        grid-template-columns: 1fr;
    }
}
.article-toc {
    position: sticky;
    top: 120px;
    align-self: start;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    padding: 1.25rem;
}
.article-toc h2 {
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 0.75rem 0;
}
#toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
#toc-list li {
    margin: 0.35rem 0;
}
#toc-list a {
    display: block;
    color: #667eea;
    text-decoration: none;
    font-size: 0.95rem;
}
#toc-list a:hover {
    color: #764ba2;
}
.article-content {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    padding: 2rem;
}
.article-content h2 {
    color: #2c3e50;
    font-size: 1.6rem;
    margin-top: 2rem;
}
.article-content h3 {
    color: #334155;
    font-size: 1.2rem;
    margin-top: 1.5rem;
}
.article-content p {
    color: #495057;
    line-height: 1.8;
}
.article-meta {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #6c757d;
    font-size: 0.9rem;
}
.article-meta span {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 999px;
    padding: 6px 12px;
}
.article-hero {
    margin: 2rem 0 1rem;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}
.article-hero img {
    width: 100%;
    height: auto;
    display: block;
}
.article-tags {
    margin-top: 1.5rem;
}
.article-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.article-links .article-link {
    padding: 10px 16px;
    border: 1px solid #e9ecef;
    border-radius: 999px;
    background: #f8f9fa;
}
.author-box {
    margin-top: 2rem;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}
.author-box .author-name {
    font-weight: 700;
    color: #2c3e50;
}
.author-box .author-role {
    color: #6c757d;
    font-size: 0.95rem;
}
.related-articles {
    margin-top: 3rem;
}
.related-articles h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}
.related-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 14px;
    padding: 1rem 1.25rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}
.related-card a {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
}
.related-card a:hover {
    color: #764ba2;
}
.cta-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    text-align: center;
}
.cta-section .btn {
    background: #fff;
    color: #2c3e50;
    border-radius: 999px;
    padding: 12px 20px;
    border: none;
    font-weight: 700;
}