/* ============================================================
   JAMB – Home page (redesign)
   ============================================================ */

/* ---------------- Base & Layout ---------------- */
.hx-wrap {
    width: 100%;
    max-width: var(--content-max, 1400px);
    margin-inline: auto;
    padding-inline: clamp(1rem, 3vw, 2rem);
}

.hx-section {
    padding-block: clamp(1.25rem, 2.5vw, 2rem);
}

.hx-section--tint {
    background: color-mix(in srgb, var(--primary) 5%, var(--bg-body));
}

.hx-head {
    max-width: 640px;
    margin: 0 auto 1.1rem;
    text-align: center;
}

.hx-head--left {
    margin-inline: 0;
    text-align: left;
}

.hx-eyebrow {
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: .25rem;
}

[data-theme="dark"] .hx-eyebrow {
    color: var(--primary-light);
}

.hx-title {
    font-size: clamp(1.6rem, 3.2vw, 2.4rem);
    margin: 0 0 .5rem;
}

.hx-sub {
    color: var(--text-secondary);
    margin: 0;
}

.hx-skip {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 2000;
    padding: .6rem 1rem;
    background: #fff;
    color: #000;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

    .hx-skip:focus {
        top: 1rem;
    }

/* ---------------- Scroll Reveal & Animations ---------------- */
.js-reveal [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s ease, transform .6s ease;
}

    .js-reveal [data-reveal].is-in {
        opacity: 1;
        transform: none;
    }

.js-reveal .hx-stagger > * {
    opacity: 0;
}

.js-reveal [data-reveal].is-in .hx-stagger > * {
    opacity: 1;
    animation: hx-in .55s cubic-bezier(.2,.7,.2,1) backwards;
    animation-delay: calc(var(--i, 0) * 70ms);
}

@keyframes hx-in {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
}

@keyframes hx-failsafe {
    to {
        opacity: 1;
        transform: none;
    }
}

.js-reveal [data-reveal]:not(.is-in), .js-reveal [data-reveal]:not(.is-in) .hx-stagger > * {
    animation: hx-failsafe .01s 3s forwards;
}

.hx-rise {
    opacity: 0;
    transform: translateY(26px);
    animation: hx-rise .9s cubic-bezier(.2,.7,.2,1) forwards;
    animation-delay: var(--d, 0s);
}

@keyframes hx-rise {
    to {
        opacity: 1;
        transform: none;
    }
}

/* ---------------- Hero Section ---------------- */
.hx-hero {
    position: relative;
    color: #fff;
    background: var(--gradient-hero);
    padding: clamp(2rem, 4vw, 3rem) 0 clamp(5rem, 8vw, 6.5rem);
    overflow: hidden;
    isolation: isolate;
}

    .hx-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        opacity: .5;
        background: radial-gradient(600px 300px at 85% 10%, rgba(38,208,124,.35), transparent 70%), radial-gradient(500px 300px at 5% 100%, rgba(246,186,102,.18), transparent 70%);
    }

    .hx-hero::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        opacity: .12;
        pointer-events: none;
        background-image: radial-gradient(#fff 1px, transparent 1.2px);
        background-size: 26px 26px;
        mask-image: linear-gradient(to bottom, #000, transparent 85%);
        -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%);
    }

.hx-hero__grid {
    display: grid;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 992px) {
    .hx-hero__grid {
        grid-template-columns: 1.1fr .9fr;
    }
}

.hx-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .35rem .9rem;
    border-radius: 99px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.25);
    font-size: .8rem;
    font-weight: 600;
    margin-bottom: 1.1rem;
    backdrop-filter: blur(6px);
}

    .hx-badge .dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--primary-light);
        box-shadow: 0 0 0 0 rgba(38,208,124,.7);
        animation: hx-pulse 2s infinite;
    }

@keyframes hx-pulse {
    70% {
        box-shadow: 0 0 0 10px rgba(38,208,124,0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(38,208,124,0);
    }
}

.hx-hero h1 {
    font-size: clamp(2rem, 4vw, 2.8rem); 
    margin-bottom: 0.5rem;
}

.hx-hero p {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.hx-badge {
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
}

    .hx-hero h1 em {
        font-style: normal;
        background: var(--gradient-accent);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        background-size: 220% 100%;
        animation: hx-shimmer 7s linear infinite;
    }

@keyframes hx-shimmer {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 220% 50%;
    }
}

.hx-hero p {
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    color: rgba(255,255,255,.85);
    max-width: 52ch;
    margin: 0 0 1.5rem;
}

.hx-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.hx-btn-ghost {
    border: 2px solid rgba(255,255,255,.5);
    color: #fff;
    background: transparent;
}

    .hx-btn-ghost:hover, .hx-btn-ghost:focus {
        background: rgba(255,255,255,.14);
        color: #fff;
        border-color: #fff;
    }

.hx-hero__search {
    display: flex;
    align-items: center;
    gap: .5rem;
    max-width: 520px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 99px;
    padding: .35rem .35rem .35rem 1rem;
    margin: 0 0 1.25rem;
    backdrop-filter: blur(6px);
}

    .hx-hero__search i {
        color: rgba(255,255,255,.85);
    }

    .hx-hero__search input {
        flex: 1;
        background: transparent;
        border: 0;
        outline: 0;
        color: #fff;
        font-size: .95rem;
        padding: .5rem 0;
    }

        .hx-hero__search input::placeholder {
            color: rgba(255,255,255,.65);
        }

    .hx-hero__search .btn {
        padding: .5rem 1.25rem;
        font-size: .85rem;
    }

.hx-hero__tools {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.hx-saver {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.28);
    color: #fff;
    padding: .35rem .9rem;
    border-radius: 99px;
    font-size: .78rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}

    .hx-saver:hover {
        background: rgba(255,255,255,.2);
    }

    .hx-saver[aria-pressed="true"] {
        background: var(--primary-light);
        color: #06280f;
        border-color: var(--primary-light);
    }

.hx-hero__faqlink {
    color: rgba(255,255,255,.85);
    font-size: .85rem;
    text-decoration: underline;
}

.hx-hero__media {
    position: relative;
    perspective: 900px;
}

    .hx-hero__media img {
        width: 100%;
        aspect-ratio: 4 / 3;
        object-fit: cover;
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-lg);
        border: 1px solid rgba(255,255,255,.2);
        transform: rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg));
        transition: transform .25s ease-out;
        will-change: transform;
    }

