/**
 * Portal Rekrutmen PT KAI — design tokens & komponen publik
 */
:root {
    --brand-primary: #E8730C;
    --brand-dark: #0B2447;
    --brand-mid: #19376D;
    --brand-light: #F5F7FA;
    --text-main: #1F2937;
    --text-muted: #6B7280;
    --success: #16A34A;
    --warning: #F59E0B;
    --danger: #DC2626;
    --radius: 12px;
    --shadow: 0 6px 24px rgba(11, 36, 71, 0.08);
    --shadow-hover: 0 10px 32px rgba(11, 36, 71, 0.12);
    --font-heading: 'Poppins', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --transition: 0.18s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-main);
    background-color: #f8fafc;
}

body.site-publik {
    min-height: 100vh;
}

.site-main {
    position: relative;
    z-index: 1;
}

.site-footer {
    position: relative;
    z-index: 1;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--brand-dark);
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 9999;
    padding: 0.75rem 1.25rem;
    background: var(--brand-dark);
    color: #fff;
    text-decoration: none;
    border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
    left: 0;
}

/* Navbar */
.site-navbar {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 0 rgba(11, 36, 71, 0.06);
    transition: box-shadow var(--transition);
}

.site-navbar.is-scrolled {
    box-shadow: var(--shadow);
}

.site-navbar .navbar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--brand-dark);
    font-size: 1.05rem;
}

.site-navbar .brand-logo {
    width: auto;
    height: 40px;
    max-width: 140px;
    object-fit: contain;
}

.site-navbar .nav-link {
    color: var(--text-main);
    font-weight: 500;
    padding: 0.5rem 0.85rem !important;
    border-radius: 8px;
    transition: color var(--transition), background var(--transition);
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link:focus-visible {
    color: var(--brand-primary);
}

.site-navbar .nav-link.active {
    color: var(--brand-primary);
    background: rgba(232, 115, 12, 0.08);
}

/* Tombol */
.btn-brand {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--brand-primary);
    --bs-btn-border-color: var(--brand-primary);
    --bs-btn-hover-bg: #d0660a;
    --bs-btn-hover-border-color: #c55f09;
    --bs-btn-focus-shadow-rgb: 232, 115, 12;
    font-weight: 600;
    border-radius: 10px;
    padding: 0.55rem 1.25rem;
    transition: transform var(--transition), box-shadow var(--transition);
}

.btn-brand:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(232, 115, 12, 0.35);
}

.btn-outline-brand {
    --bs-btn-color: var(--brand-dark);
    --bs-btn-border-color: var(--brand-dark);
    --bs-btn-hover-bg: var(--brand-dark);
    --bs-btn-hover-color: #fff;
    font-weight: 600;
    border-radius: 10px;
}

/* Section */
.section-padding {
    padding: 4rem 0;
}

@media (min-width: 768px) {
    .section-padding {
        padding: 5rem 0;
    }
}

.section-heading {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2.5rem;
}

.section-heading .eyebrow {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brand-primary);
    margin-bottom: 0.5rem;
}

.section-heading h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    margin-bottom: 0.75rem;
}

.section-heading p {
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Latar kereta animasi (seluruh situs publik) */
.latar-kereta {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.latar-kereta-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(25, 55, 109, 0.07), transparent 55%),
        radial-gradient(ellipse 60% 40% at 100% 100%, rgba(232, 115, 12, 0.05), transparent 50%),
        linear-gradient(180deg, #f8fafc 0%, #eef2f7 45%, #f5f7fa 100%);
}

.latar-kereta-relline {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12%;
    height: 3px;
    background: repeating-linear-gradient(
        90deg,
        rgba(11, 36, 71, 0.08) 0,
        rgba(11, 36, 71, 0.08) 40px,
        transparent 40px,
        transparent 56px
    );
    opacity: 0.6;
}

.latar-kereta-relline::before,
.latar-kereta-relline::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(11, 36, 71, 0.06);
}

.latar-kereta-relline::before {
    top: -14px;
}

.latar-kereta-relline::after {
    top: 14px;
}

.latar-kereta-scene {
    position: absolute;
    bottom: calc(12% - 4px);
    left: 0;
    width: max(320px, 28vw);
    color: rgba(11, 36, 71, 0.07);
    animation: keretaJalur 52s linear infinite;
    will-change: transform;
}

