/*
این فایل جای امن برای هر تغییر ظاهری/CSS آینده‌ی سایته.

برخلاف فایل‌های داخل wp-content/themes/essentials/css/ (که وقتی افزونه
Pixfort Core فعاله اصلاً لود نمی‌شن، چون استایل اصلی سایت از یک نسخه‌ی
کامپایل‌شده و کش‌شده در دیتابیس خونده می‌شه)، این فایل همیشه و مستقیم لود
می‌شه، و هر بار که ذخیره‌اش کنید، همه‌ی کاربران بلافاصله نسخه جدید رو
می‌بینن (چون شماره نسخه‌اش خودکار از زمان آخرین تغییر فایل ساخته می‌شه،
نه یک عدد ثابت).

هر CSS که می‌خواید اضافه/بازنویسی کنید رو همین‌جا بنویسید.
*/
/* =========================================================
   Iran Yaskawa - Inverter Series Article
   Final Persian Typography
   ========================================================= */
/*
 * Iran Yaskawa — Persian / RTL Typography
 * Place in: /wp-content/themes/essentials-child/assets/css/custom.css
 * Purpose: improve Persian readability without editing the minified parent CSS.
 */

html {
    direction: rtl;
    text-align: right;
}

body {
    direction: rtl;
    text-align: right;
    font-family: IRANSans, Tahoma, Arial, sans-serif !important;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.9;
    color: #495057;
    letter-spacing: 0;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

.body-font,
.secondary-font,
.heading-font {
    letter-spacing: 0;
}

/* Main content */
p,
.entry-content p,
.page-content p,
.post-content p,
.elementor-widget-text-editor p,
.elementor-widget-theme-post-content p,
.wpb_text_column p {
    font-family: IRANSans, Tahoma, Arial, sans-serif !important;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.95;
    margin-top: 0;
    margin-bottom: 1.15em;
}

/* Lists */
.entry-content li,
.page-content li,
.post-content li,
.elementor-widget-text-editor li,
.wpb_text_column li {
    font-size: 16px;
    line-height: 1.9;
    color: #495057;
    margin-bottom: 0.45em;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    font-family: IRANSans, Tahoma, Arial, sans-serif !important;
    font-weight: 700;
    color: #212529;
    letter-spacing: 0;
    line-height: 1.45;
    overflow-wrap: break-word;
}

h1,
.h1 {
    font-size: 2.35rem;
    margin-bottom: 0.7em;
}

h2,
.h2 {
    font-size: 1.95rem;
    margin-top: 1.5em;
    margin-bottom: 0.6em;
}

h3,
.h3 {
    font-size: 1.6rem;
    margin-top: 1.25em;
    margin-bottom: 0.55em;
}

h4,
.h4 {
    font-size: 1.35rem;
    margin-top: 1.1em;
    margin-bottom: 0.5em;
}

h5,
.h5 {
    font-size: 1.18rem;
    margin-top: 1em;
    margin-bottom: 0.45em;
}

h6,
.h6 {
    font-size: 1.05rem;
    margin-top: 0.9em;
    margin-bottom: 0.4em;
}

/* Content links: readable blue instead of very bright cyan */
.entry-content a,
.page-content a,
.post-content a,
.elementor-widget-text-editor a,
.elementor-widget-theme-post-content a,
.wpb_text_column a {
    font-weight: 500;
}

.entry-content a:hover,
.entry-content a:focus,
.page-content a:hover,
.page-content a:focus,
.post-content a:hover,
.post-content a:focus,
.elementor-widget-text-editor a:hover,
.elementor-widget-text-editor a:focus,
.elementor-widget-theme-post-content a:hover,
.elementor-widget-theme-post-content a:focus,
.wpb_text_column a:hover,
.wpb_text_column a:focus {
    color: #175892;
    text-decoration: underline;
}
/* Fix Yaskawa logo dimensions and aspect ratio */
img.pix-logo,
img.pix-logo-scroll {
    width: 221px !important;
    height: 70px !important;
    aspect-ratio: 856 / 271;
    object-fit: contain;
}
/* Buttons and form controls */
button,
input,
select,
textarea,
.btn,
.wpb_button,
.pix-button {
    font-family: IRANSans, Tahoma, Arial, sans-serif !important;
    font-size: 15px;
    line-height: 1.6;
}

button,
.btn,
.wpb_button,
.pix-button {
    font-weight: 600;
}

/* Tables */
table,
.table {
    font-family: IRANSans, Tahoma, Arial, sans-serif !important;
    font-size: 15px;
    line-height: 1.8;
}

table th,
table td,
.table th,
.table td {
    vertical-align: middle;
}

/* WooCommerce text */
.woocommerce,
.woocommerce p,
.woocommerce li,
.woocommerce td,
.woocommerce th,
.woocommerce label,
.woocommerce input,
.woocommerce select,
.woocommerce textarea {
    font-family: IRANSans, Tahoma, Arial, sans-serif !important;
    line-height: 1.85;
}

/* Breadcrumb and small metadata */
.breadcrumb,
.post-meta,
.entry-meta,
.small,
small {
    line-height: 1.7;
}

/* Mobile typography */
@media (max-width: 767.98px) {
    body {
        font-size: 15px;
        line-height: 1.85;
    }

    p,
    .entry-content p,
    .page-content p,
    .post-content p,
    .elementor-widget-text-editor p,
    .elementor-widget-theme-post-content p,
    .wpb_text_column p,
    .entry-content li,
    .page-content li,
    .post-content li,
    .elementor-widget-text-editor li,
    .wpb_text_column li {
        font-size: 15px;
        line-height: 1.9;
    }

    h1,
    .h1 {
        font-size: 1.85rem;
        line-height: 1.5;
    }

    h2,
    .h2 {
        font-size: 1.55rem;
        line-height: 1.5;
    }

    h3,
    .h3 {
        font-size: 1.32rem;
        line-height: 1.5;
    }

    h4,
    .h4 {
        font-size: 1.18rem;
    }

    h5,
    .h5 {
        font-size: 1.08rem;
    }

    table,
    .table {
        font-size: 14px;
    }
}

.iy-inverter-article {
    direction: rtl !important;
    text-align: right !important;

    /* فونت اصلی فارسی سایت */
    font-family: IRANSans, "IRANSans", Tahoma, Arial, sans-serif !important;

    font-size: 17px !important;
    line-height: 2.05 !important;

    color: #222 !important;

    max-width: 100% !important;
}

/* ---------------------------------------------------------
   تمام متن‌ها
   --------------------------------------------------------- */

.iy-inverter-article p,
.iy-inverter-article li,
.iy-inverter-article td,
.iy-inverter-article th {
    font-family: IRANSans, "IRANSans", Tahoma, Arial, sans-serif !important;

    font-size: 17px !important;
    line-height: 2.05 !important;

    color: #222 !important;
}

/* جلوگیری از دخالت استایل‌های Word */
.iy-inverter-article span {
    font-family: inherit !important;
}

/* ---------------------------------------------------------
   تیترها
   --------------------------------------------------------- */

.iy-inverter-article h2 {
    font-family: IRANSans, "IRANSans", Tahoma, Arial, sans-serif !important;

    font-size: 27px !important;
    line-height: 1.8 !important;

    font-weight: 700 !important;

    color: #222 !important;

    text-align: right !important;

    margin-top: 38px !important;
    margin-bottom: 18px !important;
}

.iy-inverter-article h3 {
    font-family: IRANSans, "IRANSans", Tahoma, Arial, sans-serif !important;

    font-size: 23px !important;
    line-height: 1.8 !important;

    font-weight: 700 !important;

    color: #222 !important;

    text-align: right !important;

    margin-top: 32px !important;
    margin-bottom: 16px !important;
}

/* ---------------------------------------------------------
   متن انگلیسی و کدهای فنی
   --------------------------------------------------------- */

.iy-inverter-article [dir="ltr"],
.iy-inverter-article [dir="LTR"] {
    direction: ltr !important;
    unicode-bidi: embed;

    font-family: Arial, Helvetica, sans-serif !important;

    font-size: 0.96em !important;

    display: inline;
}

/* مدل‌ها و کلمات فنی */
.iy-inverter-article strong {
    font-weight: 700 !important;
}

/* ---------------------------------------------------------
   لینک‌ها
   --------------------------------------------------------- */

.iy-inverter-article a {
    font-family: inherit !important;

    color: #1677c8 !important;

    font-weight: 600 !important;

    text-decoration: none;
}

.iy-inverter-article a:hover {
    text-decoration: underline;
}
.iy-inverter-contact .pix-button,
.iy-inverter-contact .pix-button a,
.iy-inverter-contact .pix-button span,
.iy-inverter-contact .btn,
.iy-inverter-contact .btn a {
    color: #fff !important;
}
/* ---------------------------------------------------------
   پاراگراف‌ها
   --------------------------------------------------------- */

.iy-inverter-article p {
    margin-top: 0 !important;
    margin-right: 0 !important;
    margin-left: 0 !important;

    margin-bottom: 15px !important;

    text-indent: 0 !important;
}

/* ---------------------------------------------------------
   لیست‌ها
   --------------------------------------------------------- */

.iy-inverter-article ul,
.iy-inverter-article ol {
    margin-top: 0 !important;
    margin-bottom: 18px !important;

    padding-right: 28px !important;
    padding-left: 0 !important;
}

.iy-inverter-article li {
    margin-bottom: 8px !important;
}

/* ---------------------------------------------------------
   جدول
   --------------------------------------------------------- */

.iy-inverter-article .iy-table-wrap {
    width: 100%;
    overflow-x: auto;
    margin: 25px 0 30px;

    -webkit-overflow-scrolling: touch;
}

.iy-inverter-article table {
    width: 100% !important;

    border-collapse: collapse !important;

    direction: rtl !important;

    font-family: IRANSans, "IRANSans", Tahoma, Arial, sans-serif !important;

    font-size: 16px !important;

    line-height: 1.9 !important;

    table-layout: auto !important;
}

.iy-inverter-article th,
.iy-inverter-article td {
    padding: 12px 14px !important;

    border: 1px solid #ddd !important;

    vertical-align: middle !important;

    text-align: right !important;

    font-family: inherit !important;

    font-size: 16px !important;

    line-height: 1.9 !important;
}

.iy-inverter-article th {
    font-weight: 700 !important;
}

/* متن انگلیسی داخل جدول */
.iy-inverter-article table [dir="ltr"],
.iy-inverter-article table [dir="LTR"] {
    font-family: Arial, Helvetica, sans-serif !important;
}

/* ---------------------------------------------------------
   دکمه تماس
   --------------------------------------------------------- */

.iy-inverter-article .iy-inverter-contact {
    margin-top: 30px;
    text-align: center;
}

/* ---------------------------------------------------------
   موبایل
   --------------------------------------------------------- */

@media (max-width: 767px) {

    .iy-inverter-article {
        font-size: 16px !important;
        line-height: 2 !important;
    }

    .iy-inverter-article p,
    .iy-inverter-article li {
        font-size: 16px !important;
        line-height: 2 !important;
    }

    .iy-inverter-article h2 {
        font-size: 22px !important;
        line-height: 1.75 !important;

        margin-top: 30px !important;
        margin-bottom: 15px !important;
    }

    .iy-inverter-article h3 {
        font-size: 19px !important;
        line-height: 1.75 !important;

        margin-top: 25px !important;
        margin-bottom: 13px !important;
    }

    .iy-inverter-article table {
        min-width: 760px !important;

        font-size: 14px !important;
    }

    .iy-inverter-article th,
    .iy-inverter-article td {
        font-size: 14px !important;
        padding: 9px 10px !important;
        line-height: 1.8 !important;
    }
}
/* Fix Flickity arrows on homepage blog slider */
#pix-slider-153811892 .flickity-prev-next-button.previous {
    left: 10px !important;
    right: auto !important;
}

#pix-slider-153811892 .flickity-prev-next-button.next {
    right: 10px !important;
    left: auto !important;
}