.news-area {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
              url('../assets/img/blog-bg.webp') center center / cover no-repeat;
  padding: 200px 0;
  direction: rtl;
  text-align: right;
  color: #f8f9fa;
  margin-top: 0 !important;   /* ✅ يمنع أي هوامش فوق */
  padding-top: 200px;         /* ✅ موجود فعليًا، بس نعيد تأكيده */
}

.news-box {
  max-width: 1200px;
  margin: 0 auto;
}
.news-heading {
  font-size: 32px;
  font-weight: bold;
  color: #f8f9fa;
  margin-bottom: 50px;
  padding-right: 60px;
  text-align: right;
}

/* ✅ للموبايل: توسيط العنوان تلقائيًا */
@media (max-width: 767px) {
  .news-heading {
    text-align: center;
    padding-right: 0;
    font-size: 24px;
  }
}

.news-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between; /* أو center حسب الشكل المطلوب */
}

.news-inner-wrapper {
  background-color: #ffffff;
  border-top-left-radius: 100px;
  border-bottom-right-radius: 50px;
  padding: 60px 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  margin-top: 30px; /* ✅ يجعل الكتلة تنزل تحت العنوان */
  margin-bottom: 80px;
}

.post-item {
  position: relative;
  width: calc(25% - 22.5px);
  height: 340px;
  border-top-left-radius: 40px;
  border-bottom-right-radius: 40px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  transition: 0.3s;
  background: #000;
}

.post-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.post-item:hover .post-thumb {
  transform: scale(1.02);
}

.post-text {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  padding: 40px 20px 20px;
  background-color: rgba(0, 0, 0, 0.4);
  transition: background-color 0.4s ease;
  z-index: 2;
}

.post-item:hover .post-text {
  background-color: #2d8446;
}

.post-date {
  position: absolute;
  top: -15px;
  right: 20px;
  background-color: #2d8446;
  color: white;
  padding: 6px 16px;
  font-size: 14px;
  border-top-left-radius: 16px;
  border-bottom-right-radius: 16px;
  font-weight: bold;
  z-index: 3;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.post-title {
  font-size: 16px;
  color: #fff;
  font-weight: 700;
  line-height: 1.7;
  margin: 0 0 10px 0;
}

.post-link {
  font-size: 14px;
  color: #f0f0f0;
  text-decoration: underline;
}

/* ✅ شاشات أصغر من 1200px: 3 بطاقات في الصف */
@media (max-width: 1199px) {
  .post-item {
    width: calc(33.333% - 20px);
  }
}

/* ✅ شاشات أصغر من 768px: بطاقتين في الصف */
@media (max-width: 767px) {
  .post-item {
    width: calc(50% - 15px);
  }
}

/* ✅ شاشات أصغر من 480px: بطاقة واحدة فقط */
@media (max-width: 479px) {
  .post-item {
    width: 100%;
  }
}



.k-slider {
  margin: 60px auto;
  max-width: 1200px;
  overflow: hidden;
  border-top-left-radius: 40px;
  border-bottom-right-radius: 40px;
  position: relative;
  direction: ltr; /* ضروري لكي يعمل السحب بشكل صحيح */
}

.k-slider-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.k-slide {
  flex-shrink: 0;
  width: 100%;
  height: 500px;
  border-top-left-radius: 40px;
  border-bottom-right-radius: 40px;
  overflow: hidden;
  position: relative;
}

.k-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.k-slide-content {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 30px 20px;
  z-index: 2;
  text-align: right;
}

.k-slide-content h3 {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
}

.k-slide-content .k-date {
  background-color: #2d8446;
  display: inline-block;
  padding: 6px 12px;
  border-top-left-radius: 12px;
  border-bottom-right-radius: 12px;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 10px;
}

.k-slide-content a {
  color: #f0f0f0;
  font-size: 15px;
  text-decoration: underline;
}





.blog-categories-section {
  padding: 80px 0;
  background-color: #f9f9f9;
  text-align: center;
}

.blog-categories-section .section-title {
  font-size: 32px;
  color: #1e3d59;
  margin-bottom: 40px;
  font-weight: 700;
}

.blog-categories-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

.category-box {
  display: block;
  width: 280px;
  height: 180px;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.category-box:hover {
  transform: translateY(-8px);
}

.category-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: brightness(0.6);
  transition: filter 0.3s ease;
}

.category-box:hover .category-image {
  filter: brightness(0.4);
}

.category-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.category-title {
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  z-index: 2;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.category-count {
  display: block;
  font-size: 14px;
  color: #eee;
  margin-top: 4px;
  font-weight: 400;
  opacity: 0.9;
}


