/* ==========================================================================
   uowa-pages.css — the university's standing information pages
   (campus life, admissions, academic programs, alumni, events, rankings,
   e-services)

   Page-scoped on purpose: loaded with @push('styles') by those seven views
   only. That keeps it out of style.css / en.css, which are forked copies of
   each other — anything added there has to be added twice or it ships to one
   language only. One file here serves both locales.

   Colours come from the :root tokens so the Arabic and English palettes keep
   diverging correctly. No raw hex for brand colours.

   Direction: written with CSS logical properties (inline-start/end, text-align:
   start) so RTL and LTR both work without a mirrored block.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Layout shells

   Sections alternate between a white and a muted surface so a long page reads
   as distinct bands rather than one continuous scroll.
   -------------------------------------------------------------------------- */

.ul-page-section {
    background: var(--white);
}

.ul-page-section.is-muted {
    background: var(--ul-gray);
}

.ul-container-narrow {
    max-width: 920px;
    margin-inline: auto;
}

.ul-page-subsection {
    margin-block-start: 64px;
}

/* An explanatory paragraph under a section heading, and the small print that
   closes a section. Both sit inside .ul-container, so they only need to cap
   their own measure. */
.ul-page-lede {
    max-width: 78ch;
    margin-block: -8px 32px;
    font-size: 16px;
    line-height: 1.9;
    color: var(--ul-gray2);
}

.ul-page-note {
    margin-block: 32px 0;
    font-size: 14px;
    line-height: 1.8;
    color: var(--ul-gray2);
}

/* Accessibility baseline: the theme styles :hover but never :focus-visible, so
   keyboard users get no indication at all on these pages without this. */
.ul-page-section :is(a, button, input, [tabindex]):focus-visible,
.ul-ctaband :is(a, button):focus-visible,
.ul-statband :is(a, button):focus-visible {
    outline: 3px solid var(--ul-c3);
    outline-offset: 3px;
    border-radius: 6px;
}

/* NOTE: this file no longer carries a prefers-reduced-motion block — see the
   motion policy at the top of style.css. Kept for context: it used to have
   to come after the component rules it overrides, or it loses on source order
   at equal specificity. */

.ul-page-heading.is-start {
    text-align: start;
    justify-content: flex-start;
}

.ul-page-heading.is-start .left {
    text-align: start;
}

/* The heading itself has to be named. `.ul-section-title` is centred by the
   shared theme (style.css / en.css), and that beat `is-start` on both ancestors
   — so every page passing align="start" was still rendering centred. */
.ul-page-heading.is-start .ul-section-title {
    text-align: start;
}

/* The category's own description, under its heading. */
.ul-section-lede {
    margin: 8px 0 0;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--ul-gray2);
    max-inline-size: 70ch;
}

/* --------------------------------------------------------------------------
   Empty state — several of these categories exist with no posts yet
   -------------------------------------------------------------------------- */

.ul-page-empty {
    text-align: center;
    padding: 64px 24px;
    border: 1px dashed var(--ul-gray3);
    border-radius: 16px;
    background: var(--ul-gray);
}

.ul-page-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--white);
    color: var(--ul-primary);
    font-size: 28px;
    margin-block-end: 20px;
}

.ul-page-empty-title {
    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 700;
    color: var(--ul-black);
    margin-block-end: 8px;
}

.ul-page-empty-hint {
    font-size: 15px;
    color: var(--ul-gray2);
    max-width: 460px;
    margin-inline: auto;
    margin-block-end: 0;
}

/* --------------------------------------------------------------------------
   Program cards — البرامج الأكاديمية
   -------------------------------------------------------------------------- */

.ul-prog-grid,
.ul-story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}

.ul-prog-card-link,
.ul-story-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--white);
    border: 1px solid var(--ul-gray);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.ul-prog-card-link:hover,
.ul-story-card-link:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(11, 37, 78, 0.14);
    border-color: transparent;
}

.ul-prog-card-media,
.ul-story-card-media {
    display: block;
    position: relative;
    aspect-ratio: 16 / 10;
    background: var(--ul-gray);
    overflow: hidden;
}

.ul-prog-card-media img,
.ul-story-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.ul-prog-card-link:hover .ul-prog-card-media img,
.ul-story-card-link:hover .ul-story-card-media img {
    transform: scale(1.06);
}

.ul-prog-card-media.is-placeholder,
.ul-story-card-media.is-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ul-gradient);
    color: var(--white);
    font-size: 40px;
}

.ul-prog-card-body,
.ul-story-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px;
    text-align: start;
}

.ul-prog-card-title,
.ul-story-card-title {
    font-family: var(--font-primary);
    font-size: 19px;
    font-weight: 700;
    color: var(--ul-black);
    margin-block-end: 10px;
}

.ul-prog-card-excerpt,
.ul-story-card-excerpt {
    font-size: 15px;
    line-height: 1.75;
    color: var(--ul-gray2);
    margin-block-end: 18px;
}

.ul-prog-card-more,
.ul-story-card-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-block-start: auto;
    font-size: 14px;
    font-weight: 700;
    color: var(--ul-primary);
}

.ul-story-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-block-start: auto;
    padding-block-start: 14px;
    border-block-start: 1px solid var(--ul-gray);
    font-size: 13px;
    color: var(--ul-gray3);
}

.ul-story-section + .ul-story-section {
    margin-block-start: 56px;
}

/* --------------------------------------------------------------------------
   Ranking tiles — التصنيفات
   Logos sit on a white surface and are contained, not cropped: `cover` would
   slice the wordmarks in half.
   -------------------------------------------------------------------------- */

.ul-rank-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

.ul-rank-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    padding: 28px 20px;
    background: var(--white);
    border: 1px solid var(--ul-gray);
    border-radius: 16px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ul-rank-tile.is-linked:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(11, 37, 78, 0.13);
}

.ul-rank-tile-media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 88px;
}

.ul-rank-tile-media img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.ul-rank-tile-media.is-placeholder {
    color: var(--ul-c3);
    font-size: 38px;
}

.ul-rank-tile-title {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 700;
    color: var(--ul-black);
    margin: 0;
}

.ul-rank-tile-excerpt {
    font-size: 14px;
    color: var(--ul-gray2);
    margin: 0;
}

.ul-rank-tile-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ul-primary);
}

/* The position a tile states, or the plain admission that none is published.
   `tabular-nums` because a column of tiles otherwise sets "12" and "53" at
   visibly different widths. */
.ul-rank-tile-pos {
    margin: 0;
    font-size: 14px;
    color: var(--ul-gray2);
}

/* Same reordering trap as .ul-sdg-pos — the Impact Ranking tile carries
   "401–600". Isolated so the range reads in the order it was written. */
.ul-rank-tile-pos b {
    display: inline-block;
    direction: ltr;
    unicode-bidi: isolate;
    font-size: 22px;
    font-weight: 700;
    color: var(--ul-primary);
    font-variant-numeric: tabular-nums;
    margin-inline-end: 4px;
}

.ul-rank-tile-year {
    color: var(--ul-gray3);
    font-variant-numeric: tabular-nums;
}

.ul-rank-tile-year::before {
    content: " · ";
}

/* --------------------------------------------------------------------------
   Hero motif — for a page with no photograph

   The rankings hero has no CMS image, so a reader met a flat navy panel. This
   draws a set of concentric rings and a rising step form in the accent at low
   opacity, placed on the inline-END side so it never sits under the type.
   Purely decorative and pointer-transparent.
   -------------------------------------------------------------------------- */

.ul-hero-feature.has-motif {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.ul-hero-feature.has-motif::before,
.ul-hero-feature.has-motif::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: -1;
}

/* Concentric rings, centred just off the inline-end edge. */
.ul-hero-feature.has-motif::before {
    inset-block-start: 50%;
    inset-inline-end: -110px;
    width: 520px;
    height: 520px;
    transform: translateY(-50%);
    border-radius: 50%;
    background:
        radial-gradient(circle, transparent 0 27%, rgba(254, 190, 53, 0.16) 27% 27.7%, transparent 27.7%),
        radial-gradient(circle, transparent 0 38%, rgba(254, 190, 53, 0.12) 38% 38.6%, transparent 38.6%),
        radial-gradient(circle, transparent 0 49%, rgba(254, 190, 53, 0.09) 49% 49.5%, transparent 49.5%);
}

/* A rising step form — three bars of increasing height, the shape a ranking
   makes. Drawn with a repeating gradient clipped to a stepped polygon. */
.ul-hero-feature.has-motif::after {
    inset-block-end: 0;
    inset-inline-end: 70px;
    width: 300px;
    height: 190px;
    background: linear-gradient(180deg, rgba(254, 190, 53, 0.2), rgba(254, 190, 53, 0.03));
    clip-path: polygon(
        0 62%, 27% 62%, 27% 100%, 0 100%,
        36% 100%, 36% 34%, 63% 34%, 63% 100%,
        72% 100%, 72% 0, 100% 0, 100% 100%, 72% 100%
    );
    opacity: 0.85;
}

@media (max-width: 767px) {
    /* At this width the rings sit behind the headline rather than beside it. */
    .ul-hero-feature.has-motif::before,
    .ul-hero-feature.has-motif::after {
        opacity: 0.35;
    }
}

.ul-rank-tile-pos.is-unranked {
    font-size: 13px;
    color: var(--ul-gray3);
}

/* --------------------------------------------------------------------------
   Rankings — the headline positions

   Replaced the "featured rankings" band, which led with logos. A logo says the
   university is in the table; a position says where. Every card links to the
   source the figure was read at — a headline nobody can check has no business
   being the largest thing on the page.
   -------------------------------------------------------------------------- */

.ul-rankhead {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.ul-rankhead-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 40px 24px 26px;
    text-align: center;
    background: var(--white);
    border: 1px solid rgba(11, 37, 78, 0.09);
    border-radius: 16px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.ul-rankhead-item.is-linked:hover {
    transform: translateY(-5px);
    border-color: var(--ul-c3);
    box-shadow: 0 18px 40px rgba(11, 37, 78, 0.13);
}

/* The figure in a ringed medallion. Three flat numbers on three flat cards
   read as a statistics band; ringed, they read as three results. */
.ul-rankhead-medal {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 132px;
    height: 132px;
    margin-block-end: 6px;
    border-radius: 50%;
    background: var(--white);
    box-shadow:
        inset 0 0 0 2px var(--ul-c3),
        inset 0 0 0 9px rgba(254, 190, 53, 0.14),
        0 10px 26px rgba(11, 37, 78, 0.1);
}

.ul-rankhead-medal-icon {
    position: absolute;
    inset-block-start: -12px;
    inset-inline-start: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--ul-c3);
    color: var(--ul-primary);
    font-size: 14px;
}

/* Proportional to the badge — see the note on .ul-svc-card-icon img. The
   badge is the gold chip, so the artwork is forced to the same dark navy the
   glyph uses rather than being left to disappear into it. */
.ul-rankhead-medal-icon img {
    width: 62%;
    height: 62%;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(9%) sepia(34%) saturate(2846%) hue-rotate(196deg) brightness(95%) contrast(97%);
}

.ul-rankhead-figure {
    font-family: var(--font-primary);
    font-size: 40px;
    font-weight: 700;
    line-height: 1.05;
    color: var(--ul-primary);
    font-variant-numeric: tabular-nums;
    padding-block-start: 8px;
}

.ul-rankhead-title {
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.6;
    color: var(--ul-black);
}

.ul-rankhead-note {
    font-size: 13px;
    line-height: 1.7;
    color: var(--ul-gray2);
}

.ul-rankhead-src {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-block-start: auto;
    padding-block-start: 12px;
    font-size: 12px;
    font-weight: 700;
    color: var(--ul-primary);
}

/* --------------------------------------------------------------------------
   Rankings — grouped by what they measure against

   Grouping rather than a filter bar: ten entries do not need a control, and a
   chip row where half the chips return one item is noise.
   -------------------------------------------------------------------------- */

.ul-rankgroups {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.ul-rankgroup-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 700;
    color: var(--ul-primary);
    margin-block-end: 20px;
}

.ul-rankgroup-title::after {
    content: "";
    flex: 1;
    height: 2px;
    background: var(--ul-c3);
    opacity: 0.3;
}

.ul-rankgroup-count {
    order: 1;
    flex: 0 0 auto;
    min-width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-inline: 8px;
    border-radius: 999px;
    background: var(--ul-c3);
    color: var(--ul-black);
    font-size: 13px;
}

/* --------------------------------------------------------------------------
   THE Impact Rankings table

   The only ranking where the university has a full published record. The tail
   folds behind .ul-check-more via the shared [data-collapse] mechanism; the
   overall position lives in <tfoot> so it never folds with it.
   -------------------------------------------------------------------------- */

.ul-sdg-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

/* Scrolls on its own so the page body never does. */
.ul-sdg {
    width: 100%;
    overflow-x: auto;
    background: var(--white);
    border: 1px solid var(--ul-gray);
    border-radius: 16px;
}

.ul-sdg-table {
    width: 100%;
    min-width: 480px;
    border-collapse: collapse;
    font-size: 15px;
}

