/* ─────────────────────────────
   Trending Jobs Section
───────────────────────────── */

.trnd-section {
  padding: 1.5rem 0 2rem;
}

/* Header */
.trnd-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.25rem;
}

.trnd-title {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  letter-spacing: -0.3px;
}

.trnd-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #FAECE7;
  color: #993C1D;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  border: 0.5px solid #F0997B;
  letter-spacing: .3px;
}

.trnd-badge-live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #D85A30;
  display: inline-block;
  animation: trnd-pulse 1.4s ease infinite;
}

@keyframes trnd-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.3); }
}

/* Grid */
.trnd-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

/* Card */
.trnd-card {
  display: block;
  text-decoration: none;
  background: #1a1a2e;
  border: 1px solid #2a2a3e;
  border-top: 3px solid var(--cat-color, #4A9EFF);
  border-radius: 14px;
  padding: 1rem 1.125rem 0.9rem;
  position: relative;
  overflow: hidden;
  transition: transform .18s, box-shadow .2s, border-color .2s;
}

.trnd-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,.35);
  border-color: var(--cat-color, #4A9EFF);
}

/* Top row */
.trnd-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.trnd-org-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #2a2a3e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #aaa;
  border: 1px solid #3a3a4e;
}

.trnd-org {
  font-size: 11.5px;
  color: #8888aa;
  margin: 0;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Trending pill */
.trnd-trending-pill {
  background: #2e1a0e;
  color: #f97316;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  border: 0.5px solid #7c3a1a;
}

/* Category */
.trnd-cat-tag {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 20px;
  margin-bottom: 8px;
}

/* Title */
.trnd-job-title {
  font-size: 15px;
  font-weight: 700;
  color: #f0f0f8;
  margin: 0 0 11px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Meta */
.trnd-meta {
  display: flex;
  gap: 6px;
  margin-bottom: 11px;
}

.trnd-chip-vac {
  background: #162a0e;
  color: #6fcf3a;
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 20px;
  border: 0.5px solid #3a6a1a;
}

/* Deadline */
.trnd-deadline {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  border-top: 1px solid #2a2a3e;
  padding-top: 9px;
}

.trnd-deadline-label {
  color: #666688;
}

.trnd-deadline-date {
  color: #c0c0d8;
  font-weight: 600;
}

.trnd-days-pill {
  margin-left: auto;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 20px;
  background: #1e2a3a;
  color: #7ab8f5;
  border: 0.5px solid #2a4a6a;
}

.trnd-days-urgent {
  background: #2e1010;
  color: #ff6b6b;
  border-color: #6a2020;
}

/* Empty */
.trnd-empty {
  text-align: center;
  padding: 2rem;
  color: #666688;
}

/* Skeleton */
.trnd-skeleton {
  height: 185px;
  border-radius: 14px;
  background: linear-gradient(90deg,#1a1a2e,#22223a,#1a1a2e);
  background-size: 200% 100%;
  animation: trnd-shimmer 1.5s infinite;
}

@keyframes trnd-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Pagination */
.trnd-pagination {
  margin-top: 30px;
  text-align: center;
}

.trnd-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  margin: 0 4px;
  border-radius: 8px;
  background: #1a1a2e;
  color: #fff;
  border: 1px solid #2a2a3e;
  text-decoration: none;
}

.trnd-pagination .current {
  background: #D85A30;
  border-color: #D85A30;
}

/* Responsive */
@media (max-width: 1024px) {
  .trnd-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 600px) {
  .trnd-title { font-size: 20px; }
  .trnd-grid { grid-template-columns: 1fr; }
}