/* Extra decorative overlays for HourlyJobs */
/* Adds additional soft blobs on the left of hero and right of jobs */
.hero{position:relative}
.hero::before {
  content: "";
  position: absolute;
  left: -120px;
  top: -40px;
  width: 320px;
  height: 480px;
  background: radial-gradient(circle at 40% 30%, rgba(24,119,242,0.08), rgba(24,119,242,0.02) 50%, transparent 70%);
  filter: blur(44px);
  z-index: 1;
  pointer-events: none;
}

.jobs{position:relative}
.jobs::after {
  content: "";
  position: absolute;
  right: -140px;
  bottom: -40px;
  width: 420px;
  height: 520px;
  background: radial-gradient(circle at 60% 40%, rgba(15,102,214,0.06), rgba(24,119,242,0.01) 55%, transparent 75%);
  filter: blur(44px);
  z-index: 1;
  pointer-events: none;
}

/* Mobile menu and mobile-first tweaks */
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #1877f2;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(7,17,51,0.6);
  display: none;
  z-index: 2000;
}
.mobile-menu[aria-hidden="false"] { display: block; }
.mobile-menu-inner {
  background: #fff;
  width: 80%;
  max-width: 320px;
  height: 100%;
  padding: 18px;
  box-shadow: 0 20px 60px rgba(2,6,23,0.2);
}
.mobile-menu-close {
  background: transparent;
  border: none;
  font-size: 20px;
  float: right;
  cursor: pointer;
}
.mobile-link {
  display: block;
  padding: 12px 0;
  color: #071133;
  text-decoration: none;
  font-weight:700;
}

@media (max-width: 768px) {
  .mobile-menu-btn { display: block; }
  .main-nav { display: none; }
  .hero-right { display: none; }
  .hero { padding: 18px 0; flex-direction:column; gap:12px; align-items:stretch; }
  .hero-left { width: 100%; }
  .hero-left h1 { font-size: 28px; line-height:1.06; margin-bottom:10px; }
  .container { padding: 0 16px; }
  .jobs { display: block; padding: 12px 0 40px; }
  .jobs-list { margin-bottom: 12px; }
  .job-card { padding: 12px; border-radius: 12px; width: 100%; box-sizing: border-box; display:flex; align-items:center; justify-content:space-between; gap:12px; }
  .job-card .logo-circle { margin-right: 10px; flex: 0 0 44px; width:44px;height:44px; }
  .job-info { flex:1; margin-right:8px; }
  .job-title { font-size: 15px; }
  .job-company { font-size: 13px; margin-top:4px; }
  .job-meta { font-size: 12px; margin-top:8px; color:#6b7280 }
  .salary-pill { flex: 0 0 auto; margin-left:8px; min-width:72px; text-align:center; }
  .logo-circle img { width: 28px; height: 28px; }
  .job-panel { padding: 16px; margin: 12px 0 24px; border-radius: 12px; }
  .featured-hero-card { width: 100%; margin: 10px 0 12px; }
  .mini-hero-card { display:block; margin-bottom:12px; }
  .check-list { gap:18px }
  .check-item { gap:18px }
  .check-dot { width:40px; height:40px; }
  .apply-btn {
    width: 100%;
    padding: 12px 18px;
    font-size: 15px;
    border-radius: 999px;
    display: block;
    box-sizing: border-box;
    text-align: center;
  }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; gap:12px; padding:18px 12px; }
  .partners-logos { flex-wrap:wrap; justify-content:center; gap:10px; }
  .partner-logo { padding:8px 10px; }
  .partner-logo img,
  .partner-logo svg {
    height: 34px;
    width: auto;
    object-fit: contain;
    display: block;
    max-width: 140px;
  }
  body::before, body::after { display: none; }
}

/* Prevent horizontal overflow and ensure central container alignment */
html, body {
  overflow-x: hidden;
}
.container {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
}

/* Also ensure decorative pseudo-elements do not expand viewport */
.hero::before, .jobs::after, body::before, body::after {
  max-width: none;
  pointer-events: none;
  will-change: transform;
}

/* Ensure key sections are centered on narrow screens */
@media (max-width: 768px) {
  .hero-left, .jobs-list, .job-panel, .featured-hero-card, .mini-hero-card, .how-it-works {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
  }
  .jobs { padding-left: 0; padding-right: 0; }
  .jobs-list { width: 100%; }
}