.latar-kereta-scene--balik {
    bottom: calc(6% - 2px);
    width: max(240px, 20vw);
    color: rgba(11, 36, 71, 0.045);
    animation: keretaJalurBalik 78s linear infinite;
}

.latar-kereta-svg {
    width: 100%;
    height: auto;
    display: block;
}

.latar-kereta-svg--kecil {
    opacity: 0.85;
}

@keyframes keretaJalur {
    0% {
        transform: translateX(-110%);
    }
    100% {
        transform: translateX(115vw);
    }
}

@keyframes keretaJalurBalik {
    0% {
        transform: translateX(110vw) scaleX(-1);
    }
    100% {
        transform: translateX(-120%) scaleX(-1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .latar-kereta-scene {
        animation: none;
        left: 10%;
        opacity: 0.5;
    }

    .latar-kereta-scene--balik {
        animation: none;
        left: auto;
        right: 8%;
    }
}

/* Hero beranda */
.hero-home {
    position: relative;
    padding: 2.5rem 0 3.5rem;
}

@media (min-width: 992px) {
    .hero-home {
        padding: 3.5rem 0 4.5rem;
    }
}

.hero-home-copy {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: calc(var(--radius) + 4px);
    padding: 1.75rem 1.5rem;
    box-shadow: var(--shadow);
}

@media (min-width: 992px) {
    .hero-home-copy {
        padding: 2.25rem 2rem;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--brand-mid);
    background: rgba(232, 115, 12, 0.12);
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    margin-bottom: 1rem;
}

.hero-home-title {
    font-size: clamp(1.85rem, 4.5vw, 2.75rem);
    line-height: 1.12;
    margin-bottom: 1rem;
}

.hero-highlight {
    display: block;
    color: var(--brand-primary);
    font-weight: 700;
}

.hero-home-lead {
    color: var(--text-muted);
    font-size: 1.0625rem;
    max-width: 34rem;
    margin-bottom: 0;
}

.hero-stat {
    text-align: center;
    padding: 0.75rem 0.5rem;
    border-radius: 10px;
    background: rgba(245, 247, 250, 0.9);
}

@media (min-width: 576px) {
    .hero-stat {
        text-align: left;
        padding-left: 0;
        background: transparent;
    }
}

.hero-stat-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--brand-dark);
    line-height: 1.2;
}

.hero-stat-value--sm {
    font-size: 1rem;
    font-weight: 600;
}

.hero-stat-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.hero-home-media {
    position: relative;
}

.hero-frame {
    border-radius: calc(var(--radius) + 6px);
    padding: 0.5rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(245, 247, 250, 0.85));
    box-shadow: var(--shadow-hover);
    border: 1px solid rgba(11, 36, 71, 0.06);
}

