/*
Theme Name: AyNews New
Theme URI: https://aynews.ir
Author: AyNews
Description: قالب بهینه و سبک آی نیوز
Version: 1.0
Text Domain: aynews
*/

/* ============ MOTION TOKENS ============ */
:root {
    --ease: cubic-bezier(.22, 1, .36, 1); --t-fast: .2s; --t-med: .4s; --t-slow: .55s;
    /* رنگ اصلی — از «تنظیمات آی‌نیوز ◂ ظاهر» قابل تغییر است */
    --accent: var(--accent-strong);        /* تزئینی: خط‌ها، نقطه‌ها، حلقه فوکوس */
    --accent-strong: #b94b00; /* پس‌زمینه‌ی متن سفید و متن‌های رنگی (کنتراست ≥ ۵) */
    --accent-deep: #953c00;   /* هاور روی نوار منو */
    --accent-soft: #fff1e8;   /* پس‌زمینه‌ی ملایم چیپ‌ها */
    --link: #0577a8;          /* لینک‌های آبی */
    --muted: #6b7280;         /* متن کم‌رنگ (کنتراست ۴٫۸) */
}

/* ============ FONTS ============ */
@font-face {
    font-family: 'AyNewsFont';
    src: url('assets/fonts/sahel/Sahel.woff2') format('woff2'), url('assets/fonts/sahel/Sahel.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'AyNewsFont';
    src: url('assets/fonts/sahel/Sahel-Bold.woff2') format('woff2'), url('assets/fonts/sahel/Sahel-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'AyNewsFont';
    src: url('assets/fonts/sahel/Sahel-Black.woff2') format('woff2'), url('assets/fonts/sahel/Sahel-Black.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}
[class^="icon-"], [class*=" icon-"] {
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; outline: 0; }
html, body, div, span, h1, h2, h3, h4, h5, h6, p, a, em, img, strong, ul, li, form, label, header, footer, nav, section, article, aside, main, figure, figcaption {
    margin: 0; padding: 0; border: 0; font-size: 100%; font: inherit; vertical-align: baseline;
}
body {
    direction: rtl;
    color: #444;
    font: 12px/2 AyNewsFont, Tahoma, sans-serif;
    overflow-x: hidden;
    background: #fff;
    cursor: default;
}
a { text-decoration: none; color: #555; transition: color 0.2s ease; }
a:hover { color: var(--accent-strong); }
ul, li { list-style: none; }
img { border: 0; max-width: 100%; height: auto; }
button { cursor: pointer; border: 0; background: #d60707; color: #fff; font-family: inherit; }
input, button, textarea, select { font: 12px/2 AyNewsFont, Tahoma, sans-serif; }
iframe { overflow: hidden; max-width: 100%; }
.container { max-width: 75rem; margin-right: auto; margin-left: auto; padding-left: 7px; padding-right: 8px; }

/* ============ HEADER ============ */
#header {
    width: 100%;
    background: url('assets/images/hbg.jpg') #bb1819 no-repeat center;
    background-size: cover;
}
.topheader {
    padding: 4px 0;
    overflow: hidden;
    background: var(--accent-strong);
    background: color-mix(in srgb, var(--accent-strong) 88%, transparent);
    transition: background 0.4s ease;
}
.topheader:hover { background: var(--accent-strong); }
.topheader .topheaderr { float: right; }
.topheader .topheaderr ul li { float: right; }
.topheader .topheaderr ul li a { color: #fff; display: block; padding: 0 8px; }
.topheader .topheaderr ul li a:hover { color: #ff1000; }
.topheader .search_area { float: left; width: 20%; margin-top: 1px; }
.search {
    float: right; height: 20px; width: 100%; position: relative;
    border-radius: 5px 0 0 5px;
    border: 2px solid rgba(0,0,0,0.1);
    background: rgba(0,0,0,0.27);
}
.search input {
    background: none; border: 0; color: #ccc; line-height: 15px;
    padding-right: 5px; width: 89%; font-size: 0.9em;
    height: 16px; float: right; text-align: right;
}
.search button {
    position: absolute; left: 0; top: 0; height: 17px; width: 26px;
    border: 0; background: none;
}
.search i { font-size: 15px; color: #aaa; display: block; }
.search:hover i { color: #fff; }
.topheader .date {
    float: left; font: 13px/16px AyNewsFont, Tahoma;
    color: #fff; margin: 0 10px 0 0;
}

/* ============ LOGO ============ */
.logo-search { width: 100%; min-height: 85px; }
.logo-search .logo { width: 20%; float: right; margin-top: 6px; }
.logo-search .logo img { max-height: 70px; width: auto; }
.logo-search .logo .site-title { font-size: 2.4em; line-height: 1.6; font-weight: bold; margin: 0; }
.logo-search .logo .site-title a { color: #fff; }
.logo-search .logo .custom-logo-link { display: inline-block; }

/* ============ MENU ============ */
.categories {
    border-bottom: 1px solid #ccc;
    height: 35px;
    font-family: AyNewsFont, Tahoma;
    width: 100%;
    box-shadow: 0 1px 1px rgba(0,0,0,0.1);
    float: right;
    background-color: var(--accent-strong);
    position: relative;
}
.categories .socials { margin: 0; }
.categories .socials a {
    padding: 3px; border-radius: 5px; font-size: 17px;
    float: left; margin-right: 5px; margin-top: 5px;
    color: var(--accent-strong); background: #fff;
}
.categories .socials a:hover { opacity: 0.8; }
.zetta-menu { display: block; font-size: 14px; width: 80%; float: right; }
.zetta-menu > li { float: right; position: relative; }
.zetta-menu > li > a { padding: 0 10px; line-height: 34px; font-size: 15px; color: #fff; display: block; }
.zetta-menu > li:hover > a { color: #f2f2f2; }
.zetta-menu > li:hover { background-color: var(--accent-deep); }
.zetta-menu ul { position: absolute; display: none; z-index: 9999; top: 100%; right: 0; }
.zetta-menu li:hover > ul { display: block; }
.zetta-menu ul li { background: #d60707; border-bottom: 1px solid #f2f2f2; }
.zetta-menu ul li:hover { background: #000; }
.zetta-menu ul > li a { padding: 0 8px; width: 115px; color: #fff; font-size: 1.1em; display: block; line-height: 2; }
.zetta-menu ul > li a:hover { color: #fff; }
.zetta-menu ul ul { top: 0; right: 100%; }
.zetta-menu .has-children-menu-item-icon { display: none; }

/* ============ MAIN LAYOUT ============ */
.main.right { float: right; width: 50%; margin-top: 15px; }
.main.right.pagew { float: right; width: 100%; margin-top: 15px; }
.aside.left { float: left; width: 49%; margin-top: 15px; }
.aside.left .right { float: right; width: 50%; }
.aside.left .left_banner { float: left; width: 48%; text-align: center; }

/* ============ BOX NEWS ============ */
.boxnews { float: right; width: 100%; }
.boxnews > header, .boxtnews > header, .thirdboxcontent > header, .aside.left .right .boxside > header {
    border-bottom: 2px solid #ddd;
    width: 100%;
    display: inline-block;
    background-color: #fff;
    margin-bottom: 10px;
    position: relative;
}
.boxnews > header h2, .boxtnews > header h2, .aside.left .right .boxside > header h2 {
    border-right: solid 3px var(--accent);
    position: relative; z-index: 1;
    background-color: #ececec;
    float: right;
    margin: -1px 5px;
    padding: 0 5px;
    font-family: "AyNewsFont", Tahoma;
    font-size: 15px; font-weight: 700;
    color: #37474f;
    height: 27px; line-height: 30px;
    border-radius: 5px 0 0 0;
    min-width: 90px;
}
.boxnews > header h2 > a, .boxtnews > header h2 > a, .aside.left .right .boxside > header h2 > a { color: #37474f !important; display: block; }
.thirdboxcontent > header {
    border-bottom: 1px solid #e0f7f3;
    margin-bottom: -6px;
}
.thirdboxcontent > header h2 {
    border-right: solid 2px #e0f7f3;
    background-color: #e0f7f3;
    position: relative; z-index: 1;
    float: right;
    margin: -1px 5px;
    padding: 0 5px;
    font-family: "AyNewsFont", Tahoma;
    font-size: 15px; font-weight: 700;
    color: #37474f;
    height: 27px; line-height: 30px;
    border-radius: 5px 0 0 0;
    min-width: 90px;
}
.thirdboxcontent > header h2 > a { color: #37474f !important; }

/* Item */
.boxnews .posts .item {
    text-align: justify; border-radius: 2px; padding: 2px 10px;
    float: right; width: 100%; overflow: hidden; direction: rtl;
}
.boxnews .posts .item .thumb { float: right; width: 160px; height: 100px; margin-left: 10px; }
.boxnews .posts .item h2 a { font: 1.2em/2 'AyNewsFont', Tahoma !important; color: #262424; font-weight: bold !important; }
.boxnews .posts .item h2 a:hover { color: var(--link); }
.boxnews .posts .body { line-height: 23px; color: #606369; }
.boxnews .posts .body p { color: #656d74; max-height: 120px; overflow: hidden; }
.line { width: 100%; border-bottom: 1px dashed #e5e5e5; margin: 4px; display: inline-block; }

/* Item One (خبر ویژه) */
.slidertwo .ay-slide { height: 235px; }
.boxnews .posts .item_one {
    text-align: justify; padding: 0 10px;
    float: right; width: 100%; overflow: hidden; direction: rtl;
    height: 100%;
}
.boxnews .posts .item_one .thumb { float: left; width: 60%; height: 100%; margin-right: 10px; box-shadow: 0 1.5px 2px rgba(0,0,0,0.12); }
.boxnews .posts .item_one .left { width: 37%; float: right; }
.boxnews .posts .item_one h2 a { font: 1.2em/2 'AyNewsFont', Tahoma; font-weight: bold; color: #262424; letter-spacing: -1px; }
.boxnews .posts .item_one h2 a:hover { color: var(--link); }

/* ============ BOXTNEWS ============ */
.boxtnews { display: inline-block; width: 100%; margin-bottom: 15px; }
.boxtnews ul li { width: 100%; float: right; padding: 0 10px; margin-bottom: 8px; overflow: hidden; }
.boxtnews ul li img { transition: opacity .25s; float: right; width: 160px; height: 100px; object-fit: cover; padding: 3px; background-color: #ddd; margin-left: 10px; }
.boxtnews ul li h2 { font: 1.1em/2 'AyNewsFont', Tahoma !important; color: #262424; font-weight: bold !important; letter-spacing: -0.2px; text-align: right; max-height: 75px; overflow: hidden; }
.boxtnews ul li h2 a:hover { color: var(--link); }

/* ============ THIRD BOX ============ */
.thirdboxcontent { display: inline-block; width: 100%; margin-bottom: 15px; }
.thirdboxcontent .boxcontent { float: right; width: 100%; background: #e0f7f3; border-radius: 0 0 5px 5px; margin-bottom: 10px; }
.thirdboxcontent .boxcontent .boxone { float: right; width: 50%; padding: 3px 10px; }
.thirdboxcontent .boxcontent .boxone ul li { border-bottom: 1px dashed #c8e6e0; padding: 4px 0; }
.thirdboxcontent .boxcontent .boxone ul li:last-child { border-bottom: 0; }
.thirdboxcontent .boxcontent .boxone ul li:before {
    content: ""; width: 6px; height: 6px; background: var(--accent); transform: rotate(45deg);
    float: right; margin-left: 8px; margin-top: 9px;
}
.thirdboxcontent .boxcontent .boxone ul li a { color: var(--link); font-weight: 400; }
.thirdboxcontent .boxcontent .boxone ul li a:hover { color: var(--accent-strong); }

/* ============ MORE BUTTON ============ */
.mores { margin-bottom: 10px; display: inline-table; float: left; }
.more {
    display: table; margin: 0 auto; padding: 2px 12px;
    border-radius: 4px; background-color: var(--accent-strong); color: #fff;
    font-size: 0.75rem; transition: 0.1s ease-in;
    box-shadow: 0 1px hsla(0,0%,100%,0.15);
}
.more:hover { color: #d9eeda; box-shadow: 0 1px 2px rgba(0,0,0,0.15); background-color: #b8510c; }

/* ============ SIDEBAR ============ */
.aside.left .right .boxsidetow { width: 100%; background: #f6f6f6; transition: all 0.23s ease-in-out; }
.aside.left .right .tow { margin: 30px 0; }
.aside.left .right .boxsidetow > header { margin-bottom: 10px; overflow: hidden; }
.aside.left .right .boxsidetow > header h3 {
    float: right; font-weight: bold; line-height: 1.13em;
    margin-bottom: 0; padding: 5px 15px; font-size: 15px;
    color: #fff; background-color: var(--accent-strong);
}
.aside.left .right .boxsidetow > header h3 a { color: #fff; }
.aside.left .right .boxsidetow .boxsidelist { overflow: hidden; text-overflow: ellipsis; display: block; color: #656565; padding: 2px 9px; }
.aside.left .right .boxsidetow .boxsidelist ul { float: right; width: 100%; line-height: 23px; }
.aside.left .right .boxsidetow .boxsidelist li { text-overflow: ellipsis; display: block; border-bottom: 1px dashed #e9e9e9; padding-bottom: 3px; font-weight: 600; letter-spacing: -0.2px; }
.aside.left .right .boxsidetow .boxsidelist li a { color: var(--link); }
.aside.left .right .boxsidetow .boxsidelist li a:hover { color: var(--accent-strong); }
.aside.left .right .boxsidetow .boxsidelist li:before {
    content: ""; width: 6px; height: 6px; background: var(--accent); transform: rotate(45deg);
    float: right; margin-left: 8px; margin-top: 9px;
}

/* Boxsidedesc */
.aside.left .right .boxside .boxsidedesc { text-overflow: ellipsis; display: block; color: #656565; padding: 2px 9px; }
.aside.left .right .boxside .boxsidedesc ul { width: 100%; line-height: 23px; }
.aside.left .right .boxside .boxsidedesc li { display: block; border-bottom: 1px dashed #e9e9e9; padding: 5px 0; font-weight: 400; float: right; width: 100%; text-align: right; overflow: hidden; }
.aside.left .right .boxside .boxsidedesc ul li figure { float: right; padding: 0; margin: 0; }
.aside.left .right .boxside .boxsidedesc ul li figure img { float: right; width: 100px; height: 100px; margin-left: 10px; object-fit: cover; padding: 0.25rem; background-color: #fff; border: 1px solid #dee2e6; border-radius: 50%; transition: 0.2s filter linear; }
.aside.left .right .boxside .boxsidedesc li a { direction: rtl; font: 1em/2 'AyNewsFont', Tahoma; margin-bottom: 10px; float: right; font-weight: bold; letter-spacing: -0.2px; width: 55%; color: var(--link); }
.aside.left .right .boxside .boxsidedesc li a:hover { color: var(--accent-strong); }

/* Tabs */
.aside.left .right .boxside .context { padding: 2px 1px; }
.aside.left .right .boxside .context .tabs { text-align: center; margin-bottom: 10px; }
.aside.left .right .boxside .context .tabs a {
    text-align: center; font: bold 1.5em AyNewsFont, Tahoma;
    color: #fff; display: inline-block; width: 30%;
    background: #343541; cursor: pointer; border-radius: 5px;
}
.aside.left .right .boxside .context .tabs .tactive { color: #fff; cursor: default; border-radius: 5px 0; width: 37%; background-color: var(--accent-strong); }
.aside.left .right .boxside .context ul { padding: 0 5px; }
.aside.left .right .boxside .context li { text-overflow: ellipsis; display: block; border-bottom: 1px dashed #e9e9e9; padding-bottom: 3px; font-weight: 400; letter-spacing: -0.2px; }
.aside.left .right .boxside .context li:before {
    content: ""; width: 6px; height: 6px; background: #37474f;
    float: right; margin-left: 8px; margin-top: 9px;
}
.aside.left .right .boxside .context li a { color: var(--link); }
.aside.left .right .boxside .context li a:hover { color: var(--accent-strong); }
.tabcontent { display: none; animation: fadeEffect 0.5s; padding: 10px 0 0; }
.tabcontent.active { display: block; }
@keyframes fadeEffect { from { opacity: 0; } to { opacity: 1; } }

/* ============ END NEWS ============ */
.endnews { float: right; width: 100%; margin: 10px 0; }
.endnews .maintitleall { border-bottom: 2px solid #999; position: relative; margin: 0 0 10px 0; height: 30px; }
.endnews .maintitleall h3 { font-family: "AyNewsFont", Tahoma, Arial; font-size: 15px; font-weight: 700; border-bottom: 2px solid #fc3f20; position: relative; color: #37474f; display: inline-block; }
.endnews .maintitleall h3 a { color: #37474f; }
.endnews .maintitleall h4 { float: left; font-family: "AyNewsFont", Tahoma, Arial; font-size: 15px; font-weight: 700; color: #37474f; }
.endnews .maintitleall h4 a { color: #37474f; }
.endnews .boxendnewsone { width: 25%; float: right; padding: 15px; }
.endnews .boxendnewsone .thumb { aspect-ratio: 3 / 2; padding: 3px; background-color: #ddd; }
.endnews .boxendnewsone h2 a { font: 14px AyNewsFont; margin: 5px 5px 0; color: #262424; display: block; }
.endnews .boxendnewsone h2 a:hover { color: var(--accent-strong); }

/* ============ MEDIA ARTICLE ============ */
.mediaarticle { float: right; background-color: #343541; color: #fff; padding: 20px 0; margin-top: 40px; width: 100%; }
.mediaarticle .photo { float: right; width: 60%; }
.mediaarticle .photo > header { height: 26px; line-height: 26px; margin-bottom: 10px; position: relative; }
.mediaarticle .photo > header:after { display: block; content: ''; position: absolute; height: 2px; width: 100%; background: #fff; top: 50%; transform: translateY(-50%); z-index: 0; }
.mediaarticle .photo > header h2 { font-size: 1.1rem; font-weight: bold; color: #fff; background: #343541; position: relative; z-index: 1; display: inline-block; padding-left: 20px; line-height: 26px; }
.mediaarticle .photo > header h2 > a { color: #fff; }
.ay-gallery { border-radius: 3px; }
.ay-gallery .ay-slide { aspect-ratio: 16 / 9; background: #222; }
.ay-gallery .ay-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ay-gallery .desc { position: absolute; bottom: 0; left: 0; width: 100%; padding: 30px 20px 30px; text-shadow: 0 0 3px #333; background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%); }
.ay-gallery .desc h3 { font: 1.2em/1.5 'AyNewsFont', Tahoma; color: #fff; }
.ay-gallery .desc h3 a { color: #fff; }

.mediaarticle .video { float: left; width: 36%; }
.mediaarticle .video > header { height: 26px; line-height: 26px; margin-bottom: 10px; position: relative; }
.mediaarticle .video > header:after { display: block; content: ''; position: absolute; height: 2px; width: 100%; background: #fff; top: 50%; transform: translateY(-50%); z-index: 0; }
.mediaarticle .video > header h2 { font-size: 1.1rem; font-weight: bold; color: #fff; background: #343541; position: relative; z-index: 1; display: inline-block; padding-left: 20px; line-height: 26px; }
.mediaarticle .video > header h2 > a { color: #fff; }
.mediaarticle .video ul li { width: 45%; position: relative; float: right; margin: 9px 8px; height: 100px; overflow: hidden; }
.mediaarticle .video ul li .thumb { height: 100%; border-radius: 0; }
.mediaarticle .video ul li .desc { position: absolute; bottom: 0; right: 0; left: 0; padding: 20px 8px 8px; background: linear-gradient(to bottom, transparent 0, rgba(0,0,0,0.7) 100%); }
.mediaarticle .video ul li .desc h3 { font: 0.9em/1.6 'AyNewsFont', Tahoma; color: #fff; }
.mediaarticle .video ul li .desc h3 a { color: #fff; }

/* ============ FOOTER ============ */
.footer { background: #252630; float: right; width: 100%; padding: 1rem 0 0; box-shadow: 0 3px 12px rgba(0,0,0,0.16); z-index: 0; }
.footer .box { width: 25%; float: right; margin: 15px 5px; overflow: hidden; }
.footer .box.links { width: 25%; }
.footer .box.tags { width: 45%; }
.footer .box .title { height: 33px; font: bold 1.2em/25px AyNewsFont, Tahoma; text-align: right; color: #fff; padding-bottom: 5px; border-bottom: 1px solid rgba(190,185,185,0.1); }
.footer .box .title a { border-radius: 3px; font: 1.4em/25px AyNewsFont, Tahoma; margin-right: 5px; color: #fff; }
.footer .box .title a:hover { color: #ccc; }
.footer .box .title:before { content: ""; height: 5px; width: 5px; float: right; border-radius: 50% 50% 50% 0; border: 2px solid var(--accent); margin: 9px 5px 0; }
.footer .box ul, .footer .box .content { text-align: justify; color: #fff; margin: 5px 0; }
.footer .box li { width: 99%; float: right; margin-right: 1px; background: none; color: #fff; }
.footer .box li a { color: #cbccd7; letter-spacing: -1px; }
.footer .box li a:before { content: ""; width: 12px; height: 12px; float: right; margin-left: 4px; margin-top: 5px; background: currentColor; -webkit-mask: var(--ic-arrow) center / contain no-repeat; mask: var(--ic-arrow) center / contain no-repeat; }
.footer .box.links li { width: 49%; }
.footer .box li a:hover { color: #ffc501; }
.copyright { float: right; width: 100%; background: #17171a; padding: 10px 0; }
.copyright .info { float: right; width: 55%; }
.copyright p { text-align: justify; color: #ccc; line-height: 26px; }
.copyright a:hover { color: #ffc501; }
.copyright .socials { float: left; width: 40%; margin: 9px 0; padding: 5px 30px 5px 15px; }
.socials a { padding: 5px; border-radius: 5px; font-size: 17px; float: left; margin-right: 5px; margin-top: 5px; color: #fff; }
.socials .icon-telegram { background: #64a9dc; }
.socials .icon-facebook { background: #3b5998; }
.socials .icon-twitter { background: #00abf1; }
.socials .icon-instagram { background: #3b5998; }
.socials .icon-aparat { background: #ed145b; }
.socials a:hover { filter: grayscale(50%); }

/* ============ SCROLL TOP ============ */
.scrolltop { position: fixed; bottom: 37px; right: 30px; background: #343541; display: none; z-index: 999; width: 35px; height: 35px; cursor: pointer; transition: all 0.3s ease-out 0s; text-align: center; border-radius: 3px; }
.scrolltop:hover { background-color: var(--accent-strong); }
.scrolltop i { display: inline-block; margin-top: 2px; font-size: 34px; color: #fff; }

/* ============ PAGENAVI ============ */
.pagenavi { font: 12px/2 AyNewsFont, Tahoma; display: inline-block; height: 57px; background: #fff; border-radius: 2px; float: right; width: 100%; overflow: hidden; margin: 10px 0; }
.pagenavi a, .pagenavi span { transition: all 0.5s ease 0s; float: right; width: 26px; text-align: center; background: #fff; color: #777; height: 26px; border: 1px solid #dee2e6; line-height: 26px; margin: 2px; }
.pagenavi span.current, .pagenavi a:hover { color: #fff !important; background: var(--accent-strong); border: 1px solid #dee2e6; }

/* ============ COMMENTS ============ */
.comments_title { height: 30px; border-radius: 2px; margin-bottom: 15px; }
.comments_title h5 { float: right; line-height: 30px; padding: 0 10px; color: #fff; margin-right: 10px; border-radius: 5px 5px 0 0; background-color: var(--accent-strong); }
.comments ul { border-bottom: 1px dashed #f2f2f2; padding: 10px 5px; margin-bottom: 10px; text-align: right; }
.comment { background: #fff; padding: 5px; margin-bottom: 5px; border: 1px solid #e5e5e5; }
.comment .content { text-align: initial; padding: 5px 5px 0 !important; color: #555 !important; font-size: 14px; }
.vcard { height: 33px; background: #ededed; }
.vcard .fn { float: right; color: #777; margin: 2px; font-size: 0.8rem; }
.vcard .says { color: #999; float: right; line-height: 27px; margin-right: 8px;  }
.vcard .reply { float: left; margin: 5px; }
.vcard .reply a { padding: 2px 0 0 10px; color: #888; float: left; }
.vcard .reply a:hover { background: #d60707; color: #fff; padding: 4px 10px; border-radius: 6px; }
.comment-form input, .comment-form textarea {
    width: 100%; background: #f2f2f2; padding: 8px; text-indent: 5px;
    margin-bottom: 10px; color: #777; border: 0;
    font-family: inherit; border-radius: 3px;
}
.comment-form textarea { resize: none; margin: 15px 0 0; height: 70px; }
.comment-form button, .form-submit #submit {
    float: left; padding: 8px 20px; color: #fff; cursor: pointer;
    margin-top: 7px; border-radius: 3px; font: 1em AyNewsFont;
    border: 0; background: var(--accent-strong);
}
.comment-form button:hover, .form-submit #submit:hover { background: #b8510c; }

/* ============ SINGLE ============ */
.main.right .single .head { display: inline-block; text-align: center; width: 100%; margin-bottom: 15px; }
.main.right .single h1 { font: 1.6em/2 'AyNewsFont', Tahoma; margin-bottom: 10px; font-weight: bold; letter-spacing: -0.2px; }
.main.right .single .the_ID { float: right; margin-right: 4px;  color: #999; }
.main.right .single .the_category { float: left; }
.main.right .single .the_category a { color: var(--link); margin: 0 3px; }
.main.right .single .excerptpic { width: 100%; float: right; margin-bottom: 15px; }
.main.right .single .excerptpic .pic { width: 100%; float: right; }
.main.right .single .excerptpic .pic img { width: 100%; height: auto; }
.main.right .single .excerptpic .excerpt { font: 1.1em/2 'AyNewsFont', Tahoma; color: #696969; padding: 0.8em; background: #f8f8f8; float: right; width: 100%; border-right: 3px solid var(--accent-strong); margin-bottom: 15px; }
.main.right .single .contentsingle { font: 1.1em/2 'AyNewsFont', Tahoma; color: #444; padding: 0.4em; float: right; width: 100%; }
.main.right .single .contentsingle img { max-width: 100%; height: auto; margin: 5px auto; }
.main.right .single .contentsingle h2, .main.right .single .contentsingle h3, .main.right .single .contentsingle h4 { margin: 15px 0 8px; color: #262424; }
.main.right .single .contentsingle p { margin-bottom: 10px; }
.main.right .single .contentsingle a { color: var(--link); }
.main.right .single .contentsingle a:hover { text-decoration: underline; }
.main.right .single .tag { background: #f7f7f7; width: 100%; padding: 10px; display: inline-block; margin: 10px 0; border-radius: 3px; }
.main.right .single .tag h3 { font: 13px/21px AyNewsFont, Tahoma; }
.main.right .single .tag span { font-weight: bold; font-size: 13px; margin-left: 5px; }
.main.right .single .tag a { color: #369; margin: 0 3px; display: inline-block; }
.main.right .single .tag a:hover { color: var(--accent-strong); }

/* ============ RESPONSIVE ============ */
@media screen and (max-width: 1024px) {
    .aside.left .right, .aside.left .left_banner { width: 100%; }
    .main.right { width: 70%; }
    .aside.left { width: 29%; }
}
@media screen and (max-width: 960px) {
    .main.right, .aside.left { width: 100%; }
    .aside.left .right, .aside.left .left_banner { width: 100%; margin: 16px 0 0; }
    .logo-search .logo { text-align: center; width: 100%; margin: 0; }
    .logo-search .search_area { text-align: center; width: 100%; margin: 0 0 10px; }
    .categories .date, .logo-search .ads { display: none; }
    .mediaarticle .video, .mediaarticle .photo { width: 100%; }
    .mediaarticle .photo { margin-bottom: 30px; }
    .endnews .boxendnewsone { width: 50%; }
    .footer .box { width: 100%; }
    .footer .box.links { width: 100%; }
    .footer .box.tags { width: 100%; }
    .zetta-menu {
        position: fixed; float: none; height: 100%; right: 0;
        background: #333; width: 250px; z-index: 99999; top: 0;
        transition: 0.3s; transform: translateX(250px); display: block;
        overflow-y: auto; padding: 20px 0;
    }
    .zetta-menu > li { width: 100%; }
    .zetta-menu > li > a { color: #fff; padding: 10px 15px; border-bottom: 1px solid #444; }
    .navicon { background: #261f1f; display: block; height: 34px; width: 34px; float: right; margin: 4px; cursor: pointer; line-height: 34px; text-align: center; border-radius: 3px; }
    .navicon i { color: #fff; font-size: 1.5em; }
    .bodydeactive { width: 100%; height: 100%; background: rgba(0,0,0,0.5); position: fixed; z-index: 9999; display: none; top: 0; right: 0; }
}
@media screen and (max-width: 720px) {
    .boxnews .posts .item .thumb { width: 90px; height: 75px; }
    .boxnews .posts .item_one { height: auto; padding-bottom: 10px; }
    .boxnews .posts .item_one .thumb, .boxnews .posts .item_one .left { width: 100%; float: none; margin: 0 0 10px; }
    .boxnews .posts .item_one .thumb { height: auto; aspect-ratio: 3 / 2; }
}
@media screen and (max-width: 520px) {
    .endnews .boxendnewsone { width: 100%; }
}


/* =====================================================
   آیکن‌ها — SVG داخلی (بدون فونت آیکن، بدون درخواست اضافه)
   رنگ آیکن = رنگ متن (color) و اندازه‌اش = font-size المنت است.
   ===================================================== */
:root {
    --ic-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15.5 14h-.79l-.28-.27A6.47 6.47 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E");
    --ic-menu: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z'/%3E%3C/svg%3E");
    --ic-chevron-up: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z'/%3E%3C/svg%3E");
    --ic-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z'/%3E%3C/svg%3E");
    --ic-telegram: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.78 18.65l.28-4.23 7.68-6.92c.34-.31-.07-.46-.52-.19L7.74 13.3 3.64 12c-.88-.25-.89-.86.2-1.3l15.97-6.16c.73-.33 1.43.18 1.15 1.3l-2.72 12.81c-.19.91-.74 1.13-1.5.71L12.6 16.3l-1.99 1.93c-.23.23-.42.42-.83.42z'/%3E%3C/svg%3E");
    --ic-instagram: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7.8 2h8.4C19.4 2 22 4.6 22 7.8v8.4a5.8 5.8 0 0 1-5.8 5.8H7.8C4.6 22 2 19.4 2 16.2V7.8A5.8 5.8 0 0 1 7.8 2m-.2 2A3.6 3.6 0 0 0 4 7.6v8.8C4 18.39 5.61 20 7.6 20h8.8a3.6 3.6 0 0 0 3.6-3.6V7.6C20 5.61 18.39 4 16.4 4H7.6m9.65 1.5a1.25 1.25 0 0 1 1.25 1.25A1.25 1.25 0 0 1 17.25 8 1.25 1.25 0 0 1 16 6.75a1.25 1.25 0 0 1 1.25-1.25M12 7a5 5 0 0 1 5 5 5 5 0 0 1-5 5 5 5 0 0 1-5-5 5 5 0 0 1 5-5m0 2a3 3 0 0 0-3 3 3 3 0 0 0 3 3 3 3 0 0 0 3-3 3 3 0 0 0-3-3z'/%3E%3C/svg%3E");
    --ic-facebook: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M22 12a10 10 0 1 0-11.56 9.88v-6.99H7.9V12h2.54V9.8c0-2.5 1.49-3.89 3.78-3.89 1.09 0 2.24.2 2.24.2v2.46h-1.26c-1.24 0-1.63.77-1.63 1.56V12h2.78l-.44 2.89h-2.34v6.99A10 10 0 0 0 22 12z'/%3E%3C/svg%3E");
    --ic-twitter: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z'/%3E%3C/svg%3E");
    --ic-aparat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-2 14.5v-9l7 4.5-7 4.5z'/%3E%3C/svg%3E");
}
[class^="icon-"]::before, [class*=" icon-"]::before {
    content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -.125em;
    background-color: currentColor;
    -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat;
}
.icon-search { --ic: var(--ic-search); }
.icon-menu { --ic: var(--ic-menu); }
.icon-chevron-up { --ic: var(--ic-chevron-up); }
.icon-telegram { --ic: var(--ic-telegram); }
.icon-instagram { --ic: var(--ic-instagram); }
.icon-facebook { --ic: var(--ic-facebook); }
.icon-twitter { --ic: var(--ic-twitter); }
.icon-aparat { --ic: var(--ic-aparat); }


/* ============ دسترسی‌پذیری ============ */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { top: 6px; right: 6px; width: auto; height: auto; clip: auto; margin: 0; padding: 8px 14px; background: #fff; color: #000; z-index: 100000; border-radius: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button { padding: 0; }

/* ============ کارت‌ها، تصویر و لینک کشیده ============ */
.card { position: relative; }
.stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.thumb { display: block; position: relative; overflow: hidden; border-radius: 3px; background: #eee; }
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease); }
.card:hover .thumb img { transform: scale(1.07); }
.boxtnews ul li:hover img { opacity: .85; }

/* ============ متا: دسته، زمان، بازدید ============ */
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; font-size: 12px; line-height: 1.9; color: var(--muted); }
.meta .chip { position: relative; z-index: 2; background: var(--accent-soft); color: var(--accent-strong); border-radius: 10px; padding: 0 9px; font-weight: bold; transition: background .2s, color .2s; }
.meta .chip:hover { background: var(--accent-strong); color: #fff; }
.views { display: inline-flex; align-items: center; gap: 3px; color: var(--muted); }
.ay-ico { width: 13px; height: 13px; fill: currentColor; }
.badge-new { background: #d60707; color: #fff; border-radius: 3px; padding: 0 6px; font-size: 11px; font-weight: bold; animation: ayPulse 2s ease-in-out infinite; }
@keyframes ayPulse { 50% { opacity: .55; } }
.boxsidelist .views, .sideposts .views { font-size: 11px; margin-right: 4px; }

/* ============ اسلایدر سبک ============ */
.ay-slider { position: relative; direction: rtl; overflow: hidden; border-radius: 4px; max-width: 100%; }
.ay-track { display: flex; align-items: flex-start; width: 100%; touch-action: pan-y; transition: transform var(--t-slow) var(--ease); will-change: transform; user-select: none; -webkit-user-select: none; }
.ay-track.is-drag, .ay-track.is-instant { transition: none; }
.ay-slide { flex: 0 0 100%; width: 100%; min-width: 0; position: relative; }
.ay-slide img { -webkit-user-drag: none; }

.ay-dots { position: absolute; bottom: 10px; left: 16px; display: flex; gap: 6px; z-index: 3; }
.ay-dot { width: 9px; height: 9px; padding: 0; border-radius: 50%; background: rgba(255,255,255,.55); transition: width var(--t-med) var(--ease), background-color var(--t-fast); }
.ay-dot.is-active { background: var(--accent); width: 22px; border-radius: 5px; }
.ay-slider.is-light .ay-dots { position: static; justify-content: center; margin-top: 8px; }
.ay-slider.is-light .ay-dot { background: #c9c9c9; }
.ay-slider.is-light .ay-dot.is-active { background: var(--accent); }

.ay-arrow {
    position: absolute; top: 50%; margin-top: -18px; width: 36px; height: 36px; padding: 0;
    border-radius: 50%; background: rgba(255,255,255,.92); color: var(--accent-strong);
    box-shadow: 0 2px 6px rgba(0,0,0,.25); display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity var(--t-fast), transform var(--t-fast) var(--ease), background-color var(--t-fast); z-index: 3;
}
.ay-arrow:hover { background: #fff; transform: scale(1.1); }
.ay-arrow:active { transform: scale(.94); }
.ay-arrow::before { content: ""; width: 8px; height: 8px; border: solid currentColor; border-width: 2px 2px 0 0; }
.ay-prev { right: 10px; }
.ay-prev::before { transform: rotate(45deg); }
.ay-next { left: 10px; }
.ay-next::before { transform: rotate(-135deg); }
.ay-slider:hover .ay-arrow, .ay-arrow:focus-visible { opacity: 1; }
@media (hover: none) { .ay-arrow { display: none; } }

/* اسلایدر اصلی */
.sliderone { margin-bottom: 6px; }
.ay-hero .ay-slide { aspect-ratio: 3 / 2; background: #222; }
.ay-hero .ay-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ay-hero .firsttitledata { position: absolute; bottom: 0; left: 0; right: 0; padding: 50px 20px 34px; text-shadow: 0 0 3px #333; background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,.88) 100%); }
.ay-hero .firsttitledata h2 { font-size: 1.45rem; line-height: 1.7; font-weight: bold; }
.ay-hero .firsttitledata h2 a { color: #fff; }
.ay-hero .meta, .ay-hero .meta .views { color: #e2e2e2; }
.ay-hero .meta .chip { background: var(--accent-strong); color: #fff; }
.ay-hero .meta .chip:hover { background: #fff; color: var(--accent-strong); }

/* یادداشت‌ها */
.ay-notes .ay-slide { height: 130px; }
.note-item { display: flex; align-items: center; gap: 12px; height: 100%; padding: 6px 4px; }
.note-item figure { flex: 0 0 100px; }
.note-item figure img { width: 100px; height: 100px; object-fit: cover; border-radius: 50%; padding: .25rem; background: #fff; border: 1px solid #dee2e6; display: block; }
.note-item a { flex: 1; font: bold 1em/2 'AyNewsFont', Tahoma; color: var(--link); direction: rtl; }
.note-item a:hover { color: var(--accent-strong); }

/* ============ منوی موبایل ============ */
.navicon { display: none; padding: 0; }
.zetta-menu.is-open { transform: none; visibility: visible; transition-delay: 0s; }

.scrolltop { padding: 0; }


/* ============ سایدبار ============ */
.tabs a { user-select: none; }

/* ============ صفحه نوشته ============ */
.breadcrumb { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.breadcrumb a { color: var(--link); }
.main.right .single .head h1 { font: 1.6em/2 'AyNewsFont', Tahoma; font-weight: bold; color: #262424; }
.infoline { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 16px; color: var(--muted); font-size: 12px; }
.related { float: right; width: 100%; margin: 20px 0; }
.related h3 { font: bold 15px/2 'AyNewsFont', Tahoma; color: #37474f; border-bottom: 2px solid var(--accent); display: inline-block; margin-bottom: 12px; }
.related .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.related .thumb { aspect-ratio: 3 / 2; }
.related h4 { margin-top: 5px; }
.related h4 a { font: 13px/1.9 'AyNewsFont', Tahoma; color: #262424; }
.related h4 a:hover { color: var(--accent-strong); }
.noresult { padding: 15px 0; }
.archive-desc { padding: 6px 10px; color: #666; }

/* ============ ۴۰۴ ============ */
.notfound { text-align: center; padding: 50px 20px; }
.notfound h1 { font-size: 5em; color: var(--accent); line-height: 1.3; }
.notfound a { color: var(--accent-strong); }
.notfound-search { margin: 30px auto 0; max-width: 320px; }
.notfound-search .search { float: none; display: block; background: #f1f1f1; border-color: #ddd; }
.notfound-search .search input { color: #444; }

/* ============ ورود نرم محتوا ============ */
@media (prefers-reduced-motion: no-preference) {
    .boxnews .posts .item, .boxtnews ul li, .boxendnewsone { animation: ayFade .55s var(--ease) both; }
    .boxnews .posts .item:nth-child(2), .boxtnews ul li:nth-child(2), .boxendnewsone:nth-of-type(2) { animation-delay: .05s; }
    .boxnews .posts .item:nth-child(3), .boxtnews ul li:nth-child(3), .boxendnewsone:nth-of-type(3) { animation-delay: .1s; }
    .boxnews .posts .item:nth-child(n+4), .boxtnews ul li:nth-child(n+4), .boxendnewsone:nth-of-type(n+4) { animation-delay: .15s; }
    @keyframes ayFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}

/* ============ حرکت‌های میانه‌رو: کمی نرم، سریع و پرانرژی ============ */
.container.content-wrap { overflow: hidden; }

/* دکمه بازگشت به بالا: محو + بالا آمدن، به‌جای ظاهر شدن ناگهانی */
.scrolltop { display: block; opacity: 0; visibility: hidden; transform: translateY(14px);
    transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease), visibility 0s var(--t-med), background-color var(--t-fast); }
.scrolltop.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.scrolltop:hover { background: var(--accent-strong); transform: translateY(-3px); }
.scrolltop:active { transform: scale(.94); }

/* منو: هاور نرم و بازشدن زیرمنو */
.zetta-menu > li { transition: background-color var(--t-fast); }
.zetta-menu ul li { transition: background-color var(--t-fast); }
.zetta-menu li:hover > ul { animation: ayDrop var(--t-fast) var(--ease) both; }
@keyframes ayDrop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* لایه تیره پشت منوی موبایل */
.bodydeactive { display: block; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity var(--t-med) var(--ease), visibility 0s var(--t-med); }
.bodydeactive.is-open { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
@media screen and (min-width: 961px) { .bodydeactive { display: none; } }

/* تب‌های سایدبار */
.tabcontent.active { animation: ayFadeIn var(--t-med) var(--ease) both; }
@keyframes ayFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* تیتر اسلاید فعال: ورود نرم + نشستن تصویر */
.ay-hero .ay-slide[aria-hidden="false"] .firsttitledata { animation: ayCaption .65s var(--ease) .12s both; }
.ay-hero .ay-slide[aria-hidden="false"] img { animation: aySettle 1.2s var(--ease) both; }
@keyframes ayCaption { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes aySettle { from { transform: scale(1.06); } to { transform: none; } }

/* هاور کارت‌ها */
.boxnews .posts .item h2 a, .boxtnews ul li h2 a, .boxendnewsone h2 a { transition: color var(--t-fast); }
.boxtnews ul li img { transition: opacity var(--t-fast), transform var(--t-med) var(--ease); }
.boxtnews ul li:hover img { transform: scale(1.03); }
.meta .chip { transition: background-color var(--t-fast), color var(--t-fast), transform var(--t-fast) var(--ease); }
.meta .chip:hover { transform: translateY(-1px); }

/* احترام به تنظیم «کاهش حرکت» سیستم‌عامل */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ============ ریسپانسیو (افزوده‌ها) ============
@media screen and (max-width: 960px) {
    .slidertwo .ay-slide { height: auto; min-height: 200px; }
    .zetta-menu { visibility: hidden; transition: transform var(--t-med) var(--ease), visibility 0s var(--t-med); }
    .zetta-menu ul { position: static; display: block; }
    .zetta-menu ul li a { width: auto; padding-right: 28px; }
    .ay-hero .firsttitledata h2 { font-size: 1.15rem; }
}
@media screen and (max-width: 720px) {
    .related .grid { grid-template-columns: repeat(2, 1fr); }
    .ay-hero .firsttitledata { padding: 30px 14px 30px; }
}