.ul-sdg-table th,
.ul-sdg-table td {
    padding: 14px 20px;
    text-align: start;
    border-block-end: 1px solid var(--ul-gray);
}

.ul-sdg-table thead th {
    font-size: 13px;
    font-weight: 700;
    color: var(--ul-gray2);
    background: var(--ul-gray);
}

.ul-sdg-table tbody tr:last-child :is(th, td) {
    border-block-end: 0;
}

.ul-sdg-goal {
    font-weight: 700;
    color: var(--ul-black);
}

/* A RANGE MUST BE ISOLATED FROM THE BIDI ALGORITHM. "101–200" is digits either
   side of a neutral dash; inside an RTL paragraph the run reorders and the cell
   renders "200-101", which is simply the wrong number. `unicode-bidi: isolate`
   with an explicit direction pins it. The cell keeps its right alignment in RTL
   because `start` now resolves to left. */
.ul-sdg-pos {
    direction: ltr;
    unicode-bidi: isolate;
    font-weight: 700;
    color: var(--ul-primary);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

[dir="rtl"] .ul-sdg-pos {
    text-align: right;
}

/* The strongest row is the reason the table is here, so it is marked — but by
   size and an accent rule, NOT by setting the figure in --ul-c3. That amber on
   white measures about 1.8:1, which is unreadable for a number this important;
   the accent belongs on the row, not on the text. */
.ul-sdg-table tbody .ul-sdg-row.is-best {
    background: rgba(254, 190, 53, 0.13);
}

.ul-sdg-pos.is-best {
    font-size: 22px;
}

.ul-sdg-year {
    color: var(--ul-gray3);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* Where the published band sits on a six-step scale. It encodes the band THE
   itself reports and nothing more — see App\Support\Rankings::tier() for why
   this is cells and not a percentage bar. */
/* THE CELL STAYS A TABLE CELL. `display: flex` here took it out of the table
   box model — the browser wrapped it in an anonymous cell, so the row's rule
   stopped at the column's edge and «الموقع» read as a detached box with its
   own borders, with one more left hanging under the last row. The flex row is
   a span inside the cell instead. */
.ul-sdg-meter {
    min-width: 132px;
}

.ul-sdg-meter-row {
    display: flex;
    gap: 4px;
}

.ul-sdg-cell {
    flex: 1;
    height: 9px;
    border-radius: 3px;
    background: rgba(11, 37, 78, 0.09);
}

.ul-sdg-cell.is-past {
    background: rgba(11, 37, 78, 0.16);
}

.ul-sdg-cell.is-on {
    background: var(--ul-primary);
    box-shadow: 0 0 0 3px rgba(11, 37, 78, 0.1);
}

/* The best row's marker takes the accent, matching its row wash. */
.ul-sdg-table tbody .ul-sdg-row.is-best .ul-sdg-cell.is-on {
    background: #a9760a;
    box-shadow: 0 0 0 3px rgba(254, 190, 53, 0.35);
}

.ul-sdg-key {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 12px;
    color: var(--ul-gray3);
}

.ul-sdg-key-best {
    font-weight: 700;
    color: var(--ul-primary);
}

.ul-sdg-key-rail {
    width: 74px;
    height: 4px;
    border-radius: 3px;
    background: linear-gradient(to var(--ul-key-dir, right), var(--ul-primary), rgba(11, 37, 78, 0.09));
}

[dir="rtl"] .ul-sdg-key-rail {
    --ul-key-dir: left;
}

.ul-sdg-row.is-overall :is(th, td) {
    border-block-start: 2px solid var(--ul-c3);
    border-block-end: 0;
    background: rgba(11, 37, 78, 0.03);
}

.ul-sdg-source {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--ul-primary);
    text-decoration: none;
}

.ul-sdg-source:hover {
    color: var(--ul-c3);
}

/* Same rule shape as .ul-check-list: the collapsed class is added by
   JavaScript, so the served markup carries every row. */
.js-collapse .ul-sdg.is-collapsed .ul-sdg-row.is-extra {
    display: none;
}

/* --------------------------------------------------------------------------
   Accreditations

   Config-led — see config/rankings.php. Both CMS child categories return a
   null title and two of the three posts have title and body swapped.
   -------------------------------------------------------------------------- */

.ul-accred {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.ul-accred-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 28px;
    background: var(--white);
    border: 1px solid var(--ul-gray);
    border-radius: 16px;
    border-inline-start: 4px solid var(--ul-c3);
}

.ul-accred-auth {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--ul-gray3);
}

.ul-accred-title {
    font-family: var(--font-primary);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--ul-primary);
    margin: 0;
}

.ul-accred-text {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.85;
    color: var(--ul-gray2);
}

.ul-accred-src {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-block-start: auto;
    padding-block-start: 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ul-primary);
    text-decoration: none;
}

.ul-accred-src:hover {
    color: var(--ul-c3);
}

/* --------------------------------------------------------------------------
   Events agenda — أجندة الأحداث
   -------------------------------------------------------------------------- */

.ul-evt-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Flex, not grid: the thumbnail is optional, and a fixed column for it left a
   gap the width of a picture on every entry that had none. Each part declares
   its own width instead, and the row closes up around whatever is present.

   `align-items: stretch` (not `center`) so the date badge and the thumbnail
   both rise to the row's own height instead of sitting as two small boxes of
   mismatched size floating in a tall row — `min-height` gives them something
   to stretch into even when the title is one short line. */
.ul-evt-item {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: stretch;
    min-height: 140px;
    background: var(--white);
    border: 1px solid var(--ul-gray);
    border-radius: 16px;
    padding: 18px;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.ul-evt-item:hover {
    box-shadow: 0 14px 34px rgba(11, 37, 78, 0.1);
    border-color: transparent;
}

/* As tall as the row (see `align-items: stretch` above) and as wide as the
   thumbnail, so the two read as a matched pair rather than a small chip next
   to a photo. */
.ul-evt-date {
    flex: 0 0 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 14px 10px;
    border-radius: 14px;
    background: var(--ul-gradient);
    color: var(--white);
    line-height: 1;
}

.ul-evt-date-day {
    font-size: 36px;
    font-weight: 700;
}

.ul-evt-date-month {
    font-size: 17px;
    font-weight: 700;
}

.ul-evt-date-year {
    font-size: 15px;
    font-weight: 700;
    opacity: 0.85;
}

/* No fixed aspect-ratio: it fought `align-items: stretch` on the row above,
   forcing its own height regardless of the date badge beside it. Letting it
   stretch with the row and covering the resulting box keeps it matched to the
   date badge's height at any row height. */
.ul-evt-media {
    flex: 0 0 160px;
    border-radius: 12px;
    overflow: hidden;
}

.ul-evt-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Takes the whole remaining row. `min-width: 0` so a long unbroken title wraps
   instead of pushing the action off the end. Centered vertically now that the
   row is as tall as the date badge and thumbnail rather than hugging text. */
.ul-evt-body {
    flex: 1 1 220px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: start;
}

.ul-evt-title {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 700;
    color: var(--ul-black);
    margin-block-end: 6px;
}

/* The editor's standfirst — the event itself, above its description. */
.ul-evt-lede {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.6;
    color: var(--ul-primary);
    margin-block-end: 4px;
}

.ul-evt-excerpt {
    font-size: 15px;
    line-height: 1.7;
    color: var(--ul-gray2);
    margin-block-end: 0;
}

/* Pinned to the far end of the row, which is what makes the entry read as
   full-width rather than as text huddled against the thumbnail.
   `align-items: center` keeps the button its own natural height rather than
   stretching tall with the row (the parent's `align-items: stretch`). */
.ul-evt-actions {
    flex: 0 0 auto;
    align-self: center;
    margin-inline-start: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.ul-evt-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 999px;
    border: 1px solid var(--ul-primary);
    color: var(--ul-primary);
    background: transparent;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease;
}

.ul-evt-action:hover {
    background: var(--ul-primary);
    color: var(--white);
}

/* --------------------------------------------------------------------------
   E-services — الخدمات الإلكترونية
   -------------------------------------------------------------------------- */

.ul-svc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.ul-svc-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 28px;
    background: var(--white);
    border: 1px solid var(--ul-gray);
    border-radius: 16px;
    text-decoration: none;
    text-align: start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ul-svc-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(11, 37, 78, 0.14);
}

.ul-svc-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 14px;
    background: var(--ul-gradient);
    color: var(--white);
    font-size: 24px;
}

/* An editor's uploaded icon sits in the same tile as the glyph it replaces.

   SIZED AS A PROPORTION OF THE TILE, NOT IN PIXELS. A fixed px size has to be
   re-picked every time a tile changes size, and it read as a small mark
   floating in a large square. 62% leaves the tile's own padding visible while
   giving the artwork the weight the Font Awesome glyph had.

   The tile is a dark gradient, so a dark SVG would vanish into it —
   `brightness(0) invert(1)` forces it white, the colour the glyph already is.
   See components/uowa/pages/cms-icon.blade.php. */
.ul-svc-card-icon img {
    width: 62%;
    height: 62%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.ul-svc-card-title {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 700;
    color: var(--ul-black);
    margin-block-end: 8px;
}

.ul-svc-card-desc {
    font-size: 14px;
    line-height: 1.7;
    color: var(--ul-gray2);
    margin: 0;
}

.ul-svc-card-go {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-block-start: auto;
    font-size: 14px;
    font-weight: 700;
    color: var(--ul-primary);
}

/* What a platform publishes about itself — "807 courses · 16,227 active users".
   `tabular-nums` because these sit under one another down a column. */
.ul-svc-card-figure {
    margin: 8px 0 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--ul-primary);
    font-variant-numeric: tabular-nums;
}

/* Grouped by what the reader came to do, not by which department owns the
   system. Replaced a search box that filtered five cards. */
/* Tab set — الخدمات الإلكترونية
   ---------------------------------------------------------------------------
   The served markup is a jump-link nav over headed sections and is styled to
   look like one; uowa-pages.js adds .js-tabs to <html> and the rules below
   turn it into a tab set. Nothing here hides a panel — the script does that,
   so a reader without JavaScript is never left with two dead links. */

.ul-tabset-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-block-end: 40px;
    border-block-end: 1px solid rgba(11, 37, 78, 0.1);
    padding-block-end: 14px;
}

.ul-tabset-tab {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 10px;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 700;
    color: var(--ul-primary);
    background: rgba(11, 37, 78, 0.05);
    text-decoration: none;
    transition:
        background 0.18s ease,
        color 0.18s ease;
}

.ul-tabset-tab:hover {
    background: rgba(11, 37, 78, 0.1);
    color: var(--ul-primary);
}

.ul-tabset-tab:focus-visible {
    outline: 2px solid var(--ul-c3);
    outline-offset: 3px;
}

.ul-tabset-tab-icon {
    font-size: 15px;
    opacity: 0.72;
}

.ul-tabset-tab-icon img {
    /* Inline with the tab label, so sized against the type. */
    width: 1.2em;
    height: 1.2em;
    object-fit: contain;
    vertical-align: -2px;
}

/* The count is a digit next to a word, and in Arabic an Arabic-Indic one —
   a fixed pill keeps the tabs from twitching in width as the set changes. */
.ul-tabset-tab-count {
    min-width: 26px;
    padding-inline: 7px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    color: var(--ul-primary);
    background: rgba(11, 37, 78, 0.09);
}

/* Only meaningful once the script has run — before that every tab is a link
   to a section that is already on the page, and none of them is "current". */
.js-tabs .ul-tabset-tab.is-active {
    color: var(--white);
    background: var(--ul-primary);
}

.js-tabs .ul-tabset-tab.is-active .ul-tabset-tab-icon {
    opacity: 1;
    color: var(--ul-c3);
}

.js-tabs .ul-tabset-tab.is-active .ul-tabset-tab-count {
    color: var(--ul-primary);
    background: var(--ul-c3);
}

/* Stacked panels need separating; tabbed ones are one at a time and must not
   inherit the gap, or the panel opens on 64px of nothing. */
.ul-tabset-panels {
    display: flex;
    flex-direction: column;
    gap: 64px;
}

.js-tabs .ul-tabset-panels {
    gap: 0;
}

.ul-tabset-panel:focus-visible {
    outline: 2px solid var(--ul-c3);
    outline-offset: 6px;
}

.ul-tabset-panel-title {
    font-family: var(--font-primary);
    font-size: 26px;
    font-weight: 700;
    color: var(--ul-primary);
    margin-block-end: 10px;
}

/* Visually hidden, NOT removed: the panel is named by this heading through
   aria-labelledby, and the tab above is saying the same words. */
.js-tabs .ul-tabset-panel-title {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    white-space: nowrap;
    clip-path: inset(50%);
}

@media (max-width: 575px) {
    .ul-tabset-tab {
        flex: 1 1 100%;
        justify-content: flex-start;
        padding: 11px 16px;
        font-size: 15px;
    }

    .ul-tabset-tab-count {
        margin-inline-start: auto;
    }
}

.ul-svcgrid-groups {
    display: flex;
    flex-direction: column;
    gap: 56px;
}

.ul-svcgrid-group-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 700;
    color: var(--ul-primary);
    margin-block-end: 8px;
}

