/* ═══════════════════════════════════════════════════════
   QA BLOG PAGE — page-blog.php template
   Class prefix: .qa-blog-
═══════════════════════════════════════════════════════ */

/* ═════════════════════════════════════════════════════
   1. HERO BANNER
═════════════════════════════════════════════════════ */
.qa-blog-hero {
  background: linear-gradient(135deg, #0d3d1a 0%, #1a5c2a 100%);
  padding: 60px 24px 50px;
  text-align: center;
}
.qa-blog-hero-inner {
  max-width: 760px;
  margin: 0 auto;
}
.qa-blog-hero-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #c9a227;
  margin: 0 0 16px;
}
.qa-blog-hero-title {
  font-size: clamp(26px, 4vw, 46px);
  font-weight: 900;
  color: #fff;
  line-height: 1.08;
  letter-spacing: -.8px;
  margin: 0 0 20px;
}
.qa-blog-hero-title span { color: #c9a227; }
.qa-blog-hero-sub {
  font-size: clamp(14px, 1.8vw, 17px);
  color: rgba(255, 255, 255, .75);
  line-height: 1.72;
  margin: 0 auto;
  max-width: 580px;
}

/* ═════════════════════════════════════════════════════
   2. BLOG MAIN SECTION
═════════════════════════════════════════════════════ */
.qa-blog-main {
  padding: 64px 24px 72px;
  background: #f0ffe8;
  min-height: 400px;
}
.qa-blog-inner {
  max-width: 1160px;
  margin: 0 auto;
}

/* ═════════════════════════════════════════════════════
   3. POST GRID
═════════════════════════════════════════════════════ */
.qa-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ═════════════════════════════════════════════════════
   4. POST CARD
═════════════════════════════════════════════════════ */
.qa-blog-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(13, 61, 26, .08);
  border: 1px solid rgba(13, 61, 26, .06);
  display: flex;
  flex-direction: column;
  transition: transform .22s, box-shadow .22s;
}
.qa-blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 50px rgba(13, 61, 26, .15);
}

.qa-blog-card-img-wrap {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.qa-blog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s;
}
.qa-blog-card:hover .qa-blog-card-img { transform: scale(1.04); }

.qa-blog-card-img-placeholder {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #0d3d1a 0%, #1a5c2a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.qa-blog-card-img-placeholder svg {
  width: 52px;
  height: 52px;
  color: rgba(201, 162, 39, .45);
}

.qa-blog-card-body {
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.qa-blog-card-cat {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #fff;
  background: #c9a227;
  border-radius: 6px;
  padding: 4px 10px;
  margin-bottom: 14px;
  line-height: 1;
  align-self: flex-start;
}

.qa-blog-card-title {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
  color: #0d3d1a;
  margin: 0 0 12px;
}
.qa-blog-card-title a {
  color: inherit;
  text-decoration: none !important;
  transition: color .18s;
}
.qa-blog-card-title a:hover {
  color: #c9a227;
  text-decoration: none !important;
}

.qa-blog-card-excerpt {
  font-size: 14px;
  color: #666;
  line-height: 1.75;
  margin: 0;
  flex: 1;
}

.qa-blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(13, 61, 26, .08);
}
.qa-blog-card-date {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: #aaa;
}
.qa-blog-card-date svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}
.qa-blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
  color: #0d3d1a !important;
  text-decoration: none !important;
  white-space: nowrap;
  transition: color .18s, gap .18s;
}
.qa-blog-card-link:hover {
  color: #c9a227 !important;
  gap: 8px;
  text-decoration: none !important;
}
.qa-blog-card-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform .18s;
}
.qa-blog-card-link:hover svg { transform: translateX(3px); }

/* ═════════════════════════════════════════════════════
   5. PAGINATION
═════════════════════════════════════════════════════ */
.qa-blog-pagination {
  margin-top: 52px;
  display: flex;
  justify-content: center;
}
.qa-blog-pagination .page-numbers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.qa-blog-pagination .page-numbers li a,
.qa-blog-pagination .page-numbers li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #0d3d1a !important;
  background: #fff;
  border: 2px solid rgba(13, 61, 26, .14);
  text-decoration: none !important;
  transition: background .2s, border-color .2s, color .2s;
}
.qa-blog-pagination .page-numbers li a:hover {
  background: #0d3d1a;
  border-color: #0d3d1a;
  color: #fff !important;
  text-decoration: none !important;
}
.qa-blog-pagination .page-numbers li span.current {
  background: #0d3d1a;
  border-color: #0d3d1a;
  color: #fff !important;
}

/* ═════════════════════════════════════════════════════
   6. EMPTY STATE
═════════════════════════════════════════════════════ */
.qa-blog-empty {
  text-align: center;
  padding: 80px 24px;
}
.qa-blog-empty-icon {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  box-shadow: 0 4px 20px rgba(13, 61, 26, .1);
}
.qa-blog-empty-icon svg {
  width: 38px;
  height: 38px;
  color: #0d3d1a;
}
.qa-blog-empty-title {
  font-size: 24px;
  font-weight: 800;
  color: #0d3d1a;
  margin: 0 0 12px;
}
.qa-blog-empty-text {
  font-size: 16px;
  color: #777;
  line-height: 1.75;
  margin: 0;
}

/* ═════════════════════════════════════════════════════
   RESPONSIVE — tablet (≤960px)
═════════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .qa-blog-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ═════════════════════════════════════════════════════
   RESPONSIVE — mobile (≤680px)
═════════════════════════════════════════════════════ */
@media (max-width: 680px) {
  .qa-blog-hero { padding: 48px 20px 40px; }
  .qa-blog-main { padding: 48px 20px 56px; }
  .qa-blog-grid { grid-template-columns: 1fr; }
}
