/* =====================================================================
   TOP A University — Homepage v2
   Live GRAS hero media + leaderboard, logo marquee, Arab presence map,
   image cards and scroll reveal. Loaded on the front page only, after
   topa-axion-hero.css. Blue-only palette.
   ===================================================================== */

:root {
    --th-navy: #0B2D5C;
    --th-primary: #1479E8;
    --th-medium: #0F5FBF;
    --th-bright: #2F8FF5;
    --th-light: #EAF4FF;
    --th-ultra: #F5F9FF;
    --th-border: #DCE8F5;
    --th-muted: #64748B;
    --th-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Shared section primitives ---------- */
.th-wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

.th-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 12px;
    padding: 6px 12px;
    border: 1px solid var(--th-border);
    border-radius: 999px;
    background: var(--th-light);
    color: var(--th-primary);
    font-size: 12.5px;
    font-weight: 800;
    line-height: 1.2;
}

.th-sec-title {
    margin: 0 0 8px;
    color: var(--th-navy) !important;
    font-size: clamp(1.45rem, 2.4vw, 2.1rem);
    font-weight: 800;
    line-height: 1.3;
}

.th-sec-sub {
    max-width: 60ch;
    margin: 0;
    color: var(--th-muted);
    font-size: 15px;
    line-height: 1.7;
}

.th-sec-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid var(--th-border);
    border-radius: 12px;
    background: #FFFFFF;
    color: var(--th-medium) !important;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none !important;
    white-space: nowrap;
    transition: border-color 0.25s ease, background 0.25s ease, gap 0.25s ease;
}

.th-sec-link:hover {
    gap: 12px;
    border-color: var(--th-primary);
    background: var(--th-light);
}

.th-live-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--th-bright);
    box-shadow: 0 0 0 0 rgba(47, 143, 245, 0.55);
    animation: thPulse 2.2s ease-out infinite;
}

@keyframes thPulse {
    0% { box-shadow: 0 0 0 0 rgba(47, 143, 245, 0.55); }
    70% { box-shadow: 0 0 0 8px rgba(47, 143, 245, 0); }
    100% { box-shadow: 0 0 0 0 rgba(47, 143, 245, 0); }
}

/* =====================================================================
   HERO — live variant
   ===================================================================== */
.th-hero--live .tu-hero-desc { margin-bottom: 24px; }
.th-hero--live .tu-hero-search { margin-bottom: 22px; }
.th-hero--live .tu-hero-ctas { margin-bottom: 28px; }

/* KPI strip */
.th-kpis-wrap {
    max-width: 620px;
    padding-top: 18px;
    border-top: 1px solid var(--th-border);
}

.th-kpis-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--th-medium) !important;
    font-size: 12.5px;
    font-weight: 800;
    text-decoration: none !important;
}

.th-kpis-label:hover { color: var(--th-navy) !important; }

.th-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
}

.th-kpi {
    display: flex;
    flex-direction: column-reverse;
    gap: 2px;
    min-width: 0;
    padding-inline-start: 16px;
    border-inline-start: 1px solid var(--th-border);
}

.th-kpi:first-child {
    padding-inline-start: 0;
    border-inline-start: 0;
}

.th-kpi dt {
    color: var(--th-muted);
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.4;
}

.th-kpi dd {
    margin: 0;
    color: var(--th-navy);
    font-size: clamp(1.45rem, 2.1vw, 1.95rem);
    font-weight: 800;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
    direction: ltr;
    text-align: right;
}

/* Media column */
.th-visual { align-self: center; }

/* Hug the copy column so the fixed Joud launcher (bottom-left) stays clear. */
.th-media {
    position: relative;
    width: 100%;
    max-width: min(548px, calc(100% - 44px));
    margin-inline-end: auto;
}

.th-media-frame {
    position: relative;
    height: clamp(380px, 66vh, 640px);
    overflow: hidden;
    border-radius: 28px;
    background: var(--th-navy);
    box-shadow: 0 30px 70px rgba(11, 45, 92, 0.22), 0 0 0 1px rgba(11, 45, 92, 0.06);
    isolation: isolate;
}

