/* Blog-specific styles for ZMCOR */

/* Blog Index Styles */
.blog-hero {
    background: linear-gradient(135deg, var(--primary-color), #667eea);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.blog-hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.blog-hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.blog-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Blog Categories */
.blog-categories {
    padding: 3rem 0;
    background: var(--light-color);
}

.blog-categories h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.category-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.category-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.category-card h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.category-card p {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* Featured Articles */
.featured-articles {
    padding: 3rem 0;
}

.featured-articles h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.featured-article {
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.featured-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.article-image img[src$=".svg"] {
    object-fit: contain;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8ecff 100%);
}

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

.featured-article .article-content {
    padding: 1.5rem;
}

.article-category {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 1rem;
}

.featured-article h3 {
    margin-bottom: 1rem;
}

.featured-article h3 a {
    color: var(--dark-color);
    text-decoration: none;
    transition: var(--transition);
}

.featured-article h3 a:hover {
    color: var(--primary-color);
}

.featured-article p {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.featured-article .article-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.featured-article .article-meta i {
    margin-right: 0.25rem;
}

/* All Articles Section */
.all-articles {
    padding: 3rem 0;
    background: var(--light-color);
}

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

.articles-header h2 {
    color: var(--primary-color);
}

.articles-search {
    position: relative;
}

.articles-search input {
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    width: 300px;
    font-size: 1rem;
}

.articles-search i {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-color);
}

.articles-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
}

.articles-list {
    display: grid;
    gap: 1.5rem;
}

.article-card {
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.card-content {
    padding: 1.5rem;
}

.article-card .article-category {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 1rem;
}

.article-card h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.article-card h3 a {
    color: var(--dark-color);
    text-decoration: none;
    transition: var(--transition);
}

.article-card h3 a:hover {
    color: var(--primary-color);
}

.article-card p {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.article-card .article-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--secondary-color);
}

.article-card .article-meta i {
    margin-right: 0.25rem;
}

/* Tags Widget */
.tags-widget .tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tags-cloud .tag {
    background: var(--light-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: var(--transition);
}

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

/* Newsletter CTA */
.newsletter-cta {
    background: linear-gradient(135deg, var(--primary-color), #667eea);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.newsletter-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: white;
}

.newsletter-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.newsletter-form-main {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form-main input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
}

.newsletter-form-main button {
    padding: 1rem 2rem;
    background: white;
    color: var(--primary-color);
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form-main button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.newsletter-content small {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Responsive Design for Blog Index */
@media (max-width: 768px) {
    .blog-hero-content h1 {
        font-size: 2rem;
    }
    
    .blog-hero-content p {
        font-size: 1.1rem;
    }
    
    .blog-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .articles-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .articles-search input {
        width: 100%;
    }
    
    .articles-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .newsletter-form-main {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .newsletter-form-main input {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 480px) {
    .blog-hero {
        padding: 2rem 0;
    }
    
    .blog-hero-content h1 {
        font-size: 1.6rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-article {
        margin: 0 -1rem;
    }
    
    .newsletter-content h2 {
        font-size: 1.8rem;
    }
}

/* Blog Breadcrumb */
.blog-breadcrumb {
    background-color: var(--light-color);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    margin: 0 0.5rem;
    color: var(--secondary-color);
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--text-color);
}

/* Article Header */
.article-header {
    background: linear-gradient(135deg, var(--primary-color), #667eea);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.article-category {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 500;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 1rem 0;
    line-height: 1.2;
}

.article-excerpt {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.social-share {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.share-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Main Blog Layout */
.blog-post {
    padding: 3rem 0;
    background-color: #fafafa;
}

.blog-post .container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    max-width: 1200px;
}

/* Article Content */
.article-content {
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.table-of-contents {
    background: var(--light-color);
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.table-of-contents h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
}

.table-of-contents li {
    margin-bottom: 0.5rem;
}

.table-of-contents a {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.25rem 0;
    display: block;
    transition: var(--transition);
}

.table-of-contents a:hover {
    color: var(--primary-color);
    padding-left: 0.5rem;
}

.article-body {
    padding: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-body h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-color);
}

.article-body h3 {
    color: var(--dark-color);
    font-size: 1.4rem;
    margin: 1.5rem 0 1rem 0;
}

.article-body h4 {
    color: var(--dark-color);
    font-size: 1.2rem;
    margin: 1rem 0 0.5rem 0;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body ul, 
.article-body ol {
    margin: 1rem 0 1.5rem 2rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

.article-body blockquote {
    background: var(--light-color);
    border-left: 4px solid var(--primary-color);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
}

.article-body code {
    background: #f1f3f4;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.article-body pre {
    background: #f8f9fa;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    overflow-x: auto;
    margin: 1rem 0;
}

.article-body pre code {
    background: none;
    padding: 0;
}

/* Inline CTAs within content */
.inline-cta {
    background: linear-gradient(135deg, var(--primary-color), #667eea);
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
    text-align: center;
}

.inline-cta h3 {
    margin-bottom: 0.5rem;
    color: white;
}

.inline-cta p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.inline-cta .btn {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.inline-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Article Tags */
.article-tags {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-color);
    background: var(--light-color);
}

.article-tags h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
}

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

/* Author Bio */
.author-bio {
    padding: 2rem;
    border-top: 1px solid var(--border-color);
    background: white;
}

.author-info {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.author-details h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.author-details p {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.author-social {
    display: flex;
    gap: 0.5rem;
}

.author-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: var(--light-color);
    color: var(--primary-color);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.author-social a:hover {
    background: var(--primary-color);
    color: white;
}

/* Article CTA */
.article-cta {
    background: linear-gradient(135deg, var(--primary-color), #667eea);
    color: white;
    padding: 2rem;
    text-align: center;
}

.article-cta h3 {
    margin-bottom: 1rem;
    color: white;
}

.article-cta p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.cta-buttons .btn-primary {
    background: white;
    color: var(--primary-color);
}

.cta-buttons .btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Blog Sidebar */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 1.5rem;
}

.sidebar-widget h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* Newsletter Widget */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.newsletter-form input[type="email"] {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
}

.newsletter-form button {
    padding: 0.75rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--dark-color);
}

/* Related Articles */
.related-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-post {
    display: flex;
    gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.related-post:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.related-post img {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
}

.related-post-content h4 {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.related-post-content h4 a {
    color: var(--dark-color);
    text-decoration: none;
}

.related-post-content h4 a:hover {
    color: var(--primary-color);
}

.related-post-meta {
    font-size: 0.8rem;
    color: var(--secondary-color);
}

/* Popular Apps Widget */
.app-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.app-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--light-color);
    border-radius: 6px;
    text-decoration: none;
    color: var(--dark-color);
    transition: var(--transition);
}

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

.app-link img {
    width: 32px;
    height: 32px;
}

/* Free Resources Widget */
.free-resources ul {
    list-style: none;
    padding: 0;
}

.free-resources li {
    margin-bottom: 0.75rem;
}

.free-resources a {
    color: var(--dark-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 6px;
    transition: var(--transition);
}

.free-resources a:hover {
    background: var(--light-color);
    color: var(--primary-color);
}

.free-resources a::before {
    content: "🔧";
    font-size: 1.1rem;
}

/* Comments Section */
.comments-section {
    background: white;
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.comments-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-post .container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .article-title {
        font-size: 1.8rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .social-share {
        flex-wrap: wrap;
    }
    
    .article-body {
        padding: 1.5rem;
    }
    
    .author-info {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 1.5rem;
    }
    
    .article-body {
        padding: 1rem;
    }
    
    .table-of-contents {
        padding: 1rem;
    }
    
    .sidebar-widget {
        padding: 1rem;
    }
}

/* Print Styles */
@media print {
    .blog-breadcrumb,
    .social-share,
    .blog-sidebar,
    .article-cta,
    .comments-section,
    header,
    footer {
        display: none;
    }
    
    .blog-post {
        background: white;
        padding: 0;
    }
    
    .article-content {
        box-shadow: none;
    }
    
    .article-header {
        background: white;
        color: black;
        padding: 1rem 0;
    }
}

/* Marketing Banner Styles */
.marketing-banner {
    margin: 2rem 0;
    text-align: center;
    padding: 1rem 0;
}

.marketing-banner .banner-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.marketing-banner .banner-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Responsive banner adjustments */
@media (max-width: 768px) {
    .marketing-banner {
        margin: 1.5rem 0;
    }
    
    .marketing-banner .banner-image {
        border-radius: 6px;
    }
}

@media (max-width: 480px) {
    .marketing-banner {
        margin: 1rem 0;
        padding: 0.5rem 0;
    }
}

/* Category Filtering Styles */
.category-card {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.category-card:hover::before {
    left: 100%;
}

.category-card.active {
    background: var(--primary-color);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(74, 108, 247, 0.3);
}

.category-card.active i {
    color: white;
}

.category-card.active h3,
.category-card.active p {
    color: white;
}

.article-count {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.5rem;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.category-card.active .article-count {
    opacity: 1;
    color: rgba(255, 255, 255, 0.9);
}

.category-controls {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.category-reset {
    background: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow);
}

.category-reset:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 108, 247, 0.3);
}

.category-reset.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 8px 25px rgba(74, 108, 247, 0.3);
}

.category-reset .article-count {
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    margin: 0;
}

.category-reset:not(.active) .article-count {
    background: rgba(74, 108, 247, 0.1);
    color: var(--primary-color);
}

/* Article Card Animation States */
.article-card {
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}

.article-card.filtering-out {
    opacity: 0;
    transform: translateY(-20px);
}

.article-card.filtering-in {
    animation: fadeInUp 0.4s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Articles Header */
.articles-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.articles-header h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin: 0;
    transition: all 0.3s ease;
}

.articles-search {
    position: relative;
    max-width: 300px;
    width: 100%;
}

.articles-search input {
    width: 100%;
    padding: 0.75rem 1rem;
    padding-right: 2.5rem;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: white;
}

.articles-search input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.1);
}

.articles-search i {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

.articles-search input:focus + i {
    color: var(--primary-color);
}

/* Blog Category Responsive Design */
@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .category-card {
        padding: 1.5rem;
    }
    
    .category-card i {
        font-size: 2rem;
    }
    
    .articles-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .articles-header h2 {
        text-align: center;
        font-size: 1.5rem;
    }
    
    .articles-search {
        max-width: 100%;
    }
    
    .category-controls {
        margin-top: 1.5rem;
    }
    
    .category-reset {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .category-card {
        padding: 1.2rem;
    }
    
    .blog-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: rgba(255, 255, 255, 0.1);
        padding: 0.5rem 1rem;
        border-radius: 8px;
    }
    
    .stat-number {
        font-size: 1.8rem;
        margin-bottom: 0;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
}

/* Related Articles Section */
.related-articles {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8ecff 100%);
    margin-top: 2rem;
}

.related-articles .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.related-articles .section-header h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.related-articles .section-header p {
    font-size: 1.1rem;
    color: var(--secondary-color);
    max-width: 600px;
    margin: 0 auto;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.related-article {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.related-article:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.related-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

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

.related-image img[src$=".svg"] {
    object-fit: contain;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8ecff 100%);
    padding: 2rem;
}

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

.related-content {
    padding: 1.5rem;
}

.related-category {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.related-content h3 {
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
    line-height: 1.4;
}

.related-content h3 a {
    color: var(--dark-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-content h3 a:hover {
    color: var(--primary-color);
}

.related-content p {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.related-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--secondary-color);
    flex-wrap: wrap;
}

.related-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.related-meta i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

/* Related Articles Responsive Design */
@media (max-width: 768px) {
    .related-articles {
        padding: 3rem 0;
    }
    
    .related-articles .section-header h2 {
        font-size: 1.8rem;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .related-image {
        height: 200px;
    }
    
    .related-content {
        padding: 1.2rem;
    }
    
    .related-content h3 {
        font-size: 1.2rem;
    }
    
    .related-meta {
        gap: 0.8rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .related-articles {
        padding: 2rem 0;
    }
    
    .related-articles .section-header {
        margin-bottom: 2rem;
    }
    
    .related-articles .section-header h2 {
        font-size: 1.5rem;
    }
    
    .related-articles .section-header p {
        font-size: 1rem;
    }
    
    .related-grid {
        gap: 1rem;
    }
    
    .related-image {
        height: 180px;
    }
    
    .related-content {
        padding: 1rem;
    }
    
    .related-content h3 {
        font-size: 1.1rem;
        margin-bottom: 0.6rem;
    }
    
    .related-content p {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }
}