:root {
  --dark-background: #0d0f14;
  --main-text-color: #f0f0f0;
  --secondary-text-color: #a0a0a0;
  --primary-accent: #007bff;
  --card-background: #1a1e27;
  --border-color: #2a303a;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Cairo', sans-serif;
  background: url('https://l.top4top.io/p_3500zvq0l1.jpg') no-repeat center center fixed;
  background-size: cover;
  color: var(--main-text-color);
  min-height: 100vh;
}

.container-wrapper {
  backdrop-filter: none !important;
  background-color: rgba(0, 0, 0, 0.4);
  max-width: 1000px; /* تحديد أقصى عرض للحاوية */
  margin: 0 auto; /* توسيط الحاوية في منتصف الصفحة */
  padding: 20px;
}

.welcome-section {
  background-color: rgba(26, 30, 39, 0.92);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  padding: 40px;
  text-align: center;
}

.logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 25px;
}

.logo {
  width: 180px;
  height: auto;
  margin-bottom: 15px;
  display: block;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.english-name {
  color: var(--secondary-text-color);
  font-size: 0.9rem;
}

.main-heading {
  font-size: 1.9rem;
  line-height: 1.5;
  margin-bottom: 15px;
  color: var(--primary-accent);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
  animation: fadeInDown 1.2s ease;
}

@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 30px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.features-list li .fa-solid {
  font-size: 1.5rem;
  margin-left: 15px;
}

.buttons-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
  gap: 20px;
  flex-wrap: wrap;
}

.scroll-btn,
.start-journey-btn,
.action-btn {
  display: inline-block;
  border-radius: 50px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
}

.scroll-btn {
  padding: 12px 28px;
  background-color: #28a745;
  color: white;
  font-size: 1.05rem;
}

.scroll-btn:hover {
  background-color: #218838;
  transform: translateY(-3px);
}

