.match_days{
    font-size: 22px;
    color: rgb(0, 0, 0);
    background-color: rgb(221, 219, 219);
    border-right: 3px solid rgb(53, 157, 255);
    padding: 13px 10px 13px 0;
}
.match-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-right: 3px solid black;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.match-team {
    display: flex;
    align-items: center;
}
.match-team img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 10px;
}
.match-time {
    font-size: 1rem;
    font-weight: 500;
    color: rgb(0, 61, 117);
}
.side-box {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
    height: auto;
}
.side-box h5 {
    font-size: .8rem;
    margin: 2px 0;
}
.section_name{
    background-color: black;
    font-size:15px;
    padding:10px;
    border-radius:5px;
    color:white;
    margin:10px 0 5px 0;
}
.calendar .day-button {
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    margin: 0 5px;
    cursor: pointer;
    background-color: #fff;
    color: #000;
    transition: all 0.3s;
}
.calendar .day-button.active {
    background-color: #007bff;
    color: #fff;
    font-weight: bold;
    border-color: #0056b3;
}
@media (max-width: 768px) {
    .side-box video{
        width: 355px;
        padding: 0;
    }
    .side-box {
        border:none;
    }
    .match_days{
        font-size:1.3rem;
    }
}
@media (max-width: 500px) {
    .match_days{
        font-size:1rem;
    }
    .match-team img {
        width:37px;
        height: 37px;
        border-radius: 50%;
        margin-right: 10px;
    }
    .match-team span {
        font-size:.8rem;
    }
    .match-time {
        font-size:.8rem;
    }
}


/* الخاصة بعرض المزيد لنتائج المباريات الملغية*/
.section-title {
    display: flex;
    justify-content: space-between; /* توزيع العناصر بين اليمين واليسار */
    align-items: center;
    font-size: 11px; /* تصغير حجم النص */
    font-weight: bold; /* إبقاء النص عريض */
    color: rgb(0, 0, 0);
    background-color: rgb(221, 219, 219);
    border-right: 3px solid rgb(0, 132, 255);
    padding: 0 10px 0 0;
}
@media (max-width: 450px) {
    .section-title{
        font-size: .7rem;
    }
    .teams span {
        font-size: .9em;
    }
    .match .score {
        font-size: 1.1em;
    }
}
.text-centerr{
    font-size: 18px; /* تصغير حجم النص */
    font-weight: bold; /* إبقاء النص عريض */
    color:rgb(8, 8, 8);
    text-align: right;
    background-color: #ccc;
    padding: 13px 10px 13px 0;
    border-right: 3px solid black;
}




/* قسم اخر الاخبار المستطيل الجانبي */
.news-container {
    width:355px;
    max-height: auto; /* لتحديد طول معين للمنطقة */
    overflow-y: auto; /* إضافة شريط تمرير عند الحاجة */
    background-color: rgb(236, 236, 236);
    border-radius: 5px;
    border-top: 2px solid rgb(0, 21, 206); /* سماكة الخط ولونه */
    margin:0 0 30px 0;
}
.news-item {
    display: flex;
    align-items: center;
    margin: 20px 0px 10px 0;
}
.news-image {
    width: 50px; /* حجم الصورة الصغيرة */
    height: 50px;
    object-fit: cover; /* لضبط الصورة في الإطار */
}
.news-item .news-title {
    font-size: 0.9rem; /* تصغير حجم العنوان */
    font-weight: 500;
    margin: 0 5px 0 0;
    color: #333; /* لون النص */
    overflow: hidden; /* إخفاء النص الزائد */
    text-overflow: ellipsis; /* إضافة النقاط ... عند تجاوز النص */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* السماح بسطرين فقط */
    -webkit-box-orient: vertical;
    white-space: normal; /* يسمح بالنقل التلقائي للنص إلى السطر التالي */
}
.news-title:hover {
    color: rgb(0, 21, 206); /* تغيير لون العنوان عند التمرير */
    text-decoration: underline;
}
.news-container .news-item {
    display: none; /* إخفاء جميع الأخبار افتراضيًا */
}
.side-box1 {
    width: 355px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    padding: 4px;
    margin-bottom: 20px;
    border-radius: 5px;
    text-align: center;
}
.side-box1 h5 {
    font-size: .7rem;
    margin: 5px 0;
}
/* عرض 10 أخبار على الشاشات الكبيرة */
@media (min-width: 992px) { /* الأجهزة ذات الشاشات العريضة (مثل أجهزة الكمبيوتر) */
    .news-container .news-item:nth-child(-n+10) {
        display: flex; /* عرض أول 10 أخبار فقط */
    }
}
/* عرض 5 أخبار فقط على الهواتف */
@media (max-width: 768px) { /* الأجهزة ذات الشاشات الصغيرة (مثل الهواتف) */
    .news-container .news-item:nth-child(-n+5) {
        display: flex; /* عرض أول 5 أخبار فقط */
    }
    .news-container  {
    width: 100%;
    }
    .side-box1 {
        width: 100%;
    }
    .section-titles {
        display: flex;
        font-size: .9rem; /* تصغير حجم النص */
        font-weight: bold; /* إبقاء النص عريض */
        color: rgb(0, 0, 0);
        background-color: rgb(221, 219, 219);
        border-right: 3px solid rgb(0, 0, 0);
        padding: 10px 10px 10px 0;
        margin: 30px 0 0 0;
    }
}
@media (max-width: 450px) {
    .news-item .news-title {
        font-size: 0.8rem; /* تصغير حجم العنوان */
    }
    .section-titles {
        display: flex;
        font-size: .9rem; /* تصغير حجم النص */
        font-weight: bold; /* إبقاء النص عريض */
        color: rgb(0, 0, 0);
        background-color: rgb(221, 219, 219);
        border-right: 3px solid rgb(0, 0, 0);
        padding: 10px 10px 10px 0;
        margin: 30px 0 0 0;
    }}






