/**
 * سفارشی‌سازی‌های pbso.ir
 */

/* فضای زیر منو در صفحات داخلی (غیر از صفحهٔ اصلی) — محتوا زیر هدر استیکی نرود */
.it-header-height {
  min-height: 95px;
}
main:has(.it-breadcrumb-area) {
  padding-top: 1.5rem;
}
/* فاصلهٔ محتوا از هدر در صفحات بدون breadcrumb (مثل داشبورد) */
main:has(.it-dashboard) {
  padding-top: 2.5rem;
  padding-bottom: 3rem;
}

/* هیرو صفحه اصلی — ارتفاع یک صفحه کامل (۱۰۰vh) */
.it-hero-area {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.it-hero-area .container {
  width: 100%;
}

/* کندتر کردن انیمیشن آیتم‌های هیرو (WOW.js) */
.it-hero-area .it-hero-content .wow {
  animation-duration: 1.6s !important;
}

/* لوگو — اندازهٔ یکسان در همهٔ صفحات (هدر، منو، فوتر، سبد خرید، تسویه حساب) */
body .it-header-logo img,
body .itoffcanvas__logo img,
body .it-footer-widget-logo img,
.it-hero-area img[src*="logo.png"],
.it-hero-thumb img[src*="logo.png"],
body img[src*="custom/logo.png"] {
  max-height: 52px !important;
  max-width: 140px !important;
  height: auto !important;
  width: auto !important;
  object-fit: contain;
}

/* هایلایت زیر عنوان‌ها (انیمیشن) — همیشه زرد، نه سیاه/currentColor */
.it-hero-title .it-title-shape path,
.it-section-title .it-title-shape path,
.it-section-title-2 .it-title-shape path,
.it-hero-3-title .it-title-shape path,
.it-hero-11-title .it-title-shape path {
  fill: #F8C62F !important;
  fill-opacity: 0.6;
}

/* هیرو — دایره‌های رنگی به‌جای آواتارهای تصویری (هم‌رنگ با تن تصاویر اصلی) */
.it-hero-2-avatar-1 .hero-avatar-dot,
.it-hero-2-avatar-2 .hero-avatar-dot,
.it-hero-2-avatar-3 .hero-avatar-dot,
.it-hero-2-avatar-4 .hero-avatar-dot,
.it-hero-2-avatar-5 .hero-avatar-dot,
.it-hero-2-avatar-6 .hero-avatar-dot {
  display: block;
  width: 70px;
  height: 70px;
  border-radius: 50%;
}
.it-hero-2-avatar-1 .hero-avatar-dot--1 { background-color: #6B8BBE; }
.it-hero-2-avatar-2 .hero-avatar-dot--2 { background-color: #7BA87B; }
.it-hero-2-avatar-3 .hero-avatar-dot--3 { background-color: #C9956B; }
.it-hero-2-avatar-4 .hero-avatar-dot--4 { background-color: #9B7BB5; }
.it-hero-2-avatar-5 .hero-avatar-dot--5 { background-color: #5BA8A8; }
.it-hero-2-avatar-6 .hero-avatar-dot--6 { background-color: #C97B8B; }

/* ---------- بخش دسته‌بندی‌ها (صفحهٔ اصلی) — آیکن‌ها و کارت‌ها یکدست و متناسب با تم ---------- */
.it-categories-area .it-categories-item {
  background-color: #F0F4F5;
  border-color: var(--it-theme-1);
}
.it-categories-area .it-categories-item span svg,
.it-categories-area .it-categories-item span svg path {
  color: var(--it-theme-1) !important;
  fill: var(--it-theme-1) !important;
}
.it-categories-area .it-categories-item:hover {
  border-color: var(--it-theme-1);
}
.it-categories-area .it-categories-item:hover span svg,
.it-categories-area .it-categories-item:hover span svg path {
  color: var(--it-theme-1) !important;
  fill: var(--it-theme-1) !important;
}

/* ---------- کارت دوره — تصویر با اندازهٔ ثابت، متن، قیمت و رده‌بندی ---------- */

/* تراز ارتفاع کارت‌ها در صفحهٔ اصلی و صفحهٔ دوره‌ها: همهٔ کارت‌های یک ردیف هم‌قد */
.it-course-item {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.it-course-item .it-course-thumb {
  flex-shrink: 0;
}
.it-course-item .it-course-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-top: 42px;
}
.it-course-item .it-course-btn {
  margin-top: auto;
}

/* محدود کردن اندازهٔ تصویر کارت تا بقیهٔ صفحه به‌هم نریزد */
.it-course-thumb {
  aspect-ratio: 16 / 10;
  max-height: 220px;
  min-height: 180px;
  overflow: hidden;
  position: relative;
}
.it-course-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* تصویر کارت در اسلایدر «برترین دوره‌های امروز» (صفحهٔ اصلی) */
.it-testimonial-thumb {
  aspect-ratio: 16 / 10;
  max-height: 260px;
  min-height: 200px;
  overflow: hidden;
  position: relative;
}
.it-testimonial-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* ستون‌های حاوی کارت دوره: عرض کامل برای تراز ارتفاع */
.row .col-xl-4 > .it-course-item,
.row .col-lg-6 > .it-course-item,
.row .col-md-6 > .it-course-item {
  width: 100%;
}

/* ردیف دسته‌بندی + قیمت: جلوگیری از به‌هم‌ریختگی و شکستن خط قیمت */
.it-course-item .it-course-content > .d-flex.align-items-center {
  flex-wrap: nowrap;
  gap: 10px;
}
.it-course-item .it-course-author {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.it-course-item .it-course-price-box {
  flex-shrink: 0;
  display: inline-flex;
  align-items: baseline;
  flex-wrap: nowrap;
  white-space: nowrap;
  gap: 6px;
}
.it-course-item .it-course-price-box del,
.it-course-item .it-course-price-box span {
  white-space: nowrap;
}

/* رده‌بندی: ستاره‌ها و متن در یک خط و تراز */
.it-course-item .it-course-rating > div {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
}
.it-course-item .it-course-rating i {
  flex-shrink: 0;
}

/* نوار دوره / ثبت‌نام: تراز عمودی یکسان */
.it-course-item .it-course-meta {
  align-items: center;
}
.it-course-item .it-course-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.it-course-item .it-course-meta span svg,
.it-course-item .it-course-meta span i {
  flex-shrink: 0;
}

/* ---------- لوگوهای حامیان — باکس سفید گرد برای خوانایی روی پس‌زمینهٔ سبز ---------- */
.it-brand-2-area .it-brand-2-item {
  background: #fff;
  border-radius: 16px;
  padding: 1rem 1.25rem;
  margin: 0 0.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.it-brand-2-area .it-brand-2-item img {
  max-height: 56px;
  width: auto;
  object-fit: contain;
}

/* بلوک CTA صفحهٔ اصلی — گوی‌های رنگی تو در تو به‌جای تصویر cta-3-1.png */
.it-cta-3-wrap .cta-circles-wrap {
  margin-left: 15px;
  display: inline-block;
  flex-shrink: 0;
}
.it-cta-3-wrap .cta-nested-circles {
  display: block;
  vertical-align: middle;
}

/* ---------- داشبورد کاربر ---------- */
.it-dashboard {
  max-width: 720px;
  margin: 0 auto;
  padding-top: 1.25rem;
  padding-bottom: 1rem;
}
.it-dashboard-welcome {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.it-dashboard-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
}
.it-dashboard-greeting {
  font-size: 1.1rem;
  color: #444;
  margin: 0;
}
.it-dashboard-user-num,
.it-dashboard-user-phone {
  font-weight: 600;
  color: #2c5282;
  background: rgba(49, 130, 206, 0.1);
  padding: 0.2em 0.5em;
  border-radius: 6px;
}
.it-dashboard-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s, transform 0.2s;
  height: 100%;
  min-height: 100px;
}
.it-dashboard-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}
.it-dashboard-card--stat {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.it-dashboard-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #F8C62F;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.it-dashboard-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.it-dashboard-card-label {
  font-size: 0.9rem;
  color: #64748b;
}
.it-dashboard-card-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a1a1a;
}
.it-dashboard-card--action {
  padding: 0;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.it-dashboard-card-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  color: #334155;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
  height: 100%;
  min-height: 100px;
}
.it-dashboard-card-link:hover {
  background: rgba(248, 198, 47, 0.15);
  color: #1a1a1a;
}
.it-dashboard-card-link i {
  font-size: 1.5rem;
  color: #F8C62F;
  width: 1.5rem;
  text-align: center;
}
.it-dashboard-quick-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 1.5rem;
}
.it-dashboard-btn {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s, transform 0.2s;
}
.it-dashboard-btn:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}
.it-dashboard-link {
  color: #3182ce;
  text-decoration: none;
  font-weight: 500;
}
.it-dashboard-link:hover {
  text-decoration: underline;
}
.it-dashboard-sep {
  color: #94a3b8;
  user-select: none;
}

/* صفحه بازگشت پرداخت — هشدار تکمیل فرم دوره حکمرانی علوی */
.payment-return-alavi-warning {
  border-width: 2px !important;
  box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.25);
  font-size: 1.05rem;
}
.payment-return-alavi-warning-icon {
  font-size: 1.75rem;
  line-height: 1;
}
.payment-return-alavi-warning .btn-warning {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.payment-return-alavi-warning .btn-warning:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

/* باکس اطلاعات پرداخت در صفحهٔ جزئیات دوره (دوره حکمرانی علوی) */
.course-payment-box {
  margin-top: 2rem;
  padding: 1.5rem 1.75rem;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  direction: rtl;
  text-align: right;
}
.course-payment-box .course-payment-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.course-payment-box .course-payment-title::before {
  content: "";
  width: 4px;
  height: 1.25rem;
  background: var(--it-theme-1, #F8C62F);
  border-radius: 2px;
}
.course-payment-box .course-payment-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem 1rem;
  margin-bottom: 0.75rem;
}
.course-payment-box .course-payment-label {
  font-weight: 600;
  color: #475569;
  min-width: 8rem;
}
.course-payment-box .course-payment-value {
  font-family: inherit;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  color: #0f172a;
  direction: ltr;
  unicode-bidi: isolate;
}
.course-payment-box .course-payment-copy-btn {
  padding: 0.35rem 0.85rem;
  font-size: 0.875rem;
  background: var(--it-theme-1, #F8C62F);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.15s, box-shadow 0.15s;
}
.course-payment-box .course-payment-copy-btn:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(248, 198, 47, 0.4);
}
.course-payment-box .course-payment-note {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: #fff;
  border-radius: 8px;
  border-right: 3px solid var(--it-theme-1, #F8C62F);
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.6;
}
.course-payment-box .course-payment-note strong {
  color: #1e293b;
}

.course-payment-box .course-payment-guide {
  margin-top: 1.5rem;
  padding: 1.35rem 1.5rem;
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.75;
}
.course-payment-box .course-payment-guide strong {
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  font-size: 1rem;
}
.course-payment-box .course-payment-guide strong::before {
  content: "";
  width: 5px;
  height: 1.1rem;
  background: var(--it-theme-1, #F8C62F);
  border-radius: 3px;
}
.course-payment-box .course-payment-guide ol {
  margin: 0;
  padding-right: 0;
  padding-left: 0;
  list-style: none;
  counter-reset: guide-step;
}
.course-payment-box .course-payment-guide li {
  position: relative;
  margin-bottom: 0.65rem;
  padding-right: 2.25rem;
  min-height: 1.5em;
}
.course-payment-box .course-payment-guide li:last-child {
  margin-bottom: 0;
}
.course-payment-box .course-payment-guide li::before {
  counter-increment: guide-step;
  content: counter(guide-step);
  position: absolute;
  right: 0;
  top: 0.05rem;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--it-theme-1, #F8C62F);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.course-payment-box .course-payment-guide li strong {
  display: inline;
  margin-bottom: 0;
  font-size: inherit;
}
.course-payment-box .course-payment-guide li strong::before {
  display: none;
}
