body {
    font-family: 'Cairo', Arial, sans-serif;
    background: #f5f3e7; /* صحراوي */
    color: #181818; /* أسود */
    margin: 0;
    padding: 0;
    direction: rtl;
}
header {
    background: #15221b;; 
    padding: 40px 20px 20px 20px;
    text-align: center;
    border-bottom: 2px solid #c2b280; /* صحراوي */
}
header h1 {
    font-size: 2.2em;
    margin-bottom: 20px;
    color: #181818; /* أسود */
}


header video, header img {
    border-radius: 12px;
    margin: 10px auto;
    display: block;
    max-width: 40%;
    box-shadow: 0 4px 16px rgba(27,58,43,0.08); /* أخضر غامق */
}
.main-link {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 24px;
    background: #c2b280; /* صحراوي */
    color: #181818; /* أسود */
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}
.main-link:hover {
    background: #dadada; /* أخضر */
    color: #000000;
}

/* تنسيق قسم البرمجة المحدث */
.prog-item {
    flex: 0 0 85%;
    max-width: 450px;
    scroll-snap-align: center;
    padding: 0 10px;
    display: flex;
    flex-direction: column;
    align-items: center; /* توسيط المحتوى */
}

.prog-item img {
    width: 100%;
    height: 200px; /* الحفاظ على المظهر العرضي */
    border-radius: 15px;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 1px solid #ddd;
    background: #fff;
}

.prog-info {
    margin-top: 12px;
    font-weight: bold;
    color: #1b3a2b;
    font-size: 0.95em;
    text-align: center;
}

/* تنسيق زر زيارة الموقع */
.view-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 20px;
    background: transparent;
    color: #1b3a2b;
    border: 2px solid #1b3a2b;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85em;
    font-weight: bold;
    transition: 0.3s;
}

.view-btn:hover {
    background: #1b3a2b;
    color: #fff;
}