.ul-svcgrid-group-title::after {
    content: "";
    flex: 1;
    height: 2px;
    background: var(--ul-c3);
    opacity: 0.3;
}

.ul-svcgrid-group-lede {
    max-width: 70ch;
    margin-block: 0 24px;
    font-size: 14.5px;
    line-height: 1.8;
    color: var(--ul-gray2);
}

/* --------------------------------------------------------------------------
   Student app — the one entry that is installed rather than opened

   A mosaic rather than a row of equal cards: four features, two either side of
   the device. Every other service on this page is "open this in a browser";
   this one is "install this once and stop coming to the website", and sizing it
   like a peer buried the thing most readers actually came for.

   The placement below is composed around FOUR cards. A fifth still renders — it
   auto-places into a new row rather than breaking the arrangement.
   -------------------------------------------------------------------------- */

/* Heading and store badges on one line: the reader decides to install while
   reading what the app does, not after scrolling past four feature cards. */
.ul-appbento-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px 40px;
    margin-block-end: 30px;
}

.ul-appbento-intro {
    flex: 1 1 380px;
    min-width: 0;
    max-width: 62ch;
}

.ul-appbento-title {
    font-family: var(--font-primary);
    font-size: 28px;
    font-weight: 700;
    color: var(--ul-primary);
    margin: 0 0 10px;
}

.ul-appbento-lede {
    margin: 0;
    font-size: 15.5px;
    line-height: 1.85;
    color: var(--ul-gray2);
}

.ul-appbento-grid {
    display: grid;
    grid-template-columns: 1fr minmax(230px, 0.8fr) 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
    align-items: stretch;
}

.ul-appbento-card:nth-of-type(1) { grid-column: 1; grid-row: 1; }
.ul-appbento-card:nth-of-type(2) { grid-column: 1; grid-row: 2; }
.ul-appbento-card:nth-of-type(3) { grid-column: 3; grid-row: 1; }
.ul-appbento-card:nth-of-type(4) { grid-column: 3; grid-row: 2; }

.ul-appbento-device {
    grid-column: 2;
    grid-row: 1 / span 2;
}

.ul-appbento-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 26px;
    border-radius: 18px;
    background: var(--white);
    border: 1px solid rgba(11, 37, 78, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ul-appbento-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(11, 37, 78, 0.12);
}

.ul-appbento-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: rgba(11, 37, 78, 0.08);
    color: var(--ul-primary);
    font-size: 18px;
}

/* Proportional to the tile rather than a fixed px size — see the note on
   .ul-svc-card-icon img. This tile is light, so the artwork keeps its own
   colours. */
.ul-appbento-card-icon img {
    width: 62%;
    height: 62%;
    object-fit: contain;
}

.ul-appbento-card-title {
    font-family: var(--font-primary);
    font-size: 19px;
    font-weight: 700;
    color: var(--ul-black);
    margin: 0;
}

.ul-appbento-card-desc {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.8;
    color: var(--ul-gray2);
}

/* The device panel. Deliberately a DRAWING — university mark and app name, no
   invented interface. See the note in student-app.blade.php. */
.ul-appbento-device {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    border-radius: 18px;
    background: var(--ul-gradient);
    background-color: var(--ul-primary);
}

.ul-appbento-phone {
    position: relative;
    display: flex;
    width: 100%;
    max-width: 210px;
    aspect-ratio: 9 / 17;
    padding: 11px;
    border-radius: 30px;
    background: rgba(0, 0, 0, 0.32);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.ul-appbento-notch {
    position: absolute;
    inset-block-start: 18px;
    inset-inline-start: 50%;
    transform: translateX(-50%);
    width: 46%;
    height: 7px;
    border-radius: 99px;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.ul-appbento-screen {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 26px 18px;
    border-radius: 21px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05));
    text-align: center;
}

.ul-appbento-screen img {
    width: 100%;
    max-width: 108px;
    height: auto;
}

.ul-appbento-appname {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--white);
}

/* Store badges rather than plain buttons: the platform mark large on the lead
   edge, then the two-line "Download on the / App Store" that people recognise
   without reading. Both are the same weight — neither store is preferred. */
.ul-appbento-stores {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ul-appbento-store {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 22px;
    border-radius: 12px;
    background: var(--ul-primary);
    color: var(--white);
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ul-appbento-store i {
    font-size: 26px;
    line-height: 1;
}

.ul-appbento-store-text {
    display: flex;
    flex-direction: column;
    text-align: start;
}

.ul-appbento-store-note {
    font-size: 10.5px;
    line-height: 1.4;
    opacity: 0.72;
}

.ul-appbento-store-name {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
}

.ul-appbento-store:hover,
.ul-appbento-store:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(11, 37, 78, 0.26);
    color: var(--white);
}

/* --------------------------------------------------------------------------
   Info list — التسجيل والقبول
   -------------------------------------------------------------------------- */

.ul-info-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ul-info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    background: var(--white);
    border: 1px solid var(--ul-gray);
    border-radius: 12px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.ul-info-item:hover {
    border-color: var(--ul-c3);
    box-shadow: 0 10px 26px rgba(11, 37, 78, 0.08);
}

.ul-info-item-marker {
    flex: 0 0 auto;
    color: var(--ul-c3);
    margin-block-start: 4px;
}

.ul-info-item-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    text-align: start;
}

.ul-info-item-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--ul-black);
    text-decoration: none;
}

a.ul-info-item-title:hover {
    color: var(--ul-primary);
}

.ul-info-item-excerpt {
    font-size: 14px;
    color: var(--ul-gray2);
    line-height: 1.7;
}

.ul-info-item-date {
    flex: 0 0 auto;
    font-size: 13px;
    color: var(--ul-gray3);
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Long-form bodies — الحياة في الجامعة (inpage)
   -------------------------------------------------------------------------- */

.ul-rich-block + .ul-rich-block {
    margin-block-start: 48px;
    padding-block-start: 48px;
    border-block-start: 1px solid var(--ul-gray);
}

.ul-rich-title {
    font-family: var(--font-primary);
    font-size: 26px;
    font-weight: 700;
    color: var(--ul-primary);
    margin-block-end: 18px;
    text-align: start;
}

.ul-rich-figure {
    margin: 0 0 22px;
    border-radius: 16px;
    overflow: hidden;
}

.ul-rich-figure img {
    width: 100%;
    height: auto;
    display: block;
}

.ul-rich-body {
    font-size: 16px;
    line-height: 2;
    color: var(--ul-gray2);
    text-align: start;
}

.ul-rich-body :is(h2, h3, h4) {
    color: var(--ul-black);
    font-weight: 700;
    margin-block: 24px 12px;
}

.ul-rich-body p {
    margin-block-end: 16px;
}

.ul-rich-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.ul-rich-body :is(ul, ol) {
    padding-inline-start: 22px;
    margin-block-end: 16px;
}

.ul-rich-body a {
    color: var(--ul-primary);
    text-decoration: underline;
}

.ul-rich-body iframe {
    max-width: 100%;
    border-radius: 12px;
}

/* --------------------------------------------------------------------------
   Inline CTA
   -------------------------------------------------------------------------- */

.ul-page-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-block-start: 48px;
    padding: 30px 34px;
    border-radius: 18px;
    background: var(--ul-gradient);
    color: var(--white);
    text-align: start;
}

.ul-page-cta-title {
    font-family: var(--font-primary);
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    margin-block-end: 6px;
}

.ul-page-cta-text {
    font-size: 15px;
    opacity: 0.9;
    margin: 0;
}

.ul-page-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 30px;
    border-radius: 999px;
    background: var(--ul-c3);
    color: var(--ul-black);
    font-weight: 700;
    text-decoration: none;
    transition: filter 0.25s ease, transform 0.25s ease;
}

.ul-page-cta-btn:hover {
    filter: brightness(0.94);
    transform: translateY(-2px);
    color: var(--ul-black);
}

/* --------------------------------------------------------------------------
   Statistics band
   -------------------------------------------------------------------------- */

.ul-statband {
    background: var(--ul-gradient);
    background-color: var(--ul-primary);
    color: var(--white);
    padding-block: 72px;
}

.ul-statband .ul-section-title,
.ul-statband .ul-section-sub-title {
    color: var(--white);
}

.ul-statband-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 32px 20px;
    margin: 0;
}

.ul-statband-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.ul-statband-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-block-end: 6px;
}

.ul-statband-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* Statistic icons arrive as dark glyphs on transparent; the band is dark. */
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.ul-statband-value {
    font-family: var(--font-primary);
    font-size: clamp(32px, 4vw, 46px);
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
    /* Digits stay LTR even in an RTL page. */
    direction: ltr;
    unicode-bidi: isolate;
}

.ul-statband-suffix {
    font-size: 0.5em;
    font-weight: 700;
    margin-inline-start: 6px;
    opacity: 0.85;
}

.ul-statband-label {
    font-size: 15px;
    font-weight: 400;
    opacity: 0.88;
}

/* --------------------------------------------------------------------------
   Student voices
   -------------------------------------------------------------------------- */

.ul-voices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 26px;
}

/* Campus life: three to a row, six cards (voices.blade.php `limit`). */
.ul-voices-grid.is-three {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 991px) {
    .ul-voices-grid.is-three {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .ul-voices-grid.is-three {
        grid-template-columns: 1fr;
    }
}

.ul-voice {
    position: relative;
    margin: 0;
    padding: 32px 28px 26px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(11, 37, 78, 0.07);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ul-voice-mark {
    position: absolute;
    inset-block-start: 18px;
    inset-inline-end: 22px;
    font-size: 30px;
    color: var(--ul-c3);
    opacity: 0.45;
}

/* A video review: its picture and a play button in place of the quote. */
.ul-voice-video {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: var(--ul-primary, #0b254e);
}

.ul-voice-video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.ul-voice-video::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(11, 37, 78, 0.25);
}

.ul-voice-play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--ul-c3, #febe35);
    color: var(--ul-primary, #0b254e);
    font-size: 18px;
    transform: translate(-50%, -50%);
    transition: box-shadow 0.3s ease;
}

.ul-voice-video:hover img {
    transform: scale(1.05);
}

.ul-voice-video:hover .ul-voice-play {
    box-shadow: 0 0 0 8px rgba(254, 190, 53, 0.3);
}

.ul-voice-quote {
    margin: 0;
    font-size: 15px;
    line-height: 1.9;
    color: var(--ul-gray2);
    text-align: start;
}

.ul-voice-person {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-block-start: auto;
    padding-block-start: 16px;
    border-block-start: 1px solid var(--ul-gray);
}

.ul-voice-avatar {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--ul-gray);
}

.ul-voice-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ul-voice-meta {
    display: flex;
    flex-direction: column;
    text-align: start;
}

.ul-voice-name {
    font-weight: 700;
    font-size: 15px;
    color: var(--ul-black);
}

.ul-voice-role {
    font-size: 13px;
    color: var(--ul-gray3);
}

/* --------------------------------------------------------------------------
   Feature grid — first tile leads at double width
   -------------------------------------------------------------------------- */

.ul-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 26px;
}

.ul-feature-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--ul-gray);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

a.ul-feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(11, 37, 78, 0.14);
}

.ul-feature-card-media {
    display: block;
    aspect-ratio: 16 / 10;
    background: var(--ul-gray);
    overflow: hidden;
}

.ul-feature-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

a.ul-feature-card:hover .ul-feature-card-media img {
    transform: scale(1.05);
}

.ul-feature-card-media.is-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ul-gradient);
    background-color: var(--ul-primary);
    color: var(--white);
    font-size: 38px;
}

.ul-feature-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px;
    text-align: start;
}

.ul-feature-card-title {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 700;
    color: var(--ul-black);
    margin-block-end: 10px;
}

.ul-feature-card-excerpt {
    font-size: 15px;
    line-height: 1.75;
    color: var(--ul-gray2);
    margin-block-end: 16px;
}

.ul-feature-card-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-block-start: auto;
    font-size: 14px;
    font-weight: 700;
    color: var(--ul-primary);
}

@media (min-width: 992px) {
    .ul-feature-grid.has-lead {
        grid-template-columns: repeat(3, 1fr);
    }

    .ul-feature-grid.has-lead > .ul-feature-card:first-child {
        grid-column: span 2;
        grid-row: span 2;
    }

    .ul-feature-grid.has-lead > .ul-feature-card:first-child .ul-feature-card-media {
        aspect-ratio: 16 / 9;
        height: 100%;
    }

    .ul-feature-grid.has-lead > .ul-feature-card:first-child .ul-feature-card-title {
        font-size: 24px;
    }
}

/* --------------------------------------------------------------------------
   College links
   -------------------------------------------------------------------------- */

.ul-colleges-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}

.ul-college-chip {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--white);
    border: 1px solid transparent;
    border-radius: 12px;
    text-decoration: none;
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.ul-college-chip:hover {
    border-color: var(--ul-c3);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(11, 37, 78, 0.1);
}

.ul-college-chip-icon {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--ul-gray);
    color: var(--ul-primary);
    font-size: 19px;
}

/* An editor-uploaded icon (see cms-icon.blade.php). The uploads are line
   drawings, not solid marks, so at 20px in a 40px badge they read as grey
   smudges from a normal viewing distance — they need most of the badge to be
   legible at all. Both the badge and the drawing inside it grew. */
