/* ══════════════════════════════════════════════════════════
       RESOURCE HUB — page styles
    ══════════════════════════════════════════════════════════ */

/* ── Hero ─────────────────────────────────────────────── */
.rh-hero {
    min-height: 92vh;
    display: flex;
    align-items: center;
    background: var(--bg);
    position: relative;
    overflow: hidden;
    padding-top: 100px;
    padding-bottom: 60px;
}

/* Animated mesh background */
.rh-hero-mesh {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 80% 60% at 70% 20%, rgba(249, 115, 22, .10) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 10% 80%, rgba(168, 85, 247, .09) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 90% 85%, rgba(6, 182, 212, .07) 0%, transparent 60%);
    animation: meshFloat 12s ease-in-out infinite alternate;
}

@keyframes meshFloat {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: .9;
    }

    100% {
        transform: scale(1.04) rotate(1.5deg);
        opacity: 1;
    }
}

.rh-hero-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .035;
    background-image:
        linear-gradient(var(--text) 1px, transparent 1px),
        linear-gradient(90deg, var(--text) 1px, transparent 1px);
    background-size: 52px 52px;
}

/* Floating decorative orbs */
.rh-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(60px);
    opacity: .18;
}

.rh-orb-1 {
    width: 500px;
    height: 500px;
    top: -15%;
    right: -10%;
    background: linear-gradient(135deg, #f97316, #ec4899);
    animation: orbFloat1 10s ease-in-out infinite alternate;
}

.rh-orb-2 {
    width: 380px;
    height: 380px;
    bottom: -8%;
    left: -8%;
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    animation: orbFloat2 13s ease-in-out infinite alternate;
}

.rh-orb-3 {
    width: 260px;
    height: 260px;
    top: 50%;
    left: 45%;
    background: linear-gradient(135deg, #22c55e, #06b6d4);
    animation: orbFloat3 8s ease-in-out infinite alternate;
}

@keyframes orbFloat1 {
    0% {
        transform: translate(0, 0) scale(1)
    }

    100% {
        transform: translate(-30px, 25px) scale(1.08)
    }
}

@keyframes orbFloat2 {
    0% {
        transform: translate(0, 0) scale(1)
    }

    100% {
        transform: translate(20px, -20px) scale(1.05)
    }
}

@keyframes orbFloat3 {
    0% {
        transform: translate(0, 0) scale(1)
    }

    100% {
        transform: translate(-15px, 15px) scale(1.1)
    }
}

/* Hero content */
.rh-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}

.rh-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    border-radius: 999px;
    border: 1px solid rgba(249, 115, 22, .28);
    background: rgba(249, 115, 22, .08);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 28px;
}

.rh-hero-eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 1.4s infinite;
}

.rh-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 7vw, 5.6rem);
    font-weight: 700;
    line-height: 1.06;
    color: var(--text);
    margin-bottom: 24px;
    letter-spacing: -.03em;
}

.rh-hero-sub {
    font-size: 1.15rem;
    color: var(--text2);
    line-height: 1.75;
    max-width: 620px;
    margin: 0 auto 40px;
}

.rh-hero-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
}

.rh-chip {
    padding: 9px 20px;
    border-radius: 999px;
    border: 1.5px solid var(--border);
    background: var(--bg-card);
    font-size: 13px;
    font-weight: 600;
    color: var(--text2);
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.rh-chip:hover,
.rh-chip.active {
    border-color: var(--accent);
    background: rgba(249, 115, 22, .08);
    color: var(--accent);
    transform: translateY(-2px);
}

.rh-hero-cta {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

/* Hero stats bar */
.rh-stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.rh-stat {
    padding: 28px 20px;
    text-align: center;
    border-right: 1px solid var(--border);
    transition: background .2s;
}

.rh-stat:last-child {
    border-right: none;
}

.rh-stat:hover {
    background: var(--bg3);
}

.rh-stat-num {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent);
    display: block;
    line-height: 1;
    margin-bottom: 6px;
}

.rh-stat-lbl {
    font-size: 13px;
    color: var(--text3);
    font-weight: 500;
}

/* ── Section anchor strip ──────────────────────────────── */
.rh-anchor-strip {
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 72px;
    z-index: 50;
}

.rh-anchor-inner {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.rh-anchor-inner::-webkit-scrollbar {
    display: none;
}

.rh-anchor-btn {
    flex-shrink: 0;
    padding: 16px 24px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text3);
    border: none;
    background: transparent;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all .2s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
}

.rh-anchor-btn:hover,
.rh-anchor-btn.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    background: rgba(249, 115, 22, .04);
}

/* ── Shared card base ──────────────────────────────────── */
.rh-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.rh-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-h);
    box-shadow: var(--shadow-lg);
}

.rh-card-top-bar {
    height: 4px;
    background: var(--card-gradient, linear-gradient(90deg, #f97316, #ec4899));
}

.rh-card-body {
    padding: 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.rh-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    margin-bottom: 18px;
    flex-shrink: 0;
}

.rh-card-cat {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 12px;
}

.rh-card-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
    line-height: 1.4;
}

.rh-card-desc {
    font-size: 13px;
    color: var(--text2);
    line-height: 1.72;
    margin-bottom: 20px;
    flex: 1;
}

/* File list */
.rh-files {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.rh-file {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 14px;
    border-radius: 10px;
    background: var(--bg2);
    border: 1px solid var(--border);
    transition: var(--transition);
    cursor: default;
}

.rh-file:hover {
    border-color: var(--accent);
}

.rh-file-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text2);
}

