/* RIC + Tech hub — aligned with NLA editorial language */
:root {
    --hub-blue: #418FDE;
    --hub-navy: #1e3a5f;
    --hub-gold: #c9a43b;
    --hub-ink: #2c2c2c;
    --hub-muted: #5a6270;
    --hub-paper: #f7f9fc;
    --hub-line: #e5e7eb;
    --hub-font: 'Poppins', sans-serif;
    --hub-serif: 'Merriweather', Georgia, serif;
}

.hub-page {
    font-family: var(--hub-font);
    color: var(--hub-ink);
    background: #fff;
    overflow-x: hidden;
}

.hub-page img {
    max-width: 100%;
    height: auto;
}

/* ---- Hero: one composition ---- */
.hub-hero {
    position: relative;
    min-height: min(68vh, 560px);
    min-height: min(68dvh, 560px);
    display: flex;
    align-items: flex-end;
    color: #fff;
    isolation: isolate;
}

.hub-hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hub-hero-media img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center 35%;
}

.hub-hero-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        180deg,
        rgba(30, 58, 95, 0.25) 0%,
        rgba(30, 58, 95, 0.45) 45%,
        rgba(30, 58, 95, 0.88) 100%
    );
}

.hub-page.theme-tech .hub-hero-shade {
    background: linear-gradient(
        180deg,
        rgba(26, 51, 82, 0.3) 0%,
        rgba(40, 90, 150, 0.48) 48%,
        rgba(20, 45, 75, 0.9) 100%
    );
}

/* ---- RIC hero: research + innovation atmosphere ---- */
.hub-page.theme-ric .hub-hero-shade {
    background:
        linear-gradient(112deg, rgba(12, 28, 48, 0.88) 0%, rgba(12, 28, 48, 0.52) 44%, rgba(30, 58, 95, 0.18) 100%),
        linear-gradient(180deg, rgba(12, 28, 48, 0.18) 0%, rgba(12, 28, 48, 0.82) 100%);
}

.ric-hero {
    min-height: min(76vh, 620px);
    min-height: min(76dvh, 620px);
}

.ric-hero .hub-hero-media img {
    object-position: center 42%;
    transform: scale(1.03);
    animation: ric-ken 22s ease-out forwards;
}

@keyframes ric-ken {
    from { transform: scale(1.08); }
    to { transform: scale(1.02); }
}

.ric-hero-logo {
    position: absolute;
    top: clamp(1rem, 2.4vw, 1.6rem);
    right: clamp(1rem, 3vw, 2rem);
    z-index: 3;
    width: clamp(7.5rem, 12vw, 10.5rem);
    pointer-events: none;
    animation: hub-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.ric-hero-logo img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 8px 18px rgba(8, 20, 36, 0.45));
}

.ric-hero-eyebrow {
    margin: 0 0 0.7rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
}

.ric-hero .hub-hero-brand {
    font-size: clamp(2rem, 5.2vw, 3.25rem);
}

.ric-hero .hub-hero-copy {
    max-width: 38rem;
}

.hub-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 3.5rem 0 3rem;
}