.ul-college-chip-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.ul-college-chip-name {
    flex: 1;
    font-size: 15px;
    font-weight: 700;
    color: var(--ul-black);
    text-align: start;
}

.ul-college-chip-go {
    flex: 0 0 auto;
    color: var(--ul-gray3);
    font-size: 13px;
}

.ul-college-chip:hover .ul-college-chip-go {
    color: var(--ul-primary);
}

/* --------------------------------------------------------------------------
   Gallery strip
   -------------------------------------------------------------------------- */

.ul-strip-grid {
    display: grid;
    /* Four to a row: seven photos and the "view all" tile fill two rows
       (campus-life.blade.php passes seven). Two to a row on a phone. */
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

@media (max-width: 767px) {
    .ul-strip-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.ul-strip-item {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    background: var(--ul-gray);
}

.ul-strip-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.ul-strip-item:hover img {
    transform: scale(1.08);
}

.ul-strip-item-zoom {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(11, 37, 78, 0.55);
    color: var(--white);
    font-size: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ul-strip-item:hover .ul-strip-item-zoom {
    opacity: 1;
}

.ul-strip-more {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--ul-gradient);
    background-color: var(--ul-primary);
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    padding: 16px;
}

/* The global `a:hover` rule (style.css/en.css) repaints link text to
   --ul-primary, which is exactly this tile's own background — the label and
   icon were vanishing into it on hover, leaving only the browser's native
   `title` tooltip visible and reading as "the text disappeared". Pin it back
   to white. */
.ul-strip-more:hover {
    color: var(--white);
}

.ul-strip-more span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 20px;
}

.ul-strip-more span {
    font-size: 14px;
}

/* --------------------------------------------------------------------------
   Filter bar
   -------------------------------------------------------------------------- */

.ul-filterbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-block-end: 32px;
    padding-block-end: 20px;
    border-block-end: 1px solid var(--ul-gray);
}

.ul-filterbar-search {
    position: relative;
    flex: 1 1 260px;
    max-width: 380px;
}

.ul-filterbar-search i {
    position: absolute;
    inset-inline-start: 16px;
    inset-block-start: 50%;
    transform: translateY(-50%);
    color: var(--ul-gray3);
    font-size: 14px;
    pointer-events: none;
}

.ul-filterbar-input {
    width: 100%;
    padding: 12px 16px;
    padding-inline-start: 42px;
    border: 1px solid var(--ul-gray);
    border-radius: 999px;
    background: var(--white);
    font-family: inherit;
    font-size: 15px;
    color: var(--ul-black);
    transition: border-color 0.25s ease;
}

.ul-filterbar-input:focus {
    border-color: var(--ul-primary);
    outline: none;
}

.ul-filterbar-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ul-filterbar-chip {
    padding: 9px 18px;
    border: 1px solid var(--ul-gray);
    border-radius: 999px;
    background: var(--white);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    color: var(--ul-gray2);
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.ul-filterbar-chip:hover {
    border-color: var(--ul-primary);
    color: var(--ul-primary);
}

.ul-filterbar-chip.is-active {
    background: var(--ul-primary);
    border-color: var(--ul-primary);
    color: var(--white);
}

.ul-filterbar-count {
    margin: 0;
    margin-inline-start: auto;
    font-size: 14px;
    color: var(--ul-gray3);
}

.ul-filterbar-empty {
    flex: 1 0 100%;
    margin: 0;
    padding-block-start: 12px;
    color: var(--ul-gray2);
    font-size: 15px;
}

/* --------------------------------------------------------------------------
   Process steps

   The connecting rule runs behind the tiles on desktop. It is drawn with a
   pseudo-element on the list rather than borders on each item so it does not
   overshoot at either end in RTL or LTR.
   -------------------------------------------------------------------------- */

.ul-steps-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 24px;
    position: relative;
}

.ul-steps-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px 22px 26px;
    background: var(--white);
    border: 1px solid var(--ul-gray);
    border-radius: 16px;
    text-align: center;
}

.ul-steps-num {
    position: absolute;
    inset-block-start: -16px;
    inset-inline-start: 50%;
    transform: translateX(-50%);
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--ul-c3);
    color: var(--ul-black);
    font-weight: 700;
    font-size: 15px;
    direction: ltr;
}

.ul-steps-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--ul-gray);
    color: var(--ul-primary);
    font-size: 22px;
}

.ul-steps-title {
    font-family: var(--font-primary);
    font-size: 17px;
    font-weight: 700;
    color: var(--ul-black);
    margin: 0;
}

.ul-steps-text {
    font-size: 14px;
    line-height: 1.75;
    color: var(--ul-gray2);
    margin: 0;
}

/* --------------------------------------------------------------------------
   Closing CTA band
   -------------------------------------------------------------------------- */

.ul-ctaband {
    padding-block: 64px;
    background: var(--ul-gray);
}

.ul-ctaband-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 40px;
    border-radius: 20px;
    background: var(--ul-gradient);
    background-color: var(--ul-primary);
    color: var(--white);
}

.ul-ctaband-title {
    font-family: var(--font-primary);
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 700;
    color: var(--white);
    margin-block-end: 8px;
    text-align: start;
}

.ul-ctaband-text {
    font-size: 16px;
    opacity: 0.9;
    margin: 0;
    max-width: 60ch;
    text-align: start;
}

.ul-ctaband-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ul-ctaband-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    border-radius: 999px;
    background: var(--ul-c3);
    color: var(--ul-black);
    font-weight: 700;
    text-decoration: none;
    border: 2px solid var(--ul-c3);
    transition: filter 0.25s ease, transform 0.25s ease;
}

.ul-ctaband-btn:hover {
    filter: brightness(0.94);
    transform: translateY(-2px);
    color: var(--ul-black);
}

.ul-ctaband-btn.is-ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.55);
    color: var(--white);
}

.ul-ctaband-btn.is-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    filter: none;
}

/* --------------------------------------------------------------------------
   Motion

   One easing curve and one entrance shape, reused, so the page moves as a
   single thing rather than a collection of effects. Everything here is turned
   off wholesale in the reduced-motion block at the foot of this file.

   `backwards` fill on every entrance matters: without it an element with a
   delay is painted in its final position for the first few frames and then
   jumps back to the start of its own animation.
   -------------------------------------------------------------------------- */

@keyframes ul-rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes ul-hairline {
    from {
        height: 0;
    }
}

@keyframes ul-rule-in {
    from {
        width: 0;
    }
}

@keyframes ul-pin-drop {
    from {
        opacity: 0;
        /* The centring translate is part of the pin's position, so it has to be
           carried through the keyframes or the pin lands off its building. */
        transform: translate(-50%, -180%) scale(0.6);
    }
}

@keyframes ul-pin-pulse {
    from {
        transform: scale(0.9);
        opacity: 0.85;
    }

    to {
        transform: scale(1.7);
        opacity: 0;
    }
}

/* --------------------------------------------------------------------------
   Photographic hero — الحياة في الجامعة

   Taller than the shared page-hero and bottom-aligned: the photograph is the
   argument, so the type sits over its foot rather than centred in a band.
   Falls back to the same navy as page-hero.css when no image is supplied.
   -------------------------------------------------------------------------- */

/* The site header is `position: fixed; z-index: 2` — a very low ceiling. Every
   positioned block on this page therefore isolates its own stacking context, so
   an inner z-index (a scrim, a pin, a caption) can never climb out and paint
   over the navigation. Nothing here may exceed z-index 1 at page level. */
.ul-hero-feature {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: flex-end;
    min-height: 480px;
    padding-block: 150px 74px;
    background-color: var(--ul-primary);
    background-size: cover;
    background-position: center;
    color: var(--white);
    overflow: hidden;
}

/* The scrim. A pseudo-element rather than a background layer so it still
   applies when no photograph is set and the flat colour shows through. */
.ul-hero-feature::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(11, 37, 78, 0.96) 8%,
        rgba(11, 37, 78, 0.58) 52%,
        rgba(11, 37, 78, 0.32) 100%
    );
}

/* THE SCRIM ABOVE IS TUNED FOR THE FLAT GRADIENT, AND IT BURIES A PHOTOGRAPH —
   at 0.96 the lower two-fifths of the band are effectively solid navy, which is
   the right answer when there is nothing underneath and the wrong one when
   there is. Over a picture it is shaped on two axes instead: heavy at the
   corner the type occupies, clearing across the band so the far side is still
   legibly a photograph.

   The angle is a custom property because a gradient direction cannot be
   logical — `to right` is physical, and the type sits inline-start, which is
   the right edge in Arabic. */
.ul-hero-feature.has-photo {
    --ul-hero-scrim: 90deg;
}

[dir="rtl"] .ul-hero-feature.has-photo {
    --ul-hero-scrim: 270deg;
}

/* The two ramps are not a taste call — they are set so that the darkest
   composite over the worst pixel a photograph can present (pure white) still
   clears 4.5:1 against white type everywhere the type sits. A hall with a lit
   white wall behind the lede was measuring 3.4:1 before this. */
.ul-hero-feature.has-photo::before {
    background:
        linear-gradient(
            to top,
            rgba(11, 37, 78, 0.94) 0%,
            rgba(11, 37, 78, 0.72) 36%,
            rgba(11, 37, 78, 0.34) 74%,
            rgba(11, 37, 78, 0.5) 100%
        ),
        linear-gradient(
            var(--ul-hero-scrim),
            rgba(11, 37, 78, 0.92) 0%,
            rgba(11, 37, 78, 0.78) 28%,
            rgba(11, 37, 78, 0.4) 60%,
            rgba(11, 37, 78, 0) 86%
        );
}

/* One gold hairline out of the top corner — the only flourish on the band. */
.ul-hero-feature::after {
    content: "";
    position: absolute;
    inset-block-start: 0;
    inset-inline-end: 8%;
    width: 1px;
    height: 46%;
    background: linear-gradient(to bottom, var(--ul-c3), transparent);
    opacity: 0.7;
    animation: ul-hairline 0.9s ease 0.35s backwards;
}

/* Hero entrance — one shape, staggered down the block so the eye is led from
   the breadcrumb to the buttons rather than meeting everything at once. */
.ul-hero-feature-crumbs,
.ul-hero-feature-eyebrow,
.ul-hero-feature-title,
.ul-hero-feature-lede,
.ul-hero-feature-actions,
.ul-hero-feature-play {
    animation: ul-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.ul-hero-feature-crumbs {
    animation-delay: 0.05s;
}

.ul-hero-feature-eyebrow {
    animation-delay: 0.12s;
}

.ul-hero-feature-title {
    animation-delay: 0.2s;
}

.ul-hero-feature-lede {
    animation-delay: 0.3s;
}

.ul-hero-feature-actions {
    animation-delay: 0.4s;
}

.ul-hero-feature-play {
    animation-delay: 0.5s;
}

/* Room for the stat rail that overlaps this band's foot. */
.ul-hero-feature.has-rail {
    padding-block-end: 118px;
}

/* The hero is a flex row so its content can sit bottom-aligned. That makes the
   container a flex item, which would otherwise shrink to its content width and
   then centre itself on its own auto margins. */
.ul-hero-feature > .ul-container {
    position: relative;
    z-index: 1;
    width: 100%;
}

.ul-hero-feature-crumbs {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.72);
    margin-block-end: 18px;
}

.ul-hero-feature-crumbs a {
    color: var(--ul-c3);
}

.ul-hero-feature-crumbs a:hover {
    color: var(--white);
}

.ul-hero-feature-sep {
    margin-inline: 8px;
    color: rgba(255, 255, 255, 0.4);
}

.ul-hero-feature-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ul-c3);
    margin-block-end: 14px;
}

/* Latin only: spacing the letters of a joined script breaks the word. */
[dir="ltr"] .ul-hero-feature-eyebrow {
    letter-spacing: 0.06em;
}

.ul-hero-feature-eyebrow::after {
    content: "";
    height: 1px;
    width: 54px;
    background: rgba(254, 190, 53, 0.5);
}

.ul-hero-feature-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.12;
    max-width: 16ch;
    margin: 0 0 16px;
    color: var(--white);
}

/* Latin only: spacing the letters of a joined script breaks the word. */
[dir="ltr"] .ul-hero-feature-title {
    letter-spacing: -0.01em;
}

.ul-hero-feature-lede {
    font-size: clamp(16px, 1.6vw, 19px);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.86);
    max-width: 46ch;
    margin: 0;
}

.ul-hero-feature-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-block-start: 28px;
}

.ul-hero-feature-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 26px;
    border-radius: 6px;
    background: var(--ul-c3);
    color: var(--ul-primary);
    font-size: 15px;
    font-weight: 700;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.ul-hero-feature-btn:hover {
    color: var(--ul-primary);
    transform: translateY(-2px);
    box-shadow: 0 12px 26px -12px rgba(0, 0, 0, 0.55);
}

.ul-hero-feature-btn.is-ghost {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, 0.45);
}

.ul-hero-feature-btn.is-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
}

