:root {
    --ink: #0b1220;
    --ink-soft: #4b5568;
    --paper: #f4f6f9;
    --card: #ffffff;
    --line: #e7ebf1;
    --brand: #12233f;
    --brand-mid: #1a335c;
    --accent: #0f766e;
    --accent-soft: #ccfbf1;
    --accent-hover: #0d5f59;
    --focus: #14b8a6;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 10px 28px rgba(15, 23, 42, 0.06);
    --shadow-hover: 0 8px 28px rgba(15, 23, 42, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Plus Jakarta Sans", "Segoe UI", Roboto, sans-serif;
    background: var(--paper);
    color: var(--ink);
    line-height: 1.55;
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background:
        radial-gradient(900px 420px at 100% -10%, rgba(20, 184, 166, 0.08), transparent 55%),
        radial-gradient(700px 380px at -10% 20%, rgba(37, 99, 235, 0.06), transparent 50%);
}

a {
    text-decoration: none;
}

:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 3px;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 40;
    padding: 0.4rem 0;
    background: rgba(11, 18, 32, 0.92) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: #fff !important;
    font-weight: 700;
    letter-spacing: -0.02em;
    font-size: 0.95rem;
}

.brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #14b8a6, #0f766e);
    color: #fff;
    font-size: 0.85rem;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.82) !important;
    font-weight: 560;
    font-size: 0.88rem;
    padding: 0.45rem 0.85rem !important;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease;
}

.navbar-nav .nav-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.08);
}

.navbar.navbar-dark .navbar-nav .nav-link.btn-register {
    background: #fff !important;
    color: #0b1220 !important;
    border: 0;
    padding: 0.45rem 1.05rem !important;
    font-weight: 700;
}

.navbar.navbar-dark .navbar-nav .nav-link.btn-register:hover {
    background: #ccfbf1 !important;
    color: #0f766e !important;
}

.hero-section {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 1.35rem 0 2.05rem;
    background:
        radial-gradient(720px 240px at 18% -30%, rgba(45, 212, 191, 0.38), transparent 58%),
        radial-gradient(560px 220px at 88% 0%, rgba(251, 191, 36, 0.22), transparent 52%),
        linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 48%, #0f766e 100%);
    text-align: center;
}

.hero-section::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, 0.16) 0.8px, transparent 0.9px);
    background-size: 22px 22px;
    opacity: 0.25;
}

.hero-title {
    position: relative;
    z-index: 1;
    margin: 0 auto 0.4rem;
    max-width: none;
    font-size: clamp(1.4rem, 2.8vw, 1.85rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    white-space: nowrap;
}

.hero-title span {
    color: #fde68a;
}

.hero-subtitle {
    position: relative;
    z-index: 1;
    margin: 0 auto;
    max-width: 36rem;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(0.9rem, 1.5vw, 1.02rem);
    font-weight: 500;
    line-height: 1.45;
}

.main-container {
    padding-bottom: 1rem;
}

.filters-section {
    position: relative;
    z-index: 3;
    margin: -1.15rem auto 0.85rem;
    max-width: 1140px;
    padding: 0.7rem 0.85rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.form-label {
    margin-bottom: 0.28rem;
    color: var(--ink-soft);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.field-control {
    position: relative;
}

.field-control i {
    position: absolute;
    top: 50%;
    left: 0.85rem;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.8rem;
    pointer-events: none;
}

.form-control,
.form-select {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fbfcfd;
    padding: 0.55rem 0.8rem;
    font-size: 0.9rem;
    color: var(--ink);
}

.field-control .form-control {
    padding-left: 2.15rem;
}

.form-control:focus,
.form-select:focus {
    border-color: #99f6e4;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.btn-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    border: 0;
    border-radius: 12px;
    background: var(--ink);
    color: #fff;
    padding: 0.55rem 1rem;
    font-size: 0.9rem;
    font-weight: 700;
    transition: background 0.18s ease, transform 0.18s ease;
}

.btn-filter:hover {
    background: var(--brand-mid);
    color: #fff;
    transform: translateY(-1px);
}

.results-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin: 0 0 0.7rem;
}

.results-bar h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 750;
    letter-spacing: -0.02em;
}

.results-bar span {
    color: var(--ink-soft);
    font-weight: 500;
}

.results-clear {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 700;
}

.results-clear:hover {
    text-decoration: underline;
}

.job-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: calc(100% - 0.9rem);
    margin-bottom: 0.9rem;
    padding: 1.05rem 1.1rem 0.95rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.job-card:hover {
    transform: translateY(-3px);
    border-color: #d5deea;
    box-shadow: var(--shadow-hover);
}

.job-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.55rem;
}

