/* Article Header */
.article-header {
    padding: 30px 24px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.article-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.article-header-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.article-category {
    padding: 6px 14px;
    background: var(--accent-secondary);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.article-date,
.article-views {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-left: 10px;
    margin-right: 10px;
}

.article-header h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.3;
}

.article-author {
    font-size: 14px;
}

/* Article Content */
.article-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 24px 80px;
}

.article-summary {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.8;
    padding: 24px;
    background: var(--secondary-dark);
    border-radius: 12px;
    margin-bottom: 40px;
    /* border-left: 4px solid var(--accent-primary); */
}

.article-body {
    font-size: 16px;
    line-height: 1.9;
    color: var(--text-primary);
}

.article-body h1 {
    font-size: 28px;
    margin: 40px 0 20px;
    font-weight: 700;
}

.article-body h2 {
    font-size: 24px;
    margin: 36px 0 16px;
    font-weight: 700;
}

.article-body h3 {
    font-size: 20px;
    margin: 28px 0 12px;
    font-weight: 600;
}

.article-body p {
    margin: 0 0 20px;
}

.article-body ul,
.article-body ol {
    margin: 0 0 20px;
    padding-left: 28px;
}

.article-body li {
    margin-bottom: 10px;
}

.article-body a {
    color: var(--accent-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.article-body a:hover {
    color: var(--accent-violet);
}

.article-body code {
    background: var(--secondary-dark);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 14px;
    font-family: "SF Mono", Monaco, Consolas, monospace;
    color: var(--accent-secondary);
}

.article-body pre {
    background: var(--text-primary);
    color: #E2E8F0;
    padding: 20px 24px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 0 0 24px;
    font-size: 14px;
    line-height: 1.6;
}

.article-body pre code {
    background: none;
    padding: 0;
    color: inherit;
    font-size: inherit;
}

.article-body blockquote {
    border-left: 4px solid var(--accent-primary);
    padding: 16px 20px;
    margin: 0 0 24px;
    background: rgba(59, 130, 246, 0.04);
    border-radius: 0 8px 8px 0;
    color: var(--text-secondary);
    font-style: italic;
}

.article-body img {
    max-width: 100%;
    border-radius: 12px;
    margin: 20px 0;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 24px;
    font-size: 14px;
}

.article-body th,
.article-body td {
    padding: 12px 16px;
    border: 1px solid var(--border-card);
    text-align: left;
}

.article-body th {
    background: var(--secondary-dark);
    font-weight: 600;
}

.article-body hr {
    border: none;
    border-top: 1px solid var(--border-card);
    margin: 40px 0;
}

/* Tags */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-card);
}

.tag {
    padding: 6px 14px;
    background: rgba(59, 130, 246, 0.08);
    border-radius: 20px;
    font-size: 13px;
    color: var(--accent-primary);
}

.error-state {
    max-width: 800px;
    margin: 70px auto;
    text-align: center;
    padding: 35px;
}

.error-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.error-state h2 {
    font-size: 24px;
    margin-bottom: 12px;
}