/* Opposite the type, so it never crowds the headline in either direction. */
.ul-hero-feature-play {
    position: absolute;
    z-index: 1;
    inset-block-end: 132px;
    inset-inline-end: 6%;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
}

.ul-hero-feature-play:hover {
    color: var(--ul-c3);
}

.ul-hero-feature-play-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.1);
    font-size: 13px;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.ul-hero-feature-play:hover .ul-hero-feature-play-icon {
    background: var(--ul-c3);
    border-color: var(--ul-c3);
    color: var(--ul-primary);
}

.ul-hero-feature-play-text {
    font-size: 14px;
    font-weight: 700;
}

.ul-hero-feature-play-text span {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.62);
}

/* --------------------------------------------------------------------------
   Statistics rail — overlaps the hero above it
   -------------------------------------------------------------------------- */

/* The band the rail is pulled out of. `flow-root` is load-bearing: without a
   block formatting context the rail's negative top margin collapses through
   and drags the section — and its background — up with it, which puts the grey
   over the hero instead of leaving the card straddling the two. */
.ul-page-section.carries-statrail {
    display: flow-root;
    padding-block-start: 0;
}

.ul-statrail-wrap {
    position: relative;
    z-index: 1;
    margin-block-start: -62px;
    /* Stands in for the section's top padding, which has to be zero above. */
    margin-block-end: 64px;
}

.ul-statrail {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 0;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 20px 48px -20px rgba(11, 37, 78, 0.45);
    overflow: hidden;
    animation: ul-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.55s backwards;
}

.ul-statrail-item {
    padding: 24px 22px;
    border-inline-start: 1px solid rgba(11, 37, 78, 0.1);
}

.ul-statrail-item:first-child {
    border-inline-start: 0;
}

.ul-statrail-value {
    margin: 0;
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 700;
    line-height: 1.05;
    color: var(--ul-primary);
    font-variant-numeric: tabular-nums;
}

.ul-statrail-label {
    font-size: 13.5px;
    font-weight: 400;
    color: var(--ul-gray2);
    margin-block-start: 4px;
}

/* --------------------------------------------------------------------------
   Campus life themes — three across, the image carries the tile

   Title only, over a scrim at the foot. A tile with no photograph keeps the
   layout by falling back to a tinted panel with the theme's icon, so the grid
   never reads as a wall of broken images while the shoot is pending.
   -------------------------------------------------------------------------- */

.ul-themes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

/* Nine tiles on a large screen, six on a phone (theme-tiles.blade.php). */
@media (max-width: 767px) {
    .ul-theme.is-wide-only {
        display: none;
    }
}

.ul-theme {
    position: relative;
    isolation: isolate;
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    overflow: hidden;
    background: var(--ul-primary);
    color: var(--white);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

a.ul-theme:hover {
    color: var(--white);
    transform: translateY(-4px);
    box-shadow: 0 18px 34px -18px rgba(11, 37, 78, 0.6);
}

.ul-theme-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

a.ul-theme:hover .ul-theme-img {
    transform: scale(1.05);
}

/* Scrim only at the foot, so the photograph stays the subject. */
.ul-theme::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    inset-block-end: 0;
    height: 62%;
    background: linear-gradient(
        to top,
        rgba(11, 37, 78, 0.94),
        rgba(11, 37, 78, 0.55) 45%,
        transparent
    );
}

.ul-theme-mark {
    position: absolute;
    z-index: 2;
    inset-block-start: 18px;
    inset-inline-start: 20px;
    font-size: 22px;
    color: var(--ul-c3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* The icon is the stand-in for a missing photograph — large and centred, so
   the tile reads as a designed panel rather than a failed image. */
.ul-theme.is-blank {
    background:
        linear-gradient(150deg, rgba(255, 255, 255, 0.08), transparent 60%),
        var(--ul-primary);
}

/* Nine identical navy panels read as one flat block. Two lighter steps give the
   grid some rhythm while the photography is pending, and cost nothing once the
   images land and cover them. */
.ul-theme.is-blank:nth-child(3n + 2) {
    background:
        linear-gradient(150deg, rgba(255, 255, 255, 0.14), transparent 62%),
        var(--ul-primary);
}

.ul-theme.is-blank:nth-child(3n + 3) {
    background:
        linear-gradient(210deg, rgba(254, 190, 53, 0.16), transparent 58%),
        var(--ul-primary);
}

.ul-theme.is-blank .ul-theme-mark {
    inset: 0;
    inset-block-end: 34%;
    display: grid;
    place-items: center;
    font-size: 46px;
    color: rgba(254, 190, 53, 0.72);
    opacity: 1;
}

/* The 12th tile, when the band publishes more than fits on the grid — the
   same photo again, dimmed across its whole face rather than just the foot
   (::after normally only covers the bottom 62%, to leave the title's own
   photo readable above it), with "المزيد" standing in for a title. */
.ul-theme.is-more::after {
    inset-block-start: 0;
    height: 100%;
    background: rgba(11, 37, 78, 0.5);
}

.ul-theme-more-overlay {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--white);
    font-size: 18px;
    font-weight: 700;
}

a.ul-theme.is-more:hover .ul-theme-more-overlay {
    gap: 12px;
    transition: gap 0.3s ease;
}

.ul-theme-title {
    position: absolute;
    z-index: 2;
    inset-inline: 0;
    inset-block-end: 0;
    margin: 0;
    padding: 18px 20px;
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
}

.ul-theme-title::before {
    content: "";
    display: block;
    width: 26px;
    height: 3px;
    border-radius: 2px;
    background: var(--ul-c3);
    margin-block-end: 10px;
    transition: width 0.3s ease;
}

/* The rule draws itself as the tile arrives — a small piece of life on a grid
   that is otherwise static until the tiles become links. */
.ul-theme.is-revealed .ul-theme-title::before {
    animation: ul-rule-in 0.55s ease 0.25s backwards;
}

.ul-theme-title {
    transition: transform 0.3s ease;
}

a.ul-theme:hover .ul-theme-title {
    transform: translateY(-4px);
}

a.ul-theme:hover .ul-theme-title::before {
    width: 46px;
}

/* --------------------------------------------------------------------------
   "See the full agenda" link under a teaser band
   -------------------------------------------------------------------------- */

.ul-page-more {
    margin: 26px 0 0;
    text-align: center;
}

.ul-page-more a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 15px;
    font-weight: 700;
    color: var(--ul-primary);
}

.ul-page-more a:hover {
    color: var(--ul-c3);
}

/* --------------------------------------------------------------------------
   Chapters — التسجيل والقبول

   A full step above the section headings inside them. Ten headings of equal
   weight in a row is what made this page read as scattered; grouping is the
   cure, and grouping only works if the group's heading outranks its parts.
   -------------------------------------------------------------------------- */

.ul-chapter {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-block-end: 30px;
    /* Chapters are anchor targets from the hero's contents list — clear the
       fixed site header so the heading is not hidden under it on arrival. */
    scroll-margin-block-start: 110px;
}

.ul-chapter-num {
    display: grid;
    place-items: center;
    flex: none;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--ul-primary);
    color: var(--ul-c3);
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.ul-chapter-title {
    font-family: var(--font-primary);
    font-size: clamp(23px, 2.6vw, 30px);
    font-weight: 700;
    color: var(--ul-black);
    margin: 0 0 6px;
}

.ul-chapter-lede {
    font-size: 15.5px;
    color: var(--ul-gray2);
    margin: 0;
}

.ul-chapter-block + .ul-chapter-block,
.ul-chapter + .ul-chapter-block {
    margin-block-start: 30px;
}

/* Table of contents in the hero. */
.ul-hero-toc {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-block-start: 26px;
}

.ul-hero-toc a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 17px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.ul-hero-toc a:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: var(--ul-c3);
    color: var(--white);
}

.ul-hero-toc span {
    color: var(--ul-c3);
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   The activity record — several hundred rows, scanned rather than browsed
   -------------------------------------------------------------------------- */

.ul-acts {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
    display: grid;
    gap: 9px;
}

/* [hidden] loses to `display: list-item` without this, so a filtered-out
   activity would stay on screen. */
.ul-act[hidden] {
    display: none;
}

.ul-act {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 13px 16px;
    background: var(--white);
    border: 1px solid rgba(11, 37, 78, 0.12);
    border-radius: 11px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ul-act:hover {
    border-color: rgba(11, 37, 78, 0.28);
    box-shadow: 0 10px 22px -18px rgba(11, 37, 78, 0.6);
}

.ul-act-date {
    flex: none;
    width: 58px;
    padding: 7px 4px;
    border-radius: 9px;
    background: rgba(11, 37, 78, 0.05);
    text-align: center;
    line-height: 1.25;
}

.ul-act-date b {
    display: block;
    font-size: 17px;
    font-weight: 700;
    color: var(--ul-primary);
    font-variant-numeric: tabular-nums;
}

.ul-act-date span {
    font-size: 10.5px;
    color: var(--ul-gray2);
    white-space: nowrap;
}

.ul-act-date.is-undated b {
    color: var(--ul-gray3);
}

.ul-act-body {
    display: grid;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.ul-act-title {
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.6;
    color: var(--ul-primary);
    text-decoration: none;
}

a.ul-act-title:hover,
a.ul-act-title:focus-visible {
    color: var(--ul-c3);
    text-decoration: underline;
}

.ul-act-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ul-act-kind,
.ul-act-college {
    font-size: 11.5px;
    padding: 3px 10px;
    border-radius: 20px;
    max-width: 100%;
}

/* The kind is two words and never needs to break. The college does —
   «كلية علوم الحاسوب وتكنولوجيا المعلومات» is wider than a phone, and holding
   it on one line pushed the whole page sideways. */
.ul-act-kind {
    white-space: nowrap;
}

/* The kind is the facet the reader is most often scanning for, so it carries
   the accent and the college stays quiet behind it. */
.ul-act-kind {
    background: rgba(254, 190, 53, 0.2);
    color: #8a6200;
    font-weight: 700;
}

.ul-act-college {
    background: rgba(11, 37, 78, 0.06);
    color: var(--ul-gray2);
}

/* --------------------------------------------------------------------------
   Upcoming band — renders only when a future-dated activity exists, which is
   not the case for any of the 487 currently published
   -------------------------------------------------------------------------- */

.ul-upcoming {
    background: var(--ul-primary);
    border-radius: 13px;
    padding: 20px 22px 22px;
    margin-block-end: 22px;
}

.ul-upcoming-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 4px;
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
}

.ul-upcoming-title i {
    color: var(--ul-c3);
}

/* The rows inside sit on navy, so they lose the card border and keep the
   white block that carries the date. */
.ul-upcoming .ul-act {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.16);
}

.ul-upcoming .ul-act-title {
    color: var(--white);
}

.ul-upcoming .ul-act-date {
    background: var(--ul-c3);
}

.ul-upcoming .ul-act-date b {
    color: var(--ul-primary);
}

.ul-upcoming .ul-act-date span {
    color: rgba(11, 37, 78, 0.75);
}

.ul-upcoming .ul-act-college {
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 520px) {
    .ul-act {
        gap: 11px;
        padding: 11px 13px;
    }

    .ul-act-date {
        width: 48px;
    }
}

/* --------------------------------------------------------------------------
   Graduating cohorts — newest first, the reader most likely here just left
   -------------------------------------------------------------------------- */

.ul-cohorts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-block-start: 20px;
}

.ul-cohort {
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: relative;
    padding: 18px 20px;
    background: var(--white);
    border: 1px solid rgba(11, 37, 78, 0.12);
    border-radius: 12px;
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.ul-cohort:hover,
.ul-cohort:focus-visible {
    border-color: var(--ul-c3);
    transform: translateY(-2px);
    box-shadow: 0 14px 26px -18px rgba(11, 37, 78, 0.6);
}

.ul-cohort.is-latest {
    background: var(--ul-primary);
    border-color: var(--ul-primary);
}

.ul-cohort-year {
    font-size: 19px;
    font-weight: 700;
    color: var(--ul-primary);
    font-variant-numeric: tabular-nums;
}

.ul-cohort.is-latest .ul-cohort-year {
    color: var(--white);
}

.ul-cohort-note {
    font-size: 12.5px;
    color: var(--ul-gray2);
}

.ul-cohort.is-latest .ul-cohort-note {
    color: var(--ul-c3);
    font-weight: 700;
}

.ul-cohort-go {
    position: absolute;
    inset-block-start: 18px;
    inset-inline-end: 18px;
    font-size: 12px;
    color: var(--ul-gray3);
}

.ul-cohort.is-latest .ul-cohort-go {
    color: rgba(255, 255, 255, 0.65);
}

/* --------------------------------------------------------------------------
   Published documents — one row per file, every one an outbound PDF
   -------------------------------------------------------------------------- */

.ul-files {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
    background: var(--white);
    border: 1px solid rgba(11, 37, 78, 0.12);
    border-radius: 12px;
    overflow: hidden;
}

/* [hidden] loses to `display: list-item` without this. */
.ul-file[hidden] {
    display: none;
}

.ul-file + .ul-file {
    border-block-start: 1px solid rgba(11, 37, 78, 0.08);
}

.ul-file-link {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px 18px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.ul-file-link:hover,
.ul-file-link:focus-visible {
    background: rgba(11, 37, 78, 0.03);
}

.ul-file-icon {
    font-size: 17px;
    color: #a32020;
    flex: none;
}

.ul-file-body {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 12px;
    flex: 1;
    min-width: 0;
}

.ul-file-name {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--ul-primary);
}

.ul-file-year {
    font-size: 12.5px;
    color: var(--ul-gray2);
    font-variant-numeric: tabular-nums;
}

.ul-file-tag {
    font-size: 10.5px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 4px;
    background: rgba(163, 32, 32, 0.09);
    color: #a32020;
    flex: none;
}

/* Latin only: spacing the letters of a joined script breaks the word. */
[dir="ltr"] .ul-file-tag {
    letter-spacing: 0.05em;
}

/* --------------------------------------------------------------------------
   Alumni services — grouped by what the reader came to do, not by which
   system owns the service
   -------------------------------------------------------------------------- */

.ul-svcgroups {
    display: grid;
    gap: 18px;
    margin-block-start: 20px;
}

.ul-svcgroup {
    background: rgba(11, 37, 78, 0.035);
    border-radius: 13px;
    padding: 20px 20px 18px;
}

.ul-svcgroup-title {
    margin: 0;
    padding-inline-start: 11px;
    border-inline-start: 3px solid var(--ul-c3);
    font-family: var(--font-primary);
    font-size: 17px;
    font-weight: 700;
    color: var(--ul-primary);
}

.ul-svcgroup-lede {
    margin: 7px 0 15px;
    padding-inline-start: 14px;
    font-size: 13.5px;
    color: var(--ul-gray2);
}

.ul-svcgroup-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 11px;
}

