/*
Theme Name: Iranhim
Theme URI: https://www.iranhim.ir/
Description: قالب اختصاصی و سئو شده خانه صنعت، معدن و تجارت ایران. سازگار با PHP 8.1 تا 8.5، بدون کد رمزگذاری شده، بدون jQuery در سمت کاربر. سازگار با محتوای قالب قبلی (Mellat_News): روتیتر، لید، گالری عکس و فیلم، شمارنده بازدید. طراحی و پیاده‌سازی: آریان دیتا (ariandata.ir)
Version: 1.0.0
Requires at least: 6.3
Requires PHP: 8.1
Tested up to: 7.1
Author: آریان دیتا (Arian Data)
Author URI: https://ariandata.ir
Text Domain: iranhim
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: rtl-language-support, news, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ==========================================================================
   Fonts
   ========================================================================== */
@font-face { font-family: "Num_Light"; src: url("assets/fonts/Num_Light.woff") format("woff"); font-display: swap; }
@font-face { font-family: "Num_Medium"; src: url("assets/fonts/Num_Medium.woff") format("woff"); font-display: swap; }
@font-face { font-family: "BTitr"; src: url("assets/fonts/BTitrBold.woff") format("woff"); font-display: swap; }
@font-face {
	font-family: "FontAwesome";
	src: url("assets/fonts/fontawesome-webfont.woff2") format("woff2"), url("assets/fonts/fontawesome-webfont.woff") format("woff");
	font-weight: normal; font-style: normal; font-display: block;
}

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
	--ih-primary: #2361dd;
	--ih-primary-dark: #1a4bb0;
	--ih-dark: #393939;
	--ih-bg: #eeeeee;
	--ih-card: #ffffff;
	--ih-text: #4d4d4d;
	--ih-heading: #222222;
	--ih-muted: #888888;
	--ih-line: #e3e3e3;
	--ih-soft: #f5f6f8;
	--ih-foot-1: #444444;
	--ih-foot-2: #333333;
	--ih-foot-3: #242424;
	--ih-font: "Num_Light", Tahoma, sans-serif;
	--ih-font-bold: "Num_Medium", Tahoma, sans-serif;
	--ih-entry-size: 16px;
}
[data-theme="dark"] {
	--ih-bg: #161718;
	--ih-card: #232425;
	--ih-text: #cfcfcf;
	--ih-heading: #f1f1f1;
	--ih-muted: #9a9a9a;
	--ih-line: #333536;
	--ih-soft: #2b2c2e;
	--ih-dark: #1d1e1f;
	color-scheme: dark;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--ih-bg);
	color: var(--ih-text);
	font: 15px/1.9 var(--ih-font);
	direction: rtl;
	text-align: right;
	overflow-x: hidden;
}
img, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--ih-primary); }
h1, h2, h3, h4, h5, h6 { font-family: var(--ih-font-bold); font-weight: 400; color: var(--ih-heading); margin: 0 0 .5em; line-height: 1.7; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--ih-primary); outline-offset: 2px; }
.clearfix::after { content: ""; display: table; clear: both; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); white-space: nowrap;
}
.skip-link:focus {
	clip: auto; clip-path: none; width: auto; height: auto; z-index: 1000;
	top: 8px; right: 8px; padding: 8px 16px; background: #fff; color: #000;
}
[hidden] { display: none !important; }
.fa { display: inline-block; font: normal normal normal 14px/1 FontAwesome; font-size: inherit; text-rendering: auto; -webkit-font-smoothing: antialiased; }
.fa-search::before { content: "\f002"; } .fa-heart-o::before { content: "\f08a"; } .fa-heart::before { content: "\f004"; }
.fa-user::before { content: "\f007"; } .fa-film::before { content: "\f008"; } .fa-clock-o::before { content: "\f017"; }
.fa-download::before { content: "\f019"; } .fa-play-circle::before { content: "\f144"; } .fa-print::before { content: "\f02f"; }
.fa-camera::before { content: "\f030"; } .fa-play::before { content: "\f04b"; } .fa-chevron-left::before { content: "\f053"; }
.fa-chevron-right::before { content: "\f054"; } .fa-arrow-up::before { content: "\f062"; } .fa-calendar::before { content: "\f073"; }
.fa-twitter::before { content: "\f099"; } .fa-facebook::before { content: "\f09a"; } .fa-rss::before { content: "\f09e"; }
.fa-bars::before { content: "\f0c9"; } .fa-envelope-o::before { content: "\f003"; } .fa-linkedin::before { content: "\f0e1"; }
.fa-comment::before { content: "\f075"; } .fa-comments::before { content: "\f086"; } .fa-link::before { content: "\f0c1"; }
.fa-angle-left::before { content: "\f104"; } .fa-angle-right::before { content: "\f105"; } .fa-angle-down::before { content: "\f107"; }
.fa-circle::before { content: "\f111"; } .fa-microphone::before { content: "\f130"; } .fa-file-text-o::before { content: "\f0f6"; }
.fa-map-marker::before { content: "\f041"; } .fa-long-arrow-left::before { content: "\f177"; } .fa-instagram::before { content: "\f16d"; }
.fa-whatsapp::before { content: "\f232"; } .fa-paper-plane::before { content: "\f1d8"; } .fa-moon-o::before { content: "\f186"; }
.fa-sun-o::before { content: "\f185"; } .fa-times::before { content: "\f00d"; }