@media (max-width: 991px) {
    .hx-hero__media {
        display: none;
    }
}

.hx-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(64px);
    z-index: -1;
    pointer-events: none;
    animation: hx-float 14s ease-in-out infinite;
}

.hx-orb--1 {
    width: 340px;
    height: 340px;
    background: #26d07c;
    top: -90px;
    right: 8%;
    opacity: .45;
}

.hx-orb--2 {
    width: 260px;
    height: 260px;
    background: #F6BA66;
    bottom: -70px;
    left: -50px;
    opacity: .3;
    animation-delay: -5s;
}

.hx-orb--3 {
    width: 200px;
    height: 200px;
    background: #15803D;
    top: 35%;
    left: 42%;
    opacity: .6;
    animation-delay: -9s;
}

@keyframes hx-float {
    50% {
        transform: translate(34px, -28px) scale(1.1);
    }
}

/* ---------------- Task Launcher ---------------- */
.hx-tasks {
    margin-top: -2.5rem; /* Pulls the cards up over the hero background */
    position: relative;
    z-index: 2;
}

.hx-tasks__grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.hx-task {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1.25rem;
    text-decoration: none;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

    .hx-task:hover, .hx-task:focus-visible {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
        border-color: var(--primary);
        color: var(--text-primary);
    }

    .hx-task > * {
        position: relative;
        z-index: 1;
    }

    .hx-task::before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        opacity: 0;
        transition: opacity .3s;
        background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(38,208,124,.2), transparent 62%);
    }

    .hx-task:hover::before {
        opacity: 1;
    }

.hx-task__icon {
    flex: none;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    color: #fff;
    background: var(--gradient-primary);
    transition: transform .35s cubic-bezier(.3,1.6,.5,1);
}

.hx-task:hover .hx-task__icon {
    transform: scale(1.12) rotate(-6deg);
}

.hx-task:nth-child(2) .hx-task__icon {
    background: var(--gradient-accent);
}

.hx-task:nth-child(3) .hx-task__icon {
    background: linear-gradient(135deg,#1f6fb2,#3aa0e6);
}

.hx-task:nth-child(4) .hx-task__icon {
    background: linear-gradient(135deg,#6a4bb5,#9a7be0);
}

.hx-task strong {
    display: block;
    font-size: 1rem;
}

.hx-task span.s {
    display: block;
    font-size: .82rem;
    color: var(--text-muted);
}

.hx-task .go {
    margin-left: auto;
    opacity: .4;
    transition: var(--transition);
}

.hx-task:hover .go {
    opacity: 1;
    transform: translateX(3px);
}

/* ---------------- Carousel & Panels ---------------- */
.hx-carousel {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    position: relative;
    background: #000;
}

.hx-slide {
    position: relative;
    min-height: clamp(260px, 42vw, 460px);
    display: flex;
    align-items: flex-end;
}

    .hx-slide > img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .hx-slide::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(0,0,0,.82), rgba(0,0,0,.1) 65%);
    }

.hx-slide__body {
    position: relative;
    z-index: 1;
    color: #fff;
    padding: clamp(1.25rem, 4vw, 2.5rem);
    padding-bottom: 3.2rem;
    max-width: 760px;
}

    .hx-slide__body h3 {
        color: #fff;
        font-size: clamp(1.25rem, 3vw, 2rem);
        margin: .5rem 0;
    }

    .hx-slide__body p {
        margin: 0;
        color: rgba(255,255,255,.88);
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

.hx-chip {
    display: inline-block;
    padding: .2rem .7rem;
    border-radius: 99px;
    font-size: .72rem;
    font-weight: 700;
    background: var(--secondary);
    color: #3a2500;
}

.hx-carousel .carousel-indicators {
    margin-bottom: .75rem;
}

.hx-carousel-pause {
    position: absolute;
    right: 1rem;
    bottom: .8rem;
    z-index: 5;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 0;
    background: rgba(255,255,255,.9);
    color: #000;
    display: grid;
    place-items: center;
}

.hx-split {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 992px) {
    .hx-split {
        grid-template-columns: 1.4fr 1fr;
    }
}

.hx-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.hx-panel__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.1rem;
    margin: 0 0 1rem;
}

    .hx-panel__title a {
        font-size: .85rem;
        font-weight: 600;
        color: var(--primary);
        text-decoration: none;
    }

[data-theme="dark"] .hx-panel__title a {
    color: var(--primary-light);
}

