/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #f5f6f8;
  color: #333;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  text-decoration: none;
  color: inherit;
}

input, select, button {
  font-family: inherit;
  font-size: inherit;
}

/* ===== Navbar ===== */
.navbar {
  background: #1e3a5f;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  position: relative;
}

.logo {
  flex: 1;
  display: flex;
  align-items: center;
}
.logo-img {
  height: 50px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 8px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-support {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  color: #b0c4de;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s;
}
.nav-support:hover {
  color: #fff;
}

.kofi-icon {
  width: 1.1em;
  height: 1.1em;
  vertical-align: -0.1em;
  flex-shrink: 0;
}

.nav-link {
  color: #b0c4de;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s;
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8e 100%);
  color: #fff;
  padding: 64px 24px 80px;
  text-align: center;
}

.hero-inner {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
}

/* ===== Search Section ===== */
.search-section {
  max-width: 960px;
  margin: -28px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 10;
}

.search-section.sticky {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  margin: 0 auto;
  padding: 12px 24px 8px;
  background: #f5f6f8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  z-index: 50;
}

.search-section-spacer {
  display: none;
}

.search-section-spacer.visible {
  display: block;
}

.search-bar {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 8px;
  display: flex;
  gap: 8px;
}

.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 16px;
  font-size: 1rem;
  border-radius: 8px;
  background: transparent;
}

.search-bar input::placeholder {
  color: #999;
}

