.news-article {
  background: #fff;
  padding: 40px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  max-width: 1000px;
  margin: 40px auto;
  margin-top: 100px;
}

.news-cover-wrapper {
  text-align: center;
  margin-bottom: 24px;
}

.news-cover {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
/* ------------ */
.news-title {
  font-size: 2rem;
  font-weight: bold;
  color: #222;
  margin: 24px 0 12px;
  text-align: justify;
}

.news-summary p {
  font-size: 1.1rem;
  font-weight: 600;
  color: #444;
  margin-bottom: 40px;
  text-align: justify;
}





.news-slider {
  margin-bottom: 40px;
}

.slider-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 280px;
  border-radius: 12px;
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 100%;
}

.slide {
  flex: 0 0 100%;
  height: 100%;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: #fff;
  border: none;
  font-size: 24px;
  padding: 8px 12px;
  cursor: pointer;
  z-index: 10;
  border-radius: 6px;
}

.prev-btn { left: 10px; }
.next-btn { right: 10px; }



.news-body {
  font-size: 1rem;
  line-height: 1.9;
  color: #333;
  margin-bottom: 40px;
  text-align: justify;
}

*{
  font-family: 'Vazir', sans-serif;

}

.news-slider {
  margin: 40px auto;
  max-width: 1000px;
  position: relative;
  direction: rtl;
}

.slider-frame {
  overflow: hidden;
  width: 100%;
  position: relative;
  border-radius: 12px;
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.slide {
  flex: 0 0 100%;
  width: 100%;
  position: relative;
  margin: 0;
  padding: 0;
}

/* ✅ حالت موبایل: تصویر قاب رو پر کنه */
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

/* ✅ فقط در دسکتاپ تصویر کامل دیده بشه */
@media (min-width: 769px) {
  .slide {
    aspect-ratio: 16 / 9;
  }

  .slide img {
    object-fit: contain;
    background-color: #fff; /* یا رنگ برندت */
  }
}

.news-cover-wrapper {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
  border-radius: 12px;
  overflow: hidden;
}

.news-cover {
  width: 100%;
  max-height: 500px;
  object-fit: contain; /* ✅ تصویر کامل بدون بریدگی */
  display: block;
  border-radius: 12px;
  background-color: #fff; /* یا رنگ برندت */
}

/* ✅ حالت موبایل */
@media (max-width: 768px) {
  .news-cover {
    max-height: none;
    object-fit: cover; /* در موبایل تصویر قاب رو پر کنه */
  }
}

