/* =====================================================================
   CSA Vietnam — HR / Careers page ("/hr/")
   A premium, modern, professional redesign.
   Namespaced `.hrx-` so it never collides with legacy hr-jd*.css.
   Dark navy hero + light body, brand-blue primary, GOLD accent
   reserved for HOT jobs. Content is visible by default; JS only
   layers motion on top (see hr.js). Honors prefers-reduced-motion.
   ===================================================================== */

:root {
    --hrx-navy: #08122e;
    --hrx-navy-2: #0e2150;
    --hrx-navy-3: #16336e;
    --hrx-blue: #2f6bff;
    --hrx-blue-2: #0a49d6;
    --hrx-blue-soft: #6f9bff;
    --hrx-gold: #ffb62e;
    --hrx-gold-2: #ff7a1a;
    --hrx-gold-deep: #c8791a;
    --hrx-ink: #14203a;
    --hrx-muted: #5c6b85;
    --hrx-muted-2: #8492aa;
    --hrx-bg: #f5f8ff;
    --hrx-card: #ffffff;
    --hrx-line: #e6ecf9;
    --hrx-radius: 20px;
    --hrx-radius-sm: 14px;
    --hrx-shadow: 0 18px 46px rgba(12, 30, 70, 0.10);
    --hrx-shadow-lg: 0 30px 72px rgba(12, 30, 70, 0.22);
    --hrx-shadow-gold: 0 22px 50px rgba(255, 138, 26, 0.28);
    --hrx-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --hrx-grad-blue: linear-gradient(135deg, #3f78ff 0%, #0a49d6 100%);
    --hrx-grad-gold: linear-gradient(135deg, #ffd35c 0%, #ff7a1a 100%);
    --hrx-grad-navy: linear-gradient(140deg, #0a1636 0%, #0e2150 55%, #123069 100%);
}

/* ---------- page scope reset (wins over Bootstrap base) ---------- */
.hrx-page {
    font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--hrx-ink);
    background: var(--hrx-bg);
    margin: 0;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
.hrx-page *,
.hrx-page *::before,
.hrx-page *::after {
    box-sizing: border-box;
}
.hrx-page h1,
.hrx-page h2,
.hrx-page h3,
.hrx-page h4 {
    font-family: "Poppins", "Montserrat", sans-serif;
    letter-spacing: -0.02em;
    margin: 0;
}
.hrx-page p { margin: 0; }
.hrx-page a { text-decoration: none; color: inherit; }
.hrx-page img { max-width: 100%; display: block; }
.hrx-page section { padding: 50px; } /* neutralize any global section padding */

.hrx-container {
    width: min(1200px, 92%);
    margin-inline: auto;
}

/* ---------- shared heading atoms ---------- */
.hrx-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: "Inter", sans-serif;
    font-weight: 700;
    font-size: 0.74rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--hrx-blue);
    padding: 0.42rem 0.95rem;
    border-radius: 100px;
    background: rgba(47, 107, 255, 0.09);
    border: 1px solid rgba(47, 107, 255, 0.16);
}
.hrx-eyebrow i { font-size: 0.85em; }

.hrx-section-head {
    max-width: 760px;
    margin: 0 auto 3rem;
    text-align: center;
}
.hrx-section-title {
    font-size: clamp(1.8rem, 3.8vw, 2.8rem);
    font-weight: 700;
    line-height: 1.14;
    color: var(--hrx-navy-2);
    margin-top: 1rem;
}
.hrx-section-lead {
    font-size: 1.06rem;
    line-height: 1.75;
    color: var(--hrx-muted);
    margin: 1rem auto 0;
    max-width: 60ch;
}
.hrx-grad-text {
    background: var(--hrx-grad-gold);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- buttons ---------- */
.hrx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.9rem 1.8rem;
    border-radius: 100px;
    font-family: "Inter", sans-serif;
    font-weight: 700;
    font-size: 0.98rem;
    line-height: 1;
    border: 0;
    cursor: pointer;
    transition: transform 0.35s var(--hrx-ease), box-shadow 0.35s var(--hrx-ease),
        background 0.35s var(--hrx-ease), color 0.35s var(--hrx-ease);
    will-change: transform;
}
.hrx-btn i { transition: transform 0.35s var(--hrx-ease); }
.hrx-btn:hover i { transform: translateX(4px); }
.hrx-btn--primary {
    background: var(--hrx-grad-blue);
    color: #fff;
    box-shadow: 0 16px 34px rgba(10, 73, 214, 0.42);
}
.hrx-btn--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 44px rgba(10, 73, 214, 0.52);
    color: #fff;
}
.hrx-btn--gold {
    background: var(--hrx-grad-gold);
    color: #3a1e00;
    box-shadow: var(--hrx-shadow-gold);
}
.hrx-btn--gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 26px 56px rgba(255, 138, 26, 0.42);
    color: #3a1e00;
}
.hrx-btn--ghost {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.34);
    backdrop-filter: blur(6px);
}
.hrx-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-3px);
    color: #fff;
}

