body {
    /* background-color: #f8fafc; */
    color: #334155;
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.search-container {
    margin-bottom: 40px;
    width: 100%;
    /* padding: 15px 20px; */
    font-size: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s ease;
    display: flex;
    align-items: center;
}

.search-container img {
    height: 23px;
    margin-left: 20px;
    filter: opacity(0.5);
}

.search-bar {
    height: auto;
    padding: 15px 20px;
    font-size: 16px;
    border: none;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s ease;
}

.search-bar:focus {
    outline: none;
    border-color: #3b82f6;
}

.section {
    margin-bottom: 60px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
    gap: 40px;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    color: black;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.7;
    flex: 1;
    max-width: 600px;
}

.sort-dropdown {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    cursor: pointer;
    min-width: 160px;
}

.sort-dropdown:focus {
    outline: none;
    border-color: #3b82f6;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.article-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    height: fit-content;
}

.article-card:hover {
    background-color: #f8f8fc;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
}

.article-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.article-content {
    padding: 20px;
    height: 160px;
    display: flex;
    flex-direction: column;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 12px;
    color: #64748b;
}

.article-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
    transition: text-decoration 0.2s ease;
    flex: 1;
}

.article-card:hover .article-title {
    text-decoration: underline;
}

.article-summary {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
}

.about-article-content {
    padding: 20px;
    height: auto;
}

.loading {
    text-align: center;
    padding: 40px;
    font-size: 16px;
    color: #64748b;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}

.no-results h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: #475569;
}

@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .section-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

.hidden {
    display: none;
}