/* Home page in the React design. Prefixed with hx- so it does not clash with the existing home styles. */

:root {
    --hx-green: #0d8e45;
    --hx-green-dark: #056b33;
    --hx-green-light: #eff9f2;
    --hx-ink: #1f2d3d;
    --hx-muted: #6b7785;
    --hx-line: #e3e8ee;
    --hx-canvas: #f6f8f7;
}

/* ---------- Banner carousel ---------- */
.hx-hero {
    padding: 120px 16px 40px;
    background: var(--hx-canvas);
}

.hx-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    max-width: 1280px;
    margin: 0 auto;
}

.hx-main {
    position: relative;
    flex: 0 1 860px;
    margin: 0;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid var(--hx-line);
    background: #fff;
    padding: 12px;
    box-shadow: 0 18px 46px -20px rgba(15, 23, 42, 0.25);
}

.hx-main img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2.58 / 1;
    object-fit: cover;
    border-radius: 16px;
}

.hx-pillar {
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 999px;
    border: 6px solid #fff;
    background: #fff;
    box-shadow: 0 24px 60px -28px rgba(15, 23, 42, 0.45);
}

.hx-pillar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hx-pillar-near {
    width: 110px;
    height: 310px;
}

.hx-pillar-far {
    width: 78px;
    height: 230px;
    opacity: 0.6;
}

.hx-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}

.hx-round {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid var(--hx-line);
    background: #fff;
    color: var(--hx-ink);
    font-size: 16px;
    cursor: pointer;
}

.hx-round:hover {
    border-color: var(--hx-green);
    color: var(--hx-green-dark);
}

.hx-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hx-dot {
    position: relative;
    width: 8px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: #cfe8da;
    overflow: hidden;
    padding: 0;
    cursor: pointer;
}

.hx-dot-fill {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 0;
    background: var(--hx-green);
    border-radius: 999px;
}

@media (max-width: 1279px) {
    .hx-pillar-far {
        display: none;
    }
}

@media (max-width: 1023px) {
    .hx-pillar {
        display: none;
    }
    .hx-main {
        flex-basis: 100%;
    }
}

/* ---------- Sector cards ---------- */
.hx-sectors {
    max-width: 1140px;
    margin: 0 auto;
    padding: 64px 16px;
    text-align: center;
}

.hx-sectors h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--hx-ink);
    margin: 0 0 8px;
}

.hx-sectors .hx-lead {
    color: var(--hx-muted);
    margin: 0 0 40px;
}

.hx-sector-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .hx-sector-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.hx-sector {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 32px 24px;
    background: #fff;
    border: 1px solid var(--hx-line);
    border-radius: 18px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: box-shadow 0.25s ease;
}

.hx-sector:hover {
    box-shadow: 0 12px 28px -14px rgba(15, 23, 42, 0.25);
}

.hx-sector-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--hx-green-light);
    color: var(--hx-green-dark);
    font-size: 26px;
}

.hx-sector h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--hx-ink);
    margin: 0;
}

.hx-sector-count {
    font-size: 36px;
    font-weight: 800;
    color: var(--hx-ink);
    line-height: 1;
}

.hx-sector-note {
    color: var(--hx-muted);
    font-size: 14px;
    margin: 0;
}

