/* Navigation Buttons Layout */
.exam-filter-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 20px 5px;
}

.filter-btn {
    padding: 10px 5px;
    border-radius: 10px;
    border: 1px solid #0073aa;
    cursor: pointer;
    background: #fff;
    color: #0073aa;
    transition: 0.3s;
    box-sizing: border-box;
}

/* Button Responsive Count */
.filter-btn { flex: 1 1 calc(20% - 10px); } /* Desktop 5 */

@media (max-width: 992px) { .filter-btn { flex: 1 1 calc(33.33% - 10px); } } /* Tablet 3 */
@media (max-width: 600px) { .filter-btn { flex: 1 1 calc(50% - 10px); } }    /* Mobile 2 */

.filter-btn.active {
    background: #0073aa;
    color: #fff;
}

/* Category Block */
.exam-category-block {
    margin: 20px 0;
    display: none; /* Hidden by default */
}

.category-title {
    color: #0073aa;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.5em;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

@media (max-width: 768px) {
    .posts-grid { grid-template-columns: 1fr; }
}

.post-item {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.post-link {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 16px;
}

/* Action Buttons */
.post-actions {
    display: flex;
    gap: 5px;
}

.btn-pdf, .btn-mcq {
    padding: 10px;
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    display: inline-block;
}

.btn-pdf { background: #27ae60; }
.btn-mcq { background: #0073aa; }