.hub-hero-copy {
    max-width: 36rem;
    animation: hub-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

.hub-hero-brand {
    margin: 0 0 0.85rem;
    font-size: clamp(1.9rem, 4.8vw, 3.1rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: #fff;
}

.hub-hero-rule {
    display: block;
    width: 64px;
    height: 4px;
    margin: 0 0 1.1rem;
    background: var(--hub-gold);
    animation: hub-rule 0.65s ease 0.25s both;
    transform-origin: left center;
}

@keyframes hub-rule {
    from { transform: scaleX(0); opacity: 0; }
    to { transform: scaleX(1); opacity: 1; }
}

.hub-hero-lead {
    margin: 0 0 1.5rem;
    max-width: 30rem;
    font-family: var(--hub-serif);
    font-size: clamp(1rem, 2vw, 1.12rem);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.92);
}

.hub-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hub-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 46px;
    padding: 0.7rem 1.35rem;
    border-radius: 4px;
    font-family: var(--hub-font);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.hub-btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.hub-btn-gold {
    background: var(--hub-gold);
    color: #1e3a5f;
}

.hub-btn-gold:hover {
    background: #d4b353;
    color: #1e3a5f;
}

.hub-btn-line {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

.hub-btn-line:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: #fff;
}

.hub-btn-blue {
    background: var(--hub-blue);
    color: #fff;
}

.hub-btn-blue:hover {
    background: #2f7bc9;
    color: #fff;
}

.hub-btn-outline {
    background: #fff;
    color: var(--hub-blue);
    border-color: var(--hub-blue);
}

.hub-btn-outline:hover {
    background: var(--hub-blue);
    color: #fff;
}

/* ---- Intro block (matches programs / publications) ---- */
.hub-intro {
    padding: clamp(2.75rem, 5vw, 4rem) 0;
    background: #fff;
}

.hub-intro-header {
    text-align: center;
    max-width: 46rem;
    margin: 0 auto 2rem;
}

.hub-intro-header h2 {
    margin: 0;
    font-size: clamp(1.65rem, 3.2vw, 2.15rem);
    font-weight: 700;
    color: var(--hub-blue);
    line-height: 1.2;
}

.hub-intro-header .hub-divider {
    display: block;
    width: 60px;
    height: 4px;
    margin: 0.85rem auto 1.1rem;
    background: var(--hub-gold);
}

.hub-intro-header p {
    margin: 0;
    font-family: var(--hub-serif);
    font-size: clamp(0.98rem, 1.8vw, 1.05rem);
    line-height: 1.7;
    color: var(--hub-ink);
}

.hub-intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: clamp(1.5rem, 4vw, 2.5rem);
    align-items: stretch;
    padding-top: 1.75rem;
    border-top: 4px solid var(--hub-gold);
}

.hub-quote {
    background: var(--hub-blue);
    color: #fff;
    padding: clamp(1.5rem, 3vw, 2rem);
    border-left: 5px solid var(--hub-gold);
    border-radius: 0 8px 8px 0;
    display: flex;
    align-items: center;
}

.hub-quote p {
    margin: 0;
    font-family: var(--hub-serif);
    font-style: italic;
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.65;
    color: #fff;
}

.hub-intro-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.9rem;
}

.hub-intro-text p {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.75;
    color: var(--hub-muted);
}

/* ---- Priorities (editorial rows, not cards) ---- */
.hub-priorities {
    padding: clamp(2.75rem, 5vw, 4rem) 0;
    background: var(--hub-paper);
}

.hub-priorities-head {
    max-width: 36rem;
    margin-bottom: 1.75rem;
}

.hub-priorities-head h2 {
    margin: 0 0 0.65rem;
    font-size: clamp(1.45rem, 3vw, 1.85rem);
    font-weight: 700;
    color: var(--hub-navy);
}

.hub-priorities-head .hub-divider {
    display: block;
    width: 52px;
    height: 3px;
    margin: 0 0 0.85rem;
    background: var(--hub-gold);
}

.hub-priorities-head p {
    margin: 0;
    font-family: var(--hub-serif);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--hub-muted);
}

.hub-priority-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--hub-line);
}

.hub-priority-list li {
    display: grid;
    grid-template-columns: 3.25rem minmax(0, 1fr);
    gap: 1rem;
    padding: 1.35rem 0;
    border-bottom: 1px solid var(--hub-line);
}

.hub-priority-list .num {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--hub-gold);
    line-height: 1.4;
}

.hub-priority-list h3 {
    margin: 0 0 0.35rem;
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--hub-navy);
}

.hub-priority-list p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--hub-muted);
    max-width: 40rem;
}

/* ---- Outputs: simple linked rows ---- */
.hub-outputs {
    padding: clamp(2.75rem, 5vw, 4rem) 0;
    background: #fff;
}

.hub-outputs-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.hub-outputs-head h2 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.45rem, 3vw, 1.85rem);
    font-weight: 700;
    color: var(--hub-blue);
}

.hub-outputs-head .hub-divider {
    display: block;
    width: 52px;
    height: 3px;
    background: var(--hub-gold);
}

.hub-output-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hub-output-list li + li {
    border-top: 1px solid var(--hub-line);
}

.hub-output-list a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 1.15rem 0.25rem;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease, padding 0.2s ease;
}

.hub-output-list a:hover {
    background: rgba(65, 143, 222, 0.05);
    padding-left: 0.65rem;
    padding-right: 0.65rem;
    color: inherit;
    text-decoration: none;
}

.hub-output-list .meta {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--hub-blue);
}

.hub-output-list h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--hub-navy);
    line-height: 1.35;
}

.hub-output-list .arrow {
    color: var(--hub-blue);
    font-size: 0.95rem;
    flex-shrink: 0;
}