.rh-file-size {
    font-size: 11px;
    color: var(--text3);
    flex-shrink: 0;
}

/* Download button */
.rh-dl {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    background: rgba(249, 115, 22, .08);
    color: var(--accent);
    border: 1.5px solid rgba(249, 115, 22, .2);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.rh-dl:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: scale(1.02);
}

/* ── Practice card ─────────────────────────────────────── */
.prac-card-rh {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px;
    transition: var(--transition);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.prac-card-rh::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s cubic-bezier(.16, 1, .3, 1);
}

.prac-card-rh:hover {
    transform: translateY(-7px);
    border-color: var(--border-h);
    box-shadow: var(--shadow-md);
}

.prac-card-rh:hover::after {
    transform: scaleX(1);
}

.prac-emoji {
    font-size: 3rem;
    margin-bottom: 14px;
}

.prac-num {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
    margin-bottom: 4px;
}

.prac-lbl {
    font-size: 13px;
    color: var(--text2);
    margin-bottom: 12px;
    font-weight: 500;
}

.prac-diff {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 18px;
}

/* ── Learning Path card ────────────────────────────────── */
.lp-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.lp-card:hover {
    transform: translateY(-7px);
    border-color: var(--border-h);
    box-shadow: var(--shadow-lg);
}

.lp-thumb {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    position: relative;
    overflow: hidden;
}

.lp-thumb-emoji {
    transition: transform .5s cubic-bezier(.34, 1.56, .64, 1);
    position: relative;
    z-index: 1;
}

.lp-card:hover .lp-thumb-emoji {
    transform: scale(1.16) rotate(-6deg);
}

.lp-duration {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(8px);
    color: #fff;
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, .15);
}

.lp-body {
    padding: 22px;
}

.lp-cat {
    display: inline-block;
    padding: 3px 11px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 10px;
}

.lp-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
    line-height: 1.4;
}

.lp-desc {
    font-size: 13px;
    color: var(--text2);
    line-height: 1.65;
    margin-bottom: 16px;
}

.lp-steps {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}

.lp-step {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text2);
}

.lp-step-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
}

.lp-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.lp-meta span {
    font-size: 12px;
    color: var(--text3);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ── Career Guidance card ──────────────────────────────── */
.cg-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.cg-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s ease;
    background: var(--cg-grad, linear-gradient(90deg, #f97316, #ec4899));
}

.cg-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-h);
    box-shadow: var(--shadow-md);
}

.cg-card:hover::before {
    transform: scaleX(1);
}

.cg-icon {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.cg-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}

.cg-desc {
    font-size: 13px;
    color: var(--text2);
    line-height: 1.7;
    margin-bottom: 20px;
}

.cg-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 20px;
}

.cg-tag {
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    background: var(--bg2);
    border: 1px solid var(--border);
    color: var(--text3);
}

/* ── Questionnaire special card ────────────────────────── */
.q-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.q-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-h);
    box-shadow: var(--shadow-lg);
}

.q-card-header {
    padding: 28px 28px 20px;
    border-bottom: 1px solid var(--border);
}

.q-num {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 6px;
}

.q-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.q-desc {
    font-size: 13px;
    color: var(--text2);
    line-height: 1.65;
}

.q-card-body {
    padding: 20px 28px 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.q-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.q-meta span {
    font-size: 12px;
    color: var(--text3);
    display: flex;
    align-items: center;
    gap: 5px;
}

.q-preview {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 18px;
}

.q-preview-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--text3);
    margin-bottom: 8px;
}

.q-preview-item {
    font-size: 13px;
    color: var(--text2);
    padding: 5px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.q-preview-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.q-preview-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.q-btns {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

/* ── Responsive grid helpers ───────────────────────────── */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}


.prac-card-rh:nth-child(1)::after {
    background: linear-gradient(90deg, #f97316, #ec4899);
}

.prac-card-rh:nth-child(2)::after {
    background: linear-gradient(90deg, #06b6d4, #3b82f6);
}

.prac-card-rh:nth-child(3)::after {
    background: linear-gradient(90deg, #f59e0b, #f97316);
}

.prac-card-rh:nth-child(4)::after {
    background: linear-gradient(90deg, #ec4899, #a855f7);
}

.prac-card-rh:nth-child(5)::after {
    background: linear-gradient(90deg, #22c55e, #06b6d4);
}

.prac-card-rh:nth-child(6)::after {
    background: linear-gradient(90deg, #a855f7, #06b6d4);
}

.prac-card-rh:nth-child(7)::after {
    background: linear-gradient(90deg, #f43f5e, #f97316);
}

.prac-card-rh:nth-child(8)::after {
    background: linear-gradient(90deg, #4facfe, #00f2fe);
}

@media (max-width:1024px) {
    .rh-stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }

    .rh-stats-bar .rh-stat:nth-child(2) {
        border-right: none;
    }

    .rh-stats-bar .rh-stat:nth-child(3) {
        border-top: 1px solid var(--border);
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width:768px) {
    .rh-hero {
        min-height: auto;
    }

    .rh-hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .rh-stats-bar {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width:540px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .grid-4 {
        grid-template-columns: 1fr;
    }

    .rh-hero-chips {
        gap: 8px;
    }
}