.th-media-poster,
.th-media-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 38%;
}

/* 1px inset keeps the video's painted area smaller than the poster's, so the
   late-loading video never replaces the poster as the LCP element. */
.th-media-video {
    inset: 1px;
    width: calc(100% - 2px);
    height: calc(100% - 2px);
    opacity: 0;
    transition: opacity 1.2s ease;
}

.th-media-frame.is-playing .th-media-video { opacity: 1; }

.th-media-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(11, 45, 92, 0.42) 0%, rgba(11, 45, 92, 0) 26%),
        linear-gradient(0deg, rgba(11, 45, 92, 0.78) 0%, rgba(11, 45, 92, 0.18) 55%, rgba(11, 45, 92, 0) 72%),
        linear-gradient(135deg, rgba(20, 121, 232, 0.22), rgba(11, 45, 92, 0.1));
}

.th-media-top {
    position: absolute;
    inset: 18px 18px auto;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.th-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 13px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(11, 45, 92, 0.42);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #FFFFFF;
    font-size: 12.5px;
    font-weight: 800;
}

.th-media-source {
    color: rgba(255, 255, 255, 0.86);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    direction: ltr;
}

/* Glass leaderboard */
.th-board {
    --th-page: 5;
    position: absolute;
    inset: auto 18px 18px;
    z-index: 3;
    padding: 16px 16px 12px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    backdrop-filter: blur(16px) saturate(150%);
    box-shadow: 0 18px 44px rgba(11, 45, 92, 0.24);
}

.th-board-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.th-board-title {
    margin: 0;
    color: var(--th-navy) !important;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
}

.th-board-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--th-primary) !important;
    font-size: 12.5px;
    font-weight: 800;
    text-decoration: none !important;
    white-space: nowrap;
}