.hero-visual {
    border-radius: var(--radius);
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.hero-float-card {
    position: absolute;
    left: -0.5rem;
    bottom: 1.25rem;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(11, 36, 71, 0.06);
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.hero-float-card i {
    font-size: 1.5rem;
    color: var(--brand-primary);
}

.hero-float-card strong {
    display: block;
    color: var(--brand-dark);
    font-size: 0.875rem;
}

.section-surface {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(6px);
    border-block: 1px solid rgba(11, 36, 71, 0.04);
}

.section-head-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .section-head-row {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }
}

.section-heading--left {
    max-width: 560px;
    margin-left: 0;
    margin-right: auto;
}

.card-feature {
    padding: 1.5rem;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(11, 36, 71, 0.06);
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}

.card-feature:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.card-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(232, 115, 12, 0.12);
    color: var(--brand-primary);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.alur-panel {
    background: rgba(255, 255, 255, 0.85);
    border-radius: var(--radius);
    padding: 1.5rem 1.25rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(11, 36, 71, 0.05);
}

@media (min-width: 768px) {
    .alur-panel {
        padding: 2rem 2.5rem;
    }
}

.card-news {
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(11, 36, 71, 0.06);
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}

.card-news:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.card-news-body {
    padding: 1.35rem 1.25rem;
}

.card-news-date {
    font-size: 0.75rem;
    color: var(--brand-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.card-news-title {
    margin: 0.5rem 0;
}

.card-news-excerpt {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.card-news-link {
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--brand-mid);
}

.cta-band--enhanced {
    text-align: left;
    padding: 2rem 1.75rem;
}

@media (min-width: 992px) {
    .cta-band--enhanced {
        padding: 2.5rem 2.75rem;
    }

    .cta-band--enhanced h2 {
        margin-bottom: 0.5rem;
    }
}

/* Kartu posisi */
.kartu-posisi {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    height: 100%;
    transition: transform var(--transition), box-shadow var(--transition);
}

.kartu-posisi:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.kartu-posisi .ikon-posisi {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(232, 115, 12, 0.12);
    color: var(--brand-primary);
    font-size: 1.35rem;
}

.kartu-posisi .card-title {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.kartu-posisi .card-text {
    color: var(--text-muted);
    font-size: 0.9375rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kartu-posisi .btn {
    width: 100%;
}

@media (min-width: 576px) {
    .kartu-posisi .btn {
        width: auto;
    }
}

/* Stepper */
.alur-stepper {
    display: flex;
    flex-direction: column;
    gap: 0;
    counter-reset: alur;
}

@media (min-width: 768px) {
    .alur-stepper {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        gap: 1rem;
    }
}

.alur-stepper .langkah {
    flex: 1;
    position: relative;
    padding: 0 0 1.5rem 3rem;
    counter-increment: alur;
}

@media (min-width: 768px) {
    .alur-stepper .langkah {
        padding: 0 1rem;
        text-align: center;
    }
}

.alur-stepper .langkah::before {
    content: counter(alur);
    position: absolute;
    left: 0;
    top: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--brand-primary);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .alur-stepper .langkah::before {
        position: relative;
        margin: 0 auto 1rem;
        left: auto;
    }
}

.alur-stepper .langkah h3 {
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.alur-stepper .langkah p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

/* Stat strip */
.stat-strip {
    background: var(--brand-dark);
    color: #fff;
    border-radius: var(--radius);
    padding: 1.5rem;
}

.stat-strip .stat-item {
    text-align: center;
    padding: 0.75rem;
}

.stat-strip .stat-value {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--brand-primary);
}

.stat-strip .stat-label {
    font-size: 0.875rem;
    opacity: 0.85;
}

/* CTA */
.cta-band {
    background: linear-gradient(120deg, var(--brand-mid), var(--brand-dark));
    color: #fff;
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    text-align: center;
}

.cta-band h2 {
    color: #fff;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.cta-band p {
    opacity: 0.9;
    max-width: 36rem;
    margin: 0 auto 1.5rem;
}

/* Footer */
.site-footer {
    background: var(--brand-dark);
    color: rgba(255, 255, 255, 0.85);
    padding: 3rem 0 1.5rem;
    font-size: 0.9375rem;
}

.site-footer h3,
.site-footer .footer-title {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color var(--transition);
}

.site-footer a:hover {
    color: var(--brand-primary);
}

.site-footer .disclaimer {
    font-size: 0.8125rem;
    opacity: 0.65;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    padding-top: 1.25rem;
}

/* Alert flash */
.alert-portal {
    border-radius: var(--radius);
    border: none;
}

/* Focus visible */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.form-control:focus-visible {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
}

/* Pagination */
.pagination-portal .page-link {
    border-radius: 8px;
    margin: 0 2px;
    color: var(--brand-dark);
}

.pagination-portal .page-item.active .page-link {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
}

.page-hero h1 {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
}

.page-hero--glass {
    position: relative;
    border-bottom: 1px solid rgba(11, 36, 71, 0.06);
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(10px);
}

.page-hero--jobs::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-mid));
    opacity: 0.85;
}

/* Scroll reveal (semua halaman publik) */
.scroll-reveal,
.scroll-reveal-child {
    opacity: 0;
    transform: translate3d(0, 32px, 0);
    transition:
        opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: calc(var(--reveal-index, 0) * 0.07s);
    will-change: opacity, transform;
}

.scroll-reveal-child {
    transform: translate3d(0, 24px, 0);
    transition-delay: calc(var(--stagger-index, 0) * 0.07s);
}

.scroll-reveal.is-revealed,
.scroll-reveal-child.is-revealed {
    opacity: 1;
    transform: none;
    will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
    .scroll-reveal,
    .scroll-reveal-child {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Halaman daftar lowongan */
.jobs-page {
    padding-top: 1.75rem !important;
    padding-bottom: 3rem !important;
}

@media (min-width: 768px) {
    .jobs-page {
        padding-top: 2.25rem !important;
        padding-bottom: 4rem !important;
    }
}

.jobs-panel {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(11, 36, 71, 0.07);
    border-radius: calc(var(--radius) + 4px);
    box-shadow: var(--shadow);
    padding: 1.15rem 1.15rem 1.25rem;
    margin-bottom: 1.75rem;
}

@media (min-width: 768px) {
    .jobs-panel {
        padding: 1.35rem 1.5rem 1.5rem;
        margin-bottom: 2rem;
    }
}

.jobs-panel-top {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.15rem;
    padding-bottom: 1.15rem;
    border-bottom: 1px solid rgba(11, 36, 71, 0.08);
}

@media (min-width: 768px) {
    .jobs-panel-top {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 1.25rem;
    }
}

.jobs-panel-intro {
    min-width: 0;
}

.jobs-panel-actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    width: 100%;
}

@media (min-width: 576px) {
    .jobs-panel-actions {
        flex-direction: row;
        align-items: center;
        width: auto;
        flex-shrink: 0;
    }
}

.jobs-total-badge {
    align-items: center;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--brand-mid);
    background: rgba(25, 55, 109, 0.08);
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    white-space: nowrap;
}

.jobs-panel-cta {
    width: 100%;
    justify-content: center;
    white-space: nowrap;
}

@media (min-width: 576px) {
    .jobs-panel-cta {
        width: auto;
    }
}

.jobs-search-row {
    min-width: 0;
}

.jobs-search-label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--brand-dark);
    margin-bottom: 0.5rem;
}