.job-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 750;
    letter-spacing: -0.025em;
    line-height: 1.3;
    color: var(--ink);
}

.job-subtitle {
    margin: 0 0 0.85rem;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.job-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.85rem;
}

.job-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    padding: 0.28rem 0.62rem;
    border-radius: 999px;
    background: #f3f6fa;
    color: #334155;
    font-size: 0.72rem;
    font-weight: 650;
}

.job-badge i {
    font-size: 0.68rem;
    color: #64748b;
}

.job-description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 0.75rem;
    color: var(--ink-soft);
    font-size: 0.86rem;
    line-height: 1.5;
    min-height: 2.6em;
}

.job-salary {
    margin: auto 0 0.85rem;
    color: var(--ink);
    font-size: 1.02rem;
    font-weight: 780;
    letter-spacing: -0.02em;
}

.job-salary.muted {
    color: var(--ink-soft);
    font-weight: 650;
    font-size: 0.92rem;
}

.job-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--line);
}

.job-date {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #64748b;
    font-size: 0.75rem;
}

.btn-apply {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 0;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    padding: 0.45rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 750;
    white-space: nowrap;
    transition: background 0.18s ease, transform 0.18s ease;
}

.btn-apply:hover {
    background: var(--accent-hover);
    color: #fff;
    transform: translateY(-1px);
}

.info-message {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin: 0 auto 1.2rem;
    max-width: 1140px;
    padding: 1rem 1.15rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    text-align: left;
    box-shadow: var(--shadow);
}

.info-message i {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 1rem;
    margin: 0;
}

.info-message.is-ok i {
    background: #dcfce7;
    color: #166534;
}

.info-message h4 {
    margin: 0 0 0.15rem;
    font-size: 0.98rem;
    font-weight: 750;
}

.info-message p {
    margin: 0 0 0.7rem;
    color: var(--ink-soft);
    font-size: 0.88rem;
}

.info-message .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 0;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    padding: 0.42rem 0.9rem;
    font-size: 0.82rem;
    font-weight: 700;
}

.info-message .btn:hover {
    background: var(--brand-mid);
    color: #fff;
}

.empty-state {
    padding: 3.2rem 1rem;
    text-align: center;
    color: var(--ink-soft);
}

.empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--accent);
    font-size: 1.4rem;
}

.empty-state h4 {
    margin: 0 0 0.3rem;
    color: var(--ink);
    font-weight: 750;
}

.footer {
    margin-top: 2rem;
    padding: 1.1rem 0 1.3rem;
    border-top: 1px solid var(--line);
    color: #64748b;
    font-size: 0.8rem;
    text-align: center;
    background: transparent;
}

.fade-in {
    animation: rise 0.45s ease both;
}

.col-lg-6:nth-child(2) .fade-in,
.col-xl-4:nth-child(2) .job-card { animation-delay: 0.04s; }
.col-xl-4:nth-child(3) .job-card { animation-delay: 0.08s; }
.col-xl-4:nth-child(4) .job-card { animation-delay: 0.12s; }

@keyframes rise {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 1.1rem 0 1.85rem;
        text-align: center;
    }

    .hero-title {
        max-width: none;
        white-space: normal;
        font-size: clamp(1.28rem, 6.4vw, 1.55rem);
    }

    .filters-section {
        margin-top: -1rem;
        padding: 0.75rem;
    }

    .job-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-apply {
        justify-content: center;
    }

    .info-message {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .fade-in,
    .job-card,
    .btn-apply,
    .btn-hero-primary {
        animation: none;
        transition: none;
    }
}
