/*!
 * فهرست مناقصه و مزایده بندرامام — ویجت المنتور
 * Javad Vahidi | 09121832452 | https://javadvahidi.ir
 * همهٔ انتخابگرها زیر .bipc-auctions محدود شده‌اند تا با قالب سایت تداخل نکنند.
 * مقادیر زیر فقط پیش‌فرض‌اند و از زبانهٔ «استایل» در المنتور قابل تغییرند.
 */

@font-face {
	font-family: 'Vazirmatn BIPC';
	src: url('../fonts/Vazirmatn.woff2') format('woff2');
	font-weight: 100 900;
	font-display: swap;
}

/* ------------------------------ پایه ------------------------------ */

.bipc-auctions {
	--blue: #2e3191;
	--red: #ed1d24;
	--soft: #f5f5f9;
	--ba-border: #e3e3ec;

	direction: rtl;
	text-align: right;
	background: #fff;
	color: #303044;
	font-family: 'Abar Mid FaNum', 'Abar Mid', 'Abar', 'Vazirmatn BIPC', Tahoma, sans-serif;
	font-size: 15px;
	line-height: 1.95;
}

.bipc-auctions.ba-font-theme { font-family: inherit; }

.bipc-auctions *,
.bipc-auctions *::before,
.bipc-auctions *::after { box-sizing: border-box; }