.filters {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.filters select {
  flex: 1;
  min-width: 160px;
  padding: 10px 14px;
  border: 2px solid #e0e4ea;
  border-radius: 8px;
  background: #fff;
  color: #333;
  cursor: pointer;
  transition: border-color 0.2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.filters select:focus {
  border-color: #4a90d9;
  outline: none;
}

/* ===== Multi-Select Category Dropdown ===== */
.multi-select {
  position: relative;
  flex: 1;
  min-width: 160px;
}

.multi-select-btn {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #e0e4ea;
  border-radius: 8px;
  background: #fff;
  color: #333;
  cursor: pointer;
  transition: border-color 0.2s;
  text-align: left;
  font-size: inherit;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.multi-select-btn:focus,
.multi-select-btn:hover {
  border-color: #4a90d9;
  outline: none;
}

.multi-select-arrow {
  font-size: 0.7em;
  color: #666;
  margin-left: 8px;
}

.multi-select-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 2px solid #e0e4ea;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 100;
  max-height: 280px;
  overflow-y: auto;
  padding: 6px 0;
}

.multi-select-dropdown.open {
  display: block;
}

.multi-select-dropdown label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 0.95rem;
  color: #333;
  transition: background 0.15s;
}

.multi-select-dropdown label:hover {
  background: #f0f4fa;
}

.multi-select-dropdown input[type="checkbox"] {
  accent-color: #4a90d9;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* ===== Jobs Container ===== */
.jobs-container {
  max-width: 960px;
  margin: 32px auto 48px;
  padding: 0 24px;
}

.jobs-updated {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 8px;
  text-align: center;
}

.jobs-header {
  margin-bottom: 16px;
  font-size: 0.95rem;
  color: #666;
  font-weight: 500;
}

.jobs-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ===== Load More ===== */
.load-more-btn {
  width: 100%;
  padding: 14px;
  margin-top: 4px;
  font-size: 0.95rem;
}

/* ===== Empty State ===== */
.empty-state {
  text-align: center;
  padding: 64px 24px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.empty-state h3 {
  font-size: 1.25rem;
  color: #1e3a5f;
  margin-bottom: 8px;
}

.empty-state p {
  color: #666;
  margin-bottom: 24px;
}

.empty-state-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Job Card ===== */
.job-card {
  background: #fff;
  border-radius: 10px;
  padding: 20px 24px;
  border-left: 4px solid #4a90d9;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s, transform 0.15s;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.job-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.job-card.category-admin {
  border-left-color: #1e3a5f;
}

.job-card.category-coach {
  border-left-color: #6b21a8;
}

.job-card.category-early-childhood {
  border-left-color: #065f46;
}

.job-card.category-sped {
  border-left-color: #5b21b6;
}

.job-card.category-elementary {
  border-left-color: #92400e;
}

.job-card.category-secondary {
  border-left-color: #1e40af;
}

.job-card.category-student-support {
  border-left-color: #9d174d;
}

.job-card.category-summer-school {
  border-left-color: #c2410c;
}

.job-card.category-teacher {
  border-left-color: #38a169;
}

.job-card.category-support {
  border-left-color: #d69e2e;
}

.job-card.category-other {
  border-left-color: #a0aec0;
}

.job-card-body {
  flex: 1;
  min-width: 0;
}

.job-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #1e3a5f;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  overflow-wrap: break-word;
  word-break: break-word;
}

.job-card-meta {
  font-size: 0.875rem;
  color: #666;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 4px;
}

.job-card-meta span::before {
  margin-right: 4px;
}

.job-card-actions {
  flex-shrink: 0;
}

/* ===== Tags ===== */
.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 50px;
  line-height: 1.4;
  white-space: nowrap;
}

.tag-admin {
  background: #e8f0fe;
  color: #1e3a5f;
}

.tag-coach {
  background: #f3e8ff;
  color: #6b21a8;
}

.tag-early-childhood {
  background: #d1fae5;
  color: #065f46;
}

.tag-elementary {
  background: #fef3c7;
  color: #92400e;
}

.tag-secondary {
  background: #dbeafe;
  color: #1e40af;
}

.tag-student-support {
  background: #fce7f3;
  color: #9d174d;
}

.tag-sped {
  background: #ede9fe;
  color: #5b21b6;
}

.tag-summer-school {
  background: #fff7ed;
  color: #c2410c;
}

.tag-teacher {
  background: #e6f7ed;
  color: #276749;
}

.tag-support {
  background: #fefce8;
  color: #854d0e;
}

.tag-other {
  background: #f1f5f9;
  color: #475569;
}

.tag-new {
  background: #fff3cd;
  color: #856404;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: #1e3a5f;
  color: #fff;
}

.btn-primary:hover {
  background: #2d5a8e;
  box-shadow: 0 2px 8px rgba(30, 58, 95, 0.3);
}

.btn-sm {
  padding: 6px 16px;
  font-size: 0.8rem;
  border-radius: 6px;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
}

.btn-outline {
  background: transparent;
  color: #1e3a5f;
  border: 2px solid #1e3a5f;
  transition: all 0.2s;
}

.btn-outline:hover {
  background: #1e3a5f;
  color: #fff;
  box-shadow: 0 2px 8px rgba(30, 58, 95, 0.25);
}

/* ===== Page Section (Alerts, Add District) ===== */
.page-section {
  max-width: 720px;
  margin: 48px auto;
  padding: 0 24px;
}

.page-section h2 {
  font-size: 1.75rem;
  color: #1e3a5f;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.section-subtitle {
  color: #666;
  margin-bottom: 32px;
  font-size: 1.05rem;
}

/* ===== Forms ===== */
.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.form-hint {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="url"],
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #e0e4ea;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
}

.form-group input:focus,
.form-group select:focus {
  border-color: #4a90d9;
  box-shadow: 0 0 0 4px rgba(74, 144, 217, 0.12);
  outline: none;
}

.form-status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  display: none;
}

.form-status.success {
  display: block;
  background: #e6f7ed;
  color: #276749;
  border: 1px solid #c6f6d5;
}

.form-status.error {
  display: block;
  background: #fee;
  color: #c53030;
  border: 1px solid #feb2b2;
}

/* ===== Email Hint Callout ===== */
.email-hint {
  margin-top: 8px;
  padding: 10px 14px;
  background: #fff8e1;
  border-left: 3px solid #f9a825;
  border-radius: 0 6px 6px 0;
  font-size: 0.85rem;
  color: #6d5e00;
  line-height: 1.5;
}

