/**
 * Bahij Muna Font System - Pashto Typography Solution
 *
 * This font is specifically designed for Pashto (پښتو) language.
 * For Dari/Persian (فارسی), use Dibaj FaNum instead.
 *
 * Font weights available:
 * - Regular: 400
 * - Bold: 700
 * - Black: 900
 */

/* ═══════════════════════════════════════════════════════════
   FONT FACE DECLARATIONS - WOFF2 (Primary, Modern Browsers)
   ═══════════════════════════════════════════════════════════ */

@font-face {
    font-family: 'Bahij Muna';
    font-style: normal;
    font-weight: 400;
    font-display: optional;
    src: url('BahijMuna-Regular.woff2') format('woff2'),
         url('BahijMuna-Regular.woff') format('woff'),
         url('BahijMuna-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Bahij Muna';
    font-style: normal;
    font-weight: 700;
    font-display: optional;
    src: url('BahijMuna-Bold.woff2') format('woff2'),
         url('BahijMuna-Bold.woff') format('woff'),
         url('BahijMuna-Bold.ttf') format('truetype');
}

@font-face {
    font-family: 'Bahij Muna';
    font-style: normal;
    font-weight: 900;
    font-display: optional;
    src: url('BahijMuna-Black.woff2') format('woff2'),
         url('BahijMuna-Black.woff') format('woff'),
         url('BahijMuna-Black.ttf') format('truetype');
}

/* ═══════════════════════════════════════════════════════════
   PASHTO TYPOGRAPHY SYSTEM - Bahij Muna Font Stack
   Applied when html[lang="ps"] is set
   ═══════════════════════════════════════════════════════════ */

:root {
    --font-pashto-primary: 'Bahij Muna', sans-serif;
}

/* Pashto-specific typography - Applied when Pashto language is active */
html[lang="ps"] body,
html[lang="ps"] .body,
html[lang="ps"][dir="rtl"] body,
html[lang="ps"][dir="rtl"] .body {
    font-family: var(--font-pashto-primary) !important;
    font-weight: 400;
}

/* Pashto Headings */
html[lang="ps"] h1,
html[lang="ps"] .h1,
html[lang="ps"] h2,
html[lang="ps"] .h2,
html[lang="ps"] h3,
html[lang="ps"] .h3,
html[lang="ps"] h4,
html[lang="ps"] .h4,
html[lang="ps"] h5,
html[lang="ps"] .h5,
html[lang="ps"] h6,
html[lang="ps"] .h6 {
    font-family: var(--font-pashto-primary) !important;
}

/* Pashto Navigation */
html[lang="ps"] nav,
html[lang="ps"] nav a,
html[lang="ps"] .nav-link,
html[lang="ps"] #header nav a,
html[lang="ps"] .header-nav-main nav > ul > li > a {
    font-family: var(--font-pashto-primary) !important;
}

/* Pashto Navigation - Font sizing */
html[lang="ps"] #header .header-nav-main nav > ul > li > a,
html[lang="ps"] #header .header-nav-main.header-nav-main-text-capitalize nav > ul > li > a {
    font-family: var(--font-pashto-primary) !important;
    font-size: 26.1px !important;
    line-height: 36px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.02em !important;
}

/* Pashto Buttons */
html[lang="ps"] .btn,
html[lang="ps"] button,
html[lang="ps"] input[type="submit"],
html[lang="ps"] input[type="button"] {
    font-family: var(--font-pashto-primary) !important;
}

/* Pashto Forms */
html[lang="ps"] input,
html[lang="ps"] textarea,
html[lang="ps"] select,
html[lang="ps"] .form-control,
html[lang="ps"] label,
html[lang="ps"] .form-label {
    font-family: var(--font-pashto-primary) !important;
}

/* Pashto Footer */
html[lang="ps"] footer,
html[lang="ps"] #footer,
html[lang="ps"] .footer {
    font-family: var(--font-pashto-primary) !important;
}

/* Pashto Font Weight Utilities */
html[lang="ps"] .font-weight-light,
html[lang="ps"] .font-weight-normal,
html[lang="ps"] .fw-normal,
html[lang="ps"] .fw-light {
    font-weight: 400 !important;
}

