.recipe-filter-container {
    display: flex;
    gap: 20px;
    margin: 20px;
}

.recipe-filters {
    flex: 1;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.recipe-filters select {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 16px;
}

.recipe-posts-container {
    flex: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    opacity: 1;
    transition: opacity 0.3s ease;
}

.recipe-posts-container.loading {
    opacity: 0.5;
}

.recipe-post {
    width: calc(33.333% - 20px);
    padding: 15px;
    background: #f5f5f5;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.recipe-post:hover {
    transform: scale(1.05);
}

.recipe-post-image img {
    width: 100%;
    height: 182px !important; /* Force height */
    object-fit: cover; /* Crop the image */
    border-radius: 8px;
}

.recipe-post-title h3 {
    font-size: 1.2em;
    margin-top: 10px;
}



.loading-spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border: 8px solid #f3f3f3;
    border-top: 8px solid #ff6f61;
    border-radius: 50%;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .recipe-post {
        width: 48%; /* 2 columns on mobile */
    }
}


.recipe-post {
    width: 31%; /* 3 columns on desktop */
    text-align: center;
    text-decoration: none;
    color: inherit;
}

.recipe-post:hover {
    transform: scale(1.05);
}

.recipe-post-image img {
    width: 100%;
    height: 182px; /* Force height */
    object-fit: cover; /* Crop the image */
    border-radius: 8px;
}

.recipe-post-title h3 {
    font-size: 1.2em;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .recipe-post {
        width: 48%; /* 2 columns on mobile */
    }

    /* 2 columns on mobile */
    .recipe-post {
        width: calc(50% - 10px); /* 2 columns on mobile */
				padding:0px !important;
    }
		
		 .recipe-post-image img {
        width: 100%; /* Make image take up the full width */
        height: 115px !important; 
        object-fit: cover; /* Keep the image cropped */
    }
		
		.recipe-posts-container{
			padding:0px !important;	
		}
		
		.recipe-filters{
				padding:0px !important;
		}
}

#recipe-posts-container.loading {
    opacity: 0.5;
    position: relative;
}

#recipe-posts-container.loading::after {
    content: "Loading...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2em;
    color: #666;
}

#load-more-container {
    text-align: center;
    margin-top: 20px;
}

#load-more-button {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
}

#load-more-button:hover {
    background: #005177;
}
