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

@font-face {
    font-family: 'Dana';
    src: url('/wp-content/themes/hello-elementor-child/fonts/Dana.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

/* استایل برای ویجت با کلاس custom-font-widget */
.custom-font-widget .elementor-widget-container h2 {
    font-size: 22px !important;
    font-family: 'Dana', sans-serif !important;
    font-weight: 700 !important; /* بولد */
    line-height: 1.4 !important;
	padding-top: 20px !important;
}

.custom-font-widget .elementor-widget-container h3 {
    font-size: 18px !important;
    font-family: 'Dana', sans-serif !important;
    font-weight: 600 !important; /* نیمه‌بولد */
    line-height: 1.5 !important;
	padding-top: 15px !important;
}

.custom-font-widget .elementor-widget-container p {
    font-size: 16px !important;
    font-family: 'Dana', sans-serif !important;
    font-weight: 400 !important; /* معمولی */
    line-height: 1.8 !important;
}

.custom-font-widget .elementor-widget-container strong,
.custom-font-widget .elementor-widget-container b {
    font-weight: 700 !important; /* بولد */
}



/* استایل برای لیست‌ها */
.custom-font-widget .elementor-widget-container ul li,
.custom-font-widget .elementor-widget-container ol li {
    font-size: 16px !important;
    font-family: 'Dana', sans-serif !important;
    line-height: 1.8 !important;
}

/* استایل برای لینک‌ها */
.custom-font-widget .elementor-widget-container a {
    font-family: 'Dana', sans-serif !important;
    font-weight: 500 !important;
}

figcaption {
    font-family: 'Dana' !important;
}


.custom-font-widget .wp-caption.aligncenter {
    width: 800px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
}

.custom-font-widget .wp-caption.aligncenter img {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 100% !important;
}




/* استایل جدول در ویجت */
.custom-font-widget .elementor-widget-container table {
    font-family: 'Dana', sans-serif !important;
	margin-bottom: 10px;
}

/* استایل سرستون‌ها (th) */
.custom-font-widget .elementor-widget-container table th {
    font-family: 'Dana', sans-serif !important;

}

/* استایل سلول‌ها (td) */
.custom-font-widget .elementor-widget-container table td {
    font-family: 'Dana', sans-serif !important;
}

/* استایل متن‌های بولد داخل جدول */
.custom-font-widget .elementor-widget-container table strong,
.custom-font-widget .elementor-widget-container table b {
    font-family: 'Dana', sans-serif !important;
}

/* استایل برای حالتی که متن داخل p در سلول‌ها باشه */
.custom-font-widget .elementor-widget-container table td p {
    font-family: 'Dana', sans-serif !important;
}


@media screen and (max-width: 600px) {
  .custom-font-widget .elementor-widget-container table {
    display: block;
    overflow-x: auto; /* اسکرول افقی در موبایل */
    white-space: nowrap; /* جلوگیری از شکستن متن */
  }

  .custom-font-widget .elementor-widget-container th,
  .custom-font-widget .elementor-widget-container td {
    padding: 3px;
  }
}

/*تنظیم عرض کارت ها در لیست ها*/
@media (min-width: 1025px) {
    .dce-posts-wrapper.dce-wrapper-grid .dce-post-item.dce-item-grid {
        flex: 0 0 25% !important; /* عرض ثابت برای 4 ستون در دسکتاپ */
        max-width: 25% !important;/* جلوگیری از کشیده شدن آیتم‌ها */
        box-sizing: border-box !important;
    }
}