/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */
/*custom styles K*/
.elementor-shortcode h2 {
	font-size: 1.875rem;
	line-height: 2.25rem;
	--tw-text-opacity: 1;
	color: rgb(17 24 39 / var(--tw-text-opacity));
	font-weight: 700;
}
.category-header {
    background-size: cover;
    background-position: center center;
    height: 200px;
    display: flex;
    align-items: end;
    border-radius: 10px 10px 0 0;
    padding: 0 15px;
}
.content-part {
	z-index: 9;
	color: #fff;
}
.category-body .ingredients {
	color: #374151;
	font-weight: 600;
	font-size: 14px;
	margin: 15px 0 5px;
}
.category-body .acf-repeater-list {
	font-size: 14px;
}
.category-header .overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
    overflow: hidden;
    border-radius: 10px;
}
.custom-text-editor {
	color: #374151;
	font-size: .875rem;
	line-height: 1.25rem;
}
.category-body {
    padding: 20px;
    z-index: 88;
    position: relative;
    background-color: #fff;
    border-radius: 0 0 10px 10px;
}
.category-body p {
    font-size: .875rem;
    line-height: 1.25rem;
    font-weight: 500;
    margin-top: 5px;
    margin-bottom: 5px;
    --tw-text-opacity: 1;
    color: rgb(22 163 74 / var(--tw-text-opacity));
}

.acf-repeater-list {
	padding-left: 20px;
	color: #374151;
        font-weight: 500;
}
.acf-repeater-list li {
	padding: 4px 0;
}

/**/

.categories-grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 equal columns */
    gap: 20px; /* Space between items */
}

.categories-grid-container.columns3{
    grid-template-columns: repeat(3, 1fr); /* 4 equal columns */
}

/* For responsive behavior - switches to 2 columns on smaller screens */
@media (max-width: 768px) {
    .categories-grid-container, .categories-grid-container.columns3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* For mobile - switches to 1 column */
@media (max-width: 480px) {
    .categories-grid-container, .categories-grid-container.columns3 {
        grid-template-columns: 1fr;
    }
}

.custom-categories-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.custom-categories-wrapper:not(.columns3):nth-child(4n+1) {
    grid-column-start: 1;
}

/* Or alternatively */
.custom-categories-wrapper:not(.columns3):nth-child(4n+1) {
    clear: both; /* Fallback for older browsers */
}

.custom-categories-wrapper.columns3:nth-child(3n+1) {
    grid-column-start: 1;
}

/* Or alternatively */
.custom-categories-wrapper.columns3:nth-child(3n+1) {
    clear: both; /* Fallback for older browsers */
}



/* style for categories */
.category-heading {
	font-size: 24px;
	font-weight: bold;
	color: white;
	margin-bottom: 10px;
        z-index: 9;
}
.custom-text-editor p {
    font-size: 14px;

}

.category-box {
    --tw-shadow: 0 10px 10px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);
    --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);
    margin-bottom: 16px;
}
.category-box {
    margin-top: 20px;
    border-radius: 10px;
}
.custom-categories-wrapper {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 38px;
}

.category-box {
    transition: transform 0.5s ease; /* slow smooth transition */
    position: relative;
}

.category-box:hover {
    transform: translateY(-10px); /* move up by 10px */
    cursor: pointer;
}

/* responsive css */

@media screen and (max-width: 1024px) {
    .category-box {
        width: 50% !important;


    }
}

@media screen and (max-width: 600px) {
    .category-box {
        width: 100% !important;
    }
}