.hub-empty {
    padding: 1.75rem 1.25rem;
    text-align: center;
    border: 1px dashed var(--hub-line);
    background: var(--hub-paper);
    border-radius: 6px;
}

.hub-empty p {
    margin: 0 0 1rem;
    font-family: var(--hub-serif);
    color: var(--hub-muted);
}

/* ---- RIC institution meta strip ---- */
.ric-meta {
    background: #fff;
    border-bottom: 1px solid var(--hub-line);
}

.ric-meta-list {
    list-style: none;
    margin: 0;
    padding: 1.15rem 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.ric-meta-list li {
    padding: 0.35rem 0.85rem 0.35rem 0;
    border-right: 1px solid var(--hub-line);
}

.ric-meta-list li:last-child {
    border-right: none;
}

.ric-meta-label {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--hub-blue);
}

.ric-meta-list strong {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--hub-navy);
    line-height: 1.4;
}

/* ---- Research agenda ---- */
.ric-agenda {
    padding: clamp(2.75rem, 5vw, 4.25rem) 0;
    background: var(--hub-paper);
}

.ric-agenda-head {
    max-width: 42rem;
    margin-bottom: 1.85rem;
}

.ric-agenda-head h2 {
    margin: 0 0 0.65rem;
    font-size: clamp(1.5rem, 3vw, 1.9rem);
    font-weight: 700;
    color: var(--hub-navy);
}

.ric-agenda-head .hub-divider {
    display: block;
    width: 52px;
    height: 3px;
    margin: 0 0 0.9rem;
    background: var(--hub-gold);
}

.ric-agenda-head p {
    margin: 0;
    font-family: var(--hub-serif);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--hub-muted);
}

.ric-agenda-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.ric-agenda-card {
    position: relative;
    padding: 1.5rem 1.4rem 1.45rem 1.5rem;
    background: #fff;
    border: 1px solid var(--hub-line);
    border-left: 4px solid var(--hub-gold);
    min-width: 0;
}

.ric-agenda-card-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 0.75rem;
    margin-bottom: 0.75rem;
}

.ric-agenda-num {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--hub-gold);
    letter-spacing: 0.04em;
}

.ric-agenda-focus {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--hub-blue);
}

.ric-agenda-card h3 {
    margin: 0 0 0.55rem;
    font-size: clamp(1.05rem, 2vw, 1.15rem);
    font-weight: 700;
    color: var(--hub-navy);
    line-height: 1.3;
}

.ric-agenda-card > p {
    margin: 0 0 1rem;
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--hub-muted);
}

.ric-agenda-outputs {
    list-style: none;
    margin: 0;
    padding: 0.85rem 0 0;
    border-top: 1px solid var(--hub-line);
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.ric-agenda-outputs li {
    padding: 0.28rem 0.6rem;
    background: rgba(65, 143, 222, 0.08);
    color: var(--hub-navy);
    font-size: 0.75rem;
    font-weight: 600;
}

.hub-outputs-note {
    margin: 0.75rem 0 0;
    max-width: 36rem;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--hub-muted);
}

.hub-outputs-note strong {
    color: var(--hub-navy);
}

.hub-outputs-priority {
    padding-top: clamp(1.75rem, 4vw, 2.5rem);
    padding-bottom: clamp(1.75rem, 4vw, 2.5rem);
    background: var(--hub-paper);
    border-bottom: 1px solid var(--hub-line);
}

.hub-outputs-priority .hub-outputs-head {
    margin-bottom: 1rem;
}

.hub-outputs-priority .ric-pub-list a {
    padding-top: 0.95rem;
    padding-bottom: 0.95rem;
}

.hub-intro-compact {
    padding: clamp(2rem, 4vw, 3rem) 0;
}

.ric-agenda-compact {
    padding: clamp(2rem, 4vw, 3rem) 0;
}

.ric-agenda-compact .ric-agenda-head {
    margin-bottom: 1.1rem;
}

.ric-agenda-compact .ric-agenda-grid {
    gap: 0.75rem;
}

.ric-agenda-compact .ric-agenda-card {
    padding: 1.1rem 1.05rem 1.1rem 1.15rem;
}

.ric-agenda-compact .ric-agenda-card > p {
    margin-bottom: 0.75rem;
    font-size: 0.88rem;
    line-height: 1.55;
}

.ric-agenda-compact .ric-agenda-outputs {
    padding-top: 0.65rem;
    gap: 0.35rem;
}

.ric-series-compact {
    padding: clamp(2rem, 4vw, 3rem) 0;
}