.hx-news-featured {
    display: block;
    text-decoration: none;
    color: #fff;
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    background: var(--gradient-hero);
    margin-bottom: .75rem;
    transition: var(--transition);
}

    .hx-news-featured:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
        color: #fff;
    }

    .hx-news-featured .t {
        font-size: clamp(1.1rem, 2vw, 1.4rem);
        font-weight: 800;
        margin: .4rem 0;
        display: block;
        line-height: 1.25;
    }

    .hx-news-featured small {
        opacity: .8;
    }

.hx-news-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 420px;
    overflow-y: auto;
}

    .hx-news-list a {
        display: flex;
        gap: .9rem;
        align-items: baseline;
        padding: .8rem .5rem;
        text-decoration: none;
        border-bottom: 1px solid var(--border-color);
        color: var(--text-primary);
        border-radius: 8px;
    }

        .hx-news-list a:hover {
            background: color-mix(in srgb, var(--primary) 7%, transparent);
        }

    .hx-news-list time {
        flex: none;
        width: 4.5rem;
        font-size: .75rem;
        font-weight: 700;
        color: var(--primary);
        text-transform: uppercase;
    }

[data-theme="dark"] .hx-news-list time {
    color: var(--primary-light);
}

.hx-news-list span {
    font-weight: 500;
}

.hx-bulletins {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .9rem;
}

.hx-bulletin {
    text-decoration: none;
    color: var(--text-primary);
    display: block;
}

.hx-bulletin__thumb {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--border-color);
    display: grid;
    place-items: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.hx-bulletin:hover .hx-bulletin__thumb {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.hx-bulletin__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hx-bulletin__thumb .ph {
    font-size: 2.5rem;
    color: var(--danger);
}

.hx-bulletin__year {
    position: absolute;
    left: .5rem;
    top: .5rem;
    padding: .15rem .6rem;
    border-radius: 99px;
    background: var(--primary);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
}

.hx-bulletin small {
    display: block;
    margin-top: .4rem;
    color: var(--text-muted);
}

.hx-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 1.5rem 0;
    margin: 0;
}

/* ---------------- Advisories ---------------- */
.hx-adv-grid {
    display: grid;
    gap: .85rem;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
}

.hx-adv {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--hx-c, var(--primary));
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

    .hx-adv:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

.hx-adv--warning {
    --hx-c: #e0a800;
}

.hx-adv--success {
    --hx-c: var(--primary);
}

.hx-adv--info {
    --hx-c: #0aa2c0;
}

.hx-adv--danger {
    --hx-c: var(--danger);
}

.hx-adv__img {
    flex: none;
    width: 92px;
    background: color-mix(in srgb, var(--hx-c) 10%, var(--bg-card));
    display: grid;
    place-items: center;
    font-size: 1.8rem;
    color: var(--hx-c);
}

    .hx-adv__img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.hx-adv__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .3rem;
    padding: .7rem .85rem;
}

