@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
    --navy: #071E3E;
    --navy-2: #0E2C52;
    --navy-soft: #123566;
    --gold: #CBA135;
    --gold-light: #E4C46B;
    --gold-dark: #9C7A22;
    --yellow: #FDD100;
    --ink: #12192B;
    --paper: #F6F5EF;
    --panel: #FFFFFF;
    --line: #E1E0D8;
    --line-navy: #D8DCE6;
    --muted: #5C6472;
    --danger: #A6362C;
    --radius: 8px;
    --shadow-sm: 0 1px 2px rgba(7,30,62,0.07);
    --shadow-md: 0 8px 24px rgba(7,30,62,0.12);
    --ease: cubic-bezier(.4,0,.2,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Source Sans 3', sans-serif;
    background: var(--paper);
    color: var(--ink);
    line-height: 1.55;
}

h1, h2, h3, h4 {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 0.5em;
    color: var(--navy);
}

a { color: var(--navy-soft); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; }

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

::selection { background: var(--gold-light); color: var(--navy); }

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
    background: var(--navy);
    color: #F6F5EF;
    padding: 16px 0;
    border-bottom: 3px solid var(--gold);
    position: sticky;
    top: 0;
    z-index: 40;
    transition: box-shadow .25s var(--ease);
}
.site-header.is-scrolled {
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: inherit;
}
.brand:hover { text-decoration: none; }
.brand-logo {
    height: 44px;
    width: auto;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.35));
}
.brand-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.brand-name {
    font-family: 'Fraunces', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.2px;
}
.brand-tagline {
    font-size: 0.82rem;
    color: #B9C2D6;
}
.site-header nav { display: flex; align-items: center; gap: 22px; }
.site-header nav a {
    position: relative;
    color: #E7EAF2;
    font-size: 0.95rem;
    padding-bottom: 3px;
}
.site-header nav a::after {
    content: '';
    position: absolute;
    left: 0; right: 100%;
    bottom: 0;
    height: 2px;
    background: var(--gold);
    transition: right .25s var(--ease);
}
.site-header nav a:hover { text-decoration: none; color: #fff; }
.site-header nav a:hover::after { right: 0; }

/* ---------- Hero / pencarian ---------- */
.hero {
    position: relative;
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy) 55%, var(--paper) 55%);
    padding: 48px 0 0;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(203,161,53,0.16) 0%, rgba(203,161,53,0) 70%);
    pointer-events: none;
}
.hero-inner {
    position: relative;
    padding-bottom: 40px;
    color: #F3F1E7;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--gold-light);
    margin-bottom: 10px;
}
.hero-eyebrow svg { width: 14px; height: 14px; }
.hero h1 {
    font-size: clamp(1.7rem, 3.2vw, 2.5rem);
    max-width: 20ch;
    margin-bottom: 8px;
    color: #fff;
}
.hero p.lead {
    color: #C7CEDD;
    max-width: 55ch;
    margin-bottom: 26px;
}

.search-form {
    background: var(--panel);
    border: 1px solid var(--line-navy);
    border-radius: var(--radius);
    padding: 16px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 10px;
    box-shadow: var(--shadow-md);
    transform: translateY(28px);
}
@media (max-width: 760px) {
    .search-form { grid-template-columns: 1fr; transform: none; }
    .hero { background: linear-gradient(180deg, var(--navy) 0%, var(--navy) 100%, var(--paper) 100%); }
}
.search-form input[type="text"],
.search-form select {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 5px;
    font-size: 0.95rem;
    font-family: inherit;
    background: #fff;
    color: var(--ink);
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.search-form input[type="text"]:focus,
.search-form select:focus {
    border-color: var(--gold-dark);
    box-shadow: 0 0 0 3px rgba(203,161,53,0.18);
    outline: none;
}
.search-form button {
    background: var(--gold);
    color: var(--navy);
    border: none;
    border-radius: 5px;
    padding: 11px 24px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background .2s var(--ease), transform .15s var(--ease);
}
.search-form button:hover { background: var(--gold-light); }
.search-form button:active { transform: translateY(1px); }

/* ---------- Daftar lowongan ---------- */
main.container { padding-top: 44px; }

.result-meta {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 0.92rem;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
}

.job-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
}

