/* ===== BLOG STYLES ===== */
/* Loaded alongside ../style.css on all blog pages */

/* ===== BLOG HEADER BANNER ===== */
.blog-header {
  background: linear-gradient(135deg, #0f0f1a 0%, #1a0a0a 60%, #1f0808 100%);
  color: var(--white);
  text-align: center;
  padding: 80px 24px 60px;
  position: relative;
}
.blog-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(227,0,11,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.blog-header h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  margin-bottom: 12px;
  position: relative;
}
.blog-header p {
  color: #9ca3af;
  font-size: 1.05rem;
  position: relative;
}

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
  padding: 20px 24px;
  background: var(--light);
  border-bottom: 1px solid #e5e7eb;
}
.breadcrumbs nav {
  max-width: 1100px;
  margin: 0 auto;
  font-size: 0.85rem;
  color: var(--muted);
}
.breadcrumbs a {
  color: var(--red);
  font-weight: 700;
  transition: opacity 0.2s;
}
.breadcrumbs a:hover {
  opacity: 0.75;
}
.breadcrumbs .sep {
  margin: 0 8px;
  color: #d1d5db;
}

/* ===== BLOG LISTING — POST CARDS ===== */
.blog-listing {
  padding: 60px 0;
  background: var(--white);
}

.blog-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.blog-card {
  background: var(--light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.blog-card-thumb {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}

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

.blog-card-date {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.blog-card-body h2 {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 10px;
  line-height: 1.3;
}

.blog-card-body p {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}

.blog-card-link {
  color: var(--red);
  font-weight: 800;
  font-size: 0.92rem;
  transition: letter-spacing 0.15s;
}
.blog-card:hover .blog-card-link {
  letter-spacing: 0.02em;
}

/* ===== ARTICLE PAGE ===== */
.blog-article {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.blog-article h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 900;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 16px;
}

.blog-byline {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e5e7eb;
}

.blog-article h2 {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--dark);
  margin-top: 40px;
  margin-bottom: 16px;
  padding-left: 16px;
  border-left: 4px solid var(--red);
}

.blog-article p {
  color: var(--mid);
  font-size: 1.02rem;
  line-height: 1.8;
  margin-bottom: 1.4rem;
}

.blog-article ul, .blog-article ol {
  color: var(--mid);
  font-size: 1.02rem;
  line-height: 1.8;
  margin-bottom: 1.4rem;
  padding-left: 24px;
}

.blog-article li {
  margin-bottom: 8px;
  list-style: disc;
}

.blog-article ol li {
  list-style: decimal;
}

.blog-article a {
  color: var(--red);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.blog-article a:hover {
  opacity: 0.8;
}

.blog-article strong {
  color: var(--dark);
  font-weight: 800;
}

/* ===== ARTICLE CTA BOX ===== */
.blog-cta {
  background: linear-gradient(135deg, #e3000b 0%, #9b0008 100%);
  color: var(--white);
  text-align: center;
  padding: 44px 32px;
  border-radius: var(--radius);
  margin-top: 48px;
}

.blog-cta h3 {
  font-size: 1.4rem;
  font-weight: 900;
  margin-bottom: 12px;
}

.blog-cta p {
  color: rgba(255,255,255,0.88) !important;
  margin-bottom: 24px !important;
  font-size: 1rem !important;
}

.blog-cta .btn-primary {
  background: var(--white);
  color: var(--red);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.blog-cta .btn-primary:hover {
  background: #f3f3f3;
}

/* ===== MORE POSTS SECTION ===== */
.more-posts {
  padding: 60px 0;
  background: var(--light);
}

.more-posts h2 {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 900;
  margin-bottom: 32px;
  color: var(--dark);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .blog-header {
    padding: 60px 24px 40px;
  }
  .blog-article {
    padding: 32px 20px 60px;
  }
  .blog-article h2 {
    font-size: 1.2rem;
  }
  .blog-cards {
    grid-template-columns: 1fr;
  }
}