.th-board-list {
    margin: 0;
    padding: 0;
    list-style: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.th-board.is-swapping .th-board-list {
    opacity: 0;
    transform: translateY(6px);
}

.th-board:not(.is-ready) .th-row:nth-child(n+6),
.th-row.is-off {
    display: none;
}

.th-row {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 6px 10px;
    border-radius: 12px;
    border-inline-start: 3px solid transparent;
    transition: background 0.35s ease, border-color 0.35s ease;
}

.th-row + .th-row { margin-top: 2px; }

.th-row.is-active {
    border-inline-start-color: var(--th-primary);
    background: var(--th-light);
}

.th-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 8px;
    border: 1px solid var(--th-border);
    border-radius: 8px;
    background: #FFFFFF;
    color: var(--th-medium);
    font-size: 12.5px;
    font-weight: 800;
    direction: ltr;
    white-space: nowrap;
    transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

.th-row.is-active .th-rank {
    border-color: var(--th-primary);
    background: var(--th-primary);
    color: #FFFFFF;
}

.th-uni {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.th-uni b,
.th-uni small {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.th-uni b {
    color: var(--th-navy);
    font-size: 13.5px;
    font-weight: 800;
    line-height: 1.45;
}

.th-uni small {
    color: var(--th-muted);
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.4;
}

.th-chg {
    padding: 3px 8px;
    border-radius: 999px;
    background: #F1F5F9;
    color: #475569;
    font-size: 11px;
    font-weight: 800;
    direction: ltr;
    white-space: nowrap;
}

.th-chg--up { background: #E8F7EF; color: #0F7A45; }
.th-chg--down { background: #FDECEC; color: #B42318; }
.th-chg--new { background: var(--th-light); color: var(--th-medium); }

.th-board-progress {
    height: 3px;
    margin: 10px 4px 10px;
    overflow: hidden;
    border-radius: 3px;
    background: var(--th-light);
}

.th-board-progress i {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--th-bright), var(--th-primary));
    transform: scaleX(0);
    transform-origin: right center;
}

.th-board.is-paused .th-board-progress i { animation-play-state: paused !important; }

@keyframes thBoardTick {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

.th-board-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 0 4px;
    color: var(--th-muted);
    font-size: 11.5px;
    font-weight: 700;
}

.th-board-foot > span:first-child { margin-inline-end: 4px; }

.th-src {
    padding: 3px 8px;
    border: 1px solid var(--th-border);
    border-radius: 7px;
    background: #FFFFFF;
    color: var(--th-medium);
    font-size: 11px;
    font-weight: 800;
    direction: ltr;
}

/* Laptops / short viewports: keep the hero inside one screen */
@media (min-width: 1000px) and (max-height: 860px) {
    .th-hero--live .tu-eyebrow { margin-bottom: 16px; }
    .th-hero--live .tu-hero-title { font-size: clamp(2.3rem, min(4.6vw, 7.4vh), 4.4rem); margin-bottom: 14px; }
    .th-hero--live .tu-hero-tagline { margin-bottom: 12px; }
    .th-hero--live .tu-hero-desc { margin-bottom: 18px; }
    .th-hero--live .tu-hero-search { min-height: 56px; margin-bottom: 18px; }
    .th-hero--live .tu-hero-ctas { margin-bottom: 20px; }
    .th-hero--live .tu-btn { padding-top: 13px; padding-bottom: 13px; }
    .th-kpis-wrap { padding-top: 14px; }
    .th-kpis-label { margin-bottom: 8px; }
    .th-board { --th-page: 4; }
    .th-board:not(.is-ready) .th-row:nth-child(n+5) { display: none; }
}

@media (min-width: 1000px) and (max-height: 700px) {
    .th-board { --th-page: 3; }
    .th-board:not(.is-ready) .th-row:nth-child(n+4) { display: none; }
    .th-board-foot { display: none; }
}

/* Tablet: single column, board sits under a shorter media frame */
@media (max-width: 999px) {
    .th-media { max-width: 620px; margin: 0 auto; }
    .th-media-frame { height: 300px; }
    .th-board {
        position: relative;
        inset: auto;
        margin: -96px 16px 0;
    }
}

@media (max-width: 640px) {
    .th-hero--live .tu-hero-visual.th-visual { display: block; }
    .th-hero--live .tu-hero-grid { gap: 32px; }
    .th-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
    .th-kpi:nth-child(3) { padding-inline-start: 0; border-inline-start: 0; }
    .th-media-frame { height: 190px; border-radius: 22px; }
    .th-board { --th-page: 3; margin: -64px 10px 0; padding: 14px 12px 10px; }
    .th-board:not(.is-ready) .th-row:nth-child(n+4) { display: none; }
    .th-row { grid-template-columns: 58px minmax(0, 1fr) auto; gap: 10px; padding: 6px 8px; }
    .th-board-foot { display: none; }
}

/* =====================================================================
   LOGO MARQUEE
   ===================================================================== */
.th-logos {
    padding: 64px 0 48px;
    background: #FFFFFF;
    direction: rtl;
    font-family: 'RB', 'Cairo', sans-serif;
    overflow: hidden;
}

.th-logos-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.th-marquee {
    position: relative;
    direction: ltr;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.th-marquee-track {
    display: flex;
    gap: 16px;
    width: max-content;
    margin: 0;
    padding: 6px 0 12px;
    list-style: none;
    animation: thMarquee 60s linear infinite;
}

.th-marquee:hover .th-marquee-track,
.th-marquee:focus-within .th-marquee-track {
    animation-play-state: paused;
}

@keyframes thMarquee {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-50% - 8px)); }
}

.th-logo a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 196px;
    height: 100%;
    padding: 18px 14px 16px;
    box-sizing: border-box;
    border: 1px solid var(--th-border);
    border-radius: 18px;
    background: #FFFFFF;
    text-align: center;
    text-decoration: none !important;
    direction: rtl;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.th-logo img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    transition: transform 0.35s ease;
}

