body {
background-image: url('img/bgcar.png');
background-repeat: repeat; /* تكرار الـ SVG */
background-size: auto; /* الحجم الافتراضي للـ SVG */
}
.service-card {
    border: 1px solid #d4af37;
    border-radius: 8px;
    margin-bottom: 20px;
    background-color: #f8f9fa;
    flex-grow: 1;
    height: 500px; /* تحديد الطول الثابت */
    overflow-y: auto; /* لإظهار شريط تمرير إذا كان المحتوى أكبر من 400px */

}
.short-card {
 height: 300px; /* تحديد الطول للعنصر الرابع */
}
.service-card h5 {
    background-color: #d4af37;
    color: #fff;
    padding: 10px;
    border-radius: 8px 8px 0 0;
}
.gold-text {
    color: #d4af37;
    font-weight: bold;
}
.navbar-nav .nav-link {
    position: relative;
    color: #fff;
    font-size: 18px;
    padding: 10px 20px;
    transition: all 0.3s ease;
}
.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: url('img/s.png') no-repeat center center;
    background-size: contain;
    transition: width 0.3s ease;
    z-index: -1;
}
.navbar-nav .nav-link:hover::after {
    width: 100%;
}
.navbar-nav .nav-link:hover {
    color: transparent;
}
.navbar {
    background-color: #8a770f;
}
.carousel-inner img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
}
/* ضبط المربعات في منتصف الشاشة */
.container-center {
    height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* تنسيق المربعات */
  /* إعدادات المربعات */
  .box {
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f0f0f0;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}
.box:hover {
    background-color: #e3b537;
    color: white;
}

.box img {
    width: 100px;
    height: 100px;
    margin-bottom: 10px;
}


/* إضافة بعض المسافات بين المربعات */
.box + .box {
    margin-left: 20px;
}

.image-gallery {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap; /* يسمح بالتفاف الصور إذا كانت كثيرة */
    gap: 10px; /* مسافة بين الصور */
}

.image-gallery img {
    max-width: 100px; /* عرض الصورة ثابت */
    height: auto; /* يحافظ على نسبة الطول إلى العرض */
    object-fit: cover; /* يضمن ملاءمة الصورة داخل الإطار */
}

/* الحاوية */
.image-gallery {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 10px;
}

/* تنسيق الصور الافتراضي */
.image-gallery img {
    max-width: 100px;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease-in-out; /* تأثير الانتقال للتكبير */
}

/* تكبير الصورة عند التمرير */
.image-gallery img:hover {
    transform: scale(3.5); /* نسبة التكبير */

    
}
