/* ==========================================================================
   MidWicket Blog & Editorial Stylesheet
   ========================================================================== */

/* ----------------- Hub Page (.bb-hub-hero / .blog-hub) ----------------- */
.blog-hub-hero {
  padding: 48px 0 32px;
  text-align: center;
}

.blog-hub-title {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0 0 12px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.blog-hub-title i {
  font-style: normal;
}

.blog-hub-sub {
  color: var(--muted, #94a3b8);
  font-size: 16px;
  max-width: 680px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

/* Category Filter Tabs */
.blog-filter-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.blog-filter-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 8px 18px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.blog-filter-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.blog-filter-btn.active {
  background: #f0b600;
  color: #0b0e14;
  border-color: #f0b600;
  box-shadow: 0 0 16px rgba(240, 182, 0, 0.35);
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
  margin-bottom: 60px;
}

.blog-card {
  background: #111722;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  border-color: rgba(240, 182, 0, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.blog-card-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #1a2230;
  overflow: hidden;
}

.blog-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.blog-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(240, 182, 0, 0.92);
  color: #000;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  backdrop-filter: blur(4px);
}

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

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 10px;
}

.blog-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card:hover .blog-card-title {
  color: #f0b600;
}

.blog-card-excerpt {
  color: #94a3b8;
  font-size: 13.5px;
  line-height: 1.6;
  margin: 0 0 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 14px;
  font-size: 13px;
  color: #f0b600;
  font-weight: 600;
}

/* ----------------- Single Blog Post Reader ----------------- */
.article-page {
  padding: 40px 0 80px;
}

/* Clean, distraction-free centered container */
.article-container {
  max-width: 840px;
  margin: 0 auto;
  padding: 0 20px;
}

.article-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

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

.article-breadcrumbs a:hover {
  color: #f0b600;
}

.article-header {
  margin-bottom: 32px;
}

.article-category-badge {
  display: inline-block;
  background: rgba(240, 182, 0, 0.15);
  color: #f0b600;
  border: 1px solid rgba(240, 182, 0, 0.3);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 12px;
  border-radius: 6px;
  margin-bottom: 16px;
}

.article-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin: 0 0 18px;
  letter-spacing: -0.5px;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13.5px;
  color: #94a3b8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 20px;
}

.article-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-cover-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #111722;
  margin-bottom: 36px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.article-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Typography & Content Styling */
.article-content {
  color: #cbd5e1;
  font-size: 16.5px;
  line-height: 1.8;
}

.article-content p {
  margin: 0 0 24px;
}

.article-content p.lead {
  font-size: 18.5px;
  line-height: 1.7;
  color: #e2e8f0;
  font-weight: 400;
}

.article-content h2 {
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  margin: 44px 0 18px;
  line-height: 1.3;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.article-content h3 {
  color: #f1f5f9;
  font-size: 20px;
  font-weight: 600;
  margin: 32px 0 14px;
  line-height: 1.35;
}

.article-content strong {
  color: #fff;
}

.article-content a {
  color: #f0b600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.article-content a:hover {
  color: #fcd34d;
}

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

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

/* Callout Box */
.blog-callout {
  background: linear-gradient(135deg, rgba(240, 182, 0, 0.08), rgba(15, 23, 42, 0.8));
  border-left: 4px solid #f0b600;
  border-radius: 0 10px 10px 0;
  padding: 18px 22px;
  margin: 32px 0;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.blog-callout-icon {
  font-size: 24px;
  line-height: 1;
}

.blog-callout-body {
  color: #e2e8f0;
  font-size: 15px;
  line-height: 1.6;
}

/* Tables */
.blog-table-wrap {
  overflow-x: auto;
  margin: 32px 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.blog-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}

.blog-table th {
  background: rgba(255, 255, 255, 0.05);
  color: #f0b600;
  padding: 12px 16px;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
}

.blog-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Social Sharing & Action Bar */
.article-share-box {
  margin: 48px 0;
  padding: 24px;
  background: #111722;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.article-share-label {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-share-btns {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.share-btn-wa { background: #25d366; }
.share-btn-x { background: #000; border: 1px solid rgba(255, 255, 255, 0.2); }
.share-btn-fb { background: #1877f2; }
.share-btn-tg { background: #0088cc; }
.share-btn-copy { background: rgba(255, 255, 255, 0.12); color: #fff; }

.share-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

/* Next / Prev Article Navigation */
.article-nav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 48px 0;
  padding: 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.article-nav-card {
  background: #111722;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 16px 20px;
  text-decoration: none;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.article-nav-card:hover {
  border-color: rgba(240, 182, 0, 0.4);
  transform: translateY(-3px);
}

.article-nav-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #f0b600;
  font-weight: 700;
  margin-bottom: 6px;
}

.article-nav-title {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-nav-card.next {
  text-align: right;
}

/* Related Posts Section (Exactly 3) */
.related-posts-section {
  margin-top: 56px;
}

.related-posts-heading {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .article-nav-grid {
    grid-template-columns: 1fr;
  }
  .article-nav-card.next {
    text-align: left;
  }
  .article-share-box {
    flex-direction: column;
    align-items: flex-start;
  }
}