.th-logo a:hover,
.th-logo a:focus-visible {
    border-color: var(--th-primary);
    box-shadow: 0 14px 30px rgba(11, 45, 92, 0.1);
    transform: translateY(-3px);
}

.th-logo a:hover img,
.th-logo a:focus-visible img {
    transform: scale(1.06);
}

.th-logo-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.9em;
    color: var(--th-navy);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.45;
}

.th-logo-rank {
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--th-light);
    color: var(--th-medium);
    font-size: 11px;
    font-weight: 800;
}

@media (max-width: 640px) {
    .th-logos { padding: 44px 0 32px; }
    .th-logos-head { flex-direction: column; align-items: flex-start; margin-bottom: 20px; }
    .th-logo a { width: 156px; padding: 14px 10px 12px; }
    .th-logo img { width: 58px; height: 58px; }
}

/* =====================================================================
   ARAB PRESENCE MAP (dark data section)
   ===================================================================== */
.th-map {
    position: relative;
    padding: 84px 0 76px;
    overflow: hidden;
    background:
        radial-gradient(900px 480px at 85% 0%, rgba(47, 143, 245, 0.22), transparent 60%),
        radial-gradient(700px 420px at 0% 100%, rgba(20, 121, 232, 0.18), transparent 60%),
        linear-gradient(180deg, #0B2D5C 0%, #082349 100%);
    color: #FFFFFF;
    direction: rtl;
    font-family: 'RB', 'Cairo', sans-serif;
}

.th-map::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 80%);
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 80%);
    pointer-events: none;
}

.th-map .th-wrap { position: relative; z-index: 1; }

.th-map-head { margin-bottom: 36px; }
.th-map .th-kicker { border-color: rgba(47, 143, 245, 0.34); background: rgba(47, 143, 245, 0.14); color: #A9D2FF; }
.th-map .th-sec-title { color: #FFFFFF !important; }
.th-map .th-sec-sub { color: rgba(226, 238, 252, 0.78); }

.th-map-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.75fr);
    gap: 28px;
    align-items: stretch;
}

.th-map-canvas {
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.035);
}

.th-tiles {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    grid-template-rows: repeat(5, auto);
    gap: 8px;
    direction: ltr;
}

