body {
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fc;
    color: #333;
}
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 60px;
    width: 90%;
}
.page-title {
    font-size: 36px;
    font-weight: bold;
    text-align: left;
    color: #111;
    margin-bottom: 30px;
}
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}
.article-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 300px;
}
.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}
.article-title {
    font-size: 20px;
    font-weight: bold;
    color: #222;
    margin-bottom: 10px;
}
.article-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}
.article-excerpt {
    font-size: 16px;
    color: #444;
    margin-top: 10px;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}
.tag {
    display: inline-block;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: bold;
    background-color: #e3e8f0;
    border-radius: 20px;
    color: #333;
    margin-top: 10px;
    white-space: nowrap;
    width: fit-content;
}
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}
.pagination a {
    padding: 10px 15px;
    margin: 0 5px;
    text-decoration: none;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.pagination a:hover {
    background-color: #333;
    color: #fff;
}
.pagination .active {
    display: inline-block;
    padding: 10px 15px;
    background-color: #333;
    border-radius: 4px;
    color: #fff;
    border-color: #333;
    text-align: center;
}
.total-records {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-top: 20px;
}
.upgrade-message {
    background: #fff3cd;
    color: #856404;
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    margin-top: 20px;
    border: 1px solid #ffeeba;
}
.access-button {
    display: inline-block;
    background: #ffa500;
    color: white;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    transition: 0.3s;
}
.access-button:hover {
    background: #ff8700;
}
.article-card img.article-cover {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 12px;
    object-fit: cover;
}

@media (max-width: 1024px) {
    .container {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 1.8rem;
    }
    .filters {
        flex-direction: column;
        gap: 10px;
    }
    .filters .search,
    .filters input,
    .filters button,
    .filters select {
        width: 100%;
    }
    .pagination {
        gap: 3px;
        flex-wrap: wrap;
    }
    .pagination a, .pagination span {
        padding: 8px 12px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.5rem;
    }
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
    .pagination a, .pagination span {
        padding: 6px 10px;
        font-size: 12px;
    }
}