﻿@charset "utf-8";
/*
  IranTox theme. Loaded last, so it overrides the legacy fixed-width (980px) styles
  (reset.css, common.css, menu.css / e_menu.css, other.css and the per-page <style> blocks).
  One layout for every width: cards on a soft page, a green header card, a white menu bar,
  a hamburger panel at <= 1000px and a single column at <= 640px.
*/

/* ---------- Fonts: IRANSansX (Farsi numerals for fa, Latin numerals for en) ---------- */
@font-face {
    font-family: "IRANSansXFaNum";
    src: url("../font/IRANSansXFaNum-Regular.woff2") format("woff2"),
         url("../font/IRANSansXFaNum-Regular.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "IRANSansXFaNum";
    src: url("../font/IRANSansXFaNum-Bold.woff2") format("woff2"),
         url("../font/IRANSansXFaNum-Bold.woff") format("woff");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "IRANSansX";
    src: url("../font/IRANSansX-Regular.woff2") format("woff2"),
         url("../font/IRANSansX-Regular.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "IRANSansX";
    src: url("../font/IRANSansX-Bold.woff2") format("woff2"),
         url("../font/IRANSansX-Bold.woff") format("woff");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
/* Applies to every element, including inline font-family saved by the content editor */
html.lang-fa body,
html.lang-fa body * { font-family: "IRANSansXFaNum", Tahoma, sans-serif !important; }
html.lang-en body,
html.lang-en body * { font-family: "IRANSansX", Tahoma, Arial, sans-serif !important; }

/* ---------- Tokens ---------- */
:root {
    --brand: #13853f;
    --brand-dark: #0a5c2b;
    --deep: #06391b;
    --accent: #e3a812;
    --ink: #1d2b23;
    --muted: #6a7a70;
    --line: #e2eae4;
    --soft: #f3f8f4;
    --page: #ecf1ed;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 14px 34px -22px rgba(6, 57, 27, .55), 0 2px 8px rgba(6, 57, 27, .05);
}

/* ---------- Page ---------- */
html { -webkit-text-size-adjust: 100%; }
body {
    font-size: 13px;
    color: var(--ink);
    background-color: var(--page);
    background-image: none;   /* common.css paints a black page with a green gradient strip */
}
/* Faint toxicology line-art over the page colour: a benzene ring, a flask, a drop and a small
   molecule, drawn at very low contrast. A fixed layer behind the content; off in print. */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300' fill='none' stroke='%2313853f' stroke-opacity='.11' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M52 40l15.6 9v18L52 76l-15.6-9V49z'/%3E%3Ccircle cx='52' cy='58' r='8.5'/%3E%3Cpath d='M67.6 49l15-8.6'/%3E%3Ccircle cx='86' cy='38.5' r='3.4'/%3E%3Cpath d='M36.4 67l-12 7'/%3E%3Cpath d='M196 46h16M200 46v16l-12 22a4 4 0 0 0 3.5 6h29a4 4 0 0 0 3.5-6l-12-22V46M193 78h30'/%3E%3Cpath d='M128 190c6 9 10 14 10 19a10 10 0 0 1-20 0c0-5 4-10 10-19z'/%3E%3Ccircle cx='228' cy='206' r='4.2'/%3E%3Ccircle cx='254' cy='222' r='4.2'/%3E%3Ccircle cx='232' cy='240' r='4.2'/%3E%3Cpath d='M231.6 208.3l18.8 11.5M252 225.7l-16.4 11.1'/%3E%3Cpath d='M62 226l9.5 5.5v11L62 248l-9.5-5.5v-11z'/%3E%3C/svg%3E") 0 0 / 300px 300px repeat;
}
@media print { body::before { display: none; } }
a, a:visited { color: var(--brand-dark); font-size: inherit; transition: color .2s ease; }
a:hover, a:active { color: var(--brand); }
#WAP {
    width: 980px;
    max-width: calc(100% - 32px);
    min-height: 0;
    margin: 24px auto;
    background: transparent;
}
#WAP::after { content: ""; display: block; clear: both; }
/* the legacy pages never set a document direction; each language gets its own */
html.lang-fa #WAP { direction: rtl; text-align: right; }
html.lang-en #WAP { direction: ltr; text-align: left; }
#WAP > br { display: none; }
#FullCon {
    float: none;
    width: auto;
    min-height: 0;
    padding: 0;
    background: none;
}
.blackLine { display: none; }
/* menu.css styles every li on the page; restore normal lists in content */
#FullCon li { float: none; display: list-item; margin: 0 0 6px; position: static; }
#FullCon ul, #FullCon ol { float: none; margin: 8px 0; padding-inline-start: 22px; }

