/* SJJF Core News Single Module - Original Production Styling */
.elementor *, .elementor :after, .elementor :before {
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
}
.jj-news {
  direction: rtl;
  font-family: 'Tajawal', sans-serif;
  background: #f6f8f7;
}

/* HERO */
.jj-hero {
  height: 520px;
  background-size: cover;
  background-position: center 30%;
  position: relative;
}

.jj-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to left,
    rgba(0,0,0,.85) 35%,
    rgba(0,0,0,.4) 60%,
    transparent
  );
}

/* BODY */
.jj-container {
  max-width: 900px;
  margin: -245px auto 0;
  padding: 0 20px;
}

/* CONTENT */
.jj-content {
  background: #fff;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0,0,0,.08);
  position: relative;
  z-index: 3;
}

/* TITLE */
.jj-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 10px;
  line-height:1.4;
  color:#000;
}

/* META */
.jj-meta {
  margin-bottom: 15px;
  color: #777;
}

/* ARTICLE */
.jj-article {
  font-size: 18px;
  line-height: 2.2;
  color: #333;
}

.jj-article p {
  margin-bottom: 18px;
}

/* ===== SLIDER PRO ===== */
.jj-single-slider {
  position: relative;
  margin: 30px 0;
  border-radius: 20px;
  overflow: hidden;  
}

.jj-single-slide {
  width: 100%;
  max-height: 450px;
  object-fit: cover;
  display: none;
}

.jj-single-slide.active {
  display: block;
}

/* الأسهم */
.jj-single-slider button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.45);
  color: #fff;
  border: none;
  width: 48px;
  height: 58px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  transition: .3s;
  backdrop-filter: blur(6px);
  z-index: 10;
}

.jj-prev { right: 15px; }
.jj-next { left: 15px; }

.jj-single-slider button:hover {
  background: #0f7b50;
}

/* DOTS */
.jj-dots {
  display: flex;
  justify-content: center;
  margin-top: 15px;
  gap: 8px;
}

.jj-dot {
  width: 8px;
  height: 8px;
  background: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: .3s;
}

.jj-dot.active {
  background: #0f7b50;
  transform: scale(1.4);
}

/* RELATED */
.jj-related {
  margin-top: 40px;
  padding-top: 25px;
  border-top: 1px solid #eee;
}

.jj-related-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.jj-related-head h3 {
  font-size: 22px;
  font-weight: 700;
  position: relative;
  margin:0;
}

.jj-related-head h3::after {
  content: '';
  width: 60px;
  height: 3px;
  background: #0f7b50;
  position: absolute;
  bottom: -8px;
  right: 0;
}

.jj-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.jj-related-card {
  display: block;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: #000 !important;
  box-shadow: 0 10px 25px rgba(0,0,0,.06);
  transition: .3s;
}

.jj-related-card:hover {
  transform: translateY(-8px);
}

.jj-related-img {
  height: 180px;
  overflow: hidden;
}

.jj-related-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: .4s;
}

.jj-related-card:hover img {
  transform: scale(1.05);
}

.jj-related-content {
  padding: 15px;
}

.jj-related-content h4 {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 10px;
  font-weight: 700;
}

.jj-related-meta {
  font-size: 13px;
  color: #777;
}

/* LIGHTBOX */
.jj-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: jj_fadeIn .3s;
}

.jj-lightbox img {
  max-width: 92%;
  max-height: 92%;
  border-radius: 14px;
}

@keyframes jj_fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* MOBILE */
@media(max-width:900px) {
  .jj-container {
    margin-top: -60px;
  }

  .jj-related-grid {
    grid-template-columns: 1fr;
  }
}