/* ===== Chips ===== */
.chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  border: 2px solid #d0d5dd;
  background: #fff;
  color: #555;
  transition: all 0.2s;
  user-select: none;
}

.chip:hover {
  border-color: #4a90d9;
  color: #1e3a5f;
}

.chip-selected {
  background: #1e3a5f;
  color: #fff;
  border-color: #1e3a5f;
}

.chip-selected:hover {
  background: #2d5a8e;
  border-color: #2d5a8e;
  color: #fff;
}

.chip-remove {
  font-size: 1rem;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.15s;
}

.chip-remove:hover {
  opacity: 1;
}

/* ===== Position Picker ===== */
.position-group {
  background: #fff;
  border-radius: 10px;
  margin-bottom: 8px;
  border: 2px solid #e0e4ea;
  overflow: hidden;
  transition: border-color 0.2s;
}

.position-group:has(.chip-selected) {
  border-color: #4a90d9;
}

.position-group-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
}

.position-group-header:hover {
  background: #f8f9fb;
}

.position-group-arrow {
  font-size: 0.7rem;
  color: #888;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.position-group-label {
  font-weight: 600;
  color: #1e3a5f;
  font-size: 0.95rem;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.position-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1e3a5f;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  padding: 0 6px;
}

.position-group-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.position-select-all,
.position-deselect-all {
  font-size: 0.78rem;
  color: #4a90d9;
  cursor: pointer;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background 0.15s;
}

.position-select-all:hover,
.position-deselect-all:hover {
  background: #e8f0fe;
}

.position-group-body {
  padding: 0 16px 14px;
}

.position-group-body .chips-container {
  margin-top: 0;
}

/* ===== Alert District Picker ===== */
#district-chips {
  margin-top: 8px;
}

#district-chips > .chip {
  margin-bottom: 8px;
}

/* ===== Alert District Region Accordion ===== */
.alert-region-group {
  background: #fff;
  border-radius: 10px;
  margin-bottom: 8px;
  border: 2px solid #e0e4ea;
  overflow: hidden;
  transition: border-color 0.2s;
}

.alert-region-group:has(.chip-selected) {
  border-color: #4a90d9;
}

.alert-region-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
}

.alert-region-header:hover {
  background: #f8f9fb;
}

.alert-region-body {
  padding: 0 16px 14px;
}

.alert-region-body .chips-container {
  margin-top: 0;
}

/* ===== Detect Section ===== */
.detect-section {
  margin-bottom: 32px;
}

.detect-row {
  display: flex;
  gap: 12px;
}

.detect-row input {
  flex: 1;
  padding: 12px 14px;
  border: 2px solid #e0e4ea;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.detect-row input:focus {
  border-color: #4a90d9;
  box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.15);
  outline: none;
}

.detect-result {
  margin-top: 16px;
  padding: 16px;
  border-radius: 8px;
  font-size: 0.9rem;
}

.detect-result.detected {
  background: #e6f7ed;
  color: #276749;
  border: 1px solid #c6f6d5;
}

.detect-result.unsupported {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}

.detect-result.error {
  background: #fee;
  color: #c53030;
  border: 1px solid #feb2b2;
}

/* ===== District Grid ===== */
.district-search-input {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #e0e4ea;
  border-radius: 8px;
  font-size: 0.95rem;
  margin-bottom: 16px;
  transition: border-color 0.2s;
  background: #fff;
}

.district-search-input:focus {
  border-color: #4a90d9;
  outline: none;
}

.tracked-districts {
  margin-top: 48px;
}

.tracked-districts h3 {
  font-size: 1.25rem;
  color: #1e3a5f;
  margin-bottom: 20px;
}

.district-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.district-card {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s;
}

.district-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.district-card-name {
  font-weight: 600;
  color: #1e3a5f;
  margin-bottom: 4px;
  font-size: 1rem;
}

.district-card-region {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 10px;
}

