/*
 * cms-widgets.css — أدوات مشتركة بين قالب الكليات (ucx) وبلدر الصفحات:
 *   .ucx-orbits  الأقسام العلمية كأقراص دائرية بقوس ملوّن
 *   .ucx-team    سلايدر الكادر التدريسي (البطاقة الوسطى ملوّنة والجانبية رمادية)
 * الألوان تأخذ لون الكلية (--ucx-c) إن وُجد، وإلا لون الجامعة التركوازي.
 */
.ucx-widget {
    --w-c: var(--ucx-c, #0b8793);
    --w-c-dark: var(--ucx-c-dark, color-mix(in srgb, var(--w-c) 72%, #000));
    --w-c-mid: var(--ucx-c-mid, color-mix(in srgb, var(--w-c) 70%, #fff));
    --w-c-tint: var(--ucx-c-tint, color-mix(in srgb, var(--w-c) 16%, #fff));
    --w-c-soft: var(--ucx-c-soft, color-mix(in srgb, var(--w-c) 7%, #fff));
    --w-ink: var(--ucx-ink, #121826);
    --w-text: var(--ucx-text, #2b3242);
    --w-muted: var(--ucx-muted, #636b7b);
    --w-line: var(--ucx-line, #e5e8ef);
    --w-bg: var(--ucx-bg, #f5f6fa);
    position: relative;
}
.ucx-widget.ucx-widget h3 { font-family: inherit; }
.ucx-widget.ucx-widget a { text-decoration: none; }
.ucx-widget-head { text-align: center; margin-bottom: 1.4rem; }
.ucx-widget-head .ucx-widget-kicker { display: inline-flex; align-items: center; gap: .5rem; color: var(--w-c-dark); font-weight: 700; font-size: .9rem; }
.ucx-widget-head h2 { margin: .4rem 0 0; font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 700; color: var(--w-ink); }
.ucx-widget-head p { margin: .5rem auto 0; max-width: 680px; color: var(--w-muted); }
.ucx-widget-more { display: flex; justify-content: center; margin-top: 1.2rem; }
.ucx-widget-more a { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem 1.2rem; border-radius: 999px; background: var(--w-c-soft); color: var(--w-c-dark); font-weight: 700; border: 1px solid var(--w-c-tint); }
.ucx-widget-more a:hover { background: var(--w-c); color: #fff; }
.ucx-widget-empty { text-align: center; padding: 2.4rem 1rem; color: var(--w-muted); border: 1px dashed var(--w-line); border-radius: 18px; background: #fff; }

/* ───────── الأقسام العلمية: أقراص دائرية بقوس بلون الكلية ───────── */
.ucx-widget.ucx-widget .ucx-orbits { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 5.2rem 2rem; padding-top: 3.4rem; padding-bottom: 2.4rem; }
.ucx-widget.ucx-widget .ucx-orbit { display: flex; justify-content: center; }
.ucx-widget.ucx-widget .ucx-orbit-disc { position: relative; width: 100%; max-width: 290px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 38% 30%, #fff 0%, #fbfcfd 45%, #f1f4f7 100%); box-shadow: 0 34px 60px -34px rgba(16, 24, 40, .35), 0 2px 0 rgba(255, 255, 255, .9) inset; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 22% 13% 18%; text-align: center; transition: transform .35s ease, box-shadow .35s ease; }
.ucx-widget.ucx-widget .ucx-orbit:hover .ucx-orbit-disc { transform: translateY(-6px); box-shadow: 0 44px 70px -34px rgba(16, 24, 40, .42), 0 2px 0 rgba(255, 255, 255, .9) inset; }
.ucx-widget.ucx-widget .ucx-orbit-arc { position: absolute; inset: -7px; border-radius: 50%; border: 7px solid transparent; border-top-color: var(--w-c); border-right-color: var(--w-c); transform: rotate(45deg); transition: transform .6s cubic-bezier(.2, .8, .2, 1); pointer-events: none; }
.ucx-widget.ucx-widget .ucx-orbit:hover .ucx-orbit-arc { transform: rotate(225deg); }
.ucx-widget.ucx-widget .ucx-orbit-logo { position: absolute; top: -17%; left: 50%; transform: translateX(-50%); width: 44%; aspect-ratio: 1; border-radius: 50%; background: #fff; box-shadow: 0 0 0 10px rgba(255, 255, 255, .75), 0 18px 34px -16px rgba(16, 24, 40, .35); display: grid; place-items: center; padding: 9%; z-index: 2; }
.ucx-widget.ucx-widget .ucx-orbit-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 0; }
.ucx-widget.ucx-widget .ucx-orbit-logo i { font-size: 2.4rem; color: var(--w-c); }
.ucx-widget.ucx-widget .ucx-orbit-num { display: inline-flex; align-items: center; gap: .7rem; padding: .2rem .25rem .2rem 1.1rem; border-radius: 999px; background: #fff; box-shadow: 0 10px 22px -12px rgba(16, 24, 40, .3); font-size: .95rem; color: var(--w-text); }
[dir="rtl"] .ucx-widget.ucx-widget .ucx-orbit-num { padding: .2rem 1.1rem .2rem .25rem; flex-direction: row-reverse; }
.ucx-widget.ucx-widget .ucx-orbit-num b { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--w-c-soft); color: var(--w-c-dark); font-weight: 600; font-size: .92rem; }
.ucx-widget.ucx-widget .ucx-orbit h3 { font-size: clamp(1.02rem, 1.35vw, 1.2rem); font-weight: 600; line-height: 1.55; margin: 0; color: var(--w-ink); }
.ucx-widget.ucx-widget .ucx-orbit h3 a { color: inherit; text-decoration: none; }
.ucx-widget.ucx-widget .ucx-orbit h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 50%; }
.ucx-widget.ucx-widget .ucx-orbit:hover h3 a { color: var(--w-c-dark); }
.ucx-widget.ucx-widget .ucx-orbit-go { position: absolute; bottom: -9%; left: 50%; transform: translateX(-50%); width: 58px; height: 58px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--w-c-dark); font-size: 1.45rem; box-shadow: 0 0 0 10px color-mix(in srgb, var(--w-c) 14%, #e6e9ef), 0 0 0 26px rgba(214, 220, 228, .28); z-index: 3; transition: background .25s, color .25s; }
.ucx-widget.ucx-widget .ucx-orbit:hover .ucx-orbit-go:not(.is-off) { background: var(--w-c); color: #fff; }
.ucx-widget.ucx-widget .ucx-orbit-go.is-off { color: var(--w-c-mid); }

/* ───────── الكادر التدريسي في الرئيسية: سلايدر بطاقات متدرّج ───────── */
#uwPageTop.ucx .ucx-team-sec { background: linear-gradient(180deg, #fff 0%, var(--ucx-bg) 100%); overflow: hidden; }
.ucx-widget.ucx-widget .ucx-team { position: relative; height: 470px; }
.ucx-widget.ucx-widget .ucx-team-watermark { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: clamp(2.2rem, 6vw, 5rem); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; line-height: 1; background: linear-gradient(180deg, color-mix(in srgb, var(--w-c) 26%, transparent), transparent 90%); -webkit-background-clip: text; background-clip: text; color: transparent; pointer-events: none; user-select: none; max-width: 100%; overflow: hidden; }
.ucx-widget.ucx-widget .ucx-team-stage { position: absolute; inset: 0; touch-action: pan-y; }
.ucx-widget.ucx-widget .ucx-team-card { position: absolute; top: 36px; left: 50%; width: 300px; height: 400px; margin-left: -150px; border-radius: 24px; overflow: hidden; background: linear-gradient(180deg, #f2f4f7, #dfe3e9); box-shadow: 0 30px 60px -30px rgba(16, 24, 40, .45); transition: transform .6s cubic-bezier(.2, .8, .2, 1), filter .6s ease, opacity .6s ease; filter: grayscale(1) brightness(1.04); text-decoration: none !important; will-change: transform; }
.ucx-widget.ucx-widget .ucx-team-card.is-active { filter: none; box-shadow: 0 40px 80px -30px rgba(16, 24, 40, .55); }
.ucx-widget.ucx-widget .ucx-team-card img { width: 100%; height: 100%; object-fit: cover; object-position: center top; border-radius: 0; }
.ucx-widget.ucx-widget .ucx-team-ph { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.ucx-widget.ucx-widget .ucx-team-ph i { font-size: 17rem; line-height: .78; color: #c3c9d2; }
.ucx-widget.ucx-widget .ucx-team-card.is-active .ucx-team-ph { background: linear-gradient(180deg, var(--w-c-soft), var(--w-c-tint)); }
.ucx-widget.ucx-widget .ucx-team-card.is-active .ucx-team-ph i { color: color-mix(in srgb, var(--w-c) 40%, #fff); }
.ucx-widget.ucx-widget .ucx-team-cap { position: absolute; inset-inline: 10px; bottom: 10px; padding: .55rem .8rem; border-radius: 14px; background: rgba(22,26,34,.9); color: #fff; text-align: center; display: flex; flex-direction: column; gap: .1rem; }
.ucx-widget.ucx-widget .ucx-team-cap strong { font-size: .95rem; line-height: 1.45; color: #fff; }
.ucx-widget.ucx-widget .ucx-team-cap small { font-size: .8rem; opacity: .85; line-height: 1.4; }
.ucx-widget.ucx-widget .ucx-team-arrow { position: absolute; top: 50%; z-index: 30; width: 54px; height: 54px; margin-top: -27px; border: 0; border-radius: 50%; background: var(--w-c); color: #fff; display: grid; place-items: center; font-size: 1.2rem; cursor: pointer; box-shadow: 0 14px 28px -12px var(--w-c); transition: background .2s, transform .2s; }
.ucx-widget.ucx-widget .ucx-team-arrow:hover { background: var(--w-c-dark); transform: scale(1.06); }
.ucx-widget.ucx-widget .ucx-team-arrow.is-prev { inset-inline-start: 8%; }
.ucx-widget.ucx-widget .ucx-team-arrow.is-next { inset-inline-end: 8%; }
.ucx-widget.ucx-widget .ucx-team-name { text-align: center; margin-top: 1.6rem; }
.ucx-widget.ucx-widget .ucx-team-name h3 { display: inline-flex; align-items: center; gap: 1.3rem; font-size: clamp(1.5rem, 3vw, 2.4rem); font-weight: 700; color: var(--w-c-dark); margin: 0; }
.ucx-widget.ucx-widget .ucx-team-name h3::before, .ucx-widget.ucx-widget .ucx-team-name h3::after { content: ""; width: clamp(40px, 8vw, 120px); height: 3px; border-radius: 3px; background: var(--w-c-dark); }
.ucx-widget.ucx-widget .ucx-team-name p { margin: .5rem 0 0; font-size: clamp(1rem, 1.6vw, 1.3rem); color: var(--w-muted); letter-spacing: .02em; }
.ucx-widget.ucx-widget .ucx-team-dots { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; margin-top: 1.3rem; }
.ucx-widget.ucx-widget .ucx-team-dots button { width: 12px; height: 12px; padding: 0; border: 0; border-radius: 50%; background: var(--w-c-tint); cursor: pointer; transition: background .2s, transform .2s; }
.ucx-widget.ucx-widget .ucx-team-dots button.is-active { background: var(--w-c-dark); transform: scale(1.35); }
@media (max-width: 767.98px) {
    .ucx-widget.ucx-widget .ucx-orbits { grid-template-columns: minmax(0, 290px); justify-content: center; }
    .ucx-widget.ucx-widget .ucx-team { height: 380px; }
    .ucx-widget.ucx-widget .ucx-team-card { width: 230px; height: 310px; margin-left: -115px; top: 30px; }
    .ucx-widget.ucx-widget .ucx-team-arrow { width: 44px; height: 44px; margin-top: -22px; }
    .ucx-widget.ucx-widget .ucx-team-arrow.is-prev { inset-inline-start: 0; }
    .ucx-widget.ucx-widget .ucx-team-arrow.is-next { inset-inline-end: 0; }
    .ucx-widget.ucx-widget .ucx-team-ph i { font-size: 13rem; }
}
@media (prefers-reduced-motion: reduce) {
    .ucx-widget.ucx-widget .ucx-team-card, .ucx-widget.ucx-widget .ucx-orbit-arc { transition: none; }
}

/* ───────── الظهور حسب الجهاز ─────────
   السكشنات: hide-desktop/tablet/mobile (إعدادات السكشن)، والعناصر: uw-design-hide-* (استوديو التصميم والمحرر المباشر).
   لا يُطبَّق داخل المحرر المباشر (html.uw-live) حتى يبقى العنصر قابلاً للتحرير؛ هناك يظهر باهتاً عند معاينة الجهاز. */
@media (min-width: 992px) {
    html:not(.uw-live) .hide-desktop,
    html:not(.uw-live) .uw-design-hide-desktop { display: none !important; }
}
@media (min-width: 768px) and (max-width: 991.98px) {
    html:not(.uw-live) .hide-tablet,
    html:not(.uw-live) .uw-design-hide-tablet { display: none !important; }
}
@media (max-width: 767.98px) {
    html:not(.uw-live) .hide-mobile,
    html:not(.uw-live) .uw-design-hide-mobile { display: none !important; }
}

/* ───────── عنصر العدّاد التنازلي ───────── */
.uw-countdown { position: relative; display: flex; flex-direction: column; align-items: center; gap: .75rem; text-align: center; padding: 1.6rem 1.2rem; border-radius: 20px; background: linear-gradient(135deg, #0a3d48 0%, #0b8793 100%); color: #fff; box-shadow: 0 18px 40px -24px rgba(10, 61, 72, .8); }
.uw-countdown-badge { display: inline-block; padding: .2rem .75rem; border-radius: 999px; background: #f6bd23; color: #0f1f2e; font-size: .78rem; font-weight: 700; }
.uw-countdown-title { margin: 0; font-size: 1.3rem; font-weight: 700; color: #fff; }
.uw-countdown-sub { margin: 0; opacity: .85; }
.uw-countdown-units { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; direction: ltr; }
.uw-cd-unit { min-width: 76px; padding: .65rem .5rem; border-radius: 14px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); }
.uw-cd-unit b { display: block; font-size: 1.9rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.uw-cd-unit span { display: block; margin-top: .2rem; font-size: .74rem; opacity: .85; }
.uw-countdown.is-done .uw-countdown-units { opacity: .45; }
.uw-countdown-done { margin: 0; font-weight: 700; color: #f6bd23; }
.uw-countdown-hint { margin: 0; font-size: .82rem; opacity: .8; }
.uw-countdown-content { opacity: .92; }
.uw-countdown-content :last-child { margin-bottom: 0; }
.uw-countdown-btn { display: inline-flex; align-items: center; gap: .4rem; padding: .55rem 1.3rem; border-radius: 999px; background: #f6bd23; color: #0f1f2e; font-weight: 700; text-decoration: none; }
.uw-countdown-btn:hover { background: #fff; color: #0a3d48; }
@media (max-width: 575.98px) { .uw-cd-unit { min-width: 64px; } .uw-cd-unit b { font-size: 1.5rem; } }

/* ───────── عنصر الخريطة ───────── */
.uw-map-block { display: flex; flex-direction: column; gap: .6rem; }
.uw-map-title { margin: 0; font-size: 1.15rem; font-weight: 700; display: flex; align-items: center; gap: .4rem; }
.uw-map-title i { color: #0b8793; }
.uw-map-sub { margin: 0; color: #5b6b78; }
.uw-map-frame { width: 100%; border-radius: 18px; overflow: hidden; border: 1px solid #d5e3e6; background: #eef6f7; box-shadow: 0 14px 34px -26px rgba(10, 61, 72, .7); }
.uw-map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.uw-map-hint { margin: 0; padding: 1rem; border: 1px dashed #b9cfd4; border-radius: 14px; color: #5b6b78; font-size: .88rem; }
.uw-map-open { align-self: flex-start; display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .95rem; border-radius: 999px; border: 1px solid #b9dfe3; color: #0a3d48; font-weight: 600; text-decoration: none; font-size: .88rem; }
.uw-map-open:hover { background: #0b8793; border-color: #0b8793; color: #fff; }
