@font-face {
    font-family: APMYekan;
    src: url("/fonts/Weblogma_Yekan.woff") format("woff");
    font-display: swap;
}

html:lang(fa) :is(input, textarea, button) { font-family: APMYekan, Tahoma, sans-serif; }

.apm-nav { position: relative; z-index: 20; font-size: 15px; color: white; }
.apm-nav:lang(fa) { font-family: APMYekan, Tahoma, sans-serif; }
.apm-nav ul { list-style: none; padding: 0; margin: 0; }
.apm-nav > ul { display: flex; align-items: stretch; justify-content: space-between; }
.apm-nav li { text-align: start; }
.apm-nav a, .apm-nav summary { display: block; padding: .38em .7em; color: inherit; text-decoration: none; }
.apm-nav summary { cursor: pointer; }
.apm-nav summary::after { content: " ▾"; font-size: .75em; }
.apm-nav a:hover, .apm-nav a:focus-visible, .apm-nav summary:hover { background: #204e86; color: white; }
.apm-nav details { position: relative; }
.apm-nav details > ul {
    position: absolute;
    inset-inline-start: 0;
    min-width: 13rem;
    background: #123966;
    box-shadow: 0 3px 8px #0817277a;
}
.apm-nav details > ul a { white-space: normal; }

.apm-hero { position: relative; aspect-ratio: 786 / 295; max-width: 786px; width: 100%; overflow: hidden; }
.apm-hero img { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.apm-hero img[hidden] { display: none; }
.apm-hero button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    width: 2rem;
    height: 2rem;
    border: 0;
    background: #132c4ed9;
    color: white;
    font: 1.6rem/1 sans-serif;
    direction: ltr;
}
.apm-previous { left: .45rem; }
.apm-next { right: .45rem; }

.apm-search {
    background: #e9f1fb;
    color: #233550;
    font: 1rem/1.7 Tahoma, sans-serif;
}

.apm-search[dir="rtl"],
[dir="rtl"] .apm-search {
    font-family: APMYekan, Tahoma, sans-serif;
}

.apm-search main {
    max-width: 46rem;
    margin: 2rem auto;
    padding: 1.5rem;
    background: white;
}

.apm-search input,
.apm-search button {
    padding: .3rem .6rem;
    font: inherit;
}

@media (max-width: 720px) {
    body { margin: 0; }
    #Table_01 { display: block; }
    #Table_01, table[width="1001"] { width: 100% !important; max-width: 100%; height: auto !important; table-layout: fixed; }
    #Table_01 > tbody, #Table_01 > tbody > tr, #Table_01 > tbody > tr > td {
        display: block;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    table[width="1001"] > tbody > tr > td { width: auto !important; height: auto !important; }
    #Table_01 > tbody > tr > td[style*="images/bg1.png"] {
        background-color: #0a4699 !important;
        background-size: auto 148px !important;
        background-position: calc(50% - 237px) top !important;
    }
    html:lang(en) #Table_01 > tbody > tr > td[style*="images/bg1.png"] {
        background-position: calc(50% + 230px) top !important;
    }
    #Table_2 > tbody > tr:first-child > td > table { padding: 94px 8px 4px; }
    #Table_2 > tbody > tr > td > div[style*="float:"] {
        float: none !important;
        padding: 0 !important;
    }
    #Table_2 > tbody > tr:first-child > td > div:has(form[action="/search.php"]) {
        width: auto !important;
        padding: 94px 8px 4px !important;
    }
    #Table_4 > tbody > tr { display: flex; flex-direction: column; }
    #Table_4 > tbody > tr > td { display: block; min-width: 0; overflow-x: auto; }
    #Table_4 > tbody > tr > td > table { table-layout: fixed; }
    #Table_4 div:has(> .apm-hero) { width: auto !important; height: auto !important; }
    #Table_4 table:has(> tbody > tr > td > .anyClass) { table-layout: fixed; }
    #Table_4 table:has(> tbody > tr > td > .anyClass) > tbody > tr > td { width: auto !important; }
    #Table_4 table:has(> tbody > tr > td > .anyClass) > tbody > tr > td:is(:first-child,:last-child) { width: 1.6rem !important; }
    #Table_4 .anyClass { max-width: 100% !important; }
    #Table_4 h3 { margin-inline: 0 !important; }
    #Table_4 td[style*="images/bgm.png"] { background-size: 100% 100% !important; }
    #Table_01 > tbody > tr:last-child > td table { max-width: 100%; table-layout: fixed; }
    #Table_01 > tbody > tr:last-child > td td { overflow-wrap: anywhere; }
    #Table_3 { width: 100%; height: auto !important; background: #0b3979; color: white; }
    #Table_3 > tbody > tr > td { height: auto !important; padding: 1rem !important; }
    #Table_3 td { color: white; height: auto !important; width: auto !important; }
    #Table_3 a { color: white; text-decoration: none; line-height: 1.9; }
    .apm-nav { background: #09316e; }
    .apm-nav > ul { flex-wrap: wrap; justify-content: center; }
    .apm-nav a, .apm-nav summary { padding: .6em .55em; }
    .apm-nav details > ul { min-width: 10rem; }
    img { max-width: 100%; object-fit: contain; }
    :is(input[type="text"], textarea, iframe) { max-width: 82vw !important; }
}