.hx-adv__badge {
    font-size: .62rem;
    font-weight: 800;
    padding: .08rem .5rem;
    border-radius: 99px;
    color: #fff;
    background: var(--hx-c);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.hx-adv h3 {
    font-size: .95rem;
    line-height: 1.25;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hx-adv p {
    margin: 0;
    color: var(--text-secondary);
    font-size: .82rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hx-adv__tags {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
}

    .hx-adv__tags span {
        font-size: .68rem;
        padding: .08rem .5rem;
        border-radius: 99px;
        background: color-mix(in srgb, var(--hx-c) 14%, transparent);
        color: var(--text-secondary);
    }

.hx-adv .btn {
    padding: .22rem .8rem;
    font-size: .75rem;
    margin-top: .1rem;
}

@media (max-width: 420px) {
    .hx-adv__img {
        width: 68px;
        font-size: 1.5rem;
    }
}

/* ---------------- Countdown Base & Hero Compact ---------------- */
.hx-count {
    background: var(--gradient-hero);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 4vw, 3rem);
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .hx-count h2 {
        color: #fff;
        font-size: clamp(1.4rem, 3vw, 2rem);
        margin: 0 0 .4rem;
    }

    .hx-count p {
        color: rgba(255,255,255,.85);
    }

.hx-count__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .75rem;
    max-width: 560px;
    margin: 1.25rem auto;
}

.hx-count__cell {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: var(--radius-sm);
    padding: .9rem .3rem;
    backdrop-filter: blur(6px);
}

    .hx-count__cell b {
        display: block;
        font-size: clamp(1.5rem, 5vw, 2.4rem);
        font-weight: 900;
        font-variant-numeric: tabular-nums;
        line-height: 1;
    }

    .hx-count__cell span {
        font-size: .72rem;
        text-transform: uppercase;
        letter-spacing: .08em;
        opacity: .8;
    }

.hx-count__tba {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 1rem 0;
}

.hx-count__meta {
    display: inline-block;
    margin: .5rem 0 1rem;
    font-size: .85rem;
    opacity: .85;
}

.hx-count__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    justify-content: center;
    margin-top: 1rem;
}

    .hx-count__actions .btn {
        min-width: 190px;
    }

.hx-count--hero {
    background: transparent;
    padding: 0;
    margin: 0 0 1.5rem 0;
    box-shadow: none;
    text-align: left;
}

    .hx-count--hero h2 {
        font-size: 1.25rem;
        margin-bottom: 0.25rem;
        color: #fff;
    }

    .hx-count--hero p[data-countdown-label] {
        font-size: 0.85rem;
        color: rgba(255, 255, 255, 0.85);
        margin-bottom: 0.75rem;
    }

    .hx-count--hero .hx-count__grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
        margin-bottom: 0.75rem;
        max-width: 420px;
    }

    .hx-count--hero .hx-count__cell {
        background: rgba(255, 255, 255, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(8px);
        padding: 0.5rem 0.25rem;
        border-radius: 8px;
        text-align: center;
    }

        .hx-count--hero .hx-count__cell b {
            display: block;
            font-size: 1.3rem;
            color: var(--primary-light);
            line-height: 1;
        }

        .hx-count--hero .hx-count__cell span {
            display: block;
            font-size: 0.6rem;
            color: rgba(255, 255, 255, 0.7);
            text-transform: uppercase;
            margin-top: 4px;
        }

    .hx-count--hero .hx-count__meta {
        font-size: 0.75rem;
        color: rgba(255, 255, 255, 0.7);
        margin-bottom: 0.85rem;
        display: block;
    }

    .hx-count--hero .hx-count__actions {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: flex-start;
        margin-top: 0;
    }

        .hx-count--hero .hx-count__actions .btn {
            padding: 0.4rem 1rem;
            font-size: 0.8rem;
            min-width: auto;
        }

/* ---------------- FAQ ---------------- */
.hx-faq-search {
    display: flex;
    align-items: center;
    gap: .5rem;
    max-width: 560px;
    margin: 0 auto 1rem;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 99px;
    padding: .4rem .4rem .4rem 1rem;
    box-shadow: var(--shadow-sm);
    transition: border-color .2s;
}

    .hx-faq-search:focus-within {
        border-color: var(--primary);
    }

    .hx-faq-search i {
        color: var(--primary);
    }

    .hx-faq-search input {
        flex: 1;
        background: transparent;
        border: 0;
        outline: 0;
        font-size: .95rem;
        color: var(--text-primary);
        padding: .5rem 0;
    }

.hx-faq {
    display: grid;
    gap: .6rem;
    max-width: 820px;
    margin: 0 auto;
}

.hx-faq__item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: .25rem 1rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .2s;
}

    .hx-faq__item[open] {
        box-shadow: var(--shadow-md);
    }

    .hx-faq__item summary {
        list-style: none;
        cursor: pointer;
        padding: .85rem 0;
        font-weight: 700;
        font-size: .98rem;
        color: var(--text-primary);
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
    }

        .hx-faq__item summary::-webkit-details-marker {
            display: none;
        }

        .hx-faq__item summary::after {
            content: "+";
            font-size: 1.3rem;
            line-height: 1;
            color: var(--primary);
            transition: transform .2s;
        }

    .hx-faq__item[open] summary::after {
        content: "−";
    }

.hx-faq__answer {
    padding: 0 0 1rem;
    color: var(--text-secondary);
    line-height: 1.65;
    font-size: .92rem;
}

    .hx-faq__answer p:last-child {
        margin-bottom: 0;
    }

.hx-faq__empty {
    text-align: center;
    color: var(--text-muted);
    margin-top: .75rem;
}

/* ---------------- Tabs & Links ---------------- */
.hx-tabs [role="tablist"] {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.hx-tab {
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    padding: .6rem 1.2rem;
    border-radius: 99px;
    font-weight: 600;
    font-size: .9rem;
    transition: var(--transition);
}

    .hx-tab[aria-selected="true"] {
        background: var(--gradient-primary);
        color: #fff;
        border-color: transparent;
        box-shadow: 0 4px 16px rgba(25, 135, 84,.3);
    }

    .hx-tab:focus-visible {
        outline: 3px solid rgba(38,208,124,.5);
        outline-offset: 2px;
    }

.hx-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}

    .hx-links a {
        display: flex;
        align-items: center;
        gap: .75rem;
        padding: .85rem 1rem;
        text-decoration: none;
        font-weight: 600;
        font-size: .92rem;
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-sm);
        color: var(--text-primary);
        transition: var(--transition);
    }

        .hx-links a:hover, .hx-links a:focus-visible {
            border-color: var(--primary);
            transform: translateY(-2px);
            box-shadow: var(--shadow-sm);
        }

    .hx-links i:first-child {
        font-size: 1.2rem;
        color: var(--primary);
    }

[data-theme="dark"] .hx-links i:first-child {
    color: var(--primary-light);
}

.hx-links .ext {
    margin-left: auto;
    opacity: .4;
    font-size: .8rem;
}

/* ---------------- Stats & Act Cards ---------------- */
.hx-stats {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    margin-bottom: 1.5rem;
}

.hx-stat {
    text-align: center;
    padding: 1.25rem .75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
}

    .hx-stat b {
        display: block;
        font-size: clamp(1.8rem, 4vw, 2.6rem);
        font-weight: 900;
        color: var(--primary);
        font-variant-numeric: tabular-nums;
    }

[data-theme="dark"] .hx-stat b {
    color: var(--primary-light);
}

.hx-stat span {
    font-size: .82rem;
    color: var(--text-secondary);
}