.ul-svcitem {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 17px;
    background: var(--white);
    border: 1px solid rgba(11, 37, 78, 0.12);
    border-radius: 11px;
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.ul-svcitem:hover,
.ul-svcitem:focus-visible {
    border-color: var(--ul-c3);
    transform: translateY(-2px);
    box-shadow: 0 14px 26px -18px rgba(11, 37, 78, 0.6);
}

/* Requesting a certificate is the single most common reason a graduate comes
   back — it should be findable without reading the group. */
.ul-svcitem.is-feature {
    border-color: var(--ul-c3);
    box-shadow: inset 0 0 0 1px var(--ul-c3);
}

.ul-svcitem-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex: none;
    border-radius: 9px;
    background: rgba(254, 190, 53, 0.16);
    color: var(--ul-primary);
    font-size: 15px;
}

/* An editor-uploaded icon (see cms-icon.blade.php). Same reason as the college
   chip above: these are line drawings and need most of the badge to read. */
.ul-svcitem-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.ul-svcitem-body {
    display: grid;
    gap: 3px;
    flex: 1;
    min-width: 0;
}

.ul-svcitem-label {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--ul-primary);
}

.ul-svcitem-desc {
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--ul-gray2);
}

.ul-svcitem-go {
    font-size: 11px;
    color: var(--ul-gray3);
    flex: none;
    margin-block-start: 4px;
}

.ul-appbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px 13px;
    margin-block-start: 13px;
    padding-block-start: 13px;
    border-block-start: 1px solid rgba(11, 37, 78, 0.1);
}

.ul-appbar-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--ul-gray2);
}

.ul-appbar-text i {
    color: var(--ul-c3);
}

.ul-appbar-store {
    padding: 5px 13px;
    border-radius: 6px;
    background: var(--ul-primary);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease;
}

.ul-appbar-store:hover,
.ul-appbar-store:focus-visible {
    background: var(--ul-c3);
    color: var(--ul-primary);
}

/* --------------------------------------------------------------------------
   Programme catalogue — rows, because 28 programmes with five comparable
   attributes each is a scanning task, not a browsing one
   -------------------------------------------------------------------------- */

.ul-progtable-wrap {
    overflow-x: auto;
    background: var(--white);
    border: 1px solid rgba(11, 37, 78, 0.12);
    border-radius: 12px;
    margin-block-start: 18px;
}

.ul-progtable {
    width: 100%;
    border-collapse: collapse;
    font-size: 14.5px;
    /* Below this the columns crush rather than wrap; the wrapper scrolls. */
    min-width: 720px;
}

.ul-progtable thead th {
    padding: 13px 18px;
    text-align: start;
    background: rgba(11, 37, 78, 0.05);
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 700;
    color: var(--ul-gray2);
    white-space: nowrap;
}

.ul-progtable td,
.ul-progtable tbody th {
    padding: 13px 18px;
    text-align: start;
    border-block-start: 1px solid rgba(11, 37, 78, 0.08);
    vertical-align: middle;
}

/* [hidden] loses to `display: table-row` without this, so a filtered-out
   programme would stay on screen. */
.ul-progrow[hidden] {
    display: none;
}

.ul-progrow:hover {
    background: rgba(11, 37, 78, 0.025);
}

.ul-progrow-name {
    font-weight: 700;
    color: var(--ul-primary);
}

.ul-progrow-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ul-progrow-name a:hover,
.ul-progrow-name a:focus-visible {
    color: var(--ul-c3);
    text-decoration: underline;
}

.ul-progrow-college,
.ul-progrow-years {
    color: var(--ul-gray2);
    font-size: 13.5px;
}

.ul-progrow-mode {
    display: inline-block;
    padding: 4px 11px;
    border-radius: 20px;
    background: rgba(11, 37, 78, 0.06);
    color: var(--ul-gray2);
    font-size: 12.5px;
    white-space: nowrap;
}

/* The programmes that also run in the evening are the answer to the one
   question a working applicant brings to this page — they get the accent. */
.ul-progrow-mode.is-both {
    background: rgba(254, 190, 53, 0.18);
    color: #8a6200;
    font-weight: 700;
}

.ul-progtable-num {
    text-align: end !important;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.ul-progtable-note {
    margin-block-start: 12px;
    font-size: 13px;
    color: var(--ul-gray2);
}

/* --------------------------------------------------------------------------
   Browse by college — the route for a reader who already knows their field
   -------------------------------------------------------------------------- */

.ul-collegecount {
    display: grid;
    /* Twelve colleges on a fixed 4 × 3 grid. auto-fit left a wide row of
       short one-line cards with blank space inside each one; four narrower
       columns let the name wrap and fill the card instead. */
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-block-start: 20px;
}

.ul-collegecount-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    min-height: 118px;
    padding: 18px 20px;
    background: var(--white);
    border: 1px solid rgba(11, 37, 78, 0.12);
    border-radius: 11px;
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.ul-collegecount-item:hover,
.ul-collegecount-item:focus-visible {
    border-color: var(--ul-c3);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -18px rgba(11, 37, 78, 0.6);
}

.ul-collegecount-name {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
    color: var(--ul-primary);
    overflow-wrap: anywhere;
}

.ul-collegecount-n {
    font-size: 13px;
    color: var(--ul-gray2);
    white-space: nowrap;
}

@media (max-width: 991.98px) {
    .ul-collegecount {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .ul-collegecount {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .ul-collegecount-item {
        min-height: 0;
    }
}

/* --------------------------------------------------------------------------
   Filter bar — labelled groups, each narrowing independently
   -------------------------------------------------------------------------- */

.ul-filterbar-group {
    display: flex;
    align-items: center;
    gap: 8px 12px;
    margin-block-start: 10px;
    /* Each group is a row of its own — colleges, then years beneath. Without
       a full-width basis, two short groups (three colleges, three years)
       fit side by side on one line of the wrapping bar. */
    flex: 1 1 100%;
    /* .ul-filterbar is itself a flex container, so this row is a flex item and
       inherits min-width:auto — it would refuse to shrink below its chips and
       drag the page sideways, which is the same trap as the chip row below.
       Both levels need it. */
    min-width: 0;
}

.ul-filterbar-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--ul-gray2);
    flex: none;
    /* Holds the group labels in a column so the chip rows line up. */
    min-width: 84px;
}

/* The chips scroll sideways rather than wrapping. Ten colleges wrapped to four
   lines pushed the list itself below the fold, and a row that changes height as
   you filter makes the page jump under the cursor. */
.ul-filterbar-group .ul-filterbar-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: thin;
    padding-block-end: 4px;
    /* Without this the row refuses to shrink below its content and scrolls the
       PAGE sideways instead of itself — a flex item's min-width defaults to
       auto, and overflow-x alone does not override it. */
    min-width: 0;
    /* Fades the cut edge so a half-visible chip reads as "more this way"
       rather than as a rendering fault. */
    mask-image: linear-gradient(to left, transparent 0, #000 18px);
}

/* LTR mirrors the fade; `to left` would fade the wrong end. */
html[dir="ltr"] .ul-filterbar-group .ul-filterbar-chips {
    mask-image: linear-gradient(to right, transparent 0, #000 18px);
}

.ul-filterbar-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: none;
}

/* The count on each chip — how many the filter would leave. */
.ul-filterbar-n {
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    padding: 1px 6px;
    border-radius: 20px;
    background: rgba(11, 37, 78, 0.09);
    color: var(--ul-gray2);
}

.ul-filterbar-chip.is-active .ul-filterbar-n {
    background: rgba(255, 255, 255, 0.22);
    color: var(--white);
}

/* Dimmed, not removed: a row that loses chips as you filter jumps around, and
   "this one holds nothing right now" is the useful signal. */
.ul-filterbar-chip.is-empty {
    opacity: 0.4;
}

.ul-filterbar-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    margin-block-start: 14px;
    padding-block-start: 12px;
    border-block-start: 1px solid rgba(11, 37, 78, 0.09);
}

.ul-filterbar-clear {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border: 1px solid rgba(11, 37, 78, 0.2);
    border-radius: 20px;
    background: var(--white);
    font-family: var(--font-primary);
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ul-gray2);
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.ul-filterbar-clear:hover,
.ul-filterbar-clear:focus-visible {
    border-color: var(--ul-c3);
    color: var(--ul-primary);
}

@media (max-width: 620px) {
    .ul-filterbar-group {
        flex-wrap: wrap;
    }

    .ul-filterbar-label {
        min-width: 0;
        width: 100%;
    }
}

/* --------------------------------------------------------------------------
   Pagination — presentation only; every row stays in the DOM so the search
   can still reach it
   -------------------------------------------------------------------------- */

.ul-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 18px;
    margin-block-start: 22px;
}

.ul-pager[hidden] {
    display: none;
}

.ul-pager-range {
    margin: 0;
    font-size: 13px;
    color: var(--ul-gray2);
    font-variant-numeric: tabular-nums;
}

.ul-pager-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ul-pager-pages {
    display: flex;
    align-items: center;
    gap: 5px;
}

.ul-pager-step,
.ul-pager-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 38px;
    height: 38px;
    padding: 0 13px;
    border: 1px solid rgba(11, 37, 78, 0.16);
    border-radius: 9px;
    background: var(--white);
    font-family: var(--font-primary);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ul-primary);
    font-variant-numeric: tabular-nums;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.ul-pager-step i {
    font-size: 11px;
}

.ul-pager-step:hover:not(:disabled),
.ul-pager-page:hover:not(.is-current),
.ul-pager-step:focus-visible,
.ul-pager-page:focus-visible {
    border-color: var(--ul-c3);
}

.ul-pager-step:disabled {
    opacity: 0.4;
    cursor: default;
}

.ul-pager-page.is-current {
    background: var(--ul-primary);
    border-color: var(--ul-primary);
    color: var(--white);
    cursor: default;
}

.ul-pager-gap {
    padding-inline: 2px;
    color: var(--ul-gray3);
}

@media (max-width: 520px) {
    /* The word labels go; the arrows still say which way. */
    .ul-pager-step span {
        display: none;
    }

    .ul-pager-step {
        min-width: 38px;
        padding: 0 11px;
    }
}

/* --------------------------------------------------------------------------
   Pathway bar — a toolbar above the blocks it switches, sticky while they
   scroll past.

   It is NOT full-bleed. It sits inside the chapter's .ul-container, because a
   white edge-to-edge bar between the hero and the first section painted a
   white strip either side of the stat rail — read as a rendering fault, and
   claimed page-wide authority it does not have.
   -------------------------------------------------------------------------- */

.ul-pathbar {
    position: sticky;
    /* Clears the fixed site header. Below it, not over it — the header owns
       z-index 2 and nothing on these pages may climb past it. */
    inset-block-start: 84px;
    z-index: 1;
    margin-block-end: 18px;
    background: var(--white);
    border: 1px solid rgba(11, 37, 78, 0.12);
    border-radius: 12px;
    box-shadow: 0 6px 16px -12px rgba(11, 37, 78, 0.5);
}

.ul-pathbar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    padding: 12px 18px;
}

.ul-pathbar-lede {
    font-size: 14px;
    font-weight: 700;
    color: var(--ul-gray2);
}

.ul-pathbar-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ul-pathbar-chip {
    padding: 7px 16px;
    border-radius: 22px;
    border: 1px solid rgba(11, 37, 78, 0.2);
    background: var(--white);
    color: var(--ul-gray2);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.ul-pathbar-chip:hover {
    border-color: var(--ul-primary);
    color: var(--ul-primary);
}

.ul-pathbar-chip.is-active {
    background: var(--ul-primary);
    border-color: var(--ul-primary);
    color: var(--white);
}

/* --------------------------------------------------------------------------
   Requirements and documents — read together, so laid out together
   -------------------------------------------------------------------------- */

.ul-checks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    align-items: start;
}

