/*
Theme Name: Flatsome Child
Description: این قالب نسخه چایلد از قالب فلتسام می باشد. توجه داشته باشید این نسخه از قالب به ندرت آپدیت می شود و بر روی سایت تان تنها کافی است نسخه اصلی قالب را بروزرسانی کنید.
Author: ایران فلتسام
Theme URI: http://flatsomee.ir/
Author URI: http://flatsomee.ir/
Template: flatsome
Version: 3.16.3
*/

/* ************************************************************************** */
/* BEGIN Poppins Local Font Definitions - ADDED BY USER INSTRUCTIONS */
/* ************************************************************************** */

/* Poppins Thin */
@font-face {
  font-family: 'Poppins';
  src: url('assets/public/fonts/poppins/Poppins-Thin.woff2') format('woff2'),
       url('assets/public/fonts/poppins/Poppins-Thin.woff') format('woff');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

/* Poppins Thin Italic */
@font-face {
  font-family: 'Poppins';
  src: url('assets/public/fonts/poppins/Poppins-ThinItalic.woff2') format('woff2'),
       url('assets/public/fonts/poppins/Poppins-ThinItalic.woff') format('woff');
  font-weight: 100;
  font-style: italic;
  font-display: swap;
}

/* Poppins ExtraLight */
@font-face {
  font-family: 'Poppins';
  src: url('assets/public/fonts/poppins/Poppins-ExtraLight.woff2') format('woff2'),
       url('assets/public/fonts/poppins/Poppins-ExtraLight.woff') format('woff');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

/* Poppins ExtraLight Italic */
@font-face {
  font-family: 'Poppins';
  src: url('assets/public/fonts/poppins/Poppins-ExtraLightItalic.woff2') format('woff2'),
       url('assets/public/fonts/poppins/Poppins-ExtraLightItalic.woff') format('woff');
  font-weight: 200;
  font-style: italic;
  font-display: swap;
}

/* Poppins Light */
@font-face {
  font-family: 'Poppins';
  src: url('assets/public/fonts/poppins/Poppins-Light.woff2') format('woff2'),
       url('assets/public/fonts/poppins/Poppins-Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* Poppins Light Italic */
@font-face {
  font-family: 'Poppins';
  src: url('assets/public/fonts/poppins/Poppins-LightItalic.woff2') format('woff2'),
       url('assets/public/fonts/poppins/Poppins-LightItalic.woff') format('woff');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

/* Poppins Regular */
@font-face {
  font-family: 'Poppins';
  src: url('assets/public/fonts/poppins/Poppins-Regular.woff2') format('woff2'),
       url('assets/public/fonts/poppins/Poppins-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Poppins Regular Italic (اگر فایل Italic دارید، در غیر اینصورت حذف کنید) */
@font-face {
  font-family: 'Poppins';
  src: url('assets/public/fonts/poppins/Poppins-Italic.woff2') format('woff2'),
       url('assets/public/fonts/poppins/Poppins-Italic.woff') format('woff');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* Poppins Medium */
@font-face {
  font-family: 'Poppins';
  src: url('assets/public/fonts/poppins/Poppins-Medium.woff2') format('woff2'),
       url('assets/public/fonts/poppins/Poppins-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* Poppins Medium Italic */
@font-face {
  font-family: 'Poppins';
  src: url('assets/public/fonts/poppins/Poppins-MediumItalic.woff2') format('woff2'),
       url('assets/public/fonts/poppins/Poppins-MediumItalic.woff') format('woff');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

/* Poppins SemiBold */
@font-face {
  font-family: 'Poppins';
  src: url('assets/public/fonts/poppins/Poppins-SemiBold.woff2') format('woff2'),
       url('assets/public/fonts/poppins/Poppins-SemiBold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* Poppins SemiBold Italic */
@font-face {
  font-family: 'Poppins';
  src: url('assets/public/fonts/poppins/Poppins-SemiBoldItalic.woff2') format('woff2'),
       url('assets/public/fonts/poppins/Poppins-SemiBoldItalic.woff') format('woff');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

/* Poppins Bold */
@font-face {
  font-family: 'Poppins';
  src: url('assets/public/fonts/poppins/Poppins-Bold.woff2') format('woff2'),
       url('assets/public/fonts/poppins/Poppins-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Poppins Bold Italic */
@font-face {
  font-family: 'Poppins';
  src: url('assets/public/fonts/poppins/Poppins-BoldItalic.woff2') format('woff2'),
       url('assets/public/fonts/poppins/Poppins-BoldItalic.woff') format('woff');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* Poppins ExtraBold */
@font-face {
  font-family: 'Poppins';
  src: url('assets/public/fonts/poppins/Poppins-ExtraBold.woff2') format('woff2'),
       url('assets/public/fonts/poppins/Poppins-ExtraBold.woff') format('woff');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* Poppins ExtraBold Italic */
@font-face {
  font-family: 'Poppins';
  src: url('assets/public/fonts/poppins/Poppins-ExtraBoldItalic.woff2') format('woff2'),
       url('assets/public/fonts/poppins/Poppins-ExtraBoldItalic.woff') format('woff');
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}

/* Poppins Black */
@font-face {
  font-family: 'Poppins';
  src: url('assets/public/fonts/poppins/Poppins-Black.woff2') format('woff2'),
       url('assets/public/fonts/poppins/Poppins-Black.woff') format('woff');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* Poppins Black Italic */
@font-face {
  font-family: 'Poppins';
  src: url('assets/public/fonts/poppins/Poppins-BlackItalic.woff2') format('woff2'),
       url('assets/public/fonts/poppins/Poppins-BlackItalic.woff') format('woff');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

/* ************************************************************************** */
/* END Poppins Local Font Definitions */
/* ************************************************************************** */


/*************** ADD CUSTOM CSS HERE.   ***************/

@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE   ***************/


}
/* CLS Fix - Homepage Slider (Image ID 12746 - 1080x540) */
.ux-slider .ux-banner {
    min-height: 500px;
}
@media (max-width: 768px) {
    .ux-slider .ux-banner {
        min-height: 0;
        padding-bottom: 50%;
        position: relative;
    }
}

/* ============================================================
   OMISHAD-CLS-FIX-v1 — رفع CLS (اضافه‌شده؛ بدون تغییر قوانین قبلی)
   ۱) آیکون‌فونت fl-icons: swap به‌جای block (جلوگیری از Layout Shift حین لود)
   ۲) رزرو فضای نماد اعتماد (enamad iframe) تا وسط صفحه نپرد
   ============================================================ */
@font-face {
  font-family: "fl-icons";
  font-display: swap;
}

/* نماد اعتماد (enamad) — ارتفاع ثابت برای جلوگیری از CLS */
img[referrerpolicy='origin'][src*='enamad'], 
.enamad-container img,
.trust-seal img {
  width: 100%;
  height: auto;
  max-width: 150px;
  aspect-ratio: 1 / 1;
}
/* اگر iframe نماد اعتماد بدون ارتفاع است */
iframe[src*='enamad'] {
  width: 150px;
  height: 120px;
  border: 0;
}
/* اطمینان: هر iframe داخل محتوا aspect-ratio داشته باشد */
.entry-content iframe {
  aspect-ratio: 16 / 9;
  height: auto;
  max-width: 100%;
}