/* ---------- Header card ---------- */
#Head, #Div1, #Head1 {
    position: relative;
    width: auto;
    height: auto;
    margin: 0 0 22px;
    background: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: start;
}
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 26px;
    border-radius: var(--radius) var(--radius) 0 0;
    background:
        radial-gradient(120% 140% at 100% 0, rgba(227, 168, 18, .16), rgba(227, 168, 18, 0) 55%),
        linear-gradient(135deg, var(--deep), var(--brand-dark) 60%, var(--brand));
    color: #fff;
}
.brand,
a.brand:visited {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    color: #fff;
    text-decoration: none;
}
.brand-logo {
    flex: none;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .18), 0 10px 22px -10px rgba(0, 0, 0, .6);
    transition: transform .3s ease;
}
.brand:hover .brand-logo { transform: rotate(-6deg) scale(1.03); }
.brand-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.brand-name { color: #fff; font-size: 21px; font-weight: 700; line-height: 1.5; }
.brand-sub { color: rgba(255, 255, 255, .78); font-size: 12.5px; letter-spacing: .2px; }
html.lang-fa .brand-sub { font-family: "IRANSansX", Tahoma, sans-serif !important; }
html.lang-en .brand-sub { font-family: "IRANSansXFaNum", Tahoma, sans-serif !important; }
.brand:focus-visible { outline: 3px solid rgba(255, 255, 255, .8); outline-offset: 4px; border-radius: 12px; }

/* language switch: white button, dark text, 10px corners */
.lang-switch,
a.lang-switch:visited {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    padding: 8px 16px;
    border-radius: 10px;
    background: #fff;
    color: var(--deep) !important;
    font-size: 13px !important;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
    box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .5);
    transition: transform .15s ease, box-shadow .2s ease, color .2s ease;
}
html.lang-fa .lang-switch { font-family: "IRANSansX", Tahoma, sans-serif !important; }
html.lang-en .lang-switch { font-family: "IRANSansXFaNum", Tahoma, sans-serif !important; }
.lang-switch:hover { color: var(--brand) !important; transform: translateY(-1px); box-shadow: 0 10px 20px -8px rgba(0, 0, 0, .55); }
.lang-switch:focus-visible { outline: 3px solid rgba(255, 255, 255, .85); outline-offset: 2px; }

/* ---------- Menu ---------- */
#MENU, #MENU * { font-size: 13px; }
#MENU {
    float: none;
    width: auto;
    height: auto;
    margin: 0;
    background: #fff;
    border-radius: 0 0 var(--radius) var(--radius);
}
#MENU ul, #MENU li { float: none; margin: 0; position: static; }
html.lang-fa #MENU ul, html.lang-fa .nav-toggle { direction: rtl; }
html.lang-en #MENU ul, html.lang-en .nav-toggle { direction: ltr; }
#MENU li a,
#MENU li a:hover {
    position: relative;
    display: block;
    border: 0;
    background: none;
    color: var(--ink);
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
}
#MENU li a:hover,
#MENU li a:focus-visible,
#MENU li a.is-active { color: var(--brand); }
/* external links: small arrow icon */
#MENU li a.nav-external::before {
    content: "";
    display: inline-block;
    width: 11px;
    height: 11px;
    margin: 0 4px;
    vertical-align: -1px;
    opacity: .55;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2306391b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6M20 4l-9 9M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: opacity .2s ease;
}
html.lang-en #MENU li a.nav-external::before { float: right; margin-top: 4px; }
#MENU li a.nav-external:hover::before { opacity: 1; }

@media (min-width: 1001px) {
    #MENU {
        position: sticky;
        top: 0;
        z-index: 90;
        background: rgba(255, 255, 255, .97);
        -webkit-backdrop-filter: saturate(1.4) blur(8px);
        backdrop-filter: saturate(1.4) blur(8px);
    }
    #MENU ul {
        display: flex;
        justify-content: space-between;
        align-items: stretch;
        padding: 0 10px;
        list-style: none;
    }
    #MENU ul li { display: block; }
    #MENU li a,
    #MENU li a:hover { padding: 17px 7px 16px; }
    /* hover: a short gradient bar grows under the label (no background tab) */
    #MENU li a::after {
        content: "";
        position: absolute;
        right: 7px;
        left: 7px;
        bottom: 9px;
        height: 3px;
        border-radius: 3px;
        background: linear-gradient(90deg, var(--accent), var(--brand));
        transform: scaleX(0);
        transition: transform .28s ease;
    }
    #MENU li a:hover::after,
    #MENU li a:focus-visible::after,
    #MENU li a.is-active::after { transform: scaleX(1); }
    #MENU li a:focus-visible { outline: 2px solid var(--brand); outline-offset: -6px; border-radius: 8px; }
}

