/* =========================================================
   MCQBD - Blog & Job Circular Specific Styles
   (This file extends the main style.css for blog components)
========================================================= */

/* ==========================================
   1. Blog Card & Grid Styles
========================================== */
.blog-badge {
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  color: var(--accent);
  padding: 5px 14px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Dark mode adjustment for badge */
[data-theme="dark"] .blog-badge {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.card--category h3 {
  line-height: 1.45;
  font-size: 1.15rem;
  margin: 10px 0 12px;
  color: var(--text);
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-faint);
  margin-top: 18px;
  border-top: 1px dashed var(--border);
  padding-top: 14px;
}

.blog-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

/* ==========================================
   2. Single Blog Post Styles
========================================== */
.blog-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px;
}

.blog-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 16px;
  line-height: 1.35;
}

.blog-header-meta {
  display: flex;
  justify-content: center;
  gap: 20px;
  color: var(--text-soft);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.blog-header-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.blog-content {
  max-width: 800px;
  margin: 0 auto;
  background: var(--surface-solid);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.blog-content p {
  margin-bottom: 20px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
}

.blog-content h2, 
.blog-content h3 {
  margin: 35px 0 15px;
  color: var(--text);
}

.blog-content ul, 
.blog-content ol {
  margin-bottom: 20px;
  padding-left: 20px;
  color: var(--text);
  line-height: 1.8;
  font-size: 1.05rem;
}

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

/* ==========================================
   3. PDF Viewer Container
========================================== */
.pdf-wrapper {
  position: relative;
  width: 100%;
  /* A4 সাইজের আসপেক্ট রেশিও (1:1.414) বজায় রাখার জন্য */
  padding-bottom: 130%; 
  margin: 30px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  background: var(--bg-alt);
}

.pdf-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ==========================================
   4. Responsive Adjustments for Blog
========================================== */
@media (max-width: 768px) {
  .blog-content {
    padding: 24px;
    border-radius: var(--radius-md);
  }
  
  .blog-header-meta {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
  
  .pdf-wrapper {
     /* মোবাইলে পিডিএফ ভিউয়ারের উচ্চতা কিছুটা কমানোর জন্য */
     padding-bottom: 150%; 
  }
}