/* Feature cards styles (appended) */
.features { padding: 18px 0; }
.features-inner { display:flex; gap:20px; justify-content:space-between; align-items:stretch; max-width:1100px; margin:0 auto; }
.feature-card { flex:1; display:flex; gap:14px; align-items:center; background:#fff; border-radius:12px; padding:16px; border:1px solid rgba(14,165,233,0.06); box-shadow:0 12px 30px rgba(2,6,23,0.04); min-height:96px; }
.feature-icon { width:56px; height:56px; border-radius:12px; display:flex; align-items:center; justify-content:center; flex:0 0 56px; box-shadow:0 8px 20px rgba(2,6,23,0.04); }
.feature-body h3 { margin:0 0 6px 0; font-size:15px; color:#071133; font-weight:800; }
.feature-body p { margin:0; font-size:13px; color:#475569; line-height:1.3; }
.fc-vetted .feature-icon { background:linear-gradient(180deg,#fff,#eef6ff); border:1px solid rgba(24,119,242,0.08); }
.fc-unbiased .feature-icon { background:linear-gradient(180deg,#fff,#eef9ff); border:1px solid rgba(10,132,255,0.06); }
.fc-quality .feature-icon { background:linear-gradient(180deg,#fff,#fff6f5); border:1px solid rgba(255,107,74,0.06); }

@media (max-width: 900px) {
  .features-inner { flex-direction:column; gap:12px; padding: 0 12px; }
  .feature-card { padding:14px; min-height:84px; }
  .feature-icon { width:48px; height:48px; flex:0 0 48px; border-radius:10px; }
}

/* Visual hero illustration and mockup cards */
/* hero visual removed per user request (mockup cards / illustration) */

/* Hero image / media styles (header.jpg) */
.hero { align-items: center; }
.hero-media { margin-top: 18px; display: flex; justify-content: center; width: 100%; }
.hero-header-img { width: 100%; max-width: 560px; border-radius: 12px; box-shadow: 0 20px 50px rgba(2,6,23,0.06); display: block; object-fit: cover; }

@media (max-width: 768px) {
  .hero { align-items: flex-start; }
  .hero-header-img { max-width: 100%; border-radius: 10px; }
}

/* Mobile job detail modal styles */
.mobile-job-modal { display: none; }
.mobile-job-modal[aria-hidden="false"] { display: block; position: fixed; inset: 0; z-index: 4000; }
.mobile-job-overlay { position: absolute; inset: 0; background: rgba(2,6,23,0.45); }
.mobile-job-card {
  position: absolute;
  left: 50%;
  top: 6%;
  transform: translateX(-50%);
  width: 94%;
  max-width: 720px;
  max-height: 88vh;
  overflow: auto;
  background: #ffffff;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 30px 80px rgba(2,6,23,0.2);
  border: 1px solid rgba(14,165,233,0.04);
}
.mobile-job-close {
  position: absolute;
  right: 12px;
  top: 10px;
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
}
.mobile-job-content { padding-top: 6px; }

@media (min-width: 769px) {
  .mobile-job-modal { display: none !important; }
}

/* Application modal styles */
.apply-modal { display: none; }
.apply-modal[aria-hidden="false"] { display: block; position: fixed; inset: 0; z-index: 4500; }
.apply-overlay { position: absolute; inset: 0; background: rgba(2,6,23,0.55); }
.apply-dialog {
  position: absolute;
  left: 50%;
  top: 8%;
  transform: translateX(-50%);
  width: 92%;
  max-width: 560px;
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 30px 80px rgba(2,6,23,0.28);
  border: 1px solid rgba(14,165,233,0.06);
}
.apply-close {
  position: absolute;
  right: 12px;
  top: 10px;
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
}
.apply-inner { position: relative; z-index: 2; }
.apply-inner h3 { margin: 0 0 10px 0; font-size: 18px; color: #071133; }
.apply-inner .field { margin-bottom: 12px; display:flex;flex-direction:column;gap:6px; }
.apply-inner label { font-weight:700; font-size:13px; color:#0f172a; }
.apply-inner input[type="text"],
.apply-inner input[type="email"],
.apply-inner input[type="date"],
.apply-inner textarea {
  padding:10px 12px;border-radius:10px;border:1px solid #e6eef6;background:#fff;font-size:14px;
}
.apply-inner textarea { resize:vertical; min-height:90px; }
.apply-actions { display:flex;gap:10px;justify-content:flex-end;margin-top:6px; }
.apply-success { text-align:center;padding:14px 6px;background:#f0fdf4;border-radius:8px;color:#065f46;margin-top:10px; }

@media (max-width: 480px) {
  .apply-dialog { top: 4%; max-width: 96%; padding: 14px; border-radius: 10px; }
  .apply-inner h3 { font-size: 16px; }
  .apply-actions { flex-direction:column-reverse; gap:8px; }
  .apply-actions .btn { width: 100%; }
}