.district-card-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 50px;
  background: #e8f0fe;
  color: #1e3a5f;
}

/* ===== FAQ Page ===== */
.faq-item {
  background: #fff;
  border-radius: 10px;
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.faq-item summary {
  padding: 18px 28px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #1e3a5f;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 400;
  color: #999;
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s ease;
}

.faq-item[open] .faq-item-body {
  grid-template-rows: 1fr;
}

.faq-item-body > div {
  overflow: hidden;
}

.faq-item p,
.faq-item ul {
  padding: 0 28px 18px;
  color: #555;
  line-height: 1.7;
  margin: 0;
}

.faq-item ul {
  padding-left: 48px;
  padding-bottom: 18px;
}

.faq-item a {
  color: #1e3a5f;
  text-decoration: underline;
}

/* ===== Contact Box ===== */
.contact-box {
  margin-top: 40px;
  padding: 32px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.contact-box h3 {
  font-size: 1.2rem;
  color: #1e3a5f;
  margin-bottom: 8px;
}

.contact-box > p {
  color: #666;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.contact-box .form-group {
  margin-bottom: 12px;
}

.contact-box input,
.contact-box textarea {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #e0e4ea;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
  background: #fff;
}

.contact-box input:focus,
.contact-box textarea:focus {
  border-color: #4a90d9;
  outline: none;
}

.contact-box textarea {
  resize: vertical;
  min-height: 80px;
}

.contact-success p {
  color: #38a169;
  font-weight: 600;
  font-size: 1.05rem;
}

/* ===== Support Page ===== */
.support-section {
  text-align: center;
}

.support-card {
  background: #fff;
  border-radius: 12px;
  padding: 48px 32px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  margin: 32px 0;
}

.support-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.support-card p {
  color: #555;
  margin-bottom: 24px;
  font-size: 1.05rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.support-card .btn {
  margin-bottom: 16px;
}

.support-note {
  font-size: 0.85rem !important;
  color: #999 !important;
  margin-bottom: 0 !important;
}

.support-details {
  text-align: left;
  max-width: 400px;
  margin: 0 auto;
}

.support-details h3 {
  font-size: 1.1rem;
  color: #1e3a5f;
  margin-bottom: 12px;
}

.support-details ul {
  list-style: none;
  padding: 0;
}

.support-details li {
  padding: 8px 0;
  color: #555;
  font-size: 0.95rem;
}

.support-details li::before {
  content: "\2713\0020";
  color: #38a169;
  font-weight: 700;
  margin-right: 8px;
}

/* ===== Alert Form Actions ===== */
.alert-form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ===== Preview Results ===== */
#preview-results {
  margin-top: 32px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.preview-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #f8f9fb;
  border-bottom: 1px solid #e0e4ea;
}

.preview-results-header h3 {
  font-size: 1rem;
  color: #1e3a5f;
  margin: 0;
}

.preview-results-list {
  max-height: 480px;
  overflow-y: auto;
}

.preview-job {
  padding: 12px 20px;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.15s;
}

.preview-job:hover {
  background: #f8f9fb;
}

.preview-job:last-child {
  border-bottom: none;
}

.preview-job-title {
  font-weight: 600;
  color: #1e3a5f;
  margin-bottom: 4px;
}

.preview-job-title a {
  color: #2b6cb0;
  text-decoration: none;
}

.preview-job-title a:hover {
  text-decoration: underline;
}

.preview-job-meta {
  font-size: 0.85rem;
  color: #888;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== Loading Indicator ===== */
.loading-indicator {
  text-align: center;
  padding: 40px 24px;
  color: #999;
  font-size: 0.95rem;
}

/* ===== Skeleton Loading Cards ===== */
.skeleton-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.skeleton-line {
  height: 14px;
  border-radius: 6px;
  background: linear-gradient(90deg, #eee 25%, #ddd 50%, #eee 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  margin-bottom: 12px;
}

.skeleton-line.wide { width: 75%; height: 18px; }
.skeleton-line.medium { width: 50%; }
.skeleton-line.narrow { width: 30%; margin-bottom: 0; }

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== Footer ===== */
.footer {
  background: #1a1a2e;
  color: #888;
  text-align: center;
  padding: 32px 24px;
  margin-top: auto;
  font-size: 0.9rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-links {
  margin-top: 8px;
}

.footer-links a {
  color: #b0c4de;
  text-decoration: underline;
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: #fff;
}

.footer-sep {
  margin: 0 8px;
  color: #666;
}

.footer-kofi {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.footer-disclaimer {
  margin-top: 12px;
  font-size: 0.78rem;
  color: #666;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

/* ===== Privacy Page ===== */
.privacy-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.privacy-item {
  background: #fff;
  border-radius: 10px;
  padding: 24px 28px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.privacy-item h3 {
  font-size: 1.05rem;
  color: #1e3a5f;
  margin-bottom: 6px;
}

.privacy-item p {
  color: #555;
  line-height: 1.7;
  margin: 0;
}

/* ===== View Transitions ===== */
.view {
  animation: viewFadeIn 0.25s ease;
}

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

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #1e3a5f;
    flex-direction: column;
    padding: 8px 16px 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-link {
    padding: 14px 16px;
    font-size: 1rem;
    border-radius: 8px;
    color: #fff;
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .nav-support-text {
    display: none;
  }

  .nav-support {
    flex: 1;
    justify-content: center;
    font-size: 1.2rem;
  }

  .search-section.sticky {
    position: relative;
    top: auto;
    box-shadow: none;
    padding: 0 24px;
    background: transparent;
  }

  .hero {
    padding: 48px 20px 64px;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 28px;
  }

  .hero-stats {
    gap: 24px;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .search-bar {
    flex-direction: column;
  }

  .search-bar input {
    padding: 14px 16px;
    font-size: 16px; /* Prevents iOS zoom on focus */
  }

  .search-bar .btn {
    width: 100%;
    padding: 14px;
  }

  .filters {
    flex-direction: column;
  }

  .filters select {
    min-width: unset;
    font-size: 16px; /* Prevents iOS zoom on focus */
  }

  .multi-select {
    min-width: unset;
  }

  .multi-select-btn {
    font-size: 16px; /* Prevents iOS zoom on focus */
  }

  .multi-select-dropdown {
    position: fixed;
    left: 16px;
    right: 16px;
    top: auto;
    max-height: 60vh;
    -webkit-overflow-scrolling: touch;
  }

  .multi-select-dropdown label {
    padding: 12px 16px;
    font-size: 1rem;
  }

  .multi-select-dropdown input[type="checkbox"] {
    width: 20px;
    height: 20px;
  }

  .job-card {
    flex-direction: column;
    gap: 12px;
    padding: 16px;
  }

  .job-card:hover {
    transform: none; /* Disable hover lift on touch */
  }

  .job-card-title {
    font-size: 0.95rem;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .job-card-meta {
    gap: 8px;
  }

  .job-card-actions {
    align-self: flex-start;
  }

  .btn-sm {
    padding: 10px 20px;
    min-height: 44px;
  }

  .chip {
    padding: 8px 14px;
    min-height: 44px;
  }

  .position-group-header,
  .alert-region-header {
    padding: 14px 16px;
    min-height: 48px;
  }

  .alert-form-actions {
    flex-direction: column;
  }

  .alert-form-actions .btn {
    width: 100%;
  }

  .contact-box {
    padding: 20px;
  }

  .contact-box textarea {
    min-height: 100px;
  }

  .contact-box input,
  .contact-box textarea {
    font-size: 16px; /* Prevents iOS zoom on focus */
  }

  .form-group input[type="text"],
  .form-group input[type="email"],
  .form-group input[type="url"],
  .form-group select {
    font-size: 16px; /* Prevents iOS zoom on focus */
  }

  .detect-row {
    flex-direction: column;
  }

  .detect-row .btn {
    width: 100%;
    padding: 14px;
  }

  .detect-row input {
    font-size: 16px; /* Prevents iOS zoom on focus */
  }

  .district-grid {
    grid-template-columns: 1fr;
  }

  .page-section {
    margin: 32px auto;
  }

  .page-section h2 {
    font-size: 1.4rem;
  }

  .section-subtitle {
    font-size: 0.95rem;
    margin-bottom: 24px;
  }

  .privacy-item {
    padding: 18px 20px;
  }

  .preview-results-list {
    -webkit-overflow-scrolling: touch;
  }

  .preview-job {
    padding: 12px 16px;
  }

  .preview-job-meta {
    gap: 8px;
  }

  .footer {
    padding: 24px 16px;
  }

  .footer-disclaimer {
    font-size: 0.72rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 36px 16px 52px;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  .search-section {
    padding: 0 12px;
  }

  .search-bar {
    padding: 6px;
  }

  .jobs-container {
    padding: 0 12px;
    margin-top: 24px;
  }

  .page-section {
    padding: 0 12px;
    margin: 24px auto;
  }

  .job-card {
    padding: 14px 12px;
    border-left-width: 3px;
    border-radius: 8px;
  }

  .job-card-title {
    font-size: 0.9rem;
  }

  .job-card-meta {
    font-size: 0.8rem;
    flex-direction: column;
    gap: 4px;
  }

  .tag {
    font-size: 0.7rem;
    padding: 2px 8px;
  }

  .faq-item summary {
    padding: 14px 16px;
    font-size: 0.95rem;
  }

  .faq-item p,
  .faq-item ul {
    padding: 0 16px 14px;
    font-size: 0.9rem;
  }

  .faq-item ul {
    padding-left: 32px;
  }

  .support-card {
    padding: 28px 16px;
  }

  .support-card p {
    font-size: 0.95rem;
  }

  .modal-overlay {
    padding: 16px;
  }

  .modal-card {
    padding: 28px 16px;
  }

  .modal-card h2 {
    font-size: 1.2rem;
  }

  .modal-card p {
    font-size: 0.88rem;
    margin-bottom: 20px;
  }

  .modal-actions .btn {
    max-width: 100%;
  }

  .chips-container {
    gap: 6px;
  }

  .chip {
    font-size: 0.8rem;
    padding: 6px 12px;
    min-height: 40px;
  }
}

/* ===== Toast Notifications ===== */
.toast-container {
  position: fixed;
  top: 72px;
  right: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 380px;
  animation: toastIn 0.3s ease;
}

.toast.toast-success {
  background: #e6f7ed;
  color: #276749;
  border: 1px solid #c6f6d5;
}

.toast.toast-error {
  background: #fee;
  color: #c53030;
  border: 1px solid #feb2b2;
}

.toast-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  opacity: 0.6;
  color: inherit;
  padding: 0 0 0 8px;
  flex-shrink: 0;
}

.toast-close:hover {
  opacity: 1;
}

.toast.toast-out {
  animation: toastOut 0.25s ease forwards;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(40px); }
}

@media (max-width: 768px) {
  .toast-container {
    top: 68px;
    right: 12px;
    left: 12px;
  }

  .toast {
    max-width: 100%;
  }
}

/* ===== Gratitude Modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: modalFadeIn 0.25s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  background: #fff;
  border-radius: 16px;
  padding: 40px 32px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
  animation: modalSlideUp 0.3s ease;
}

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

.modal-card h2 {
  font-size: 1.5rem;
  color: #1e3a5f;
  margin-bottom: 16px;
}

.modal-card p {
  color: #555;
  line-height: 1.7;
  font-size: 1rem;
  margin-bottom: 28px;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.modal-actions .btn {
  width: 100%;
  max-width: 280px;
}

@media (max-width: 480px) {
  .modal-card {
    padding: 32px 20px;
  }
  .modal-card h2 {
    font-size: 1.25rem;
  }
  .modal-card p {
    font-size: 0.9rem;
  }
}
