/* ------------------------------
   Global
------------------------------ */
body {
    margin: 0;
    padding: 0;
    font-family: "Inter", "Poppins", sans-serif;
    background: #f8f9fb;
    color: #333;
}

.blog-wrapper {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.blog-title {
    font-size: 2.4rem;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
}

/* ------------------------------
   Filters
------------------------------ */
.blog-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.blog-filters input,
.blog-filters select {
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background: white;
    font-size: 15px;
    min-width: 150px;
    outline: none;
    transition: 0.2s ease;
}

.blog-filters input:focus,
.blog-filters select:focus {
    border-color: #4a8cff;
    box-shadow: 0 0 0 2px rgba(74, 140, 255, 0.2);
}

.blog-filters button {
    padding: 10px 20px;
    border: none;
    background: #4a8cff;
    color: white;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: 0.2s ease;
}

.blog-filters button:hover {
    background: #3276f2;
}

.reset-btn {
    padding: 10px 20px;
    background: #ddd;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: 0.2s ease;
}

.reset-btn:hover {
    background: #ccc;
}


/* ------------------------------
   Posts Grid
------------------------------ */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 25px;
}

.post-card {
    display: block;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 10px #009879;
}

.post-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #eee;
}

.post-content {
    padding: 18px 20px 22px;
}

.post-content h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.4;
}

.category-label {
    display: inline-block;
    background: #e2edff;
    color: #2f6ff9;
    padding: 4px 10px;
    font-size: 14px;
    border-radius: 6px;
    font-weight: 600;
    margin-bottom: 10px;
}

.excerpt {
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 15px;
    color: #555;
}

.post-date {
    font-size: 13px;
    color: #888;
    display: block;
}

/* ------------------------------
   No Posts
------------------------------ */
.no-posts {
    text-align: center;
    padding: 50px 0;
    font-size: 18px;
    color: #777;
}

/* ------------------------------
   Pagination
------------------------------ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
}

.pagination a {
    padding: 10px 18px;
    border-radius: 10px;
    background: #4a8cff;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s ease;
}

.pagination a:hover {
    background: #3276f2;
}

.page-number {
    font-size: 14px;
    font-weight: 600;
    color: #555;
}

/* ------------------------------
   Responsive
------------------------------ */
@media (max-width: 600px) {
    .blog-title {
        font-size: 2rem;
    }

    .post-img {
        height: 150px;
    }
}

/* ------------------------------
   Recently Updated Section
------------------------------ */
.recent-updated-section {
    margin-top: 60px;
}

.recent-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.recent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.recent-card {
    display: block;
    background: white;
    text-decoration: none;
    color: inherit;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    transition: 0.2s ease;
}

.recent-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 7px 25px rgba(0,0,0,0.12);
}

.recent-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    background: #eee;
}

.recent-content {
    padding: 15px 18px;
}

.recent-content h3 {
    font-size: 1.1rem;
    margin: 0 0 8px;
}

.recent-date {
    font-size: 13px;
    color: #777;
}

/* More Updates Button */
.more-updates {
    text-align: center;
    margin-top: 25px;
}

.more-updates a {
    color: #4a8cff;
    font-weight: 600;
    text-decoration: none;
    font-size: 15px;
}

.more-updates a:hover {
    text-decoration: underline;
}
