/* =========================================================
 * Hello Custom Boxes — Blog System
 * UPDATED: clickable category badge, FAQ section on all blog pages,
 * improved mobile/tablet/desktop responsive.
 * Brand: #005e9e / #0078c1 / #333 / #fff / #f5f9fc
 * ========================================================= */

:root {
  --hcb-primary: #005e9e;
  --hcb-secondary: #0078c1;
  --hcb-dark: #333333;
  --hcb-white: #ffffff;
  --hcb-light: #f5f9fc;
  --hcb-border: #e3edf5;
  --hcb-muted: #6a7a8c;
  --hcb-shadow: 0 14px 34px rgba(0, 94, 158, 0.10);
  --hcb-radius: 16px;
}

/* ============ SHARED ============ */
.hcb-blog-page,
.hcb-single-post {
  font-family: 'Inter', 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--hcb-dark);
  background: #fff;
}

.hcb-blog-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.hcb-blog-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition: 0.22s ease;
}

.hcb-blog-btn-primary {
  background: linear-gradient(135deg, var(--hcb-primary) 0%, var(--hcb-secondary) 100%);
  color: #fff;
  box-shadow: 0 8px 18px rgba(0, 94, 158, 0.25);
}
.hcb-blog-btn-primary:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 14px 26px rgba(0, 94, 158, 0.32); }

.hcb-blog-btn-light { background: #fff; color: var(--hcb-primary); }
.hcb-blog-btn-light:hover { transform: translateY(-2px); }

.hcb-blog-btn-block { width: 100%; }

/* ============ HERO ============ */
.hcb-blog-hero {
  position: relative;
  padding: 70px 0 60px;
  background: linear-gradient(135deg, #eaf4fb 0%, #d5e8f5 100%);
  text-align: center;
  overflow: hidden;
}

.hcb-blog-hero::before,
.hcb-blog-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.45;
  pointer-events: none;
}
.hcb-blog-hero::before { width: 320px; height: 320px; background: rgba(0, 120, 193, 0.25); top: -120px; left: -100px; }
.hcb-blog-hero::after  { width: 260px; height: 260px; background: rgba(0, 94, 158, 0.20);  bottom: -100px; right: -80px; }

.hcb-blog-breadcrumb {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--hcb-dark);
  margin-bottom: 18px;
  position: relative;
  z-index: 2;
}
.hcb-blog-breadcrumb a { color: var(--hcb-primary); text-decoration: none; }
.hcb-blog-breadcrumb a:hover { text-decoration: underline; }
.hcb-blog-breadcrumb i { font-style: normal; color: var(--hcb-muted); }
.hcb-blog-breadcrumb .is-current { color: var(--hcb-secondary); }

.hcb-blog-hero-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 16px;
  position: relative;
  z-index: 2;
}
.hcb-blog-hero-title .is-accent { color: var(--hcb-primary); }
.hcb-blog-hero-title .is-and    { color: var(--hcb-dark); margin: 0 6px; }
.hcb-blog-hero-title .is-secondary { color: var(--hcb-secondary); }

.hcb-blog-hero-text {
  max-width: 680px;
  margin: 0 auto;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.65;
  color: var(--hcb-dark);
  position: relative;
  z-index: 2;
}

/* ============ MAIN LAYOUT ============ */
.hcb-blog-main { padding: 56px 0 60px; background: #fff; }

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

/* ============ SIDEBAR ============ */
.hcb-blog-sidebar { position: relative; }
.hcb-blog-sidebar-inner {
  position: sticky;
  top: 100px;
  background: #fff;
  border: 1px solid var(--hcb-border);
  border-radius: var(--hcb-radius);
  padding: 24px;
  box-shadow: var(--hcb-shadow);
}

.hcb-blog-widget { margin-bottom: 26px; }
.hcb-blog-widget:last-child { margin-bottom: 0; }

.hcb-blog-widget-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--hcb-primary);
  margin: 0 0 12px;
  letter-spacing: -0.2px;
}

