/* AidaFit Elements — ویجت‌های محتوایی */
.aidafit-steps, .aidafit-testimonials, .aidafit-pricing, .aidafit-posts {
	--aw-bg: #0a0a0b;
	--aw-card: #121214;
	--aw-card-2: #1a1a1d;
	--aw-line: #2a2a2f;
	--aw-gold: #e8b64c;
	--aw-text: #ececef;
	--aw-muted: #8b8b93;
	--aw-green: #4ade80;
	--aw-red: #f87171;
	--aw-radius: 16px;
	font-family: 'IRANSans', var(--e-global-typography-text-font-family, inherit), Tahoma, sans-serif;
	box-sizing: border-box;
}
.aidafit-steps *, .aidafit-testimonials *, .aidafit-pricing *, .aidafit-posts *,
.aidafit-steps *::before, .aidafit-testimonials *::before, .aidafit-pricing *::before, .aidafit-posts *::before {
	box-sizing: border-box;
}

/* ================= مراحل کار ================= */
.aidafit-steps {
	display: flex; align-items: flex-start; justify-content: center; flex-wrap: wrap;
	gap: 14px; padding: 30px 20px; border-radius: var(--aw-radius);
	background: var(--aw-bg); border: 1px solid var(--aw-line);
}
.aps-item { flex: 1 1 140px; max-width: 190px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.aps-circle { position: relative; margin-bottom: 14px; }
.aps-icon {
	width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center;
	background: var(--aw-card); border: 1.5px solid var(--aw-line); color: var(--aw-gold); font-size: 28px;
}
.aps-icon svg { width: 1em; height: 1em; fill: currentColor; }
.aps-num {
	position: absolute; top: -8px; left: -6px; min-width: 26px; height: 26px; padding: 0 6px;
	border-radius: 50%; background: var(--aw-card-2); border: 1.5px solid var(--aw-gold);
	color: var(--aw-gold); font-size: .8rem; font-weight: 800; display: grid; place-items: center;
}
.aps-title { color: var(--aw-text); font-weight: 800; font-size: 1rem; margin-bottom: 6px; }
.aps-desc { color: var(--aw-muted); font-size: .82rem; line-height: 1.7; }
.aps-arrow { align-self: center; color: var(--aw-muted); font-size: 1.4rem; margin-top: 30px; opacity: .6; }
@media (max-width: 780px) {
	.aps-arrow { display: none; }
	.aidafit-steps { flex-direction: column; padding: 22px 16px; }
	.aps-item { max-width: 100%; }
}

/* ================= نظرات کاربران ================= */
.aidafit-testimonials {
	position: relative; max-width: 720px; margin: 0 auto; padding: 10px 50px;
}
.at-track { position: relative; overflow: hidden; }
.at-slide {
	display: none; background: var(--aw-card); border: 1px solid var(--aw-line);
	border-radius: var(--aw-radius); padding: 26px 28px; align-items: center; gap: 20px;
	/* توجه: flex-direction را عمداً روی row (پیش‌فرض) نگه می‌داریم — چون در
	   حالت dir="rtl"، خودِ row به‌درستی اولین آیتم (عکس) را سمت راست می‌گذارد؛
	   row-reverse این را برعکس می‌کند و باعث می‌شد عکس اشتباهی سمت چپ بیفتد. */
}
.at-slide.is-active { display: flex; }
.at-avatar {
	width: 64px; height: 64px; min-width: 64px; border-radius: 50% !important;
	object-fit: cover; object-position: center; display: block;
	border: 2px solid var(--aw-gold); flex-shrink: 0; overflow: hidden;
}
.at-body { flex: 1; min-width: 0; }
.at-quote { color: var(--aw-text); font-size: .95rem; line-height: 1.9; margin: 0 0 12px; }
.at-meta { color: var(--aw-muted); font-size: .82rem; font-weight: 700; }
.at-meta span { color: var(--aw-gold); }

.at-nav {
	position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px;
	border-radius: 50%; background: var(--aw-card-2); border: 1px solid var(--aw-line); color: var(--aw-text);
	display: grid; place-items: center; cursor: pointer; font-size: 1.1rem; z-index: 2;
}
.at-nav:hover { border-color: var(--aw-gold); color: var(--aw-gold); }
.at-prev { right: 0; }
.at-next { left: 0; }

.at-dots { display: flex; justify-content: center; gap: 7px; margin-top: 18px; }
.at-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--aw-line); cursor: pointer; transition: all .2s; border: 0; padding: 0; }
.at-dot.is-active { background: var(--aw-gold); width: 22px; border-radius: 4px; }