.hx-outline {
    margin-top: auto;
    padding: 8px 16px;
    border: 1px solid var(--hx-line);
    border-radius: 10px;
    background: #fff;
    color: var(--hx-ink);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.hx-outline:hover {
    border-color: var(--hx-green);
    color: var(--hx-green-dark);
}

.hx-dark {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 12px;
    background: var(--hx-ink);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.hx-dark:hover {
    background: #2c3d52;
    color: #fff;
}

.hx-center {
    margin-top: 40px;
    text-align: center;
}

/* ---------- Labour market indicators block (KPI cards and chart cards) ---------- */
.stats-section {
    background: var(--hx-canvas);
    padding-top: 64px;
    padding-bottom: 64px;
}

.stats-section .stat-card {
    background: #fff;
    border: 1px solid var(--hx-line);
    border-left-width: 4px;
    border-radius: 16px;
    box-shadow: none;
    transition: box-shadow 0.25s ease;
}

.stats-section .stat-card:hover {
    box-shadow: 0 12px 28px -14px rgba(15, 23, 42, 0.25);
}

.stats-section .stat-card.primary { border-left-color: #2563eb; }
.stats-section .stat-card.danger { border-left-color: #dc2626; }
.stats-section .stat-card.success { border-left-color: var(--hx-green); }
.stats-section .stat-card.warning { border-left-color: #f59e0b; }

.stats-section .stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--hx-ink);
    line-height: 1.1;
}

.stats-section .stat-label {
    color: var(--hx-muted);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.stats-section .stat-trend {
    font-size: 0.8rem;
    font-weight: 600;
}

.stats-section .stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--hx-canvas);
}

.stats-section .chart-card {
    background: #fff;
    border: 1px solid var(--hx-line);
    border-radius: 18px;
    box-shadow: none;
    overflow: hidden;
}

.stats-section .chart-header {
    padding: 20px 20px 12px;
    border-bottom: 1px solid #eef1f4;
}

.stats-section .chart-header h6 {
    font-size: 15px;
    font-weight: 700;
    color: var(--hx-ink);
}

.stats-section .chart-header p {
    color: var(--hx-muted);
    font-size: 13px;
}

.stats-section .chart-card .card-body {
    padding: 16px 20px 20px !important;
}

.hx-map-wrap {
    display: flex;
    justify-content: center;
    height: auto !important;
    min-height: 380px;
    position: relative;
}

.hx-map-svg {
    width: 100%;
    max-width: 360px;
    height: auto;
}

/* ---------- How it works: feature tabs ---------- */
.hx-features {
    max-width: 1140px;
    margin: 0 auto;
    padding: 64px 16px;
}

.hx-features-head {
    text-align: center;
    margin-bottom: 40px;
}

.hx-features-head h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--hx-ink);
    margin: 12px 0 8px;
}

.hx-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--hx-green-light);
    color: var(--hx-green-dark);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hx-lead {
    color: var(--hx-muted);
    margin: 0;
}

.hx-features-panel {
    padding: 24px;
    background: #fff;
    border: 1px solid var(--hx-line);
    border-radius: 24px;
}

.hx-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.hx-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid var(--hx-line);
    border-radius: 999px;
    background: #fff;
    color: var(--hx-ink);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.hx-tab:hover {
    border-color: var(--hx-green);
    color: var(--hx-green-dark);
}

.hx-tab.is-active {
    background: var(--hx-ink);
    border-color: var(--hx-ink);
    color: #fff;
}

.hx-feature-card {
    display: grid;
    gap: 32px;
    align-items: center;
}

@media (min-width: 900px) {
    .hx-feature-card {
        grid-template-columns: 1fr 1fr;
        padding: 16px;
    }
}

.hx-feature-copy .hx-badge {
    margin-bottom: 4px;
}

.hx-feature-copy h3 {
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    font-weight: 800;
    color: var(--hx-ink);
    margin: 12px 0 10px;
}

.hx-feature-copy > p {
    color: var(--hx-muted);
    margin: 0;
}

.hx-feature-points {
    list-style: none;
    display: grid;
    gap: 8px;
    margin: 16px 0 20px;
    padding: 0;
}

.hx-feature-points li {
    position: relative;
    padding-left: 26px;
    color: var(--hx-ink);
    font-weight: 500;
}

.hx-feature-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--hx-green);
}

.hx-feature-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--hx-green-dark);
    font-weight: 700;
    text-decoration: none;
}

.hx-feature-link:hover {
    text-decoration: underline;
}

.hx-preview-card {
    padding: 20px;
    background: var(--hx-canvas);
    border: 1px solid var(--hx-line);
    border-radius: 18px;
}

.hx-preview-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    color: var(--hx-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hx-preview-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--hx-line);
    border-radius: 12px;
    color: var(--hx-ink);
    font-size: 14px;
    font-weight: 600;
}

.hx-preview-dot {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #d7dde3;
}

.hx-preview-dot.is-on {
    background: var(--hx-green);
}

/* ---------- Job vacancies cards ---------- */
.hx-jobs .job-box {
    background: #fff;
    border: 1px solid var(--hx-line);
    border-radius: 18px;
    box-shadow: none;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.hx-jobs .job-box:hover {
    box-shadow: 0 12px 28px -14px rgba(15, 23, 42, 0.25);
    transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
    .hx-jobs .job-box {
        transition: none;
    }
    .hx-jobs .job-box:hover {
        transform: none;
    }
}

/* ---------- Region map hover focus ---------- */
.hx-region {
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.hx-map-svg.is-hovering .hx-region {
    opacity: 0.45;
}

.hx-map-svg .hx-region.is-active {
    opacity: 1;
}

.hx-map-svg .hx-region.is-active path {
    stroke: var(--hx-ink);
    stroke-width: 2;
}
