/*--------------------------------------------------------------
# Archive Layout
--------------------------------------------------------------*/

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

.article-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s ease-in-out;
    text-align: center; /* Center content */
    padding: 1rem;
}

.article-item:hover {
    transform: translateY(-5px);
}

.article-item__link {
    text-decoration: none;
    color: inherit;
    padding-top: 1rem; /* Add padding for the image */
}

.article-item__thumbnail {
    margin-bottom: 1.5rem;
}

.article-item__thumbnail img {
    width: 150px;  /* Fixed size for circle */
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    display: inline-block; /* To respect text-align: center */
    border: 3px solid #fff; /* Optional: adds a nice border */
    box-shadow: 0 2px 6px rgba(0,0,0,0.1); /* Optional: adds depth */
}

.article-item__content {
    padding: 0 1rem 1rem;
}

.article-item__title {
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
    line-height: 1.3;
    font-weight: 600;
}

.article-item__excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
}

.article-item__excerpt p {
    margin: 0;
}

/* Pagination */
.pagination {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 0.25rem;
}

.pagination .page-numbers {
    padding: 0.5em;
    border: 1px solid #ddd;
    min-width: 2.2rem;
    border-radius: 4px;
    text-decoration: none;
    color: var(--color-primary);
    background-color: #fff;
    text-align: center;
}

.pagination .page-numbers.current {
    background-color: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

/* Desktop Styles */
@media (min-width: 769px) {
    .articles-list {
        grid-template-columns: 1fr 1fr;
    }
}