/*********************************** Blogs ***********************************/

.category-select {
    padding: 10px 40px 10px 20px;
    border: 2px solid #F36E45;
    border-radius: 30px;
    font-size: 14px;
    margin-bottom: 20px;
    font-family: "Poppins";
    background: white;
    color: #333;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9L12 15L18 9' stroke='%23F36E45' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
}

.posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, 300px);
    gap: 60px;
    margin-bottom: 100px;
}

.post-card {
    width: 330px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s;
    cursor: pointer;
}

.post-card:hover {
    transform: translateY(-5px);
}

.post-card img {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

.post-content {
    padding: 15px;
}

.post-content h3 {
    margin: 0 0 10px;
    font-size: 20px;
    color: #333;
}

.meta {
    margin-top: 10px;
    font-size: 12px;
    color: #777;
}

/* Category header */
.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
    gap: 10px;
}

.category-header h2 {
    margin: 0;
}

.category-header select {
    padding: 10px 40px 10px 20px;
    border: 2px solid #F36E45;
    border-radius: 30px;
    font-size: 14px;
    font-family: "Poppins";
    background: white url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9L12 15L18 9' stroke='%23F36E45' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center;
    background-size: 14px;
    cursor: pointer;
}

/* Responsive behavior */
@media (max-width: 1024px) {
    .posts {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .category-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

.category-header select {
    margin-top: 10px;
    width: 100%;
    max-width: 300px;
}

.posts {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
}

.post-card {
    width: 100%;
    max-width: 330px;
    margin: 0 auto;
}
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
    gap: 10px;
}

.category-header h2 {
    margin: 0;
}

@media (max-width: 768px) {
    .category-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .category-header select {
        margin-top: 10px;
        width: 100%;
        max-width: 300px;
    }
}