/* `html body .th-map` beats the site-wide `html body button {… !important}` reset. */
html body .th-map .th-tile {
    --tile-bg: rgba(255, 255, 255, 0.05);
    --tile-bd: rgba(255, 255, 255, 0.1);
    --tile-fg: #FFFFFF;
    grid-column: var(--c);
    grid-row: var(--r);
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
    justify-content: center;
    gap: 2px;
    aspect-ratio: 1 / 1;
    min-width: 0;
    margin: 0;
    padding: 4px !important;
    border: 1px solid var(--tile-bd) !important;
    border-radius: 12px !important;
    background-color: var(--tile-bg) !important;
    color: var(--tile-fg) !important;
    font-family: inherit;
    white-space: normal !important;
    cursor: pointer;
    direction: rtl;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

html body .th-map .th-tile[data-level="1"] { --tile-bg: #133F79; --tile-bd: #1A4D8F; }
html body .th-map .th-tile[data-level="2"] { --tile-bg: #1656A6; --tile-bd: #1C63BC; }
html body .th-map .th-tile[data-level="3"] { --tile-bg: #1479E8; --tile-bd: #3189EC; }
html body .th-map .th-tile[data-level="4"] { --tile-bg: #2F8FF5; --tile-bd: #5AA6F7; }
html body .th-map .th-tile[data-level="5"] { --tile-bg: #8EC5FF; --tile-bd: #B5D9FF; --tile-fg: #0B2D5C; }

html body .th-map .th-tile:disabled {
    --tile-fg: rgba(255, 255, 255, 0.4);
    cursor: default;
}

.th-tile:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.th-tile[aria-pressed="true"] {
    box-shadow: 0 0 0 2px #FFFFFF, 0 12px 28px rgba(47, 143, 245, 0.45);
    transform: translateY(-2px);
}

.th-tile:focus-visible {
    outline: 2px solid #FFFFFF;
    outline-offset: 2px;
}

.th-tile-name {
    max-width: 100%;
    overflow: hidden;
    font-size: clamp(9.5px, 0.85vw, 12px);
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.th-tile-num {
    font-size: clamp(12px, 1.25vw, 17px);
    font-weight: 800;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.th-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
    color: rgba(226, 238, 252, 0.72);
    font-size: 12px;
    font-weight: 700;
}

.th-legend i {
    width: 22px;
    height: 10px;
    border-radius: 3px;
    background: #133F79;
}

.th-legend i[data-level="0"] { background: rgba(255, 255, 255, 0.08); }
.th-legend i[data-level="2"] { background: #1656A6; }
.th-legend i[data-level="3"] { background: #1479E8; }
.th-legend i[data-level="4"] { background: #2F8FF5; }
.th-legend i[data-level="5"] { background: #8EC5FF; }

.th-legend-none {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-inline-start: 14px;
}

.th-map-panel {
    display: flex;
    flex-direction: column;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transition: opacity 0.14s ease;
}

.th-map-panel.is-updating { opacity: 0.35; }

.th-panel-kicker {
    color: #A9D2FF;
    font-size: 12px;
    font-weight: 800;
}

.th-panel-name {
    margin: 4px 0 18px;
    color: #FFFFFF !important;
    font-size: clamp(1.5rem, 2.2vw, 2rem);
    font-weight: 800;
    line-height: 1.25;
}

.th-panel-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 22px;
}

.th-panel-stats > div {
    display: flex;
    flex-direction: column-reverse;
    gap: 2px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
}

.th-panel-stats dt {
    color: rgba(226, 238, 252, 0.72);
    font-size: 12px;
    font-weight: 700;
}

.th-panel-stats dd {
    margin: 0;
    color: #FFFFFF;
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
    direction: ltr;
    text-align: right;
}

.th-panel-sub {
    margin: 0 0 10px;
    color: rgba(226, 238, 252, 0.8) !important;
    font-size: 13px;
    font-weight: 800;
}

.th-panel-top {
    flex: 1;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}

.th-panel-top li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 14px;
    font-weight: 700;
}

.th-panel-top li b {
    padding: 3px 9px;
    border-radius: 8px;
    background: rgba(47, 143, 245, 0.2);
    color: #CFE6FF;
    font-size: 12px;
    direction: ltr;
    white-space: nowrap;
}

.th-panel-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    border-radius: 12px;
    background: #FFFFFF;
    color: var(--th-navy) !important;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none !important;
    transition: gap 0.25s ease, background 0.25s ease;
}

.th-panel-link:hover { gap: 12px; background: var(--th-light); }

.th-bars {
    margin-top: 28px;
    padding: 24px 28px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.035);
}

.th-bars-title {
    margin: 0 0 16px;
    color: #FFFFFF !important;
    font-size: 15px;
    font-weight: 800;
}

.th-bars-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 36px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.th-bars-list li {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr) 42px;
    align-items: center;
    gap: 12px;
    font-size: 13.5px;
    font-weight: 700;
}

.th-bar-track {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.th-bar-track i {
    display: block;
    width: var(--w);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(270deg, #2F8FF5, #8EC5FF);
    transition: width 1.3s var(--th-ease) 0.15s;
}

.th-reveal-ready .th-bars:not(.is-in) .th-bar-track i { width: 0; }

.th-bar-num {
    color: #CFE6FF;
    font-weight: 800;
    text-align: left;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 999px) {
    .th-map { padding: 64px 0 56px; }
    .th-map-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .th-map-canvas { padding: 16px; }
    .th-tiles {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        direction: rtl;
    }
    html body .th-map .th-tile {
        flex-direction: row !important;
        gap: 8px;
        aspect-ratio: auto;
        min-height: 44px;
        padding: 8px 14px !important;
        border-radius: 999px !important;
    }
    html body .th-map .th-tile:disabled { display: none !important; }
    .th-tile-name { font-size: 13px; }
    .th-tile-num { font-size: 13px; }
    .th-legend { display: none; }
    .th-map-panel { padding: 22px 18px; }
    .th-bars { padding: 20px 16px; }
    .th-bars-list { grid-template-columns: 1fr; }
}

/* =====================================================================
   IMAGE CARDS (modules + rankings) and About
   ===================================================================== */
.axion-home-modules { padding: 72px 0 76px; }
.axion-home-modules .axion-home-modules-title { font-size: clamp(1.45rem, 2.4vw, 2.1rem); }

.axion-home-modules .th-img-card,
.axion-rankings .th-img-card {
    gap: 14px;
    padding: 0 0 22px;
    overflow: hidden;
    text-decoration: none !important;
}

.th-img-card > :not(.th-card-media) { margin-inline: 22px; }

.th-card-media {
    display: block;
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--th-navy);
}

.th-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--th-ease);
}

.th-card-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, rgba(11, 45, 92, 0.55), rgba(11, 45, 92, 0) 60%),
        linear-gradient(135deg, rgba(20, 121, 232, 0.28), rgba(11, 45, 92, 0.08));
    transition: opacity 0.4s ease;
}

.th-img-card:hover .th-card-media img { transform: scale(1.06); }
.th-img-card:hover .th-card-media::after { opacity: 0.75; }

.axion-home-modules .th-img-card .axion-home-card-icon,
.axion-rankings .th-img-card .axion-ranking-icon {
    z-index: 4;
    width: 52px;
    height: 52px;
    margin-top: -40px;
    margin-bottom: 0;
    border-color: #FFFFFF;
    background: #FFFFFF;
    font-size: 20px;
    box-shadow: 0 10px 24px rgba(11, 45, 92, 0.16);
}

.axion-rankings .th-img-card .axion-ranking-title { margin-top: 2px; }

.th-about {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 48px;
    margin-bottom: 64px;
}

.th-about-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 24px;
    background: var(--th-navy);
    box-shadow: 0 24px 56px rgba(11, 45, 92, 0.16);
}

.th-about-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.th-about-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(20, 121, 232, 0.3), rgba(11, 45, 92, 0.35));
}

