/* ====== صفحة الأخبار ====== */

/* هيدر */
.news-hero {
    background: linear-gradient(135deg, var(--primary) 0%, #162040 100%);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.news-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(201,162,39,0.07) 0%, transparent 70%);
    border-radius: 50%;
}

.news-hero-content {
    position: relative;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.news-hero-badge {
    display: inline-block;
    background: rgba(201,162,39,0.15);
    border: 1px solid var(--secondary);
    color: var(--secondary);
    padding: 6px 20px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.news-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.3;
    margin-bottom: 15px;
}

.news-hero p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
}

/* قسم الأخبار */
.news-section {
    padding: 40px 0 80px;
    background: var(--off-white);
    min-height: 60vh;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.news-count {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

/* شبكة الأخبار */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.news-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border);
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.news-image {
    position: relative;
    overflow: hidden;
}

.news-img-placeholder {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255,255,255,0.3);
    transition: var(--transition);
}

.news-card:hover .news-img-placeholder i {
    transform: scale(1.1);
}

.news-img-placeholder i {
    transition: var(--transition);
}

.news-badge {
    display: inline-block;
    padding: 3px 14px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.news-badge.blue { background: #dbeafe; color: #1d4ed8; }
.news-badge.green { background: #d1fae5; color: #047857; }
.news-badge.amber { background: #fef3c7; color: #b45309; }
.news-badge.purple { background: #f3e8ff; color: #7c3aed; }
.news-badge.red { background: #fee2e2; color: #dc2626; }
.news-badge.indigo { background: #e0e7ff; color: #4338ca; }

.news-date-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: var(--secondary);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: var(--radius);
    text-align: center;
    line-height: 1.2;
}

.news-date-badge .day {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
}

.news-date-badge .month {
    font-size: 0.65rem;
    font-weight: 600;
}

.news-content {
    padding: 22px 22px 24px;
}

.news-content h3 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 10px;
    line-height: 1.5;
    font-weight: 700;
}

.news-content p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--gray-400);
    padding-top: 12px;
    border-top: 1px solid var(--gray-100);
}

.news-footer span { display: flex; align-items: center; gap: 4px; }

/* لا توجد نتائج */
.news-section .no-results {
    text-align: center;
    padding: 80px 20px;
    display: none;
}
.news-section .no-results.show { display: block; }
.news-section .no-results i {
    font-size: 4rem;
    color: var(--gray-300);
    margin-bottom: 20px;
}
.news-section .no-results h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 10px;
}
.news-section .no-results p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ====== نافذة تفاصيل الخبر ====== */
.news-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    padding: 20px;
}

.news-modal-overlay.open { opacity: 1; visibility: visible; }

.news-modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-modal-overlay.open .news-modal { transform: scale(1) translateY(0); }

.news-modal-close {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 38px;
    height: 38px;
    background: var(--gray-100);
    border: none;
    border-radius: 50%;
    color: var(--gray-600);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition);
    z-index: 10;
}

.news-modal-close:hover { background: #fee2e2; color: #dc2626; }

.news-modal-image {
    position: relative;
}

.news-modal-placeholder {
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: rgba(255,255,255,0.3);
}

.news-modal-date {
    position: absolute;
    bottom: 15px;
    right: 20px;
    background: var(--secondary);
    color: var(--primary);
    padding: 8px 18px;
    border-radius: var(--radius);
    text-align: center;
    line-height: 1.2;
}

.news-modal-date .day { display: block; font-size: 1.5rem; font-weight: 800; }
.news-modal-date .month { font-size: 0.75rem; font-weight: 600; }

.news-modal-info { padding: 30px; }

.news-modal-info .news-badge { margin-bottom: 10px; }

.news-modal-info h2 {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-modal-meta {
    display: flex;
    gap: 25px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.news-modal-meta span {
    font-size: 0.82rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-modal-meta i { color: var(--secondary); width: 16px; }

.news-modal-desc {
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.9;
    margin-bottom: 15px;
}

.news-modal-body {
    font-size: 0.9rem;
    color: var(--text);
    line-height: 2;
}

/* ====== ريسبونسيف ====== */
@media (max-width: 1024px) {
    .news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .news-hero { padding: 70px 0 50px; }
    .news-hero h1 { font-size: 1.8rem; }
    .news-hero p { font-size: 0.85rem; }
    .news-grid { grid-template-columns: 1fr; gap: 15px; }
    .news-section { padding: 25px 0 50px; }
    .news-content h3 { font-size: 0.95rem; }
    .news-content p { font-size: 0.8rem; }
    .news-img-placeholder { height: 170px; font-size: 2rem; }
    .news-modal-placeholder { height: 200px; font-size: 3rem; }
    .news-modal-info { padding: 20px; }
    .news-modal-info h2 { font-size: 1.15rem; }
    .news-modal-desc { font-size: 0.85rem; }
}

@media (max-width: 480px) {
    .news-hero { padding: 50px 0 35px; }
    .news-hero h1 { font-size: 1.3rem; }
    .news-hero p { font-size: 0.78rem; }
    .news-hero-badge { font-size: 0.65rem; padding: 4px 12px; }
    .news-date-badge { padding: 4px 10px; }
    .news-date-badge .day { font-size: 0.9rem; }
    .news-date-badge .month { font-size: 0.55rem; }
    .news-img-placeholder { height: 140px; }
    .news-modal { margin: 10px; }
    .news-modal-meta { flex-direction: column; gap: 8px; }
}