.ric-series-compact .hub-priorities-head {
    margin-bottom: 1.1rem;
}

.ric-series-compact .ric-series-item {
    padding: 1.05rem 1rem;
}

.hub-intro-text a {
    font-weight: 600;
    color: var(--hub-blue);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.hub-intro-text a:hover {
    color: var(--hub-navy);
}

/* ---- Publication series ---- */
.ric-series {
    padding: clamp(2.75rem, 5vw, 4rem) 0;
    background: #fff;
}

.ric-series .hub-priorities-head {
    max-width: 42rem;
}

.ric-series-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.ric-series-item {
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    padding: 1.35rem 1.25rem;
    border: 1px solid var(--hub-line);
    background: var(--hub-paper);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
    min-width: 0;
}

.ric-series-item:hover {
    border-color: rgba(65, 143, 222, 0.45);
    background: #fff;
    color: inherit;
    text-decoration: none;
    transform: translateY(-2px);
}

.ric-series-icon {
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--hub-blue);
    color: #fff;
    font-size: 1rem;
    flex-shrink: 0;
}

.ric-series-body h3 {
    margin: 0 0 0.4rem;
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--hub-navy);
}

.ric-series-body p {
    margin: 0 0 0.85rem;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--hub-muted);
}

.ric-series-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.75rem;
    font-size: 0.82rem;
    color: var(--hub-muted);
}

.ric-series-meta strong {
    color: var(--hub-blue);
    font-weight: 700;
}

.ric-series-go {
    margin-left: auto;
    font-weight: 600;
    color: var(--hub-blue);
}

.ric-series-go i {
    font-size: 0.75rem;
    margin-left: 0.2rem;
}

/* ---- Latest publications list ---- */
.ric-pub-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--hub-line);
}

.ric-pub-list li {
    border-bottom: 1px solid var(--hub-line);
}

.ric-pub-list a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 1.25rem 0.15rem;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease, padding 0.2s ease;
}

.ric-pub-list a:hover {
    background: rgba(65, 143, 222, 0.04);
    padding-left: 0.55rem;
    padding-right: 0.55rem;
    color: inherit;
    text-decoration: none;
}

.ric-pub-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem 0.85rem;
    margin-bottom: 0.35rem;
}

.ric-pub-type {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    background: rgba(65, 143, 222, 0.12);
    color: var(--hub-blue);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ric-pub-tags time {
    font-size: 0.8rem;
    color: var(--hub-muted);
}

.ric-pub-main h3 {
    margin: 0 0 0.35rem;
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--hub-navy);
    line-height: 1.35;
}

.ric-pub-main p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--hub-muted);
    max-width: 46rem;
}

.ric-pub-list .arrow {
    color: var(--hub-blue);
    flex-shrink: 0;
}

/* ---- CTA panel (RIC + Tech) ---- */
.hub-cta {
    padding: clamp(2rem, 4.5vw, 3rem) 0;
    background: #fff;
}

.hub-cta-panel {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) auto;
    gap: clamp(1.25rem, 3vw, 2rem);
    align-items: center;
    padding: clamp(1.75rem, 4vw, 2.65rem) clamp(1.35rem, 3.5vw, 2.5rem);
    background: linear-gradient(125deg, #0f2238 0%, #1a3a5c 48%, #2a5f9e 100%);
    color: #fff;
    border-top: 4px solid var(--hub-gold);
    isolation: isolate;
}

.hub-cta-glow {
    position: absolute;
    width: min(380px, 70vw);
    height: min(380px, 70vw);
    right: -90px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 164, 59, 0.28) 0%, transparent 68%);
    pointer-events: none;
    z-index: 0;
}

.hub-cta-copy,
.hub-cta-actions {
    position: relative;
    z-index: 1;
}

.hub-cta-eyebrow {
    display: inline-block;
    margin-bottom: 0.55rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--hub-gold);
}

.hub-cta-copy h2 {
    margin: 0 0 0.55rem;
    font-size: clamp(1.25rem, 2.6vw, 1.75rem);
    font-weight: 700;
    line-height: 1.22;
    color: #fff;
    white-space: nowrap;
}

@media (max-width: 575px) {
    .hub-cta-copy h2 {
        white-space: normal;
    }
}

.hub-cta-copy p {
    margin: 0;
    max-width: 36rem;
    font-family: var(--hub-serif);
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.84);
}

.hub-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    justify-content: flex-end;
}

