/* path: static/css/main.css */
:root {
  --maroon: #7A0C2E;
  --maroon-dark: #52081F;
  --white: #FFFFFF;
  --off-white: #FAF6F5;
  --ink: #241014;
  --border: #EADFE0;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--ink);
}
a { color: inherit; }

.topbar {
  background: var(--maroon);
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.logo { font-family: 'Archivo Black', sans-serif; font-size: 21px; letter-spacing: -0.3px; color: var(--white); }
.logo span { color: #F2C9D3; }
.topbar nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.topbar nav a { color: var(--white); text-decoration: none; font-weight: 600; font-size: 14px; opacity: 0.92; }
.topbar nav a:hover { opacity: 1; text-decoration: underline; }
.btn-outline { border: 2px solid var(--white); padding: 7px 16px; border-radius: 6px; font-weight: 700; font-size: 13px; }
.btn-solid { background: var(--white); color: var(--maroon); padding: 8px 18px; border-radius: 6px; font-weight: 800; font-size: 13px; }

.site-footer {
  background: var(--ink);
  color: #C9A9B0;
  text-align: center;
  padding: 24px;
  font-size: 14px;
  margin-top: 60px;
}

.flash-wrap { max-width: 700px; margin: 16px auto 0; }
.flash { padding: 12px 18px; border-radius: 8px; font-weight: 700; margin-bottom: 8px; }
.flash-success { background: #E4F5E9; color: #1B7A3D; }
.flash-error { background: #FBE4E9; color: var(--maroon-dark); }

.auth-box {
  max-width: 400px;
  margin: 70px auto;
  padding: 34px;
  border: 2px solid var(--border);
  border-radius: 14px;
}
.auth-box h2 { font-family: 'Archivo Black', sans-serif; margin-bottom: 24px; color: var(--maroon); }
.auth-box form { display: flex; flex-direction: column; gap: 14px; }
.auth-box input {
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 13px 14px;
  font-size: 15px;
  font-weight: 600;
  outline: none;
}
.auth-box input:focus { border-color: var(--maroon); }
.btn-solid-maroon {
  background: var(--maroon);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 13px;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
}
.btn-solid-maroon:hover { background: var(--maroon-dark); }
.btn-solid-maroon.full { width: 100%; }
.btn-outline-dark {
  background: var(--white);
  color: var(--ink);
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 11px 18px;
  font-weight: 700;
  cursor: pointer;
}

.section { max-width: 1100px; margin: 0 auto; padding: 50px 20px; }
.job-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.job-card { background: var(--off-white); border: 2px solid var(--border); border-radius: 12px; padding: 24px; }
.job-card .tag { display: inline-block; background: var(--maroon); color: var(--white); font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 5px; margin-bottom: 12px; }
.job-card h3 { font-size: 19px; margin-bottom: 6px; }
.job-card .company { font-weight: 700; color: var(--maroon); margin-bottom: 4px; }
.job-card .meta { color: #6B5257; font-size: 14px; margin-bottom: 14px; }
.job-card .salary { font-weight: 800; font-size: 15px; }

.profile-summary {
  background: var(--off-white);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 22px 24px;
}
.profile-summary p { margin-bottom: 8px; font-size: 15px; }

.profile-form { display: flex; flex-direction: column; gap: 6px; }
.profile-form label { font-weight: 700; font-size: 14px; margin-top: 10px; }
.profile-form input, .profile-form textarea, .profile-form select {
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  outline: none;
}
.profile-form input:focus, .profile-form textarea:focus, .profile-form select:focus { border-color: var(--maroon); }
.profile-form button { margin-top: 20px; }

.auth-box select { border: 2px solid var(--border); border-radius: 8px; padding: 13px 14px; font-size: 15px; font-weight: 600; }
.auth-box label { font-weight: 700; font-size: 14px; margin-top: 4px; }

.admin-wrap { max-width: 1200px; margin: 0 auto; padding: 40px 20px; }
.page-title { font-family: 'Archivo Black', sans-serif; font-size: 26px; margin-bottom: 24px; color: var(--ink); }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 30px; }
.stat-card { background: var(--off-white); border: 2px solid var(--border); border-radius: 12px; padding: 24px; text-align: center; }
.stat-card .num { font-family: 'Archivo Black', sans-serif; font-size: 34px; color: var(--maroon); }
.stat-card .label { font-weight: 700; color: #6B5257; font-size: 13px; text-transform: uppercase; margin-top: 4px; }

.admin-table { width: 100%; border-collapse: collapse; background: var(--white); }
.admin-table th, .admin-table td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--border); font-size: 14px; }
.admin-table th { background: var(--off-white); font-weight: 800; color: var(--maroon-dark); text-transform: uppercase; font-size: 12px; }
.admin-table .actions { display: flex; gap: 8px; }

.btn-small { background: var(--maroon); color: var(--white); border: none; border-radius: 6px; padding: 7px 14px; font-weight: 700; font-size: 13px; cursor: pointer; }
.btn-small:hover { background: var(--maroon-dark); }

.badge { padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 800; text-transform: capitalize; }
.badge-active, .badge-approved, .badge-published { background: #E4F5E9; color: #1B7A3D; }
.badge-pending { background: #FDF2DA; color: #8A5A00; }
.badge-blocked, .badge-closed { background: #FBE4E9; color: var(--maroon-dark); }

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(36, 16, 20, 0.55);
  z-index: 100;
}
.modal-overlay.active { display: block; }
.modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--white);
  border-radius: 14px;
  padding: 28px;
  width: 90%;
  max-width: 420px;
  z-index: 101;
}
.modal.active { display: block; }
.modal h3 { font-family: 'Archivo Black', sans-serif; margin-bottom: 18px; color: var(--maroon-dark); }
.modal input[type="file"] { margin-bottom: 18px; width: 100%; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; }
.modal-lg { max-width: 560px; max-height: 88vh; overflow-y: auto; }
.modal-form { display: flex; flex-direction: column; gap: 6px; }
.modal-form label { font-weight: 700; font-size: 14px; margin-top: 10px; }
.modal-form input, .modal-form textarea, .modal-form select {
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 11px 13px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  outline: none;
  width: 100%;
}
.modal-form input:focus, .modal-form textarea:focus, .modal-form select:focus { border-color: var(--maroon); }
.modal-form .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.modal-form .radio-row { display: flex; gap: 20px; margin-top: 8px; }
.modal-form .radio-label { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; margin-top: 0; }
.modal-error { color: var(--maroon-dark); font-size: 13px; font-weight: 700; margin-top: 8px; }

/* Home page */
.hero { background: var(--maroon); padding: 48px 32px 70px; text-align: center; }
.hero h1 { font-family: 'Archivo Black', sans-serif; font-size: 34px; color: var(--white); line-height: 1.15; max-width: 640px; margin: 0 auto 10px; }
.hero p { color: #F2D9DF; font-size: 15px; font-weight: 600; margin-bottom: 28px; }
.search-box { background: var(--white); max-width: 720px; margin: 0 auto -46px; border-radius: 12px; padding: 10px; display: flex; gap: 10px; box-shadow: 0 12px 26px rgba(82,8,31,0.28); }
.search-box input { flex: 1; border: 2px solid var(--border); border-radius: 7px; padding: 12px 14px; font-size: 14px; font-weight: 600; color: var(--ink); outline: none; }
.search-box input:focus { border-color: var(--maroon); }
.search-box button { background: var(--maroon); color: var(--white); border: none; border-radius: 7px; padding: 0 24px; font-size: 14px; font-weight: 800; cursor: pointer; }
.search-box button:hover { background: var(--maroon-dark); }

.stats { max-width: 900px; margin: 84px auto 40px; display: flex; justify-content: space-around; text-align: center; padding: 0 20px; }
.stats .num { font-family: 'Archivo Black', sans-serif; font-size: 28px; color: var(--maroon); }
.stats .label { font-weight: 700; color: #5C4249; font-size: 12px; text-transform: uppercase; letter-spacing: 0.4px; margin-top: 2px; }

.section h2 { font-family: 'Archivo Black', sans-serif; font-size: 22px; margin-bottom: 22px; color: var(--ink); }

.cta-strip { background: var(--maroon-dark); padding: 34px 32px; text-align: center; color: var(--white); }
.cta-strip h2 { font-family: 'Archivo Black', sans-serif; font-size: 20px; margin-bottom: 8px; }
.cta-strip p { color: #F0D5DB; margin-bottom: 18px; font-weight: 600; font-size: 14px; }
.cta-strip a { background: var(--white); color: var(--maroon-dark); padding: 11px 24px; border-radius: 7px; text-decoration: none; font-weight: 800; font-size: 14px; }

@media (max-width: 800px) {
  .hero h1 { font-size: 26px; }
  .search-box { flex-direction: column; margin: 0 20px -36px; }
  .stats { flex-direction: column; gap: 22px; margin-top: 70px; }
}

@media (max-width: 800px) {
  .job-grid { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
}
