/* Desktop - Articles/Insights Index Page */

.articles-archive-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.articles-archive-filters {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
}

.articles-search {
    margin-bottom: 20px;
}

.articles-search-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.articles-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-button {
    padding: 8px 16px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.filter-button:hover {
    background-color: #e0e0e0;
}

.filter-button.active {
    background-color: rgb(164, 11, 94);
    color: white;
    border-color: rgb(164, 11, 94);
}

.articles-archive-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.articles-archive-item {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.articles-archive-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

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

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

.articles-archive-item:hover .article-image {
    transform: scale(1.05);
}

.article-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.articles-archive-meta {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.article-category {
    background-color: rgb(164, 11, 94);
    color: white;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    margin-right: 12px;
}

.articles-archive-date {
    color: #666;
    font-size: 14px;
}

.articles-archive-item-title {
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
}

.articles-archive-item-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.articles-archive-item-title a:hover {
    color: rgb(164, 11, 94);
}

.articles-archive-summary {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.articles-archive-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.article-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 8px;
}

.author-name {
    font-size: 14px;
    color: #333;
}

.article-more-link {
    color: rgb(164, 11, 94);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.article-more-link:hover {
    color: #333;
}

.articles-empty {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #666;
    grid-column: 1 / -1;
}

/* Animation classes */
.article-item-animated {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s forwards;
}

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

/* Optimize for large desktop screens */
@media (min-width: 1400px) {
    .articles-archive-list {
        grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    }
}

/* Article tags styling */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
}