/* =====================================================================
   HERO
   ===================================================================== */
.hrx-hero {
    position: relative;
    background: var(--hrx-grad-navy);
    color: #fff;
    padding: clamp(4.5rem, 10vw, 8rem) 0 clamp(6rem, 9vw, 8.5rem);
    overflow: hidden;
    isolation: isolate;
}
/* soft grid texture */
.hrx-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 40%, transparent 100%);
    z-index: -2;
}
/* wave divider at the bottom */
.hrx-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 90px;
    background: var(--hrx-bg);
    clip-path: ellipse(75% 100% at 50% 100%);
    z-index: 1;
}

/* animated aurora blobs */
.hrx-hero-aurora {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.55;
    z-index: -1;
    pointer-events: none;
}
.hrx-hero-aurora.a1 {
    width: 520px; height: 520px;
    top: -160px; left: -120px;
    background: radial-gradient(circle, #2f6bff, transparent 68%);
    animation: hrxFloat 16s ease-in-out infinite;
}
.hrx-hero-aurora.a2 {
    width: 460px; height: 460px;
    bottom: -180px; right: -100px;
    background: radial-gradient(circle, #ff7a1a, transparent 66%);
    opacity: 0.4;
    animation: hrxFloat 20s ease-in-out infinite reverse;
}
.hrx-hero-aurora.a3 {
    width: 380px; height: 380px;
    top: 30%; right: 22%;
    background: radial-gradient(circle, #6f9bff, transparent 70%);
    opacity: 0.3;
    animation: hrxFloat 24s ease-in-out infinite;
}

/* floating decorative shapes (parallax via JS) */
.hrx-hero-shape {
    position: absolute;
    z-index: -1;
    border-radius: 16px;
    border: 1.5px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(2px);
}
.hrx-hero-shape.s1 { width: 60px; height: 60px; top: 22%; left: 12%; border-radius: 50%; animation: hrxBob 7s ease-in-out infinite; }
.hrx-hero-shape.s2 { width: 42px; height: 42px; top: 62%; left: 20%; transform: rotate(20deg); animation: hrxBob 9s ease-in-out infinite 0.6s; }
.hrx-hero-shape.s3 { width: 78px; height: 78px; top: 18%; right: 14%; border-radius: 22px; animation: hrxBob 8s ease-in-out infinite 0.3s; }
.hrx-hero-shape.s4 { width: 34px; height: 34px; top: 70%; right: 24%; border-radius: 50%; animation: hrxBob 6.5s ease-in-out infinite 0.9s; }

.hrx-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
}
.hrx-hero .hrx-eyebrow {
    color: #ffd98a;
    background: rgba(255, 182, 46, 0.12);
    border-color: rgba(255, 182, 46, 0.3);
}
.hrx-hero-badge-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #46e39a;
    box-shadow: 0 0 0 0 rgba(70, 227, 154, 0.7);
    animation: hrxPulse 2s infinite;
}
.hrx-hero-title {
    font-size: clamp(2.4rem, 6.2vw, 4.6rem);
    font-weight: 800;
    line-height: 1.06;
    margin: 1.4rem 0 0;
    letter-spacing: -0.035em;
}
.hrx-hero-title .hrx-grad-text { display: inline-block; }
.hrx-hero-sub {
    font-family: "Inter", sans-serif;
    font-size: clamp(1rem, 2.1vw, 1.24rem);
    line-height: 1.7;
    color: rgba(233, 240, 255, 0.82);
    max-width: 620px;
    margin: 1.5rem auto 0;
}
.hrx-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 2.4rem;
}

