/* Webfont: Yekan */
@font-face {
    font-family: "Yekan";
    src: url('/static/fonts/Yekan/Yekan.eot');
    /* IE9 Compat Modes */
    src: url('/static/fonts/Yekan/Yekan.eot?#iefix') format('embedded-opentype'),
        /* IE6-IE8 */
        url('/static/fonts/Yekan/Yekan.woff2') format('woff2'),
        /* Modern Browsers */
        url('/static/fonts/Yekan/Yekan.woff') format('woff'),
        /* Modern Browsers */
        url('/static/fonts/Yekan/Yekan.otf') format('opentype'),
        /* Open Type Font */
        url('/static/fonts/Yekan/Yekan.ttf') format('truetype');
    /* Safari, Android, iOS */
    font-weight: normal;
    font-style: normal;
    text-rendering: optimizeLegibility;
    font-display: auto;
}

/* Poppins */
@font-face {
    /* ExtraLight - 200 (woff2) */
    font-family: 'Poppins';
    src: url('/static/fonts/Poppins/Poppins-ExtraLight.woff2') format('woff2');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    /* Regular - 400 (ttf) */
    font-family: 'Poppins';
    src: url('/static/fonts/Poppins/Poppins-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    /* Medium - 500 (ttf) */
    font-family: 'Poppins';
    src: url('/static/fonts/Poppins/Poppins-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    /* SemiBold - 600 (ttf) */
    font-family: 'Poppins';
    src: url('/static/fonts/Poppins/Poppins-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", "Yekan";
}

/* change site theme BTN */
.change__site__theme {
    width: 40px;
    height: 40px;
    border: none;
    outline: none;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 500ms;
}

.change__site__theme img {
    width: 25px;
    height: 25px;
}


html {
    scroll-behavior: smooth;
}

:root {
    --site-main-color: #0088ff;
    --site-main2-color: #004fb7;
    --site-main-shadow: 0px 0px 10px 2px rgba(0, 88, 239, 0.5);
    --bs-body-color: #212529;
    --body-bg-color: #fff;

    --lang-bg: #ffffff;
    --lang-text: #333333;
    --lang-border: #e0e0e0;
    --lang-hover: #f5f5f5;
    --lang-shadow: rgba(0, 0, 0, 0.1);

    --footer-change-lang-bg-color: #dee2e6;
}

body.dark {
    --bs-body-color: #dee2e6;
    --body-bg-color: #212529;

    --lang-bg: #1e1e1e;
    --lang-text: #f5f5f5;
    --lang-border: #333333;
    --lang-hover: #2a2a2a;
    --lang-shadow: rgba(0, 0, 0, 0.4);

    --footer-change-lang-bg-color: #656a6c;
}

body {
    min-height: 100vh;
    transition: all 500ms;
    display: flex;
    flex-direction: column;
}

body h1,
body h2,
body h3,
body h4,
body h5,
body h6,
body p,
body div,
body span,
body a {
    color: #000;
}

body.dark {
    color-scheme: Dark;
    background-color: var(--body-bg-color);
}

body.dark h1,
body.dark h2,
body.dark h3,
body.dark h4,
body.dark h5,
body.dark h6,
body.dark p,
body.dark div,
body.dark span,
body.dark a,
body.dark table,
body.dark th body.dark td {
    color: #dee2e6;
}



/* alert style */
.alert {
    position: fixed !important;
    top: 10px;
    right: 10px;
    z-index: 1000000;
    display: none;
    width: fit-content;
    opacity: 0;
}

.show {
    opacity: 1;
}

/* Navbar Style */

nav {
    height: 50px;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--body-bg-color);
    border-bottom: 2.5px solid var(--site-main-color);
    box-shadow: 0px 0px 11px 2px rgb(0 0 0 / 91%);
}

.nav__container {
    width: 100%;
    max-width: 1200px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    box-sizing: border-box;
    position: relative;
}

.links {
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 10px;
}

.nav__links {
    margin: 0 5px;
    font-size: 16px;
    color: black;
    text-decoration: none;
    position: relative;
    white-space: nowrap;
    transition: color 0.3s ease;
}

body.dark .nav__links {
    color: #dee2e6;
}

.nav__links::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 25px;
    width: 0;
    height: 2px;
    background-color: black;
    transform: translateX(-50%);
    transition: width 0.35s ease;
}

body.dark .nav__links::after {
    background-color: #dee2e6;
}

.nla::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 25px;
    width: 100%;
    height: 2.5px;
    background-color: var(--site-main-color) !important;
    transform: translateX(-50%);
    transition: width 0.35s ease;
}

