/* Compact JobGara job cards + homepage polish */

.jg-job-card {
  background: #fff !important;
  border: 1px solid #e6ebf2 !important;
  border-radius: 12px !important;
  padding: 0.7rem 0.8rem !important;
  height: auto !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 0.7rem !important;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04) !important;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
  position: relative;
  overflow: hidden;
}

.jg-job-card:hover {
  transform: translateY(-1px);
  border-color: rgba(21, 94, 239, 0.3) !important;
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.08) !important;
}

.jg-job-card.is-expired {
  opacity: 0.72;
}

.jg-job-logo-wrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f4f7fb;
  border: 1px solid #e8edf5;
  overflow: hidden;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
}

.jg-job-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.jg-job-main {
  min-width: 0;
  flex: 1;
}

.jg-job-headline {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.jg-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}

.jg-chip-success { background: #ecfdf3; color: #067647; }
.jg-chip-danger { background: #fef3f2; color: #b42318; }
.jg-chip-warn { background: #fffaeb; color: #b54708; }
.jg-chip-muted { background: #f2f4f7; color: #475467; }

.jg-job-title-link {
  text-decoration: none !important;
  color: inherit;
  min-width: 0;
  flex: 1;
}

.jg-job-title {
  font-size: 0.92rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  line-height: 1.3 !important;
  margin: 0 !important;
  color: var(--jg-text, #101828) !important;
  white-space: nowrap !important;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100% !important;
}

.jg-job-title-link:hover .jg-job-title {
  color: var(--jg-primary, #155eef) !important;
}

.jg-job-company {
  display: block;
  color: var(--jg-text-muted, #667085) !important;
  font-weight: 600;
  font-size: 0.78rem;
  text-decoration: none !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100% !important;
  margin-top: 0.08rem;
}

.jg-job-company:hover {
  color: var(--jg-primary, #155eef) !important;
}

.jg-job-meta-line {
  margin: 0.15rem 0 0;
  color: #667085;
  font-size: 0.74rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jg-job-meta-line i {
  color: var(--jg-primary, #155eef);
  margin-right: 0.15rem;
}

.jg-job-date {
  color: #98a2b3;
  font-weight: 600;
}

.jg-job-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--jg-primary, #155eef) !important;
  text-decoration: none !important;
  white-space: nowrap;
  padding: 0.32rem 0.65rem;
  border-radius: 8px;
  background: var(--jg-primary-light, #eef4ff);
}

.jg-job-cta:hover {
  background: #dbe7ff;
}

.jg-job-tags,
.jg-job-card-foot,
.jg-job-card-top,
.jg-job-card-badges {
  display: none;
}

/* Homepage */
.jg-home-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(3.2rem, 6vw, 5.2rem);
  background:
    radial-gradient(ellipse 70% 55% at 12% 18%, rgba(245, 179, 1, 0.22), transparent 55%),
    radial-gradient(ellipse 55% 45% at 92% 8%, rgba(21, 94, 239, 0.4), transparent 50%),
    linear-gradient(148deg, #070b16 0%, #0f2554 42%, #155eef 100%);
}

.jg-home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.035'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.jg-home-hero .container {
  position: relative;
  z-index: 1;
  max-width: 920px;
}

.jg-home-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.15rem;
}

.jg-home-hero h1 {
  color: #fff !important;
  font-size: clamp(2.4rem, 6vw, 3.7rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.05;
  margin: 0 0 0.95rem;
}

.jg-home-hero h1 span {
  color: var(--jg-accent, #f5b301);
}

.jg-home-hero .lead {
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  max-width: 36rem;
  margin: 0 auto 1.7rem;
  line-height: 1.55;
}

.jg-home-search {
  background: #fff;
  border-radius: 18px;
  padding: 0.55rem;
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
  max-width: 720px;
  margin: 0 auto;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.25);
}

.jg-home-search .form-control {
  border: none !important;
  box-shadow: none !important;
  min-height: 52px !important;
  font-size: 1rem !important;
  flex: 1;
  border-radius: 12px !important;
  min-width: 0;
}

.jg-home-search .jg-btn {
  min-height: 52px;
  padding-left: 1.35rem;
  padding-right: 1.35rem;
  border-radius: 12px !important;
  white-space: nowrap;
}

.jg-home-quick {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.2rem;
}

.jg-home-quick a {
  color: rgba(255, 255, 255, 0.9) !important;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none !important;
}

.jg-home-quick a:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff !important;
}

.jg-home-trust {
  background: #fff;
  border-bottom: 1px solid var(--jg-border, #e4e7ec);
  padding: 1.25rem 0;
}

.jg-home-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  text-align: center;
}

.jg-home-trust-item strong {
  display: block;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.jg-home-trust-item span {
  color: var(--jg-text-muted, #667085);
  font-size: 0.82rem;
  font-weight: 600;
}

.jg-home-section {
  padding: clamp(2.5rem, 5vw, 3.6rem) 0;
}

.jg-home-section.alt {
  background: #fff;
  border-top: 1px solid var(--jg-border, #e4e7ec);
  border-bottom: 1px solid var(--jg-border, #e4e7ec);
}

.jg-home-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.jg-home-head h2 {
  margin: 0 0 0.3rem;
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.jg-home-head p {
  margin: 0;
  color: var(--jg-text-muted, #667085);
}

.jg-how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.jg-how-card {
  background: #fff;
  border: 1px solid var(--jg-border, #e4e7ec);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: var(--jg-shadow);
  position: relative;
  overflow: hidden;
}

.jg-how-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--jg-primary, #155eef), var(--jg-accent, #f5b301));
}

.jg-how-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 1rem;
}

.jg-how-card ol {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--jg-text-muted, #667085);
}

.jg-how-card li {
  margin-bottom: 0.65rem;
  line-height: 1.5;
}

.jg-how-card a {
  font-weight: 700;
}

.jg-cta-band {
  background: linear-gradient(135deg, #0b1220, #155eef);
  border-radius: 20px;
  padding: clamp(1.4rem, 3vw, 2.1rem);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  box-shadow: 0 18px 40px rgba(21, 94, 239, 0.22);
}

.jg-cta-band h2 {
  color: #fff !important;
  margin: 0 0 0.35rem;
  font-size: 1.4rem;
  font-weight: 800;
}

.jg-cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
}

.jg-cta-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.jg-employer-card {
  flex: 0 0 auto;
  width: 168px;
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid #e6ebf2;
  border-radius: 14px;
  padding: 0.9rem 0.8rem 1rem;
  text-align: center;
  text-decoration: none !important;
  color: inherit;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.jg-employer-card:hover {
  transform: translateY(-2px);
  border-color: rgba(21, 94, 239, 0.28);
  box-shadow: 0 10px 22px rgba(16, 24, 40, 0.08);
  color: inherit;
}

.jg-employer-card img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #e8edf5;
  background: #f8fafc;
  margin: 0 auto 0.55rem;
  display: block;
}

.jg-employer-card strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jg-employer-card em {
  display: block;
  margin-top: 0.2rem;
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--jg-text-muted, #667085);
}

@media (max-width: 991.98px) {
  .jg-home-trust-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767.98px) {
  .jg-job-card {
    align-items: flex-start !important;
  }

  .jg-job-meta-line {
    white-space: normal;
  }

  .jg-home-search {
    flex-direction: column;
  }

  .jg-how-grid {
    grid-template-columns: 1fr;
  }

  .jg-job-cta {
    display: none !important;
  }

  .jg-home-trust-item strong {
    font-size: 1.2rem;
  }
}
