/* =========================================================
   P2KPK — Pusat Pengembangan Karir dan Penempatan Kerja
   Universitas Gajayana Malang
   Shared stylesheet
   ========================================================= */

:root {
  --navy-900: #0a1f3d;
  --navy-800: #0f2a52;
  --navy-700: #14356b;
  --navy-600: #1c4585;
  --gold-500: #f2a71b;
  --gold-400: #f6bc4d;
  --gold-100: #fdf1dc;
  --bg: #f6f8fb;
  --bg-alt: #eef2f8;
  --surface: #ffffff;
  --text: #1a2233;
  --text-muted: #5a6478;
  --border: #e2e7f0;
  --success: #1f9d55;
  --danger: #d64545;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(10, 31, 61, 0.06);
  --shadow-md: 0 8px 24px rgba(10, 31, 61, 0.10);
  --shadow-lg: 0 20px 48px rgba(10, 31, 61, 0.16);
  --max-width: 1180px;
  --header-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Poppins", "Segoe UI", system-ui, sans-serif;
  color: var(--navy-900);
  line-height: 1.25;
  margin: 0 0 .5em;
}

p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { padding-left: 1.2em; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 72px 0;
}
.section--alt { background: var(--bg-alt); }
.section--navy {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: #eaf0fb;
}
.section--navy h2, .section--navy h3 { color: #fff; }

.section-head {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head--left { margin: 0 0 40px; text-align: left; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-500);
  background: var(--gold-100);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.section--navy .eyebrow {
  background: rgba(242, 167, 27, 0.16);
}

.section-head h2 { font-size: clamp(1.6rem, 2.5vw, 2.1rem); }
.section-head p { color: var(--text-muted); font-size: 1.02rem; }
.section--navy .section-head p { color: #c9d6ee; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: .95rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--gold-500);
  color: var(--navy-900);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--gold-400); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,.55);
  color: inherit;
}
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-navy {
  background: var(--navy-800);
  color: #fff;
}
.btn-navy:hover { background: var(--navy-700); }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 9px 18px; font-size: .85rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}
.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--navy-900);
}
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #fff;
  object-fit: contain;
  padding: 3px;
  box-shadow: 0 0 0 1px var(--border);
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.02rem; }
.brand-text span { font-size: .72rem; color: var(--text-muted); font-weight: 500; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: .93rem;
  font-weight: 500;
  color: var(--text);
}
.nav-links a:hover { background: var(--bg-alt); color: var(--navy-800); }
.nav-links a.active { color: var(--navy-800); font-weight: 700; background: var(--gold-100); }

.nav-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--navy-900);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(1200px 500px at 85% -10%, rgba(242,167,27,.18), transparent 60%),
              linear-gradient(160deg, var(--navy-900), var(--navy-700) 70%);
  color: #fff;
  padding: 84px 0 96px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: .4em; }
.hero .lead { color: #cfdaf1; font-size: 1.08rem; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 44px;
  max-width: 520px;
}
.stat {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-md);
  padding: 16px 14px;
}
.stat strong { display: block; font-size: 1.5rem; font-family: "Poppins", sans-serif; color: var(--gold-400); }
.stat span { font-size: .78rem; color: #c9d6ee; }

.hero-card {
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-lg);
}
.hero-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.hero-card p.muted { color: var(--text-muted); font-size: .88rem; margin-bottom: 18px; }
.hero-card-list { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.hero-card-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .9rem;
  background: var(--bg-alt);
  border-radius: 10px;
  padding: 10px 12px;
}
.hero-card-list li .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--gold-500);
  margin-top: 6px; flex-shrink: 0;
}

