/* Move your 'Additional CSS' here to keep it version-controlled in the child theme */
/* ===============================
   فونت‌ها (Load Fonts)
================================= */
/* ====== Custom Fonts (override Elementor) ====== */
/* Peyda Regular */
@font-face{
  font-family:'PeydaWeb';
  src:url('/wp-content/uploads/2025/01/PeydaWebFaNum-Regular-2.woff2') format('woff2');
  font-weight:400; font-style:normal; font-display:swap;
  ascent-override:90%; descent-override:20%; line-gap-override:0%;
}

/* Peyda Bold */
@font-face{
  font-family:'PeydaWeb';
  src:url('/wp-content/uploads/2025/01/PeydaWebFaNum-Bold-1.woff2') format('woff2');
  font-weight:700; font-style:normal; font-display:swap;
  ascent-override:90%; descent-override:20%; line-gap-override:0%;
}

/* IranYekan Bold (با override) */
@font-face{
  font-family:'IranYekanWeb';
  src:url('/wp-content/uploads/2025/01/iranyekanweb-Bold.woff2') format('woff2'),
      url('/wp-content/uploads/2025/01/iranyekanweb-Bold.woff') format('woff');
  font-weight:700; font-style:normal; font-display:swap;
  ascent-override:90%; descent-override:20%; line-gap-override:0%;
}

/* IRANSansWeb Bold (اگر جایی استفاده می‌کنی) */
@font-face{
  font-family:'IRANSansWeb';
  src:url('/wp-content/uploads/2023/10/IRANSansWeb_Bold.woff2') format('woff2');
  font-weight:700; font-style:normal; font-display:swap;
  ascent-override:90%; descent-override:20%; line-gap-override:0%;
}

/* استفاده جهانی (در صورت نیاز نام خانواده را با آنچه در المنتور ست کرده‌ای هماهنگ کن) */
html, body{
  font-family:'PeydaWeb', 'IranYekanWeb', system-ui, -apple-system, Segoe UI, Arial, sans-serif;
}
@font-face {
  font-family:'IranYekanWeb';
  src:url('/wp-content/uploads/2025/01/iranyekanweb-2.woff') format('woff');
  font-weight:400;
  font-style:normal;
  font-display:swap;
  ascent-override:90%; descent-override:20%; line-gap-override:0%;
}

/* Elementskit Icon Font */
@font-face {
  font-family:'elementskit';
  src:url('/wp-content/plugins/elementskit-lite/modules/elementskit-icon-pack/assets/fonts/elementskit.woff') format('woff');
  font-weight:normal; font-style:normal; font-display:swap;
}

/* ===============================
   تایپوگرافی نوشته‌ها
================================= */

body.single-post h2 {
  font-family: 'iranyekan', sans-serif !important;
  font-size: 16px !important;
  line-height: 1.5 !important;
  color: #179EF0 !important;
  font-weight: bold !important;
}

body.single-post h3,
body.single-post h4,
body.single-post h5 {
  font-family: 'iranyekan', sans-serif !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
  color: #135694 !important;
  font-weight: bold !important;
}

body.single-post .elementor-widget-theme-post-content {
  direction: rtl;
  line-height: 0.5;
  word-spacing: 0px;
}
body.single-post .elementor-widget-theme-post-content p {
  text-align: justify !important;
  direction: rtl !important;
  line-height: 2 !important;
  word-spacing: normal !important;
}

/* ===============================
   جدول‌ها
================================= */

table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin: 0 auto !important;
  overflow-x: auto !important;
  display: block !important;
  direction: rtl !important;
}

table th, table td {
  padding: 10px !important;
  text-align: right !important;
  border: 1px solid #ddd !important;
  word-wrap: break-word !important;
}

table th {
  background-color: #f4f4f4 !important;
  font-weight: bold !important;
}

table tr:nth-child(odd) td:first-child {
  color: #135694 !important;
  font-weight: bold !important;
}

table tr:nth-child(even) td:first-child {
  color: #179EF0 !important;
}

/* ===============================
   Aparat iframe
================================= */

iframe[src*="aparat.com"] {
  width: 100% !important;
  aspect-ratio: 16 / 9;
  height: auto !important;
  display: block;
  border: none;
}

.aparat-responsive-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin: 1em 0;
}

.aparat-responsive-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100% !important;
  height: 100% !important;
}

/* ===============================
   دکمه شناور
================================= */

.floating-btn {
  position: fixed;
  bottom: 20px;
  left: 48%;
  transform: translateX(-50%);
  height: 40px;
  padding: 0 7px;
  background-color: #09A849 !important;
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
  z-index: 9999;
  transition: background-color 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  text-shadow: 0 0px 0px rgba(0,0,0,0.4);
  gap: 8px;
  line-height: 0;
}
.floating-btn span {
  line-height: 1;
  padding-top: 5px;
  padding-bottom: 5px;
}
.floating-btn:hover {
  background-color: #13993f;
  color: #ffffff;
}
.icon {
  display: inline-block;
  animation: bounceIcon 1.6s ease-in-out infinite;
}
@keyframes bounceIcon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* ===============================
   بردکرامب
================================= */

.breadcrumbs-wrapper {
  position: relative;
  background: #092035;
  color: #fff;
  border-radius: 999px;
  padding: 12px 20px;
  box-shadow: 0 14px 28px rgba(0,0,0,.18);
  overflow: visible !important;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 56px;
  margin: 20px auto;
  max-width: 1200px;
}
.breadcrumbs-wrapper::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%) translateY(-2px);
  width: 10.7rem;
  height: 3rem;
  background-color: #092035;
  -webkit-mask-image: url('https://startway.ir/wp-content/uploads/2025/08/mask-breadcrumb.svg');
  mask-image: url('https://startway.ir/wp-content/uploads/2025/08/mask-breadcrumb.svg');
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  z-index: -1;
}
.breadcrumbs-wrapper>span {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-direction: row;
  position: relative;
  justify-content: flex-end;
  width: 100%;
}
.breadcrumb-icon {
  width: 16px; height: 16px;
  color: rgba(255,255,255,.8);
  flex-shrink: 0;
}
.breadcrumb {
  display: flex;
  gap: 6px;
  font-size: 14px;
  color: #fff !important;
}
.breadcrumb a {
  color: #fff !important;
  text-decoration: none;
  opacity: .85;
  transition: .2s;
}
.breadcrumb a:hover { opacity: 1; text-decoration: underline; }
.breadcrumb span { color: rgba(255,255,255,.6) !important; }

.support-box {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  background: #f9f9f9;
  line-height: 1.8;
  direction: rtl;
  text-align: right;
  font-family: 'IranYekan', Tahoma, Arial, sans-serif;
}

.support-box h3 {
  margin-top: 0;
  color: #135694;
  text-align: right;
}

/* لینک‌ها */
.support-box a {
  color: #179EF0;
  font-weight: 500;
  text-decoration: none;
  transition: 0.2s;
}
.support-box a:hover {
  color: #135694;
  text-decoration: underline;
}

/* رنگ آیکون‌های متنی */
.support-box p:first-of-type::before,
.support-box p:nth-of-type(2)::before,
.support-box p:nth-of-type(3)::before {
  color: #179EF0; /* آبی روشن */
  font-weight: bold;
}

/* برای اطمینان از نمایش سمت راست */
.support-box p {
  margin: 8px 0;
}

/* ثابت نگه داشتن نسبت ابعاد تصاویر */
img[width][height] {
  aspect-ratio: attr(width) / attr(height);
}

/* برای تصاویر المنتور بدون height */
.elementor img {
  display: block;
  height: auto;
}