.jobs-search-field {
    position: relative;
    display: flex;
    align-items: center;
}

.jobs-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    z-index: 2;
    line-height: 1;
}

.jobs-search-input {
    width: 100%;
    min-height: 3rem;
    padding: 0.65rem 2.75rem 0.65rem 2.75rem !important;
    border-radius: 10px !important;
    border: 1px solid rgba(11, 36, 71, 0.12) !important;
    font-size: 1rem;
}

.jobs-search-input:focus {
    border-color: var(--brand-primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(232, 115, 12, 0.15) !important;
}

.jobs-search-clear {
    position: absolute;
    right: 0.35rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    border: none;
    background: rgba(11, 36, 71, 0.06);
    color: var(--text-muted);
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}

.jobs-search-clear:hover {
    background: rgba(232, 115, 12, 0.15);
    color: var(--brand-dark);
}

.jobs-search-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 0.65rem;
}

@media (min-width: 768px) {
    .jobs-search-footer {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
    }
}

.jobs-search-hint {
    flex: 1;
    min-width: 0;
}

.jobs-search-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.jobs-chip {
    display: inline-flex;
    align-items: center;
    font-size: 0.8125rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(232, 115, 12, 0.1);
    color: var(--brand-dark);
}

.jobs-reset {
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--brand-mid);
}

.jobs-results-title {
    color: var(--brand-dark);
    font-family: var(--font-heading);
}

.jobs-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius);
    border: 1px dashed rgba(11, 36, 71, 0.12);
    box-shadow: var(--shadow);
}

.jobs-empty-icon {
    font-size: 2.5rem;
    color: var(--brand-primary);
    margin-bottom: 1rem;
    opacity: 0.85;
}

.jobs-cta-mini-inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius);
    background: linear-gradient(120deg, rgba(11, 36, 71, 0.04), rgba(232, 115, 12, 0.08));
    border: 1px solid rgba(11, 36, 71, 0.06);
}

