/* Homepage Builder Styles */

.home-category-section {
    margin-bottom: 4rem;
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    position: relative;
}

.category-title {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.category-title a {
    color: var(--color-secondary);
    text-decoration: none;
}

.category-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s ease;
    margin-top: 1rem;
}

.category-btn:hover {
    opacity: 0.9;
    text-decoration: none;
}

/* Post Grid */
/* Moved to global.css */

.category-footer {
    padding-top: 0;
    display: flex;
    justify-content: flex-end; /* Align button to right */
}

/* Homepage Search Section */
/* Moved to global.css to be reusable if needed, or kept here but ensured global styles cover it */
.home-search-section {
    margin-bottom: 2rem;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: center; /* Center content horizontally */
    width: 100%;
}

.home-search-section form {
    width: 100%;
    max-width: 600px; /* Restore max-width to center it nicely */
    margin: 0 auto; /* Ensure form itself is centered in container */
    display: flex;
    justify-content: center;
}
/* Inputs styled globally or below */

@media (max-width: 600px) {
    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .category-btn {
        width: auto; /* Allow button to size to text */
        text-align: center;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }

    .category-footer {
        justify-content: flex-end; /* Keep button right on mobile too */
    }
}
