/* Blog-specific styles — layered on top of site-wide styles.css */

/* ---------- Blog index grid ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.blog-card {
  position: relative;
  background: var(--color-surface, #fff);
  border: 1px solid rgba(15, 27, 51, 0.08);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(15, 27, 51, 0.12);
  border-color: rgba(200, 16, 46, 0.25);
}

.blog-card-link {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card-media {
  height: 160px;
  background:
    linear-gradient(135deg, #0F1B33 0%, #1a2847 60%, #243559 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-card-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(200, 16, 46, 0.25), transparent 55%),
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.03),
      rgba(255, 255, 255, 0.03) 2px,
      transparent 2px,
      transparent 12px
    );
}

.blog-card-media::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  background: #C8102E;
}

.blog-card-number {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 84px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.12);
  letter-spacing: 0.02em;
  line-height: 1;
  position: relative;
  z-index: 1;
}

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

.blog-card-body h2,
.blog-card-body h3 {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 26px;
  line-height: 1.2;
  color: #0F1B33;
  margin: 10px 0 14px;
  letter-spacing: 0.01em;
}

.blog-card-body p {
  font-size: 15px;
  line-height: 1.6;
  color: #4a5568;
  margin: 0 0 20px;
  flex: 1;
}

.blog-meta {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #8b94a3;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.blog-meta .dot {
  color: #C8102E;
  font-weight: 700;
}

.blog-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #C8102E;
  margin-top: auto;
}

.blog-card:hover .blog-card-cta .btn-arrow {
  transform: translateX(4px);
}

.blog-card-cta .btn-arrow {
  transition: transform 0.2s ease;
}

/* Coming Soon placeholder card */
.blog-card-placeholder {
  background: linear-gradient(180deg, #f7f8fa 0%, #eef0f4 100%);
  border-style: dashed;
  border-color: rgba(15, 27, 51, 0.18);
}

.blog-card-placeholder:hover {
  transform: none;
  box-shadow: none;
  border-color: rgba(15, 27, 51, 0.25);
}

.blog-card-placeholder .blog-card-body {
  padding: 40px 28px;
  justify-content: center;
  text-align: center;
}

/* ---------- Blog post page ---------- */
.blog-post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
}

.blog-post-meta strong {
  color: #fff;
  font-weight: 700;
}

/* When blog-post-meta sits inside page-hero (navy bg), keep white; default fallback below */
.page-hero-inner .blog-post-meta {
  color: rgba(255, 255, 255, 0.78);
}

.page-hero-inner .blog-post-meta strong {
  color: #fff;
}

.blog-post-meta .dot {
  color: #C8102E;
  font-weight: 700;
}

.blog-post {
  max-width: 760px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.75;
  color: #2d3748;
}

.blog-post .blog-lead {
  font-size: 20px;
  line-height: 1.65;
  color: #0F1B33;
  font-weight: 500;
  margin: 0 0 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(15, 27, 51, 0.08);
}

.blog-post p {
  margin: 0 0 22px;
}

.blog-post h2 {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 1.2;
  color: #0F1B33;
  margin: 48px 0 20px;
  letter-spacing: 0.01em;
  position: relative;
  padding-left: 18px;
}

.blog-post h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 4px;
  background: #C8102E;
  border-radius: 2px;
}

.blog-post ul {
  margin: 0 0 22px;
  padding-left: 22px;
}

.blog-post ul li {
  margin-bottom: 10px;
  line-height: 1.65;
}

.blog-post ul li::marker {
  color: #C8102E;
}

.blog-post em {
  font-style: italic;
  color: #1a2847;
}

/* Pull quote */
.blog-pullquote {
  margin: 36px 0;
  padding: 24px 28px;
  background: linear-gradient(90deg, rgba(200, 16, 46, 0.04) 0%, transparent 100%);
  border-left: 4px solid #C8102E;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 22px;
  line-height: 1.45;
  color: #0F1B33;
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.005em;
  border-radius: 0 6px 6px 0;
}

.blog-pullquote::before {
  content: "";
}

/* Author card */
.blog-author-card {
  margin: 56px 0 0;
  padding: 28px 32px;
  background: linear-gradient(135deg, #f7f8fa 0%, #eef0f4 100%);
  border-radius: 12px;
  border-left: 4px solid #0F1B33;
}

.blog-author-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #C8102E;
  margin-bottom: 8px;
}

.blog-author-card h3 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 26px;
  color: #0F1B33;
  margin: 0 0 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.blog-author-card p {
  font-size: 15px;
  line-height: 1.65;
  color: #4a5568;
  margin: 0 0 14px;
}

.blog-author-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 600;
}

.blog-author-links a {
  color: #0F1B33;
  text-decoration: none;
  border-bottom: 1px solid rgba(200, 16, 46, 0.4);
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.blog-author-links a:hover {
  color: #C8102E;
  border-color: #C8102E;
}

.blog-author-links .dot {
  color: #C8102E;
}

/* Responsive tightening */
@media (max-width: 720px) {
  .blog-post {
    font-size: 16px;
  }
  .blog-post .blog-lead {
    font-size: 18px;
  }
  .blog-post h2 {
    font-size: 26px;
    margin: 36px 0 16px;
  }
  .blog-pullquote {
    font-size: 19px;
    padding: 20px 22px;
  }
  .blog-author-card {
    padding: 22px 22px;
  }
}

/* Dark theme compatibility — respects existing site theme toggle */
[data-theme="dark"] .blog-card {
  background: #1a2238;
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .blog-card-body h2,
[data-theme="dark"] .blog-card-body h3 {
  color: #f3f5f8;
}

[data-theme="dark"] .blog-card-body p {
  color: #b8c1d0;
}

[data-theme="dark"] .blog-card-placeholder {
  background: linear-gradient(180deg, #1a2238 0%, #141b2e 100%);
  border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .blog-post {
  color: #d4dae6;
}

[data-theme="dark"] .blog-post .blog-lead {
  color: #f3f5f8;
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .blog-post h2 {
  color: #f3f5f8;
}

[data-theme="dark"] .blog-post em {
  color: #b8c1d0;
}

[data-theme="dark"] .blog-pullquote {
  background: linear-gradient(90deg, rgba(200, 16, 46, 0.1) 0%, transparent 100%);
  color: #f3f5f8;
}

[data-theme="dark"] .blog-author-card {
  background: linear-gradient(135deg, #1a2238 0%, #141b2e 100%);
  border-left-color: #C8102E;
}

[data-theme="dark"] .blog-author-card h3 {
  color: #f3f5f8;
}

[data-theme="dark"] .blog-author-card p {
  color: #b8c1d0;
}

[data-theme="dark"] .blog-author-links a {
  color: #f3f5f8;
}

[data-theme="dark"] .blog-post-meta {
  color: #b8c1d0;
}

[data-theme="dark"] .blog-post-meta strong {
  color: #f3f5f8;
}

[data-theme="dark"] .blog-meta {
  color: #a4afc0;
}