/* قسم الاخبار مع الصور في رأس الصفحة */
/* التصميم العام */
.headlines {
    display: flex;
    gap: 10px; /* المسافة بين العناصر */
    padding-left: 117px; /* حشو من اليسار */
    padding-right: 117px; /* حشو من اليمين */ 
}
/* الصورة الكبيرة في اليمين */
.headline-large {
    flex: 1 1 50%; /* تأخذ 50% من العرض */
    position: relative;
    height: 400px;
}
.headline-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* النص فوق الصورة */
.headline-title {
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 10px;
    font-size: 1rem;
    -webkit-line-clamp: 2; /* عدد الأسطر */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis; /* عرض النقاط */
    display: -webkit-box;
}
/* الصور الصغيرة يسار الصورة الكبيرة */
.headline-small-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1 1 50%; /* تأخذ 50% من العرض */
}
.headline-small-row {
    display: flex;
    gap: 10px; /* المسافة بين الصور */
    flex: 1;
}
.headline-small {
    flex: 1; /* تأخذ نصف عرض الحاوية */
    position: relative;
    height: 195px;
}
.headline-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.headline-small .headline-title {
    padding: 5px;
    font-size: 0.9rem;
}
/* تصميم متجاوب للهواتف */
@media (max-width: 768px) {
    .headlines {
        flex-direction: column;
        padding-left: 20px; /* حشو من اليسار */
        padding-right: 20px; /* حشو من اليمين */
    }
    .headline-large {
        height: 250px;
    }
    .headline-small-container {
        flex-direction: column;
    }
    .headline-small {
        height: 150px;
    }
}
@media (max-width: 450px) {
.headline-title{
    font-size: .7rem;
}
.headline-small .headline-title{
    font-size: .5rem;
}
}









/*قسم ملخصات المباريات*/
.news-category {
    margin: 10px 0 0 0;
}
.news-card a {
    text-decoration: none;
}
.news-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 1rem;
    font-weight: bold;
    color: #333;
}
.news-title:hover {
    color: rgb(67, 86, 253);
}
.news-thumbnail {
   width: 100%;
   height: 200px; /* تعديل الارتفاع ليناسب التصميم */
   object-fit: cover; /* لضمان تناسق الصورة وعدم تشويهها */
   border-radius: 5px; /* الحفاظ على الحواف المدورة */
   cursor: pointer;
}
.social-links {
    background-color: #fff;
    padding: 10px;
    border-radius: 8px;
}
.news-date {
    font-size: 0.85rem;
    color: rgb(75, 75, 75);
    margin-top: 5px;
}
@media (max-width: 768px) {
    .side-box {
        margin-bottom: 10px;
    }
}
@media (max-width: 500px) {
    .news-title {
        font-size: .9rem;
        font-weight: 500;
        color: #333;
    }
    .news-views{
        font-size: .8rem;
    }
    .social-links span {
        font-size: .9rem;
        font-weight: 300;
    }
}




/* قسم صورة محمد صلاح للملخصات */
.promo-banner {
    background-image: url('img/secover.png'); /* ضع هنا رابط الصورة الخاصة بالإعلان */
    background-size: cover;
    background-position: center;
    color: black;
    padding: 20px;
    text-align: center;
    border-radius: 5px;
}
.promo-banner h4 {
    font-size: 24px;
    margin-bottom: 10px;
}
.promo-banner p {
    font-size: 18px;
    margin-bottom: 15px;
}
.promo-banner .btn {
    font-size: 16px;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    text-decoration: none;
}
.promo-banner .btn:hover {
    background-color: #0056b3;
}    
    /* تعديل للهواتف المحمولة */
    @media (max-width: 768px) {
    .promo-banner {
        padding: 15px;
        background-image: url('img/secover1.png'); /* ضع هنا رابط الصورة الخاصة بالإعلان */
    }
    .promo-banner h4 {
        font-size: 20px;
    }
    .promo-banner p {
        font-size: 16px;
    }
    .promo-banner .btn {
        font-size: 14px;
        padding: 8px 16px;
    }
}
/* تحسين العرض على الشاشات الصغيرة جدًا مثل الهواتف القديمة */
@media (max-width: 480px) {
    .promo-banner {
        background-image: url('img/secover3.png'); /* ضع هنا رابط الصورة الخاصة بالإعلان */
    }
    .promo-banner h4 {
        font-size: 18px;
    }
    .promo-banner p {
        font-size: 14px;
    }
    .promo-banner .btn {
        font-size: 12px;
        padding: 6px 12px;
    }
    .section-title{
        font-size:15px;
    }
    .match-container .mname{
        font-size:12px;
    }
    .match-container .score{
        font-size:17px;
        font-weight: 500;
    }
    .match-container .date{
        font-size:13px;
    }
    
}    
@media (max-width: 392px) {
    .promo-banner {
        background-image: url('img/secover2.png'); /* ضع هنا رابط الصورة الخاصة بالإعلان */
    }
    .promo-banner h4 {
        font-size: 18px;
    }
    .promo-banner p {
        font-size: 14px;
    }
    .promo-banner .btn {
        font-size: 12px;
        padding: 6px 12px;
    }
    .section-title{
        font-size:15px;
    }
}  



