.card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(31, 38, 135, 0.12);
}

.iconWrap {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-light) 0%, rgba(219, 234, 254, 0.5) 100%);
  border-radius: var(--radius-sm);
  color: var(--primary);
  margin-bottom: 20px;
}

.title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.description {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  flex: 1;
  margin-bottom: 24px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 36px;
}

.countMeta {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  height: 36px;
  max-width: calc(100% - 48px);
  padding: 0 14px;
  box-sizing: border-box;
  border-radius: 999px;
  background: rgba(var(--primary-rgb) / 0.1);
  color: var(--primary);
  transition:
    background 0.35s ease,
    color 0.35s ease;
}

.countValue {
  font-family: var(--font-en), var(--font-ui), sans-serif;
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1;
  color: inherit;
}

.countLabel {
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  color: inherit;
  opacity: 0.85;
}

.card:hover .countMeta {
  background: var(--primary);
  color: white;
}

.card:hover .countLabel {
  opacity: 0.95;
}

.arrowBtn {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(var(--primary-rgb) / 0.1);
  color: var(--primary);
  transition:
    background 0.35s ease,
    color 0.35s ease;
}

.arrowIcon {
  display: block;
}

.card:hover .arrowBtn {
  background: var(--primary);
  color: white;
}

:global([dir='rtl']) .arrowBtn {
  transform: scaleX(-1);
}
