/* AMAJED Home | Our Partners: supplied Modular + KASTEL marks and site dark theme.
   Intentionally isolated to Home / Our Partners; existing Hero, other pages and assets untouched.
   Original supplied logos are black/transparent, so dark mode uses pale logo tiles. */

/* The supplied Modular artwork is black on transparency; never invert it. */
body[data-page="home"] .amajed-partners__item--modular img,
body[data-page="home"] .amajed-partners__item--kastel img {
    filter: none;
    object-fit: contain;
    object-position: center;
}
body[data-page="home"] .amajed-partners__item--modular img {
    width: min(100%, 195px);
}
body[data-page="home"] .amajed-partners__item--kastel img {
    width: min(100%, 188px);
}

/* Scope to the site's actual theme selector, independent of /ar and /en routing. */
html[data-theme="dark"] body[data-page="home"] .amajed-partners {
    background: linear-gradient(105deg, #0b1926 0%, #112a39 48%, #0b1926 100%);
    border-top-color: rgba(55, 191, 225, .57);
    color: #eaf7fc;
}
html[data-theme="dark"] body[data-page="home"] .amajed-partners__title,
html[data-theme="dark"] body[data-page="home"] .amajed-partners__title[lang="ar"] span {
    color: #eff8ff;
}
html[data-theme="dark"] body[data-page="home"] .amajed-partners__title strong {
    color: #54d8f4;
}
html[data-theme="dark"] body[data-page="home"] .amajed-partners__title::before,
html[data-theme="dark"] body[data-page="home"] .amajed-partners__title::after {
    background: linear-gradient(90deg, rgba(63, 179, 208, .12), rgba(82, 208, 243, .66));
}
html[data-theme="dark"] body[data-page="home"] .amajed-partners__item + .amajed-partners__item::before {
    background: rgba(134, 194, 213, .30);
}
/* Preserve black logo contrast and other suppliers' original colors without recoloring any mark. */
html[data-theme="dark"] body[data-page="home"] .amajed-partners__card {
    background: #f5f9fc;
    border-color: rgba(175, 207, 218, .22);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .30);
}
@media (hover: hover) and (pointer: fine) {
    html[data-theme="dark"] body[data-page="home"] a.amajed-partners__item:hover .amajed-partners__card {
        background: #fff;
        border-color: #35bfe6;
        box-shadow: 0 4px 14px rgba(0, 0, 0, .24), inset 0 0 0 1px rgba(53, 191, 230, .16);
    }
}
html[data-theme="dark"] body[data-page="home"] a.amajed-partners__item:focus-visible .amajed-partners__card {
    background: #fff;
    border-color: #1a96ba;
    box-shadow: 0 0 0 3px #48cef1;
}
html[data-theme="dark"] body[data-page="home"] a.amajed-partners__item:active .amajed-partners__card {
    background: #deeff7;
}
@media (max-width: 999px), (max-height: 619px) {
    html[data-theme="dark"] body[data-page="home"] .amajed-partners__rail {
        scrollbar-color: #36809b #142b38;
    }
}
