/* articles_list.css */
#articles {
    max-width: 1200px;
    padding: 3rem 1rem;
    margin: 0 auto;
}

.articles h1 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    color: #2c3e50;
    border-bottom: thin #d7ebff solid;
}

/* Stile per il filtro per categoria */
.category-filter {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

.category-filter label {
    font-size: 1.2rem;
    color: #2c3e50;
}

.category-filter select {
    padding: 0.5rem 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    background-color: #fff;
    color: #2c3e50;
    transition: border-color 0.3s ease;
}

.category-filter select:focus {
    outline: none;
    border-color: #2980b9;
}

.articles-container {
    position: relative;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    scroll-behavior: smooth;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
}

.nav-arrow {
    font-size: 2.5rem;
    color: #2980b9;
    text-decoration: none;
    padding: 0 1rem;
    transition: transform 0.3s ease;
    display: inline-flex;
    align-items: center;
    height: 40px;
}

.nav-arrow:hover {
    transform: scale(1.2);
    color: #3498db;
}

.page-info {
    font-size: 1.1rem;
    color: #7f8c8d;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.article-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.card-image {
    height: 250px;
    overflow: hidden;
}

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

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

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    margin: 0 0 1rem;
    font-size: 1.25rem;
}

.card-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-title a:hover {
    color: #2980b9;
}

.card-excerpt {
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card-meta {
    margin-top: auto;
    font-size: 0.9rem;
    color: #95a5a6;
}

.no-articles {
    text-align: center;
    font-size: 1.2rem;
    color: #7f8c8d;
    padding: 2rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .card-image {
        height: 200px;
    }
}

@media (max-width: 768px) {
    #articles {
        padding: 2rem 1rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .card-image {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .card-image {
        height: 200px;
    }
    
    .card-content {
        padding: 1rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
}
