/* ── أخبار وفعاليات — ألوان هوية اللوقو: أزرق · ذهبي · بني ── */
.news-events-block {
  --neb-navy: #1b355b;
  --neb-blue: var(--blue, #1f6aa5);
  --neb-gold: var(--gold, #b3853b);
  --neb-brown: var(--brown, #7a5a2a);
  --neb-brown-light: #a0874c;
  --neb-card-w: min(340px, 88vw);
  --neb-gap: 22px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 65% 50% at 10% 14%, rgba(179, 133, 59, 0.12), transparent),
    radial-gradient(ellipse 55% 45% at 92% 86%, rgba(31, 106, 165, 0.1), transparent),
    radial-gradient(ellipse 45% 38% at 48% 55%, rgba(122, 90, 42, 0.06), transparent),
    linear-gradient(168deg, #f0ebe3 0%, #ebe3d6 42%, #e8eef5 100%);
}
.news-events-block::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    -55deg,
    transparent,
    transparent 48px,
    rgba(122, 90, 42, 0.022) 48px,
    rgba(122, 90, 42, 0.022) 49px
  );
}
.news-events-block::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--neb-gold), var(--neb-blue), var(--neb-brown), var(--neb-gold));
  background-size: 300% 100%;
  animation: neb-top-stripe 8s linear infinite;
}
@keyframes neb-top-stripe {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

/* شريط العنوان — شفاف */
.news-events-header {
  background: transparent;
  padding: 36px 0 10px;
  position: relative;
  overflow: visible;
  z-index: 2;
}
.news-events-header::before {
  display: none;
}
.news-events-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  position: relative;
  z-index: 1;
}
.news-events-header__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--neb-gold);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(179, 133, 59, 0.45);
  animation: neb-globe-pulse 3s ease-in-out infinite;
}
@keyframes neb-globe-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 14px rgba(179, 133, 59, 0.45); }
  50% { transform: scale(1.06); box-shadow: 0 6px 20px rgba(179, 133, 59, 0.6); }
}
.news-events-header h2 {
  margin: 0;
  color: var(--neb-navy);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* جسم البلوك — شفاف فوق الخلفية الإبداعية */
.news-events-body {
  background: transparent;
  padding: 32px 0 56px;
  position: relative;
  z-index: 2;
}
.news-events-watermark {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("/assets/img/%D8%B4%D8%B9%D8%A7%D8%B1%20%D8%A7%D9%84%D9%88%D9%82%D9%81%20%D8%B4%D9%81%D8%A7%D9%81%D8%A7.png");
  background-size: 180px;
  background-repeat: repeat;
  animation: neb-watermark-drift 40s linear infinite;
}
@keyframes neb-watermark-drift {
  0% { background-position: 0 0; }
  100% { background-position: 360px 240px; }
}

/* السلايدر */
.news-events-carousel {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 2;
}
.news-events-viewport {
  flex: 1;
  overflow: hidden;
  border-radius: 4px;
}
.news-events-track {
  display: flex;
  gap: var(--neb-gap);
  transition: transform 0.55s cubic-bezier(0.34, 1.2, 0.64, 1);
  will-change: transform;
}
.news-events-track.is-dragging {
  transition: none;
  cursor: grabbing;
}

/* البطاقة */
.news-card {
  flex: 0 0 var(--neb-card-w);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(27, 53, 91, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(28px) scale(0.97);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}
.news-card.is-visible {
  animation: neb-card-enter 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.news-card:nth-child(2).is-visible { animation-delay: 0.1s; }
.news-card:nth-child(3).is-visible { animation-delay: 0.2s; }
.news-card:nth-child(4).is-visible { animation-delay: 0.3s; }
.news-card:nth-child(5).is-visible { animation-delay: 0.4s; }
@keyframes neb-card-enter {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.news-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 40px rgba(27, 53, 91, 0.16);
}
.news-card__logo {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(180deg, #fafafa 0%, #f0f0f0 100%);
  position: relative;
  overflow: hidden;
}
.news-card__logo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 120%, rgba(31, 106, 165, 0.09), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}
.news-card:hover .news-card__logo::after { opacity: 1; }
.news-card__logo img {
  max-width: 65%;
  max-height: 110px;
  object-fit: contain;
  transition: transform 0.45s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.news-card:hover .news-card__logo img {
  transform: scale(1.08) rotate(-2deg);
}
.news-card__logo--cover {
  padding: 0;
  background: #111;
}
.news-card__logo--cover img {
  max-width: 100%;
  max-height: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none;
}
.news-card:hover .news-card__logo--cover img {
  transform: scale(1.04);
}
.news-card__body {
  padding: 18px 20px 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: start;
}
.news-card__title {
  margin: 0 0 12px;
  color: var(--neb-blue);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.55;
  text-align: center;
}
.news-card__desc {
  margin: 0 0 16px;
  color: #444;
  font-size: 0.92rem;
  line-height: 1.75;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card__btn {
  display: block;
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, var(--neb-navy) 0%, var(--neb-blue) 100%);
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-weight: 800;
  font-size: 1rem;
  border: none;
  border-top: 2px solid rgba(179, 133, 59, 0.35);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background 0.3s, letter-spacing 0.3s, border-color 0.3s;
}
.news-card__btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s;
}
.news-card:hover .news-card__btn::before { transform: translateX(100%); }
.news-card__btn:hover {
  background: linear-gradient(135deg, var(--neb-brown) 0%, var(--neb-brown-light) 100%);
  border-top-color: var(--neb-gold);
  letter-spacing: 0.04em;
}

/* أزرار التنقل */
.news-nav {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--neb-navy);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--neb-navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
  transition: background 0.25s, color 0.25s, transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 4px 12px rgba(27, 53, 91, 0.12);
}
.news-nav:hover {
  background: var(--neb-gold);
  border-color: var(--neb-gold);
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(179, 133, 59, 0.35);
}
.news-nav:active { transform: scale(0.95); }
.news-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

/* نقاط التنقل */
.news-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
  position: relative;
  z-index: 2;
}
.news-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(31, 106, 165, 0.22);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, transform 0.3s, width 0.3s;
}
.news-dot.is-active {
  background: var(--neb-gold);
  transform: scale(1.2);
  width: 28px;
  border-radius: 5px;
}

/* LTR */
.lang-en .news-events-header__inner { justify-content: flex-start; }
.lang-en .news-card__desc { text-align: start; }
[dir="ltr"] .news-nav--prev i,
[dir="ltr"] .news-nav--next i { transform: scaleX(-1); }

@media (max-width: 900px) {
  .news-events-carousel { gap: 8px; }
  .news-nav { width: 40px; height: 40px; font-size: 0.95rem; }
}
@media (max-width: 600px) {
  .news-events-body { padding: 32px 0 40px; }
  .news-nav { display: none; }
  .news-events-carousel { padding: 0 12px; }
}
