.feed-page {
  max-width: var(--layout-content);
  margin: 0 auto;
}

.feed-page > .d-flex:first-child {
  position: relative;
  align-items: center !important;
  gap: 1rem;
  padding: 1rem 1.15rem;
  margin-bottom: 1.25rem !important;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}

.feed-page > .d-flex:first-child h1 {
  color: var(--color-text);
  font-size: 1.55rem;
  font-weight: 750;
}

.feed-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius);
  padding: 1.05rem 1.15rem 0.9rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-xs);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.feed-card:hover {
  border-color: #c9d8e3;
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.feed-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  border-radius: 8px 0 0 8px;
  background: linear-gradient(180deg, var(--color-accent), var(--color-mint));
  opacity: 0.7;
}

.feed-card__header {
  margin-bottom: 0.8rem;
}

.feed-card__header-body .feed-card__author-name {
  color: var(--color-text);
}

.feed-card__author-name--official {
  color: var(--color-amber);
}

.feed-card__meta {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.feed-question-box {
  background: var(--color-accent-soft);
  border: 1px solid #d8eaf5;
  border-radius: 8px;
  padding: 0.72rem 0.85rem;
  margin-bottom: 0.8rem;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--color-text-secondary);
}

.feed-question-box__label {
  font-weight: 700;
  color: var(--color-accent-hover);
}

.feed-card__body {
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--color-text);
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 0.75rem;
}

.feed-likes-summary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
  padding: 0.25rem 0.55rem;
  margin-bottom: 0.65rem;
  border-radius: 999px;
  background: var(--color-danger-soft);
  color: var(--color-like);
  font-size: 0.82rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0 0.6rem;
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
  margin-bottom: 0.55rem;
}

.feed-actions__detail {
  flex-shrink: 0;
  font-size: 0.86rem;
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 650;
}

.feed-actions__detail:hover {
  color: var(--color-accent-hover);
}

.feed-comments {
  background: var(--color-surface-subtle);
  border: 1px solid var(--color-border-light);
  border-radius: 8px;
  padding: 0.7rem 0.85rem;
  margin-top: 0.4rem;
  margin-bottom: 0.2rem;
}

.feed-comment {
  font-size: 0.89rem;
  line-height: 1.58;
  margin-bottom: 0.55rem;
  color: var(--color-text-secondary);
}

.feed-comment:last-child {
  margin-bottom: 0;
}

.feed-comment__author {
  font-weight: 700;
  color: var(--color-text);
}

.feed-comment__time {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 0.15rem;
}

.feed-comments__more {
  display: block;
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-accent);
  text-decoration: none;
  padding-top: 0.45rem;
  font-weight: 650;
}

.feed-comments__more:hover {
  color: var(--color-accent-hover);
}

@media (max-width: 576px) {
  .feed-page > .d-flex:first-child {
    align-items: flex-start !important;
    flex-direction: column;
    padding: 1rem;
  }

  .feed-page > .d-flex:first-child h1 {
    font-size: 1.35rem;
  }

  .feed-page > .d-flex:first-child > a.btn {
    width: 100%;
  }

  .feed-page > .d-flex:first-child > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    width: 100%;
  }

  .feed-page > .d-flex:first-child > div .btn {
    width: auto;
    margin: 0 !important;
  }

  .feed-card {
    padding: 0.95rem 1rem 0.85rem;
  }

  .feed-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.45rem;
  }
}
