/* ============================================================
   BLOG DETAIL PAGE — blog.css
============================================================ */

body { background: #f5f7ff; }
.site-footer { margin-top: 0; }

/* ============================================================
   MAIN LAYOUT
============================================================ */
.blog-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.blog-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

/* ============================================================
   ARTICLE
============================================================ */
.blog-article {
  background: #fff;
  border-radius: 20px;
  padding: 44px 48px;
  border: 1px solid #e8eef8;
  box-shadow: 0 4px 20px rgba(13,21,71,0.06);
}

/* Breadcrumb */
.blog-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: #94a3b8;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.blog-breadcrumb a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s;
}

.blog-breadcrumb a:hover { color: #1a52cc; }

.blog-breadcrumb i { font-size: 0.6rem; color: #cbd5e1; }

.blog-breadcrumb span { color: #0d1547; font-weight: 600; }

/* Meta top */
.blog-meta-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.blog-cat-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #1a52cc;
  background: #eef3ff;
  border: 1px solid #c8d9ff;
  padding: 4px 12px;
  border-radius: 50px;
}

.blog-read-time {
  font-size: 0.8rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Title */
.blog-title {
  
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 800;
  color: #0d1547;
  line-height: 1.25;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}

/* Author row */
.blog-author-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.blog-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.blog-author-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a52cc, #4d7fff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.blog-author-name {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #0d1547;
}

.blog-date {
  display: block;
  font-size: 0.76rem;
  color: #94a3b8;
  margin-top: 1px;
}

.blog-share {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: #94a3b8;
}

.blog-share a {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: #f5f7ff;
  border: 1px solid #e2eaf8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s;
}

.blog-share a:hover {
  background: #1a52cc;
  color: #fff;
  border-color: #1a52cc;
}

/* Featured image */
.blog-featured-img {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 32px;
}

.blog-featured-img img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

/* ============================================================
   ARTICLE CONTENT STYLES
   These style whatever HTML the backend/CMS outputs
============================================================ */
.blog-content {
  font-family: 'Lora', serif;
  font-size: 1.02rem;
  line-height: 1.85;
  color: #334155;
}

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

.blog-content h2 {
  
  font-size: 1.35rem;
  font-weight: 800;
  color: #0d1547;
  margin: 36px 0 14px;
  letter-spacing: -0.3px;
}

.blog-content h3 {
  
  font-size: 1.1rem;
  font-weight: 700;
  color: #0d1547;
  margin: 28px 0 10px;
}

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

.blog-content li {
  margin-bottom: 8px;
  color: #475569;
}

.blog-content blockquote {
  border-left: 4px solid #1a52cc;
  background: #f5f8ff;
  padding: 18px 24px;
  border-radius: 0 12px 12px 0;
  margin: 28px 0;
  font-style: italic;
  color: #1a52cc;
  font-size: 1.05rem;
}

.blog-content img {
  width: 100%;
  border-radius: 12px;
  margin: 24px 0;
}

.blog-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  
  font-size: 0.9rem;
}

.blog-content table th {
  background: #0d1547;
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
}

.blog-content table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e8eef8;
  color: #334155;
}

.blog-content table tr:nth-child(even) td {
  background: #f8faff;
}

/* Tags */
.blog-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid #f1f5f9;
  font-size: 0.8rem;
  color: #94a3b8;
}

.blog-tags a {
  background: #f0f4ff;
  border: 1px solid #e2eaf8;
  border-radius: 50px;
  padding: 4px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  transition: all 0.2s;
}

.blog-tags a:hover {
  background: #1a52cc;
  color: #fff;
  border-color: #1a52cc;
}

/* ============================================================
   SIDEBAR
============================================================ */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 100px;
}

/* CTA card */
.sidebar-cta {
  background: linear-gradient(135deg, #0d1547, #1a2470);
  border-radius: 18px;
  padding: 28px 24px;
  text-align: center;
  color: #fff;
}

.sidebar-cta-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(0,212,255,0.15);
  border: 1px solid rgba(0,212,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #00d4ff;
  margin: 0 auto 16px;
}

.sidebar-cta h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.sidebar-cta p {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  margin-bottom: 18px;
}

.sidebar-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #1a52cc, #00cfff);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 11px 24px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 8px 20px rgba(0,212,255,0.2);
}

.sidebar-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,212,255,0.3);
}

/* Related posts */
.sidebar-related {
  background: #fff;
  border: 1px solid #e8eef8;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(13,21,71,0.05);
}

.sidebar-heading {
  font-size: 0.85rem;
  font-weight: 800;
  color: #0d1547;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 18px;
}

.related-post {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
  text-decoration: none;
  transition: all 0.2s;
}

.related-post:last-child { border-bottom: none; }

.related-post:hover { opacity: 0.8; transform: translateX(3px); }

.related-post img,
.related-img-placeholder {
  width: 64px; height: 56px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: #e8eef8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 1.1rem;
}

.related-cat {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #1a52cc;
  margin-bottom: 4px;
}

.related-post p {
  font-size: 0.83rem;
  font-weight: 600;
  color: #0d1547;
  line-height: 1.4;
  margin-bottom: 4px;
}

.related-date {
  font-size: 0.72rem;
  color: #94a3b8;
}

/* Score CTA */
.sidebar-score {
  background: linear-gradient(135deg, #f0fff4, #dcfce7);
  border: 1px solid #bbf7d0;
  border-radius: 18px;
  padding: 24px;
  text-align: center;
}

.sidebar-score-icon {
  font-size: 1.5rem;
  color: #22c55e;
  display: block;
  margin-bottom: 10px;
}

.sidebar-score h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #14532d;
  margin-bottom: 6px;
}

.sidebar-score p {
  font-size: 0.82rem;
  color: #166534;
  margin-bottom: 14px;
  line-height: 1.5;
}

.sidebar-score-btn {
  display: inline-block;
  background: #22c55e;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.25s;
}

.sidebar-score-btn:hover {
  background: #16a34a;
  transform: translateY(-2px);
}

/* ============================================================
   MORE ARTICLES BOTTOM GRID
============================================================ */
.blog-more-wrap {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid #e8eef8;
}

.blog-more-title {
  
  font-size: 1.3rem;
  font-weight: 800;
  color: #0d1547;
  margin-bottom: 24px;
  letter-spacing: -0.3px;
}

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

.blog-more-card {
  background: #fff;
  border: 1px solid #e8eef8;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(13,21,71,0.05);
}

.blog-more-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(13,21,71,0.10);
  border-color: #c8d9ff;
}

.blog-more-img {
  height: 160px;
  overflow: hidden;
}

.blog-more-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

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

.blog-more-body {
  padding: 18px 20px;
}

.blog-more-body h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0d1547;
  line-height: 1.4;
  margin: 8px 0 6px;
}

.blog-more-body span {
  font-size: 0.75rem;
  color: #94a3b8;
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
  .blog-layout { grid-template-columns: 1fr 280px; gap: 32px; }
}

@media (max-width: 860px) {
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; }
  .blog-more-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
  .blog-main { padding: 24px 14px 60px; }
  .blog-article { padding: 28px 20px; }
  .blog-featured-img img { height: 220px; }
  .blog-more-grid { grid-template-columns: 1fr; }
  .blog-author-row { flex-direction: column; align-items: flex-start; }
  .blog-content { font-size: 0.97rem; }
}
