/* ═══════════════════════════════════════════
   POSTS — 게시글 카드 섹션
   ═══════════════════════════════════════════ */
.posts-sec {
  padding: 64px 0;
  background: #fff;
}

.posts-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-top: 36px;
}

.posts-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.posts-side .post-card { flex: 1; }

.post-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow .2s, transform .2s;
  text-decoration: none;
  color: inherit;
}
.post-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.10);
  transform: translateY(-3px);
}

.post-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg);
}
.post-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}
.post-card:hover .post-thumb img {
  transform: scale(1.04);
}

.post-body {
  padding: 20px 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-tag {
  display: inline-block;
  font-size: 12px; font-weight: 700;
  color: var(--primary);
  background: rgba(31,90,252,0.08);
  border-radius: 4px;
  padding: 3px 10px;
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}

.post-title {
  font-size: 16px; font-weight: 700;
  color: var(--dark);
  line-height: 1.5;
  margin-bottom: 8px;
  flex: 1;
}

.post-desc {
  font-size: 13px; color: var(--text-sub);
  line-height: 1.6;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-meta {
  font-size: 12px; color: var(--text-light);
  display: flex; align-items: center; gap: 6px;
}
.post-meta-source {
  display: inline-flex; align-items: center; gap: 4px;
}

.posts-more {
  text-align: center;
  margin-top: 32px;
}
.posts-more a {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 700;
  color: var(--text-sub);
  text-decoration: none;
  padding: 10px 24px;
  border: 1px solid var(--border);
  border-radius: 50px;
  transition: all .2s;
}
.posts-more a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* 유튜브 재생 */
.post-card--video { cursor: pointer; }
.post-thumb--video { position: relative; }
.post-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  transition: transform .2s;
}
.post-card--video:hover .post-play { transform: scale(1.15); }
.post-thumb--video iframe {
  width: 100%; height: 100%; display: block; border: none;
}

@media (max-width: 768px) {
  .posts-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .posts-side { flex-direction: column; gap: 14px; }
  .posts-sec { padding: 48px 0; }
  .post-thumb { display: none; }
  .post-card--video .post-thumb { display: block; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .posts-grid { grid-template-columns: 3fr 2fr; }
}