.hcb-blog-search { position: relative; }
.hcb-blog-search input {
  width: 100%;
  padding: 12px 38px 12px 14px;
  font-size: 14px;
  border: 1px solid var(--hcb-border);
  border-radius: 12px;
  background: var(--hcb-light);
  color: var(--hcb-dark);
  outline: none;
  transition: 0.2s ease;
  box-sizing: border-box;
}
.hcb-blog-search input:focus { border-color: var(--hcb-secondary); background: #fff; box-shadow: 0 0 0 3px rgba(0, 120, 193, 0.12); }
.hcb-blog-search-icon { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--hcb-muted); font-size: 14px; pointer-events: none; }

.hcb-blog-cat-list { list-style: none; padding: 0; margin: 0; }
.hcb-blog-cat-list li { margin-bottom: 4px; }
.hcb-blog-cat-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--hcb-dark);
  text-decoration: none;
  transition: 0.18s ease;
}
.hcb-blog-cat-link:hover { background: var(--hcb-light); color: var(--hcb-primary); }
.hcb-blog-cat-list li.is-active .hcb-blog-cat-link {
  background: linear-gradient(135deg, var(--hcb-primary) 0%, var(--hcb-secondary) 100%);
  color: #fff;
  box-shadow: 0 6px 14px rgba(0, 94, 158, 0.22);
}
.hcb-blog-cat-count { font-size: 12px; opacity: 0.85; font-weight: 700; }
.hcb-blog-cat-list li.is-active .hcb-blog-cat-count { background: rgba(255,255,255,0.18); padding: 2px 8px; border-radius: 999px; }

.hcb-blog-recent-list { list-style: none; padding: 0; margin: 0; }
.hcb-blog-recent-item {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  text-decoration: none;
  color: var(--hcb-dark);
  border-bottom: 1px solid var(--hcb-border);
}
.hcb-blog-recent-list li:last-child .hcb-blog-recent-item { border-bottom: 0; }
.hcb-blog-recent-thumb {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--hcb-light);
}
.hcb-blog-recent-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hcb-blog-recent-fallback { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--hcb-primary), var(--hcb-secondary)); }
.hcb-blog-recent-meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hcb-blog-recent-title { font-size: 13px; font-weight: 600; line-height: 1.35; color: var(--hcb-dark); }
.hcb-blog-recent-item:hover .hcb-blog-recent-title { color: var(--hcb-primary); }
.hcb-blog-recent-date { font-size: 11px; color: var(--hcb-muted); }

/* ============ RESULTS BAR ============ */
.hcb-blog-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--hcb-border);
}
.hcb-blog-results-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--hcb-primary);
  margin: 0;
}
.hcb-blog-results-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--hcb-muted);
  background: var(--hcb-light);
  padding: 6px 12px;
  border-radius: 999px;
}

/* ============ AJAX LOADER ============ */
.hcb-blog-content-area { position: relative; min-height: 240px; }
.hcb-blog-ajax-loader {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 5;
  border-radius: 16px;
}
.hcb-blog-content-area.is-loading .hcb-blog-ajax-loader { display: flex; }

.hcb-blog-spinner {
  width: 44px; height: 44px;
  border: 4px solid var(--hcb-border);
  border-top-color: var(--hcb-primary);
  border-radius: 50%;
  animation: hcbSpin 0.7s linear infinite;
}
@keyframes hcbSpin { to { transform: rotate(360deg); } }

/* ============ BLOG GRID + CARDS (UPDATED — article wrapper, links inside) ============ */
.hcb-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 30px;
}

.hcb-blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--hcb-border);
  border-radius: var(--hcb-radius);
  overflow: hidden;
  color: var(--hcb-dark);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  animation: hcbFadeUp 0.4s ease;
}
.hcb-blog-card:hover { transform: translateY(-6px); box-shadow: 0 22px 48px rgba(0, 94, 158, 0.16); }

@keyframes hcbFadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.hcb-blog-card-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--hcb-light);
}
.hcb-blog-card-image {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  text-decoration: none;
}
.hcb-blog-card-image img,
.hcb-blog-card-image .wp-post-image {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.5s ease;
}
.hcb-blog-card:hover .hcb-blog-card-image img { transform: scale(1.06); }
.hcb-blog-card-fallback { position: absolute; inset: 0; background: linear-gradient(135deg, var(--hcb-primary), var(--hcb-secondary)); }