.job-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius);
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    color: inherit;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.job-card:hover {
    text-decoration: none;
    border-color: var(--navy-soft);
    border-left-color: var(--navy);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.job-card h3 { font-size: 1.15rem; margin-bottom: 4px; }
.job-card .perusahaan { font-weight: 600; color: var(--ink); }
.job-card .meta-row {
    color: var(--muted);
    font-size: 0.88rem;
    margin-top: 6px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}
.job-card .gaji {
    font-size: 0.92rem;
    color: var(--gold-dark);
    font-weight: 700;
    white-space: nowrap;
    align-self: center;
}
.tag {
    display: inline-block;
    border: 1px solid var(--line-navy);
    border-radius: 999px;
    padding: 2px 10px;
    font-size: 0.78rem;
    color: var(--navy-soft);
    background: #F1F4F9;
}

.empty-state {
    border: 1px dashed var(--line-navy);
    border-radius: var(--radius);
    padding: 36px 20px;
    text-align: center;
    color: var(--muted);
    background: var(--panel);
}

/* ---------- Detail lowongan ---------- */
.detail-header {
    border-bottom: 1px solid var(--line);
    padding-bottom: 20px;
    margin-bottom: 20px;
}
.detail-header .kembali {
    font-size: 0.88rem;
    display: inline-block;
    margin-bottom: 14px;
    color: var(--navy-soft);
}
.detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    align-items: start;
}
@media (max-width: 760px) {
    .detail-grid { grid-template-columns: 1fr; }
}
.detail-block {
    margin-bottom: 24px;
}
.detail-block h2 {
    font-size: 1.15rem;
    border-bottom: 1px solid var(--line);
    padding-bottom: 8px;
    margin-bottom: 10px;
}
.detail-block p { white-space: pre-line; }

.info-panel {
    background: var(--navy);
    color: #EDEFF5;
    border: 1px solid var(--navy);
    border-radius: var(--radius);
    padding: 22px;
    position: sticky;
    top: 90px;
}
.info-panel dt {
    font-size: 0.76rem;
    color: #9FADC6;
    margin-top: 12px;
}
.info-panel dt:first-child { margin-top: 0; }
.info-panel dd {
    margin: 2px 0 0;
    font-weight: 600;
    color: #fff;
}
.info-panel .btn-lamar {
    display: block;
    text-align: center;
    background: var(--gold);
    color: var(--navy);
    font-weight: 700;
    padding: 12px;
    border-radius: 5px;
    margin-top: 18px;
    transition: background .2s var(--ease);
}
.info-panel .btn-lamar:hover { text-decoration: none; background: var(--gold-light); }

/* ---------- Footer ---------- */
.site-footer {
    border-top: 1px solid var(--line);
    padding: 26px 0;
    color: var(--muted);
    font-size: 0.85rem;
    text-align: center;
    background: var(--panel);
}

/* ---------- Admin ---------- */
.admin-body { background: #EEF0F4; }
.admin-shell {
    max-width: 960px;
    margin: 40px auto;
    padding: 0 20px;
}
.admin-card {
    background: #fff;
    border: 1px solid var(--line-navy);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-sm);
}
.admin-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}
.admin-bar h1 { font-size: 1.4rem; margin: 0; }
.btn {
    display: inline-block;
    padding: 9px 16px;
    border-radius: 5px;
    border: 1px solid var(--line-navy);
    background: #fff;
    color: var(--ink);
    font-size: 0.9rem;
    cursor: pointer;
    font-family: inherit;
    transition: background .2s var(--ease), border-color .2s var(--ease);
}
.btn:hover { text-decoration: none; background: #F4F6FA; }
.btn-primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-soft); }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { background: #8A2C23; }

table.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 0.92rem;
}
table.admin-table th, table.admin-table td {
    text-align: left;
    padding: 10px 8px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}
table.admin-table th { color: var(--muted); font-weight: 600; font-size: 0.82rem; }
table.admin-table tbody tr { transition: background .15s var(--ease); }
table.admin-table tbody tr:hover { background: #F7F8FB; }
.status-pill {
    font-size: 0.76rem;
    padding: 2px 9px;
    border-radius: 999px;
    background: #E7EEE9;
    color: #1F6B4A;
}
.status-pill.nonaktif { background: #F2E3E0; color: var(--danger); }

form.form-lowongan { display: grid; gap: 16px; }
form.form-lowongan .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { form.form-lowongan .row-2 { grid-template-columns: 1fr; } }
form.form-lowongan label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--navy);
}
form.form-lowongan input,
form.form-lowongan select,
form.form-lowongan textarea {
    width: 100%;
    padding: 9px 11px;
    border: 1px solid var(--line-navy);
    border-radius: 5px;
    font-family: inherit;
    font-size: 0.94rem;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
form.form-lowongan input:focus,
form.form-lowongan select:focus,
form.form-lowongan textarea:focus {
    border-color: var(--gold-dark);
    box-shadow: 0 0 0 3px rgba(203,161,53,0.18);
    outline: none;
}
form.form-lowongan textarea { resize: vertical; min-height: 90px; }

.login-shell {
    max-width: 380px;
    margin: 90px auto;
    padding: 0 20px;
}
.login-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}
.login-logo img { height: 72px; }
.alert {
    padding: 10px 14px;
    border-radius: 5px;
    font-size: 0.9rem;
    margin-bottom: 16px;
}
.alert-error { background: #F2E3E0; color: var(--danger); border: 1px solid #E2BEB6; }
.alert-success { background: #E7EEE9; color: #1F6B4A; border: 1px solid #BEDBCB; }
