/* ================================================
   CONCERT Knowledge Base Styles
   ================================================ */

/* ---- KB Hero (Index Page) ---- */
.kb-hero {
  background: linear-gradient(135deg, #0d1b2a 0%, #2fa7d8 100%);
  padding: 80px 0 60px;
  text-align: center;
  color: #eee9de;
  margin-bottom: 0;
}

.kb-hero h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #eee9de;
}

.kb-hero h3 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 12px;
}

.kb-hero p {
  font-size: 18px;
  opacity: 0.85;
  max-width: 640px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.9);
}

/* ---- KB Categories Grid (Index Page) ---- */
.kb-categories {
  padding: 60px 0 80px;
}

.kb-category-card {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(88, 108, 145, 0.45) !important;
  transition: border-color 0.3s ease-in-out;
}

.kb-category-card:hover {
  border: 1px solid rgba(88, 108, 145, 0.85) !important;
}

.kb-category-card .fact-item-counter {
  padding-top: 8px;
}

.kb-category-card .fact-item-counter i {
  font-size: 152px;
  line-height: 1em;
  color: var(--bg-color);
  background:
    linear-gradient(180deg, rgba(6, 6, 6, 0) 49.56%, var(--bg-color) 78.6%),
    linear-gradient(
      90deg,
      var(--accent-color) 15%,
      var(--accent-secondary-color) 100%
    );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-stroke: 2px transparent;
  transition: all 0.3s ease-in-out;
}

.kb-category-card:hover .fact-item-counter i {
  color: transparent;
}

.kb-category-card .fact-item-content {
  position: relative;
  margin-top: -15px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.kb-category-card .fact-item-content h3 {
  font-size: 17px;
  text-align: left;
}

.kb-category-card .kb-cat-desc {
  font-size: 13px;
  color: rgba(238, 233, 222, 0.6);
  margin-bottom: 18px;
  line-height: 1.6;
  flex: 0 0 auto;
  text-align: left;
}

.kb-article-list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
  text-align: left;
}

.kb-article-list li {
  border-top: 1px solid var(--divider-color);
  padding: 0;
}

.kb-article-list li:first-child {
  border-top: none;
}

.kb-article-list a {
  color: var(--text-color);
  font-size: 13.5px;
  text-decoration: none;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 9px 0;
  line-height: 1.5;
  transition: color 0.15s;
}

.kb-article-list a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

.kb-article-list a::before {
  content: "\f15c";
  font-family: "Font Awesome 6 Free";
  font-weight: 400;
  font-size: 12px;
  margin-top: 3px;
  flex-shrink: 0;
  color: rgba(238, 233, 222, 0.4);
  transition: color 0.15s;
}

.kb-article-list a:hover::before {
  color: var(--accent-color);
}

.kb-coming-soon {
  font-size: 13px;
  color: rgba(238, 233, 222, 0.35);
  font-style: italic;
  padding: 8px 0;
}

.kb-article-count {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(238, 233, 222, 0.45);
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--divider-color);
  flex: 0 0 auto;
}

/* ---- Article Page Layout ---- */
.kb-article-layout {
  padding: 50px 0 80px;
}

/* Breadcrumb */
.kb-breadcrumb {
  font-size: 13px;
  color: #8fa3c8;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.kb-breadcrumb a {
  color: #eee9de;
  text-decoration: none;
  transition: color 0.15s;
}

.kb-breadcrumb a:hover {
  color: #2fa7d8;
  text-decoration: underline;
}

.kb-breadcrumb .separator {
  color: #ccd5e0;
  font-size: 12px;
  margin: 0 4px;
}

.kb-breadcrumb span:last-child {
  color: #586c91;
  font-weight: 500;
}

/* Back link */
.kb-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #2f84d8;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 28px;
  transition:
    color 0.15s,
    gap 0.15s;
}

.kb-back-link:hover {
  color: #2fa7d8;
  gap: 10px;
  text-decoration: none;
}

/* Article body */
.kb-article-body {
  padding-right: 32px;
}

.kb-article-title {
  font-size: 30px;
  font-weight: 700;
  color: #eee9de;
  margin-bottom: 28px;
  line-height: 1.3;
  padding-bottom: 20px;
  border-bottom: 2px solid #eee9de;
}

.kb-article-body h1 {
  font-size: 22px;
  font-weight: 700;
  color: #eee9de;
  margin-top: 32px;
  margin-bottom: 14px;
  line-height: 1.3;
}

.kb-article-body h2 {
  font-size: 20px;
  font-weight: 700;
  color: #2c667d;
  margin-top: 36px;
  margin-bottom: 14px;
  line-height: 1.3;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee9de;
}

.kb-article-body h3 {
  font-size: 17px;
  font-weight: 600;
  color: #2fa7d8;
  margin-top: 28px;
  margin-bottom: 10px;
  line-height: 1.4;
}

.kb-article-body h4 {
  font-size: 15px;
  font-weight: 700;
  color: #eee9de;
  margin-top: 20px;
  margin-bottom: 8px;
}

.kb-article-body h5 {
  font-size: 14px;
  font-weight: 700;
  color: #eee9de;
  margin-top: 16px;
  margin-bottom: 8px;
}

