/* ═══════════════════════════════════════════════════════════
   BLOG.CSS — Umbrella Corp HQ
   Blog hub + article page styles
═══════════════════════════════════════════════════════════ */

/* ─── Blog Hub Hero ─────────────────────────────────────── */
.blog-hero {
  padding:    160px 0 80px;
  text-align: center;
}

.blog-hero h1 {
  font-size:      clamp(40px, 5.5vw, 72px);
  font-weight:    700;
  letter-spacing: -0.02em;
  line-height:    1.05;
  margin-bottom:  20px;
}

.blog-hero h1 span { color: var(--corp-red); }

.blog-hero p {
  font-size:  19px;
  color:      var(--steel);
  max-width:  520px;
  margin:     0 auto;
  line-height: 1.5;
}

/* ─── Category Filter ───────────────────────────────────── */
.blog-filter {
  display:     flex;
  gap:         8px;
  flex-wrap:   wrap;
  margin:      48px 0 56px;
  justify-content: center;
}

.blog-filter-btn {
  padding:        8px 20px;
  border-radius:  980px;
  border:         1px solid rgba(255,255,255,0.1);
  background:     transparent;
  color:          var(--steel);
  font-size:      13px;
  font-family:    var(--font-body);
  cursor:         pointer;
  transition:     all 0.2s ease;
}

.blog-filter-btn:hover,
.blog-filter-btn.is-active {
  background:   rgba(193,18,31,0.1);
  border-color: rgba(193,18,31,0.3);
  color:        var(--corp-red);
}

/* ─── Article Grid ──────────────────────────────────────── */
.blog-grid {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   28px;
  margin-bottom:         80px;
}

@media (max-width: 1024px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .blog-grid { grid-template-columns: 1fr; } }

/* Featured first card */
.blog-card:first-child {
  grid-column: 1 / -1;
  display:     grid;
  grid-template-columns: 1fr 1fr;
  gap:         0;
}

@media (max-width: 768px) {
  .blog-card:first-child { grid-template-columns: 1fr; }
}

.blog-card {
  background:    rgba(255,255,255,0.03);
  border:        1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  overflow:      hidden;
  transition:    border-color 0.2s ease, transform 0.2s ease;
  text-decoration: none;
  display:       flex;
  flex-direction: column;
}

.blog-card:hover {
  border-color: rgba(193,18,31,0.25);
  transform:    translateY(-4px);
}

.blog-card-img {
  background:  linear-gradient(135deg, rgba(193,18,31,0.15) 0%, rgba(10,10,10,0.8) 100%);
  aspect-ratio: 16/9;
  position:    relative;
  overflow:    hidden;
  display:     flex;
  align-items: center;
  justify-content: center;
}

.blog-card:first-child .blog-card-img {
  aspect-ratio: unset;
  min-height:   260px;
}

.blog-card-img-icon {
  font-size: 48px;
  opacity:   0.4;
}

