/* ------------------------------------------------------------------
 * Mega-menu nav + the shared hub/detail page template.
 * Structure follows the v21 prototype; palette is this site's dark theme.
 * Relies on .rgu-accent-* variables from home-sections.css.
 * ------------------------------------------------------------------ */

.rgu-page { background: #050508; color: #e2e8f0; font-family: 'Outfit', system-ui, sans-serif; }
.rgu-page h1, .rgu-page h2, .rgu-page h3 { font-family: 'Sora', sans-serif; }

/* ══ PAGE HERO ════════════════════════════════════════════════ */
.rgu-pagehero {
    position: relative; overflow: hidden;
    background: #080810; padding: 60px 0 54px;
    border-bottom: 1px solid rgba(148, 163, 184, .12);
}
.rgu-pagehero__glow {
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(64% 62% at 12% 6%, var(--rgu-cbg, rgba(168,85,247,.14)) 0%, transparent 62%),
        radial-gradient(56% 52% at 88% 14%, rgba(56, 189, 248, .12) 0%, transparent 64%);
}
.rgu-pagehero > * { position: relative; z-index: 1; }

.rgu-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: rgba(226, 232, 240, .5); }
.rgu-crumb a { color: #d8b4fe; text-decoration: none; }
.rgu-crumb a:hover { color: #fff; text-decoration: underline; }
.rgu-crumb i { font-style: normal; opacity: .45; }

.rgu-pagehero__title {
    font-weight: 900; font-size: clamp(1.9rem, 4.4vw, 3.1rem); line-height: 1.12;
    letter-spacing: -.03em; color: #f8fafc; margin: 16px 0 0;
}
.rgu-pagehero__lede { font-size: 15.5px; line-height: 1.72; color: rgba(226, 232, 240, .62); max-width: 680px; margin: 14px 0 0; }

.rgu-kpis { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.rgu-kpis > div {
    flex: 0 1 auto; min-width: 140px; padding: 14px 20px;
    border: 1px solid rgba(148, 163, 184, .16); background: rgba(15, 23, 42, .55); border-radius: 14px;
}
.rgu-kpis b { display: block; font-family: 'Sora', sans-serif; font-size: 20px; font-weight: 800; color: var(--rgu-c, #a855f7); }
.rgu-kpis small { display: block; margin-top: 3px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: rgba(226,232,240,.45); }

/* ══ HUB CARDS ════════════════════════════════════════════════ */
.rgu-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rgu-card {
    position: relative; display: block; text-decoration: none; overflow: hidden;
    border: 1px solid rgba(148, 163, 184, .16); background: rgba(15, 23, 42, .55);
    border-radius: 18px; padding: 26px 24px;
    transition: transform .3s cubic-bezier(.22,.61,.36,1), border-color .3s ease, background .3s ease, box-shadow .3s ease;
}
.rgu-card:hover { transform: translateY(-5px); border-color: var(--rgu-c, #a855f7); background: rgba(15, 23, 42, .85); box-shadow: 0 20px 46px rgba(2, 6, 23, .55); }
.rgu-card__n {
    display: inline-block; font-family: 'Sora', sans-serif; font-size: 12px; font-weight: 800;
    letter-spacing: .08em; color: var(--rgu-c, #a855f7);
    background: var(--rgu-cbg, rgba(168,85,247,.14));
    border: 1px solid var(--rgu-c, #a855f7); border-radius: 8px; padding: 4px 9px;
}
.rgu-card__h { font-size: 17px; font-weight: 800; color: #f1f5f9; margin: 14px 0 0; line-height: 1.35; }
.rgu-card__p { font-size: 13.5px; line-height: 1.68; color: rgba(226, 232, 240, .58); margin: 9px 0 0; }
.rgu-card__go { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; font-family: 'Sora', sans-serif; font-size: 12.5px; font-weight: 700; color: var(--rgu-c, #d8b4fe); }
.rgu-card__go span { transition: transform .25s ease; }
.rgu-card:hover .rgu-card__go span { transform: translateX(5px); }

/* ══ DETAIL LAYOUT ════════════════════════════════════════════ */
.rgu-split { display: grid; grid-template-columns: 260px 1fr; gap: 44px; align-items: start; }

.rgu-side { position: sticky; top: 90px; border: 1px solid rgba(148,163,184,.16); background: rgba(15,23,42,.5); border-radius: 18px; padding: 22px; }
.rgu-side__h { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: #d8b4fe; margin: 0 0 14px; }
.rgu-side__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.rgu-side__list a {
    display: block; font-size: 13.5px; color: rgba(226, 232, 240, .72);
    text-decoration: none; padding: 9px 11px; border-radius: 9px; border-left: 2px solid transparent;
    transition: all .2s ease;
}
.rgu-side__list a:hover { color: #fff; background: rgba(168, 85, 247, .1); }
.rgu-side__list a.is-current { color: #fff; background: rgba(168, 85, 247, .16); border-left-color: var(--rgu-c, #a855f7); font-weight: 600; }
.rgu-side__back { display: inline-block; margin-top: 18px; font-family: 'Sora', sans-serif; font-size: 12.5px; font-weight: 700; color: var(--rgu-c, #d8b4fe); text-decoration: none; }
.rgu-side__back:hover { color: #fff; }

.rgu-body { min-width: 0; }
.rgu-pending {
    border: 1px solid rgba(251, 191, 36, .3); background: rgba(251, 191, 36, .08);
    border-radius: 14px; padding: 16px 18px; margin-bottom: 30px;
}
.rgu-pending b { display: block; font-family: 'Sora', sans-serif; font-size: 13px; color: #fbbf24; margin-bottom: 5px; }
.rgu-pending p { margin: 0; font-size: 13.5px; line-height: 1.65; color: rgba(226, 232, 240, .6); }

.rgu-body__h { font-size: 19px; font-weight: 800; color: #f1f5f9; margin: 34px 0 12px; padding-bottom: 10px; border-bottom: 1px solid rgba(148,163,184,.14); }
.rgu-body__h:first-of-type { margin-top: 0; }
.rgu-body p { font-size: 15px; line-height: 1.78; color: rgba(226, 232, 240, .66); margin: 0 0 14px; }
.rgu-body__list { margin: 0 0 14px; padding: 0; list-style: none; }
.rgu-body__list li { position: relative; padding: 8px 0 8px 22px; font-size: 15px; line-height: 1.7; color: rgba(226,232,240,.66); border-bottom: 1px dashed rgba(148,163,184,.12); }
.rgu-body__list li::before { content: ""; position: absolute; left: 0; top: 17px; width: 8px; height: 8px; border-radius: 50%; background: var(--rgu-c, #a855f7); }
.rgu-body__list li:last-child { border-bottom: 0; }

.rgu-table { width: 100%; border-collapse: collapse; border: 1px solid rgba(148,163,184,.16); border-radius: 12px; overflow: hidden; }
.rgu-table th, .rgu-table td { text-align: left; padding: 13px 16px; font-size: 14px; border-bottom: 1px solid rgba(148,163,184,.1); }
.rgu-table th { width: 190px; color: #d8b4fe; font-weight: 600; background: rgba(168, 85, 247, .06); }
.rgu-table td { color: rgba(226, 232, 240, .66); }
.rgu-table tr:last-child th, .rgu-table tr:last-child td { border-bottom: 0; }

/* ══ FACILITIES / OBJECTIVE LISTS ═════════════════════════════ */
.rgu-facgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rgu-fac {
    border: 1px solid rgba(148,163,184,.16); background: rgba(15,23,42,.55);
    border-radius: 18px; padding: 24px;
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.rgu-fac:hover { transform: translateY(-5px); border-color: var(--rgu-c, #a855f7); box-shadow: 0 18px 40px rgba(2,6,23,.5); }
.rgu-fac h3 { font-size: 17px; font-weight: 800; color: #f1f5f9; margin: 0 0 9px; }
.rgu-fac p { font-size: 13.5px; line-height: 1.68; color: rgba(226,232,240,.58); margin: 0; }

.rgu-oblist { counter-reset: ob; display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; }
.rgu-oblist li {
    counter-increment: ob; position: relative; padding: 18px 20px 18px 62px;
    border: 1px solid rgba(148,163,184,.16); background: rgba(15,23,42,.5); border-radius: 14px;
    font-size: 14.5px; line-height: 1.7; color: rgba(226,232,240,.68);
}
.rgu-oblist li::before {
    content: counter(ob, decimal-leading-zero);
    position: absolute; left: 18px; top: 17px;
    font-family: 'Sora', sans-serif; font-size: 13px; font-weight: 800; color: var(--rgu-c, #a855f7);
}

@media (max-width: 1024px) {
    .rgu-mega__inner { grid-template-columns: 1fr; gap: 24px; }
    .rgu-cards, .rgu-facgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rgu-split { grid-template-columns: 1fr; gap: 28px; }
    .rgu-side { position: static; }
}
@media (max-width: 700px) {
    .rgu-cards, .rgu-facgrid { grid-template-columns: minmax(0, 1fr); }
    .rgu-mega__cols { grid-template-columns: minmax(0, 1fr); }
    .rgu-pagehero { padding: 44px 0 40px; }
    .rgu-table th { width: 130px; }
}
@media (prefers-reduced-motion: reduce) {
    .rgu-mega, .rgu-card, .rgu-fac, .rgu-nav__apply, .rgu-nav__btn,
    .rgu-mega__col a, .rgu-side__list a, .rgu-card__go span { transition: none; }
}

/* ==================================================================
 * Career pathway + examination page components.
 * Accent comes from --rgu-c / --rgu-cbg, set by .rgu-accent-* on <body>.
 * ================================================================== */

/* Objective panel */
.rgu-obj {
    margin: 26px 0 8px; padding: 26px 28px;
    border: 1px solid rgba(148, 163, 184, .16);
    border-left: 3px solid var(--rgu-c, #a855f7);
    border-radius: 14px;
    background: linear-gradient(120deg, var(--rgu-cbg, rgba(168,85,247,.14)), rgba(15, 23, 42, .4));
}
.rgu-obj__eyebrow {
    display: block; margin-bottom: 10px;
    font-family: 'Sora', sans-serif; font-size: 11px; font-weight: 800;
    letter-spacing: .18em; text-transform: uppercase; color: var(--rgu-c, #a855f7);
}
.rgu-obj p { margin: 0; font-size: 16px; line-height: 1.75; color: #e2e8f0; }

/* Mission cards */
.rgu-mgrid { display: grid; gap: 12px; margin: 16px 0 8px; }
.rgu-mis {
    display: flex; gap: 16px; align-items: flex-start;
    padding: 18px 20px; border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, .14);
    background: rgba(15, 23, 42, .45);
    transition: border-color .25s ease, background .25s ease;
}
.rgu-mis:hover { border-color: var(--rgu-c, #a855f7); background: rgba(15, 23, 42, .7); }
.rgu-mis__n {
    flex: 0 0 auto; display: grid; place-items: center;
    width: 34px; height: 34px; border-radius: 9px;
    background: var(--rgu-cbg, rgba(168,85,247,.14)); color: var(--rgu-c, #a855f7);
    font-family: 'Sora', sans-serif; font-size: 12.5px; font-weight: 800;
}
.rgu-mis p { margin: 0; font-size: 14.8px; line-height: 1.72; color: rgba(226, 232, 240, .78); }

/* Photo placeholders — captions describe the frame each slot should carry */
.rgu-shots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 16px 0 8px; }
.rgu-shot {
    position: relative; margin: 0; aspect-ratio: 4 / 3;
    border-radius: 12px; overflow: hidden;
    border: 1px solid rgba(148, 163, 184, .16);
    background: linear-gradient(150deg, var(--rgu-cbg, rgba(168,85,247,.14)), rgba(8, 8, 16, .9));
}
.rgu-shot figcaption {
    position: absolute; inset: auto 0 0 0; padding: 10px 12px;
    font-size: 11.5px; line-height: 1.45; color: rgba(226, 232, 240, .82);
    background: linear-gradient(to top, rgba(5, 5, 8, .92), transparent);
}
.rgu-shot figcaption span {
    display: block; font-family: 'Sora', sans-serif; font-size: 10px; font-weight: 800;
    letter-spacing: .14em; color: var(--rgu-c, #a855f7); margin-bottom: 3px;
}

/* Rule blocks (examinations) */
.rgu-rules { display: grid; gap: 12px; margin: 16px 0 8px; }
.rgu-rule {
    border: 1px solid rgba(148, 163, 184, .16);
    border-radius: 12px; background: rgba(15, 23, 42, .45); overflow: hidden;
}
.rgu-rule > summary {
    display: flex; align-items: center; gap: 12px; cursor: pointer;
    padding: 16px 20px; list-style: none;
    font-family: 'Sora', sans-serif; font-size: 15px; font-weight: 700; color: #f1f5f9;
}
.rgu-rule > summary::-webkit-details-marker { display: none; }
.rgu-rule > summary::after {
    content: "+"; margin-left: auto; font-size: 19px; font-weight: 400;
    color: var(--rgu-c, #a855f7); transition: transform .25s ease;
}
.rgu-rule[open] > summary::after { transform: rotate(45deg); }
.rgu-rule > summary:hover { background: rgba(148, 163, 184, .06); }
.rgu-rule__dot { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 3px; background: var(--rgu-c, #a855f7); }
.rgu-rule__body { padding: 0 20px 18px 41px; }
.rgu-rule__body p { margin: 0 0 12px; font-size: 14.8px; line-height: 1.78; color: rgba(226, 232, 240, .74); }
.rgu-rule__body p:last-child { margin-bottom: 0; }

/* Definition list (mark components) */
.rgu-defs { margin: 16px 0 8px; display: grid; gap: 2px; }
.rgu-defs > div { padding: 15px 0; border-bottom: 1px dashed rgba(148, 163, 184, .14); }
.rgu-defs > div:last-child { border-bottom: 0; }
.rgu-defs dt { font-family: 'Sora', sans-serif; font-size: 14.5px; font-weight: 700; color: #f1f5f9; margin-bottom: 5px; }
.rgu-defs dd { margin: 0; font-size: 14.5px; line-height: 1.72; color: rgba(226, 232, 240, .72); }

/* Numeric emphasis inside tables */
.rgu-num { font-family: 'Sora', sans-serif; font-weight: 700; color: #f1f5f9; white-space: nowrap; }
.rgu-table tfoot th, .rgu-table tfoot td {
    background: var(--rgu-cbg, rgba(168,85,247,.14));
    color: #f1f5f9; font-weight: 800;
}
.rgu-tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.rgu-tablewrap .rgu-table { min-width: 520px; }

@media (max-width: 900px) {
    .rgu-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .rgu-obj { padding: 20px; }
    .rgu-mis { padding: 15px 16px; gap: 12px; }
    .rgu-rule__body { padding: 0 16px 16px 16px; }
}

/* A <button> that reads as the sidebar's back-link (used to open the enquiry modal). */
.rgu-btnlink { border: 0; cursor: pointer; font: inherit; }