.th-about-media .axion-about-icon {
    position: absolute;
    z-index: 1;
    inset: auto auto 20px 20px;
    width: 72px;
    height: 72px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.18);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    font-size: 30px;
}

@media (max-width: 768px) {
    .axion-home-modules { padding: 48px 0 52px; }
    .th-about { grid-template-columns: 1fr; gap: 24px; margin-bottom: 44px; }
}

/* =====================================================================
   THE WUR 2027 ANNOUNCEMENT + COUNTDOWN
   ===================================================================== */
.th-ann [hidden],
.th-ann-pill [hidden] { display: none !important; }

/* Hero eyebrow turned into a live link to the announcement */
.th-ann-pill {
    text-decoration: none !important;
    transition: background 0.25s ease, border-color 0.25s ease, gap 0.25s ease;
}

.th-ann-pill b {
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.th-ann-pill i { font-size: 11px; }

.th-ann-pill:hover {
    gap: 13px;
    border-color: var(--th-primary);
    background: var(--th-light);
}

.th-ann {
    position: relative;
    padding: 64px 0;
    overflow: hidden;
    background:
        radial-gradient(760px 420px at 12% 20%, rgba(47, 143, 245, 0.32), transparent 62%),
        radial-gradient(620px 360px at 92% 110%, rgba(20, 121, 232, 0.3), transparent 60%),
        linear-gradient(120deg, #0B2D5C 0%, #0A2650 55%, #0F3F80 100%);
    color: #FFFFFF;
    direction: rtl;
    font-family: 'RB', 'Cairo', sans-serif;
}

.th-ann::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
    background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(90deg, #000, transparent 60%);
    mask-image: linear-gradient(90deg, #000, transparent 60%);
    pointer-events: none;
}

.th-ann-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 48px;
    align-items: center;
}

.th-ann-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 13px;
    border: 1px solid rgba(47, 143, 245, 0.4);
    border-radius: 999px;
    background: rgba(47, 143, 245, 0.16);
    color: #CFE6FF;
    font-size: 12.5px;
    font-weight: 800;
}

.th-ann-brand {
    margin: 16px 0 6px;
    color: rgba(207, 230, 255, 0.8);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    direction: ltr;
    text-align: right;
}

.th-ann-title {
    margin: 0 0 12px;
    color: #FFFFFF !important;
    font-size: clamp(1.7rem, 3vw, 2.6rem);
    font-weight: 800;
    line-height: 1.25;
}

.th-ann-text {
    max-width: 56ch;
    margin: 0 0 20px;
    color: rgba(234, 244, 255, 0.86);
    font-size: 16px;
    line-height: 1.8;
}

.th-ann-text strong { color: #FFFFFF; }

.th-ann-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 26px;
    padding: 0;
    list-style: none;
}

.th-ann-points li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: #EAF4FF;
    font-size: 13.5px;
    font-weight: 700;
}

