:root {
  --bg: rgba(255, 255, 255, 0.95);
  --accent: #7c2be6;
  --accent-2: #9b4dff;
  --muted: #777;
  --card-width: 260px;
  --radius: 12px;
  --shadow: 0 6px 18px rgba(12, 12, 20, 0.12);
  font-family: "Poppins", Arial, sans-serif;
}

html,
body {
  height: 100%;
  margin: 0;
  background: url("https://s1.cdn.autoevolution.com/images/news/bmw-ranked-most-reputable-company-in-2015-by-the-reputation-institute-94702_1.jpg")
    center/cover fixed no-repeat;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 18px;
  box-sizing: border-box;
}

.container {
  width: 100%;
  max-width: 1200px;
}

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
}

.card {
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 420px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.card .thumb {
  height: 160px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.card .thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.2));
}

.card .meta {
  padding: 12px 14px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.meta i {
  margin-right: 6px;
  color: var(--muted);
}

.card .content {
  padding: 14px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #222;
}

.card h3 {
  margin: 0;
  font-size: 18px;
  color: #222;
}

.card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #444;
  flex: 1 1 auto;
}

.card .footer {
  padding: 14px;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.btn {
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  border: 2px solid var(--accent);
  background: transparent;
  color: var(--accent);
  transition: all 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
  background: rgba(124, 43, 230, 0.1);
}

.btn.fill {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(124, 43, 230, 0.18);
}

@media (max-width: 540px) {
  body {
    padding: 18px 12px;
  }
  .card {
    min-height: 480px;
  }
  .card .thumb {
    height: 180px;
  }
}