.hub-cta-actions .hub-btn {
    min-width: 10.5rem;
}

.hub-cta.theme-tech-cta .hub-cta-panel {
    background: linear-gradient(125deg, #0c1c30 0%, #143352 45%, #2f6eb8 100%);
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .hub-hero {
        min-height: min(62vh, 480px);
        min-height: min(62dvh, 480px);
    }

    .hub-intro-grid {
        grid-template-columns: 1fr;
    }

    .hub-cta-panel {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .hub-cta-actions {
        justify-content: flex-start;
    }

    .hub-cta-copy h2 {
        max-width: none;
    }

    .hub-cta-glow {
        opacity: 0.5;
        right: -140px;
    }

    .ric-meta-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ric-meta-list li:nth-child(2n) {
        border-right: none;
    }

    .ric-series-grid {
        grid-template-columns: 1fr;
    }

    .ric-agenda-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .hub-hero {
        min-height: min(70vh, 440px);
        min-height: min(70dvh, 440px);
    }

    .hub-hero-inner {
        padding: 2.75rem 0 2.25rem;
    }

    .hub-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hub-hero-actions .hub-btn,
    .hub-cta-actions .hub-btn,
    .hub-empty .hub-btn {
        width: 100%;
    }

    .hub-priority-list li {
        grid-template-columns: 2.5rem minmax(0, 1fr);
        gap: 0.75rem;
        padding: 1.1rem 0;
    }

    .hub-output-list a,
    .ric-pub-list a {
        grid-template-columns: minmax(0, 1fr) 1.25rem;
        gap: 0.65rem;
    }

    .hub-cta-actions {
        flex-direction: column;
        width: 100%;
    }

    .ric-meta-list {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 1rem 0;
    }

    .ric-meta-list li {
        border-right: none;
        border-bottom: 1px solid var(--hub-line);
        padding: 0.65rem 0;
    }

    .ric-meta-list li:last-child {
        border-bottom: none;
    }

    .ric-series-go {
        margin-left: 0;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hub-hero-brand {
        font-size: clamp(1.6rem, 7.5vw, 2rem);
    }
}

@media (max-height: 480px) and (orientation: landscape) {
    .hub-hero {
        min-height: auto;
    }

    .hub-hero-inner {
        padding: 2rem 0 1.5rem;
    }

    .hub-hero-actions {
        flex-direction: row;
    }

    .hub-hero-actions .hub-btn {
        width: auto;
        flex: 1 1 10rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hub-hero-copy,
    .hub-hero-rule,
    .ric-hero-logo {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* =========================================================
   Tech & AI Proficiency — distinct visual system
   ========================================================= */
.tech-page.theme-tech .hub-hero-shade {
    background:
        linear-gradient(115deg, rgba(12, 32, 58, 0.88) 0%, rgba(12, 32, 58, 0.55) 42%, rgba(30, 70, 120, 0.35) 100%),
        linear-gradient(180deg, transparent 0%, rgba(8, 22, 42, 0.92) 100%);
}

.tech-hero {
    min-height: min(78vh, 620px);
    min-height: min(78dvh, 620px);
}

.tech-hero .hub-hero-media img {
    object-position: center 35%;
    transform: scale(1.04);
    animation: tech-ken 20s ease-out forwards;
}

@keyframes tech-ken {
    from { transform: scale(1.08); }
    to { transform: scale(1.02); }
}

.tech-hero-grid {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.22;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 85%);
}

.tech-hero-eyebrow {
    margin: 0 0 0.75rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
}

.tech-hero .hub-hero-brand {
    font-size: clamp(2.1rem, 5.4vw, 3.4rem);
}

.tech-hero .hub-hero-copy {
    max-width: 38rem;
}

.tech-pillars {
    background: #0f2238;
    border-bottom: 3px solid var(--hub-gold);
}

.tech-pillars-list {
    list-style: none;
    margin: 0;
    padding: 0.95rem 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
}

.tech-pillars-list li {
    text-align: center;
    padding: 0.35rem 0.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.tech-pillars-list li:last-child {
    border-right: none;
}

.tech-pillars-list span {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.92);
}

.tech-about {
    padding: clamp(1.1rem, 2.5vw, 1.75rem) 0 clamp(1.75rem, 3.5vw, 2.5rem);
    background: #fff;
}

.tech-about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid var(--hub-line);
    background: #fff;
    min-height: clamp(380px, 46vw, 480px);
    box-shadow: 0 10px 28px rgba(15, 34, 56, 0.06);
}

.tech-about-visual {
    position: relative;
    min-height: 100%;
    overflow: hidden;
    background: #0f2238;
}

.tech-about-visual img {
    width: 100%;
    height: 100%;
    min-height: clamp(380px, 46vw, 480px);
    object-fit: cover;
    object-position: center;
    display: block;
}

.tech-about-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.35rem 1.5rem;
    background: linear-gradient(180deg, transparent, rgba(15, 34, 56, 0.92));
    color: #fff;
}

.tech-about-caption span {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--hub-gold);
}

.tech-about-caption strong {
    font-size: 1.1rem;
    font-weight: 700;
}

.tech-about-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(1.35rem, 3vw, 2.15rem) clamp(1.35rem, 3.2vw, 2.4rem);
    background: linear-gradient(180deg, #f8fbfe 0%, #ffffff 40%);
    border-left: 4px solid var(--hub-gold);
    min-width: 0;
}

.tech-about-title {
    margin: 0 0 1.1rem;
}

.tech-about-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.65rem;
    padding: 0.28rem 0.65rem;
    background: rgba(65, 143, 222, 0.1);
    color: var(--hub-blue);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.tech-about-title h2 {
    margin: 0;
    font-size: clamp(1.45rem, 2.8vw, 2.05rem);
    font-weight: 700;
    color: var(--hub-navy);
    line-height: 1.18;
}

.tech-about-title .line {
    display: block;
    font-weight: 600;
    color: var(--hub-muted);
    font-size: 0.78em;
}

.tech-about-title .em {
    display: block;
    position: relative;
    margin-top: 0.12rem;
    padding-bottom: 0.55rem;
    color: var(--hub-navy);
}

.tech-about-title .em::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 4.5rem;
    height: 3px;
    background: var(--hub-gold);
}

.tech-about-copy .hub-divider {
    display: none;
}

.tech-about-copy blockquote {
    margin: 0 0 1.1rem;
    padding: 1.15rem 1.15rem 1.15rem 1.25rem;
    background: var(--hub-blue);
    border-left: 4px solid var(--hub-gold);
    color: #fff;
}

.tech-about-copy blockquote p {
    margin: 0;
    font-family: var(--hub-serif);
    font-style: italic;
    font-size: clamp(1.05rem, 2.1vw, 1.18rem);
    line-height: 1.55;
    color: #fff;
}

.tech-about-copy > p {
    margin: 0 0 1rem;
    font-size: clamp(1rem, 2vw, 1.08rem);
    line-height: 1.75;
    color: var(--hub-muted);
}

.tech-text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.2rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--hub-blue);
    text-decoration: none;
}

