.page-title {
  margin-top: 30px;
  font-size: 42px;
}

.subtitle {
  color: #cbd5f5;
  margin-bottom: 30px;
  font-size: 18px;
}

.posts {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px;
}

.posts-section {
  width: 100%;
  margin-bottom: 40px;
  text-align: left;
}

.posts-section h2 {
  margin-bottom: 18px;
  font-size: 32px;
  color: #e2e8f0;
  border-bottom: 1px solid #334155;
  padding-bottom: 10px;
}

.post-card.placeholder {
  opacity: 0.9;
}

.post-card {
  background: #1e293b;
  padding: 22px;
  border-radius: 14px;
  width: 280px;
  text-align: left;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.post-card h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.post-card p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 12px;
}

.post-card a {
  display: inline-block;
  margin-top: 10px;
  color: #22c55e;
  text-decoration: none;
  font-weight: bold;
}

.post-card a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .page-title {
    font-size: 34px;
  }

  .posts {
    padding: 16px;
  }

  .post-card {
    width: 100%;
    max-width: 340px;
  }
}.compact-posts .posts {
  display: block;
  padding: 0;
}

.compact-posts .post-card {
  width: 100%;
  max-width: 760px;
  margin: 0 auto 14px;
  padding: 18px 20px;
}

.compact-posts .post-card.collapsible {
  cursor: default;
}

.compact-posts .post-card .card-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: none;
  color: white;
  font-size: 18px;
  padding: 0;
  text-align: left;
}

.compact-posts .post-card .card-header:focus {
  outline: 2px solid #22c55e;
  outline-offset: 4px;
}

.compact-posts .card-icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border: 1px solid #334155;
  border-radius: 50%;
  transition: transform 0.25s ease;
}

.compact-posts .post-card.expanded .card-icon {
  transform: rotate(45deg);
}

.compact-posts .card-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding-top: 0;
}

.compact-posts .post-card.expanded .card-body {
  max-height: 240px;
  padding-top: 12px;
}

.compact-posts .card-body p {
  margin: 0;
  color: #cbd5f5;
}

.compact-posts .card-body a {
  font-size: 14px;
}
