/* Learn page styles (cards grid) */
:root {
  --primary: #1FB8FB;
  --text: #fff;
  --text-subtle: rgba(255,255,255,0.8);
  --bg-card: rgba(15, 15, 20, 0.6);
  --border: rgba(255,255,255,0.12);
}

.learn-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 20px 96px;
}

.learn-header {
  text-align: center;
  margin-bottom: 40px;
}

.learn-title {
  font-size: 2.6rem;
  margin-bottom: 14px;
  color: var(--text);
}

.learn-description {
  font-size: 1.1rem;
  color: var(--text-subtle);
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.7;
}

.learn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.learn-card {
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  box-shadow: 0 10px 24px rgba(0,0,0,0.24);
  display: flex;
  flex-direction: column;
}

.learn-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(0,0,0,0.3), 0 0 10px rgba(31,184,251,0.2);
  border-color: rgba(31,184,251,0.3);
}

.learn-card-image {
  height: 200px;
  overflow: hidden;
}
.learn-card-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.learn-card:hover .learn-card-image img { transform: scale(1.05); }

.learn-card-content {
  padding: 22px;
  display: grid;
  gap: 12px;
  flex-grow: 1;
}

.learn-card-title {
  font-size: 1.2rem;
  margin: 0;
  line-height: 1.4;
}
.learn-card-title a { color: var(--text); text-decoration: none; }
.learn-card-title a:hover { color: var(--primary); }

.learn-card-meta {
  font-size: .9rem;
  color: rgba(255,255,255,0.6);
}

.learn-card-excerpt {
  color: var(--text-subtle);
  line-height: 1.6;
  margin-bottom: 6px;
}

.learn-card-link {
  justify-self: start;
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(31,184,251,0.18);
  border: 1px solid rgba(31,184,251,0.35);
  color: var(--primary);
  text-decoration: none;
  transition: background .25s ease, transform .25s ease;
}
.learn-card-link:hover {
  background: rgba(31,184,251,0.28);
  transform: translateY(-2px);
}

/* Empty state */
.no-articles {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .learn-title { font-size: 2.2rem; }
  .learn-grid { grid-template-columns: 1fr; }
  .learn-card-image { height: 180px; }
}