.tech-text-link:hover {
    color: var(--hub-navy);
}

.tech-text-link i {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.tech-text-link:hover i {
    transform: translateX(3px);
}

.tech-about-compact {
    padding: clamp(1.1rem, 2.5vw, 1.75rem) 0 clamp(1.75rem, 3.5vw, 2.5rem);
}

.tech-about-compact .tech-about-grid {
    min-height: clamp(380px, 46vw, 480px);
}

.tech-about-compact .tech-about-visual,
.tech-about-compact .tech-about-visual img {
    min-height: clamp(380px, 46vw, 480px);
}

@media (max-width: 991px) {
    .tech-about-grid {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .tech-about-visual,
    .tech-about-visual img,
    .tech-about-compact .tech-about-visual,
    .tech-about-compact .tech-about-visual img {
        min-height: 260px;
    }

    .tech-about-copy {
        border-left: none;
        border-top: 4px solid var(--hub-gold);
        padding-top: 1.25rem;
    }
}

.tech-section-head {
    max-width: 38rem;
    margin-bottom: 2rem;
}

.tech-section-head h2 {
    margin: 0 0 0.6rem;
    font-size: clamp(1.5rem, 3vw, 1.95rem);
    font-weight: 700;
    color: var(--hub-navy);
}

.tech-section-head .hub-divider {
    display: block;
    width: 52px;
    height: 3px;
    margin: 0 0 0.9rem;
    background: var(--hub-gold);
}

.tech-section-head p {
    margin: 0;
    font-family: var(--hub-serif);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--hub-muted);
}

.tech-path {
    padding: clamp(3rem, 6vw, 4.5rem) 0;
    background: #0f2238;
    color: #fff;
}

.tech-path .tech-section-head h2 {
    color: #fff;
}

.tech-path .tech-section-head p {
    color: rgba(255, 255, 255, 0.72);
}

.tech-path-track {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}

.tech-path-track li {
    position: relative;
    padding-top: 0.25rem;
    min-width: 0;
}

.tech-path-track li:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 1.15rem;
    left: 2.75rem;
    right: -0.65rem;
    height: 1px;
    background: linear-gradient(90deg, rgba(201, 164, 59, 0.8), rgba(201, 164, 59, 0.12));
}

