/* FootShart global typography and navigation — build 1.1.1. */
@font-face {
    font-family: "FootShart Vazirmatn";
    src: url("/wp-content/uploads/footshart-fonts/Vazirmatn.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

/* The theme already names this family; map it to the same local file. */
@font-face {
    font-family: "Vazirmatn";
    src: url("/wp-content/uploads/footshart-fonts/Vazirmatn.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --footshart-font-fa: "FootShart Vazirmatn", Tahoma, Arial, sans-serif;
}

html[lang^="fa"] body,
html[lang^="fa"] button,
html[lang^="fa"] input,
html[lang^="fa"] select,
html[lang^="fa"] textarea {
    font-family: var(--footshart-font-fa) !important;
    font-synthesis: none;
    font-optical-sizing: auto;
}

/* Preserve icon glyphs supplied by the Jannah theme. */
html[lang^="fa"] [class^="tie-icon-"],
html[lang^="fa"] [class*=" tie-icon-"],
html[lang^="fa"] [class^="fa-"],
html[lang^="fa"] [class*=" fa-"] {
    font-family: "tiefonticon", "Font Awesome 5 Free", FontAwesome, sans-serif !important;
}

/* Consistent modern primary navigation across home, categories and articles. */
html[lang^="fa"] body #main-nav {
    border: 0;
    background: rgba(17, 24, 39, 0.98);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

html[lang^="fa"] body #main-nav .container {
    max-width: 1180px;
}

html[lang^="fa"] body #main-nav .main-menu > ul > li,
html[lang^="fa"] body #main-nav .main-menu > ul > li.tie-current-menu,
html[lang^="fa"] body #main-nav .main-menu > ul > li.current-menu-item,
html[lang^="fa"] body #main-nav .main-menu > ul > li.current_page_item {
    padding-block: 8px;
    margin-bottom: 0 !important;
    border-bottom: 0 !important;
    background: transparent !important;
}

html[lang^="fa"] body #main-nav .main-menu > ul > li > a {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 42px;
    margin-inline: 1px;
    padding-inline: 14px;
    border: 0 !important;
    border-radius: 11px;
    background: transparent !important;
    box-shadow: none;
    color: #e5e7eb !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    transform: translateY(0);
    transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

html[lang^="fa"] body #main-nav .main-menu > ul > li > a::before,
html[lang^="fa"] body #main-nav .main-menu > ul > li > a::after {
    content: none !important;
    display: none !important;
    border: 0 !important;
    transform: none !important;
}

html[lang^="fa"] body #main-nav .main-menu > ul > li > a:hover {
    background: rgba(15, 159, 118, 0.18) !important;
    box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.2), 0 8px 18px rgba(2, 6, 23, 0.2);
    color: #ffffff !important;
    transform: translateY(-1px);
}

html[lang^="fa"] body #main-nav .main-menu > ul > li.tie-current-menu > a,
html[lang^="fa"] body #main-nav .main-menu > ul > li.current-menu-item > a,
html[lang^="fa"] body #main-nav .main-menu > ul > li.current_page_item > a {
    background: linear-gradient(135deg, #0f9f76, #087f5b) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 8px 20px rgba(8, 127, 91, 0.28);
    color: #ffffff !important;
}

html[lang^="fa"] body #main-nav .main-menu > ul > li > a:focus-visible {
    outline: 2px solid #f4b740;
    outline-offset: 2px;
    background: rgba(15, 159, 118, 0.16) !important;
    color: #ffffff !important;
}

@media (max-width: 1200px) {
    html[lang^="fa"] body #main-nav .main-menu > ul > li > a {
        padding-inline: 8px;
        font-size: 11.5px;
    }
}