.nav__links:hover::after {
    width: 100%;
}

.site_title {
    color: var(--site-main-color) !important;
    font-size: 22px;
    font-weight: 700;
    cursor: pointer;
    margin: 0;
    z-index: 10001;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 30px;
    color: var(--site-main-color);
    cursor: pointer;
    line-height: 1;
    z-index: 10001;
}

@media (max-width: 768px) {
    nav {
        height: auto;
        min-height: 50px;
    }

    .nav__container {
        flex-wrap: wrap;
        padding: 0 12px;
    }

    .menu-toggle {
        display: block;
    }

    .links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-top: 8px;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--body-bg-color);
        box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.08);
        padding: 12px 16px;
        transform-origin: top;
        transform: scaleY(0);
        opacity: 0;
        pointer-events: none;
        z-index: 1001;
        transition: transform 0.35s ease, opacity 0.25s ease, padding 0.35s ease;
    }

    body.dark .links {
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

    .links.active {
        transform: scaleY(1);
        opacity: 1;
        pointer-events: auto;
    }

    .nav__links {
        font-size: 15px;
        margin: 0;
        width: fit-content;
    }

    .nla::after {
        width: 100%;
        left: 0;
        right: auto;
        transform: none;
    }

    .site_title {
        font-size: 20px;
        flex-grow: 1;
        text-align: right;
    }
}

/* Main Style */

main {
    flex: 1;
    margin-top: 70px;
    margin-bottom: 70px;
}

/* Footer Style */
footer {
    width: 100%;
    margin-top: 20px;
    padding: 20px 0;
    border-top: 2.5px solid var(--site-main-color);
    box-shadow: 0px 0px 11px 2px rgb(0 0 0 / 91%);
    text-align: center;
}

.footer_link {
    margin-bottom: 7px;
}

.footer_link>* {
    margin: 0 2px;
}

@media (max-width:350px) {
    .footer_link {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

.fcl_container {
    display: flex;
    justify-content: center;
}

.fcl {
    padding: 1px 6px;
    border-radius: 3px;
    background-color: var(--footer-change-lang-bg-color);
    list-style-type: none;
    display: flex;
    gap: 20px;
}

.fcl li a {
    text-decoration: none;
}

/* Lang Switcher Style */
.lang-switcher {
    position: relative;
    display: inline-block;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: var(--lang-bg);
    color: var(--lang-text);
    border: 1px solid var(--lang-border);
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    background-color: var(--lang-hover);
}

.selected-flag {
    display: flex;
    align-items: center;
}

.chevron-icon {
    transition: transform 0.2s ease;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background-color: var(--lang-bg);
    border: 1px solid var(--lang-border);
    border-radius: 6px;
    box-shadow: 0 4px 12px var(--shadow-color, var(--lang-shadow));
    padding: 4px 0;
    margin: 0;
    list-style: none;
    min-width: 140px;
    display: none;
    z-index: 1000;
}

.lang-switcher.open .lang-dropdown {
    display: block;
}

.lang-switcher.open .chevron-icon {
    transform: rotate(180deg);
}

.lang-dropdown li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-size: 13px;
    color: var(--lang-text);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.lang-dropdown li:hover {
    background-color: var(--lang-hover);
}

.lang-dropdown li a {
    width: 100%;
    color: var(--lang-text);
    text-decoration: none;
}

.flag-icon {
    width: 18px;
    height: 14px;
    border-radius: 2px;
    object-fit: cover;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.rtl-item {
    flex-direction: row-reverse;
    text-align: right;
}

.ltr-item {
    flex-direction: row-reverse;
    text-align: left;
}