.tech-path-n {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    margin-bottom: 0.95rem;
    border-radius: 50%;
    border: 1px solid rgba(201, 164, 59, 0.65);
    color: var(--hub-gold);
    font-size: 0.85rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.04);
}

.tech-path-track h3 {
    margin: 0 0 0.4rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.tech-path-track p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

.tech-themes {
    padding: clamp(1.75rem, 4vw, 2.75rem) 0;
    background: var(--hub-paper);
}

.tech-themes-compact .tech-section-head {
    margin-bottom: 1rem;
}

.tech-theme-list {
    border-top: 1px solid var(--hub-line);
}

.tech-theme-row {
    display: grid;
    grid-template-columns: minmax(2.5rem, 3.25rem) minmax(0, 1fr);
    gap: clamp(0.55rem, 2vw, 0.9rem);
    padding: clamp(0.75rem, 2vw, 1rem) 0;
    border-bottom: 1px solid var(--hub-line);
    transition: background 0.2s ease;
    min-width: 0;
}

@media (hover: hover) and (pointer: fine) {
    .tech-theme-row:hover {
        background: rgba(65, 143, 222, 0.04);
    }
}

.tech-theme-index {
    font-size: clamp(0.95rem, 2.4vw, 1.15rem);
    font-weight: 700;
    color: var(--hub-gold);
    line-height: 1.3;
}

.tech-theme-body {
    min-width: 0;
}

.tech-theme-audience {
    display: inline-block;
    margin-bottom: 0.2rem;
    font-size: clamp(0.62rem, 1.6vw, 0.68rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--hub-blue);
    line-height: 1.3;
}

.tech-theme-body h3 {
    margin: 0 0 0.25rem;
    font-size: clamp(0.98rem, 2.4vw, 1.08rem);
    font-weight: 700;
    color: var(--hub-navy);
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.tech-theme-body p {
    margin: 0;
    max-width: 42rem;
    font-size: clamp(0.84rem, 2vw, 0.9rem);
    line-height: 1.55;
    color: var(--hub-muted);
}

.tech-pubs-priority {
    padding: clamp(1.75rem, 4vw, 2.75rem) 0;
    background: #fff;
    border-bottom: 1px solid var(--hub-line);
}

.tech-pubs-priority .tech-pubs-head {
    margin-bottom: 1rem;
}

.tech-pubs-priority .tech-pub-grid a {
    padding-top: 0.95rem;
    padding-bottom: 0.95rem;
}

.tech-path-compact {
    padding: clamp(1.85rem, 4vw, 2.85rem) 0;
}

.tech-path-compact .tech-section-head {
    margin-bottom: 1.15rem;
}

/* Desktop: compact 2-column learn grid */
@media (min-width: 992px) {
    .tech-themes-compact .tech-theme-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem 1.25rem;
        border-top: none;
    }

    .tech-themes-compact .tech-theme-row {
        padding: 0.85rem 0.9rem;
        border: 1px solid var(--hub-line);
        background: #fff;
        align-items: start;
    }
}

/* Tablet+: comfortable 2-column theme cards */
@media (min-width: 768px) and (max-width: 991px) {
    .tech-theme-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem;
        border-top: none;
    }

    .tech-theme-row {
        grid-template-columns: 2.5rem minmax(0, 1fr);
        gap: 0.65rem;
        padding: 0.85rem 0.8rem;
        border: 1px solid var(--hub-line);
        border-bottom: 1px solid var(--hub-line);
        background: #fff;
        min-height: 100%;
    }
}

/* Phones: stacked header for clearer reading */
@media (max-width: 767px) {
    .tech-themes .tech-section-head {
        margin-bottom: 0.85rem;
    }

    .tech-theme-list {
        border-top: none;
        display: flex;
        flex-direction: column;
        gap: 0.55rem;
    }

    .tech-theme-row {
        grid-template-columns: 1fr;
        gap: 0.4rem;
        padding: 0.85rem 0.8rem;
        background: #fff;
        border: 1px solid var(--hub-line);
        border-bottom: 1px solid var(--hub-line);
    }

    .tech-theme-index {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2rem;
        height: 2rem;
        margin-bottom: 0;
        border: 1px solid rgba(201, 164, 59, 0.45);
        background: rgba(201, 164, 59, 0.08);
        font-size: 0.8rem;
        line-height: 1;
    }

    .tech-theme-audience {
        display: block;
        margin-bottom: 0.2rem;
    }

    .tech-theme-body h3 {
        margin-bottom: 0.3rem;
    }
}

