/* Add custom CSS styles below */ 
/* تقليل المسافات بين أقسام الصفحة الرئيسية - سلة */
main > section,
main .s-block,
main .container-fluid {
    margin-top: 0 !important;
    margin-bottom: 15px !important;
}

/* تقليل الحشو داخل الأقسام */
main .s-block-container,
main .s-block__content {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* تقليل المسافة حول العناوين */
main .s-block-title {
    margin-bottom: 10px !important;
    margin-top: 10px !important;
}

/* تقليل الفراغ بين البانر والأقسام */
main {
    gap: 0 !important;
}

/* موبايل */
@media (max-width: 768px) {
    main > section,
    main .s-block {
        margin-bottom: 10px !important;
    }
}
/* =====================================================
   برواز كلاسيكي + ظل + حركة
   خاص فقط بتصنيفات البدوية
   component-id="1034117188"
===================================================== */

section[component-id="1034117188"] .square-links__grid > li {
    position: relative !important;
    box-sizing: border-box !important;

    background: #ffffff !important;

    /* البرواز الخارجي */
    border: 2px solid #c6a15b !important;
    border-radius: 12px !important;

    /* مساحة تمنع الصورة والنص من لمس البرواز */
    padding: 8px 8px 10px !important;

    overflow: hidden !important;

    /* برواز داخلي + ظل خفيف تحت */
    box-shadow:
        inset 0 0 0 3px #ffffff,
        inset 0 0 0 4px rgba(198, 161, 91, 0.55),
        0 6px 14px rgba(0, 0, 0, 0.09) !important;

    transition:
        transform .28s ease,
        box-shadow .28s ease !important;
}


/* خط داخلي إضافي يعطي شكل البرواز الكلاسيكي */
section[component-id="1034117188"] .square-links__grid > li::before {
    content: "" !important;
    position: absolute !important;

    top: 6px !important;
    right: 6px !important;
    bottom: 6px !important;
    left: 6px !important;

    border: 1px solid rgba(198, 161, 91, 0.50) !important;
    border-radius: 7px !important;

    pointer-events: none !important;
    z-index: 10 !important;
}


/* الرابط */
section[component-id="1034117188"] .square-links__grid > li > a {
    position: relative !important;
    z-index: 2 !important;

    display: flex !important;
    flex-direction: column !important;

    width: 100% !important;
    height: 100% !important;

    overflow: hidden !important;
    border-radius: 7px !important;
}


/* الصورة تظل داخل البرواز */
section[component-id="1034117188"] .square-links__grid > li img {
    display: block !important;

    width: 100% !important;
    max-width: 100% !important;

    height: auto !important;

    object-fit: contain !important;
    object-position: center !important;

    margin: 0 auto !important;

    border-radius: 6px !important;
}


/* اسم التصنيف */
section[component-id="1034117188"] .square-links__grid > li > a > *:last-child {
    box-sizing: border-box !important;

    width: 100% !important;

    margin: 8px 0 0 !important;
    padding: 7px 7px 4px !important;

    text-align: center !important;
    line-height: 1.4 !important;

    background: #ffffff !important;

    /* عشان النص ميقعدش على خط البرواز */
    min-height: 38px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    position: relative !important;
    z-index: 3 !important;
}


/* حركة الكمبيوتر */
@media (hover: hover) {

    section[component-id="1034117188"] .square-links__grid > li:hover {
        transform: translateY(-5px) !important;

        box-shadow:
            inset 0 0 0 3px #ffffff,
            inset 0 0 0 4px rgba(198, 161, 91, 0.72),
            0 11px 22px rgba(0, 0, 0, 0.13) !important;
    }
}


/* حركة الضغط على الموبايل */
@media (hover: none) {

    section[component-id="1034117188"] .square-links__grid > li:active {
        transform: scale(0.97) !important;

        box-shadow:
            inset 0 0 0 3px #ffffff,
            inset 0 0 0 4px rgba(198, 161, 91, 0.75),
            0 4px 9px rgba(0, 0, 0, 0.10) !important;
    }
}


/* ضبط الجوال فقط بدون تغيير ترتيب العناصر */
@media (max-width: 767px) {

    section[component-id="1034117188"] .square-links__grid > li {
        padding: 6px 6px 8px !important;
    }

    section[component-id="1034117188"] .square-links__grid > li > a > *:last-child {
        margin-top: 5px !important;
        padding: 6px 3px 3px !important;

        font-size: 13px !important;
        line-height: 1.35 !important;

        min-height: 34px !important;
    }
}