@media (min-width: 576px) {
    .jobs-cta-mini-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.kartu-posisi-badge {
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: right;
    color: var(--brand-mid);
    background: rgba(25, 55, 109, 0.08);
    padding: 0.35rem 0.5rem;
    border-radius: 8px;
    max-width: 58%;
    word-break: break-word;
}

.kartu-posisi-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

@media (max-width: 575.98px) {
    .kartu-posisi-badge {
        max-width: 100%;
        text-align: left;
        align-self: flex-start;
    }

    .kartu-posisi-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

.jobs-grid {
    margin-top: 0.25rem;
}

.jobs-empty {
    margin-bottom: 1.5rem;
}

.daftar-baris li + li {
    margin-top: 0.35rem;
}

.konten-prose p:last-child {
    margin-bottom: 0;
}

.peta-placeholder {
    min-height: 280px;
    background: var(--brand-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border: 1px dashed rgba(11, 36, 71, 0.15);
}

/* Formulir pendaftaran */
.apply-page {
    margin-top: -1.25rem;
}

.apply-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: sticky;
    top: 5.5rem;
}

@media (max-width: 991.98px) {
    .apply-sidebar {
        position: static;
    }
}

.apply-sidebar-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(11, 36, 71, 0.07);
    border-radius: var(--radius);
    padding: 1.25rem 1.35rem;
    box-shadow: var(--shadow);
}

.apply-sidebar-card--accent {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(245, 247, 250, 0.9));
}

.apply-sidebar-card--highlight {
    border-color: rgba(232, 115, 12, 0.35);
    background: rgba(232, 115, 12, 0.08);
}

.apply-sidebar-title {
    font-family: var(--font-heading);
    color: var(--brand-dark);
    margin-bottom: 1rem;
}

.apply-steps {
    list-style: none;
    padding: 0;
    margin: 0;
}

.apply-steps-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    padding: 0.5rem 0;
}

.apply-steps-item span {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(11, 36, 71, 0.08);
    color: var(--brand-dark);
}

.apply-steps-item.is-active {
    color: var(--brand-dark);
    font-weight: 600;
}

.apply-steps-item.is-active span {
    background: var(--brand-primary);
    color: #fff;
}

.apply-checklist {
    padding-left: 1.1rem;
    color: var(--text-muted);
}

.apply-checklist li + li {
    margin-top: 0.35rem;
}

.apply-form-section {
    border: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.apply-form-legend {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--brand-dark);
    margin-bottom: 0.75rem;
    float: none;
    width: 100%;
}

.apply-form-legend-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(232, 115, 12, 0.12);
    color: var(--brand-primary);
}

.apply-form-panel {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(11, 36, 71, 0.07);
    border-radius: var(--radius);
    padding: 1.25rem 1.35rem;
    box-shadow: var(--shadow);
}

.apply-form-panel--consent {
    background: rgba(245, 247, 250, 0.85);
}

.apply-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--brand-dark);
}

.apply-input,
.apply-form .form-select.apply-input {
    border-radius: 10px;
    border-color: rgba(11, 36, 71, 0.12);
    padding: 0.65rem 0.85rem;
}

.apply-input:focus,
.apply-form .form-select.apply-input:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 0.2rem rgba(232, 115, 12, 0.12);
}

.apply-input-addon {
    background: rgba(245, 247, 250, 0.95);
    border-color: rgba(11, 36, 71, 0.12);
    color: var(--text-muted);
}

.apply-upload {
    position: relative;
    border: 2px dashed rgba(11, 36, 71, 0.15);
    border-radius: var(--radius);
    background: rgba(245, 247, 250, 0.6);
    transition: border-color var(--transition), background var(--transition);
    cursor: pointer;
}

.apply-upload:hover,
.apply-upload.is-dragover {
    border-color: var(--brand-primary);
    background: rgba(232, 115, 12, 0.06);
}

.apply-upload.has-file {
    border-color: rgba(22, 163, 74, 0.45);
    background: rgba(22, 163, 74, 0.06);
}

.apply-upload.is-invalid-wrap {
    border-color: var(--danger);
}

.apply-upload-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.apply-upload-body {
    pointer-events: none;
    text-align: center;
    padding: 2rem 1.25rem;
}

.apply-upload-icon {
    font-size: 2rem;
    color: var(--brand-primary);
    margin-bottom: 0.5rem;
    display: block;
}

.apply-upload-title {
    font-weight: 600;
    color: var(--brand-dark);
}

.apply-consent {
    padding-left: 0.15rem;
}

.apply-consent .form-check-label {
    font-size: 0.9375rem;
    line-height: 1.55;
}

.apply-form-actions {
    margin-top: 0.5rem;
    padding: 1.25rem 0 0;
    border-top: 1px solid rgba(11, 36, 71, 0.08);
    text-align: center;
}

@media (min-width: 768px) {
    .apply-form-actions {
        text-align: left;
    }
}

.apply-form-note {
    max-width: 36rem;
}