/* hero stats */
.hrx-hero-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(1.4rem, 5vw, 4rem);
    margin-top: 3.4rem;
    padding-top: 2.4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.hrx-stat { text-align: center; min-width: 96px; }
.hrx-stat-num {
    font-family: "Poppins", sans-serif;
    font-weight: 800;
    font-size: clamp(1.9rem, 4vw, 2.9rem);
    line-height: 1;
    background: var(--hrx-grad-gold);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
}
.hrx-stat-suffix { font-size: 0.55em; }
.hrx-stat-label {
    font-family: "Inter", sans-serif;
    font-size: 0.84rem;
    letter-spacing: 0.04em;
    color: rgba(54, 54, 54, 0.72);
    margin-top: 0.55rem;
}

/* scroll cue */
.hrx-scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    z-index: 3;
    width: 26px; height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 7px;
}
.hrx-scroll-cue span {
    width: 4px; height: 8px;
    background: #fff;
    border-radius: 3px;
    animation: hrxScroll 1.7s ease-in-out infinite;
}

/* =====================================================================
   MARQUEE (rolling role ticker)
   ===================================================================== */
.hrx-marquee {
    background: #fff;
    border-bottom: 1px solid var(--hrx-line);
    padding: 0.9rem 0;
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.hrx-marquee-track {
    display: inline-flex;
    align-items: center;
    gap: 2.4rem;
    white-space: nowrap;
    animation: hrxMarquee 32s linear infinite;
    will-change: transform;
}
.hrx-marquee:hover .hrx-marquee-track { animation-play-state: paused; }
.hrx-marquee-item {
    font-family: "Inter", sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--hrx-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}
.hrx-marquee-item i { color: var(--hrx-gold-2); }
.hrx-marquee-item::after {
    content: "";
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--hrx-line);
    margin-left: 2.4rem;
}

/* =====================================================================
   MAIN LAYOUT
   ===================================================================== */
.hrx-main { padding-bottom: 5rem; }
.hrx-block { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.hrx-block--tight { padding-top: clamp(2.5rem, 5vw, 3.5rem); }

/* =====================================================================
   HOT JOBS
   ===================================================================== */
.hrx-hot {
    position: relative;
}
.hrx-hot-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2.6rem;
}
.hrx-hot-head .hrx-section-title { margin-top: 0.8rem; }
.hrx-hot-head-left { max-width: 640px; }
.hrx-eyebrow--hot {
    color: var(--hrx-gold-deep);
    background: rgba(255, 138, 26, 0.1);
    border-color: rgba(255, 138, 26, 0.24);
}
.hrx-hot-count {
    font-family: "Inter", sans-serif;
    font-size: 0.92rem;
    color: var(--hrx-muted);
}
.hrx-hot-count strong { color: var(--hrx-gold-2); font-size: 1.1rem; }

.hrx-hot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 26px;
}

/* premium hot card with animated conic border */
.hrx-hot-card {
    position: relative;
    border-radius: var(--hrx-radius);
    padding: 2px; /* room for gradient ring */
    background: var(--hrx-grad-gold);
    box-shadow: var(--hrx-shadow);
    transition: transform 0.4s var(--hrx-ease), box-shadow 0.4s var(--hrx-ease);
    transform-style: preserve-3d;
    will-change: transform;
}
.hrx-hot-card::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    padding: 2px;
    background: conic-gradient(from var(--hrx-angle, 0deg), #ffd35c, #ff7a1a, #ffb62e, #ff7a1a, #ffd35c);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s var(--hrx-ease);
    z-index: 3;
}
.hrx-hot-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--hrx-shadow-gold);
}
.hrx-hot-card:hover::before { opacity: 1; animation: hrxSpin 4s linear infinite; }