.hcb-blog-card-cat {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255,255,255,0.96);
  color: var(--hcb-primary);
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
  z-index: 3;
  transition: 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 94, 158, 0.18);
}
.hcb-blog-card-cat:hover {
  background: var(--hcb-primary);
  color: #fff;
  transform: translateY(-1px);
}

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

.hcb-blog-card-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--hcb-muted); margin-bottom: 10px; font-weight: 600; }
.hcb-blog-card-meta span { display: inline-flex; align-items: center; gap: 5px; }

.hcb-blog-card-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 10px;
}
.hcb-blog-card-title a {
  color: var(--hcb-dark);
  text-decoration: none;
  transition: 0.2s ease;
}
.hcb-blog-card:hover .hcb-blog-card-title a,
.hcb-blog-card-title a:hover { color: var(--hcb-primary); }

.hcb-blog-card-excerpt { font-size: 14px; line-height: 1.6; color: var(--hcb-muted); margin: 0 0 16px; flex: 1; }

.hcb-blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--hcb-border);
}
.hcb-blog-card-cat-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--hcb-secondary);
  text-decoration: none;
  transition: 0.2s ease;
}
.hcb-blog-card-cat-link:hover { color: var(--hcb-primary); }
.hcb-blog-card-cat-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--hcb-primary), var(--hcb-secondary));
  display: inline-block;
}

.hcb-blog-card-readmore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--hcb-primary);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.hcb-blog-card-readmore::after { content: "→"; transition: transform 0.25s ease; }
.hcb-blog-card:hover .hcb-blog-card-readmore::after { transform: translateX(4px); }
.hcb-blog-card-readmore:hover { color: var(--hcb-secondary); }

/* ============ EMPTY ============ */
.hcb-blog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: var(--hcb-light);
  border-radius: var(--hcb-radius);
  color: var(--hcb-muted);
}

/* ============ LOAD MORE ============ */
.hcb-blog-loadmore-wrap { text-align: center; padding: 14px 0 0; }
.hcb-blog-btn-loadmore {
  background: linear-gradient(135deg, var(--hcb-primary) 0%, var(--hcb-secondary) 100%);
  color: #fff;
  padding: 14px 28px;
  font-size: 15px;
  box-shadow: 0 10px 22px rgba(0, 94, 158, 0.22);
}
.hcb-blog-btn-loadmore:hover { transform: translateY(-2px); }
.hcb-blog-btn-loadmore.is-loading { pointer-events: none; opacity: 0.85; }
.hcb-blog-btn-spinner {
  display: none;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: hcbSpin 0.7s linear infinite;
}
.hcb-blog-btn-loadmore.is-loading .hcb-blog-btn-spinner { display: inline-block; }

/* ============ FAQ SECTION ON LISTING / CATEGORY ============ */
.hcb-blog-faq-section {
  padding: 50px 0 70px;
  background: var(--hcb-light);
  border-top: 1px solid var(--hcb-border);
}
.hcb-blog-faq-section .hcb-single-faq {
  max-width: 880px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--hcb-radius);
  padding: 32px 36px;
  box-shadow: var(--hcb-shadow);
}
.hcb-blog-faq-section .hcb-single-section-title {
  margin-top: 0;
  text-align: center;
  margin-bottom: 24px;
}

/* ============ BACK TO TOP ============ */
.hcb-blog-back-to-top {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(135deg, var(--hcb-primary) 0%, var(--hcb-secondary) 100%);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(0, 94, 158, 0.25);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
  z-index: 50;
}
.hcb-blog-back-to-top.is-visible { opacity: 1; visibility: visible; }
.hcb-blog-back-to-top:hover { transform: translateY(-3px); }

/* =========================================================
 *                 SINGLE POST
 * ========================================================= */
.hcb-single-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--hcb-primary) 0%, var(--hcb-secondary) 100%);
  z-index: 9999;
  transition: width 0.1s ease;
}

