/****************************
        ---استایل های صفحه مقاله---
        *****************************/
.article-content h2 {
  font-weight: 900;
  font-size: 1.5rem;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  color: #2d3e5e;
  border-right: 5px solid #d4a373;
  padding-right: 1.25rem;
}

.article-content p {
  margin-bottom: 1.5rem;
  text-align: justify;
  color: #4a5568;
  font-size: 1.1rem;
}

.article-content .img-wrapper {
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 2.5rem;
  margin: 2.5rem 0;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
}

.article-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sticky-share {
  top: 100px;
}

.author-card {
  background: linear-gradient(135deg, #2d3e5e 0%, #1a253a 100%);
}

/* Swiper Custom Style */
.swiper-button-next,
.swiper-button-prev {
  color: #d4a373;
  background: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 18px;
  font-weight: bold;
}

/* Modal Style */
#shareModal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

#shareModal.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes heartbeat {
  0% {
    transform: scale(1);
  }

  25% {
    transform: scale(1.2);
  }

  50% {
    transform: scale(1);
  }

  75% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1);
  }
}

.animate-heartbeat {
  animation: heartbeat 0.4s linear;
}

/* استایل‌های اختصاصی بدنه محتوا */

.tansa-content p {
  margin-bottom: 1.5rem;
}

.tansa-content img {
  border-radius: 2rem;
  /* گرد کردن تصاویر داخل متن */
  margin: 2rem auto;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

.tansa-content blockquote {
  border-right: 4px solid #d4a373;
  padding: 1rem 2rem;
  background-color: #f9fafb;
  border-radius: 0 1.5rem 1.5rem 0;
  margin: 2rem 0;
  font-style: italic;
}

.tansa-content table {
  width: 100%;
  margin: 2.5rem 0;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid #eee;
}

.tansa-content table th {
  background-color: #2d3e5e;
  color: white;
  padding: 1rem;
  font-weight: 900;
  font-size: 0.9rem;
}

.tansa-content table td {
  padding: 1rem;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.85rem;
  text-align: center;
}

/* استایل باکس نکات طلایی (Golden Note) */
.tansa-note {
  background: linear-gradient(135deg, #fdfcf9 0%, #f9f7f2 100%);
  border-right: 5px solid #d4a373;
  padding: 2rem;
  border-radius: 1.5rem 2.5rem 2.5rem 1.5rem;
  margin: 3rem 0;
  position: relative;
}

.tansa-note::after {
  content: "\e3ae";
  font-family: "Phosphor";
  position: absolute;
  top: -15px;
  right: 20px;
  background: #d4a373;
  color: white;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.2rem;
}

/* استایل لینک‌های داخل متن مقاله */
.tansa-content a {
  color: #2d3e5e;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px dotted #d4a373;
  transition: all 0.3s ease;
}

.tansa-content a:hover {
  background-color: rgba(212, 163, 115, 0.1);
  color: #d4a373;
}

/* استایل هدینگ H2 با نوار طلایی */

.tansa-content h2 {
  font-weight: 900;
  font-size: 1.6rem;
  margin-top: 3.5rem;
  margin-bottom: 1.5rem;
  color: #2d3e5e;
  border-right: 6px solid #d4a373;
  padding-right: 1rem;
  line-height: 1.4;
}

/* استایل هدینگ H3 */
.tansa-content h3 {
  font-weight: 800;
  font-size: 1.3rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: #2d3e5e;
  display: flex;
  align-items: center;
  gap: 8px;
  border-right: 6px solid #d4a37366;
  padding-right: 1rem;
  line-height: 1.4;
}

/* استایل لیست‌های نقطه‌ای */
.tansa-content ul {
  margin-bottom: 1.5rem;
  padding-right: 1.5rem;
}

.tansa-content li {
  list-style-type: disc;
  color: #d4a373;
  /* رنگ نقطه */
  margin-bottom: 0.5rem;
}

.tansa-content li::marker {
  font-size: 1.2rem;
}

/* اجبار اسلایدر به ماندن در یک خط */
/* اطمینان از اینکه اسلایدها عرض دقیق محاسبه شده را می‌گیرند */
.productSwiper .swiper-slide {
  height: auto;
  /* جلوگیری از کشیدگی عمودی */
  display: flex;
  justify-content: center;
  box-sizing: border-box;
  /* جلوگیری از هم‌پوشانی بر اثر Border یا Padding */
}

/* اگر از Tailwind استفاده می‌کنید، مطمئن شوید این کلاس روی کانتینر والد است */
.swiper-wrapper {
  display: flex !important;
}