.hrx-hot-card-inner {
    position: relative;
    background: var(--hrx-card);
    border-radius: calc(var(--hrx-radius) - 2px);
    padding: 1.7rem 1.6rem 1.6rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 2;
}
/* glow blob inside card */
.hrx-hot-card-inner::after {
    content: "";
    position: absolute;
    top: -40px; right: -40px;
    width: 150px; height: 150px;
    background: radial-gradient(circle, rgba(255, 138, 26, 0.16), transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.hrx-hot-badge {
    position: absolute;
    top: 1.3rem; right: 1.3rem;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: "Inter", sans-serif;
    font-weight: 800;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    padding: 0.34rem 0.7rem;
    border-radius: 100px;
    background: var(--hrx-grad-gold);
    box-shadow: 0 6px 16px rgba(255, 122, 26, 0.45);
}
.hrx-hot-badge i { animation: hrxFlame 1.4s ease-in-out infinite; }

.hrx-hot-company {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: "Inter", sans-serif;
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    color: var(--hrx-blue-2);
    text-transform: uppercase;
    max-width: 74%;
}
.hrx-hot-company i { color: var(--hrx-blue); }
.hrx-hot-company span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.hrx-hot-title {
    position: relative;
    z-index: 1;
    font-size: 1.32rem;
    font-weight: 700;
    line-height: 1.28;
    color: var(--hrx-navy-2);
    margin: 0.7rem 0 0;
    min-height: 2.4em;
}
.hrx-hot-meta {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.1rem;
    margin-top: 0.9rem;
    font-family: "Inter", sans-serif;
    font-size: 0.9rem;
    color: var(--hrx-muted);
}
.hrx-hot-meta span { display: inline-flex; align-items: center; gap: 0.4rem; }
.hrx-hot-meta i { color: var(--hrx-gold-2); }

.hrx-salary {
    position: relative;
    z-index: 1;
    margin-top: 1.1rem;
    padding: 0.85rem 1rem;
    border-radius: var(--hrx-radius-sm);
    background: linear-gradient(120deg, rgba(255, 214, 92, 0.14), rgba(255, 122, 26, 0.08));
    border: 1px solid rgba(255, 138, 26, 0.2);
}
.hrx-salary-label {
    font-family: "Inter", sans-serif;
    font-size: 0.74rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--hrx-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.hrx-salary-amount {
    font-family: "Poppins", sans-serif;
    font-weight: 800;
    font-size: 1.16rem;
    line-height: 1.2;
    margin-top: 0.25rem;
    background: linear-gradient(120deg, #d9820f, #ff7a1a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hrx-chips {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.05rem;
}
.hrx-chip {
    font-family: "Inter", sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--hrx-blue-2);
    background: rgba(47, 107, 255, 0.08);
    border: 1px solid rgba(47, 107, 255, 0.14);
    border-radius: 100px;
    padding: 0.34rem 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.hrx-chip i { font-size: 0.8em; color: var(--hrx-blue); }

.hrx-hot-foot {
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding-top: 1.3rem;
}
.hrx-apply {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    padding: 0.85rem 1.2rem;
    border-radius: 100px;
    font-family: "Inter", sans-serif;
    font-weight: 700;
    font-size: 0.96rem;
    color: #fff;
    background: var(--hrx-grad-gold);
    box-shadow: 0 12px 26px rgba(255, 122, 26, 0.32);
    transition: transform 0.3s var(--hrx-ease), box-shadow 0.3s var(--hrx-ease), filter 0.3s var(--hrx-ease);
}
.hrx-apply i { transition: transform 0.3s var(--hrx-ease); }
.hrx-hot-card:hover .hrx-apply { filter: brightness(1.04); }
.hrx-apply:hover { transform: translateY(-2px); box-shadow: 0 18px 34px rgba(255, 122, 26, 0.42); color: #fff; }
.hrx-apply:hover i { transform: translateX(4px); }

/* =====================================================================
   FILTER
   ===================================================================== */
.hrx-filter {
    background: #fff;
    border: 1px solid var(--hrx-line);
    border-radius: var(--hrx-radius);
    padding: 1.6rem 1.7rem;
    box-shadow: var(--hrx-shadow);
    margin-bottom: 2.6rem;
}
.hrx-filter-title {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--hrx-navy-2);
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1.1rem;
}
.hrx-filter-title i { color: var(--hrx-blue); }
.hrx-chip-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 1.3rem;
}
/* accessible pill checkboxes */
.hrx-pill { position: relative; }
.hrx-pill input {
    position: absolute;
    opacity: 0;
    width: 0; height: 0;
}
.hrx-pill label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1.05rem;
    border-radius: 100px;
    font-family: "Inter", sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--hrx-muted);
    background: var(--hrx-bg);
    border: 1.5px solid var(--hrx-line);
    cursor: pointer;
    transition: all 0.25s var(--hrx-ease);
    user-select: none;
}
.hrx-pill label::before {
    content: "\f067"; /* plus */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.72em;
    opacity: 0.5;
    transition: transform 0.25s var(--hrx-ease);
}
.hrx-pill label:hover {
    color: var(--hrx-blue-2);
    border-color: var(--hrx-blue-soft);
    background: rgba(47, 107, 255, 0.06);
    transform: translateY(-1px);
}
.hrx-pill input:checked + label {
    color: #fff;
    background: var(--hrx-grad-blue);
    border-color: transparent;
    box-shadow: 0 10px 22px rgba(10, 73, 214, 0.32);
}
.hrx-pill input:checked + label::before {
    content: "\f00c"; /* check */
    opacity: 1;
}
.hrx-pill input:focus-visible + label {
    outline: 3px solid rgba(47, 107, 255, 0.35);
    outline-offset: 2px;
}
.hrx-filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}
.hrx-btn-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.72rem 1.5rem;
    border-radius: 100px;
    border: 0;
    cursor: pointer;
    font-family: "Inter", sans-serif;
    font-weight: 700;
    font-size: 0.94rem;
    color: #fff;
    background: var(--hrx-grad-blue);
    box-shadow: 0 12px 26px rgba(10, 73, 214, 0.3);
    transition: transform 0.3s var(--hrx-ease), box-shadow 0.3s var(--hrx-ease);
}
.hrx-btn-filter:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(10, 73, 214, 0.4); color: #fff; }
.hrx-btn-clear {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.72rem 1.4rem;
    border-radius: 100px;
    font-family: "Inter", sans-serif;
    font-weight: 600;
    font-size: 0.94rem;
    color: var(--hrx-muted);
    background: transparent;
    border: 1.5px solid var(--hrx-line);
    transition: all 0.3s var(--hrx-ease);
}
.hrx-btn-clear:hover { color: var(--hrx-ink); border-color: var(--hrx-muted-2); }
.hrx-active-filters {
    margin-top: 1.1rem;
    padding-top: 1.1rem;
    border-top: 1px dashed var(--hrx-line);
    font-family: "Inter", sans-serif;
    font-size: 0.9rem;
    color: var(--hrx-muted);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.hrx-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(47, 107, 255, 0.1);
    color: var(--hrx-blue-2);
    padding: 0.28rem 0.7rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.82rem;
}

