/* Page-specific styles */

/* ===== FILTER BAR ===== */
.blog-filter-bar {
  margin-bottom: 48px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.blog-filter-top {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.blog-search {
  flex: 1;
  min-width: 200px;
  max-width: 360px;
  padding: 10px 16px;
  border: 2px solid #d4e8a8;
  border-radius: 8px;
  font-size: 14px;
  color: #1a1a1a;
  background: #fff;
  outline: none;
  transition: border-color 0.18s;
}
.blog-search:focus { border-color: #62b517; }
.blog-search::placeholder { color: #aaa; }
.blog-post-count {
  font-size: 12px;
  font-weight: 700;
  color: #888;
  white-space: nowrap;
}
.blog-filter-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.blog-filter-label {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #999;
  min-width: 44px;
  flex-shrink: 0;
}
.blog-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.blog-chip {
  padding: 6px 14px;
  border: 2px solid #d4e8a8;
  border-radius: 20px;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  color: #555;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
  line-height: 1.4;
}
.blog-chip:hover { border-color: #62b517; color: #3a7a0a; }
.blog-chip.active { background: #62b517; border-color: #62b517; color: #fff; }
.blog-chip.unavailable { opacity: 0.3; cursor: not-allowed; pointer-events: none; }
.blog-card-readtime {
  font-size: 11px;
  font-weight: 600;
  color: #aaa;
}
.blog-no-results {
  text-align: center;
  padding: 64px 24px;
  font-size: 16px;
  color: #888;
  font-weight: 600;
}
@media (max-width: 600px) {
  .blog-search { max-width: 100%; }
}

/* ===== BLOG GRID ===== */
.blog-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.blog-card {
  background: #fff;
  border: 2px solid #a8c96a;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(98,181,23,0.18);
  border-color: #62b517;
}
.blog-card-img {
  width: 100%;
  height: 170px;
  background: #f0f5e8;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.blog-card-img svg { width: 100%; height: 100%; display: block; }
.blog-card-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}
.blog-card-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.blog-card-tag {
  font-size: 9px; font-weight: 900; text-transform: uppercase;
  letter-spacing: 1.8px; color: #fff;
  padding: 3px 8px; border-radius: 5px;
}
.blog-card-tag.tag-cyber { background: #2a5c0a; }
.blog-card-tag.tag-ai    { background: #4a6a20; }
.blog-card-tag.tag-learn { background: #6a8c30; }
.blog-card-tag.tag-train    { background: #3a7010; }
.blog-card-tag.tag-workshop      { background: #1a6a5a; }
.blog-card-tag.tag-explainer     { background: #1a3a6a; }
.blog-card-tag.tag-insights      { background: #5a3a10; }
.blog-card-tag.tag-quantum       { background: #5a20a0; }
.blog-card-tag.tag-career        { background: #2a4a8a; }
.blog-card-tag.tag-org-upskilling{ background: #7a4a10; }
.blog-card-date { font-size: 11px; font-weight: 600; color: #888; }
.blog-card-title { font-size: 18px; font-weight: 900; color: #1a1a1a; line-height: 1.3; }
.blog-card-excerpt { font-size: 13px; color: #555; line-height: 1.65; flex: 1; }
.blog-card-read {
  font-size: 12px; font-weight: 800; color: #62b517;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding-top: 10px; border-top: 1px solid #e8f0d8;
}

/* ===== FEATURED (first post wider) ===== */
.blog-card.featured {
  grid-column: 1 / -1;
  flex-direction: row;
}
.blog-card.featured .blog-card-img {
  width: 380px;
  height: auto;
  min-height: 240px;
  flex-shrink: 0;
  border-radius: 0;
}
.blog-card.featured .blog-card-title { font-size: 22px; }
.blog-card.featured .blog-card-excerpt { font-size: 14px; }

@media (max-width: 960px) {
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .blog-card.featured { flex-direction: column; grid-column: auto; }
  .blog-card.featured .blog-card-img { width: 100%; height: 180px; }
}
@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
}

/* ===== SECTION HEADERS ===== */
.blog-section { margin-bottom: 64px; }
.blog-section:last-child { margin-bottom: 0; }
.blog-section-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 2px solid #dde8c8;
  flex-wrap: wrap;
}
.blog-section-label {
  font-size: 11px; font-weight: 900; text-transform: uppercase;
  letter-spacing: 2.5px; color: #fff;
  background: #4a8c11;
  padding: 5px 14px; border-radius: 6px;
  white-space: nowrap;
}
.blog-section-label.label-tech {
  background: #1a3a6a;
}
.blog-section-label.label-insights {
  background: #5a3a10;
}
.blog-section-desc {
  font-size: 14px; font-weight: 700; color: #666;
  line-height: 1.5;
}