.hx-act {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    margin-bottom: 1.5rem;
}

    .hx-act article {
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        border-radius: var(--radius);
        padding: 1.6rem;
        box-shadow: var(--shadow-sm);
    }

    .hx-act .ic {
        width: 48px;
        height: 48px;
        border-radius: 12px;
        display: grid;
        place-items: center;
        background: color-mix(in srgb, var(--primary) 12%, transparent);
        color: var(--primary);
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

[data-theme="dark"] .hx-act .ic {
    color: var(--primary-light);
}

.hx-act h3 {
    font-size: 1.25rem;
    margin: 0 0 .6rem;
}

.hx-act h4 {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-muted);
    margin: 1rem 0 .4rem;
}

.hx-act p {
    color: var(--text-secondary);
    font-size: .93rem;
    margin: 0;
}

.hx-act ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.hx-act li {
    padding: .2rem .7rem;
    border-radius: 99px;
    font-size: .8rem;
    font-weight: 600;
    background: color-mix(in srgb, var(--primary) 10%, transparent);
}

.hx-act .more {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

[data-theme="dark"] .hx-act .more {
    color: var(--primary-light);
}

/* ---------------- Management Swiper ---------------- */
.management-swiper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 3rem 3rem;
}

    .management-swiper .swiper-wrapper {
        align-items: stretch;
    }

    .management-swiper .swiper-slide {
        display: flex;
        justify-content: center;
        height: auto;
        padding: 0.5rem 1rem;
    }

.hx-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    width: 100%;
    max-width: 280px;
    min-height: 260px;
}

    .hx-member:hover, .hx-member:focus-visible {
        transform: translateY(-6px);
        box-shadow: var(--shadow-lg);
        border-color: var(--primary);
        color: var(--primary);
    }

.hx-member__photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 3px solid var(--primary);
    padding: 3px;
    background: var(--bg-card);
}

    .hx-member__photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
    }

.hx-member h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    line-height: 1.3;
    word-break: break-word;
}

.hx-member p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    word-break: break-word;
}

.management-swiper .swiper-button-next, .management-swiper .swiper-button-prev {
    color: var(--primary);
    background: var(--bg-card);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin-top: -20px;
}

    .management-swiper .swiper-button-next:hover, .management-swiper .swiper-button-prev:hover {
        background: var(--primary);
        color: #fff;
    }

    .management-swiper .swiper-button-next::after, .management-swiper .swiper-button-prev::after {
        font-size: 1.1rem;
        font-weight: bold;
    }

.management-swiper .swiper-pagination-bullet-active {
    background: var(--primary);
}

/* ---------------- Social Feeds ---------------- */
.hx-social {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 992px) {
    .hx-social {
        grid-template-columns: 1.2fr .8fr;
    }
}

.hx-soc-head {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1rem;
}

    .hx-soc-head strong {
        display: block;
        line-height: 1.1;
    }

    .hx-soc-head small {
        color: var(--text-muted);
    }

    .hx-soc-head .btn {
        margin-left: auto;
        padding: .4rem 1.1rem;
        font-size: .82rem;
    }

.hx-soc-badge {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.3rem;
    flex: none;
}

.hx-soc-badge--ig {
    background: linear-gradient(45deg, #f9a03f, #e1306c 55%, #833ab4);
}

.hx-soc-badge--x {
    background: #0f1419;
}

.hx-ig {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .5rem;
}

@media (max-width: 575px) {
    .hx-ig {
        grid-template-columns: repeat(2, 1fr);
    }
}

.hx-ig a {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 12px;
    display: block;
    background: var(--border-color);
}

.hx-ig img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.hx-ig a:hover img, .hx-ig a:focus-visible img {
    transform: scale(1.09);
}

.hx-ig .ov {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: .15rem;
    padding: .6rem;
    color: #fff;
    font-size: .78rem;
    line-height: 1.25;
    background: linear-gradient(to top, rgba(0,0,0,.8), transparent 65%);
    opacity: 0;
    transition: opacity .3s;
}

.hx-ig a:hover .ov, .hx-ig a:focus-visible .ov {
    opacity: 1;
}

.hx-ig .ov small {
    opacity: .8;
}

.hx-ig .vid {
    position: absolute;
    top: .5rem;
    right: .5rem;
    color: #fff;
    font-size: 1.2rem;
    text-shadow: 0 1px 6px rgba(0,0,0,.6);
}

@media (hover: none) {
    .hx-ig .ov {
        opacity: 1;
        background: linear-gradient(to top, rgba(0,0,0,.65), transparent 40%);
    }

        .hx-ig .ov .cap {
            display: none;
        }
}

.hx-x {
    display: grid;
    gap: .7rem;
}

.hx-xpost {
    display: block;
    text-decoration: none;
    color: var(--text-primary);
    padding: .95rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-body);
    transition: var(--transition);
}

    .hx-xpost:hover, .hx-xpost:focus-visible {
        border-color: var(--primary);
        transform: translateY(-2px);
        box-shadow: var(--shadow-sm);
        color: var(--text-primary);
    }

.hx-xpost__top {
    display: flex;
    gap: .4rem;
    font-size: .85rem;
    color: var(--text-muted);
}

    .hx-xpost__top b {
        color: var(--text-primary);
    }

.hx-xpost p {
    margin: .35rem 0 .6rem;
    white-space: pre-line;
    overflow-wrap: anywhere;
    font-size: .93rem;
}

.hx-xpost__meta {
    display: flex;
    gap: .9rem;
    font-size: .78rem;
    color: var(--text-muted);
}

.hx-follow {
    text-align: center;
    padding: 1.75rem 1rem;
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
}