/* =====================================================================
   COMPANY SECTIONS + REGULAR JOB CARDS
   ===================================================================== */
.hrx-company {
    margin-bottom: 3rem;
}
.hrx-company-head {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1.5rem;
}
.hrx-company-avatar {
    flex-shrink: 0;
    width: 46px; height: 46px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    font-family: "Poppins", sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    color: #fff;
    background: var(--hrx-grad-blue);
    box-shadow: 0 8px 20px rgba(10, 73, 214, 0.28);
}
.hrx-company-name {
    font-size: 1.34rem;
    font-weight: 700;
    color: var(--hrx-navy-2);
    line-height: 1.2;
}
.hrx-company-sub {
    font-family: "Inter", sans-serif;
    font-size: 0.86rem;
    color: var(--hrx-muted);
    margin-top: 2px;
}
.hrx-company-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--hrx-line), transparent);
}

.hrx-jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 22px;
}

.hrx-job-card {
    position: relative;
    background: var(--hrx-card);
    border: 1px solid var(--hrx-line);
    border-radius: var(--hrx-radius);
    padding: 1.5rem 1.5rem 1.4rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 24px rgba(12, 30, 70, 0.05);
    transition: transform 0.38s var(--hrx-ease), box-shadow 0.38s var(--hrx-ease), border-color 0.38s var(--hrx-ease);
    overflow: hidden;
    will-change: transform;
}
/* top accent line grows on hover */
.hrx-job-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--hrx-grad-blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--hrx-ease);
}
.hrx-job-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--hrx-shadow-lg);
    border-color: transparent;
}
.hrx-job-card:hover::before { transform: scaleX(1); }

