.image-alaiham {
    position: relative;
    width: 100%;
    height: 100%;
    overflow:hidden;
    
  }

  /* الصورة */
.image-alaiham img {
    width: 100%;
    height: 100%;
    margin-top: 0px;
    object-fit: cover;
    display: block;
  }

  /* المربع فوق الصورة */
.overlay-box {
    position: absolute;
    top: 90%;
    left: 85%;
    transform: translate(-50%, -50%);
    width: 25%;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.5); /* شفاف */
    color: #fff;
    font-size: 5px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  /* تأثير عند التمرير */
.overlay-box:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%) scale(1.05);
  }



/*   الـــــــــــمــــــاركات   */

body {
   
    justify-content: center;
    align-items: center;
    
  }

  /* المربع الرئيسي */
.custom-brands-box {
    width: 90.2%;
    margin-top: 20px;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    background: linear-gradient(180deg, #f5f5f5);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  }

  /* العنوان */
.custom-brands-box h2 {
    margin-bottom: 20px;
    color: #2c2c2c;
    font-size: 24px;
  }

  /* شبكة الصور */
.custom-brands-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 صور بالصف */
    gap: 20px; /* مسافة بين الصور */
    justify-items: center;
    align-items: center;
  }

  /* العنصر داخل الشبكة */
.custom-grid-item {
    width: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  /* الروابط */
.custom-grid-item a {
    display: block;
    width: 100%;
    height: 100%;
  }

  /* الصور */
.custom-brand-img {
    max-width: 100%;
    max-height: 100%;
    opacity: 0.4; /* تبدأ شفافة */
    transition: opacity 0.5s ease, transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    user-select: none;
    object-fit: contain; /* يحافظ على الأبعاد الطبيعية */
  }

  /* عند المرور أو اللمس */
.custom-brand-img.hovered {
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
  }

  /* عند الضغط ترجع شفافة */
.custom-brand-img.active {
    opacity: 0.4;
    transform: scale(1);
    box-shadow: none;
  }

/*  الصور بعد الماركات  */

/* حاوية الصورة */
.image-extra {
    position: relative;
    width: 80%;
    height: 100%;
    margin: 30px auto;
    overflow: hidden;
    border-radius: 15px;
  }

  /* الصورة */
  .image-extra img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  /* المربع فوق الصورة */
  .extra-box {
    position: absolute;
    top: 90%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.5); /* شفاف */
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  /* تأثير عند التمرير */
  .extra-box:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%) scale(1.05);
  }



  /*    الحاوية صور متحركه */
  .drag-gallery-container {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    padding: 30px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    background: linear-gradient(135deg, #fcfcfc, #1c1c1c);
    text-align: center;
  }

  .drag-gallery-new {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    padding: 30px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    
    text-align: center;
  }

  /* إخفاء شريط التمرير */
  .drag-gallery-container::-webkit-scrollbar {
    display: none;
  }

  /* العناصر (الصور) */
  .drag-gallery-item {
    display: inline-block;
    width: 150px;
    height: 150px;
    /* margin: 0 10px; */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 14px rgba(0,0,0,0.25);
    transition: transform 0.3s ease;
    background: #fff;
    vertical-align: middle;
  }

  .drag-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  /* تكبير عند الوقوف */
  .drag-gallery-item:hover {
    transform: scale(1.08);
  }

  /* مربع "عرض المزيد" */
  .drag-more-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 150px;
    margin: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, #d4af37);
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 8px 14px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .drag-more-box span {
    margin-left: 8px;
    font-size: 30px;
  }

  .drag-more-box:hover {
    transform: scale(1.08);
    opacity: 0.9;
  }

  /* متجاوب مع الهاتف */
  @media (max-width: 600px) {
    .drag-gallery-item, 
    .drag-more-box {
      width: 220px;
      height: 220px;
    }
  }