/* ── LJN Related Jobs Plugin — Frontend Styles ── */

/* ════ SHARED SECTION WRAPPER ════ */
.ljn-section {
  margin: 44px 0 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.ljn-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 12px;
  flex-wrap: wrap;
}

.ljn-section-title {
  font-size: 20px !important;
  font-weight: 800 !important;
  color: #0B1F3A !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  align-items: center;
  gap: 8px;
  border: none !important;
}

.ljn-section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 22px;
  background: #F97316;
  border-radius: 3px;
  flex-shrink: 0;
}

.ljn-section-desc {
  font-size: 14px;
  color: #475569;
  margin: -8px 0 18px;
  line-height: 1.6;
}

.ljn-see-all {
  font-size: 12.5px;
  color: #F97316;
  font-weight: 700;
  border: 1.5px solid #F97316;
  border-radius: 6px;
  padding: 4px 13px;
  text-decoration: none;
  transition: all .18s;
  white-space: nowrap;
}
.ljn-see-all:hover { background: #F97316; color: white !important; }


/* ════ SECTION 1: RELATED JOBS ════ */
.ljn-related-jobs {}

.ljn-jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}

.ljn-job-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  transition: all .2s ease;
  overflow: hidden;
}

.ljn-job-card:hover {
  border-color: #F97316;
  box-shadow: 0 4px 20px rgba(249,115,22,0.12);
  transform: translateY(-2px);
}

.ljn-job-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.ljn-job-card-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}

/* Job logo box */
.ljn-job-logo {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
  text-align: center;
  letter-spacing: -0.5px;
  background: #0B1F3A;
}
.ljn-logo-railway  { background: #1d4ed8; }
.ljn-logo-banking  { background: #065f46; }
.ljn-logo-upsc     { background: #7c2d12; }
.ljn-logo-ssc      { background: #4c1d95; }
.ljn-logo-state    { background: #0c4a6e; }
.ljn-logo-defence  { background: #374151; }
.ljn-logo-medical  { background: #065f46; }
.ljn-logo-navy     { background: #0B1F3A; }

.ljn-job-info {
  flex: 1;
  min-width: 0;
}

.ljn-job-cat {
  font-size: 10.5px;
  color: #94A3B8;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 2px;
}

.ljn-job-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #0B1F3A;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
}

.ljn-job-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.ljn-pill {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
}
.ljn-pill-blue { background: #E0F2FE; color: #0369a1; }
.ljn-pill-gold { background: #FEF9C3; color: #854d0e; }
.ljn-pill-red  { background: #FEE2E2; color: #DC2626; }
.ljn-blink { animation: ljnBlink 1.2s ease-in-out infinite; }
@keyframes ljnBlink { 0%,100%{opacity:1} 50%{opacity:.6} }

.ljn-apply-mini {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  background: #F97316;
  color: white !important;
  border-radius: 6px;
  padding: 6px 13px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background .18s;
  white-space: nowrap;
}
.ljn-apply-mini:hover { background: #ea6c0a; }


/* ════ SECTION 2: SAMPLE PAPERS ════ */
.ljn-sample-papers {}

.ljn-papers-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.ljn-paper-card {
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all .18s;
}

.ljn-paper-card:hover {
  border-color: #0D9488;
  box-shadow: 0 2px 12px rgba(13,148,136,0.1);
}

.ljn-paper-icon {
  font-size: 26px;
  flex-shrink: 0;
  width: 44px;
  text-align: center;
}

.ljn-paper-info {
  flex: 1;
  min-width: 0;
}

.ljn-paper-name {
  font-size: 14px;
  font-weight: 700;
  color: #0B1F3A;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ljn-paper-type {
  font-size: 11.5px;
  color: #94A3B8;
  font-weight: 600;
}

.ljn-paper-btn {
  flex-shrink: 0;
  background: #0D9488;
  color: white !important;
  border-radius: 7px;
  padding: 8px 16px;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  transition: background .18s;
  white-space: nowrap;
}
.ljn-paper-btn:hover { background: #0f766e; }

.ljn-papers-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #F0FDFA;
  border: 1px solid #99F6E4;
  border-radius: 8px;
  font-size: 13px;
  flex-wrap: wrap;
}
.ljn-papers-cta span { color: #134E4A; font-weight: 600; }
.ljn-papers-cta a {
  color: #0D9488 !important;
  font-weight: 700;
  text-decoration: none;
}
.ljn-papers-cta a:hover { text-decoration: underline; }


/* ════ SECTION 3: AI TOOLS ════ */
.ljn-ai-tools {}

.ljn-ai-banner {
  background: linear-gradient(135deg, #0f2744 0%, #1E3F6F 100%);
  border-radius: 14px;
  padding: 26px 28px;
  border: 1px solid rgba(249,115,22,0.25);
}

.ljn-ai-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.ljn-ai-title {
  font-size: 18px !important;
  font-weight: 800 !important;
  color: white !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}
.ljn-ai-title::before { display: none !important; }

.ljn-ai-exclusive {
  background: #0D9488;
  color: white;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: .5px;
}

.ljn-ai-subtitle {
  font-size: 13px;
  color: #94A3B8;
  margin: 0 0 20px !important;
}

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

.ljn-ai-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  transition: all .2s;
}

.ljn-ai-card:hover {
  background: rgba(249,115,22,0.12);
  border-color: rgba(249,115,22,0.45);
  transform: translateY(-2px);
}

.ljn-ai-card-icon {
  font-size: 26px;
  flex-shrink: 0;
}

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

.ljn-ai-card-name {
  font-size: 13.5px;
  font-weight: 700;
  color: white;
  margin-bottom: 3px;
}

.ljn-ai-card-desc {
  font-size: 12px;
  color: #94A3B8;
  line-height: 1.4;
  margin-bottom: 5px;
}

.ljn-ai-badge {
  display: inline-block;
  font-size: 10px;
  background: rgba(22,163,74,0.25);
  color: #86EFAC;
  padding: 2px 7px;
  border-radius: 3px;
  font-weight: 700;
}

.ljn-ai-arrow {
  color: rgba(255,255,255,0.3);
  font-size: 18px;
  flex-shrink: 0;
  transition: color .18s;
}
.ljn-ai-card:hover .ljn-ai-arrow { color: #F97316; }


/* ════ RESPONSIVE ════ */
@media (max-width: 640px) {
  .ljn-jobs-grid { grid-template-columns: 1fr; }
  .ljn-ai-grid   { grid-template-columns: 1fr; }
  .ljn-job-title { white-space: normal; }
  .ljn-paper-card { flex-wrap: wrap; }
  .ljn-paper-btn { width: 100%; text-align: center; }
  .ljn-ai-banner { padding: 18px; }
  .ljn-apply-mini { display: none; }
  .ljn-section-title { font-size: 17px !important; }
}

/* ── Result / Admit teal button variant ── */
.ljn-apply-mini.ljn-apply-teal { background: #0D9488; }
.ljn-apply-mini.ljn-apply-teal:hover { background: #0f766e; }

/* ── Green pill for result OUT ── */
.ljn-pill-green { background: #DCFCE7; color: #166534; }
