/* ================================
   Amin Site Global Font
   Vazir FD-WOL - Persian Digits
================================ */

/* 100 - Thin */
@font-face {
    font-family: "AminVazir";
    src: url("../fonts/Vazir-Thin-FD-WOL.woff2") format("woff2");
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

/* 300 - Light */
@font-face {
    font-family: "AminVazir";
    src: url("../fonts/Vazir-Light-FD-WOL.woff2") format("woff2");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* 400 - Regular */
@font-face {
    font-family: "AminVazir";
    src: url("../fonts/Vazir-FD-WOL.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* 500 - Medium */
@font-face {
    font-family: "AminVazir";
    src: url("../fonts/Vazir-Medium-FD-WOL.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* 700 - Bold */
@font-face {
    font-family: "AminVazir";
    src: url("../fonts/Vazir-Bold-FD-WOL.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --amin-site-font: "AminVazir", Tahoma, Arial, sans-serif;
}

/* ================================
   Apply Font To Main Site
================================ */

html,
body,
button,
input,
textarea,
select,
option {
    font-family: var(--amin-site-font) !important;
}

/* متن‌های عمومی سایت */
body :where(
    p,
    a,
    span,
    div,
    li,
    label,
    input,
    textarea,
    select,
    button,
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    table,
    th,
    td,
    small,
    strong,
    b
) {
    font-family: var(--amin-site-font) !important;
}

/* بخش‌های اختصاصی سایت */
.amin-pro-nav,
.amin-pro-nav *,
.amin-home-hero,
.amin-home-hero *,
.amin-classes-wrap,
.amin-classes-wrap *,
.amin-course-tab-panels,
.amin-course-tab-panels *,
.amin-qna-wrap,
.amin-qna-wrap *,
.woocommerce,
.woocommerce *,
.elementor,
.elementor * {
    font-family: var(--amin-site-font) !important;
}

/* Tutor text areas - but icon fonts are restored later */
.tutor-wrap,
.tutor-wrap *,
.tutor-dashboard,
.tutor-dashboard * {
    font-family: var(--amin-site-font) !important;
}

/* Tutor course accordion */
.tutor-accordion,
.tutor-accordion *,
.tutor-mt-24,
.tutor-mt-24 * {
    font-family: var(--amin-site-font) !important;
}

/* ================================
   Suggested Weights
================================ */

body {
    font-weight: 400;
}

h1,
h2,
h3,
.amin-pro-brand-text strong {
    font-weight: 700 !important;
}

h4,
h5,
h6 {
    font-weight: 500 !important;
}

button,
.amin-pro-btn,
.amin-pro-menu a,
.tutor-btn,
.woocommerce button,
.woocommerce .button {
    font-weight: 700 !important;
}

/* ==================================================
   IMPORTANT: Protect Icon Fonts
   این بخش حتماً آخر فایل بماند
================================================== */

/* WordPress Dashicons */
.dashicons,
.dashicons-before::before,
[class^="dashicons-"],
[class*=" dashicons-"],
[class^="dashicons-"]::before,
[class*=" dashicons-"]::before {
    font-family: dashicons !important;
    font-weight: normal !important;
    font-style: normal !important;
}

/* Tutor LMS Icons */
[class^="tutor-icon-"],
[class*=" tutor-icon-"],
[class^="tutor-icon-"]::before,
[class*=" tutor-icon-"]::before,
.tutor-icon,
.tutor-icon::before,
.tutor-dashboard-menu-item-icon,
.tutor-dashboard-menu-item-icon::before,
.tutor-dashboard-menu li a i,
.tutor-dashboard-menu li a i::before {
    font-family: "tutor" !important;
    font-weight: normal !important;
    font-style: normal !important;
    speak: never;
}

/* Font Awesome 6 */
.fa-solid,
.fa-solid::before,
.fas,
.fas::before,
[class^="fa-solid"],
[class*=" fa-solid"] {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome" !important;
    font-weight: 900 !important;
}

.fa-regular,
.fa-regular::before,
.far,
.far::before {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome" !important;
    font-weight: 400 !important;
}

.fa-brands,
.fa-brands::before,
.fab,
.fab::before {
    font-family: "Font Awesome 6 Brands", "Font Awesome 5 Brands", "FontAwesome" !important;
    font-weight: 400 !important;
}

.fa,
.fa::before,
[class^="fa-"]::before,
[class*=" fa-"]::before {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome" !important;
}

/* Elementor Icons */
.eicon,
.eicon::before,
[class^="eicon-"],
[class*=" eicon-"],
[class^="eicon-"]::before,
[class*=" eicon-"]::before {
    font-family: eicons !important;
    font-weight: normal !important;
    font-style: normal !important;
}

/* WooCommerce Icons */
.woocommerce .star-rating,
.woocommerce .star-rating::before,
.woocommerce .star-rating span::before,
.woocommerce p.stars a::before {
    font-family: WooCommerce !important;
}

/* جلوگیری از تحمیل فونت متن روی SVG */
svg,
svg * {
    font-family: initial !important;
}