.hcb-single-breadcrumb {
  background: var(--hcb-light);
  padding: 14px 0;
  border-bottom: 1px solid var(--hcb-border);
}
.hcb-single-breadcrumb .hcb-blog-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}
.hcb-single-breadcrumb a { color: var(--hcb-primary); text-decoration: none; }
.hcb-single-breadcrumb a:hover { text-decoration: underline; }
.hcb-single-breadcrumb i { font-style: normal; color: var(--hcb-muted); }
.hcb-single-breadcrumb .is-current { color: var(--hcb-dark); }

.hcb-single-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: linear-gradient(135deg, var(--hcb-primary) 0%, var(--hcb-secondary) 100%);
}
.hcb-single-hero-image { position: absolute; inset: 0; }
.hcb-single-hero-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hcb-single-hero-fallback { background: linear-gradient(135deg, var(--hcb-primary), var(--hcb-secondary)); }
.hcb-single-hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,30,60,0.15) 0%, rgba(0,30,60,0.78) 100%); }
.hcb-single-hero-inner { position: relative; z-index: 2; width: 100%; padding: 60px 0 50px; color: #fff; }

.hcb-single-hero-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.hcb-single-hero-cat {
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.hcb-single-hero-cat:hover { background: rgba(255,255,255,0.28); color: #fff; }

.hcb-single-hero-title {
  font-size: clamp(24px, 4vw, 46px);
  font-weight: 800;
  color: #fff;
  line-height: 1.18;
  margin: 0 0 16px;
  max-width: 880px;
}
.hcb-single-hero-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 14px; opacity: 0.95; }
.hcb-single-meta-item { display: inline-flex; align-items: center; gap: 8px; }
.hcb-single-meta-divider { opacity: 0.6; }

.hcb-single-author-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
  border: 2px solid rgba(255,255,255,0.5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

/* ========== Single Layout ========== */
.hcb-single-main { padding: 50px 0 70px; background: #fff; }
.hcb-single-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

.hcb-single-article {
  background: #fff;
  border: 1px solid var(--hcb-border);
  border-radius: var(--hcb-radius);
  padding: 36px 40px;
  box-shadow: var(--hcb-shadow);
}

/* Share */
.hcb-single-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--hcb-border); }
.hcb-single-share-label { font-size: 13px; font-weight: 700; color: var(--hcb-muted); margin-right: 4px; }
.hcb-single-share-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  transition: 0.2s ease;
}
.hcb-single-share-btn:hover { transform: translateY(-2px) scale(1.05); }
.hcb-single-share-btn.is-fb   { background: #1877f2; }
.hcb-single-share-btn.is-tw   { background: #111; }
.hcb-single-share-btn.is-li   { background: #0a66c2; }
.hcb-single-share-btn.is-wa   { background: #25d366; }
.hcb-single-share-btn.is-copy { background: var(--hcb-primary); }

/* Top TOC (mobile + tablet) */
.hcb-single-toc-top {
  background: var(--hcb-light);
  border: 1px solid var(--hcb-border);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 28px;
  display: none;
}
.hcb-single-toc-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  color: var(--hcb-primary);
}
.hcb-single-toc-icon { font-size: 22px; line-height: 1; transition: 0.2s; }
.hcb-single-toc-top.is-open .hcb-single-toc-icon { transform: rotate(45deg); }
.hcb-single-toc-list-wrap { display: none; padding-top: 12px; }
.hcb-single-toc-top.is-open .hcb-single-toc-list-wrap { display: block; }

/* TOC list */
.hcb-single-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: hcbtoc;
}
.hcb-single-toc-list li { margin: 0; padding: 0; }
.hcb-single-toc-list li.is-h3 { padding-left: 18px; }
.hcb-single-toc-list a {
  display: block;
  padding: 8px 12px;
  border-left: 3px solid transparent;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--hcb-dark);
  text-decoration: none;
  transition: 0.18s ease;
  border-radius: 0 8px 8px 0;
}
.hcb-single-toc-list a:hover { background: var(--hcb-light); color: var(--hcb-primary); }
.hcb-single-toc-list li.is-active > a {
  background: rgba(0, 120, 193, 0.08);
  color: var(--hcb-primary);
  border-left-color: var(--hcb-primary);
}

/* Content */
.hcb-single-content {
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.78;
  color: #2b3138;
}
.hcb-single-content > * { max-width: 100%; }
.hcb-single-content h2,
.hcb-single-content h3,
.hcb-single-content h4 { color: var(--hcb-primary); font-weight: 800; line-height: 1.3; margin: 2.2em 0 0.6em; scroll-margin-top: 100px; }
.hcb-single-content h2 { font-size: clamp(22px, 2.4vw, 28px); }
.hcb-single-content h3 { font-size: clamp(18px, 2vw, 22px); color: var(--hcb-secondary); }
.hcb-single-content h4 { font-size: clamp(16px, 1.8vw, 18px); }
.hcb-single-content p { margin: 0 0 1.25em; }
.hcb-single-content a { color: var(--hcb-secondary); text-decoration: underline; }
.hcb-single-content ul, .hcb-single-content ol { margin: 0 0 1.25em 1.4em; }
.hcb-single-content li { margin-bottom: 0.5em; }
.hcb-single-content blockquote {
  margin: 1.6em 0;
  padding: 18px 22px;
  border-left: 4px solid var(--hcb-secondary);
  background: var(--hcb-light);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: var(--hcb-dark);
}
.hcb-single-content img { max-width: 100%; height: auto; border-radius: 12px; margin: 1.4em 0; }
.hcb-single-content table { width: 100%; border-collapse: collapse; margin: 1.4em 0; display: block; overflow-x: auto; }
.hcb-single-content table th, .hcb-single-content table td { padding: 12px; border: 1px solid var(--hcb-border); }
.hcb-single-content table th { background: var(--hcb-light); color: var(--hcb-primary); }
.hcb-single-content code { background: var(--hcb-light); padding: 2px 6px; border-radius: 6px; font-size: 0.95em; }

/* Tags */
.hcb-single-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--hcb-border); }
.hcb-single-tags-label { font-size: 13px; font-weight: 700; color: var(--hcb-muted); margin-right: 4px; }
.hcb-single-tag {
  background: var(--hcb-light);
  color: var(--hcb-primary);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.18s ease;
}
.hcb-single-tag:hover { background: var(--hcb-primary); color: #fff; }

/* FAQ */
.hcb-single-section-title {
  font-size: clamp(20px, 2.4vw, 24px);
  font-weight: 800;
  color: var(--hcb-primary);
  margin: 40px 0 18px;
}
.hcb-single-faq-list { display: flex; flex-direction: column; gap: 10px; }
.hcb-single-faq-item {
  border: 1px solid var(--hcb-border);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.hcb-single-faq-item.is-open { box-shadow: 0 8px 22px rgba(0, 94, 158, 0.12); }
.hcb-single-faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 18px 22px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  color: var(--hcb-dark);
  line-height: 1.4;
}
.hcb-single-faq-q:hover { color: var(--hcb-primary); }
.hcb-single-faq-icon { font-size: 22px; line-height: 1; transition: 0.2s; flex: 0 0 auto; margin-left: 14px; color: var(--hcb-primary); }
.hcb-single-faq-item.is-open .hcb-single-faq-icon { transform: rotate(45deg); }
.hcb-single-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.3s ease;
  padding: 0 22px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--hcb-dark);
}
.hcb-single-faq-item.is-open .hcb-single-faq-a { max-height: 1500px; padding: 0 22px 18px; }
.hcb-single-faq-a p:last-child { margin-bottom: 0; }

