﻿/* Define your custom font */
@font-face {
    font-family: 'MyCustomFont';
    src: url('../fonts/ANahar.eot'); /* IE9 Compat Modes */
    src: url('../fonts/ANahar.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
    url('../fonts/ANahar.woff2') format('woff2'), /* Super Modern Browsers */
    url('../fonts/ANahar.woff') format('woff'), /* Modern Browsers */
    url('../fonts/ANahar.ttf') format('truetype'); /* Safari, Android, iOS */
    font-weight: normal;
    font-style: normal;
    font-display: swap; /* Optional: improves performance */
}
@font-face {
    font-family: 'A Nahar';
    src: url('ANahar.woff2') format('woff2'), url('ANahar.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Yekan';
    src: url( '../fonts/Yekan.eot' );
    src: url( '../fonts/Yekan.eot?#iefix' ) format( 'embedded-opentype' ), url( 'Yekan.woff2' ) format( 'woff2' ), url( 'Yekan.woff' ) format( 'woff' ), url( 'Yekan.ttf' ) format( 'truetype' ), url( 'Yekan.svg#Yekan' ) format( 'svg' );
    font-weight: normal;
    font-style: normal;
}

:root {
    --bs-font-sans-serif: 'Yekan','MyCustomFont', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

body {
    font-family: var(--bs-font-sans-serif);
}


/* RTL overrides */
body {
    direction: rtl;
    text-align: right;
    font-family: 'Yekan', 'MyCustomFont', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
}

/* For specific elements if you don't want to override everything */
.yekan-font {
    font-family: 'Yekan', sans-serif;
}
/* Navbar adjustments */
.navbar-nav {
    padding-right: 0;
}

/* Form controls */
.form-control {
    text-align: right;
}

/* Float utilities */
.float-left {
    float: right !important;
}

.float-right {
    float: left !important;
}

/* Text alignments */
.text-left {
    text-align: right !important;
}

.text-right {
    text-align: left !important;
}

/* Margin and padding utilities */
.ml-auto {
    margin-right: auto !important;
    margin-left: 0 !important;
}

.mr-auto {
    margin-left: auto !important;
    margin-right: 0 !important;
}

/* Dropdown menu */
.dropdown-menu {
    text-align: right;
    left: auto !important;
    right: 0;
}

/* Add more specific overrides as needed for your application */
