/* Archive page styles */

/* Archive Section */
.archive-section {
    min-height: 70vh;
    padding: 4rem 0 0 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.archive-container {
    max-width: 1400px; 
    margin: 0 auto;
    padding: 2rem 2rem;
}

.archive-navigation-top {
    margin-bottom: 3rem;
    text-align: left;
}

/* Archive Header */
.archive-header {
    text-align: center;
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e5e7eb;
}

.archive-title {
    font-size: 3rem;
    color: #0c4a6e;
    margin-bottom: 1rem;
    font-weight: 700;
    text-transform: capitalize;
}

.archive-description {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.article-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e0f2fe;
}

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

.article-image {
    height: 12rem;
    width: 100%;
    overflow: hidden;
    background: #e0f2fe;
}

.article-image a {
    display: block;
    height: 100%;
    width: 100%;
}

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

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

.article-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.article-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0c4a6e;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.article-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-title a:hover {
    color: #0369a1;
}

.article-date {
    color: #0369a1;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.article-excerpt {
    text-align: left;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 1.5rem;
    color: #374151;
    font-size: 1rem;
}

.article-link {
    color: #0284c7;
    text-decoration: none;
    text-align: right;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
    align-self: flex-end;
}

.article-link:hover {
    color: #0369a1;
    text-decoration: underline;
}

/* Pagination */
.archive-pagination {
    grid-column: 1 / -1;
    margin-top: 2rem;
    text-align: center;
}

.archive-pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.archive-pagination .page-numbers {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    background: white;
    color: #0c4a6e;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    border: 2px solid #e0f2fe;
    transition: all 0.3s ease;
}

.archive-pagination .page-numbers:hover {
    background: #e0f2fe;
    color: #0369a1;
    border-color: #0369a1;
}

.archive-pagination .page-numbers.current {
    background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 100%);
    color: white;
    border-color: #0c4a6e;
}

.archive-pagination .prev,
.archive-pagination .next {
    font-weight: 700;
}

/* No articles message */
.no-articles {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: #6b7280;
    font-size: 1.25rem;
}

/* Back button */
.archive-navigation-top .btn-secondary {
    background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    min-width: auto;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.archive-navigation-top .btn-secondary:hover {
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .archive-title {
        font-size: 2rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .archive-container {
        padding: 1rem;
    }

    .archive-navigation-top {
        margin-bottom: 2rem;
    }

    .archive-header {
        margin-bottom: 2rem;
    }
}