/* Author bio */
.hcb-single-author {
  margin-top: 36px;
  padding: 24px;
  background: var(--hcb-light);
  border-radius: 14px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.hcb-single-author-avatar-lg {
  width: 64px; height: 64px;
  flex: 0 0 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--hcb-primary), var(--hcb-secondary));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 22px;
}
.hcb-single-author-body h3 { margin: 0 0 6px; color: var(--hcb-primary); font-size: 18px; }
.hcb-single-author-body p { margin: 0 0 10px; font-size: 14px; line-height: 1.6; color: var(--hcb-dark); }
.hcb-single-author-link { color: var(--hcb-secondary); font-weight: 700; font-size: 14px; text-decoration: none; }
.hcb-single-author-link:hover { color: var(--hcb-primary); }

/* Sticky Sidebar */
.hcb-single-sidebar { position: relative; }
.hcb-single-sidebar-inner {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.hcb-single-widget {
  background: #fff;
  border: 1px solid var(--hcb-border);
  border-radius: 14px;
  padding: 22px;
  box-shadow: var(--hcb-shadow);
}
.hcb-single-widget-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--hcb-primary);
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.hcb-single-toc-widget .hcb-single-toc-list { max-height: 65vh; overflow-y: auto; padding-right: 4px; }

/* Related */
.hcb-single-related { padding: 50px 0 80px; background: var(--hcb-light); }
.hcb-single-related-title { color: var(--hcb-primary); margin: 0 0 24px; }