.kb-article-body p {
  color: #eee9de;
  line-height: 1.8;
  margin-bottom: 16px;
  font-size: 15px;
}

.kb-article-body ul,
.kb-article-body ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.kb-article-body li {
  color: #eee9de;
  line-height: 1.75;
  margin-bottom: 8px;
  font-size: 15px;
}

.kb-article-body blockquote {
  border-left: 4px solid #1546a9;
  padding: 12px 20px;
  background: #f0f4fb;
  border-radius: 0 8px 8px 0;
  margin: 20px 0;
  color: #586c91;
  font-size: 14px;
}

.kb-article-body blockquote p {
  margin: 0;
  color: #586c91;
  font-size: 14px;
}

.kb-article-body blockquote strong {
  color: #2a5298;
}

.kb-article-body hr {
  border: none;
  border-top: 1px solid #e3e9f4;
  margin: 32px 0;
}

.kb-article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid #e3e9f4;
  margin: 16px 0;
  display: block;
}

.kb-article-body img.alignright {
  float: right;
  margin: 4px 0 20px 28px;
  max-width: 280px;
}

.kb-article-body img.alignleft {
  float: left;
  margin: 4px 28px 20px 0;
  max-width: 280px;
}

.kb-article-body img.aligncenter,
.kb-article-body img.alignnone {
  display: block;
  margin: 16px auto;
}

.kb-article-body .wp-caption {
  max-width: 100%;
  margin: 16px auto;
  text-align: center;
}

.kb-article-body .wp-caption img {
  margin-bottom: 8px;
  border-radius: 6px;
}

.kb-article-body .wp-caption-text,
.kb-article-body .wp-caption p {
  font-size: 12px;
  color: #8fa3c8;
  font-style: italic;
  margin: 4px 0 0 0;
  text-align: center;
}

.kb-article-body a {
  color: #2fa7d8;
  text-decoration: none;
}

.kb-article-body a:hover {
  color: #2fa7d8;
  text-decoration: underline;
}

/* Strong red notice style (from original articles) */
.kb-article-body span[style*="color: #ff0000"],
.kb-article-body span[style*="color:#ff0000"] {
  color: #c0392b !important;
  font-weight: 600;
}

.kb-article-body span[style*="color: #339966"],
.kb-article-body span[style*="color:#339966"] {
  color: #27ae60 !important;
}

/* Clearfix for floated images */
.kb-article-body::after {
  content: "";
  display: table;
  clear: both;
}

/* ---- Sidebar ---- */
.kb-sidebar {
  position: sticky;
  top: 100px;
}

.kb-sidebar-widget {
  background: #f8fafc;
  border: 1px solid #e3e9f4;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.kb-sidebar-widget h4 {
  font-size: 11px;
  font-weight: 700;
  color: #0d1b2a;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #2fa7d8;
}

.kb-sidebar-category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.kb-sidebar-category-list li {
  border-bottom: 1px solid #e3e9f4;
}

.kb-sidebar-category-list li:last-child {
  border-bottom: none;
}

.kb-sidebar-category-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  color: #2fa7d8;
  font-size: 13px;
  text-decoration: none;
  gap: 8px;
  line-height: 1.4;
  transition: color 0.15s;
}

.kb-sidebar-category-list a:hover {
  color: #2fa7d8;
}

.kb-sidebar-category-list .count {
  background: #e3e9f4;
  color: #586c91;
  font-size: 10px;
  font-weight: 700;
  border-radius: 20px;
  padding: 2px 8px;
  flex-shrink: 0;
}

.kb-sidebar-category-list li.active a {
  font-weight: 700;
  color: #0d1b2a;
}

.kb-sidebar-category-list li.active .count {
  background: #2fa7d8;
  color: #eee9de;
}

/* ---- Support CTA widget ---- */
.kb-support-widget {
  background: linear-gradient(135deg, #222934 0%, #586c91 100%);
  border-radius: 16px;
  padding: 24px;
  color: #4c4949;
  text-align: center;
}

.kb-support-widget h4 {
  font-size: 15px;
  font-weight: 700;
  color: #eee9de;
  margin-bottom: 10px;
}

.kb-support-widget p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 16px;
  line-height: 1.6;
}

.kb-support-widget a {
  background: #eee9de;
  color: #2fa7d8;
  border-radius: 6px;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  transition:
    background 0.2s,
    color 0.2s;
}

.kb-support-widget a::before {
  display: none;
}

.kb-support-widget a:hover {
  background: #e3e9f4;
  color: #2fa7d8;
}

/* ---- Category section anchor offset (for sticky nav) ---- */
.kb-category-anchor {
  display: block;
  position: relative;
  top: -100px;
  visibility: hidden;
  pointer-events: none;
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
  .kb-article-body {
    padding-right: 0;
  }

  .kb-article-body img.alignright,
  .kb-article-body img.alignleft {
    float: none;
    display: block;
    margin: 16px auto;
    max-width: 100%;
  }

  .kb-sidebar {
    position: static;
    margin-top: 48px;
  }

  .kb-hero h1 {
    font-size: 32px;
  }

  .kb-hero p {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .kb-article-title {
    font-size: 24px;
  }

  .kb-article-layout {
    padding: 36px 0 60px;
  }

  .kb-categories {
    padding: 40px 0 60px;
  }
}
