/* ===== BLOG ARTICLE — shared layout ===== */
/* Included by all blog article pages. Each article page overrides
   .article-hero { background: ... } and accent colors for its topic. */

/* ===== ARTICLE HERO ===== */
.article-hero {
  padding: 56px 24px 52px;
  text-align: center;
  border-bottom: 3px solid #d1db24;
  /* background set per-article */
}
.article-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #fff;
  padding: 4px 12px;
  border-radius: 6px;
  margin-bottom: 20px;
  /* background set per-article */
}
.article-hero h1 {
  font-size: clamp(28px, 5vw, 50px);
  font-weight: 900;
  color: #fff;
  line-height: 1.12;
  max-width: 800px;
  margin: 0 auto 18px;
}
.article-hero h1 em { font-style: normal; color: #d1db24; }
.article-hero-sub {
  font-size: 17px;
  max-width: 640px;
  margin: 0 auto 28px;
  line-height: 1.6;
  /* color set per-article */
}
.article-meta { display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; }
.article-meta-author { font-size: 13px; font-weight: 800; }
.article-meta-date   { font-size: 13px; font-weight: 600; }
.article-meta-read   { font-size: 13px; font-weight: 600; }
.article-meta-sep    { }

/* ===== ARTICLE BODY ===== */
.article-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}
.article-intro {
  font-size: 19px;
  font-weight: 700;
  color: #2a3a10;
  line-height: 1.65;
  margin-bottom: 36px;
  padding: 24px 28px;
  background: #fff;
  border-left: 5px solid #d1db24;
  border-radius: 0 10px 10px 0;
  box-shadow: 0 2px 12px rgba(98,181,23,0.1);
}
.article-body h2 {
  font-size: 24px;
  font-weight: 900;
  color: #1a2a0a;
  margin: 52px 0 16px;
  line-height: 1.2;
}
.article-body h2::before {
  content: '';
  display: block;
  width: 36px;
  height: 4px;
  background: #d1db24;
  border-radius: 2px;
  margin-bottom: 12px;
}
.article-body h3 {
  font-size: 16px;
  font-weight: 900;
  color: #2a4a10;
  margin: 30px 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.article-body p {
  font-size: 16px;
  color: #333;
  line-height: 1.8;
  margin-bottom: 20px;
}
.article-body ul, .article-body ol {
  font-size: 16px;
  color: #333;
  line-height: 1.8;
  margin-bottom: 20px;
  padding-left: 24px;
}
.article-body li { margin-bottom: 6px; }
.article-body strong { color: #1a2a0a; font-weight: 800; }

/* ===== BACK LINK ===== */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  color: #4a8c11;
  text-decoration: none;
  margin-bottom: 40px;
  padding: 7px 14px;
  background: #fff;
  border: 1.5px solid #a8c96a;
  border-radius: 8px;
  transition: background 0.15s;
}
.back-link:hover { background: #f4fae8; }

/* ===== CALLOUT BOXES ===== */
.callout {
  background: #fff;
  border: 2px solid #a8c96a;
  border-radius: 12px;
  padding: 20px 24px;
  margin: 28px 0;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.callout-icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.callout-text { font-size: 15px; color: #2a4a10; line-height: 1.7; font-weight: 700; }
.callout.dark { background: #0c1829; border-color: #253347; }
.callout.dark .callout-text { color: #8eadc8; }

/* ===== SOURCES BLOCK ===== */
.sources-block {
  margin-top: 56px;
  padding: 32px 36px;
  background: #fff;
  border-radius: 14px;
  border-left: 5px solid #4a8c11;
  box-shadow: 0 2px 12px rgba(98,181,23,0.08);
}
.sources-title {
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #4a8c11;
  margin-bottom: 20px;
}
.sources-list {
  list-style: decimal;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sources-list li { font-size: 13px; color: #555; line-height: 1.55; }

/* ===== ARTICLE CTA ===== */
.article-cta {
  border-radius: 16px;
  padding: 36px 32px;
  margin-top: 56px;
  text-align: center;
  /* background and border set per-article */
}
.article-cta h3 { font-size: 22px; font-weight: 900; color: #fff; margin-bottom: 12px; }
.article-cta p  { font-size: 15px; margin-bottom: 24px; line-height: 1.65; max-width: 480px; margin-left: auto; margin-right: auto; }
.article-cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.article-cta a {
  display: inline-block;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  padding: 13px 24px;
  border-radius: 9px;
  transition: background 0.15s, transform 0.15s;
}
.article-cta a.primary { background: #d1db24; color: #1a2a00; }
.article-cta a.primary:hover { background: #c0ca10; transform: translateY(-2px); }
.article-cta a.secondary { background: transparent; }
.article-cta a.secondary:hover { transform: translateY(-2px); }

/* ===== BLOG INDEX GRID (blog/index.html) ===== */
.blog-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}
.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-desc { font-size: 14px; font-weight: 700; color: #666; line-height: 1.5; }
.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-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 card (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; }

/* ===== BLOG INDEX HERO ===== */
.hero {
  text-align: center;
  padding: 56px 24px 48px;
  background: linear-gradient(160deg, #f8faf2 0%, #edf2e0 100%);
  border-bottom: 1px solid #dde8c8;
}
.hero h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 900; color: #2a2a2a; line-height: 1.1; margin-bottom: 14px; animation: fade-up 0.45s ease both; }
.hero h1 em { font-style: normal; color: #62b517; }
.hero p { font-size: 17px; color: #555; line-height: 1.6; max-width: 520px; margin: 0 auto; animation: fade-up 0.45s 0.12s ease both; }

@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; }
}

/* ===== SIMPLE FOOTER (overrides main.css full footer for blog pages) ===== */
footer { background: #2a2a2a; color: #777; text-align: center; padding: 12px 24px; font-size: 12px; }
