/* home */
.film {
    margin-bottom: 2rem;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    height: 200px;
    display: flex;
    justify-content: start;
    align-items: end;
    width: 100%;
    border: 1px solid #D6D6D6;
    overflow: hidden;
    transition: all .3s;
}

.film:hover {
    background-size: 150% 150%;
    transition: all .3s;
}

.film-main {
    height: 350px;
}

.film h2 {
    color: #242424;
    font-size: 24px;
    font-weight: bold;
    background-color: #FFF;
    padding: 0.6rem 1rem .6rem 3rem;
    width: 100%;
    margin: 0;
    font-family: 'Roboto', sans-serif;
}

.film span {
    color: #DF4319;
    font-size: 16px;
    background-color: #FFF;
    padding: 0.6rem 2rem;
}

.work {
    border: 1px solid #FF5733;
    overflow: hidden;
    position: relative;
    width: 350px;
height: 420px;}

.work img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* ضمان أن الصورة تغطي المساحة دون تشويه */
    transition: transform 0.1s ease;
}

h2 {
    font-size: 18px;
    font-weight: bold;
    color: #231F20;
    text-align: center;
    padding: 10px;
    margin: 0;
    background-color: #FFF;
    width: 100%;
    margin-top: 10px; /* مسافة من الصورة */
    font-family: 'cairo', sans-serif;
	max-width: 350px;
}

.rowe {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}
.scrollspy_row .work h2 {
    padding: 1rem;
}

.work span {
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: #ffffff4d;
    color: #FFF;
    font-size: 16px;
    font-weight: bold;
    padding: 0.6rem 2rem;
}

.rowe {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* تقليص المسافة بين الأعمدة */
    justify-content: center; /* محاذاة الأعمدة بشكل مناسب */
}

.work h4 {
    padding-right: 1rem;
    color: #DF4319;
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    margin-top: 1rem;
    font-size: 14px;
    font-weight: bold;
}

.work:hover .anmation-img {
    transform: scale(1.04);
    transition: transform 0.9s ease;
}

/* تأثير لتغيير لون النص عند المرور بالماوس */
.work:hover h2 {
    color: #FF5733; /* تغيير اللون إلى اللون البرتقالي */
    transition: color 0.3s ease;
}

/* استعلام وسائط للشاشات الصغيرة */
@media (max-width: 767px) {
    .work img {
        width: 100%;
        height: auto;
        margin-bottom: 1rem;
    }

    h2 {
        font-size: 16px;
		font-family: 'cairo', sans-serif;
		line-height:30px;
		
    }
}

@media (max-width: 768px) {
    .festival img {
        width: 100%;
        height: auto;
        margin-bottom: 1rem;
    }

    .festival {
        flex-flow: column;
    }

    .work {
        margin-bottom: 1.5rem;
    }
}