/* توزيع البطاقات فقط، دون تعديل السكشن أو الـcontainer */
#bb8585be-412b-4d47-9ab3-de81127a65d7 .grid {
    display: grid !important;
    grid-template-columns: minmax(0, 41fr) minmax(0, 57fr) !important;
    grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
    gap: 20px !important;
    aspect-ratio: 924 / 326;
    direction: rtl;
}

/* إعدادات البطاقات */
#bb8585be-412b-4d47-9ab3-de81127a65d7 .grid > div {
    position: relative;
    grid-column: 2 !important;
    grid-row: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: 100%;
    border-radius: 20px !important;
    overflow: hidden;
    isolation: isolate;
}

/* البطاقة الكبيرة على اليمين */
#bb8585be-412b-4d47-9ab3-de81127a65d7 .grid > div:first-child {
    grid-column: 1 !important;
    grid-row: 1 / 4 !important;
}

/* البطاقات الأفقية على اليسار */
#bb8585be-412b-4d47-9ab3-de81127a65d7 .grid > div:nth-child(2) {
    grid-row: 1 !important;
}

#bb8585be-412b-4d47-9ab3-de81127a65d7 .grid > div:nth-child(3) {
    grid-row: 2 !important;
}

#bb8585be-412b-4d47-9ab3-de81127a65d7 .grid > div:nth-child(4) {
    grid-row: 3 !important;
}

/* الرابط يغطي البطاقة بالكامل */
#bb8585be-412b-4d47-9ab3-de81127a65d7 .grid > div > a {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    overflow: hidden;
    text-decoration: none;
    direction: rtl;
}

/* الصور دون قص أو تشويه في الوضع الطبيعي */
#bb8585be-412b-4d47-9ab3-de81127a65d7 .grid img {
    position: absolute !important;
    inset: 0 !important;
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center;
    transform: scale(1) !important;
    transition: transform 450ms ease !important;
}

/* النص داخل أسفل يمين البطاقة */
#bb8585be-412b-4d47-9ab3-de81127a65d7 .grid a > .bottom-0 {
    position: absolute !important;
    inset: auto 0 0 0 !important;
    padding: 18px 26px !important;
    z-index: 2;
    text-align: right !important;
}

#bb8585be-412b-4d47-9ab3-de81127a65d7 .grid h3 {
    margin: 0 !important;
    color: #fff !important;
    font-family: inherit;
    font-size: clamp(18px, 2.2vw, 28px) !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    text-align: right !important;
    overflow-wrap: anywhere;
}

/* إبقاء أسهم البطاقات الصغيرة فوق الصورة */
#bb8585be-412b-4d47-9ab3-de81127a65d7 .grid a > .rounded-full {
    z-index: 3;
}

/* تكبير الصورة فقط عند الهوفر */
@media (hover: hover) and (pointer: fine) {
    #bb8585be-412b-4d47-9ab3-de81127a65d7 .grid > div:hover img {
        transform: scale(1.06) !important;
    }
}

/* الموبايل: عمود واحد مع الحفاظ على أبعاد الصور */
@media (max-width: 767px) {
    #bb8585be-412b-4d47-9ab3-de81127a65d7 .grid {
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: none !important;
        grid-auto-rows: auto !important;
        aspect-ratio: auto;
        gap: 14px !important;
    }

    #bb8585be-412b-4d47-9ab3-de81127a65d7 .grid > div:nth-child(n) {
        grid-column: 1 !important;
        grid-row: auto !important;
        height: auto !important;
        min-height: 0 !important;
        border-radius: 16px !important;
    }

    #bb8585be-412b-4d47-9ab3-de81127a65d7 .grid > div > a {
        height: auto;
    }

    #bb8585be-412b-4d47-9ab3-de81127a65d7 .grid img {
        position: relative !important;
        inset: auto !important;
        height: auto !important;
    }

    #bb8585be-412b-4d47-9ab3-de81127a65d7 .grid a > .bottom-0 {
        padding: 10px 16px !important;
    }

    #bb8585be-412b-4d47-9ab3-de81127a65d7 .grid h3 {
        font-size: clamp(16px, 4.5vw, 22px) !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    #bb8585be-412b-4d47-9ab3-de81127a65d7 .grid img {
        transition: none !important;
    }
}

#bb8585be-412b-4d47-9ab3-de81127a65d7 > .container > .text-center:has(> a[href="https://hadbaoud.com/categories"]) {
    display: none !important;
}
nav#main-nav {
    height: 90px !important;
}

#zid-wa-btn {

    left: calc(20px - 0px)!important;
    right: auto !important;
   
}
button.scroll-to-top.btn.bg-primary-200.text-white.\!h-11.\!w-11.size-10.rounded-full.relative.inline-flex.items-center.justify-center.transition-all.duration-400.ease-in-out.\!p-0.active {
    display: none;
}