.bipc-auctions [hidden] { display: none !important; }
.bipc-auctions a { text-decoration: none; color: inherit; }
.bipc-auctions button,
.bipc-auctions input { font: inherit; }
.bipc-auctions a,
.bipc-auctions button { touch-action: manipulation; }
.bipc-auctions a:focus-visible,
.bipc-auctions button:focus-visible,
.bipc-auctions input:focus-visible { outline: 3px solid #7386dd; outline-offset: 4px; }

.bipc-auctions .ba-container {
	max-width: 1200px;
	width: calc(100% - 64px);
	margin-inline: auto;
}

.bipc-auctions .ba-sr-only {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* ------------------------------ هدر ------------------------------ */

.bipc-auctions .ba-hero {
	--ba-hero-from: rgba(46, 49, 145, 0.94);
	--ba-hero-to: rgba(46, 49, 145, 0.42);
	--ba-hero-focal: 48%;

	background-color: var(--blue);
	background-image: linear-gradient(270deg, var(--ba-hero-from), var(--ba-hero-to));
	background-position: center var(--ba-hero-focal);
	background-size: cover;
	background-repeat: no-repeat;
	color: #fff;
	padding: 44px 0 54px;
}

.bipc-auctions .ba-crumb { font-size: 12px; color: rgba(255, 255, 255, 0.86); }
.bipc-auctions .ba-crumb > * { display: inline-block; vertical-align: middle; margin-inline-end: 10px; }
.bipc-auctions .ba-crumb > *:last-child { margin-inline-end: 0; }

.bipc-auctions .ba-hero-title { font-size: 44px; line-height: 1.6; margin: 17px 0 5px; color: #fff; }
.bipc-auctions .ba-hero p { margin: 0; font-size: 15px; color: rgba(255, 255, 255, 0.86); }

.bipc-auctions .ba-body { padding: 36px 0 58px; }

/* --------------------------- باکس سامانه‌ها --------------------------- */

.bipc-auctions .ba-access {
	display: flex;
	align-items: center;
	gap: 25px;
	padding: 22px 26px;
	background: var(--soft);
	border-radius: 16px;
	border-inline-start: 3px solid var(--blue);
	margin-bottom: 34px;
}
.bipc-auctions .ba-access > div { margin-inline-end: auto; }
.bipc-auctions .ba-access strong { font-size: 20px; color: var(--blue); }
.bipc-auctions .ba-access p { margin: 4px 0 0; color: #696977; font-size: 13px; }

.bipc-auctions .ba-button {
	display: inline-flex;
	align-items: center;
	gap: 18px;
	padding: 11px 17px;
	background: var(--red);
	color: #fff !important;
	border-radius: 10px;
	white-space: nowrap;
	font-size: 13px;
	transition: background-color .2s;
}
.bipc-auctions .ba-button .ba-arrow {
	background: #fff;
	color: var(--red);
	width: 28px; height: 28px;
	border-radius: 6px;
	text-align: center;
	font: 22px/28px Arial, sans-serif;
	flex: 0 0 auto;
}
.bipc-auctions .ba-secondary { font-size: 13px; color: var(--blue) !important; white-space: nowrap; }

/* --------------------------- فیلتر و جست‌وجو --------------------------- */

.bipc-auctions .ba-tools {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 26px;
	margin-bottom: 28px;
}
.bipc-auctions .ba-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.bipc-auctions .ba-filters button {
	background: #fff;
	color: var(--blue);
	border: 1px solid #dedee8;
	border-radius: 9px;
	padding: 10px 17px;
	cursor: pointer;
	white-space: nowrap;
	font-size: 13px;
	min-height: 46px;
	transition: background-color .2s, color .2s, border-color .2s;
}
/* تب فعال با رنگ تأکید (قرمز سازمانی)؛ از المنتور هم قابل تغییر است. */
.bipc-auctions .ba-filters button[aria-pressed="true"],
.bipc-auctions .ba-filters button[aria-pressed="true"]:hover,
.bipc-auctions .ba-filters button[aria-pressed="true"]:focus {
	background: var(--red) !important;
	border-color: var(--red) !important;
	color: #fff !important;
}

.bipc-auctions .ba-search { width: 48%; min-width: 0; max-width: 100%; margin: 0; flex: 0 1 auto; }
.bipc-auctions .ba-search label { display: block; font-size: 12px; color: #696977; margin-bottom: 6px; }
.bipc-auctions .ba-search-box { display: flex; width: 100%; min-width: 0; align-items: stretch; border: 1px solid #dedee8; border-radius: 10px; padding: 5px; background: #fff; }
.bipc-auctions .ba-search input { border: 0; min-width: 0; width: 100%; max-width: 100%; flex: 1 1 0%; margin: 0; height: auto; padding: 7px 10px; background: transparent; font-size: 13px; color: inherit; }
.bipc-auctions .ba-search button { flex: 0 0 auto; margin: 0; border: 0; border-radius: 7px; background: var(--blue); color: #fff; padding: 7px 17px; cursor: pointer; font-size: 12px; white-space: nowrap; }

/* ------------------------------ نتایج ------------------------------ */

.bipc-auctions .ba-results { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 20px 0; }
.bipc-auctions .ba-results-title { font-size: 22px; color: var(--blue); margin: 0; }
.bipc-auctions .ba-count { font-size: 12px; color: #747484; white-space: nowrap; }

/* ------------------------------ کارت‌ها ------------------------------ */

.bipc-auctions .ba-grid {
	--ba-cols: 2;
	--ba-gap: 20px;

	display: grid;
	grid-template-columns: repeat(var(--ba-cols), minmax(0, 1fr));
	gap: var(--ba-gap);
}

.bipc-auctions .ba-card {
	--ba-thumb: 126px;

	display: flex;
	gap: 21px;
	align-items: stretch;
	padding: 20px;
	background: #fff;
	border: 1px solid var(--ba-border);
	border-radius: 15px;
	transition: border-color .2s, box-shadow .2s;
}
.bipc-auctions .ba-card:hover { border-color: #b1b4d5; box-shadow: 0 8px 24px rgba(46, 49, 145, .06); }

.bipc-auctions .ba-thumb {
	flex: 0 0 var(--ba-thumb);
	width: var(--ba-thumb);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 7px;
	align-self: start;
}
.bipc-auctions .ba-thumb img { display: block; width: 100%; height: auto; border-radius: 9px; transition: transform .2s; }
.bipc-auctions a.ba-thumb:hover img { transform: translateY(-3px); }
.bipc-auctions .ba-thumb > span { font-size: 10px; color: #7b7d91; text-align: center; }

.bipc-auctions .ba-card-content { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.bipc-auctions .ba-card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.bipc-auctions .ba-tag { background: #f1f2fb; border-radius: 6px; color: var(--blue); font-size: 11px; padding: 2px 10px; }

.bipc-auctions .ba-card-title { font-size: 17px; line-height: 1.9; color: var(--blue); margin: 0 0 12px; min-height: 65px; }
.bipc-auctions .ba-number { font-size: 12px; color: #656575; margin: 0 0 5px; }
.bipc-auctions .ba-number bdi { font-weight: 700; color: #494967; }
.bipc-auctions .ba-desc { font-size: 11px; color: #858592; margin: 0 0 18px; line-height: 1.9; }

.bipc-auctions .ba-card-link {
	border-top: 1px solid #ececf2;
	padding-top: 13px;
	margin-top: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	color: var(--blue) !important;
	font-size: 12px;
	transition: color .2s;
}
.bipc-auctions .ba-card-link .ba-arrow { color: var(--red); font: 24px/1 Arial, sans-serif; }

/* --------------------------- بارگذاری با اسکرول --------------------------- */

.bipc-auctions .ba-feed { margin-top: 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.bipc-auctions .ba-feed-status { margin: 0; font-size: 12.5px; color: #777783; text-align: center; }
.bipc-auctions .ba-feed-status.ba-feed-error { color: var(--red); }
.bipc-auctions .ba-feed-more {
	border: 1px solid #dedee8;
	background: #fff;
	border-radius: 9px;
	color: var(--blue);
	padding: 11px 22px;
	font-size: 12.5px;
	cursor: pointer;
	transition: border-color .2s, background-color .2s;
}
.bipc-auctions .ba-feed-more:hover { border-color: #b1b4d5; background: var(--soft); }
.bipc-auctions .ba-sentinel { width: 100%; height: 1px; }
.bipc-auctions .ba-card-new { animation: abk-fade-in .38s ease both; }
@keyframes abk-fade-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.bipc-auctions .ba-skeleton { --ba-sk: #eef0f6; border-color: #e9e9f1; pointer-events: none; }
.bipc-auctions .ba-sk-thumb { display: block; flex: 0 0 var(--ba-thumb); width: var(--ba-thumb); aspect-ratio: 280 / 360; border-radius: 9px; background: var(--ba-sk); }
.bipc-auctions .ba-sk-lines { flex: 1 1 auto; display: flex; flex-direction: column; gap: 11px; padding-top: 4px; }
.bipc-auctions .ba-sk-line { display: block; height: 12px; border-radius: 6px; background: var(--ba-sk); }
.bipc-auctions .ba-sk-tag { width: 62px; height: 16px; }
.bipc-auctions .ba-sk-title { height: 17px; width: 92%; }
.bipc-auctions .ba-sk-short { width: 58%; }
.bipc-auctions .ba-sk-foot { margin-top: auto; width: 72%; }
.bipc-auctions .ba-skeleton .ba-sk-thumb,
.bipc-auctions .ba-skeleton .ba-sk-line {
	background-image: linear-gradient(90deg, rgba(255,255,255,0) 25%, rgba(255,255,255,.65) 37%, rgba(255,255,255,0) 63%);
	background-size: 400% 100%;
	animation: abk-shimmer 1.3s ease-in-out infinite;
}
@keyframes abk-shimmer { from { background-position: 100% 50%; } to { background-position: 0 50%; } }

/* --------------------------- بدون نتیجه و پانویس --------------------------- */

.bipc-auctions .ba-empty { text-align: center; padding: 45px 20px; background: var(--soft); border-radius: 14px; }
.bipc-auctions .ba-empty h3 { color: var(--blue); font-size: 19px; margin: 0 0 6px; }
.bipc-auctions .ba-empty p { font-size: 13px; color: #777; margin: 0 0 8px; }
.bipc-auctions .ba-empty button { color: var(--red); border: 0; background: none; cursor: pointer; }

.bipc-auctions .ba-bottom { margin-top: 27px; }
.bipc-auctions .ba-bottom p { font-size: 12px; color: #777783; margin: 0; }

/* ------------------------------ ریسپانسیو ------------------------------ */

/* Full-width search overrides old saved 48% Elementor desktop widths on small screens. */
@media (max-width: 1024px) {
	.bipc-auctions .ba-tools { flex-direction: column; align-items: stretch; min-width: 0; gap: 16px; }
	.bipc-auctions .ba-search { width: 100% !important; max-width: 100%; min-width: 0; flex: 0 0 auto; align-self: stretch; }
	.bipc-auctions .ba-filters { min-width: 0; max-width: 100%; }
	.bipc-auctions .ba-search label { max-width: 100%; overflow-wrap: anywhere; line-height: 1.8; }
	.bipc-auctions .ba-search input { min-height: 48px; font-size: 16px; line-height: 1.5; appearance: none; -webkit-appearance: none; box-shadow: none; }
	.bipc-auctions .ba-search button { min-height: 48px; max-width: 45%; min-width: 72px; padding: 8px 14px; font-size: 14px; line-height: 1.6; white-space: normal; overflow-wrap: anywhere; }
}

@media (max-width: 360px) {
	.bipc-auctions .ba-search-box { flex-direction: column; gap: 6px; }
	.bipc-auctions .ba-search input { flex: 0 0 auto; width: 100%; }
	.bipc-auctions .ba-search button { width: 100%; max-width: 100%; }
}

@media (max-width: 1050px) {
	.bipc-auctions .ba-access { flex-wrap: wrap; gap: 16px; }
	.bipc-auctions .ba-access > div { flex-basis: 100%; }
	.bipc-auctions .ba-card { --ba-thumb: 95px; gap: 14px; padding: 16px; }
	.bipc-auctions .ba-card-title { font-size: 15px; }
	.bipc-auctions .ba-tools { gap: 16px; }
}

@media (max-width: 767px) {
	.bipc-auctions .ba-container { width: calc(100% - 32px); }
	.bipc-auctions .ba-grid { --ba-cols: 1; --ba-gap: 14px; }
	.bipc-auctions .ba-hero { padding: 28px 0 34px; }
	.bipc-auctions .ba-hero-title { font-size: 30px; }
	.bipc-auctions .ba-hero p { font-size: 13px; }
	.bipc-auctions .ba-body { padding-top: 22px; }
	.bipc-auctions .ba-access { padding: 20px; margin-bottom: 24px; }
	.bipc-auctions .ba-access strong { font-size: 18px; }
	.bipc-auctions .ba-tools { flex-direction: column; align-items: stretch; gap: 16px; }
	.bipc-auctions .ba-search { width: 100%; }
	.bipc-auctions .ba-filters button { flex: 1; }
	.bipc-auctions .ba-card { --ba-thumb: 108px; gap: 16px; }
	.bipc-auctions .ba-card-title { min-height: 0; font-size: 16px; }
	.bipc-auctions .ba-results { flex-wrap: wrap; gap: 6px; }
	.bipc-auctions .ba-results-title { font-size: 20px; }
	.bipc-auctions .ba-secondary { padding: 8px 0; }
}

@media (max-width: 380px) {
	.bipc-auctions .ba-card { --ba-thumb: 83px; gap: 11px; padding: 13px; }
	.bipc-auctions .ba-card-title { font-size: 15px; }
	.bipc-auctions .ba-thumb > span { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
	.bipc-auctions .ba-card,
	.bipc-auctions .ba-button,
	.bipc-auctions .ba-thumb img,
	.bipc-auctions .ba-filters button { transition: none; }
	.bipc-auctions .ba-card-new { animation: none; }
	.bipc-auctions .ba-skeleton .ba-sk-thumb,
	.bipc-auctions .ba-skeleton .ba-sk-line { animation: none; }
}