/* hamburger (tablet & mobile) */
.nav-toggle {
    display: none;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 13px 18px;
    border: 0;
    border-radius: 0 0 var(--radius) var(--radius);
    background: #fff;
    color: var(--deep);
    font-size: 14px !important;
    font-weight: 700;
    cursor: pointer;
    text-align: start;
}
.nav-toggle-icon { position: relative; display: inline-block; width: 22px; height: 16px; }
.nav-toggle-icon span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .25s ease, opacity .2s ease, top .25s ease;
}
.nav-toggle-icon span:nth-child(1) { top: 0; }
.nav-toggle-icon span:nth-child(2) { top: 7px; }
.nav-toggle-icon span:nth-child(3) { top: 14px; }
#MENU.is-open .nav-toggle { border-radius: 0; border-bottom: 1px solid var(--line); }
#MENU.is-open .nav-toggle-icon span:nth-child(1) { top: 7px; transform: rotate(45deg); }
#MENU.is-open .nav-toggle-icon span:nth-child(2) { opacity: 0; }
#MENU.is-open .nav-toggle-icon span:nth-child(3) { top: 7px; transform: rotate(-45deg); }
.nav-toggle:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
@media (max-width: 1000px) {
    #MENU { position: relative; z-index: 100; }
    .nav-toggle { display: flex; }
    #MENU ul { display: none; padding: 6px 0; list-style: none; }
    #MENU.is-open ul { display: block; }
    #MENU ul li { display: block; }
    #MENU li a,
    #MENU li a:hover { padding: 12px 20px; white-space: normal; font-size: 14px; }
    #MENU li a:hover,
    #MENU li a.is-active { background: var(--soft); }
    html.lang-fa #MENU li a { text-align: right; }
    html.lang-en #MENU li a { text-align: left; }
    html.lang-fa #MENU li a.is-active { box-shadow: inset -4px 0 0 var(--accent); }
    html.lang-en #MENU li a.is-active { box-shadow: inset 4px 0 0 var(--accent); }
    #MENU li:last-child a { border-radius: 0 0 var(--radius) var(--radius); }
}

/* ---------- Cards ---------- */
.mymainbox,
.mymainbox2 .box,
#contact_Main,
#contact_Main2 {
    float: none;
    width: auto;
    min-height: 0;
    margin: 0 0 22px;
    padding: 26px 28px;
    border: 0;
    border-radius: var(--radius);
    background: #fff;
    color: var(--ink);
    box-shadow: var(--shadow);
    box-sizing: border-box;
}
.mymainbox { margin-top: 0 !important; font-size: 14.5px; line-height: 2.05; }
#lbar, #lbar2 { float: none; width: auto; margin: 0; }