section {
    margin: 32px 0;
    padding: 0 16px;
}
section h2 {
    color: #1b3a2b; /* أخضر غامق */
    font-size: 1.5em;
    margin-bottom: 16px;
    text-align: right;
}
ul {
    list-style: none;
    padding: 0;
}
ul li {
    display: none;
}
.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}
.card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(27,58,43,0.08); /* أخضر غامق */
    padding: 24px 18px;
    width: 260px;
    text-align: right;
    position: relative;
    border: 2px solid #eee;
    transition: transform 0.2s;
}
.card:hover {
    transform: scale(1.04);
}
.card.daily {
    border-color: #1b3a2b; /* أخضر غامق */
}
.card.weekly {
    border-color: #a7c957; /* أخضر */
    background: #e6f2d6; /* أخضر فاتح ثابت */
}
.card.weekly .crown {
    position: absolute;
    top: -18px;
    right: 16px;
    width: 40px;
    height: 40px;
}
.card.monthly {
    border-color: #c2b280; /* صحراوي */
}
.card-title {
    font-size: 1.3em;
    margin-bottom: 8px;
    font-weight: bold;
    color: #1b3a2b; /* أخضر غامق */
}
.card-price {
    font-size: 1.2em;
    color: #1b3a2b; /* أخضر غامق */
    margin-bottom: 8px;
    font-weight: bold;
}
.card.weekly .card-price {
    color: #a7c957; /* أخضر */
}
.card.monthly .card-price {
    color: #c2b280; /* صحراوي */
}
.card-desc {
    font-size: 1em;
    margin-bottom: 12px;
    color: #181818; /* أسود */
}
.card-promo {
    background: #a7c957; /* أخضر */
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.95em;
    margin-bottom: 8px;
    width: max-content;
}
.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}
.gallery img, .gallery video {
    width: 180px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(27,58,43,0.08); /* أخضر غامق */
    direction: rtl;
}
.gallery-scroll {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 16px;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: #a7c957 #f5f3e7;
    white-space: nowrap;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: transparent;
}
.gallery-scroll video {

    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(27,58,43,0.08);
    background: #181818;
    object-fit: cover;
    display: inline-block;
}
.gallery-scroll::-webkit-scrollbar {
    height: 8px;
}
.gallery-scroll::-webkit-scrollbar-thumb {
    background: #a7c957;
    border-radius: 8px;
}
.gallery-scroll::-webkit-scrollbar-track {
    background: #f5f3e7;
    border-radius: 8px;
}
.btn {
    display: inline-block;
    margin-top: 18px;
    padding: 10px 22px;
    background: #1b3a2b; /* أخضر غامق */
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
    direction: rtl;
}
.btn:hover {
    background: #000000; /* أخضر */
    color: #c2b280;
}
footer {
    background: #181818; /* أسود */
    color: #fff;
    padding: 32px 16px 16px 16px;
    text-align: center;
    border-top: 2px solid #c2b280; /* صحراوي */
    direction: rtl;
}
footer .social {
    margin-bottom: 16px;
}
footer .social a {
    color: #a7c957; /* أخضر */
    margin: 0 8px;
    text-decoration: none;
    font-size: 1.1em;
    transition: color 0.3s;
}
footer .social a:hover {
    color: #c2b280; /* صحراوي */
}
footer .contact {
    margin-bottom: 12px;
}
footer .contact a {
    color: #c2b280; /* صحراوي */
    text-decoration: none;
}
@media (max-width: 600px) {
    
      .prog-item {
        flex: 0 0 90%;
    }
    .prog-item img {
        height: 180px; /* الحفاظ على العرض Landscape في الموبايل */
    }
    
    header {
        padding: 24px 8px 12px 8px;
    }
    section {
        padding: 0 8px;
    }
    .gallery img, .gallery video {
        width: 100px;
        height: 70px;
    }
    .main-link, .btn {
        padding: 8px 12px;
        font-size: 1em;
    }
    .cards {
        flex-direction: column;
        align-items: center;
    }
    .card {
        width: 80%;
        max-width: 350px;
        margin-bottom: 12px;
        height: 180px;
        }
}
.slider-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}
.slider-video-wrapper {
    width: 260px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.slider-video-wrapper video {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(27,58,43,0.08);
    background: #181818;
    object-fit: cover;
}
.slider-btn {
    background: #a7c957;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5em;
    cursor: pointer;
    transition: background 0.2s;
}
.slider-btn:hover {
    background: #1b3a2b;
}



/* حاوية السلايدر الرئيسية */
.video-slider {
    display: flex;
    overflow-x: auto; /* السماح بالتمرير الأفقي */
    scroll-snap-type: x mandatory; /* ميزة جذب التمرير */
    gap: 15px; /* المسافة بين الفيديوهات */
    padding: 20px 10px;
    scrollbar-width: none; /* إخفاء شريط التمرير في فايرفوكس */
    -ms-overflow-style: none; /* إخفاء شريط التمرير في IE */
}

/* إخفاء شريط التمرير في كروم وسفاري لجعل التصميم أنيقاً */
.video-slider::-webkit-scrollbar {
    display: none;
}

/* عنصر الفيديو الواحد */
.video-item {
    flex: 0 0 85%; /* عرض الفيديو يأخذ 85% من الشاشة ليظهر جزء من الفيديو التالي */
    max-width: 320px; /* تحديد أقصى عرض للفيديو */
    scroll-snap-align: center; /* جذب الفيديو لمنتصف الشاشة */
    background: #000;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* 3. سلايدر البرمجة (التصميم الأفقي العريض Landscape) */
.prog-gallery-scroll {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-bottom: 15px;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    scrollbar-width: none;
}

.prog-gallery-scroll::-webkit-scrollbar {
    display: none;
}

.prog-item {
    flex: 0 0 85%; /* يجعلها عريضة جداً */
    max-width: 450px;
    scroll-snap-align: center;
    padding: 0 10px;
    text-align: center;
}

.prog-item img {
    width: 100%;
    height: 480px; /* مظهر عرضي */
    border-radius: 2px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    object-fit: cover;
    background: #fff;
    border: 1px solid #ddd;
}

.prog-info {
    margin-top: 8px;
    font-weight: bold;
    color: #1b3a2b;
}

/* 4. الباقات السعرية (التصميم القديم) */
.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.card {
    background: #fff;
    border-radius: 16px;
    padding: 24px 18px;
    width: 260px;
    text-align: right;
    position: relative;
    border: 2px solid #eee;
    transition: transform 0.2s;
}

.card:hover { transform: scale(1.04); }
.card.weekly { background: #e6f2d6; border-color: #a7c957; }

.card-title { font-size: 1.3em; font-weight: bold; color: #1b3a2b; }
.card-price { font-size: 1.2em; color: #1b3a2b; font-weight: bold; margin: 8px 0; }

/* 5. الأزرار والفوتر */
.btn, .view-btn {
    display: inline-block;
    padding: 10px 22px;
    background: #1b3a2b;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.view-btn {
    margin-top: 8px;
    background: transparent;
    color: #1b3a2b;
    border: 2px solid #1b3a2b;
    padding: 6px 15px;
    font-size: 0.9em;
}

.video-item video {
    width: 100%;
    height: auto;
    display: block;
}

/* جعل السلايدر يمتد لكامل الشاشة في الموبايل */
@media (max-width: 768px) {
    .video-slider {
        margin-left: -20px; /* تجاوز حدود البادينج الجانبي للأب */
        margin-right: -20px;
        padding-left: 20px;
        padding-right: 20px;
    }
}