/* ============================================================
   Uni4my — custom overrides (loaded after style.css)
   ============================================================ */

/* ---------- Navbar: brand gradient ---------- */
.ul-header-top {
    margin-bottom: 0;
}

.ul-header-top-slider-item {
    opacity: 0.92;
}

.ul-header-bottom {
    background: var(--ul-gradient);
    padding: clamp(12px, 1.05vw, 20px) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
}

/* white chip behind the logo so the orange mark stays visible on the gradient */
.ul-header-bottom .logo-container a {
    /* background-color: var(--white); */
    border-radius: 14px;
    padding: 7px 14px;
}

.ul-header-bottom .ul-header-logo .logo,
.ul-header-bottom .logo-container .logo {
    filter: brightness(0) invert(1);
}

.ul-header-bottom .ul-header-search-form {
    background-color: var(--white);
    border-color: var(--white);
}

.ul-header-bottom .ul-header-nav > a,
.ul-header-bottom .ul-header-nav .has-sub-menu > a {
    color: var(--white);
}

.ul-header-bottom .ul-header-nav > a:hover,
.ul-header-bottom .ul-header-nav .has-sub-menu > a:hover {
    color: var(--black);
}

.ul-header-bottom .ul-header-actions button,
.ul-header-bottom .ul-header-actions a,
.ul-header-bottom .ul-header-sidebar-opener,
.ul-header-bottom .ul-header-mobile-search-opener {
    color: var(--white);
}

.ul-header-bottom .ul-header-actions button:hover,
.ul-header-bottom .ul-header-actions a:hover,
.ul-header-bottom .ul-header-sidebar-opener:hover {
    color: var(--black);
}

/* Header layout: logo left | nav center | search right */
.ul-header-layout {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(16px, 2vw, 40px);
    direction: ltr;
}

.ul-header-logo {
    justify-self: start;
}

.ul-header-nav-wrapper {
    justify-self: center;
    width: 100%;
    max-width: max-content;
    margin-inline: auto;
}

.ul-header-nav-wrapper .ul-header-nav {
    direction: rtl;
    justify-content: center;
}

.ul-header-search-area {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: clamp(8px, 0.79vw, 12px);
}

@media screen and (max-width: 991px) {
    .ul-header-layout {
        grid-template-columns: auto 1fr;
    }
}

/* ---------- Custom scrollbar ---------- */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background-color: #FDECEC;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--ul-secondary) 0%, var(--ul-primary) 100%);
    border-radius: 999px;
    border: 3px solid #FDECEC;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #E88F0F 0%, #D31C44 100%);
}

/* Firefox */
@supports (-moz-appearance: none) {
    html {
        scrollbar-width: thin;
        scrollbar-color: var(--ul-primary) #FDECEC;
    }
}

/* ---------- Hero banner: group photos as slides ---------- */
.ul-banner-slide {
    position: relative;
}

.ul-banner-slide-img img {
    width: 100%;
    aspect-ratio: 1125/620;
    object-fit: cover;
    object-position: center 20%;
}

/* soft white wash behind the headline so text stays readable over photos */
.ul-banner-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(270deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.9) 50%, rgba(255, 255, 255, 0) 88%);
    pointer-events: none;
}

.ul-banner-slide-txt {
    z-index: 2;
}

/* ---------- Hero: full-width slider ---------- */
.ul-banner-section {
    width: 100%;
    max-width: 100%;
}

.ul-banner-section .ul-banner--fullwidth {
    display: block;
    width: 100%;
    max-width: 100%;
}

.ul-banner-section .ul-banner-slider-wrapper {
    width: 100%;
    max-width: 100%;
}

.ul-banner-section .ul-banner-slider-wrapper::before,
.ul-banner-section .ul-banner-slider-wrapper::after {
    display: none;
}

.ul-banner-section .ul-banner-slider {
    width: 100%;
    max-width: 100%;
    border-radius: 0;
}

.ul-banner-section .ul-banner-img-slider-wrapper {
    display: none;
}

.ul-banner-section .ul-banner-slide-txt {
    left: auto;
    inset-inline-start: clamp(20px, 5vw, 90px);
    max-width: min(580px, 46vw);
}

@media screen and (max-width: 479px) {
    .ul-banner-slide-img img {
        aspect-ratio: 400/459;
    }

    .ul-banner-slide::before {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0.9) 75%);
    }
}

/* ---------- "حصريًا لدينا" ad section: richer content ---------- */
.ul-ad-descr {
    color: var(--white);
    font-size: clamp(13px, 0.89vw, 17px);
    line-height: 1.9;
    max-width: 620px;
    margin-bottom: clamp(15px, 1.32vw, 25px);
    opacity: 0.95;
}

.ul-ad-features {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(8px, 0.79vw, 15px);
    margin-top: clamp(15px, 1.32vw, 25px);
}

.ul-ad-features .feature {
    display: inline-flex;
    align-items: center;
    gap: clamp(5px, 0.42vw, 8px);
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    padding: clamp(5px, 0.42vw, 8px) clamp(10px, 0.84vw, 16px);
    font-size: clamp(11px, 0.74vw, 14px);
    font-weight: 500;
    backdrop-filter: blur(4px);
}

/* ---------- Video section: group photo cover ---------- */
.ul-video-cover {
    width: 100%;
    object-position: center 25%;
}

/* ---------- Sub banners → light promo cards (legacy selectors kept for cache) ---------- */
.ul-sub-banners {
    padding-bottom: 0;
}

/* ---------- Newsletter: pure gradient, no photo ---------- */
.ul-nwsltr-subs {
    background: var(--ul-gradient);
}

.ul-nwsltr-subs::before {
    content: none;
}

.ul-nwsltr-subs-form-wrapper {
    background: #FEF4F6;
}

/* ---------- Blog: cover images instead of stretched ---------- */
.ul-blog-img img {
    object-fit: cover;
    object-position: center top;
}