.error-state p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* Back Button */
.back-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px 40px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--secondary-dark);
    border: 1px solid var(--border-card);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: var(--accent-primary);
    color: #ffffff;
    border-color: var(--accent-primary);
}

 /* Articles Grid */
 .articles-grid {
     display: grid;
     grid-template-columns: repeat(3, 1fr);
     gap: 32px;
     margin-bottom: 60px;
 }

 .article-card {
     background: var(--card-bg);
     border: 1px solid var(--border-card);
     border-radius: 16px;
     overflow: hidden;
     transition: transform 0.3s ease, box-shadow 0.3s ease;
     cursor: pointer;
 }

 .article-card:hover {
     transform: translateY(-8px);
     box-shadow: 0 20px 40px rgba(59, 130, 246, 0.12);
 }

 .article-thumb {
     height: 180px;
     display: flex;
     align-items: center;
     justify-content: center;
     font-size: 48px;
     position: relative;
     overflow: hidden;
 }

 .article-thumb.bg-1 {
     background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
 }

 .article-thumb.bg-2 {
     background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
 }

 .article-thumb.bg-3 {
     background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
 }

 .article-thumb.bg-4 {
     background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
 }

 .article-thumb.bg-5 {
     background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
 }

 .article-thumb.bg-6 {
     background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
 }

 .article-badge {
     position: absolute;
     top: 12px;
     right: 12px;
     padding: 4px 10px;
     background: var(--accent-secondary);
     border-radius: 4px;
     font-size: 11px;
     font-weight: 600;
     color: #ffffff;
 }

 .article-content {
     padding: 24px;
 }

 .article-meta {
     display: flex;
     align-items: center;
     gap: 12px;
     margin-bottom: 12px;
 }

 .article-category {
     padding: 4px 10px;
     background: rgba(59, 130, 246, 0.08);
     border-radius: 4px;
     font-size: 12px;
     color: var(--accent-primary);
     font-weight: 500;
    overflow: hidden;
    height: 27px;
    max-width: 150px;
 }

 .article-date {
     font-size: 12px;
     color: var(--text-muted);
 }

 .article-title {
     font-size: 18px;
     font-weight: 700;
     color: var(--text-primary);
     margin-bottom: 12px;
     line-height: 1.4;
     display: -webkit-box;
     -webkit-line-clamp: 2;
     -webkit-box-orient: vertical;
     overflow: hidden;
 }

 .article-summary {
     font-size: 14px;
     color: var(--text-secondary);
     line-height: 1.7;
     margin-bottom: 16px;
     display: -webkit-box;
     -webkit-line-clamp: 3;
     -webkit-box-orient: vertical;
     overflow: hidden;
 }

 .article-footer {
     display: flex;
     justify-content: space-between;
     align-items: center;
     padding-top: 16px;
     border-top: 1px solid var(--border-card);
 }

 .article-views {
     font-size: 13px;
     color: var(--text-muted);
     display: flex;
     align-items: center;
     gap: 4px;
 }

 .article-read {
     font-size: 14px;
     color: var(--accent-primary);
     font-weight: 500;
 }
   /* Category Filter */
   .category-filter {
       display: flex;
       justify-content: center;
       gap: 12px;
       margin-bottom: 48px;
       flex-wrap: wrap;
   }

   .category-btn {
       padding: 10px 24px;
       border-radius: 24px;
       font-size: 14px;
       font-weight: 500;
       background: var(--secondary-dark);
       color: var(--text-secondary);
       border: none;
       cursor: pointer;
       transition: all 0.3s ease;
   }

   .category-btn:hover {
       background: rgba(59, 130, 246, 0.1);
       color: var(--accent-primary);
   }

   .category-btn.active {
       background: var(--accent-primary);
       color: #ffffff;
   }

        /* Empty State */
        .empty-state {
            text-align: center;
            padding: 80px 40px;
            background: var(--secondary-dark);
            border-radius: 16px;
            grid-column: 1 / -1;
        }
    
        .empty-icon {
            font-size: 64px;
            margin-bottom: 20px;
        }
    
        .empty-state h3 {
            font-size: 20px;
            margin-bottom: 8px;
            color: var(--text-primary);
        }
    
        .empty-state p {
            color: var(--text-muted);
        }
    
        /* Pagination */
        .pagination {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 8px;
            margin-top: 40px;
        }
    
        .page-btn {
            padding: 10px 16px;
            border: 1px solid var(--border-card);
            border-radius: 8px;
            background: var(--card-bg);
            color: var(--text-secondary);
            font-size: 14px;
            cursor: pointer;
            transition: all 0.2s;
            min-width: 44px;
        }
    
        .page-btn:hover:not(:disabled) {
            border-color: var(--accent-primary);
            color: var(--accent-primary);
        }
    
        .page-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }
    
        .page-btn.active {
            background: var(--accent-primary);
            border-color: var(--accent-primary);
            color: #ffffff;
        }
    
        .page-info {
            margin: 0 16px;
            font-size: 14px;
            color: var(--text-muted);
        }
/* Responsive */
@media (max-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {

    .article-container {
        padding: 10px 4px 80px;
    }
    .article-header{
        padding: 30px 4px 30px;
    }
    .article-header h1 {
        font-size: 28px;
    }

    .article-header-content {
        padding: 0;
    }
    .articles-grid {
        grid-template-columns: 1fr;
    }
    .article-body {
        font-size: 15px;
    }

    .article-body h1 {
        font-size: 24px;
    }

    .article-body h2 {
        font-size: 20px;
    }
}
.article-kicker {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 1.25rem;
    color: #6b7280;
    font-size: .9rem;
    margin-top:20px;
}

.article-kicker a {
    color: #0ABAB5;
    text-decoration: none;
    font-weight: 700;
}

.describe{
    margin-top: 10px;
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 14px;
}