html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* CONTENT PAGE GRID */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  align-items: start;
}

/* ARTICLE CARD */
.article-card {
  background: #0b1020;
  border-radius: 16px;
  padding: 18px;
  text-decoration: none;
  color: white;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* IMAGE */
.content-grid .article-image {
  width: 100%;
  height: 140px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  margin-bottom: 6px;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

/* TAG */
.content-grid .article-tag {
  align-self: flex-start;
  font-size: 0.75rem;
  background: rgba(140, 82, 255, 0.15);
  color: #b48cff;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(139,92,246,0.35);
}



/* TEXT */
.article-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
}

.article-card p {
  font-size: 0.95rem;
  color: #9ca3af;
  line-height: 1.6;
}

.featured-articles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.featured-articles .article-card {
  transform: translateY(0);
}

.featured-articles .article-card:nth-child(2) {
  transform: translateY(-12px);
}

.view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 3rem;
  font-weight: 500;
  color: #e9d5ff;
}

.view-all::after {
  content: "→";
  transition: transform 0.2s ease;
}

.view-all:hover::after {
  transform: translateX(4px);
}

.learn-grow {
  background:
    radial-gradient(
      circle at top,
      rgba(255,255,255,0.06),
      transparent 60%
    ),
    linear-gradient(180deg, #7c3aed, #6d28d9);
}

/* Force neutral content cards (no purple bleed) */
.content-grid > a,
.content-grid .article-card,
.content-grid .article-card-link {
  background: linear-gradient(180deg, #0f172a, #0b1220);
  border-radius: 18px;
  padding: 24px;
  color: inherit;
  text-decoration: none;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.content-grid > a:hover,
.content-grid .article-card:hover,
.content-grid .article-card-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