.start-journey-btn {
  background: linear-gradient(135deg, #ff4d4d, #ff9900);
  color: white;
  padding: 14px 28px;
  font-size: 18px;
  box-shadow: 0 0 10px rgba(255, 77, 77, 0.5);
  border: none;
}

.start-journey-btn:hover {
  transform: scale(1.1) rotate(-1deg);
  box-shadow: 0 0 20px rgba(255, 153, 0, 0.8);
  background: linear-gradient(135deg, #ff9900, #ff4d4d);
}

.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f7a300;
  color: white;
  padding: 15px 30px;
  font-size: 1.1rem;
  margin-top: 40px;
}

.action-btn .fa-solid {
  font-size: 1.2rem;
  margin-left: 10px;
}

.dropdown-container {
  position: relative;
  display: inline-block;
}

.dropdown-button {
  background-color: #f7a300;
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.dropdown-button:hover {
  background-color: #ffb732;
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.dropdown-arrow {
  transition: transform 0.3s ease;
}

.dropdown-menu {
  position: absolute;
  top: auto;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  list-style: none;
  padding: 10px 0;
  margin: 0;
  background-color: #1a1e27;
  border: 1px solid #2a303a;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
  min-width: 200px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.dropdown-menu li a {
  display: block;
  padding: 12px 20px;
  text-decoration: none;
  color: #a0a0a0;
  font-size: 1rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-menu li a:hover {
  background-color: #2a303a;
  color: white;
}

.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-button.active .dropdown-arrow {
  transform: rotate(180deg);
}

.features-section {
  background-color: rgba(26, 30, 39, 0.92);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  padding: 40px 20px;
  text-align: center;
}

.features-btn,
.features-section h2 {
  color: var(--main-text-color);
  font-size: 2rem;
  margin-bottom: 30px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.features-btn {
  background: none;
  border-radius: 0;
  padding: 0;
  display: inline-block;
}

.features-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* توسيط العناصر داخل الشبكة */
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto 50px;
  padding: 0 10px;
}

.feature-item {
  flex: 0 0 30%;
  min-width: 150px;
  background: #1a1e27;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  color: white;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
  transition: transform 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
}

.feature-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 10px;
  object-fit: contain;
}

.feature-name {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--main-text-color);
}

.search-form {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

.search-form input {
  background-color: var(--dark-background);
  border: 1px solid var(--primary-accent);
  padding: 15px 20px;
  border-radius: 50px;
  color: var(--main-text-color);
  width: 350px;
  font-size: 1rem;
  outline: none;
}

.search-form input::placeholder {
  color: var(--secondary-text-color);
}

.search-form button {
  background-color: var(--primary-accent);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  margin-right: 15px;
}

.platforms-section {
  background-color: rgba(26, 30, 39, 0.9);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  padding: 25px;
  text-align: center;
  margin-top: 25px;
}

.platform-heading {
  font-size: 22px;
  color: white;
  line-height: 1.6;
  margin-bottom: 30px;
}

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 20px;
  justify-items: center;
  align-items: center;
}

.platform-logo {
  padding: 10px;
  background-color: var(--dark-background);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 50px;
}

.platform-logo img {
  max-width: 80px;
  max-height: 35px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.platform-logo:hover img {
  opacity: 1;
  transform: scale(1.1);
}


  /* 1. إزالة الخلفية الغامقة والحدود من القسم بالكامل */
  .kids-section {
    background-color: transparent !important; /* إزالة اللون rgba(26, 30, 39, 0.92) */
    background: transparent !important;
    border: none !important; /* إزالة الإطار */
    box-shadow: none !important; /* إزالة الظل المحيط بالصندوق */
    padding: 40px 20px;
    margin-top: 20px;
    text-align: center;
  }

  /* 2. تمييز النص ليظهر بوضوح فوق الخلفية المتغيرة */
  .kids-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    /* إضافة توهج (Glow) وردي مبهج ليناسب جو الأطفال */
    text-shadow: 0 0 15px rgba(255, 105, 180, 0.8), 2px 2px 5px rgba(0, 0, 0, 0.9);
    margin: 15px 0;
    display: inline-block;
    padding: 10px 20px;
    /* طبقة زجاجية خفيفة جداً تحت النص فقط لضمان القراءة */
    background: rgba(0, 0, 0, 0.2); 
    backdrop-filter: blur(4px);
    border-radius: 50px;
  }

  /* 3. تنسيق أيقونة التلفاز بجانب النص */
  .kids-content i {
    filter: drop-shadow(0 0 10px #FF69B4);
    animation: bounce 2s infinite; /* إضافة حركة بسيطة للأيقونة */
  }

  /* 4. تنسيق الصورة لتندمج مع الخلفية */
  .kids-image {
    max-width: 900px;
    width: 95%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 3px solid rgba(255, 105, 180, 0.3); /* إطار وردي شفاف */
    margin-top: 20px;
    transition: transform 0.3s ease;
  }

  .kids-image:hover {
    transform: scale(1.02);
  }

  /* أنيميشن بسيط للأيقونة */
  @keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
  }

/* إضافة تنسيقات iframes لضمان ظهورها */
.movie-slider,
.series-slider {
  width: 100%;
  height: 150px;
  border: none;
  margin-top: 20px;
  margin-bottom: 20px;
}

.section-heading {
  color: var(--main-text-color);
  font-size: 1.8rem;
  margin-top: 30px;
  margin-bottom: 15px;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

@media (max-width: 768px) {
  .main-heading {
    font-size: 1.4rem !important;
  }
  .search-form input {
    width: 100% !important;
    font-size: 0.95rem;
  }
  .search-form button {
    width: 100%;
    margin: 10px 0 0 0;
  }
  .platforms-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  .buttons-container {
    flex-direction: column;
    gap: 15px;
  }
  .start-box {
    margin-top: 0 !important;
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .main-heading {
    font-size: 1.2rem !important;
  }
  .platforms-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}