.container { width: 100%; max-width: 1170px; margin: 0 auto; padding: 0 15px; }
@media (min-width: 1200px) { .container { padding: 0; } }

/* ==========================================================================
   Header
   ========================================================================== */
.big_header { background: var(--ih-primary); color: #fff; position: relative; z-index: 50; }
.h-top { display: flex; align-items: center; justify-content: space-between; min-height: 75px; gap: 20px; }
.ap_logo { margin: 0; font-size: inherit; line-height: 1; }
.ap_logo img { max-height: 65px; width: auto; }
.ap_logo .text-logo { color: #fff; font: 22px/1.4 var(--ih-font-bold); display: block; }
.ap_logo .text-logo small { display: block; font-size: 12px; opacity: .85; font-family: var(--ih-font); }
.h-left { display: flex; align-self: flex-start; margin-top: 10px; font: 12px/30px var(--ih-font-bold); }
.h-left .rig { order: -1; background: rgba(0, 0, 0, .6); color: #eee; padding: 0 10px; min-width: 70px; text-align: center; direction: ltr; }
.h-left .brea { background: rgba(0, 0, 0, .35); padding: 0 14px; }

.h-bot { display: flex; align-items: stretch; background: var(--ih-dark); min-height: 42px; }
.primary-nav { flex: 1; min-width: 0; }
.primary-nav .menu { display: flex; flex-wrap: wrap; }
.primary-nav li { position: relative; }
.primary-nav .menu > li > a {
	display: block; padding: 0 11px; line-height: 42px; color: #eee;
	font: 15px/42px var(--ih-font-bold); white-space: nowrap;
}
.primary-nav .menu > li:hover > a, .primary-nav .menu > li.current-menu-item > a,
.primary-nav .menu > li.current-menu-ancestor > a { background: var(--ih-primary); color: #fff; }
.primary-nav .menu-item-has-children > a::after { content: "\f107"; font-family: FontAwesome; margin-right: 6px; font-size: 12px; }
.primary-nav .sub-menu {
	position: absolute; top: 100%; right: 0; min-width: 230px; background: var(--ih-card);
	box-shadow: 0 8px 24px rgba(0, 0, 0, .15); border-top: 3px solid var(--ih-primary);
	opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s; z-index: 60;
}
.primary-nav .sub-menu .sub-menu { top: 0; right: 100%; }
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-nav .sub-menu a { display: block; padding: 8px 14px; color: var(--ih-text); font-size: 14px; line-height: 1.8; border-bottom: 1px solid var(--ih-line); }
.primary-nav .sub-menu a:hover { background: var(--ih-soft); color: var(--ih-primary); }

.left_menu { display: flex; align-items: center; gap: 8px; padding: 0 10px; flex-shrink: 0; }
.ap-am { display: flex; gap: 6px; font: 11px/1 var(--ih-font-bold); color: #ddd; }
.ap-am b { font-weight: 400; background: rgba(255, 255, 255, .08); padding: 6px 8px; border-radius: 3px; white-space: nowrap; }
.ap-am span { background: var(--ih-primary); color: #fff; padding: 2px 6px; border-radius: 10px; margin-right: 3px; }
.icon-btn {
	width: 30px; height: 30px; border-radius: 50%; border: 0; background: #555; color: #fff;
	display: inline-flex; align-items: center; justify-content: center; font-size: 14px; padding: 0;
}
.icon-btn:hover { background: var(--ih-primary); }
.menu-toggle { display: none; }
[data-theme="dark"] .theme-toggle .fa-moon-o::before { content: "\f185"; }

/* Ticker */
.marquee { background: var(--ih-card); color: var(--ih-text); height: 36px; overflow: hidden; border-bottom: 1px solid var(--ih-line); }
.marquee .container { display: flex; height: 100%; }
.marquee .t { position: relative; flex-shrink: 0; }
.marquee .t h2 {
	margin: 0; height: 36px; padding: 0 22px; background: var(--ih-primary); color: #fff;
	font: 15px/36px var(--ih-font-bold); white-space: nowrap;
}
.marquee .t::after {
	content: ""; position: absolute; top: 0; left: -12px; border-style: solid;
	border-width: 18px 0 18px 12px; border-color: transparent transparent transparent var(--ih-primary);
}
.mframe { flex: 1; overflow: hidden; position: relative; margin-right: 18px; mask-image: linear-gradient(to left, transparent, #000 4%, #000 96%, transparent); }
.marquee-track { display: flex; width: max-content; height: 36px; align-items: center; animation: ih-marquee var(--ih-marquee-duration, 60s) linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-track li { display: flex; align-items: center; gap: 8px; padding-left: 26px; white-space: nowrap; font-size: 14px; }
.marquee-track li img { width: auto; height: 20px; }
.marquee-track li .fa { font-size: 6px; color: var(--ih-primary); }
@keyframes ih-marquee { from { transform: translateX(0); } to { transform: translateX(50%); } }

/* Floating social tabs */
.sidenav { position: fixed; left: 0; top: 165px; z-index: 40; display: flex; flex-direction: column; gap: 1px; }
.sidenav a {
	display: flex; align-items: center; gap: 10px; height: 35px; width: 36px; overflow: hidden; direction: ltr;
	background: var(--ih-primary); color: #fff; border-radius: 0 3px 3px 0; padding: 0 11px;
	font: 11px var(--ih-font-bold); transition: width .25s;
}
.sidenav a .fa { font-size: 15px; flex-shrink: 0; }
.sidenav a span { white-space: nowrap; }
.sidenav a:hover, .sidenav a:focus { width: 120px; color: #fff; }
.sidenav .sn-telegram { background: #229ed9; } .sidenav .sn-instagram { background: #c13584; }
.sidenav .sn-namasha { background: #e3443b; } .sidenav .sn-aparat { background: #df0f50; }

/* Search overlay & drawer */
.search-overlay {
	position: fixed; inset: 0; z-index: 200; background: rgba(10, 20, 40, .92);
	display: flex; align-items: center; justify-content: center; padding: 20px;
}
.search-overlay .searchform { width: 100%; max-width: 640px; }
.search-overlay input[type="search"] { font-size: 20px; height: 60px; }
.close-search, .close-drawer { position: absolute; top: 16px; left: 20px; background: none; border: 0; color: #fff; font-size: 40px; line-height: 1; }
.searchform { display: flex; background: #fff; border-radius: 4px; overflow: hidden; border: 1px solid var(--ih-line); }
.searchform input[type="search"] { flex: 1; border: 0; padding: 0 14px; height: 42px; min-width: 0; background: transparent; color: #333; outline: 0; }
.searchform button { border: 0; background: var(--ih-primary); color: #fff; width: 50px; font-size: 16px; }
.drawer { position: fixed; inset: 0; z-index: 210; background: rgba(0, 0, 0, .55); }
.drawer-panel {
	position: absolute; top: 0; right: 0; bottom: 0; width: min(320px, 86vw); background: var(--ih-card);
	overflow-y: auto; padding: 60px 16px 24px; animation: ih-slide-in .25s ease;
}
.drawer .close-drawer { color: var(--ih-text); right: auto; left: 12px; }
.drawer .searchform { margin-bottom: 16px; }
.drawer-menu a { display: block; padding: 9px 4px; border-bottom: 1px solid var(--ih-line); font-family: var(--ih-font-bold); }
.drawer-menu .sub-menu { padding-right: 14px; }
.drawer-menu .sub-menu a { font-family: var(--ih-font); font-size: 14px; }
@keyframes ih-slide-in { from { transform: translateX(100%); } to { transform: none; } }

/* ==========================================================================
   Layout
   ========================================================================== */
.site-main { padding-top: 20px; }
.inn { padding-bottom: 0; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 20px; align-items: start; }
.ap_news { min-width: 0; }
.co-aside .sticky { position: sticky; top: 15px; }
.boxx { margin-bottom: 20px; }

/* Section title (blue label with corner mark) */
.tit { border-bottom: 2px solid var(--ih-primary); margin-bottom: 12px; display: flex; }
.tit-label { position: relative; margin: 0; background: var(--ih-primary); color: #fff; font: 15px/33px var(--ih-font-bold); padding: 0 16px; }
.tit-label::before { content: ""; position: absolute; top: -5px; left: -5px; width: 9px; height: 9px; border-top: 2px solid var(--ih-primary); border-left: 2px solid var(--ih-primary); }
.tit-label a { color: #fff; }
.tit-label a:hover { color: #fff; opacity: .85; }
.dark-band .tit { border-color: rgba(255, 255, 255, .15); }

.thumbnail { display: block; position: relative; overflow: hidden; background: #ddd; }
[data-theme="dark"] .thumbnail { background: #333; }
.thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
a.thumbnail:hover img, .card:hover .thumbnail img, .item:hover .thumbnail img { transform: scale(1.04); }
.met .cat, .rutitr { display: block; font-size: 12px; color: var(--ih-muted); line-height: 1.8; }

/* ==========================================================================
   Carousels
   ========================================================================== */
.ih-carousel { position: relative; }
.ih-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; }
.ih-track::-webkit-scrollbar { display: none; }
.ih-track > .slide { flex: 0 0 100%; scroll-snap-align: start; min-width: 0; }
.ih-prev, .ih-next {
	position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 32px; height: 32px; border: 0;
	background: var(--ih-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; opacity: .92;
}
.ih-prev { right: 15px; } .ih-next { left: 15px; }
.ih-prev:hover, .ih-next:hover { opacity: 1; background: var(--ih-primary-dark); }
.ih-prev[disabled], .ih-next[disabled] { opacity: .35; cursor: default; }

/* Hero slider */
.ap_slider { margin-bottom: 20px; background: #222; }
.ap_slider .slide { position: relative; height: 390px; }
.ap_slider .thumbnail { height: 100%; }
.ap_slider .det { position: absolute; inset: auto 0 0 0; padding: 70px 70px 22px; background: linear-gradient(transparent, rgba(0, 0, 0, .85)); color: #fff; pointer-events: none; }
.ap_slider .det a { pointer-events: auto; }
.ap_slider .met .cat { color: #e6e6e6; font-size: 13px; }
.ap_slider h2 { font-size: 21px; margin: 0; line-height: 1.8; }
.ap_slider h2 a { color: #fff; }

/* Second slider: image + lead */
.slide-lead { background: var(--ih-card); }
.slide-lead .slide { display: grid; grid-template-columns: 280px minmax(0, 1fr); min-height: 245px; }
.slide-lead .thumbnail { height: 100%; min-height: 200px; }
.slide-lead .det { padding: 14px 18px 46px; }
.slide-lead h2 { font-size: 18px; margin: 4px 0 10px; }
.slide-lead p { font-size: 13.5px; color: var(--ih-muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.slide-lead .mini-nav { position: absolute; bottom: 12px; left: 14px; display: flex; gap: 4px; }
.slide-lead .mini-nav button { position: static; transform: none; width: 24px; height: 24px; background: var(--ih-soft); color: var(--ih-text); border: 1px solid var(--ih-line); }
.slide-lead .mini-nav button:hover { background: var(--ih-primary); color: #fff; }

/* 3-up cards carousel */
.cards .ih-track { gap: 15px; }
.cards .ih-track > .slide { flex-basis: calc((100% - 30px) / 3); }
.card { background: var(--ih-card); }
.card .thumbnail { aspect-ratio: 14 / 9; }
.card h3, .card h2 { font-size: 15px; line-height: 1.9; margin: 0; padding: 10px 12px 12px; }
.cards .ih-prev, .cards .ih-next { top: 30%; }
.cards .ih-prev { right: -6px; } .cards .ih-next { left: -6px; }

/* Latest list */
.ne_three .item, .ne_map .item {
	position: relative; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 0;
	background: var(--ih-card); margin-bottom: 15px; min-height: 150px;
}
.ne_three .item .thumbnail, .ne_map .item .thumbnail { height: 100%; min-height: 140px; }
.ne_three .det, .ne_map .det { padding: 12px 18px; }
.ne_three h3, .ne_three h2.entry-title { font-size: 17px; margin: 0 0 6px; }
.ne_three p, .ne_map p { font-size: 13px; color: var(--ih-muted); margin: 0; line-height: 2; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.datee {
	position: absolute; top: 8px; right: 8px; z-index: 2; width: 38px; text-align: center;
	background: #fff; border: 2px solid var(--ih-primary); color: var(--ih-primary); line-height: 1.2; padding: 3px 0 2px;
}
.datee span { display: block; font: 17px/1.1 var(--ih-font-bold); }
.datee b { display: block; font-weight: 400; font-size: 10px; color: #666; }
.more-link { display: inline-flex; gap: 8px; align-items: center; background: var(--ih-primary); color: #fff; padding: 6px 16px; font-family: var(--ih-font-bold); font-size: 13px; }
.more-link:hover { color: #fff; background: var(--ih-primary-dark); }

/* 3 column grid */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.grid-3 .card .det { padding: 10px 12px 14px; }
.grid-3 .card h3, .grid-3 .card h2 { padding: 0; margin-bottom: 6px; }
.grid-3 .card p { font-size: 13px; color: var(--ih-muted); margin: 0; }
.grid-3 time { font-size: 12px; color: var(--ih-muted); }
.visual-grid .card .play, .v-big .play, .v-small .play {
	position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%;
	background: rgba(35, 97, 221, .9); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; padding-left: 3px;
}

/* ==========================================================================
   Sidebar & widgets
   ========================================================================== */
.sidebar-box { margin-bottom: 20px; background: var(--ih-card); }
.sidebar-box > :not(.sidebar-header):not(img):not(a) { padding-left: 10px; padding-right: 10px; }
.sidebar-box > :last-child { padding-bottom: 12px; }
.sidebar-header { border-bottom: 2px solid var(--ih-primary); margin-bottom: 10px; display: flex; }
.sidebar-header h2 { position: relative; margin: 0; background: var(--ih-primary); color: #fff; font: 16px/34px "BTitr", var(--ih-font-bold); padding: 0 16px; }
.sidebar-box.all_ads, .widget_media_image, .widget_block:has(img) { background: none; padding: 0; }
.all_ads img, .widget_media_image img { width: 100%; height: auto; }
.all_ads > a, .all_ads > img { display: block; padding: 0 !important; }

.ih-list .item { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--ih-line); position: relative; }
.ih-list .item:last-child { border-bottom: 0; }
.ih-list .link { font: 14px/1.9 var(--ih-font-bold); flex: 1; }
.ih-list--notes .thumbnail { width: 62px; height: 62px; border-radius: 50%; flex-shrink: 0; border: 2px solid var(--ih-line); }
.ih-list--timeline { border-right: 2px solid var(--ih-line); margin-right: 50px; }
.ih-list--timeline .item { padding-right: 14px; }
.ih-list--timeline .item::before { content: ""; position: absolute; right: -7px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--ih-card); border: 2px solid var(--ih-primary); }
.ih-list--timeline time { position: absolute; right: -54px; font-size: 12px; color: var(--ih-primary); font-family: var(--ih-font-bold); }
.ih-list--numbered { counter-reset: ih; }
.ih-list--numbered .item { counter-increment: ih; }
.ih-list--numbered .item::before { content: counter(ih, persian); width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; background: var(--ih-soft); color: var(--ih-primary); display: flex; align-items: center; justify-content: center; font: 13px var(--ih-font-bold); }
.ih-tabs { display: flex; border-bottom: 2px solid var(--ih-primary); padding: 0 !important; }
.ih-tabs button { flex: 1; border: 0; background: var(--ih-soft); padding: 8px; font-family: var(--ih-font-bold); font-size: 14px; }
.ih-tabs button[aria-selected="true"] { background: var(--ih-primary); color: #fff; }
.widget_links ul li, .widget_nav_menu li, .widget_categories li, .widget_recent_entries li, .widget_archive li { padding: 7px 0; border-bottom: 1px dashed var(--ih-line); font-size: 14px; }
.widget_links ul li::before, .widget_nav_menu li::before, .widget_categories li::before { content: "\f104"; font-family: FontAwesome; color: var(--ih-primary); margin-left: 8px; }
.widget_text .textwidget img { margin: 0 auto; }

/* ==========================================================================
   Iran map
   ========================================================================== */
.map-section .boxx { background: var(--ih-card); padding: 0 0 15px; }
.map-section .tit { margin-bottom: 15px; }
.iran-map { display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 20px; padding: 0 15px; position: relative; }
.iran-map .map { order: 2; position: relative; min-height: 300px; }
.iran-map .city-posts, .iran-map .province-list { order: 1; }
.iran-map svg { width: 100%; height: auto; }
.iran-map .border path, .iran-map .island path { fill: #e8e8e8; stroke: #fff; }
.iran-map .sea path, .iran-map .lake path { fill: #dbe8ff; stroke: none; }
.iran-map .province path { fill: #d9d9d9; stroke: #fff; stroke-width: 1.2; transition: fill .2s; }
.iran-map .province path.has-cat { fill: #6f97ea; cursor: pointer; }
.iran-map .province path.has-cat:hover, .iran-map .province path.has-cat:focus { fill: var(--ih-primary); outline: none; }
.iran-map .province path.active { fill: #12357c !important; }
[data-theme="dark"] .iran-map .province path { fill: #3a3c3e; stroke: #232425; }
[data-theme="dark"] .iran-map .border path { fill: #2c2d2f; stroke: #232425; }
[data-theme="dark"] .iran-map .sea path { fill: #1d2a40; }
.show-title { position: absolute; top: 6px; left: 6px; background: var(--ih-dark); color: #fff; font-size: 12px; padding: 2px 10px; border-radius: 3px; opacity: 0; transition: opacity .2s; pointer-events: none; }
.show-title.on { opacity: 1; }
.city-posts .title { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--ih-line); margin-bottom: 12px; padding-bottom: 6px; }
.city-posts .title h3 { margin: 0; font-size: 16px; }
.city-posts .title h3 .fa { color: var(--ih-primary); }
.mapbtn { border: 0; background: var(--ih-dark); color: #fff; font-size: 12px; padding: 4px 12px; border-radius: 3px; }
.city-posts.loading .posts { opacity: .35; pointer-events: none; }
.ne_map .item { grid-template-columns: 170px minmax(0, 1fr); min-height: 0; margin-bottom: 12px; border-bottom: 1px solid var(--ih-line); padding-bottom: 12px; }
.ne_map .item .thumbnail { min-height: 110px; }
.ne_map .det { padding: 0 14px 0 0; }
.ne_map h4 { font-size: 15px; margin: 0 0 4px; }
.ne_map p { -webkit-line-clamp: 3; font-size: 12.5px; }
.m-more { text-align: left; }
.m-more a { font-family: var(--ih-font-bold); color: var(--ih-primary); font-size: 13px; }
.province-list ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.province-list a, .province-list span { display: block; padding: 6px 10px; background: var(--ih-soft); font-size: 14px; border-radius: 3px; }
.province-list span { color: var(--ih-muted); }
.province-list a:hover { background: var(--ih-primary); color: #fff; }

/* ==========================================================================
   Photo & video bands
   ========================================================================== */
.dark-band { background: var(--ih-dark); padding: 25px 0 30px; margin-top: 10px; }
[data-theme="dark"] .dark-band { background: #101112; }
.main_camera + .main_videos { margin-top: 0; padding-top: 5px; }
.photo-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.ph { position: relative; overflow: hidden; }
.ph-big { grid-column: span 3; height: 340px; }
.ph-small { grid-column: span 2; height: 170px; }
.ph a { display: block; height: 100%; color: #fff; }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ph:hover img { transform: scale(1.05); }
.ph .det, .v-big .det {
	position: absolute; inset: auto 0 0 0; padding: 50px 16px 14px; background: linear-gradient(transparent, rgba(0, 0, 0, .85));
	display: flex; flex-direction: column; gap: 4px;
}
.ph .ttl { font: 18px/1.8 var(--ih-font-bold); }
.ph-small .ttl { font-size: 14px; }
.ago { font-size: 12px; color: #ddd; display: inline-flex; gap: 5px; align-items: center; }
.ph .ago { background: var(--ih-primary); align-self: flex-start; padding: 0 8px; line-height: 22px; }

.postlist { display: grid; grid-template-columns: minmax(0, 1fr) 390px; grid-template-rows: repeat(4, auto); gap: 18px 20px; }
.postlist .v-big { grid-row: 1 / span 4; position: relative; }
.v-big a, .v-small a { color: #fff; display: block; }
.v-big a { height: 100%; }
.v-big .thumbnail { height: 100%; min-height: 420px; }
.v-big .thumbnail img { position: absolute; inset: 0; }
.v-big .ttl { font: 20px/1.8 var(--ih-font-bold); }
.v-big .v-lead { font-size: 13px; color: #ddd; }
.v-big .play { width: 64px; height: 64px; font-size: 22px; }
.v-small a { display: grid; grid-template-columns: 156px minmax(0, 1fr); gap: 12px; align-items: start; }
.v-small .thumbnail { height: 101px; }
.v-small .play { width: 34px; height: 34px; font-size: 12px; }
.v-small .det { display: flex; flex-direction: column; gap: 6px; }
.v-small .ttl { font: 14px/1.9 var(--ih-font-bold); }
.v-small a:hover .ttl { color: #9dbbff; }

/* ==========================================================================
   Single
   ========================================================================== */
.content { background: var(--ih-card); padding: 15px 15px 5px; margin-bottom: 20px; }
.heding-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.crumbs { font-size: 13px; color: var(--ih-muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px; }
.crumbs li:not(:last-child)::after { content: "\f104"; font-family: FontAwesome; margin-right: 6px; font-size: 11px; }
.crumbs a { background: var(--ih-soft); padding: 1px 8px; border-radius: 2px; }
.sl-button { border: 1px solid var(--ih-line); background: var(--ih-soft); padding: 2px 12px; border-radius: 20px; display: inline-flex; gap: 6px; align-items: center; color: #e0245e; flex-shrink: 0; }
.sl-button.liked .fa::before { content: "\f004"; }
.rotitr { color: var(--ih-primary); font: 14px/1.8 var(--ih-font-bold); margin: 6px 0 0; }
.content h1.entry-title { font-size: 24px; line-height: 1.75; margin: 2px 0 12px; }
.news-detile { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; background: var(--ih-soft); padding: 8px 12px; font-size: 13px; color: var(--ih-muted); margin-bottom: 14px; }
.news-detile .fa { color: var(--ih-primary); margin-left: 4px; }
.news-save { margin-right: auto; display: flex; gap: 4px; align-items: center; }
.tool { width: 30px; height: 28px; border: 1px solid var(--ih-line); background: var(--ih-card); display: inline-flex; align-items: center; justify-content: center; border-radius: 3px; font-size: 14px; }
.tool:hover { background: var(--ih-primary); color: #fff; }
.fontsize { display: inline-flex; gap: 4px; }
.content > .heding .thumbnail, .content > .thumbnail { margin: 0 0 14px; background: none; }
.content figure.thumbnail img { width: 100%; height: auto; }
figcaption { font-size: 12px; color: var(--ih-muted); padding: 6px 0; text-align: center; }
.lead { background: var(--ih-soft); border-right: 4px solid var(--ih-primary); padding: 12px 16px; font: 15px/2.1 var(--ih-font-bold); color: var(--ih-heading); margin: 0 0 16px; }
.entry { font-size: var(--ih-entry-size); line-height: 2.15; color: var(--ih-text); text-align: justify; overflow-wrap: anywhere; }
.entry h2 { font-size: 19px; margin-top: 1.4em; } .entry h3 { font-size: 17px; margin-top: 1.2em; }
.entry a { color: var(--ih-primary); text-decoration: underline; text-underline-offset: 4px; }
.entry img { margin: 12px auto; height: auto; }
.entry ul, .entry ol { padding-right: 24px; margin-bottom: 1em; }
.entry ul { list-style: disc; } .entry ol { list-style: decimal; }
.entry blockquote { margin: 1em 0; padding: 12px 18px; background: var(--ih-soft); border-right: 4px solid var(--ih-primary); }
.entry table { width: 100%; border-collapse: collapse; margin-bottom: 1em; font-size: 14px; }
.entry th, .entry td { border: 1px solid var(--ih-line); padding: 6px 10px; }
.entry iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; }
.entry .wp-caption, .entry figure { max-width: 100%; margin: 1em auto; }
.alignleft { float: left; margin: 0 20px 10px 0; } .alignright { float: right; margin: 0 0 10px 20px; } .aligncenter { margin-left: auto; margin-right: auto; }
.gallery, .wp-block-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin: 1em 0; }
.gallery .gallery-item { margin: 0; } .gallery img { width: 100%; height: 160px; object-fit: cover; margin: 0; }
.gallery br { display: none; }
.page-links { margin: 1em 0; display: flex; gap: 6px; }
.entry-footer { border-top: 1px solid var(--ih-line); margin-top: 18px; padding: 12px 0; }
.source { font-size: 13px; color: var(--ih-muted); }
.post-link { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; }
.short { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.short input { border: 1px solid var(--ih-line); background: var(--ih-soft); padding: 3px 8px; width: 210px; font-size: 12px; }
.short button { border: 0; background: var(--ih-primary); color: #fff; padding: 4px 10px; font-size: 12px; }
.social { display: flex; gap: 5px; }
.social a { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; background: #555; font-size: 15px; }
.share .telegram { background: #229ed9; } .share .whatsapp { background: #25d366; } .share .twitter { background: #111; }
.share .linkedin { background: #0a66c2; } .share .facebook { background: #1877f2; }
.social a:hover { color: #fff; opacity: .85; }
.tags-box .aa, .related-box .aa { background: var(--ih-card); padding: 12px; }
.post-tag { display: flex; flex-wrap: wrap; gap: 6px; }
.post-tag a { background: var(--ih-soft); border: 1px solid var(--ih-line); padding: 2px 12px; font-size: 13px; border-radius: 3px; }
.post-tag a::before { content: "#"; color: var(--ih-primary); margin-left: 3px; }
.related li { padding: 6px 0; border-bottom: 1px dashed var(--ih-line); font: 15px/1.9 var(--ih-font-bold); }
.related li::before { content: "\f104"; font-family: FontAwesome; color: var(--ih-primary); margin-left: 8px; }
.related li:last-child { border: 0; }
.video-player { margin-bottom: 14px; background: #000; }
.video-player video, .video-player iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
.downloads { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 14px; font-size: 13px; }
.downloads a { background: var(--ih-primary); color: #fff; padding: 2px 12px; border-radius: 3px; direction: ltr; }

/* Comments */
.comments-box { background: var(--ih-card); padding: 0 0 15px; }
.comments-box > :not(.tit) { margin-left: 15px; margin-right: 15px; }
.comment-list .comment { border-bottom: 1px solid var(--ih-line); padding: 12px 0; }
.comment-list .children { padding-right: 30px; }
.comment-author img { float: right; border-radius: 50%; margin-left: 10px; }
.comment-meta { font-size: 12px; color: var(--ih-muted); }
.comment-content { clear: both; padding-top: 6px; font-size: 14px; }
.comment-form label { display: block; font-size: 13px; margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; border: 1px solid var(--ih-line); background: var(--ih-soft); padding: 8px 10px;
}
.comment-form .form-submit input { border: 0; background: var(--ih-primary); color: #fff; padding: 8px 26px; cursor: pointer; font-family: var(--ih-font-bold); }
.comment-form p { margin-bottom: 10px; }

/* Archive */
.archive-header { background: var(--ih-card); padding: 14px 16px; margin-bottom: 15px; border-right: 4px solid var(--ih-primary); }
.archive-title { font-size: 22px; margin: 6px 0 0; }
.archive-title small { font-size: 14px; color: var(--ih-muted); }
.archive-desc { font-size: 14px; color: var(--ih-muted); margin-top: 6px; }
.pagination ul { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; margin: 10px 0 25px; }
.pagination a, .pagination span { display: block; min-width: 36px; padding: 4px 10px; text-align: center; background: var(--ih-card); border: 1px solid var(--ih-line); font-family: var(--ih-font-bold); }
.pagination .current { background: var(--ih-primary); color: #fff; border-color: var(--ih-primary); }
.pagination a:hover { background: var(--ih-primary); color: #fff; }
.empty-box, .not-found { background: var(--ih-card); padding: 30px; text-align: center; }
.not-found h1 { font-size: 80px; color: var(--ih-primary); margin: 0; }
.not-found .searchform { max-width: 480px; margin: 0 auto 20px; }
.content.full { max-width: 100%; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { margin-top: 0; color: #ddd; }
.foot-top { background: var(--ih-foot-1); }
.foot-bottom { background: var(--ih-foot-2); }
.footer-menu { display: flex; flex-wrap: wrap; justify-content: center; }
.footer-menu a { display: block; padding: 0 16px; line-height: 50px; color: #ddd; font-size: 14px; position: relative; }
.footer-menu li + li a::before { content: ""; position: absolute; right: 0; top: 20px; height: 12px; width: 1px; background: rgba(255, 255, 255, .25); }
.footer-menu a:hover { color: #fff; }
.fot { height: 10px; background: var(--ih-foot-3) repeating-linear-gradient(45deg, rgba(255, 255, 255, .03) 0 6px, transparent 6px 12px); }
.ap-footer { background: var(--ih-foot-3); padding: 20px 0; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-right { font-size: 13px; }
.footer-right p { margin: 0 0 4px; }
.footer-right a { color: #9dbbff; }
.ap-footer .social a { background: #3a3a3a; }
.ap-footer .social a:hover { background: var(--ih-primary); }
.to-top {
	position: fixed; bottom: 20px; left: 20px; z-index: 30; width: 40px; height: 40px; border-radius: 4px;
	background: var(--ih-primary); color: #fff; display: flex; align-items: center; justify-content: center;
	opacity: 0; visibility: hidden; transition: .25s;
}
.to-top.show { opacity: 1; visibility: visible; }
.to-top:hover { color: #fff; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1199px) {
	.layout { grid-template-columns: minmax(0, 1fr) 320px; }
	.primary-nav .menu > li > a { padding: 0 8px; font-size: 14px; }
	.ap-am { display: none; }
}
@media (max-width: 991px) {
	.layout { grid-template-columns: 1fr; }
	.co-aside .sticky { position: static; }
	.primary-nav { display: none; }
	.menu-toggle { display: inline-flex; }
	.h-bot { justify-content: space-between; }
	.ap-am { display: flex; }
	.left_menu { width: 100%; justify-content: flex-start; padding: 6px 10px; }
	.left_menu .ap-am { margin-left: auto; order: 5; }
	.iran-map { grid-template-columns: 1fr; }
	.iran-map .map { order: 0; max-width: 460px; margin: 0 auto; width: 100%; }
	.postlist { grid-template-columns: 1fr; }
	.postlist .v-big { grid-row: auto; }
	.sidenav { display: none; }
}
@media (max-width: 767px) {
	body { font-size: 14px; }
	.h-top { flex-direction: column; justify-content: center; padding: 10px 0; min-height: 0; gap: 8px; }
	.h-left { margin: 0; align-self: center; }
	.ap_slider .slide { height: 240px; }
	.ap_slider .det { padding: 40px 50px 14px; }
	.ap_slider h2 { font-size: 16px; }
	.slide-lead .slide { grid-template-columns: 1fr; }
	.slide-lead .thumbnail { aspect-ratio: 16 / 9; min-height: 0; height: auto; }
	.cards .ih-track > .slide { flex-basis: calc((100% - 15px) / 2); }
	.ne_three .item { grid-template-columns: 130px minmax(0, 1fr); min-height: 0; }
	.ne_three .item .thumbnail { min-height: 100px; }
	.ne_three .det { padding: 8px 12px; }
	.ne_three h3, .ne_three h2.entry-title { font-size: 14.5px; }
	.ne_three p { display: none; }
	.ne_three .met .cat { font-size: 11px; }
	.datee { width: 32px; top: 5px; right: 5px; }
	.datee span { font-size: 14px; }
	.grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.photo-grid { grid-template-columns: 1fr 1fr; }
	.ph-big { grid-column: span 2; height: 220px; }
	.ph-small { grid-column: span 1; height: 130px; }
	.ph-small:last-child { grid-column: span 2; }
	.v-big .thumbnail { min-height: 220px; }
	.v-big .ttl { font-size: 16px; }
	.v-small a { grid-template-columns: 120px minmax(0, 1fr); }
	.v-small .thumbnail { height: 80px; }
	.content h1.entry-title { font-size: 19px; }
	.news-save { margin-right: 0; }
	.province-list ul { grid-template-columns: repeat(2, 1fr); }
	.ne_map .item { grid-template-columns: 110px minmax(0, 1fr); }
	.ne_map .item .thumbnail { min-height: 80px; }
	.footer-top { flex-direction: column; text-align: center; }
	.footer-menu a { line-height: 40px; padding: 0 10px; }
	.marquee .t h2 { padding: 0 12px; font-size: 13px; }
}
@media (max-width: 479px) {
	.cards .ih-track > .slide { flex-basis: 78%; }
	.grid-3 { grid-template-columns: 1fr; }
	.ap-am { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.marquee-track { animation: none; overflow-x: auto; }
}

/* Lightbox */
.ih-lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(0, 0, 0, .92); display: flex; align-items: center; justify-content: center; }
.ih-lightbox img { max-width: 92vw; max-height: 88vh; width: auto; height: auto; }
.ih-lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 34px; padding: 10px 16px; }
.ih-lightbox .lb-close { top: 10px; left: 10px; }
.ih-lightbox .lb-prev { right: 10px; top: 50%; transform: translateY(-50%); }
.ih-lightbox .lb-next { left: 10px; top: 50%; transform: translateY(-50%); }

/* Designer credit */
.credit { margin: 0; font-size: 12px; color: #aaa; }
.credit a { color: #9dbbff; }
.credit a:hover { color: #fff; }
