/* ============================================================
   BitHuB — Card Component | Professional Enterprise v4.0
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: #0c0c0c;
  color: #f0f0f0;
  width: 100%;
}

/* ── Card Container ─────────────────────────────────────── */
.card-container {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  gap: 0;
  padding: 0;
  background: transparent;
  max-width: 1600px;
  margin: 0 auto;
  border-left: 1px solid #1e1e1e;
  border-top: 1px solid #1e1e1e;
}

#content { display: flex; flex-direction: column; }

/* ── Card — flat, sharp ─────────────────────────────────── */
.card {
  background: #0c0c0c;
  border: none;
  border-right: 1px solid #1e1e1e;
  border-bottom: 1px solid #1e1e1e;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  /* Fluid width: scales with viewport like course cards */
  width: clamp(180px, 22vw, 280px);
  height: auto;
  padding: 0;
  transition: background 0.14s ease;
  position: relative;
  min-width: 0;
}

/* Left accent on hover */
.card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: #4a90d9;
  opacity: 0;
  transition: opacity 0.14s ease;
}

.card:hover { background: #111; }
.card:hover::before { opacity: 1; }

/* ── Card Image ─────────────────────────────────────────── */
.card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #1e1e1e;
  filter: grayscale(0.2);
  transition: filter 0.2s ease;
}

.card:hover .card-image { filter: grayscale(0); }

/* ── Card Content ───────────────────────────────────────── */
.card-content {
  padding: clamp(10px, 1.5vw, 16px) clamp(10px, 1.5vw, 16px) clamp(8px, 1.2vw, 14px);
}

.card-title {
  font-size: clamp(11px, 1.1vw, 13px);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #f0f0f0;
  margin-bottom: 6px;
  text-decoration: none;
  word-break: break-word;
}

.card-description {
  font-size: clamp(10px, 1vw, 12px);
  color: #555;
  line-height: 1.6;
  margin-bottom: clamp(10px, 1.2vw, 14px);
}

/* ── Card Link ──────────────────────────────────────────── */
.card-link {
  color: #6aabf0;
  text-decoration: none;
  font-size: clamp(10px, 1vw, 12px);
  font-weight: 500;
  transition: color 0.14s ease;
}

.card-link:hover { color: #f0f0f0; }

/* ── Button ─────────────────────────────────────────────── */
.button {
  display: inline-block;
  padding: 8px 18px;
  color: #0c0c0c;
  background: #f0f0f0;
  border: none;
  border-radius: 0;
  font-size: 11px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.14s ease;
}

.button:hover { background: #cccccc; }

.clicklink:hover { color: #f0f0f0; }

/* ── Responsive ─────────────────────────────────────────── */
/* Cards scale via clamp() above; only flex-direction changes on very small screens */
@media (max-width: 480px) {
  .card { width: 100%; }
  .card-container { flex-direction: column; }
}