/* ================================================
   news-events.css  —  مكتب المحاماة
   ألوان الثيم: #5580AB / #223445
   ================================================ */

.ne-wrap {
    direction: rtl;
    background: #f4f6f9;
    padding-top: 160px; /* عشان الهيدر fixed */
}

.ne-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ---- Section Header (زي الـ Figma: عنوان + خط تحته) ---- */
.ne-head {
    text-align: right;
    margin-bottom: 30px;
}

.ne-head h2 {
    font-size: 1.7rem;
    font-weight: 700;
    color: #223445;
    margin-bottom: 6px;
    display: inline-block;
}

.ne-underline {
    display: block;
    width: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #5580AB 40%, #223445);
    margin-top: 4px;
}

.ne-empty { text-align: center; padding: 40px; color: #8a9bac; }

/* ================================================
   سيكشن الأحداث — سلايدر بنص + صورة (زي الـ Figma)
   ================================================ */

.ne-events-section {
    background: #fff;
    padding: 50px 0 46px;
    border-bottom: 1px solid #dde5ef;
}

/* ---- Slider wrapper ---- */
.ne-ev-slider {
    display: flex;
    align-items: center;
    gap: 0;
}

/* ---- Viewport ---- */
.ne-ev-viewport {
    flex: 1;
    overflow: hidden;
}

/* ---- Track ---- */
.ne-ev-track {
    display: flex;
    transition: transform .5s cubic-bezier(.25,.46,.45,.94);
}

/* ---- Slide ---- */
.ne-ev-slide {
    flex: 0 0 100%;
    min-width: 0;
}

/* ---- Slide content: نص يسار + صورة يمين ---- */
.ne-ev-content {
    display: flex;
    align-items: stretch;
    gap: 0;
    min-height: 280px;
    border: 1px solid #dde5ef;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
    direction: ltr;
}

/* ---- النص (يسار) ---- */
.ne-ev-text {
    flex: 1;
    padding: 32px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    border-left: 1px solid #e8edf4;
    direction: rtl;
}

/* meta: تاريخ + حضور */
.ne-ev-meta-top {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.ne-ev-meta-date,
.ne-ev-meta-attendance {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .82rem;
    color: #7a8fa6;
}

.ne-ev-meta-date i,
.ne-ev-meta-attendance i { color: #5580AB; font-size: .8rem; }

/* عنوان الحدث */
.ne-ev-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.55;
    margin: 0;
}

.ne-ev-title a {
    color: #1e2d3d;
    text-decoration: none;
    transition: color .25s;
}
.ne-ev-title a:hover { color: #5580AB; }

/* excerpt */
.ne-ev-excerpt {
    font-size: .88rem;
    color: #4f6070;
    line-height: 1.8;
}

/* ---- الصورة (يمين) ---- */
.ne-ev-img {
    flex: 0 0 42%;
    max-width: 42%;
    position: relative;
    overflow: hidden;
    background: #dde5ef;
}

.ne-ev-img a {
    display: block;
    width: 100%;
    height: 100%;
}

.ne-ev-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}

.ne-ev-img:hover img { transform: scale(1.04); }

.ne-ev-noimg {
    width: 100%; height: 100%; min-height: 260px;
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem; color: #5580AB; opacity: .4;
}

/* ---- أزرار السهم (خارج الـ viewport) ---- */
.ne-arrow {
    flex-shrink: 0;
    width: 46px; height: 46px;
    border-radius: 50%;
    border: none; cursor: pointer;
    background: #5580AB;
    color: #fff;
    font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 14px rgba(34,52,69,.2);
    transition: background .25s, transform .2s;
    margin: 0 10px;
    flex-shrink: 0;
}
.ne-arrow:hover  { background: #223445; transform: scale(1.08); }
.ne-arrow:disabled { opacity: .35; cursor: default; transform: none; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .ne-ev-content { flex-direction: column; }
    .ne-ev-img     { flex: 0 0 auto; max-width: 100%; height: 220px; }
    .ne-ev-text    { padding: 22px 20px; border-left: none; border-top: 1px solid #e8edf4; }
    .ne-arrow      { width: 36px; height: 36px; margin: 0 5px; }
}

/* ================================================
   سيكشن الأخبار — grid بطاقتين في الصف
   ================================================ */

.ne-news-section {
    padding: 50px 0 64px;
    background: #f4f6f9;
}

.ne-news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}
@media (max-width: 680px) { .ne-news-grid { grid-template-columns: 1fr; } }

/* ---- News Card ---- */
.ne-news-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #dde5ef;
    box-shadow: 0 2px 8px rgba(34,52,69,.06);
    transition: transform .3s, box-shadow .3s;
    animation: neFadeUp .45s ease both;
}
.ne-news-card:hover { transform: translateY(-5px); box-shadow: 0 12px 30px rgba(34,52,69,.12); }

.ne-news-card:nth-child(1) { animation-delay: .04s; }
.ne-news-card:nth-child(2) { animation-delay: .08s; }
.ne-news-card:nth-child(3) { animation-delay: .12s; }
.ne-news-card:nth-child(4) { animation-delay: .16s; }
.ne-news-card:nth-child(5) { animation-delay: .20s; }
.ne-news-card:nth-child(6) { animation-delay: .24s; }

.ne-news-card a { display: flex; flex-direction: column; text-decoration: none; height: 100%; }

/* صورة */
.ne-news-img {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #dde5ef;
}
.ne-news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.ne-news-card:hover .ne-news-img img { transform: scale(1.05); }

.ne-news-noimg {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem; color: #5580AB; opacity: .4;
}

.ne-news-tag {
    position: absolute; bottom: 10px; right: 10px;
    background: linear-gradient(90deg, #5580AB, #223445);
    color: #fff; font-size: .7rem; font-weight: 600;
    padding: 3px 10px; border-radius: 4px;
}

/* body */
.ne-news-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }

.ne-news-meta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.ne-news-meta span { font-size: .74rem; color: #7a8fa6; display: flex; align-items: center; gap: 4px; }
.ne-news-meta i { color: #5580AB; }

.ne-news-body h3 {
    font-size: .98rem; font-weight: 700; color: #1e2d3d;
    line-height: 1.6; margin-bottom: 9px;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
    transition: color .25s;
}
.ne-news-card:hover h3 { color: #5580AB; }

.ne-news-body p {
    font-size: .84rem; color: #4f6070; line-height: 1.75;
    flex: 1; margin-bottom: 14px;
    display: -webkit-box; -webkit-line-clamp: 3;
    -webkit-box-orient: vertical; overflow: hidden;
}

.ne-news-more {
    font-size: .8rem; font-weight: 600; color: #5580AB;
    display: flex; align-items: center; gap: 5px; transition: color .25s;
}
.ne-news-card:hover .ne-news-more { color: #223445; }

/* Pagination */
.ne-pagination { display: flex; justify-content: center; gap: 7px; margin-top: 42px; flex-wrap: wrap; }

.ne-pagination .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px; padding: 0 10px;
    border-radius: 8px; text-decoration: none;
    font-size: .86rem; font-weight: 600;
    color: #5580AB; background: #fff; border: 1px solid #c8d4e0;
    transition: all .25s;
}
.ne-pagination .page-numbers:hover,
.ne-pagination .page-numbers.current {
    background: linear-gradient(90deg, #5580AB, #223445);
    color: #fff; border-color: transparent;
}

@keyframes neFadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