.ul-check {
    background: var(--white);
    border: 1px solid rgba(11, 37, 78, 0.12);
    border-radius: 12px;
    overflow: hidden;
}

.ul-check-title {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0;
    padding: 15px 20px;
    background: rgba(11, 37, 78, 0.05);
    font-family: var(--font-primary);
    font-size: 17px;
    font-weight: 700;
    color: var(--ul-black);
}

.ul-check-title i {
    color: var(--ul-c3);
    font-size: 16px;
}

.ul-check-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ul-check-item {
    display: grid;
    gap: 3px;
    padding: 13px 20px;
    border-block-start: 1px solid rgba(11, 37, 78, 0.08);
}

.ul-check-label {
    position: relative;
    padding-inline-start: 24px;
    font-size: 15px;
    color: var(--ul-black);
}

.ul-check-label::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    inset-inline-start: 0;
    color: var(--ul-c3);
    font-size: 12px;
}

.ul-check-note {
    padding-inline-start: 24px;
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--ul-gray2);
}

/* Collapsing a long list.

   Both rules are gated on .js-collapse, which uowa-pages.js puts on <html>.
   Without it nothing hides and the button is not shown at all — the served
   markup is the complete list, and a reader with no JavaScript never meets a
   button that cannot work. */

.ul-check-more {
    display: none;
}

.js-collapse .ul-check-list.is-collapsed .ul-check-item.is-extra {
    display: none;
}

.js-collapse .ul-check-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    padding: 13px 20px;
    border: 0;
    border-block-start: 1px solid rgba(11, 37, 78, 0.08);
    background: rgba(11, 37, 78, 0.03);
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 700;
    color: var(--ul-primary);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.ul-check-more i {
    font-size: 11px;
    transition: transform 0.25s ease;
}

.ul-check-more.is-open i {
    transform: rotate(180deg);
}

.ul-check-more:hover,
.ul-check-more:focus-visible {
    background: rgba(11, 37, 78, 0.07);
    color: var(--ul-c3);
}

/* --------------------------------------------------------------------------
   Application steps
   -------------------------------------------------------------------------- */

.ul-apply-steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
}

.ul-apply-step {
    position: relative;
    padding-block-start: 46px;
}

/* The rule runs from each number toward the next, marking the sequence. It is
   suppressed on the last step, and below three across (see the media query),
   where it would point at a step on the following row. */
.ul-apply-step::before {
    content: "";
    position: absolute;
    inset-block-start: 17px;
    inset-inline-start: 46px;
    inset-inline-end: -20px;
    height: 2px;
    background: rgba(11, 37, 78, 0.14);
}

.ul-apply-step:last-child::before {
    display: none;
}

.ul-apply-step-num {
    position: absolute;
    inset-block-start: 0;
    inset-inline-start: 0;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--ul-primary);
    color: var(--white);
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
}

.ul-apply-step-title {
    font-family: var(--font-primary);
    font-size: 17px;
    font-weight: 700;
    color: var(--ul-black);
    margin: 0 0 6px;
}

.ul-apply-step-text {
    font-size: 14px;
    line-height: 1.75;
    color: var(--ul-gray2);
    margin: 0;
}

.ul-apply-action {
    margin: 34px 0 0;
}

.ul-apply-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    border-radius: 6px;
    background: var(--ul-c3);
    color: var(--ul-primary);
    font-size: 16px;
    font-weight: 700;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ul-apply-btn:hover {
    color: var(--ul-primary);
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -14px rgba(11, 37, 78, 0.55);
}

/* --------------------------------------------------------------------------
   Fees and dates — paired, because both answer "what do I plan for"
   -------------------------------------------------------------------------- */

.ul-plan-pair {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

/* One half alone should fill the row rather than sit in a half-width column. */
.ul-plan-pair > :only-child {
    grid-column: 1 / -1;
}

/* The narrow column stacks whatever it is given — the dated rail when dates
   exist, and the standing notes either way. */
.ul-plan-aside {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* --------------------------------------------------------------------------
   Standing note — points at a document the page cannot restate as data
   -------------------------------------------------------------------------- */

.ul-docnote {
    background: var(--white);
    border: 1px solid rgba(11, 37, 78, 0.12);
    border-radius: 12px;
    padding: 18px 20px;
}

.ul-docnote-head {
    display: flex;
    align-items: center;
    gap: 11px;
}

.ul-docnote-head i {
    color: var(--ul-c3);
    font-size: 17px;
}

.ul-docnote-title {
    margin: 0;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 700;
    color: var(--ul-black);
}

.ul-docnote-body {
    margin: 10px 0 0;
    font-size: 13.5px;
    line-height: 1.8;
    color: var(--ul-gray2);
}

.ul-docnote-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-block-start: 14px;
    font-size: 14px;
    font-weight: 700;
    color: var(--ul-primary);
    text-decoration: none;
    transition: gap 0.2s ease, color 0.2s ease;
}

.ul-docnote-link i {
    font-size: 12px;
}

.ul-docnote-link:hover,
.ul-docnote-link:focus-visible {
    gap: 13px;
    color: var(--ul-c3);
}

.ul-fees-wrap {
    overflow-x: auto;
    background: var(--white);
    border: 1px solid rgba(11, 37, 78, 0.12);
    border-radius: 12px;
}

.ul-fees {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.ul-fees-caption {
    caption-side: top;
    text-align: start;
    padding: 15px 20px 0;
    font-size: 13.5px;
    color: var(--ul-gray3);
}

.ul-fees th,
.ul-fees td {
    padding: 13px 20px;
    text-align: start;
    border-block-end: 1px solid rgba(11, 37, 78, 0.09);
}

.ul-fees thead th {
    background: rgba(11, 37, 78, 0.05);
    font-family: var(--font-primary);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ul-black);
    white-space: nowrap;
}

.ul-fees tbody th {
    font-weight: 700;
    color: var(--ul-black);
}

.ul-fees tbody tr:last-child th,
.ul-fees tbody tr:last-child td {
    border-block-end: 0;
}

.ul-fees-amount {
    font-weight: 700;
    color: var(--ul-primary);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.ul-dates {
    list-style: none;
    margin: 0;
    padding: 0;
    background: var(--white);
    border: 1px solid rgba(11, 37, 78, 0.12);
    border-radius: 12px;
    overflow: hidden;
}

.ul-dates-item {
    display: grid;
    grid-template-columns: minmax(96px, auto) minmax(0, 1fr);
    gap: 14px;
    align-items: baseline;
    padding: 14px 20px;
}

.ul-dates-item + .ul-dates-item {
    border-block-start: 1px solid rgba(11, 37, 78, 0.09);
}

.ul-dates-when {
    font-weight: 700;
    color: var(--ul-primary);
    font-size: 15px;
}

.ul-dates-what {
    font-size: 15px;
    color: var(--ul-gray2);
}

/* --------------------------------------------------------------------------
   FAQ — built on <details>, so it can never fail shut
   -------------------------------------------------------------------------- */

.ul-faq-list {
    border: 1px solid rgba(11, 37, 78, 0.12);
    border-radius: 12px;
    overflow: hidden;
    background: var(--white);
}

.ul-faq-item + .ul-faq-item {
    border-block-start: 1px solid rgba(11, 37, 78, 0.09);
}

.ul-faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 17px 22px;
    cursor: pointer;
    list-style: none;
    font-family: var(--font-primary);
    font-size: 16.5px;
    font-weight: 700;
    color: var(--ul-black);
    transition: background 0.2s ease, color 0.2s ease;
}

/* Suppress the native disclosure triangle — the marker below replaces it and
   mirrors correctly for RTL, which the triangle does not. */
.ul-faq-q::-webkit-details-marker {
    display: none;
}

.ul-faq-q:hover {
    background: var(--ul-gray);
    color: var(--ul-primary);
}

.ul-faq-mark {
    position: relative;
    flex: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(11, 37, 78, 0.08);
    transition: background 0.25s ease;
}

.ul-faq-mark::before,
.ul-faq-mark::after {
    content: "";
    position: absolute;
    inset-block-start: 50%;
    inset-inline-start: 50%;
    width: 10px;
    height: 2px;
    margin-block-start: -1px;
    margin-inline-start: -5px;
    border-radius: 1px;
    background: var(--ul-primary);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.ul-faq-mark::after {
    transform: rotate(90deg);
}

.ul-faq-item[open] .ul-faq-mark {
    background: var(--ul-c3);
}

.ul-faq-item[open] .ul-faq-mark::after {
    transform: rotate(0deg);
    opacity: 0;
}

.ul-faq-a {
    padding: 0 22px 20px;
    font-size: 15px;
    line-height: 1.9;
    color: var(--ul-gray2);
}

.ul-faq-a :is(p, ul, ol):last-child {
    margin-block-end: 0;
}

/* --------------------------------------------------------------------------
   Closing contact band
   -------------------------------------------------------------------------- */

.ul-contactband {
    background: var(--ul-gradient);
    background-color: var(--ul-primary);
    color: var(--white);
    padding-block: 60px;
}

.ul-contactband-title {
    font-family: var(--font-primary);
    font-size: clamp(22px, 2.6vw, 29px);
    font-weight: 700;
    color: var(--white);
    margin: 0 0 8px;
}

.ul-contactband-lede {
    font-size: 15.5px;
    color: rgba(255, 255, 255, 0.78);
    margin: 0;
}

.ul-contactband-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin: 30px 0 0;
}

.ul-contactband-cell {
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 10px;
    padding: 18px 20px;
}

.ul-contactband-cell dt {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ul-c3);
    margin-block-end: 8px;
}

/* An editor can file an icon against a contact row instead of taking the Font
   Awesome default (App\Support\Admissions::contact). It has to be pinned to
   the glyph's size — an SVG with no intrinsic dimensions otherwise fills the
   cell and pushes the label out of the band. */
.ul-contactband-cell dt img {
    /* Inline with the label rather than inside a tile, so it is sized against
       the type — 1.35em of a 13px label — not against a box. */
    width: 1.35em;
    height: 1.35em;
    object-fit: contain;
    flex-shrink: 0;
}

.ul-contactband-cell dd {
    margin: 0;
    font-size: 16px;
    line-height: 1.8;
}

.ul-contactband-cell dd a {
    color: var(--white);
}

.ul-contactband-cell dd a:hover {
    color: var(--ul-c3);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1199px) {
    .ul-themes-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }
}

@media (max-width: 991px) {
    /* Three columns stop fitting. The device goes full width above the cards,
       which keeps it as the thing you meet first rather than shrinking it into
       a sliver between two columns. */
    .ul-appbento-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: auto;
    }

    .ul-appbento-card:nth-of-type(1),
    .ul-appbento-card:nth-of-type(2),
    .ul-appbento-card:nth-of-type(3),
    .ul-appbento-card:nth-of-type(4) {
        grid-column: auto;
        grid-row: auto;
    }

    .ul-appbento-device {
        grid-column: 1 / -1;
        grid-row: 1;
        padding: 26px;
    }

    .ul-appbento-phone {
        max-width: 178px;
    }

    .ul-hero-feature {
        min-height: 400px;
        padding-block: 130px 60px;
    }

    .ul-hero-feature.has-rail {
        padding-block-end: 92px;
    }

    /* Below the headline there is no longer room beside it — the play control
       would sit on top of the type, so it moves out of the corner. */
    .ul-hero-feature-play {
        position: static;
        margin-block-start: 26px;
    }

    .ul-statrail {
        grid-template-columns: repeat(2, 1fr);
    }

    .ul-statrail-item:nth-child(3) {
        border-inline-start: 0;
    }

    .ul-statrail-item:nth-child(n + 3) {
        border-block-start: 1px solid rgba(11, 37, 78, 0.1);
    }

    .ul-themes-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ul-plan-pair {
        grid-template-columns: 1fr;
    }

    .ul-pathbar {
        inset-block-start: 70px;
    }

    /* Below three across the rule points at a step on the next row, which
       reads as a wrong sequence rather than a helpful one. */
    .ul-apply-step::before {
        display: none;
    }

    .ul-evt-date {
        flex-basis: 80px;
    }

    .ul-evt-media {
        display: none;
    }
}