.blog-card-img-label {
  position:       absolute;
  bottom:         16px;
  left:           16px;
  padding:        4px 12px;
  background:     var(--corp-red);
  color:          #fff;
  font-size:      11px;
  font-weight:    700;
  border-radius:  980px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.blog-card-body {
  padding:        24px 28px 28px;
  display:        flex;
  flex-direction: column;
  flex:           1;
}

.blog-card:first-child .blog-card-body {
  padding: 36px 40px;
  justify-content: center;
}

.blog-card-meta {
  display:     flex;
  align-items: center;
  gap:         12px;
  font-size:   12px;
  color:       var(--steel);
  margin-bottom: 12px;
}

.blog-card-tag {
  color:          var(--corp-red);
  font-weight:    600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.blog-card-title {
  font-size:      clamp(17px, 2vw, 22px);
  font-weight:    700;
  color:          var(--ivory);
  line-height:    1.3;
  letter-spacing: -0.01em;
  margin-bottom:  12px;
}

.blog-card:first-child .blog-card-title {
  font-size: clamp(22px, 3vw, 32px);
}

.blog-card-excerpt {
  font-size:   15px;
  color:       var(--steel);
  line-height: 1.6;
  flex:        1;
  margin-bottom: 20px;
}

.blog-card-read-more {
  display:     inline-flex;
  align-items: center;
  gap:         6px;
  font-size:   13px;
  font-weight: 600;
  color:       var(--corp-red);
}

.blog-card-read-more svg { width: 14px; height: 14px; transition: transform 0.2s ease; }
.blog-card:hover .blog-card-read-more svg { transform: translateX(4px); }

/* ─── Article Page ──────────────────────────────────────── */
.article-wrap {
  display:               grid;
  grid-template-columns: 1fr 300px;
  gap:                   60px;
  padding:               60px 0 100px;
  align-items:           start;
}

@media (max-width: 1024px) {
  .article-wrap { grid-template-columns: 1fr; }
  .article-sidebar { order: -1; }
}

/* Article header */
.article-header {
  padding:    140px 0 48px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 0;
}

.article-breadcrumb {
  display:     flex;
  align-items: center;
  gap:         8px;
  font-size:   13px;
  color:       var(--steel);
  margin-bottom: 24px;
}

.article-breadcrumb a { color: var(--steel); text-decoration: none; }
.article-breadcrumb a:hover { color: var(--corp-red); }
.article-breadcrumb span { color: rgba(255,255,255,0.2); }

.article-category {
  display:        inline-block;
  padding:        4px 14px;
  background:     rgba(193,18,31,0.1);
  border:         1px solid rgba(193,18,31,0.25);
  border-radius:  980px;
  font-size:      11px;
  font-weight:    700;
  color:          var(--corp-red);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom:  20px;
}

.article-title {
  font-size:      clamp(32px, 5vw, 56px);
  font-weight:    700;
  letter-spacing: -0.025em;
  line-height:    1.08;
  color:          var(--ivory);
  margin-bottom:  20px;
}

.article-subtitle {
  font-size:   20px;
  color:       var(--steel);
  line-height: 1.5;
  max-width:   700px;
  margin-bottom: 28px;
}

.article-meta {
  display:     flex;
  align-items: center;
  gap:         20px;
  flex-wrap:   wrap;
}

.article-author {
  display:     flex;
  align-items: center;
  gap:         10px;
}

.article-author-avatar {
  width:         36px;
  height:        36px;
  border-radius: 50%;
  background:    var(--corp-red);
  display:       flex;
  align-items:   center;
  justify-content: center;
  font-size:     14px;
  font-weight:   700;
  color:         #fff;
}

.article-author-name {
  font-size:   14px;
  font-weight: 600;
  color:       var(--ivory);
}

.article-author-role {
  font-size: 12px;
  color:     var(--steel);
}

.article-meta-divider { color: rgba(255,255,255,0.15); }

.article-meta-item {
  display:     flex;
  align-items: center;
  gap:         6px;
  font-size:   13px;
  color:       var(--steel);
}

.article-meta-item svg { width: 14px; height: 14px; }

/* ─── Article Body ──────────────────────────────────────── */
.article-body h2 {
  font-size:      clamp(22px, 3vw, 30px);
  font-weight:    700;
  color:          var(--ivory);
  letter-spacing: -0.015em;
  margin:         48px 0 16px;
  padding-top:    8px;
}

.article-body h3 {
  font-size:      20px;
  font-weight:    600;
  color:          var(--ivory);
  letter-spacing: -0.01em;
  margin:         32px 0 12px;
}

.article-body p {
  font-size:     17px;
  line-height:   1.75;
  color:         rgba(240,237,232,0.82);
  margin-bottom: 20px;
}

.article-body ul,
.article-body ol {
  margin:      0 0 20px 0;
  padding-left: 24px;
}

.article-body li {
  font-size:   17px;
  line-height: 1.7;
  color:       rgba(240,237,232,0.82);
  margin-bottom: 8px;
}

.article-body strong { color: var(--ivory); font-weight: 600; }

.article-body a {
  color:           var(--corp-red);
  text-decoration: underline;
  text-decoration-color: rgba(193,18,31,0.4);
}

.article-body a:hover { text-decoration-color: var(--corp-red); }

/* Callout box */
.article-callout {
  padding:       24px 28px;
  background:    rgba(193,18,31,0.06);
  border-left:   3px solid var(--corp-red);
  border-radius: 0 12px 12px 0;
  margin:        32px 0;
}

.article-callout p { margin: 0; color: rgba(240,237,232,0.9); }

/* Stat highlight */
.article-stat-grid {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   16px;
  margin:                32px 0;
}

@media (max-width: 640px) { .article-stat-grid { grid-template-columns: 1fr; } }

.article-stat {
  background:    rgba(255,255,255,0.03);
  border:        1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding:       20px;
  text-align:    center;
}

.article-stat-num {
  font-size:   32px;
  font-weight: 700;
  color:       var(--corp-red);
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.article-stat-label {
  font-size: 13px;
  color:     var(--steel);
}

/* FAQ section */
.article-faq { margin: 48px 0; }

.article-faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding:       20px 0;
}

.article-faq-item:first-of-type { border-top: 1px solid rgba(255,255,255,0.06); }

.article-faq-q {
  font-size:   17px;
  font-weight: 600;
  color:       var(--ivory);
  margin-bottom: 8px;
  cursor:      pointer;
}

.article-faq-a {
  font-size:   16px;
  line-height: 1.65;
  color:       var(--steel);
}

/* ─── Sidebar ───────────────────────────────────────────── */
.article-sidebar {
  position:  sticky;
  top:       100px;
}

.article-toc {
  background:    rgba(255,255,255,0.03);
  border:        1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding:       24px;
  margin-bottom: 24px;
}

.article-toc-title {
  font-size:     12px;
  font-weight:   700;
  color:         var(--steel);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.article-toc-list {
  list-style: none;
  display:    flex;
  flex-direction: column;
  gap:        4px;
}

.article-toc-list a {
  display:         block;
  padding:         6px 10px;
  font-size:       13px;
  color:           var(--steel);
  text-decoration: none;
  border-radius:   8px;
  transition:      all 0.15s ease;
  border-left:     2px solid transparent;
}

.article-toc-list a:hover,
.article-toc-list a.is-active {
  color:        var(--ivory);
  background:   rgba(255,255,255,0.04);
  border-color: var(--corp-red);
  padding-left: 14px;
}

/* Sidebar CTA */
.article-sidebar-cta {
  background:    rgba(193,18,31,0.06);
  border:        1px solid rgba(193,18,31,0.15);
  border-radius: 16px;
  padding:       24px;
  text-align:    center;
}

.article-sidebar-cta h4 {
  font-size:   17px;
  font-weight: 700;
  color:       var(--ivory);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.article-sidebar-cta p {
  font-size:   14px;
  color:       var(--steel);
  line-height: 1.5;
  margin-bottom: 16px;
}

/* ─── Related Articles ──────────────────────────────────── */
.related-articles {
  padding:       60px 0;
  border-top:    1px solid rgba(255,255,255,0.06);
  margin-top:    60px;
}

.related-articles h2 {
  font-size:     28px;
  font-weight:   700;
  color:         var(--ivory);
  margin-bottom: 32px;
  letter-spacing: -0.01em;
}

.related-grid {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   20px;
}

@media (max-width: 768px) { .related-grid { grid-template-columns: 1fr; } }

/* ─── Article CTA Banner ────────────────────────────────── */
.article-cta-banner {
  margin:        48px 0;
  padding:       40px;
  background:    rgba(193,18,31,0.06);
  border:        1px solid rgba(193,18,31,0.15);
  border-radius: 20px;
  display:       flex;
  align-items:   center;
  justify-content: space-between;
  gap:           24px;
  flex-wrap:     wrap;
}

.article-cta-banner h3 {
  font-size:   22px;
  font-weight: 700;
  color:       var(--ivory);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.article-cta-banner p {
  font-size: 15px;
  color:     var(--steel);
  margin:    0;
}
