.overlayimg-widget-overlay {
    position: absolute;
    height: 40%;
    bottom: 0; /* اجعلها في الأسفل بدلاً من خارج الصورة */
    left: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transform: translateY(50%);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 10; /* تأكد من ظهور الحاوية فوق الصورة */
}

.overlayimg-widget-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    /* إزالة overflow: hidden إذا لزم الأمر */
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.overlayimg-widget-container img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    transition: transform 0.3s ease;
}


.overlayimg-widget-overlay {
    position: absolute;
    height: 38%;
    bottom: -20px; /* نصف الحاوية خارج إطار الصورة */
    left: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transform: translateY(50%);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 10; /* تأكد من ظهور الحاوية فوق الصورة */
}

.overlayimg-widget-overlay h2 {
    margin-top: -5px; /* رفع النص للأعلى بمقدار 5 بكسل */
    margin-bottom: 10px; /* المسافة بين h2 و p */
    text-shadow: none; /* إزالة أي تأثير نصوص */
    border-radius: 10px; /* التأكد من أن النصوص تتماشى مع التأثير */
}

.overlayimg-widget-overlay p {
    margin-top: 0; /* تحديد المسافة بين p و العناصر أعلاه */
    text-shadow: none; /* إزالة أي تأثير نصوص */
    border-radius: 10px; /* التأكد من أن النصوص تتماشى مع التأثير */
}




.overlayimg-widget-container:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.overlayimg-widget-container:hover img {
    transform: scale(1.05);
    border-radius: 10px;
}

.overlayimg-widget-container:hover .overlayimg-widget-overlay {
    transform: translateY(0); /* تأكد من أنها في الموقع الصحيح */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}


.overlayimg-widget-container:hover .overlayimg-widget-overlay h2,
.overlayimg-widget-container:hover .overlayimg-widget-overlay p {
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}


.overlayimg-widget-link {
    display: block;
    text-decoration: none; /* إزالة التسطير عن الرابط */
}

.overlayimg-widget-link img {
    display: block;
}

.overlayimg-widget-link .overlayimg-widget-overlay {
    position: absolute;
    bottom: -2px;
    left: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transform: translateY(50%);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 10;
}

