.news-page {
    width: 80%;
    margin: auto;
    padding: 40px 0;
}

/* 🔥 Featured */
.featured-news img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.featured-title {
    font-size: 28px;
    margin: 10px 0;
}


/* 📰 List */
.news-list {
    margin-top: 30px;
}

.news-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 15px;
}

.news-image img {
    width: 200px;
    height: 120px;
    object-fit: cover;
}

.news-content h3 {
    margin: 0;
}

.excerpt {
    color: #666;
}



/*  تنسيقات لقسم التصنيفات والقائمه المنسدله تبعت التصنيفات */
/* 🔍 Category Filter - Professional Style */
.category-filter {
    margin: 1rem auto 1.5rem;   /* auto بدل 0 للتوسيط */
    direction: rtl;
    text-align: center;          /* ✅ يوسّط الأزرار */
}

.category-buttons {
    display: inline-flex;        /* ✅ inline-flex بدل flex عشان التوسيط يشتغل */
    flex-wrap: wrap;        /* ✅ يسمح بالالتفاف على الجوال */
    justify-content: center;     /* ✅ توسيط الأزرار داخل الـ container */
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.cat-btn {
    display: inline-block;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    border: 1.5px solid #d1d5db;
    background: #fff;
    color: #374151;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.cat-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    color: #111827;
}

.cat-btn.active {
    background: #1f7a63;
    border-color: #41786a;
    color: #fff;
}

.more-btn {
    background: #f9fafb;
    border-style: dashed;
}

.more-wrapper {
    position: relative;
    display: none; /* يتحكم فيها JS */
}

.more-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: 0.4rem;
    z-index: 9999;       /* ✅ رقم عالي عشان ما يختبي تحت عناصر ثانية */
    min-width: 180px;
    flex-direction: column;
    gap: 0.25rem;
}

.more-dropdown.open {
    display: flex;
}

.more-dropdown .cat-btn {
    border-radius: 6px;
    border: none;
    width: 100%;
    text-align: right;
    padding: 0.5rem 0.9rem;
    display: block;
}

.more-dropdown .cat-btn:hover {
    background: #eff6ff;
    color: #1d4ed8;
}

