/* تنسيق الحاوية الأساسية */
.categorieen {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin: 20px;
  text-align: center; /* جعل النص في المنتصف */
  padding: 20px; /* مساحة داخلية */
  background-color: #f5f5f5; /* خلفية خفيفة */
  border-radius: 12px; /* زوايا دائرية */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* إضافة ظل ناعم */
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto; /* تحديد عرض ثابت في المنتصف */
}


/* تنسيق البطاقات */
.card {
  background-color: #fff;
  color: #fff;
  border-radius: 12px;
  width: 18%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.card a {
  color: #fff;
  text-decoration: none;
}

.card i {
  font-size: 2rem;
  margin-bottom: 10px;
}

.card h3 {
  font-size: 1.25rem;
  margin: 0;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding-top: 10px;
  font-family: 'Arial', sans-serif;
}

/* الألوان الخاصة بكل بطاقة */
.card:nth-child(1) {
  background-color: #007BFF; /* الأزرق */
}

.card:nth-child(2) {
  background-color: #28A745; /* الأخضر */
}

.card:nth-child(3) {
  background-color: #FFB300; /* الأصفر */
}

.card:nth-child(4) {
  background-color: #d81c49; /* الأحمر (لون بريدا) */
}

.card:nth-child(5) {
  background-color: #17A2B8; /* الأزرق السماوي */
}

/* تأثيرات عند المرور بالمؤشر */
.card:hover {
  background-color: rgba(255, 255, 255, 0.1); /* تغيير اللون الخلفي قليلاً عند التمرير */
}

.card:hover i {
  transform: scale(1.1); /* تكبير الأيقونة عند التمرير */
}

/* التوافق مع الأجهزة الصغيرة */
@media (max-width: 768px) {
  .card {
    width: 48%; /* عرض أصغر على الشاشات الصغيرة */
  }
}

@media (max-width: 480px) {
  .card {
    width: 100%; /* عرض البطاقات كاملة في الشاشات الأصغر */
  }
}



.playlist-container {
    max-width: 780px;
    margin: auto;
    text-align: center;
}

.video-player {
    width: 100%;
    height: 550px;
    border: 1px solid #ccc;
    margin-bottom: 10px;
    transition: opacity 0.5s ease-in-out;
}

.fading {
    opacity: 0;
}

.playlist {
    list-style: none;
    padding: 0;
}

.playlist li {
    padding: 10px;
    cursor: pointer;
    background: #f4f4f4;
    margin-bottom: 5px;
    border-radius: 5px;
    transition: background 0.3s;
}

.playlist li:hover {
    background: #ddd;
}

.playlist li.active {
    background: #3498db;
    color: white;
    font-weight: bold;
}


.language-links {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.language-links h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
}

.languages {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.lang-btn {
    display: inline-block;
    padding: 10px 15px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    transition: background 0.3s ease-in-out;
}

.lang-btn:hover {
    background: #217dbb;
}


.author-bio {
    display: none; /* إخفاء العنصر بالكامل */
}

video {
    width: 100% !important;
    height: auto !important;
    max-width: 780px; /* حتى لا يتجاوز الحجم الأصلي */
    display: block;
    margin: 0 auto; /* توسيط الفيديو */
}