/* ── Resource groups ───────────────────────────────────────────────── */
.res-group {
  margin-bottom: 2.5rem;
}
.res-group-title {
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

/* ── Resource items ─────────────────────────────────────────────────── */
.res-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  text-decoration: none !important;
  color: inherit;
  transition: border-color .15s, box-shadow .15s;
  height: 100%;
}
.res-item:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px -6px rgba(79,70,229,.15);
  text-decoration: none !important;
}
.res-item .tag {
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.res-item .tag.local { background: #dcfce7; color: #166534; }
.res-item .tag.link  { background: #dbeafe; color: #1e40af; }
.res-item .tag.pdf   { background: #fee2e2; color: #991b1b; }
.res-item .tag.video { background: #fce7f3; color: #9f1239; }
.res-item .tag.tool  { background: #ede9fe; color: #5b21b6; }
.res-item .tag.htb   { background: #d1fae5; color: #065f46; }

.res-item .res-title {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.93rem;
  line-height: 1.4;
}
.res-item:hover .res-title { color: var(--accent); }
.res-item .res-sub {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 0.2rem;
  line-height: 1.45;
}

/* ── Featured card (LiveOverflow) ─────────────────────────────────── */
.res-featured {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.25rem 1.4rem;
  background: #0b1120;
  border: 1px solid #1e293b;
  border-radius: 14px;
  margin-bottom: 1rem;
  text-decoration: none !important;
  color: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.res-featured:hover {
  border-color: #ef4444;
  box-shadow: 0 8px 32px -12px rgba(239,68,68,.3);
  text-decoration: none !important;
}
.res-featured-logo {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: #ef4444;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.res-featured-logo svg { display: block; }
.res-featured-body { flex: 1; min-width: 0; }
.res-featured-body .eyebrow {
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #64748b;
  margin-bottom: 0.25rem;
}
.res-featured-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #e2e8f0;
  margin: 0 0 0.35rem;
}
.res-featured-sub {
  color: #94a3b8;
  font-size: 0.88rem;
  line-height: 1.55;
  margin: 0 0 0.6rem;
}
.res-featured-cta {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: #ef4444;
  font-weight: 600;
}

/* ── HackTheBox featured card ─────────────────────────────────────── */
.res-featured.htb-featured {
  background: #0d1117;
  border-color: #1a2a1a;
}
.res-featured.htb-featured:hover {
  border-color: #9fef00;
  box-shadow: 0 8px 32px -12px rgba(159,239,0,.2);
}
.res-featured.htb-featured .res-featured-cta { color: #9fef00; }
.res-featured.htb-featured .res-featured-logo {
  background: #111;
  border: 1px solid #2a3a2a;
}