/* Fase 9 — toast, empty state, fallback flash */
.flash-toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1090;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: min(420px, calc(100vw - 2rem));
    pointer-events: none;
}

.flash-toast-container .flash-toast {
    pointer-events: auto;
    box-shadow: var(--shadow);
}

html.js-enabled .flash-fallback {
    display: none !important;
}

.empty-state {
    text-align: center;
    padding: 2.5rem 1.25rem;
    background: #fff;
    border-radius: var(--radius);
    border: 1px dashed rgba(11, 36, 71, 0.12);
}

.empty-state-icon {
    font-size: 2.25rem;
    color: var(--brand-primary);
    opacity: 0.85;
    margin-bottom: 0.75rem;
}

.empty-state-title {
    color: var(--brand-dark);
}

.empty-state-text {
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
}

/* Bukti / sertifikat pendaftaran */
.sertifikat-pendaftaran {
    margin: 0 auto;
}

.sertifikat-pendaftaran__outer {
    padding: 12px;
    background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand-mid) 55%, var(--brand-primary) 100%);
    border-radius: calc(var(--radius) + 6px);
    box-shadow: var(--shadow);
}

.sertifikat-pendaftaran__inner {
    background: #fff;
    border-radius: var(--radius);
    padding: 2rem 1.75rem 1.75rem;
    position: relative;
    border: 2px solid rgba(11, 36, 71, 0.08);
}

@media (min-width: 768px) {
    .sertifikat-pendaftaran__inner {
        padding: 2.5rem 2.75rem 2rem;
    }
}

.sertifikat-pendaftaran__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.25rem;
    text-align: left;
    margin-bottom: 1.5rem;
}

.sertifikat-pendaftaran__logo {
    height: 48px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
}

.sertifikat-pendaftaran__instansi {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 600;
}

.sertifikat-pendaftaran__judul {
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 3vw, 1.65rem);
    font-weight: 700;
    color: var(--brand-dark);
    margin: 0.15rem 0 0;
    line-height: 1.25;
}

.sertifikat-pendaftaran__ribbon {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--success);
    background: rgba(22, 163, 74, 0.1);
    border: 1px solid rgba(22, 163, 74, 0.25);
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    margin-bottom: 1.25rem;
}

.sertifikat-pendaftaran__label-kode {
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.sertifikat-pendaftaran__kode {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4.5vw, 2.15rem);
    font-weight: 700;
    color: var(--brand-primary);
    letter-spacing: 0.04em;
    margin-bottom: 1.25rem;
    word-break: break-word;
}

.sertifikat-pendaftaran__garis {
    height: 3px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-mid), var(--brand-dark));
    border-radius: 2px;
    margin-bottom: 1.35rem;
    opacity: 0.85;
}

.sertifikat-pendaftaran__data {
    margin: 0;
}

.sertifikat-pendaftaran__baris {
    display: grid;
    grid-template-columns: minmax(7rem, 34%) 1fr;
    gap: 0.35rem 1rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(11, 36, 71, 0.06);
    font-size: 0.9375rem;
}

.sertifikat-pendaftaran__baris:last-of-type {
    border-bottom: none;
}

.sertifikat-pendaftaran__baris dt {
    color: var(--text-muted);
    font-weight: 500;
    margin: 0;
}

.sertifikat-pendaftaran__baris dd {
    margin: 0;
    color: var(--text-main);
    font-weight: 500;
}

.sertifikat-pendaftaran__catatan {
    margin: 1.35rem 0 0;
    padding-top: 1rem;
    border-top: 1px dashed rgba(11, 36, 71, 0.12);
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.5;
}