.hrx-job-title {
    font-size: 1.14rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--hrx-navy-2);
    transition: color 0.3s var(--hrx-ease);
}
.hrx-job-card:hover .hrx-job-title { color: var(--hrx-blue-2); }
.hrx-job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    margin-top: 0.7rem;
    font-family: "Inter", sans-serif;
    font-size: 0.88rem;
    color: var(--hrx-muted);
}
.hrx-job-meta span { display: inline-flex; align-items: center; gap: 0.4rem; }
.hrx-job-meta i { color: var(--hrx-blue); }
.hrx-job-salary {
    margin-top: 0.95rem;
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 1.02rem;
    color: var(--hrx-ink);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.hrx-job-salary i { color: var(--hrx-gold-2); }
.hrx-job-salary small {
    font-family: "Inter", sans-serif;
    font-weight: 500;
    font-size: 0.78rem;
    color: var(--hrx-muted);
}
.hrx-job-foot {
    margin-top: auto;
    padding-top: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}
.hrx-job-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: "Inter", sans-serif;
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--hrx-blue-2);
    padding: 0.6rem 1.15rem;
    border-radius: 100px;
    background: rgba(47, 107, 255, 0.08);
    transition: all 0.3s var(--hrx-ease);
}
.hrx-job-link i { transition: transform 0.3s var(--hrx-ease); }
.hrx-job-card:hover .hrx-job-link { background: var(--hrx-grad-blue); color: #fff; box-shadow: 0 10px 22px rgba(10, 73, 214, 0.3); }
.hrx-job-card:hover .hrx-job-link i { transform: translateX(4px); }
.hrx-job-tag {
    font-family: "Inter", sans-serif;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--hrx-blue-2);
    background: rgba(47, 107, 255, 0.08);
    border-radius: 100px;
    padding: 0.28rem 0.7rem;
}

/* =====================================================================
   EMPTY STATE
   ===================================================================== */
.hrx-empty {
    text-align: center;
    padding: 4rem 1.5rem;
    background: #fff;
    border: 1px dashed var(--hrx-line);
    border-radius: var(--hrx-radius);
}
.hrx-empty i { font-size: 2.6rem; color: var(--hrx-blue-soft); }
.hrx-empty h3 { font-size: 1.4rem; color: var(--hrx-navy-2); margin-top: 1rem; }
.hrx-empty p { color: var(--hrx-muted); margin-top: 0.5rem; }
.hrx-empty a { color: var(--hrx-blue-2); font-weight: 700; }

/* =====================================================================
   CLOSING CTA BAND
   ===================================================================== */
.hrx-cta {
    position: relative;
    margin: 2rem auto 0;
    width: min(1200px, 92%);
    border-radius: 28px;
    overflow: hidden;
    background: var(--hrx-grad-navy);
    color: #fff;
    padding: clamp(3rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
    text-align: center;
    box-shadow: var(--hrx-shadow-lg);
    isolation: isolate;
}
.hrx-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(47, 107, 255, 0.5), transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(255, 122, 26, 0.4), transparent 45%);
    z-index: -1;
}
.hrx-cta h2 {
    font-size: clamp(1.7rem, 3.6vw, 2.6rem);
    font-weight: 800;
    line-height: 1.16;
}
.hrx-cta p {
    font-family: "Inter", sans-serif;
    font-size: 1.06rem;
    line-height: 1.7;
    color: rgba(226, 234, 252, 0.85);
    max-width: 560px;
    margin: 1rem auto 0;
}
.hrx-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 2.2rem;
}