.th-ann-points i { color: #8EC5FF; }

.th-ann-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.th-ann-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none !important;
    transition: transform 0.25s ease, gap 0.25s ease, background 0.25s ease;
}

.th-ann-btn:hover { transform: translateY(-2px); gap: 14px; }

.th-ann-btn--primary {
    background: #FFFFFF;
    color: var(--th-navy) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.th-ann-btn--ghost {
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.06);
    color: #FFFFFF !important;
}

.th-ann-btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }

.th-ann-panel {
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 24px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.th-ann-panel-label {
    margin: 0 0 14px;
    color: #CFE6FF;
    font-size: 13px;
    font-weight: 800;
}

.th-cd {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    direction: rtl;
}

.th-cd-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 16px 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    background: rgba(8, 35, 73, 0.45);
}

.th-cd-unit b {
    color: #FFFFFF;
    font-size: clamp(1.9rem, 3.4vw, 2.8rem);
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.th-cd-unit span {
    color: rgba(207, 230, 255, 0.8);
    font-size: 12px;
    font-weight: 700;
}

.th-ann-done {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px;
    border-radius: 16px;
    background: rgba(47, 143, 245, 0.2);
    font-size: 20px;
}

.th-ann-done i { color: #8EC5FF; font-size: 26px; }

.th-ann-times {
    display: grid;
    gap: 0;
    margin: 18px 0 0;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.th-ann-times > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13.5px;
}

.th-ann-times > div:last-child { border-bottom: 0; }
.th-ann-times dt { color: rgba(207, 230, 255, 0.75); font-weight: 700; }
.th-ann-times dd { margin: 0; color: #FFFFFF; font-weight: 800; }

@media (max-width: 999px) {
    .th-ann-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 640px) {
    .th-ann { padding: 44px 0; }
    .th-ann-panel { padding: 20px 16px; }
    .th-cd { gap: 8px; }
    .th-cd-unit { padding: 12px 4px 10px; border-radius: 12px; }
    .th-ann-btn { width: 100%; justify-content: center; }
    .th-ann-points li { font-size: 12.5px; }
}

/* =====================================================================
   FEATURED TOOLS (محطات بارزة) — bento grid, all four visible at once
   ===================================================================== */
.th-feat {
    padding: 72px 0 80px;
    background: linear-gradient(180deg, #F5F9FF 0%, #FFFFFF 100%);
    border-top: 1px solid var(--th-border);
    direction: rtl;
    font-family: 'RB', 'Cairo', sans-serif;
}

.th-feat-head { margin-bottom: 32px; }

.th-feat-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: repeat(2, 260px);
    gap: 20px;
}

.th-feat-card--1 { grid-row: span 2; }
.th-feat-card--2 { grid-column: span 2; }

.th-feat-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    padding: 24px;
    overflow: hidden;
    border-radius: 24px;
    background: var(--th-navy);
    color: #FFFFFF !important;
    text-decoration: none !important;
    isolation: isolate;
    box-shadow: 0 16px 40px rgba(11, 45, 92, 0.14);
    transition: transform 0.35s var(--th-ease), box-shadow 0.35s ease;
}

.th-feat-card:hover,
.th-feat-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 26px 56px rgba(11, 45, 92, 0.24);
}

.th-feat-card:focus-visible {
    outline: 3px solid var(--th-bright);
    outline-offset: 3px;
}

.th-feat-img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s var(--th-ease);
}