html[lang="ps"] .font-weight-bold,
html[lang="ps"] .fw-bold,
html[lang="ps"] .font-weight-semibold,
html[lang="ps"] .fw-semibold {
    font-weight: 700 !important;
}

html[lang="ps"] .font-weight-extra-bold,
html[lang="ps"] .font-weight-bolder,
html[lang="ps"] .fw-bolder,
html[lang="ps"] .font-weight-black,
html[lang="ps"] .fw-black {
    font-weight: 900 !important;
}

/* Pashto Counter/Impact Numbers */
html[lang="ps"] .counter,
html[lang="ps"] .impact-number,
html[lang="ps"] .stat-number,
html[lang="ps"] .counter-number,
html[lang="ps"] [data-plugin-counter],
html[lang="ps"] .custom-highlight-text-1 {
    font-family: var(--font-pashto-primary) !important;
    font-weight: 900;
}

/* Pashto Typography Scale */
html[lang="ps"] .text-1,
html[lang="ps"] .text-2,
html[lang="ps"] .text-3,
html[lang="ps"] .text-4,
html[lang="ps"] .text-5,
html[lang="ps"] .text-6,
html[lang="ps"] .text-7,
html[lang="ps"] .text-8,
html[lang="ps"] .text-9,
html[lang="ps"] .text-10 {
    font-family: var(--font-pashto-primary) !important;
}

/* Pashto Phone numbers and contact info */
html[lang="ps"] a[href^="tel:"],
html[lang="ps"] a[href^="mailto:"],
html[lang="ps"] .phone,
html[lang="ps"] .phone-number,
html[lang="ps"] .floating-contact-bar,
html[lang="ps"] .floating-contact-bar__link,
html[lang="ps"] .floating-contact-bar span {
    font-family: var(--font-pashto-primary) !important;
}

/* Force Bahij Muna on ALL text elements in Pashto mode */
html[lang="ps"] *:not(.fa):not(.fas):not(.far):not([class*="icon-"]):not(i[class]) {
    font-family: var(--font-pashto-primary) !important;
}

/* ═══════════════════════════════════════════════════════════
   PASHTO-SPECIFIC RTL LAYOUT FIXES
   Same as Dibaj RTL but with Bahij Muna font
   ═══════════════════════════════════════════════════════════ */

/* Hero section row - reverse column order */
html[lang="ps"] .hero .row,
html[lang="ps"] section.hero .row {
    flex-direction: row-reverse;
}

/* Text alignment for Pashto hero */
html[lang="ps"] .hero .text-lg-start,
html[lang="ps"] section.hero .text-lg-start {
    text-align: right !important;
}

/* Feature boxes alignment */
html[lang="ps"] .hero .d-flex.justify-content-lg-start {
    justify-content: flex-end !important;
}

html[lang="ps"] .hero .feature-box {
    flex-direction: row-reverse;
}

html[lang="ps"] .hero .feature-box .feature-box-info {
    padding-left: 0 !important;
    padding-right: 0.5rem !important;
    text-align: right !important;
}

/* Marquee animation direction for Pashto RTL */
html[lang="ps"] .marquee .marquee__content {
    animation-direction: reverse !important;
}

html[lang="ps"] .marquee p,
html[lang="ps"] .marquee span,
html[lang="ps"] .marquee a {
    font-family: var(--font-pashto-primary) !important;
}

/* Footer RTL alignment */
html[lang="ps"] #footer,
html[lang="ps"] footer {
    text-align: right !important;
}

html[lang="ps"] footer .row {
    flex-direction: row-reverse;
}

/* Buttons - RTL icon positioning */
html[lang="ps"] .btn .fa-arrow-right,
html[lang="ps"] .btn .fas.fa-arrow-right {
    transform: rotate(180deg);
    margin-right: 0.5rem !important;
    margin-left: 0 !important;
}

html[lang="ps"] .btn .ms-2 {
    margin-left: 0 !important;
    margin-right: 0.5rem !important;
}

