/**
 * DAVIZ Solutions · Individual Blog Post Template Styling
 * Luxury editorial dark theme matching index.html and power-bi.html
 */

.blog-page {
  background-color: var(--bg-primary, #040810);
  color: var(--text-primary, #ffffff);
  min-height: 100vh;
  padding-top: 84px;
}

.blog-container {
  width: min(1140px, calc(100% - 48px));
  margin-inline: auto;
}

.blog-container--narrow {
  width: min(840px, calc(100% - 48px));
  margin-inline: auto;
}

/* ────────────────────────────────────────────
   1. HERO HEADER
──────────────────────────────────────────── */
.blog-hero {
  padding: clamp(48px, 6vw, 76px) 0 clamp(32px, 4vw, 54px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(circle at 50% 10%, rgba(36, 46, 237, 0.12) 0%, rgba(4, 8, 16, 0.98) 75%);
}

.blog-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: #94a3b8;
  margin-bottom: 24px;
}

.blog-breadcrumbs a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-breadcrumbs a:hover {
  color: #ffbd23;
}

.blog-breadcrumbs span {
  color: rgba(255, 255, 255, 0.3);
}

.blog-category-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  background: rgba(36, 46, 237, 0.16);
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: 999px;
  color: #93c5fd;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.blog-title {
  font-size: clamp(2rem, 3.8vw, 3.1rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin: 0 0 18px;
}

.blog-subtitle {
  font-size: clamp(1.05rem, 1.4vw, 1.22rem);
  line-height: 1.6;
  color: #94a3b8;
  margin: 0 0 28px;
  max-width: 900px;
}

.blog-author-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.blog-author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffbd23;
}

.blog-author-text strong {
  display: block;
  font-size: 0.9375rem;
  color: #ffffff;
}

.blog-author-text span {
  font-size: 0.78125rem;
  color: #94a3b8;
}

.blog-hero-image-wrap {
  margin: 40px 0 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  max-height: 520px;
  background: #09101d;
}

.blog-hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ────────────────────────────────────────────
   2. ARTICLE BODY & SIDEBAR
──────────────────────────────────────────── */
.blog-body-section {
  padding: clamp(48px, 6vw, 76px) 0;
}

.blog-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: clamp(36px, 5vw, 64px);
  align-items: start;
}

@media (max-width: 980px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }
}

.blog-content {
  color: #cbd5e1;
  font-size: 1.0625rem;
  line-height: 1.8;
}

.blog-content h2 {
  color: #ffffff;
  font-size: clamp(1.5rem, 2.2vw, 1.95rem);
  font-weight: 750;
  line-height: 1.28;
  margin: 42px 0 16px;
  letter-spacing: -0.02em;
}

.blog-content h2:first-of-type {
  margin-top: 0;
}

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

.blog-content ul, .blog-content ol {
  margin: 0 0 24px;
  padding-left: 24px;
}

.blog-content li {
  margin-bottom: 10px;
  line-height: 1.7;
}

.blog-content strong {
  color: #ffffff;
}

.blog-callout {
  background: rgba(12, 22, 38, 0.85);
  border: 1px solid rgba(255, 189, 35, 0.35);
  border-left: 4px solid #ffbd23;
  border-radius: 0 12px 12px 0;
  padding: 24px 28px;
  margin: 32px 0;
}

.blog-callout h4 {
  color: #ffbd23;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 10px;
}

.blog-callout p {
  font-size: 0.9375rem;
  line-height: 1.65;
  margin: 0 0 10px;
}

.blog-callout p:last-child {
  margin-bottom: 0;
}

/* Sidebar: Takeaways & Consultation */
.blog-sidebar {
  position: sticky;
  top: 104px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.blog-takeaways-card {
  background: rgba(15, 25, 44, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 26px;
}

.blog-takeaways-card h3 {
  font-size: 1rem;
  font-weight: 750;
  color: #ffffff;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.blog-takeaways-card h3 span {
  color: #ffbd23;
}

.blog-takeaways-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.blog-takeaways-list li {
  position: relative;
  padding-left: 20px;
  color: #94a3b8;
  font-size: 0.85rem;
  line-height: 1.55;
}

.blog-takeaways-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: #34d399;
  font-weight: bold;
}

.blog-cta-card {
  background: linear-gradient(135deg, rgba(36, 46, 237, 0.25) 0%, rgba(4, 8, 16, 0.95) 100%);
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: 14px;
  padding: 26px;
}

.blog-cta-card h4 {
  color: #ffffff;
  font-size: 1.05rem;
  margin: 0 0 8px;
  font-weight: 700;
}

.blog-cta-card p {
  color: #94a3b8;
  font-size: 0.82rem;
  line-height: 1.55;
  margin: 0 0 18px;
}

.blog-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px 18px;
  background: #ffbd23;
  color: #0b1220;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(255, 189, 35, 0.4);
  color: #0b1220;
}

/* ────────────────────────────────────────────
   3. RELATED ARTICLES RAIL
──────────────────────────────────────────── */
.blog-related-section {
  padding: 64px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.blog-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.blog-related-card {
  display: flex;
  flex-direction: column;
  background: #0c1626;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none !important;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.blog-related-card:hover {
  transform: translateY(-4px);
  border-color: #ffbd23;
}

.blog-related-card-img {
  height: 160px;
  overflow: hidden;
  position: relative;
}

.blog-related-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-related-card:hover .blog-related-card-img img {
  transform: scale(1.05);
}

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

.blog-related-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: #94a3b8;
  margin-bottom: 8px;
}

.blog-related-card-meta span:first-child {
  color: #60a5fa;
  font-weight: 700;
  text-transform: uppercase;
}

.blog-related-card-body h4 {
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.35;
  margin: 0 0 12px;
  font-weight: 650;
}

.blog-related-card-arrow {
  margin-top: auto;
  color: #ffbd23;
  font-size: 0.8125rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}