/* ---------------- Progress & Back to Top ---------------- */
.hx-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 3000;
    pointer-events: none;
    transform: scaleX(0);
    transform-origin: 0 50%;
    background: linear-gradient(90deg, var(--primary-light), #F6BA66);
}

.hx-top {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1500;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: var(--gradient-primary);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(14px);
    pointer-events: none;
    transition: opacity .3s, transform .3s;
}

    .hx-top.show {
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }

    .hx-top:hover {
        transform: translateY(-3px);
    }

.hx-game {
    padding-block: clamp(1rem, 2.5vw, 1.75rem);
}

/* ---------------- Data Saver Overrides ---------------- */
[data-saver="on"] .hx-hero__media,
[data-saver="on"] .jamb-runner,
[data-saver="on"] .management-swiper,
[data-saver="on"] .hx-ig,
[data-saver="on"] .hx-x {
    display: none;
}

[data-saver="on"] .hx-carousel .carousel-inner img,
[data-saver="on"] .hx-bulletins img,
[data-saver="on"] .hx-adv__img img,
[data-saver="on"] .hx-member__photo img {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    opacity: 0;
}

[data-saver="on"] .hx-bulletin__thumb {
    background: var(--primary);
}

[data-saver="on"] .hx-xpost {
    display: block;
}

/* ---------------- Reduced Motion ---------------- */
@media (prefers-reduced-motion: reduce) {
    .js-reveal [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hx-badge .dot {
        animation: none;
    }

    .hx-task, .hx-adv, .hx-member, .hx-links a {
        transition: none;
    }

    .hx-rise {
        opacity: 1;
        transform: none;
        animation: none;
    }

    .hx-orb, .hx-hero h1 em {
        animation: none;
    }

    .hx-hero__media img, .hx-task__icon, .hx-ig img, .hx-top {
        transition: none;
    }
}
/* ---------------- Hero Carousel Overrides ---------------- */
.hx-hero {
    position: relative;
    padding: 0;
    overflow: hidden;
}

/* Reduced height and padding */
.carousel-item {
    position: relative;
    padding: clamp(3rem, 6vw, 6rem) 0;
    min-height: 650px;
    /* Background color is applied inline in the HTML */
}

/* Ensure the grid fills the space evenly */
.hx-hero__grid {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* Reduced gap */
    align-items: center;
}

@media (min-width: 992px) {
    .hx-hero__grid {
        flex-direction: row;
        justify-content: space-between;
    }

    .hx-hero__content {
        width: 55%;
    }

    .hx-hero__media {
        width: 40%;
    }
}

/* Cap the image height so it doesn't stretch the section */
.hero-img {
    width: 100%;
    max-height: 350px; /* Down from 400px. This fits standard screens */
    object-fit: cover;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4), 0 0 40px rgba(255,255,255,0.1);
    border: 4px solid rgba(255,255,255,0.2);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    animation: float 6s ease-in-out infinite;
}

/* Diagonal Line Pattern */
/* Base Pattern Container - Faded and Masked */
.hx-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.15; /* Makes it subtle */
    color: currentColor; /* Inherits the TextColor so patterns match the text */
    /* Fades the pattern out towards the bottom of the hero section */
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 80%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 80%);
}

/* 1. None */
.pattern-none {
    display: none;
}

/* 2. Polka Dots (Elegant) */
.pattern-dots {
    background-image: radial-gradient(currentColor 1.5px, transparent 1.5px);
    background-size: 24px 24px;
}

/* 3. Tech Grid (Corporate) */
.pattern-grid {
    background-image: linear-gradient(currentColor 1px, transparent 1px), linear-gradient(90deg, currentColor 1px, transparent 1px);
    background-size: 40px 40px;
}

/* 4. Diagonal Stripes (Classic) */
.pattern-diagonal {
    background-image: repeating-linear-gradient( 45deg, transparent, transparent 12px, currentColor 12px, currentColor 14px );
}

/* 5. Fluid Waves (Dynamic) */
.pattern-waves {
    background: radial-gradient(circle at 100% 50%, transparent 20%, currentColor 21%, currentColor 34%, transparent 35%, transparent), radial-gradient(circle at 0% 50%, transparent 20%, currentColor 21%, currentColor 34%, transparent 35%, transparent) 0 -50px;
    background-size: 75px 100px;
}

.hx-hero__grid {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 992px) {
    .hx-hero__grid {
        flex-direction: row;
        justify-content: space-between;
    }

    .hx-hero__content {
        width: 55%;
    }

    .hx-hero__media {
        width: 40%;
    }
}

/* Image Styling (Pop Effect) */
.hero-img {
    width: 100%;
    object-fit: cover;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4), 0 0 40px rgba(255,255,255,0.1);
    border: 4px solid rgba(255,255,255,0.2);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    animation: float 6s ease-in-out infinite;
}

    .hero-img:hover {
        transform: scale(1.03) translateY(-10px);
        box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 60px rgba(255,255,255,0.2);
    }

    .hero-img.is-square {
        border-radius: var(--radius-lg);
        aspect-ratio: 4 / 3;
    }

    .hero-img.is-circle {
        border-radius: 50%;
        aspect-ratio: 1 / 1;
    }