@media (max-width: 575px) {
    .ul-prog-grid,
    .ul-story-grid,
    .ul-svc-grid,
    .ul-rank-grid,
    .ul-rankhead,
    .ul-accred,
    .ul-appbento-grid,
    .ul-themes-grid {
        grid-template-columns: 1fr;
    }

    /* Two badges side by side stop fitting; full width keeps the two-line
       label readable rather than squeezing it. */
    .ul-appbento-store {
        flex: 1 1 100%;
        min-width: 0;
        justify-content: center;
    }

    .ul-statrail {
        grid-template-columns: 1fr;
    }

    .ul-statrail-item {
        border-inline-start: 0;
    }

    .ul-statrail-item + .ul-statrail-item {
        border-block-start: 1px solid rgba(11, 37, 78, 0.1);
    }

    .ul-hero-feature-title {
        max-width: none;
    }

    .ul-chapter {
        gap: 12px;
    }

    .ul-chapter-num {
        width: 38px;
        height: 38px;
        font-size: 17px;
    }

    /* One column: the date becomes a strip above the text and the action sits
       under it, so nothing is pinned to an end that no longer exists. */
    .ul-evt-date {
        flex: 1 1 100%;
        flex-direction: row;
        gap: 8px;
        justify-content: flex-start;
        padding: 10px 14px;
    }

    .ul-evt-body {
        flex-basis: 100%;
    }

    .ul-evt-actions {
        margin-inline-start: 0;
    }

    .ul-page-cta {
        padding: 24px;
    }

    .ul-page-empty {
        padding: 44px 18px;
    }
}

/* ==========================================================================
   Scroll reveal

   Fail-safe by construction: the hidden state is scoped to .js-reveal, a class
   uowa-pages.js puts on <html> only once it has an IntersectionObserver and is
   about to observe. No script, old browser, or script error => the class is
   never added => content is simply visible.

   This replaces the site's `wow animate__*` convention for these pages. WOW.js
   sets visibility:hidden inline on every .wow element and reveals on scroll; a
   reveal that does not fire hides the content for good, which is what blanked
   the rankings grid. Decorative vectors can afford that. Content cannot.
   ========================================================================== */

.js-reveal [data-reveal],
.js-reveal [data-reveal-delay] {
    opacity: 0;
    transform: translateY(20px);
}

.js-reveal [data-reveal].is-revealed,
.js-reveal [data-reveal-delay].is-revealed {
    opacity: 1;
    transform: none;
    transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

/* A card that is also a hover target must not keep the reveal transition
   afterwards, or its hover lift inherits the 0.55s easing. */
.js-reveal [data-reveal-delay].is-revealed.is-settled {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* ==========================================================================
   Reduced motion — MUST stay last in this file

   Reduce *motion*, not all feedback. The first version of this block zeroed
   transition-duration on everything, which killed the hover states outright and
   made these pages feel dead next to the homepage, which honours no such
   preference. WCAG 2.3.3 asks for movement to be removable, not for interfaces
   to stop responding — so travel (transform) and the WOW.js scroll-reveal are
   switched off, while colour, shadow and opacity keep animating.
   ========================================================================== */




/* --------------------------------------------------------------------------
   Statistics page — the cards the figures sit in

   THESE LIVED IN style.css, WHICH ONLY THE ARABIC PAGES LOAD. So
   /english/statistics was the same markup with no card, no padding, no
   heading rule and no responsive steps — the figures ran loose down the
   page while /arabic/statistics was complete. Nothing in them is
   direction-specific (the one rule that was is now logical), so they belong
   here, in the sheet the page itself loads in both languages.

   The forms inside the cards are in the block above.
   -------------------------------------------------------------------------- */
.ul-stats-overview-section {
  background: #f8f9fa;
}

.ul-stat-overview-card {
  background: white;
  border-radius: 15px;
  padding: 30px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
}

.ul-stat-overview-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(11, 37, 78, 0.15);
}

.ul-stat-overview-icon {
  width: 70px;
  height: 70px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(11, 37, 78, 0.1) 0%, rgba(254, 190, 53, 0.1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ul-stat-overview-icon i {
  font-size: 32px;
  color: var(--ul-primary);
}

.ul-stat-overview-content {
  flex: 1;
  /* Logical, so the English page reads from the left. It was `right`, which
     is also what this whole block being in style.css amounted to. */
  text-align: start;
}

.ul-stat-overview-number {
  font-size: 32px;
  font-weight: 700;
  color: var(--ul-primary);
  margin: 0 0 5px 0;
  line-height: 1;
}

.ul-stat-overview-label {
  font-size: 14px;
  color: var(--ul-gray2);
  margin: 0;
  font-weight: 400;
}

.ul-chart-card {
  background: white;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
}

.ul-chart-card:hover {
  box-shadow: 0 5px 20px rgba(11, 37, 78, 0.1);
}

.ul-chart-card-header {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f0f0f0;
}

.ul-chart-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ul-primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ul-chart-card-title i {
  color: var(--ul-secondary);
  font-size: 20px;
}

.ul-chart-card-body {
  position: relative;
  min-height: 300px;
  padding: 10px;
}

.ul-chart-card-body canvas {
  max-height: 400px;
}

/* Responsive */
@media (max-width: 991px) {
  .ul-stat-overview-card {
    padding: 20px;
  }

  .ul-stat-overview-icon {
    width: 60px;
    height: 60px;
  }

  .ul-stat-overview-icon i {
    font-size: 28px;
  }

  .ul-stat-overview-number {
    font-size: 28px;
  }

  .ul-chart-card {
    padding: 20px;
  }

  .ul-chart-card-body {
    min-height: 250px;
  }
}

@media (max-width: 768px) {
  .ul-stat-overview-card {
    padding: 18px;
    gap: 15px;
  }

  .ul-stat-overview-icon {
    width: 55px;
    height: 55px;
  }

  .ul-stat-overview-icon i {
    font-size: 24px;
  }

  .ul-stat-overview-number {
    font-size: 24px;
  }

  .ul-stat-overview-label {
    font-size: 13px;
  }

  .ul-chart-card-title {
    font-size: 16px;
  }

  .ul-chart-card-title i {
    font-size: 18px;
  }
}

@media (max-width: 576px) {
  .ul-stat-overview-card {
    padding: 15px;
  }

  .ul-chart-card {
    padding: 15px;
  }

  .ul-chart-card-body {
    min-height: 200px;
    padding: 5px;
  }
}


/* --------------------------------------------------------------------------
   Statistics figures — إحصائيات الجامعة

   Three forms, picked by App\Support\Statistics::form() from the shape of the
   data: one figure stated large, a two-part split, or a ranked bar table.
   See components/uowa/statistics/charts-grid.blade.php for why there is no
   chart library behind any of them.
   -------------------------------------------------------------------------- */

.ul-chart-card-body.is-figure,
.ul-chart-card-body.is-split {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* --- one number ---------------------------------------------------------- */

.ul-figure {
    margin: 0;
    padding-block: 18px;
    text-align: center;
}

.ul-figure-value {
    display: block;
    font-size: clamp(38px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.05;
    color: var(--ul-primary);
    font-variant-numeric: tabular-nums;
}

.ul-figure-label {
    display: block;
    margin-block-start: 8px;
    font-size: 14px;
    color: var(--ul-gray2);
}

/* --- the slice palette --------------------------------------------------- */

/* Five slices is the most a ring here ever draws (see Statistics::form), and
   they have to be told apart at a glance: the site's navy and gold first,
   then three steps between them. */
:root {
    --ul-slice-1: #0b254e;
    --ul-slice-2: #fec619;
    --ul-slice-3: #3b6ea5;
    --ul-slice-4: #8fa9c7;
    --ul-slice-5: #c98a2b;
}

.ul-slice-1 { background: var(--ul-slice-1); }
.ul-slice-2 { background: var(--ul-slice-2); }
.ul-slice-3 { background: var(--ul-slice-3); }
.ul-slice-4 { background: var(--ul-slice-4); }
.ul-slice-5 { background: var(--ul-slice-5); }

/* --- a whole, in three or four parts ------------------------------------- */

.ul-donut-wrap {
    display: flex;
    align-items: center;
    gap: clamp(18px, 3vw, 34px);
    flex-wrap: wrap;
    padding-block: 6px;
}

/* The ring itself is a conic-gradient set inline from the slice bounds — see
   components/uowa/statistics/charts-grid.blade.php. */
.ul-donut {
    position: relative;
    inline-size: clamp(132px, 15vw, 164px);
    aspect-ratio: 1;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Punches the ring out of the disc. Sits on the card, so it takes the card's
   own white rather than a colour of its own. */
.ul-donut-hole {
    position: absolute;
    inset: 24%;
    border-radius: 50%;
    background: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
}

.ul-donut-hole b {
    font-size: clamp(17px, 1.5vw, 21px);
    font-weight: 700;
    color: var(--ul-primary);
    font-variant-numeric: tabular-nums;
    direction: ltr;
}

.ul-donut-hole i {
    font-style: normal;
    font-size: 11px;
    color: var(--ul-gray2);
    margin-block-start: 2px;
}

.ul-donut-keys {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    flex: 1 1 150px;
    min-width: 0;
}

.ul-donut-key dt {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--ul-gray2);
}

.ul-donut-key dd {
    margin: 3px 0 0;
    padding-inline-start: 18px;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.ul-donut-key dd b {
    font-size: 20px;
    font-weight: 700;
    color: var(--ul-primary);
    font-variant-numeric: tabular-nums;
    direction: ltr;
}

.ul-donut-share {
    font-size: 13px;
    font-weight: 700;
    color: var(--ul-gray2);
}

.ul-donut-dot {
    inline-size: 10px;
    block-size: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* --- a whole, divided ---------------------------------------------------- */

.ul-split-track {
    display: flex;
    block-size: 16px;
    border-radius: 999px;
    overflow: hidden;
    background: var(--ul-gray);
}

.ul-split-seg {
    display: block;
    block-size: 100%;
    background: var(--ul-gradient);
}

/* The second part takes the accent, so the two read as two rather than as one
   bar with a join in it. */
.ul-split-seg:nth-child(2) {
    background: var(--ul-c3);
}

.ul-split-keys {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    margin: 18px 0 0;
}

.ul-split-key dt {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--ul-gray2);
}

.ul-split-key dd {
    margin: 4px 0 0;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.ul-split-key dd b {
    font-size: 24px;
    font-weight: 700;
    color: var(--ul-primary);
    font-variant-numeric: tabular-nums;
}

.ul-split-share {
    font-size: 13px;
    font-weight: 700;
    color: var(--ul-gray2);
}

.ul-split-dot {
    inline-size: 10px;
    block-size: 10px;
    border-radius: 50%;
    background: var(--ul-primary);
    flex-shrink: 0;
}

.ul-split-key:nth-child(2) .ul-split-dot {
    background: var(--ul-c3);
}

/* --- ranked ------------------------------------------------------------- */

/* `fixed` so the columns are the widths declared below and nothing else. With
   auto layout the label column grew to the longest name — «هندسة تقنيات
   التبريد والتكييف» — and pushed the bar and the number out of the card. */
.ul-figures {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 14px;
}

.ul-figures-c-label {
    width: 38%;
}

.ul-figures-c-value {
    width: 76px;
}

.ul-figures-row + .ul-figures-row > * {
    border-block-start: 1px solid rgba(11, 37, 78, 0.07);
}

.ul-figures-label {
    padding: 9px 0;
    padding-inline-end: 14px;
    font-weight: 700;
    color: var(--ul-primary);
    text-align: start;
    /* Wraps inside its own column rather than widening it. */
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.45;
}

.ul-figures-bar {
    padding: 9px 0;
}

.ul-figures-fill {
    display: block;
    block-size: 9px;
    border-radius: 999px;
    background: var(--ul-gradient);
    /* A zero-value row still shows a sliver, so the row does not read as a
       rendering failure — إدارة المؤسسات الصحية is published as 0. */
    min-inline-size: 3px;
}

.ul-figures-value {
    padding: 9px 0;
    padding-inline-start: 14px;
    font-weight: 700;
    color: var(--ul-black);
    text-align: end;
    font-variant-numeric: tabular-nums;
    /* Digits read left-to-right in both languages; an Arabic run would
       otherwise reorder the leading ones. */
    direction: ltr;
}

/* `direction: ltr` above turns this cell's own start/end round, so in RTL the
   14px gap landed on the far side and the number sat against its bar — «74»
   touching the longest bar. Put the gap back on the bar's side. */
[dir="rtl"] .ul-figures-value {
    padding-inline-start: 0;
    padding-inline-end: 14px;
}

/* Rows past the tenth — folded by uowa-pages.js, as with .ul-sdg. */
.js-collapse .ul-figures.is-collapsed .ul-figures-row.is-extra {
    display: none;
}

/* The table's own total — set apart from the rows it sums, and with no bar,
   because it is not comparable to them. */
.ul-figures-row.is-total > * {
    border-block-start: 2px solid rgba(11, 37, 78, 0.16);
    padding-block-start: 12px;
}

.ul-figures-row.is-total .ul-figures-label,
.ul-figures-row.is-total .ul-figures-value {
    color: var(--ul-primary);
    font-weight: 700;
}

/* An editor-filed icon in a card heading — see
   components/uowa/pages/cms-icon.blade.php. */
.ul-chart-card-title img {
    width: 1.1em;
    height: 1.1em;
    object-fit: contain;
    vertical-align: -2px;
}

.ul-page-header-icon img {
    width: 50%;
    height: 50%;
    object-fit: contain;
}

@media (max-width: 575px) {
    .ul-figures {
        font-size: 13px;
    }

    /* The label needs more of a narrow screen, and the value column can give
       up the room. */
    .ul-figures-c-label {
        width: 46%;
    }

    .ul-figures-c-value {
        width: 64px;
    }

    .ul-split-keys {
        gap: 10px 18px;
    }
}