/* ---------- Hero slider ---------- */
.hero {
    position: relative;
    overflow: hidden;
    aspect-ratio: 950 / 330;
    margin: 0 0 22px;
    border-radius: var(--radius);
    background: var(--deep);
    box-shadow: var(--shadow);
    isolation: isolate;
    outline: none;
}
.hero-track { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; display: block; overflow: hidden; }
.hero-slide:not(:first-child) { opacity: 0; visibility: hidden; }  /* without JS: first slide only */
.hero.is-ready .hero-slide {
    opacity: 0;
    visibility: hidden;
    transition: opacity .9s ease, visibility 0s linear .9s;
}
.hero.is-ready .hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    transition: opacity .9s ease, visibility 0s;
}
.hero-slide img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
    transform: scale(1.08);
    transition: transform 7.5s cubic-bezier(.2, .6, .3, 1);
}
.hero-slide.is-active img,
.hero:not(.is-ready) .hero-slide:first-child img { transform: scale(1); }
.hero:has(.hero-caption)::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    height: 42%;
    background: linear-gradient(to top, rgba(4, 30, 14, .6), rgba(4, 30, 14, 0));
    pointer-events: none;
}
.hero-caption {
    position: absolute;
    bottom: 22px;
    inset-inline-start: 24px;
    inset-inline-end: 24px;
    z-index: 2;
    color: #fff;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.6;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}
.hero-nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    background: rgba(6, 57, 27, .32);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #fff;
    cursor: pointer;
    opacity: 0;
    transform: translateY(-50%) scale(.9);
    transition: opacity .25s ease, transform .25s ease, background-color .2s ease;
}
/* physical sides per language: in Persian "previous" sits on the right pointing right */
.hero-prev { left: 16px; right: auto; }
.hero-next { right: 16px; left: auto; }
.hero-prev svg { transform: none; }
.hero-next svg { transform: scaleX(-1); }
html.lang-fa .hero-prev { right: 16px; left: auto; }
html.lang-fa .hero-next { left: 16px; right: auto; }
html.lang-fa .hero-prev svg { transform: scaleX(-1); }
html.lang-fa .hero-next svg { transform: none; }
.hero:hover .hero-nav,
.hero:focus-within .hero-nav { opacity: 1; transform: translateY(-50%) scale(1); }
.hero-nav:hover { background: rgba(6, 57, 27, .55); }
.hero-nav:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
/* progress dots, in a glass capsule at the top */
.hero-dots {
    position: absolute;
    top: 16px;
    inset-inline-end: 18px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(6, 57, 27, .28);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.hero-dot {
    position: relative;
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .55);
    overflow: hidden;
    cursor: pointer;
    transition: width .35s ease, background-color .2s ease;
}
.hero-dot:hover { background: rgba(255, 255, 255, .85); }
.hero-dot.is-active { width: 38px; background: rgba(255, 255, 255, .35); }
.hero-dot.is-active::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: #fff;
    transform: scaleX(0);
    transform-origin: left center;
    animation: hero-progress 6s linear forwards;
}
html.lang-fa .hero-dot.is-active::after { transform-origin: right center; }
.hero.is-paused .hero-dot.is-active::after { animation-play-state: paused; }
.hero-dot:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@keyframes hero-progress { to { transform: scaleX(1); } }

/* ---------- Home: three boxes ---------- */
.mymainbox2 {
    float: none;
    width: auto;
    min-height: 0;
    margin: 0 0 22px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}
.mymainbox2 .box { margin: 0; padding: 0 0 22px; overflow: hidden; }
.mymainbox2 .box::before {
    content: "";
    display: block;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--brand));
}
.box h2,
html.lang-en .box h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    float: none !important;
    margin: 0 22px 14px;
    padding: 18px 0 14px;
    border-bottom: 1px solid var(--line);
    color: var(--deep);
    font-size: 17px;
    font-weight: 700;
    text-align: start !important;
}
.box h2::before {
    content: "";
    flex: none;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 4px rgba(19, 133, 63, .16);
}
.box > span,
.box > br + span { display: block; padding: 0 22px; }
.box,
.box * { font-size: 13.5px; line-height: 1.95; }
.box h2, .box h2 * { font-size: 17px; }
.box img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.box p { margin: 0 0 8px; }
/* the contact box text came in at 18px from the editor */
.box span[id$="Label2"] * { font-size: 14px !important; }
/* news list */
.news-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 22px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}
.news-item:last-of-type { border-bottom: 0; }
.news-thumb {
    flex: none;
    width: 64px !important;
    height: 64px !important;
    border-radius: 12px !important;
    object-fit: cover;
    background: var(--soft);
}
.news-thumb.is-missing { display: none; }
.news-body { min-width: 0; }
.news-title,
a.news-title:visited {
    display: block;
    color: var(--ink);
    font-size: 14px !important;
    font-weight: 700;
    line-height: 1.85 !important;
}
.news-title:hover { color: var(--brand); }
.news-summary {
    display: -webkit-box;
    margin: 4px 0 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 12.5px !important;
    line-height: 1.85 !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.news-summary:empty { display: none; }

/* ---------- Page title ---------- */
.mymainbox h1,
h1.page-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    padding: 0;
    color: var(--deep);
    font-size: 24px !important;
    font-weight: 700;
    line-height: 1.7;
}
.mymainbox h1 img { display: none; }
.mymainbox h1::before {
    content: "";
    flex: none;
    width: 6px;
    height: 26px;
    border-radius: 6px;
    background: linear-gradient(180deg, var(--accent), var(--brand));
}
/* the page-title cell had an inline 18pt Nassim size */
.style1articledetails td[style*="18pt"] { font-size: inherit !important; }