/* =====================================================================
   REVEAL ANIMATIONS (progressive enhancement)
   Base state only applies once JS confirms motion is OK (.hrx-anim).
   Without JS everything is visible.
   ===================================================================== */
.hrx-anim [data-reveal] {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 0.7s var(--hrx-ease), transform 0.7s var(--hrx-ease);
    transition-delay: calc(var(--i, 0) * 90ms);
}
.hrx-anim [data-reveal="left"] { transform: translateX(-40px); }
.hrx-anim [data-reveal="right"] { transform: translateX(40px); }
.hrx-anim [data-reveal="zoom"] { transform: scale(0.92); }
.hrx-anim [data-reveal].is-in {
    opacity: 1;
    transform: none;
}

/* =====================================================================
   KEYFRAMES
   ===================================================================== */
@keyframes hrxFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.08); }
}
@keyframes hrxBob {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-18px) rotate(8deg); }
}
@keyframes hrxPulse {
    0% { box-shadow: 0 0 0 0 rgba(70, 227, 154, 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(70, 227, 154, 0); }
    100% { box-shadow: 0 0 0 0 rgba(70, 227, 154, 0); }
}
@keyframes hrxScroll {
    0% { opacity: 0; transform: translateY(-6px); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: translateY(10px); }
}
@keyframes hrxMarquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
@keyframes hrxFlame {
    0%, 100% { transform: scale(1) rotate(-3deg); }
    50% { transform: scale(1.18) rotate(4deg); }
}
@keyframes hrxSpin {
    to { --hrx-angle: 360deg; }
}
@property --hrx-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

/* =====================================================================
   STRUCTURAL FIXES (all viewports)
   `.hrx-page section { padding: 50px }` is a broad rule; these keep it
   from cascading onto the *nested* company sections and guard against
   long words overflowing narrow cards.
   ===================================================================== */
/* .hrx-company is a <section> nested inside a block section — it must not
   inherit the 50px section padding (0-2-0 beats the 0-1-1 base rule). */
.hrx-page .hrx-company { padding: 0; }
/* anchor targets clear the sticky navbar when jumped to from the hero */
#hrx-hot, #hrx-jobs { scroll-margin-top: 88px; }
/* never let a long title/salary/company name push the layout sideways */
.hrx-hot-title,
.hrx-hot-company span,
.hrx-salary-amount,
.hrx-job-title,
.hrx-company-name,
.hrx-marquee-item { overflow-wrap: anywhere; }
.hrx-hot-company span { white-space: normal; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
/* ---------- tablet ---------- */
@media (max-width: 992px) {
    .hrx-page section { padding: 44px 30px; }
    .hrx-hot-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
}

/* ---------- small tablet / large phone ---------- */
@media (max-width: 860px) {
    /* section padding becomes the single horizontal gutter */
    .hrx-container { width: 100%; }
    .hrx-page section { padding: 40px 26px; }

    .hrx-hero-shape { display: none; }
    .hrx-hot-grid { grid-template-columns: 1fr; }
    .hrx-hot-head { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
    .hrx-hot-head .hrx-section-title { margin-top: 0.5rem; }
}

/* ---------- phone ---------- */
@media (max-width: 560px) {
    .hrx-page section { padding: 34px 16px; }
    .hrx-page .hrx-hero { padding: 46px 18px 54px; }
    .hrx-page .hrx-company { padding: 0; }

    /* hero */
    .hrx-hero::after { height: 44px; }
    .hrx-hero .hrx-eyebrow { font-size: 0.68rem; padding: 0.38rem 0.8rem; }
    .hrx-hero-title { font-size: clamp(1.75rem, 7.4vw, 2.5rem); margin-top: 1.1rem; }
    .hrx-hero-sub { font-size: 1rem; margin-top: 1.1rem; }
    .hrx-hero-cta { flex-direction: column; gap: 0.75rem; margin-top: 1.9rem; }
    .hrx-hero-cta .hrx-btn { width: 100%; }

    /* stats → tidy 2×2 grid instead of an awkward wrapping row */
    .hrx-hero-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem 1rem;
        margin-top: 2.4rem;
        padding-top: 1.9rem;
    }
    .hrx-stat { min-width: 0; }
    .hrx-stat-num { font-size: 2rem; }
    .hrx-stat-label { font-size: 0.8rem; color: #fff; }

    /* marquee */
    .hrx-marquee { padding: 0.75rem 0; }
    .hrx-marquee-item { font-size: 0.85rem; gap: 0.45rem; }
    .hrx-marquee-item::after { margin-left: 1.6rem; }
    .hrx-marquee-track { gap: 1.6rem; }

    /* section heads */
    .hrx-section-head { margin-bottom: 2rem; }
    .hrx-section-lead { font-size: 1rem; }
    .hrx-hot-head { margin-bottom: 1.8rem; }

    /* hot cards */
    .hrx-hot-card-inner { padding: 1.4rem 1.25rem 1.35rem; }
    .hrx-hot-title { font-size: 1.18rem; min-height: 0; margin-top: 0.55rem; }
    .hrx-hot-badge { top: 1.05rem; right: 1.05rem; }
    .hrx-hot-company { max-width: calc(100% - 64px); }
    .hrx-salary { padding: 0.75rem 0.9rem; }

    /* filter */
    .hrx-filter { padding: 1.2rem; }
    .hrx-chip-filter { gap: 0.5rem; }
    .hrx-pill label { padding: 0.5rem 0.9rem; font-size: 0.86rem; }
    .hrx-filter-actions { gap: 0.6rem; }
    .hrx-btn-filter, .hrx-btn-clear { flex: 1 1 auto; justify-content: center; }

    /* company header — drop the trailing rule line, shrink avatar */
    .hrx-company { margin-bottom: 2.2rem; }
    .hrx-company-head { gap: 0.7rem; margin-bottom: 1.1rem; }
    .hrx-company-avatar { width: 40px; height: 40px; font-size: 0.95rem; border-radius: 11px; }
    .hrx-company-name { font-size: 1.12rem; }
    .hrx-company-line { display: none; }

    /* job cards — single column */
    .hrx-jobs-grid { grid-template-columns: 1fr; gap: 16px; }
    .hrx-job-card { padding: 1.3rem 1.3rem 1.25rem; }
    .hrx-job-foot { padding-top: 1.1rem; }

    /* empty state */
    .hrx-empty { padding: 3rem 1.2rem; }

    /* CTA band — full width, calmer padding */
    .hrx-cta { width: 100%; padding: 2.5rem 1.4rem; border-radius: 22px; }
    .hrx-cta p { font-size: 1rem; }
    .hrx-cta-actions { flex-direction: column; gap: 0.75rem; margin-top: 1.9rem; }
    .hrx-cta-actions .hrx-btn { width: 100%; }

    /* horizontal reveals shift sideways → switch to vertical to avoid
       any chance of horizontal overflow on small screens */
    .hrx-anim [data-reveal="left"],
    .hrx-anim [data-reveal="right"] { transform: translateY(30px); }
}

/* ---------- small phone ---------- */
@media (max-width: 380px) {
    .hrx-page section { padding: 30px 13px; }
    .hrx-page .hrx-hero { padding: 40px 14px 48px; }
    .hrx-hero-title { font-size: 1.7rem; }
    .hrx-hero-stats { gap: 1.2rem 0.6rem; }
    .hrx-stat-num { font-size: 1.7rem; }
    .hrx-stat-label { font-size: 0.74rem; }
    .hrx-hot-card-inner { padding: 1.25rem 1.05rem; }
    .hrx-filter { padding: 1rem; }
    .hrx-pill label { padding: 0.46rem 0.8rem; font-size: 0.82rem; }
}

/* =====================================================================
   REDUCED MOTION
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
    .hrx-page *,
    .hrx-page *::before,
    .hrx-page *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    .hrx-hero-aurora, .hrx-hero-shape, .hrx-marquee-track { animation: none; }
}