@media (max-width: 640px) {
	.aidafit-testimonials { padding: 10px 44px; }
	.at-slide { flex-direction: column; text-align: center; }
}

/* ================= جدول مقایسه پلن‌ها ================= */
.aidafit-pricing {
	background: var(--aw-bg); border: 1px solid var(--aw-line); border-radius: var(--aw-radius);
	padding: 26px; overflow-x: auto;
}
.ap-title { text-align: center; color: var(--aw-text); font-weight: 800; font-size: 1.15rem; margin: 0 0 6px; }
.ap-title-line { width: 60px; height: 3px; background: var(--aw-gold); margin: 0 auto 22px; border-radius: 2px; }
.ap-table { width: 100%; border-collapse: collapse; min-width: 520px; }
.ap-table th, .ap-table td { padding: 14px 12px; text-align: center; border-bottom: 1px solid var(--aw-line); font-size: .86rem; }
.ap-table thead th { color: var(--aw-text); font-weight: 800; font-size: .9rem; }
.ap-table thead th.ap-feature-col { text-align: right; }
.ap-table tbody td.ap-feature-cell { text-align: right; color: var(--aw-text); font-weight: 600; }
.ap-table tbody tr:nth-child(odd) { background: rgba(255,255,255,.015); }
.ap-yes { color: var(--aw-green); font-size: 1.05rem; }
.ap-no { color: var(--aw-muted); font-size: 1.05rem; }
.ap-text { color: var(--aw-muted); font-size: .8rem; }
.ap-table thead th.is-featured { color: var(--aw-gold); }

@media (max-width: 640px) {
	.aidafit-pricing { padding: 16px 10px; }
	.ap-title { font-size: 1rem; }
	.ap-table th, .ap-table td { padding: 10px 8px; font-size: .78rem; }
}

/* ================= پست‌ها با فیلتر دسته‌بندی ================= */
.aidafit-posts { }
.ap-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 26px; }
.ap-tab {
	background: var(--aw-card); border: 1px solid var(--aw-line); color: var(--aw-muted);
	border-radius: 30px; padding: 9px 20px; font-size: .84rem; cursor: pointer; transition: all .2s;
}
.ap-tab:hover { color: var(--aw-text); border-color: var(--aw-gold); }
.ap-tab.is-active { background: var(--aw-gold); color: #0a0a0b; border-color: var(--aw-gold); font-weight: 700; }

.ap-grid { display: grid; grid-template-columns: repeat(var(--ap-cols, 3), 1fr); gap: 22px; }
@media (max-width: 980px) { .ap-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
	.ap-grid { grid-template-columns: 1fr; gap: 16px; }
	.ap-tabs { gap: 6px; }
	.ap-tab { padding: 7px 14px; font-size: .78rem; }
}

.ap-card {
	background: var(--aw-card); border: 1px solid var(--aw-line); border-radius: var(--aw-radius);
	overflow: hidden; display: flex; flex-direction: column;
}
.ap-card[hidden] { display: none; }
.ap-thumb { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.ap-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ap-badge {
	position: absolute; top: 12px; right: 12px; background: rgba(10,10,11,.75); backdrop-filter: blur(4px);
	color: var(--aw-gold); font-size: .72rem; font-weight: 700; padding: 5px 12px; border-radius: 20px;
}
.ap-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.ap-post-title { color: var(--aw-text); font-size: 1.02rem; font-weight: 800; line-height: 1.6; margin: 0 0 10px; }
.ap-post-title a { color: inherit; text-decoration: none; }
.ap-excerpt { color: var(--aw-muted); font-size: .84rem; line-height: 1.8; margin: 0 0 16px; flex: 1; }
.ap-meta { display: flex; align-items: center; gap: 14px; color: var(--aw-muted); font-size: .74rem; margin-bottom: 14px; }
.ap-meta span { display: inline-flex; align-items: center; gap: 4px; }
.ap-more { color: var(--aw-gold); font-size: .82rem; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.ap-more:hover { text-decoration: underline; }

.ap-empty { text-align: center; color: var(--aw-muted); padding: 40px 20px; grid-column: 1 / -1; }

.ap-pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 30px; }
.ap-page-btn {
	min-width: 36px; height: 36px; padding: 0 10px; border-radius: 8px; background: var(--aw-card);
	border: 1px solid var(--aw-line); color: var(--aw-muted); cursor: pointer; font-size: .82rem;
}
.ap-page-btn.is-active { background: var(--aw-gold); border-color: var(--aw-gold); color: #0a0a0b; font-weight: 700; }
.ap-page-btn:disabled { opacity: .35; cursor: not-allowed; }