/* ---------- Content pages and article detail ---------- */
.style1articledetails,
.style1articledetails tbody,
.style1articledetails tr,
.style1articledetails td { border: 0 !important; background: transparent !important; }
.style1articledetails { float: none !important; width: 100% !important; border-collapse: collapse; font-size: inherit !important; }
.style1articledetails td { padding: 0 !important; color: var(--ink) !important; font-size: inherit !important; }
/* date row */
.style1articledetails small {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 18px;
    padding: 4px 14px;
    border-radius: 999px;
    background: var(--soft);
    color: var(--muted);
    font-size: 12px !important;
}
.style1articledetails small span,
.style1articledetails small font { font-size: inherit !important; }
/* the date label renders its own <small> inside the pill */
.style1articledetails small small { display: inline; margin: 0; padding: 0; background: none; color: inherit; }
.style1articledetails small small::before { display: none; }
.style1articledetails small::before {
    content: "";
    width: 13px;
    height: 13px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236a7a70' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='3'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* lead image of an article */
.makeMer, .makeMer tbody, .makeMer tr, .makeMer td { display: block; border: 0 !important; }
html.lang-fa .makeMer, html.lang-fa .imgRbox { float: right !important; }
html.lang-en .makeMer, html.lang-en .imgRbox { float: left !important; }
.imgRbox a { display: block; line-height: 0; }
.imgRbox img {
    width: 220px !important;
    max-width: 220px !important;
    max-height: none !important;
    height: auto !important;
    margin: 6px 0 16px !important;
    border-radius: 14px !important;
    box-shadow: 0 16px 30px -18px rgba(6, 57, 27, .6);
    float: none !important;
}
html.lang-fa .imgRbox img { margin-left: 22px !important; }
html.lang-en .imgRbox img { margin-right: 22px !important; }
.imgRbox img.is-missing { display: none; }
.style1articledetails span[id$="Label2"] { display: block; font-size: 15px; line-height: 2.1; color: var(--ink); }
.style1articledetails span[id$="Label2"]::after { content: ""; display: block; clear: both; }
/* footer row: view counter + back button */
.style1articledetails > tbody > tr:last-child > td {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 22px;
    padding-top: 16px !important;
    border-top: 1px solid var(--line) !important;
    text-align: start !important;
}
.style1articledetails > tbody > tr:last-child > td br { display: none; }
.style1articledetails span[id$="Label3"],
.style1articledetails span[id$="Label3"] font {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted) !important;
    font-size: 12px !important;
}
.style1articledetails span[id$="Label3"]:empty { display: none; }
.style1articledetails span[id$="Label3"]::before {
    content: "";
    width: 15px;
    height: 15px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236a7a70' stroke-width='2'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Buttons and inputs ---------- */
.Btn,
.myButton_GOLD,
.myButton_GOLD2,
input[type="submit"].Btn,
input[type="button"].Btn {
    -webkit-appearance: none;
    appearance: none;
    display: inline-block;
    margin: 4px 0;
    padding: 10px 22px;
    border: 0;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    font-size: 13px !important;
    font-weight: 700;
    text-shadow: none;
    cursor: pointer;
    box-shadow: 0 8px 18px -10px rgba(10, 92, 43, .8);
    transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}
.Btn:hover,
.myButton_GOLD:hover,
.myButton_GOLD2:hover { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); filter: brightness(1.07); color: #fff; }
.Btn:active, .myButton_GOLD:active { transform: translateY(1px); }
/* the back button is a secondary (outline) button */
.style1articledetails input[type="button"].Btn {
    background: #fff;
    color: var(--brand-dark);
    border: 1px solid #cfe1d5;
    box-shadow: none;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.style1articledetails input[type="button"].Btn:hover,
.style1articledetails input[type="button"].Btn:focus-visible {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    color: #fff;
    filter: none;
    box-shadow: 0 10px 22px -12px rgba(10, 92, 43, .9);
    outline: none;
}
.textbox,
.TextBox_css1,
#FullCon select,
#FullCon textarea,
#FullCon input[type="text"],
#FullCon input[type="password"] {
    box-sizing: border-box;
    max-width: 100%;
    padding: 9px 12px;
    border: 1px solid #d3e0d7;
    border-radius: var(--radius-sm);
    background: #f9fcfa;
    color: var(--ink);
    font-size: 13.5px;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.textbox:focus,
.TextBox_css1:focus,
#FullCon select:focus,
#FullCon textarea:focus,
#FullCon input[type="text"]:focus,
#FullCon input[type="password"]:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(19, 133, 63, .14); }

/* ---------- Contact page ---------- */
.style1contact { width: 100% !important; padding: 0 !important; border-collapse: collapse; }
.style1contact td { padding: 7px 0 !important; color: var(--ink); vertical-align: middle; font-size: 14px; }
html.lang-fa .style1contact td:first-child { padding-left: 14px !important; white-space: nowrap; }
html.lang-en .style1contact td:first-child { padding-right: 14px !important; white-space: nowrap; }
.style1contact .TextBox_css1, .style1contact select { width: 340px; }
.style1contact td[rowspan] { padding-inline-start: 22px !important; text-align: center; }
.style1contact iframe { max-width: 100% !important; border: 0; border-radius: 14px; }

/* ---------- Content typed or pasted in the admin editor ---------- */
.mymainbox img,
.box img,
.mymainbox iframe,
.mymainbox video { max-width: 100% !important; }
.mymainbox img,
.mymainbox iframe { height: auto !important; }
.mymainbox iframe { aspect-ratio: 16 / 9; }
.mymainbox span img { border-radius: var(--radius-sm); }
/* editor tables: centred, with a light grid instead of the heavy black frame */
.mymainbox span table {
    margin: 10px auto 22px !important;
    border-collapse: collapse !important;
    border: 1px solid var(--line) !important;
}
.mymainbox span table td,
.mymainbox span table th {
    padding: 10px 14px !important;
    border: 1px solid var(--line) !important;
    text-align: center;
    vertical-align: middle;
}
.mymainbox span table tr:first-child td,
.mymainbox span table th { background: var(--soft); color: var(--deep); font-weight: 700; }
.mymainbox span table[border="0"],
.mymainbox span table[border="0"] td { border: 0 !important; }
/* align="right|left" from the editor floats the table to one side */
.mymainbox span table { float: none !important; clear: both; }
/* tables nested in a cell (e.g. the inspector row) blend into the cell */
.mymainbox span table table { margin: 0 auto !important; border: 0 !important; }
.mymainbox span table table td,
.mymainbox span table table th { padding: 2px 10px !important; border: 0 !important; background: none !important; font-weight: 700; }
.mymainbox hr { height: 1px; margin: 16px 0; border: 0; background: var(--line); }

/* ---------- News archive ---------- */
.archiveliststyle1 { float: none !important; width: 100% !important; margin: 0 !important; border-collapse: collapse; }
.archiveliststyle1 > tbody > tr > td { padding: 0 !important; color: var(--ink) !important; }
.archiveliststyle1 .mGrid,
.archiveliststyle1 .mGrid > tbody { display: block; width: 100% !important; border: 0 !important; }
.archiveliststyle1 .mGrid > tbody > tr {
    position: relative;
    display: block;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid var(--line);
    background: transparent !important;
    color: var(--ink) !important;
    border-radius: 12px;
    transition: background-color .2s ease;
}
.archiveliststyle1 .mGrid > tbody > tr:hover { background: var(--soft) !important; }
.archiveliststyle1 .mGrid > tbody > tr > td { display: block; padding: 0 !important; border: 0 !important; background: transparent !important; }
.archiveliststyle1 .mGrid > tbody > tr > td:empty { display: none; }
.archiveliststyle1 .mGrid font { color: inherit !important; }
/* the list cell carries an inline "direction: rtl" in both languages */
html.lang-en .archiveliststyle1 td { direction: ltr !important; text-align: left !important; }
html.lang-fa .archiveliststyle1 td { direction: rtl !important; text-align: right !important; }
.archiveliststyle1 .mGrid > tbody > tr > td:first-child:not([colspan]) { display: none; }   /* empty date column */
/* one news item: thumbnail, then title, summary and a meta line */
.news-row {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 16px 14px;
}
.news-row-thumb {
    flex: none;
    display: block;
    width: 132px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 12px;
    background: var(--soft);
    line-height: 0;
}
.news-row-thumb img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    border: 0 !important;
    object-fit: cover;
    transition: transform .5s ease;
}
.news-row:hover .news-row-thumb img { transform: scale(1.05); }
.news-row-thumb:has(img.is-missing) { display: none; }
.news-row-body { flex: 1; min-width: 0; }
.news-row-title,
a.news-row-title:visited {
    display: block;
    padding: 0 !important;
    color: var(--ink) !important;
    font-size: 15.5px !important;
    font-weight: 700;
    line-height: 1.8 !important;
}
.news-row-title:hover { color: var(--brand) !important; }
/* the stretched title link makes the whole row clickable */
.news-row-title::after { content: ""; position: absolute; inset: 0; }
.news-row-summary {
    display: -webkit-box;
    margin: 4px 0 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 13px !important;
    line-height: 1.9 !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.news-row-summary:empty { display: none; }
.news-row-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.news-row-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 12px;
    border-radius: 999px;
    background: var(--soft);
    color: var(--muted);
    font-size: 11.5px !important;
    line-height: 1.8;
}
.archiveliststyle1 .mGrid > tbody > tr:hover .news-row-meta span { background: #fff; }
.news-row-meta span::before { content: ""; width: 13px; height: 13px; background-position: center; background-size: contain; background-repeat: no-repeat; }
.news-row-meta .meta-date::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236a7a70' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='3'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E"); }
.news-row-meta .meta-views::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236a7a70' stroke-width='2'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E"); }
/* pager */
.archiveliststyle1 .mGrid > tbody > tr.gridview,
.archiveliststyle1 .mGrid > tbody > tr.gridview:hover { margin: 0; padding: 18px 0 0; border: 0; background: transparent !important; }
.archiveliststyle1 .mGrid tr.gridview td { text-align: center; }
.archiveliststyle1 .mGrid tr.gridview table { display: inline-table; margin: 0 auto; border: 0 !important; }
.archiveliststyle1 .mGrid tr.gridview table tr { display: table-row; border: 0; background: none !important; }
.archiveliststyle1 .mGrid tr.gridview table td { display: table-cell; padding: 0 3px !important; }
.archiveliststyle1 .gridview a,
.archiveliststyle1 .gridview span {
    display: inline-grid;
    place-items: center;
    min-width: 36px;
    height: 36px;
    margin: 0 !important;
    padding: 0 8px !important;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--ink) !important;
    font-size: 13px !important;
    font-weight: 700;
    box-shadow: none;
}
.archiveliststyle1 .gridview a::after { display: none; }
.archiveliststyle1 .gridview a:hover { border-color: var(--brand); background: var(--soft); color: var(--brand) !important; }
.archiveliststyle1 .gridview span { border-color: var(--brand); background: var(--brand); color: #fff !important; }

/* ---------- Footer ---------- */
#Footer {
    float: none;
    clear: both;
    width: auto;
    margin: 0;
    padding: 18px 20px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--deep), var(--brand-dark));
    color: rgba(255, 255, 255, .82);
    text-align: center;
    box-shadow: var(--shadow);
}
#Footerp,
html.lang-en #Footerp {
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
    color: inherit;
    font-size: 12px;
    line-height: 1.9;
    text-align: center;
}
.ourtext {
    width: auto;
    margin: 4px 0 0;
    padding: 0;
    color: rgba(255, 255, 255, .62);
    font-size: 11.5px;
    text-align: center;
}
html.lang-fa #Footerp, html.lang-fa .ourtext { direction: rtl; }
html.lang-en #Footerp, html.lang-en .ourtext { direction: ltr; }
#Footer a, .ourtext a { color: #f3d27a; font-weight: 700; }
#Footer a:hover, .ourtext a:hover { color: #fff; }