/* 3D Countdown */
.hx-count-3d {
    display: inline-block;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 0.75rem 1rem;
    margin-top: 0.5rem !important;
    box-shadow: -10px 15px 30px rgba(0, 0, 0, 0.3), inset 2px 2px 5px rgba(255, 255, 255, 0.2);
    /* 3D Tilt */
    perspective: 1000px;
}

    .hx-count-3d > div {
        transform: rotateX(10deg) rotateY(-5deg);
        transition: transform 0.3s ease;
    }

    .hx-count-3d:hover > div {
        transform: rotateX(0deg) rotateY(0deg);
    }

    .hx-count-3d .hx-count__grid {
        display: flex;
        gap: 0.75rem;
        max-width: max-content;
        margin-top: 0.5rem;
    }

    .hx-count-3d .hx-count__cell {
        background: linear-gradient(145deg, rgba(255,255,255,0.2), rgba(0,0,0,0.2));
        border: 1px solid rgba(255,255,255,0.3);
        border-radius: 8px;
        padding: 0.4rem 0.75rem;
        min-width: 55px;
        text-align: center;
        box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    }

        .hx-count-3d .hx-count__cell b {
            font-size: 1.25rem; /* Smaller numbers */
            color: #fff;
            display: block;
            text-shadow: 0 2px 4px rgba(0,0,0,0.5);
        }

        .hx-count-3d .hx-count__cell span {
            font-size: 0.65rem;
            text-transform: uppercase;
            color: rgba(255,255,255,0.8);
        }

    .hx-count-3d .hx-count__actions {
        margin-top: 0.5rem;
        justify-content: flex-start;
    }
        .hx-count-3d .hx-count__actions .btn {
            padding: 0.3rem 0.8rem;
            font-size: 0.75rem;
        }

    .hx-count-3d h2 {
        font-size: 1.1rem;
        margin-bottom: 0.25rem;
        color: #fff;
    }

    .hx-count-3d p {
        font-size: 0.85rem;
        color: rgba(255,255,255,0.8);
        margin-bottom: 0.5rem;
    }
/* ---------------- Hero Image Shapes ---------------- */
.hero-img {
    width: 100%;
    object-fit: cover;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4), 0 0 40px rgba(255,255,255,0.1);
    border: 4px solid rgba(255,255,255,0.2);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    animation: float 6s ease-in-out infinite;
}

    .hero-img:hover {
        transform: scale(1.03) translateY(-10px);
        box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 60px rgba(255,255,255,0.2);
    }

/* 1. Square */
.shape-square {
    border-radius: var(--radius-lg);
    aspect-ratio: 4 / 3;
}

/* 2. Rounded (Squircle) */
.shape-rounded {
    border-radius: 40px;
    aspect-ratio: 1 / 1;
}

/* 3. Circle */
.shape-circle {
    border-radius: 50%;
    aspect-ratio: 1 / 1;
}

/* 4. Hexagon */
.shape-hexagon {
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    aspect-ratio: 1 / 1;
    border: none; /* Clip-path hides borders */
}

/* 5. Blob (Organic) */
.shape-blob {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    aspect-ratio: 1 / 1;
    border: none;
}
/* ---------------- Resources (Who are you) ---------------- */
.hx-role-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    perspective: 1200px;
}

.hx-role-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
    transition: all 0.4s ease;
}

.hx-role-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.04);
    transform-style: preserve-3d;
    position: relative;
    outline: none;
}

    .hx-role-card:hover, .hx-role-card:focus-visible {
        transform: translateY(-8px) rotateX(8deg);
        box-shadow: 0 25px 50px rgba(13, 99, 49, 0.15);
        border-color: var(--primary);
    }

.hx-role-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.5rem;
    border-radius: 16px;
    background: color-mix(in srgb, var(--primary) 10%, transparent);
    color: var(--primary);
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    margin-bottom: 0.75rem;
}

.hx-role-card:hover .hx-role-icon {
    background: var(--primary);
    color: #fff;
    transform: translateZ(20px);
}

.hx-role-card h3 {
    font-size: 1rem;
    margin: 0 0 0.25rem;
    color: var(--text-primary);
}

.hx-role-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* State: Selection made */
.hx-role-selector.has-selection {
    display: flex;
    justify-content: center;
}

    .hx-role-selector.has-selection .hx-role-card:not(.is-selected) {
        display: none;
    }

    .hx-role-selector.has-selection .hx-role-card.is-selected {
        max-width: 320px;
        width: 100%;
        transform: scale(0.95);
        opacity: 0.9;
        pointer-events: none;
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    }

/* Content Area */
.hx-role-content {
    display: none;
    animation: slideDownRes 0.4s ease forwards;
}

    .hx-role-content.is-visible {
        display: block;
    }

@keyframes slideDownRes {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hx-role-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    cursor: pointer;
    margin-bottom: 1.5rem;
    transition: background 0.2s;
}

    .hx-role-back:hover {
        background: color-mix(in srgb, var(--primary) 8%, transparent);
    }

.hx-role-panel {
    display: none;
}

    .hx-role-panel.active {
        display: block;
        animation: fadeInRes 0.4s ease forwards;
    }

@keyframes fadeInRes {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* 3D Links Grid */
.hx-links--grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    perspective: 800px;
}

    .hx-links--grid a {
        position: relative;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 1rem 1.25rem;
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-sm);
        text-decoration: none;
        color: var(--text-primary);
        font-weight: 600;
        font-size: 0.95rem;
        transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
        box-shadow: 0 4px 10px rgba(0,0,0,0.03);
        transform-style: preserve-3d;
    }

        .hx-links--grid a:hover {
            transform: translateY(-5px) rotateX(10deg);
            box-shadow: 0 15px 30px rgba(13, 99, 49, 0.12);
            border-color: var(--primary);
            color: var(--primary);
            z-index: 2;
        }

        .hx-links--grid a i {
            font-size: 1.2rem;
            color: var(--primary);
        }