/* ---------- Cards / Grids ---------- */
.grid {
  display: grid;
  gap: 24px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--gold-100);
  color: var(--gold-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.card h3 { font-size: 1.05rem; }
.card p { color: var(--text-muted); font-size: .92rem; margin-bottom: 0; }

.card-photo {
  margin: -26px -22px 16px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-caption {
  font-size: .72rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ---------- Job listings ---------- */
.job-toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}
.input, select.input {
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: .92rem;
  font-family: inherit;
  color: var(--text);
}
.input:focus, select.input:focus, textarea.input:focus {
  outline: none;
  border-color: var(--navy-600);
  background: #fff;
}
.job-toolbar .input[type="search"] { flex: 1 1 240px; }
.job-toolbar select { flex: 0 1 190px; }

.job-count { font-size: .85rem; color: var(--text-muted); margin-bottom: 16px; }

.job-list { display: flex; flex-direction: column; gap: 16px; }
.job-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .18s ease, transform .18s ease;
}
.job-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.job-logo {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--navy-800);
  color: var(--gold-400);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: "Poppins", sans-serif;
  flex-shrink: 0;
}
.job-main { flex: 1; min-width: 0; }
.job-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.job-title { font-size: 1.05rem; font-weight: 700; color: var(--navy-900); margin-bottom: 2px; }
.job-company { font-size: .9rem; color: var(--text-muted); }
.job-meta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; font-size: .82rem; color: var(--text-muted); }
.job-meta span { display: inline-flex; align-items: center; gap: 6px; }
.job-desc { font-size: .88rem; color: var(--text-muted); margin-top: 10px; margin-bottom: 0; }
.badge {
  display: inline-block;
  font-size: .74rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--gold-100);
  color: #8a5a05;
  white-space: nowrap;
}
.badge-type-magang { background: #e6f4ea; color: #1f7a3d; }
.badge-type-full-time { background: #e8eefc; color: #24488f; }
.badge-type-part-time { background: #fdeeee; color: #a5312f; }
.badge-deadline { background: var(--bg-alt); color: var(--text-muted); font-weight: 600; }
.job-actions { display: flex; flex-direction: column; gap: 8px; align-items: stretch; flex-shrink: 0; }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
}
.empty-state .icon { font-size: 2.4rem; margin-bottom: 10px; }

/* ---------- Timeline / Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.step { position: relative; padding-left: 4px; }
.step-num {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--gold-400);
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.step h4 { font-size: .98rem; margin-bottom: 6px; }
.step p { font-size: .86rem; color: var(--text-muted); margin: 0; }

/* ---------- Testimonials ---------- */
.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.testimonial p { font-size: .93rem; color: var(--text); }
.testi-person { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--gold-100); color: var(--gold-500);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-family: "Poppins", sans-serif;
}
.testi-person strong { display: block; font-size: .88rem; }
.testi-person span { font-size: .78rem; color: var(--text-muted); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--gold-500), var(--gold-400));
  border-radius: var(--radius-lg);
  padding: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  color: var(--navy-900);
}
.cta-banner h3 { color: var(--navy-900); font-size: 1.4rem; margin-bottom: 6px; }
.cta-banner p { margin: 0; color: #5b4408; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: .85rem; font-weight: 600; color: var(--navy-900); }
textarea.input { resize: vertical; min-height: 120px; font-family: inherit; }
.form-note {
  font-size: .82rem;
  color: var(--text-muted);
  background: var(--bg-alt);
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 10px;
}
.form-success {
  display: none;
  background: #e6f4ea;
  color: #1f7a3d;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: .9rem;
  font-weight: 600;
  margin-top: 16px;
}
.form-success.show { display: block; }

/* ---------- Contact info list ---------- */
.info-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list .icon-badge { margin-bottom: 0; flex-shrink: 0; }
.info-list strong { display: block; font-size: .92rem; }
.info-list span, .info-list a { font-size: .88rem; color: var(--text-muted); }

.map-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.map-frame iframe { width: 100%; height: 340px; border: 0; display: block; }

/* ---------- Breadcrumb / page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-700) 75%);
  color: #fff;
  padding: 56px 0;
}
.page-hero .eyebrow { }
.page-hero h1 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: .3em; }
.page-hero p { color: #cfdaf1; max-width: 640px; margin: 0; }
.breadcrumb { font-size: .82rem; color: #a9bce0; margin-bottom: 14px; }
.breadcrumb a:hover { color: #fff; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: #c9d6ee;
  padding: 56px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.footer-brand strong { color: #fff; font-family: "Poppins", sans-serif; }
.site-footer p { font-size: .86rem; color: #a9bce0; }
.footer-col h4 { color: #fff; font-size: .92rem; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: .86rem; color: #a9bce0; }
.footer-col a:hover { color: var(--gold-400); }
.footer-social { display: flex; gap: 10px; margin-top: 6px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
}
.footer-social a:hover { background: var(--gold-500); color: var(--navy-900); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 22px;
  font-size: .8rem;
  color: #8ba0c9;
}

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.flex { display: flex; }
.gap-8 { gap: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-links, .nav-cta .btn-outline { display: none; }
  .nav-toggle { display: flex; }
  .site-header.open .nav-links {
    display: flex;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 12px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .site-header.open .nav-links a { padding: 12px 14px; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .job-card { flex-direction: column; }
  .job-actions { flex-direction: row; width: 100%; }
  .job-actions .btn { flex: 1; }
  .cta-banner { flex-direction: column; align-items: flex-start; }
}