/* ---------- Tablet ---------- */
@media (max-width: 1000px) {
    #WAP { margin: 14px auto; }
    .site-header { padding: 16px 18px; }
    .brand-logo { width: 58px; height: 58px; }
    .brand-name { font-size: 17px; }
    .mymainbox2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mymainbox2 .box:last-child { grid-column: 1 / -1; }
    .mymainbox *, .box * { max-width: 100%; }
    .mymainbox span table { display: block; width: fit-content !important; max-width: 100%; overflow-x: auto; }
    .style1contact .TextBox_css1, .style1contact select { width: 100%; }
}

/* ---------- Phone ---------- */
@media (max-width: 640px) {
    #WAP { max-width: calc(100% - 24px); margin: 12px auto; }
    #Head, #Div1, #Head1 { margin-bottom: 14px; }
    .site-header { gap: 10px; padding: 14px; }
    .brand { gap: 10px; }
    .brand-logo { width: 46px; height: 46px; box-shadow: 0 0 0 3px rgba(255, 255, 255, .18); }
    .brand-name { font-size: 14.5px; line-height: 1.55; }
    .brand-sub { font-size: 11px; }
    .lang-switch, a.lang-switch:visited { min-width: 0; padding: 6px 12px; font-size: 12px !important; }
    .mymainbox, #contact_Main, #contact_Main2 { margin-bottom: 14px; padding: 20px 16px; font-size: 14px; }
    .hero { margin-bottom: 14px; border-radius: 14px; }
    .hero-nav { width: 34px; height: 34px; opacity: 1; transform: translateY(-50%); }
    .hero-nav svg { width: 16px; height: 16px; }
    .hero-dots { top: 10px; inset-inline-end: 10px; padding: 5px 8px; }
    .hero-caption { font-size: 14px; bottom: 12px; inset-inline-start: 16px; inset-inline-end: 16px; }
    /* editor content: justified text and fixed point sizes break up on a narrow column */
    .mymainbox { line-height: 1.95; }
    .mymainbox span,
    .mymainbox span p,
    .mymainbox span div,
    .mymainbox span td { text-align: start !important; word-spacing: normal !important; }
    .mymainbox span table td,
    .mymainbox span table td * { text-align: center !important; }
    /* editor tables: fit the column (fixed cell widths from the editor are ignored) */
    .mymainbox span table { display: table !important; width: 100% !important; table-layout: fixed; overflow: visible; }
    .mymainbox span table td,
    .mymainbox span table th { width: auto !important; padding: 8px 6px !important; font-size: 13px !important; line-height: 1.8 !important; overflow-wrap: anywhere; }
    .mymainbox span table td *,
    .mymainbox span table th * { font-size: 13px !important; }
    .mymainbox span table table { table-layout: auto; }
    .mymainbox span [style*="font-size"] { font-size: 15px !important; }
    .mymainbox span h1, .mymainbox span h1 * { font-size: 20px !important; line-height: 1.7 !important; }
    .mymainbox span h2, .mymainbox span h2 *,
    .mymainbox span h3, .mymainbox span h3 * { font-size: 17px !important; line-height: 1.7 !important; }
    .mymainbox span p { margin: 0 0 12px !important; }
    .hero-caption { display: none; }   /* the slide artwork already carries its title */
    .hero:has(.hero-caption)::after { display: none; }
    .mymainbox2 { grid-template-columns: 1fr; gap: 14px; }
    .mymainbox2 .box { margin: 0; }
    .mymainbox h1, h1.page-title { font-size: 19px !important; }
    /* news photos are often low-resolution: centre them at a modest size */
    html.lang-fa .makeMer, html.lang-fa .imgRbox,
    html.lang-en .makeMer, html.lang-en .imgRbox { float: none !important; }
    .makeMer { width: 100% !important; }
    .imgRbox img,
    html.lang-fa .imgRbox img,
    html.lang-en .imgRbox img {
        width: auto !important;
        max-width: min(100%, 240px) !important;
        max-height: 220px !important;
        display: block;
        margin: 4px auto 18px !important;
        object-fit: contain;
    }
    .news-row { gap: 12px; padding: 14px 4px; }
    .news-row-thumb { width: 92px; }
    .news-row-title, a.news-row-title:visited { font-size: 14px !important; }
    .news-row-summary { display: none; }
    .style1contact, .style1contact tbody, .style1contact tr, .style1contact td { display: block; width: 100% !important; }
    .style1contact td { padding: 4px 0 !important; }
    .style1contact td[rowspan] { padding: 14px 0 0 !important; }
    #Footer { margin-bottom: 12px; padding: 16px 14px; }
    .textbox, .TextBox_css1, input[type="text"], input[type="password"], textarea, select { font-size: 16px !important; } /* stops iOS zoom */
}

