/* 
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 */


.home-categories-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.home-categories-grid .category-item {
/*     flex: 1 0 23%; /* آیتم‌ها 23% از عرض را اشغال می‌کنند */
    margin: 1%; /* فاصله بین آیتم‌ها */
    box-sizing: border-box; /* شامل پدینگ و بوردر در اندازه کلی دیو */
    text-align: center; /* متن وسط چین */ */
    
}

.home-categories-grid .category-item img {
    max-width: 100%; /* تصویر در محدوده دیو باشد */
    height: auto; /* ارتفاع خودکار */
}

.home-categories-grid .category-item h2 {
    font-size: 16px;
    background-color: #eeeeee;
    margin: 0px;
    line-height: 49px;
    color: #585757;
    font-family: 'Vazirmatn';
}

.home-categories-grid .category-item h2 a {
    color: #565656;
}

.home-categories-grid .category-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(31,117,193,0.9);
    width: 100%;
    height: 100%;
    color: white;
    font-family: 'Vazirmatn';
    line-height: 35px;
    padding: 26px;
    opacity: 0;
    transition: 0.4s;
}

.home-categories-grid .category-item .overlay:hover {
    opacity: 1;
}

.home-categories-grid .category-item .overlay-container {
    position: relative;
}

