.articles-section {
    padding: 50px 20px;
    background: linear-gradient(135deg, #edf2f7, #e2e8f0);
    color: #2d3748; 
    text-align: center;
}

.articles-section h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem); 
    font-family: 'Arial', serif;
    font-weight: bold;
    margin-bottom: 30px;
    color: #1a202c;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1); 
}

.articles-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px; 
    margin-top: 20px;
}

.article-item {
    background-color: #fff; /* Белый фон */
    border-radius: 12px; /* Скругленные углы */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1); /* Тень */
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s; /* Плавные переходы */
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    align-items: center; 
    text-align: center;
    height: 100%; 
}


.article-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); 
}

.article-item h2 {
    font-size: 1.8rem;
    color: #2f855a; 
    margin-bottom: 10px;
}

.article-item p {
    color: #4a5568; 
    margin: 5px 0;
    line-height: 1.6;
}

.article-item .btn {
    margin-top: 15px;
    padding: 12px 25px;
    background: linear-gradient(135deg, #48bb78, #38a169); 
    color: #fff;
    border: none;
    border-radius: 25px; 
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    text-decoration: none;
}

.article-item .btn:hover {
    background: linear-gradient(135deg, #38a169, #2f855a);
    transform: translateY(-3px); 
}

.filter-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.filter-form input[type="text"],
.filter-form select {
    padding: 10px 15px;
    border: 1px solid #cbd5e0; 
    border-radius: 20px;
    font-size: 1rem;
    flex: 0 1 200px;
    max-height: 50px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.filter-form input[type="text"]:focus,
.filter-form select:focus {
    border-color: #48bb78;
    box-shadow: 0 0 5px rgba(72, 187, 120, 0.5);
    outline: none;
}

.filter-form button {
    padding: 10px 20px;
    background-color: #3182ce;
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.filter-form button:hover {
    background-color: #2b6cb0; 
    transform: translateY(-3px); 
}

/* Адаптивные стили */
@media (max-width: 768px) {
    .filter-form {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .filter-form input[type="text"],
    .filter-form select,
    .filter-form button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .articles-section h1 {
        font-size: 2rem;
    }

    .article-item {
        padding: 15px;
    }

    .article-item h2 {
        font-size: 1.5rem;
    }
}
