
:root {
  --navy: #0b2545;
  --sky: #1d70a2;
  --accent: #e8720c;
  --bg: #f6f8fa;
  --card: #ffffff;
  --text: #1c2b36;
  --muted: #5b6b76;
  --border: #dde3e8;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}
header.site-header {
  background-image: linear-gradient(rgba(11,37,69,0.82), rgba(29,112,162,0.82)), url('header-bg.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 72px 20px;
  text-align: center;
}
.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.site-title {
  font-size: 3.15rem;
  font-weight: 700;
  margin: 0;
}
.site-tagline {
  margin: 0;
  color: #dce9f3;
  font-size: 1rem;
  max-width: 600px;
}
nav.site-nav {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
nav.site-nav .nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  gap: 22px;
  padding: 12px 20px;
  flex-wrap: wrap;
}
nav.site-nav a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}
nav.site-nav a:hover { color: var(--accent); }
main {
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px 20px 60px;
}
.home-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}
.home-main { order: 1; }
.home-sidebar-right { order: 2; }
.home-sidebar-left { order: 3; }
@media (min-width: 981px) {
  .home-layout {
    grid-template-columns: 220px 1fr 240px;
  }
  .home-sidebar-left { order: 1; }
  .home-main { order: 2; }
  .home-sidebar-right { order: 3; }
}
.disclaimer {
  background: #fff7ea;
  border: 1px solid #f0d9ad;
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 0.88rem;
  color: #6b5220;
  margin-bottom: 26px;
}
h2.section-title {
  font-size: 1.2rem;
  color: var(--navy);
  border-bottom: 2px solid var(--border);
  padding-bottom: 8px;
  margin-top: 36px;
}
.job-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 18px;
}
.job-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px 24px;
  display: flex;
  gap: 18px;
  scroll-margin-top: 96px;
}
.job-logo {
  flex: 0 0 84px;
  width: 84px;
  height: 84px;
  border-radius: 8px;
  overflow: hidden;
  background: #eef2f5;
  display: flex;
  align-items: center;
  justify-content: center;
}
.job-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}
.job-body { flex: 1; min-width: 0; }
.job-title {
  margin: 0 0 6px;
  font-size: 1.1rem;
  color: var(--navy);
  line-height: 1.35;
}
.job-title a {
  color: var(--navy);
  text-decoration: none;
}
.job-title a:hover {
  color: var(--accent);
  text-decoration: underline;
}
.job-meta {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 12px;
}
.job-views {
  white-space: nowrap;
}
.job-excerpt {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.6;
}
.job-apply {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  word-break: break-word;
  background: #fdf3ea;
  border-radius: 6px;
  padding: 10px 12px;
  margin-top: 12px;
}
.job-apply a {
  color: var(--accent);
  text-decoration: underline;
}
.job-full {
  font-size: 0.97rem;
  line-height: 1.75;
  margin-top: 12px;
}
.job-full p {
  margin: 0 0 16px;
}
.job-full p:last-child { margin-bottom: 0; }
.job-readmore {
  margin: 14px 0 0;
}
.job-readmore a {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}
.job-readmore a:hover { text-decoration: underline; }
.month-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.month-list a {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
}
.month-list a:hover { border-color: var(--accent); color: var(--accent); }
.month-count {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 4px;
}
.submit-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  margin-top: 18px;
}
.submit-box a.button {
  display: inline-block;
  margin-top: 14px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 6px;
  font-weight: 600;
}
.subscribe-form label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
}
.subscribe-form input[type="email"] {
  width: 100%;
  max-width: 360px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.95rem;
  margin-right: 10px;
  margin-bottom: 12px;
}
.subscribe-form button.button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  padding: 12px 22px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
}
.subscribe-banner {
  background: #eef6f0;
  border: 1px solid #cfe8d6;
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 0.9rem;
  color: #245c35;
  margin-bottom: 20px;
}
.subscribe-banner a {
  color: #1b7a3d;
  font-weight: 700;
}
.useful-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}
.useful-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.88rem;
}
.useful-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.useful-links img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
}
.home-sidebar-left h2.section-title,
.home-sidebar-right h2.section-title {
  margin-top: 0;
}
.weather-widget {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 20px;
}
.weather-location {
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 10px;
  font-size: 0.95rem;
}
.weather-day-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
}
.weather-day-row:first-of-type {
  border-top: none;
}
.weather-day-label {
  flex: 0 0 66px;
  color: var(--navy);
  font-weight: 600;
}
.weather-day-icon {
  flex: 0 0 22px;
  font-size: 1.1rem;
  text-align: center;
}
.weather-day-temp {
  flex: 1;
  text-align: right;
  color: var(--muted);
}
.weather-day-rain {
  flex: 0 0 60px;
  text-align: right;
  color: #1b7a9c;
  font-size: 0.78rem;
}
.weather-source {
  margin: 10px 0 0;
  font-size: 0.72rem;
  color: var(--muted);
  text-align: right;
}
.weather-loading, .weather-error {
  color: var(--muted);
  font-size: 0.85rem;
}
footer {
  text-align: center;
  padding: 24px 20px 40px;
  color: var(--muted);
  font-size: 0.82rem;
}
.badge-new {
  display: inline-block;
  background: #fdf3ea;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
  vertical-align: middle;
}
.badge-closing {
  display: inline-block;
  background: #fceceb;
  color: #b3261e;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
  vertical-align: middle;
}
.featured-job-banner {
  position: relative;
  background: #fff;
  border: 2px solid var(--accent);
  border-radius: 10px;
  padding: 20px 24px 18px;
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.featured-job-tag {
  position: absolute;
  top: -12px;
  left: 20px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  letter-spacing: 0.02em;
}
.featured-job-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
  margin: 0 0 4px;
}
.featured-job-text {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
  max-width: 480px;
}
.featured-job-cta {
  text-align: center;
  flex-shrink: 0;
}
.featured-job-button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
}
.featured-job-note {
  font-size: 0.74rem;
  color: var(--muted);
  margin: 6px 0 0;
}
.job-card {
  position: relative;
}
.job-title {
  padding-right: 84px;
}
.save-btn {
  position: absolute;
  top: 18px;
  right: 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}
.save-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.save-btn.saved {
  border-color: var(--accent);
  color: var(--accent);
  background: #fdf3ea;
}
#saved-jobs-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.saved-jobs-badge {
  background: var(--accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 10px;
  padding: 1px 7px;
  min-width: 14px;
  text-align: center;
  display: inline-block;
}
.saved-jobs-empty {
  background: #fff7ea;
  border: 1px solid #f0d9ad;
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 0.88rem;
  color: #6b5220;
  margin: 18px 0 0;
}
