﻿/* ==========================================
   News Page - سلايدشو الأخبار والثواني المباشر في المنتصف
   ========================================== */

.news-page-title {
    color: #0369a1;
    border: 2px solid #0284c7;
    padding: 12px 25px;
    border-radius: 10px;
    display: inline-block;
    background: #e0f2fe;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.1);
    font-size: 1.3rem;
}

/* حاوية العرض متمركزة وثابتة بدون دوران */
.scene-container {
    width: 100%;
    max-width: 700px;
    height: 400px;
    margin: 20px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* الفريم الأساسي الذي يضم الصورة أو الفيديو ويتحسس أبعادها */
.news-frame {
    position: relative;
    width: 550px;
    height: 350px;
    border-radius: 14px;
    overflow: hidden;
    background: #000000;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
    border: 2px solid #0284c7;
    transition: width 0.5s ease, height 0.5s ease; /* انسيابية فائقة عند تغير أبعاد الفريم */
}

/* الوسائط تملأ الفريم تماماً وبشكل مضبوط (Stretch) */
.news-frame img,
.news-frame video {
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
}

/* عنوان الخبر في أسفل الفريم تماماً */
.slideshow-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    color: #fff;
    background: linear-gradient(to top, rgba(3, 105, 161, 0.95), rgba(3, 105, 161, 0.7));
    padding: 10px 15px;
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
    box-sizing: border-box;
    z-index: 5;
}

/* صندوق وصف الخبر أسفل الفريم */
.news-desc-box {
    width: 90%;
    max-width: 700px;
    margin: 25px auto 10px auto;
    text-align: center;
    font-size: 1.05rem;
    color: #0c4a6e;
    font-weight: 600;
    min-height: 60px;
    line-height: 1.8;
    padding: 12px;
    background: #f0f9ff;
    border-radius: 10px;
    border: 1px solid #e0f2fe;
}

/* النقاط والدلالات السريعة */
.dots { 
    text-align: center; 
    margin-top: 15px; 
}

.dot { 
    display: inline-block; 
    width: 12px; 
    height: 12px; 
    border-radius: 50%; 
    background: #bae6fd; 
    margin: 0 6px; 
    cursor: pointer; 
    transition: all 0.3s;
}

.dot.active { 
    background: #0284c7; 
    transform: scale(1.3);
}

/* أزرار التحكم */
.toolbar { 
    text-align: center; 
    margin-top: 20px; 
}

.toolbar .btn { 
    padding: 8px 24px; 
    margin: 5px; 
    cursor: pointer; 
    background-color: #0284c7; 
    color: white; 
    border: none; 
    border-radius: 8px; 
    font-size: 1rem; 
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.2);
    transition: background 0.3s, transform 0.2s;
}

.toolbar .btn:hover { 
    background-color: #0369a1; 
    transform: translateY(-2px);
}

/* تجاوب تام مع الشاشات الصغيرة (الموبايل) */
@media (max-width: 768px) {
    .news-frame {
        width: 92% !important;
        height: 250px !important;
    }
    .news-page-title {
        font-size: 1.1rem;
        padding: 8px 15px;
    }
    .news-desc-box {
        font-size: 0.95rem;
    }
}