@media (max-width: 480px) {
    .tech-theme-row {
        padding: 0.75rem 0.7rem;
    }

    .tech-theme-body p {
        font-size: 0.84rem;
        line-height: 1.5;
    }
}


.tech-pubs {
    padding: clamp(3rem, 6vw, 4.5rem) 0;
    background: #fff;
}

.tech-pubs-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.tech-pubs-head h2 {
    margin: 0 0 0.55rem;
    font-size: clamp(1.5rem, 3vw, 1.95rem);
    font-weight: 700;
    color: var(--hub-navy);
}

.tech-pubs-head .hub-divider {
    display: block;
    width: 52px;
    height: 3px;
    margin: 0 0 0.75rem;
    background: var(--hub-gold);
}

.tech-pubs-head p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--hub-muted);
}

.tech-pubs-head strong {
    color: var(--hub-navy);
}

.tech-pub-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--hub-line);
}

.tech-pub-grid li {
    border-bottom: 1px solid var(--hub-line);
}

.tech-pub-grid a {
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr) 1.5rem;
    gap: 1rem;
    align-items: start;
    padding: 1.35rem 0.2rem;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease, padding 0.2s ease;
}

.tech-pub-grid a:hover {
    background: rgba(65, 143, 222, 0.05);
    padding-left: 0.55rem;
    padding-right: 0.55rem;
    color: inherit;
    text-decoration: none;
}

.tech-pub-index {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--hub-gold);
    padding-top: 0.15rem;
}

.tech-pub-grid time {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--hub-blue);
}

.tech-pub-grid h3 {
    margin: 0 0 0.35rem;
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--hub-navy);
    line-height: 1.35;
}

.tech-pub-grid p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--hub-muted);
}

.tech-pub-go {
    color: var(--hub-blue);
    padding-top: 0.2rem;
    transition: transform 0.2s ease;
}

.tech-pub-grid a:hover .tech-pub-go {
    transform: translateX(3px);
}

.tech-empty {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 2rem 1.5rem;
    background: var(--hub-paper);
    border: 1px solid var(--hub-line);
    border-left: 4px solid var(--hub-gold);
}

.tech-empty h3 {
    margin: 0 0 0.4rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--hub-navy);
}

.tech-empty p {
    margin: 0;
    max-width: 34rem;
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--hub-muted);
}

@media (max-width: 991px) {
    .tech-hero {
        min-height: min(70vh, 520px);
        min-height: min(70dvh, 520px);
    }

    .tech-about-grid,
    .tech-path-track {
        grid-template-columns: 1fr;
    }

    .tech-pillars-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tech-pillars-list li:nth-child(2n) {
        border-right: none;
    }

    .tech-pillars-list li:nth-child(-n+2) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        padding-bottom: 0.65rem;
        margin-bottom: 0.35rem;
    }

    .tech-path-track li:not(:last-child)::after {
        display: none;
    }

    .tech-about-visual,
    .tech-about-visual img {
        min-height: 260px;
    }
}

@media (max-width: 767px) {
    .tech-pillars-list {
        grid-template-columns: 1fr 1fr;
    }

    .tech-pub-grid a {
        grid-template-columns: 2.5rem minmax(0, 1fr) 1.25rem;
        gap: 0.7rem;
    }

    .tech-pubs-head .hub-btn,
    .hub-cta-actions .hub-btn,
    .tech-empty .hub-btn {
        width: 100%;
    }

    .tech-empty {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 480px) {
    .tech-pillars-list {
        grid-template-columns: 1fr;
    }

    .tech-pillars-list li {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        text-align: left;
        padding: 0.55rem 0;
    }

    .tech-pillars-list li:last-child {
        border-bottom: none;
    }

    .tech-pillars-list li:nth-child(-n+2) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        margin-bottom: 0;
        padding-bottom: 0.55rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tech-hero .hub-hero-media img,
    .ric-hero .hub-hero-media img {
        animation: none !important;
        transform: none !important;
    }
}