/* ——— Publik: mobile app shell (< lg) ——— */
@media (max-width: 991.98px) {
    .site-publik--app {
        padding-bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px));
    }

    .site-navbar {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .site-navbar-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
    }

    .site-navbar-brand {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        min-width: 0;
        margin-right: auto;
    }

    .site-navbar-brand-text {
        font-size: 0.9375rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 12rem;
    }

    .site-navbar .brand-logo {
        height: 34px;
        max-width: 110px;
    }

    .site-navbar-menu-btn {
        flex-shrink: 0;
        border-color: rgba(11, 36, 71, 0.12);
    }

    .section-padding {
        padding: 2.75rem 0;
    }

    .hero-home {
        padding: 1.5rem 0 2.25rem;
    }

    .hero-home-copy {
        padding: 1.25rem 1.1rem;
    }

    .hero-home-title {
        font-size: clamp(1.55rem, 6vw, 2rem);
    }

    .hero-home-lead {
        font-size: 0.9375rem;
    }

    .hero-home-cta .btn-lg {
        width: 100%;
        padding-top: 0.65rem;
        padding-bottom: 0.65rem;
    }

    .hero-stat {
        padding: 0.65rem 0.35rem;
    }

    .hero-stat-value {
        font-size: 1.35rem;
    }

    .hero-stat-label {
        font-size: 0.6875rem;
        line-height: 1.25;
    }

    .section-head-row .btn {
        width: 100%;
    }

    .site-footer {
        padding: 2.25rem 0 1.25rem;
        text-align: center;
    }

    .site-footer .row > [class*="col-"] {
        text-align: center;
    }

    .site-footer ul {
        padding-left: 0;
    }

    .page-hero--glass {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }

    .page-hero h1 {
        font-size: 1.35rem;
    }

    .breadcrumb {
        font-size: 0.75rem;
        flex-wrap: wrap;
    }

    .flash-toast-container--portal {
        top: 0.65rem;
        left: 0.65rem;
        right: 0.65rem;
        max-width: none;
    }

    .jobs-panel-top {
        flex-direction: column;
        align-items: stretch !important;
    }

    .jobs-panel-actions {
        width: 100%;
        flex-direction: column;
    }

    .jobs-panel-actions .btn {
        width: 100%;
    }

    .latar-kereta-scene {
        opacity: 0.35;
    }
}

.site-nav-offcanvas {
    width: min(320px, 92vw);
}

.site-nav-offcanvas__head {
    border-bottom: 1px solid rgba(11, 36, 71, 0.08);
}

.site-nav-mobile-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.site-nav-mobile-link {
    display: block;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.site-nav-mobile-link:hover,
.site-nav-mobile-link:focus-visible {
    background: rgba(232, 115, 12, 0.08);
    color: var(--brand-primary);
}

.site-nav-mobile-link.is-active {
    background: rgba(232, 115, 12, 0.12);
    color: var(--brand-dark);
}

.site-mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(11, 36, 71, 0.1);
    box-shadow: 0 -4px 24px rgba(11, 36, 71, 0.08);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.site-mobile-nav__link {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    min-height: 3.5rem;
    padding: 0.35rem 0.25rem;
    border: none;
    background: transparent;
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
}

.site-mobile-nav__link i {
    font-size: 1.2rem;
    line-height: 1;
}

.site-mobile-nav__link.is-active,
.site-mobile-nav__link--accent.is-active {
    color: var(--brand-primary);
}

.site-mobile-nav__link--accent:not(.is-active) {
    color: var(--brand-mid);
}

.site-mobile-nav__link--menu {
    color: var(--brand-dark);
}

@media (max-width: 575.98px) {
    .container {
        padding-left: max(0.85rem, env(safe-area-inset-left));
        padding-right: max(0.85rem, env(safe-area-inset-right));
    }

    .cta-band .btn {
        width: 100%;
    }

    .card-feature,
    .card-news-body {
        padding: 1.15rem;
    }
}

@media print {
    @page {
        size: A4 portrait;
        margin: 12mm;
    }

    body.site-publik {
        background: #fff !important;
    }

    .skip-link,
    .site-navbar,
    .site-mobile-nav,
    .site-nav-offcanvas,
    .site-footer,
    .site-train-bg,
    .latar-kereta,
    .flash-toast-container,
    .flash-fallback,
    .success-no-print,
    #debug-icon,
    #debug-bar,
    #debug-bar-link,
    #debug-icon-link,
    #debug-hot-reload,
    script[id^="debugbar"] {
        display: none !important;
    }

    .site-main {
        padding: 0 !important;
    }

    .success-daftar-section {
        padding: 0 !important;
    }

    .success-daftar-section .container {
        max-width: 100% !important;
        padding: 0 !important;
    }

    .sertifikat-pendaftaran__outer {
        padding: 8px;
        box-shadow: none;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .sertifikat-pendaftaran__inner {
        border-width: 1px;
        page-break-inside: avoid;
    }
}