.th-feat-card:hover .th-feat-img { transform: scale(1.06); }

.th-feat-shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(0deg, rgba(8, 35, 73, 0.94) 0%, rgba(11, 45, 92, 0.62) 45%, rgba(11, 45, 92, 0.2) 100%),
        linear-gradient(135deg, rgba(20, 121, 232, 0.35), rgba(11, 45, 92, 0.1));
    transition: opacity 0.4s ease;
}

.th-feat-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.th-feat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.14);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    font-size: 17px;
}

.th-feat-tag {
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(47, 143, 245, 0.32);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 800;
}

.th-feat-num {
    margin-inline-start: auto;
    color: rgba(255, 255, 255, 0.5);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.06em;
    font-variant-numeric: tabular-nums;
}

.th-feat-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.th-feat-title {
    margin: 0;
    color: #FFFFFF !important;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.35;
}

.th-feat-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 52ch;
    color: rgba(234, 244, 255, 0.86);
    font-size: 14px;
    line-height: 1.7;
}

.th-feat-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 800;
    transition: gap 0.25s ease;
}

.th-feat-card:hover .th-feat-cta { gap: 12px; }

/* Lead card: larger type, full description, solid CTA */
.th-feat-card--1 { padding: 32px; }
.th-feat-card--1 .th-feat-title { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
.th-feat-card--1 .th-feat-text { -webkit-line-clamp: 4; font-size: 15px; }
.th-feat-card--1 .th-feat-cta {
    margin-top: 10px;
    padding: 12px 20px;
    border-radius: 12px;
    background: #FFFFFF;
    color: var(--th-navy);
}

@media (max-width: 999px) {
    .th-feat { padding: 56px 0 60px; }
    .th-feat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: none;
        grid-auto-rows: 250px;
    }
    .th-feat-card--1 { grid-row: auto; grid-column: span 2; }
    .th-feat-card--2 { grid-column: auto; }
}

@media (max-width: 640px) {
    .th-feat { padding: 44px 0 48px; }
    .th-feat-grid { grid-template-columns: 1fr; grid-auto-rows: minmax(230px, auto); gap: 14px; }
    .th-feat-card--1 { grid-column: auto; padding: 24px; }
    .th-feat-card { padding: 20px; border-radius: 20px; }
}

/* =====================================================================
   SCROLL REVEAL — only after the script opts in, so no-JS keeps content
   ===================================================================== */
.th-reveal-ready [data-reveal] {
    transition-property: opacity, translate, transform, box-shadow, border-color;
    transition-duration: 0.7s, 0.7s, 0.25s, 0.25s, 0.25s;
    transition-timing-function: var(--th-ease), var(--th-ease), ease, ease, ease;
    transition-delay: var(--th-d, 0ms), var(--th-d, 0ms), 0s, 0s, 0s;
}

.th-reveal-ready [data-reveal]:not(.is-in) {
    opacity: 0;
    translate: 0 24px;
}

@media (prefers-reduced-motion: reduce) {
    .th-marquee-track { animation: none; }
    .th-marquee { overflow-x: auto; }
    .th-live-dot { animation: none; }
    .th-media-video { display: none; }
    .th-card-media img,
    .th-bar-track i { transition: none; }
}
