/* Blinds Section Styles */
.blinds-section {
  width: 100%;
  max-width: 1512px;
  height: auto; /* إزالة الارتفاع الثابت */
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 80px; /* توحيد البادينج مع sec2 */
  padding-bottom: 60px; /* زيادة البادينج قليلاً أخرى من 40px إلى 60px */
  box-sizing: border-box;
}

.blinds-title-wrapper {
  width: 100%;
  max-width: 1108px;
  height: 58px;
  margin-bottom: 100px;
  text-align: center;
}

.blinds-title {
  font-family: Inter, sans-serif;
  font-size: 48px; /* توحيد حجم العنوان */
  font-weight: 700;
  color: #ededed;
  line-height: 100%;
  margin: 0;
}

.blinds-content {
  width: 100%;
  max-width: 1512px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.blinds-video-wrapper {
  width: 1520px;
  height: 600px; /* تعديل الطول ليكون نفس طول الصورة السابقة */
  display: flex;
  align-items: center;
  justify-content: center;
}

.blinds-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blinds-controls-bar {
  width: 100%;
  max-width: 1512px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  gap: 24px;
}

.blinds-toggle {
  width: 72px;
  height: 68px;
  border-radius: 100px;
  background: none;
  display: flex;
  flex-direction: column; /* إرجاع إلى column لجعل الأيقونة عمودية */
  align-items: center;
  justify-content: center;
  padding: 12px;
  gap: 10px;
  margin-bottom: 0;
}

.blinds-toggle-switch img {
  width: 20px;
  height: 10px;
  object-fit: contain;
}

.toggle-icon {
  width: 40px;
  height: 20px;
  object-fit: contain;
}

.blinds-toggle span {
  width: 45px;
  height: 15px;
  font-family: Inter, sans-serif;
  font-size: 48px; /* توحيد حجم العنوان */
  font-weight: 700;
  color: #ffffff;
  line-height: 100%;
}

@media (max-width: 600px) {
  .blinds-section {
    padding-top: 16px;
    padding-bottom: 0 !important;
    margin-bottom: 50px !important;
    overflow-x: hidden;
  }
  .blinds-title-wrapper {
    width: 422px;
    margin-bottom: 16px;
    text-align: center;
    height: auto;
    max-width: 100vw;
    padding: 0;
  }
  .blinds-title {
    font-size: 18px; /* توحيد حجم العنوان */
    font-weight: 700;
    color: #ededed;
    line-height: 100%;
    margin: 0;
  }
  .blinds-content {
    width: 440px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: 100vw;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }
  .blinds-video-wrapper {
    width: 440px;
    height: 351px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }
  .blinds-video {
    width: 440px;
    height: 351px;
    object-fit: cover;
    border-radius: 0;
  }
  .blinds-controls-bar {
    width: 424px;
    height: 73px;
    background: none;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
    gap: 0;
    margin: 0 auto 16px auto;
    flex-direction: row;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }
  .blinds-toggle {
    width: 72px;
    height: 68px;
    border-radius: 100px;
    background: none;
    display: flex;
    flex-direction: column; /* إرجاع إلى column لجعل الأيقونة عمودية */
    align-items: center;
    justify-content: center;
    padding: 12px;
    gap: 10px;
    margin-bottom: 0;
  }
  .blinds-toggle-switch {
    width: 80px !important;
    height: 40px !important;
  }
  .blinds-toggle span {
    font-size: 12px; /* تصغير خط كلمة Up/Down */
    font-weight: 700;
    color: #fff;
    text-align: center;
    line-height: 100%;
    margin-top: -2px;
    width: auto;
    height: auto;
  }
  .toggle-icon {
    width: 40px !important;
    height: 20px !important;
    object-fit: contain;
  }
  .blinds-controls-bar {
    height: 40px;
    gap: 0;
    margin: 0 auto 8px auto;
  }
  .toggle-icon {
    width: 30px !important;
    height: 15px !important;
    object-fit: contain;
    margin-left: 45%;
  }
}

/* Unified toggle system for both sections */
.toggle-unified {
  width: 56px !important;
  height: 28px !important;
  padding: 8px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  background: none !important;
  border: none !important;
  cursor: pointer !important;
}

/* Blinds section specific - smaller toggle */
.blinds-section .toggle-unified {
  width: 80px !important;
  height: 40px !important;
  padding: 12px !important;
}

.blinds-section .toggle-unified img,
.blinds-section .toggle-unified .toggle-icon {
  width: 40px !important;
  height: 20px !important;
  object-fit: contain !important;
}

/* تحكم منفصل للديسكتوب فقط - نفس حجم وموقع sec5 */
@media (min-width: 601px) {
  .blinds-section .toggle-unified {
    width: 140px !important; /* تصغير قليلاً من 160px */
    height: 70px !important; /* تصغير قليلاً من 80px */
    padding: 18px !important;
    transform: translateX(-100px); /* تحريك قليلاً لليمين */
  }
  
  .blinds-section .toggle-unified img,
  .blinds-section .toggle-unified .toggle-icon {
    width: 70px !important; /* تصغير قليلاً من 80px */
    height: 35px !important; /* تصغير قليلاً من 40px */
    object-fit: contain !important;
  }
}

.toggle-unified img,
.toggle-unified .toggle-icon {
  width: 28px !important;
  height: 14px !important;
  object-fit: contain !important;
}

/* تعديل كلمة Up/Down */
.toggle-unified .toggle-label,
.toggle-unified span,
.toggle-label {
  font-family: Inter, sans-serif !important;
  font-size: 18px !important; /* نفس حجم ON/OFF */
  font-weight: 700 !important;
  color: #ffffff !important;
  line-height: 100% !important;
  text-align: center !important;
  margin-top: -8px !important;    /* رفع الكلمة لفوق أكثر */
  margin-left: 16px !important;   /* إرجاع الموقع الأصلي */
  display: block !important;
}

/* تعديل كلمة Up/Down للديسكتوب فقط - دون التأثير على الموبايل */
@media (min-width: 601px) {
  .blinds-section .toggle-unified .toggle-label,
  .blinds-section .toggle-unified span,
  .blinds-section .toggle-label {
    font-size: 12px !important; /* تكبير الخط للديسكتوب */
    margin-left: -200px !important; /* تحريك لليسار للديسكتوب */
  }
}

.toggle-row {
  width: 424px !important;
  height: 73px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  padding-right: 48px !important;
  background: none !important;
  border-radius: 30px !important;
  box-sizing: border-box !important;
  margin: 0 auto 16px auto !important;
}

@media (max-width: 600px) {
  .toggle-row {
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    padding: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 auto 24px auto !important;
  }
  
  .toggle-unified {
    width: 40px !important;
    height: 20px !important;
    padding: 6px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border-radius: 20px !important;
    border: none !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
    gap: 6px !important;
  }
  
  .toggle-unified.is-active {
    background: transparent !important;
  }
  
  .toggle-unified img,
  .toggle-unified .toggle-icon {
    width: 40px !important;
    height: 20px !important;
    object-fit: contain !important;
    margin: 0 !important;
    opacity: 0.8;
    transition: opacity 0.2s ease !important;
  }
  
  .toggle-unified.is-active img,
  .toggle-unified.is-active .toggle-icon {
    opacity: 1;
    width: 40px !important;
    height: 20px !important;
  }
  
  .toggle-unified .toggle-label,
  .toggle-unified span {
    font-family: Inter, sans-serif !important;
    font-size: 18px !important; /* نفس حجم ON/OFF */
    font-weight: 700 !important; /* نفس وزن ON/OFF */
    color: #ffffff !important;
    line-height: 100% !important; /* نفس ارتفاع ON/OFF */
    text-align: center !important;
    margin: 0 !important;
    white-space: nowrap !important;
  }
  
  /* إزالة التأثير البصري في الموبايل */
  .blinds-toggle:focus,
  button:focus,
  input:focus,
  select:focus,
  textarea:focus {
      outline: none !important;
      box-shadow: none !important;
  }
  
  .blinds-toggle:active,
  button:active,
  input:active,
  select:active,
  textarea:active {
      outline: none !important;
      box-shadow: none !important;
  }
}

/* Mobile Small - تكبير أيقونة Up/Down */
@media (max-width: 440px) {
  .toggle-row {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 auto !important;
  }
  
  .cinema-toggle {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    text-align: center !important;
    position: relative !important;
  }
  
  .toggle-unified {
    width: 40px !important;
    height: 20px !important;
    padding: 6px !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  .toggle-unified img,
  .toggle-unified .toggle-icon {
    width: 40px !important;
    height: 20px !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain !important;
    margin: 0 auto !important;
    display: block !important;
    opacity: 1 !important;
  }
  
  .toggle-unified .toggle-label,
  .toggle-unified span {
    font-size: 18px !important; /* نفس حجم الكلام في الديسكتوب */
    font-weight: 700 !important; /* نفس وزن الكلام في الديسكتوب */
    text-align: center !important;
    margin-top: 15px !important;
    margin: 15px auto 0 auto !important;
    display: block !important;
    line-height: 100% !important;
  }
}

/* إضافة CSS أكثر تحديداً للتغلب على التداخل */
@media (max-width: 600px) {
  .blinds-section .toggle-unified img,
  .blinds-section .toggle-unified .toggle-icon,
  .blinds-section .toggle-icon {
    width: 60px !important;
    height: 60px !important;
    max-width: 18vw !important;
    max-height: 18vw !important;
    object-fit: contain !important;
    margin: 0 auto !important;
    display: block !important;
    opacity: 1 !important;
  }
  
  .blinds-section .toggle-unified {
    width: 60px !important;
    height: 60px !important;
    padding: 10px 0 !important;
    gap: 8px !important;
  }
}

/* CSS أكثر تحديداً للتغلب على التداخل من sec4.css */
.blinds-section .toggle-icon,
.blinds-section .toggle-unified .toggle-icon,
.blinds-section .toggle-unified img {
  width: 60px !important;
  height: 60px !important;
  max-width: 18vw !important;
  max-height: 18vw !important;
  object-fit: contain !important;
  margin: 0 auto !important;
  display: block !important;
  opacity: 1 !important;
}

.blinds-section .toggle-unified {
  width: 60px !important;
  height: 60px !important;
  padding: 10px 0 !important;
  gap: 8px !important;
}

/* تأكيد التوسيط للشاشات الصغيرة */
@media (max-width: 600px) {
  .blinds-section .toggle-row {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
  }
  
  .blinds-section .cinema-toggle {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    text-align: center !important;
  }
}

/* حذف السكرول من سكشن Up/Down */
.blinds-section {
  overflow: visible !important; /* Changed to visible for desktop toggle visibility */
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

/* إضافة مسافة للموبايل بين السكشنين */
@media (max-width: 600px) {
  .blinds-section {
    margin-bottom: 50px !important;
  }
}

/* تنسيق نص Up/Down أعلى السكشن السابع */
.updown-section-text {
  width: 100%;
  text-align: center;
  margin-bottom: 10px;
  padding: 0;
}

.updown-section-text span {
  font-family: Inter, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  line-height: 100%;
  text-align: center;
  display: inline-block;
}

.blinds-section .toggle-row {
  overflow: visible !important; /* Changed to visible for desktop toggle visibility */
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.blinds-section .cinema-toggle {
  overflow: visible !important; /* Changed to visible for desktop toggle visibility */
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

/* حذف سكرول WebKit */
.blinds-section::-webkit-scrollbar,
.blinds-section .toggle-row::-webkit-scrollbar,
.blinds-section .cinema-toggle::-webkit-scrollbar {
  display: none !important;
}

/* تنسيق نص Up/Down */
.updown-text {
  font-family: Inter, sans-serif !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  text-align: center !important;
  margin-top: 0 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

/* Desktop Toggle Visibility - Desktop Only (≥769px) */
@media (min-width: 769px) {
  .blinds-section .toggle-row,
  .blinds-section .toggle-unified {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 16px auto !important;
    position: relative !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 2 !important;
    width: 100% !important;
    text-align: center !important;
  }

  .blinds-section .toggle-unified {
    width: 240px !important;   /* desktop width */
    height: 120px !important;  /* desktop height */
    padding: 20px 0 !important;
    gap: 15px !important;
    margin: 0 auto !important;
    position: relative !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }

  .blinds-section .toggle-unified img,
  .blinds-section .toggle-unified .toggle-icon {
    width: 120px !important;   /* bigger icon */
    height: 120px !important;
    max-width: none !important;
    max-height: none !important;
  }

  .blinds-section .updown-text {
    font-size: 18px !important;
    margin-top: 8px !important;
    text-align: center !important;
  }
  
  /* Ensure desktop visibility */
  .blinds-section .cinema-toggle {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  
  /* Desktop overflow fixes */
  .blinds-section,
  .blinds-section .toggle-row,
  .blinds-section .cinema-toggle {
    overflow: visible !important;
  }
}