/* ---------- Skeleton loading (shown until the page has loaded) ---------- */
@keyframes skeleton-shimmer {
    0%   { background-position: 200% 0, 0 0; }
    100% { background-position: -200% 0, 0 0; }
}
html.is-loading .mymainbox,
html.is-loading .box { position: relative; }
html.is-loading .mymainbox { min-height: 200px; }
html.is-loading .mymainbox::after,
html.is-loading .box::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
    border-radius: var(--radius);
    background-color: #fff;
    background-image:
        linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.75) 50%, rgba(255,255,255,0) 100%),
        repeating-linear-gradient(to bottom, #e6ece7 0, #e6ece7 14px, transparent 14px, transparent 30px);
    background-size: 200% 100%, 100% 100%;
    background-repeat: no-repeat, repeat;
    animation: skeleton-shimmer 1.3s linear infinite;
}
html.is-loading .box::after { top: 62px; border-radius: 0; }   /* keep the box titles visible */

@media (prefers-reduced-motion: reduce) {
    html.is-loading .mymainbox::after,
    html.is-loading .box::after { animation: none; }
    .nav-toggle-icon span,
    #MENU li a::after,
    .brand-logo,
    .Btn { transition: none; }
    .hero.is-ready .hero-slide, .hero.is-ready .hero-slide.is-active { transition: none; }
    .hero-slide img { transform: none !important; transition: none; }
    .hero-dot.is-active::after { animation: none; transform: scaleX(1); } /* no autoplay */
}

/* ---------- SEO markup helpers ---------- */
/* Visually hidden but read by search engines and screen readers */
.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