/* =========================================================
 *                 RESPONSIVE
 * ========================================================= */

/* Tablet landscape */
@media (max-width: 1100px) {
  .hcb-blog-layout { grid-template-columns: 280px 1fr; gap: 28px; }
  .hcb-single-layout { grid-template-columns: 1fr 280px; gap: 28px; }
  .hcb-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hcb-single-article { padding: 30px 30px; }
}

/* Tablet portrait */
@media (max-width: 900px) {
  .hcb-blog-layout, .hcb-single-layout { grid-template-columns: 1fr; gap: 30px; }
  .hcb-blog-sidebar-inner, .hcb-single-sidebar-inner { position: static; }
  .hcb-blog-sidebar { order: 2; }
  .hcb-blog-content-area { order: 1; }
  .hcb-single-sidebar { order: 2; }
  .hcb-single-toc-widget { display: none; }
  .hcb-single-toc-top { display: block; }
  .hcb-single-article { padding: 26px 24px; }
  .hcb-blog-faq-section .hcb-single-faq { padding: 26px 24px; }
}

/* Large mobile */
@media (max-width: 700px) {
  .hcb-blog-hero { padding: 50px 0 44px; }
  .hcb-blog-main { padding: 40px 0 50px; }
  .hcb-blog-grid { grid-template-columns: 1fr; gap: 18px; }
  .hcb-single-hero { min-height: 340px; }
  .hcb-single-hero-inner { padding: 40px 0 28px; }
  .hcb-single-hero-meta { font-size: 13px; gap: 10px; }
  .hcb-single-share { gap: 6px; padding-bottom: 14px; margin-bottom: 18px; }
  .hcb-single-share-btn { width: 32px; height: 32px; font-size: 12px; }
  .hcb-blog-results-bar { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hcb-blog-faq-section { padding: 40px 0 50px; }
  .hcb-blog-faq-section .hcb-single-faq { padding: 22px 18px; }
  .hcb-blog-card-cat { font-size: 10px; padding: 5px 11px; }
  .hcb-single-faq-q { padding: 16px 18px; font-size: 14px; }
  .hcb-single-faq-icon { font-size: 20px; margin-left: 10px; }
  .hcb-single-author { flex-direction: column; align-items: center; text-align: center; }
}

/* Small mobile */
@media (max-width: 480px) {
  .hcb-blog-container { padding: 0 14px; }
  .hcb-blog-hero { padding: 40px 0 36px; }
  .hcb-blog-hero-title { font-size: 26px; }
  .hcb-single-hero-title { font-size: 22px; }
  .hcb-single-article { padding: 20px 16px; }
  .hcb-blog-faq-section .hcb-single-faq { padding: 18px 16px; }
  .hcb-blog-card-body { padding: 18px; }
  .hcb-blog-card-title { font-size: 17px; }
  .hcb-blog-back-to-top { width: 42px; height: 42px; font-size: 18px; bottom: 18px; right: 18px; }
  .hcb-blog-breadcrumb { font-size: 11px; gap: 6px; letter-spacing: 0.5px; }
  .hcb-single-breadcrumb .hcb-blog-container { font-size: 12px; gap: 6px; }
  .hcb-single-results-bar { gap: 8px; }
}