/* Tooltips */
.hx-tooltip {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--primary-light); /* Light green background */
    color: var(--primary-dark); /* Dark green text for high contrast */
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.4;
    white-space: normal;
    width: max-content;
    max-width: 250px;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 100;
    /* Soft green glow shadow */
    box-shadow: 0 10px 25px rgba(38, 208, 124, 0.4);
    border: 1px solid rgba(13, 99, 49, 0.2);
}

    .hx-tooltip::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        border: 6px solid transparent;
        border-top-color: var(--primary-light); /* Matches the background */
    }

.hx-links--grid a:hover .hx-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .hx-role-selector {
        grid-template-columns: 1fr;
    }

    .hx-role-card:hover, .hx-role-card:focus-visible {
        transform: translateY(-2px);
    }

    .hx-links--grid a:hover {
        transform: translateY(-2px);
    }

    .hx-tooltip {
        display: none; /* Disable tooltips on touch devices */
    }
}
/* --- Game Layout & Stage UI --- */
.jamb-runner-container {
    position: relative;
    display: flex;
    height: 500px;
    background: #0b1613;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

#runnerCanvas {
    flex: 1;
    height: 100%;
    width: 100%;
}

/* Left Side Question Panel */
.runner-quiz-panel {
    position: absolute;
    left: 1rem;
    top: 1rem;
    bottom: 1rem;
    width: 320px;
    background: rgba(16, 37, 32, 0.95);
    border: 1px solid var(--primary-light);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transform: translateX(-120%);
    transition: transform 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

    .runner-quiz-panel.active {
        transform: translateX(0);
    }

.quiz-timer {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 4px solid var(--primary-light);
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 1.2rem;
    color: #fff;
    margin: 0 auto 1rem;
    box-shadow: 0 0 15px rgba(38,208,124,0.4);
}

    .quiz-timer.danger {
        border-color: #ff4757;
        color: #ff4757;
        box-shadow: 0 0 15px rgba(255, 71, 87, 0.5);
    }

.quiz-question {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: auto;
}

.quiz-option {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.75rem;
    border-radius: 8px;
    color: #ddd;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
}

    .quiz-option:hover:not(:disabled) {
        background: rgba(38,208,124,0.2);
        border-color: var(--primary-light);
        color: #fff;
    }

    .quiz-option.correct {
        background: rgba(38,208,124,0.4);
        border-color: #26d07c;
        color: #fff;
    }

    .quiz-option.wrong {
        background: rgba(255,107,107,0.4);
        border-color: #ff6b6b;
        color: #fff;
    }

/* Stage Transition Overlay */
.runner-stage-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    backdrop-filter: blur(5px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s;
}

    .runner-stage-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }

    .runner-stage-overlay h2 {
        font-size: 2.5rem;
        font-weight: 900;
        color: var(--primary-light);
        margin-bottom: 1rem;
    }

/* --- Advanced Game UI --- */
.runner-canvas-wrapper {
    width: 100%;
    height: 100%;
    transition: transform 0.05s;
}

    .runner-canvas-wrapper.shake {
        transform: translate(4px, -4px) rotate(1deg);
    }

.runner-combo {
    position: absolute;
    top: 20%;
    right: 20%;
    color: #FFC107;
    font-size: 2rem;
    font-weight: 900;
    text-shadow: 0 0 10px rgba(255,193,7,0.8);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
    transform: scale(0.8);
    z-index: 5;
}

    .runner-combo.show {
        opacity: 1;
        transform: scale(1.2);
    }

.runner-powerups {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 10px;
    z-index: 5;
}

.runner-powerup-icon {
    width: 40px;
    height: 40px;
    background: rgba(38, 208, 124, 0.2);
    border: 2px solid #26d07c;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    color: #26d07c;
    font-size: 1.2rem;
    box-shadow: 0 0 15px rgba(38,208,124,0.5);
}

    .runner-powerup-icon.active {
        display: flex;
        animation: pulseGlow 1.5s infinite;
    }

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 5px rgba(38,208,124,0.5);
    }

    50% {
        box-shadow: 0 0 20px rgba(38,208,124,1);
    }

    100% {
        box-shadow: 0 0 5px rgba(38,208,124,0.5);
    }
}

.runner-boss-bar {
    position: absolute;
    top: 4rem;
    left: 10%;
    right: 10%;
    z-index: 6;
    background: rgba(0,0,0,0.7);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    border: 1px solid #ff4757;
}

    .runner-boss-bar span {
        color: #ff4757;
        font-weight: 900;
        font-size: 0.8rem;
        display: block;
        text-align: center;
        margin-bottom: 4px;
        letter-spacing: 1px;
    }

    .runner-boss-bar .progress {
        height: 10px;
        background: #222;
        border-radius: 5px;
    }

    .runner-boss-bar .progress-bar {
        transition: width 0.3s ease;
    }

.runner-share-modal {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 50;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

    .runner-share-modal.active {
        display: flex;
    }

.runner-share-card {
    background: #1a1a2e;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    width: 100%;
    border: 1px solid var(--primary-light);
}

    .runner-share-card img {
        width: 100%;
        border-radius: 10px;
        margin-top: 1rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }