/* ==========================================================================
   Begochi UI — Blog & Knowledge Base Stylesheet
   Architecture: Extends Begochi Academy Design System (index.css)
   Colors: Gold (#E5B000) · Ink (#09090C) · Cream (#F8F3E5) · Surface (#fffdf7)
   ========================================================================== */

/* Reading Progress Bar (Fixed Top) */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: #E5B000;
  width: 0%;
  z-index: 9999;
  transition: width 100ms linear;
  box-shadow: 0 0 10px rgba(229, 176, 0, 0.65);
}

/* ==========================================================================
   Breadcrumbs Navigation
   ========================================================================== */
.blog-breadcrumbs {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
  color: #706e66;
  margin-bottom: 28px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  border: 1px solid rgba(9, 9, 12, 0.05);
  box-shadow:
    3px 4px 10px rgba(9, 9, 12, 0.03),
    -2px -2px 7px rgba(255, 255, 255, 0.65);
}

.blog-breadcrumbs .crumb-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #706e66;
  text-decoration: none;
  font-weight: 600;
  transition: color 180ms ease;
}

.blog-breadcrumbs .crumb-link:hover {
  color: #5f4900;
}

.blog-breadcrumbs .crumb-icon {
  color: #E5B000;
}

.blog-breadcrumbs .crumb-sep {
  opacity: 0.35;
  font-size: 10px;
}

.blog-breadcrumbs .crumb-current {
  color: #09090C;
  font-weight: 800;
}

/* ==========================================================================
   Toolbar: Search Box & Category Filter Pills
   ========================================================================== */
.blog-toolbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin: 32px auto 42px;
  width: 100%;
}

.blog-search-box {
  position: relative;
  width: 100%;
  max-width: 520px;
}

.blog-search-input {
  width: 100%;
  padding: 13px 20px 13px 48px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(9, 9, 12, 0.07);
  border-radius: 999px;
  box-shadow:
    inset 2px 3px 6px rgba(9, 9, 12, 0.05),
    inset -2px -2px 6px rgba(255, 255, 255, 0.9);
  font-family: inherit;
  font-size: 12.5px;
  color: #09090C;
  outline: none;
  transition:
    border-color 200ms ease,
    box-shadow 200ms ease,
    background 200ms ease;
}

.blog-search-input:focus {
  background: #ffffff;
  border-color: #E5B000;
  box-shadow:
    0 0 0 3px rgba(229, 176, 0, 0.18),
    inset 1px 2px 4px rgba(9, 9, 12, 0.04);
}

.blog-search-btn {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #706e66;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 180ms ease;
}

.blog-search-btn:hover {
  color: #E5B000;
}

.blog-categories-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px;
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 33px;
  padding: 0 15px;
  background:
    linear-gradient(145deg,
      rgba(255, 255, 255, 0.78),
      rgba(255, 253, 247, 0.98));
  border: 1px solid rgba(9, 9, 12, 0.07);
  border-radius: 999px;
  box-shadow:
    4px 5px 12px rgba(9, 9, 12, 0.04),
    -3px -3px 8px rgba(255, 255, 255, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  color: #706e66;
  font-size: 10.5px;
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.cat-pill:hover {
  transform: translateY(-2px);
  color: #09090C;
  border-color: rgba(229, 176, 0, 0.25);
  box-shadow:
    6px 7px 16px rgba(9, 9, 12, 0.06),
    -4px -4px 10px rgba(255, 255, 255, 0.75);
}

.cat-pill.is-active {
  background: #E5B000;
  color: #09090C;
  border-color: #E5B000;
  box-shadow:
    0 4px 14px rgba(229, 176, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.cat-count {
  font-size: 9.5px;
  opacity: 0.8;
  background: rgba(0, 0, 0, 0.07);
  padding: 1px 6px;
  border-radius: 8px;
}

/* ==========================================================================
   Featured Hero Article Card
   ========================================================================== */
.featured-hero-card {
  margin-bottom: 36px !important;
  padding: 0 !important;
  overflow: hidden;
}

.featured-card-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: stretch;
  min-height: 320px;
}

@media (max-width: 860px) {
  .featured-card-grid {
    grid-template-columns: 1fr;
  }
}

.featured-thumb-wrap {
  position: relative;
  overflow: hidden;
  background: #14141a;
  min-height: 260px;
}

.featured-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 400ms ease;
}

.featured-hero-card:hover .featured-thumb-img {
  transform: scale(1.03);
}

.featured-badge-pill {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(9, 9, 12, 0.86);
  backdrop-filter: blur(8px);
  color: #E5B000;
  font-size: 10px;
  font-weight: 800;
  border-radius: 20px;
  border: 1px solid rgba(229, 176, 0, 0.35);
}

.featured-content-wrap {
  padding: 30px 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-main-title {
  margin: 0 0 12px;
  font-size: 19px;
  line-height: 1.7;
  font-weight: 850;
  color: #09090C;
  transition: color 180ms ease;
}

.featured-main-title a {
  color: inherit;
  text-decoration: none;
}

.featured-hero-card:hover .featured-main-title {
  color: #5f4900;
}

.featured-lead-excerpt {
  margin: 0 0 20px;
  color: #706e66;
  font-size: 11.5px;
  line-height: 2.05;
}

/* ==========================================================================
   Article Card Thumbnail Integration
   ========================================================================== */
.academy-card-thumb {
  margin: -24px -24px 18px -24px;
  width: calc(100% + 48px);
  aspect-ratio: 16 / 8.5;
  overflow: hidden;
  background: #14141a;
  border-bottom: 1px solid rgba(9, 9, 12, 0.05);
}

.card-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 380ms ease;
}

.academy-card:hover .card-thumb-img {
  transform: scale(1.04);
}

/* ==========================================================================
   Pagination Matching Begochi Button
   ========================================================================== */
.blog-pagination-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 42px;
}

.page-numbers-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-page-nav {
  min-height: 40px !important;
  padding: 0 16px !important;
  font-size: 10.5px !important;
}

.btn-page-num {
  min-width: 40px !important;
  min-height: 40px !important;
  padding: 0 !important;
  border-radius: 50% !important;
}

.is-active-page {
  min-width: 40px !important;
  min-height: 40px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background: #E5B000 !important;
  color: #09090C !important;
  border-color: #E5B000 !important;
  box-shadow: 0 4px 14px rgba(229, 176, 0, 0.35) !important;
}

/* Empty State Card */
.empty-card-box {
  text-align: center;
  padding: 48px 24px !important;
}

/* ==========================================================================
   Single Article Detail Page
   ========================================================================== */
.article-header-area {
  max-width: 820px;
  margin: 0 auto 36px;
  text-align: center;
}

.article-meta-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.article-headline {
  font-size: clamp(22px, 3.6vw, 32px);
  line-height: 1.55;
  font-weight: 900;
  color: #09090C;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.article-submeta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 11.5px;
  color: #706e66;
}

.submeta-item strong {
  color: #09090C;
}

.submeta-sep {
  opacity: 0.3;
}

.article-cover-card {
  max-width: 960px;
  margin: 0 auto 32px;
  padding: 0 !important;
  overflow: hidden;
}

.article-cover-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

.article-lead-card {
  max-width: 820px;
  margin: 0 auto 36px;
  padding: 22px 28px !important;
  border-right: 4px solid #E5B000 !important;
}

.lead-text {
  font-size: 13.5px;
  line-height: 2.1;
  color: #09090C;
  font-weight: 500;
  margin: 0;
}

/* 2-Column Layout */
.article-columns-wrap {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 28px;
  align-items: start;
}

@media (max-width: 960px) {
  .article-columns-wrap {
    grid-template-columns: 1fr;
  }
}

.article-main-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.article-body-card {
  padding: 36px 36px 28px !important;
}

@media (max-width: 600px) {
  .article-body-card {
    padding: 24px 18px !important;
  }
}

.article-rich-text {
  font-size: 14.5px;
  line-height: 2.2;
  color: #1a1a22;
  word-break: break-word;
}

.article-rich-text h2 {
  font-size: 20px;
  font-weight: 850;
  color: #09090C;
  margin-top: 1.8em;
  margin-bottom: 0.7em;
  padding-right: 14px;
  border-right: 4px solid #E5B000;
  scroll-margin-top: 104px;
}

.article-rich-text h3 {
  font-size: 16.5px;
  font-weight: 800;
  color: #09090C;
  margin-top: 1.5em;
  margin-bottom: 0.6em;
  scroll-margin-top: 104px;
}

.article-rich-text h4 {
  font-size: 14px;
  font-weight: 750;
  color: #09090C;
  margin-top: 1.3em;
  margin-bottom: 0.5em;
}

.article-rich-text p {
  margin-bottom: 1.4em;
}

.article-rich-text a {
  color: #705700;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 750;
}

.article-rich-text a:hover {
  color: #E5B000;
}

.article-rich-text ul,
.article-rich-text ol {
  padding-right: 24px;
  margin-bottom: 1.5em;
}

.article-rich-text li {
  margin-bottom: 0.5em;
}

.article-rich-text blockquote {
  background: rgba(229, 176, 0, 0.06);
  border-right: 4px solid #E5B000;
  padding: 16px 22px;
  margin: 22px 0;
  border-radius: 0 12px 12px 0;
  font-size: 13.5px;
  font-style: italic;
  color: #44433d;
}

.article-rich-text img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  margin: 22px 0;
  box-shadow: 0 8px 20px rgba(9, 9, 12, 0.07);
}

.article-rich-text pre {
  background: #09090C;
  color: #f8f8fc;
  padding: 18px 20px;
  border-radius: 14px;
  overflow-x: auto;
  direction: ltr;
  text-align: left;
  font-size: 12.5px;
  margin: 22px 0;
}

.article-rich-text table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  border-radius: 12px;
  overflow: hidden;
}

.article-rich-text th,
.article-rich-text td {
  padding: 11px 15px;
  border: 1px solid rgba(9, 9, 12, 0.08);
  text-align: right;
  font-size: 12.5px;
}

.article-rich-text th {
  background: rgba(229, 176, 0, 0.09);
  color: #09090C;
  font-weight: 800;
}

/* Tags Inside Article Card */
.article-tags-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid rgba(9, 9, 12, 0.07);
}

.tags-title {
  font-size: 11.5px;
  font-weight: 800;
  color: #09090C;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.neu-tag-item {
  display: inline-flex;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(9, 9, 12, 0.07);
  border-radius: 999px;
  box-shadow: 2px 2px 6px rgba(9, 9, 12, 0.03);
  font-size: 10.5px;
  font-weight: 700;
  color: #706e66;
  text-decoration: none;
  transition: all 180ms ease;
}

.neu-tag-item:hover {
  background: #E5B000;
  color: #09090C;
  border-color: #E5B000;
}

/* FAQ Card */
.article-faq-card {
  padding: 26px !important;
}

.faq-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.faq-card-title {
  font-size: 16px;
  font-weight: 850;
  color: #09090C;
  margin: 0;
}

.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-accordion-item {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(9, 9, 12, 0.07);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 180ms ease;
}

.faq-question-btn {
  width: 100%;
  padding: 14px 18px;
  background: transparent;
  border: none;
  text-align: right;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  color: #09090C;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-arrow-icon {
  color: #E5B000;
  transition: transform 220ms ease;
}

.faq-answer-pane {
  display: none;
  padding: 0 18px 16px;
  font-size: 12px;
  line-height: 1.9;
  color: #706e66;
}

.faq-accordion-item.is-open {
  border-color: rgba(229, 176, 0, 0.35);
}

.faq-accordion-item.is-open .faq-answer-pane {
  display: block;
}

.faq-accordion-item.is-open .faq-arrow-icon {
  transform: rotate(180deg);
}

/* Author Profile Card */
.article-author-card {
  padding: 24px 28px !important;
  display: flex;
  align-items: center;
  gap: 20px;
}

@media (max-width: 600px) {
  .article-author-card {
    flex-direction: column;
    text-align: center;
  }
}

.author-avatar-wrap {
  flex-shrink: 0;
}

.author-avatar-img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #E5B000;
  box-shadow: 0 4px 10px rgba(9, 9, 12, 0.06);
}

.author-avatar-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #f0e9d5;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #E5B000;
}

.author-name-title {
  font-size: 15px;
  font-weight: 850;
  margin: 0 0 3px;
}

.author-role-badge {
  display: inline-block;
  color: #705700;
  font-size: 11px;
  font-weight: 750;
  margin-bottom: 6px;
}

.author-bio-desc {
  font-size: 11.5px;
  line-height: 1.8;
  color: #706e66;
  margin: 0;
}

/* Article CTA Card */
.article-cta-card {
  padding: 34px 28px !important;
  background: linear-gradient(145deg, #121217, #181822) !important;
  color: #fff !important;
  border: 1px solid rgba(229, 176, 0, 0.22) !important;
  text-align: center;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25) !important;
}

.cta-inner-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(229, 176, 0, 0.12);
  border: 1px solid rgba(229, 176, 0, 0.3);
  border-radius: 20px;
  font-size: 10.5px;
  font-weight: 750;
  color: #E5B000;
  margin-bottom: 12px;
}

.cta-title {
  font-size: 18px;
  font-weight: 850;
  color: #fff;
  margin-bottom: 10px;
}

.cta-desc {
  font-size: 12px;
  line-height: 1.85;
  color: #c5c3ba;
  max-width: 480px;
  margin: 0 auto 20px;
}

.btn-primary-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  background: #E5B000;
  color: #09090C;
  font-size: 12px;
  font-weight: 850;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(229, 176, 0, 0.35);
  transition: all 180ms ease;
}

.btn-primary-lg:hover {
  background: #c99a00;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(229, 176, 0, 0.45);
}

/* Related Section */
.related-section-wrap {
  margin-top: 12px;
}

.related-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.dot-gold {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #E5B000;
}

.related-heading {
  font-size: 16px;
  font-weight: 850;
  color: #09090C;
  margin: 0;
}

/* ==========================================================================
   Sidebar Widgets
   ========================================================================== */
.article-sidebar-col {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sidebar-widget {
  padding: 20px !important;
}

.widget-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(9, 9, 12, 0.07);
}

.widget-title {
  font-size: 12px;
  font-weight: 800;
  color: #09090C;
}

/* Table of Contents */
.toc-items-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.toc-link {
  display: block;
  padding: 5px 8px;
  border-radius: 6px;
  color: #706e66;
  text-decoration: none;
  font-size: 11.5px;
  line-height: 1.6;
  transition: all 180ms ease;
}

.toc-link:hover,
.toc-item.active .toc-link {
  background: rgba(229, 176, 0, 0.12);
  color: #5f4900;
  font-weight: 800;
  transform: translateX(-3px);
}

.toc-level-3 {
  padding-right: 12px;
  font-size: 10.5px;
}

/* Social Share Row */
.social-share-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.share-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background:
    linear-gradient(145deg,
      rgba(255, 255, 255, 0.8),
      rgba(255, 253, 247, 0.98));
  border: 1px solid rgba(9, 9, 12, 0.07);
  box-shadow:
    3px 4px 10px rgba(9, 9, 12, 0.04),
    -2px -2px 6px rgba(255, 255, 255, 0.7);
  color: #09090C;
  text-decoration: none;
  cursor: pointer;
  transition: all 180ms ease;
}

.share-icon-btn:hover {
  background: #E5B000;
  color: #09090C;
  border-color: #E5B000;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(229, 176, 0, 0.35);
}

/* Promo Sidebar Widget */
.sidebar-promo-box {
  background:
    linear-gradient(145deg,
      rgba(255, 255, 255, 0.75),
      rgba(251, 246, 233, 0.95)) !important;
  border-color: rgba(229, 176, 0, 0.25) !important;
}

.promo-badge {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 800;
  color: #705700;
  background: rgba(229, 176, 0, 0.12);
  padding: 2px 7px;
  border-radius: 6px;
  margin-bottom: 7px;
}

.promo-title {
  font-size: 13px;
  font-weight: 850;
  margin-bottom: 5px;
  color: #09090C;
}

.promo-desc {
  font-size: 11px;
  line-height: 1.75;
  color: #706e66;
  margin-bottom: 12px;
}

.btn-read-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 8px 12px;
  background: #E5B000;
  color: #09090C;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(229, 176, 0, 0.28);
  transition: all 180ms ease;
}

.btn-read-gold:hover {
  background: #c99a00;
  transform: translateY(-1px);
}
