/* ============================================================
   blog1.css — Article detail page styles (b1-* prefix)
   Does NOT include header/footer styles (those come from blog.css)
   ============================================================ */

/* ─── ARTICLE HEADER ─── */
.b1-art-hdr {
  background: #fff;
  border-bottom: 1px solid rgba(15,23,42,0.08);
}
.b1-art-hdr-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 2.5rem 4rem 0;
}

/* Breadcrumb (inside article header, not sticky) */
.b1-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #94A3B8;
  margin-bottom: 1.5rem;
}
.b1-bc-link { color: #94A3B8; transition: color 0.15s; }
.b1-bc-link:hover { color: var(--orange); }
.b1-bc-cur { color: #475569; }

/* Tags row */
.b1-art-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.25rem;
}
.b1-art-tag {
  font-size: 14px;
  color: var(--orange);
  background: #FFF0E8;
  padding: 4px 12px;
  border-radius: 9999px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.b1-art-tag:hover { background: var(--orange); color: #fff; }

/* H1 */
.b1-art-h1 {
  font-size: clamp(1.8rem, 2.5vw, 2.2rem);
  font-weight: 700;
  color: #0F172A;
  letter-spacing: -0.03em;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  max-width: 820px;
}

/* Meta row */
.b1-art-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-bottom: 2rem;
  font-size: 16px;
  color: #94A3B8;
}
.b1-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.b1-meta-item svg {
  width: 14px; height: 14px;
  stroke: #94A3B8; fill: none; stroke-width: 1.8;
  flex-shrink: 0;
}

/* ─── HERO IMAGE ─── */
.b1-hero-img-wrap {
  max-width: 1160px;
  margin: 2rem auto 0;
  padding: 0 4rem;
}
.b1-hero-img {
  border-radius: 16px;
  overflow: hidden;
  background: #E2E8F0;
  aspect-ratio: 16 / 6;
}
.b1-hero-img img { width: 100%; height: 100%; object-fit: cover; }

/* ─── MAIN LAYOUT ─── */
.b1-main {
  max-width: 1160px;
  margin: 0 auto;
  padding: 3.5rem 4rem;
}
.b1-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 4rem;
  align-items: start;
}

/* ─── AUTHOR BOX TOP ─── */
.b1-author-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(15,23,42,0.08);
  cursor: pointer;
  transition: opacity 0.2s;
}
.b1-author-top:hover { opacity: 0.80; }
.b1-author-top-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  transition: box-shadow 0.2s;
}
.b1-author-top:hover .b1-author-top-avatar { box-shadow: 0 0 0 2px rgba(240,137,94,0.40); }
.b1-author-top-eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #94A3B8;
  text-transform: uppercase;
  margin-bottom: 3px;
}
.b1-author-top-name {
  font-size: 16px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 3px;
  transition: color 0.15s;
}
.b1-author-top:hover .b1-author-top-name { color: var(--orange); }
.b1-author-top-role { font-size: 16px; color: #64748B; }
.b1-author-top-chev {
  width: 16px; height: 16px;
  stroke: var(--orange); fill: none; stroke-width: 2;
  margin-left: auto;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.2s;
}
.b1-author-top:hover .b1-author-top-chev { opacity: 1; }

/* ─── PROSE ─── */
.b1-prose p {
  font-size: 0.87rem;
  color: #374151;
  line-height: 2.1;
  margin-bottom: 1.5rem;
}
.b1-prose strong { font-weight: 700; color: #0F172A; }
.b1-prose h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0F172A;
  letter-spacing: -0.02em;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(15,23,42,0.08);
}

/* In-article image */
.b1-inline-img {
  border-radius: 16px;
  overflow: hidden;
  margin: 2rem 0;
  aspect-ratio: 16 / 7;
}
.b1-inline-img img { width: 100%; height: 100%; object-fit: cover; }

/* Callout box */
.b1-callout {
  border-left: 4px solid var(--orange);
  padding: 0.75rem 1.25rem;
  background: #FFF9F6;
  border-radius: 0 12px 12px 0;
  margin: 2rem 0;
}
.b1-callout-title {
  font-size: 0.83rem;
  font-weight: 600;
  color: #0F172A;
  margin-bottom: 4px;
}
.b1-callout-text {
  font-size: 0.8rem;
  color: #475569;
  line-height: 1.85;
}

/* ─── AUTHOR BIO BOTTOM ─── */
.b1-author-bio {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(15,23,42,0.08);
}
.b1-author-bio-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem;
  background: #F8FAFC;
  border-radius: 16px;
  border: 1px solid rgba(15,23,42,0.07);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.b1-author-bio-card:hover {
  border-color: rgba(240,137,94,0.30);
  background: #0C294B;
  box-shadow: 0 4px 20px rgba(240,137,94,0.10);
}
.b1-author-bio-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  transition: box-shadow 0.2s;
}
.b1-author-bio-card:hover .b1-author-bio-avatar { box-shadow: 0 0 0 2px rgba(240,137,94,0.35); }
.b1-author-bio-eyebrow {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #94A3B8;
  text-transform: uppercase;
  margin-bottom: 4px;
  transition: color 0.15s;
}
.b1-author-bio-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 3px;
  transition: color 0.15s;
}
.b1-author-bio-card:hover .b1-author-bio-name { color: #fff; }
.b1-author-bio-role { font-size: 0.72rem; color: var(--orange); margin-bottom: 8px; transition: color 0.15s; }
.b1-author-bio-text { font-size: 0.75rem; color: #64748B; line-height: 1.85; transition: color 0.15s; }
.b1-author-bio-card:hover .b1-author-bio-eyebrow, .b1-author-bio-card:hover .b1-author-bio-role, .b1-author-bio-card:hover .b1-author-bio-text { color: rgba(255,255,255,.8); }
.b1-author-bio-chev {
  width: 16px; height: 16px;
  stroke: var(--orange); fill: none; stroke-width: 2;
  margin-left: auto;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.2s, stroke 0.15s;
  margin-top: 4px;
}
.b1-author-bio-card:hover .b1-author-bio-chev { stroke: #fff; opacity: 1; }

/* ─── FAQ (article detail) ─── */
.b1-faq {
  margin-top: 92px;
}
.b1-faq-h2 { margin: 0 0 40px; color: #071b35; font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; line-height: 1.42; letter-spacing: -.035em; text-align: center; }
.b1-faq-list { border-top: 1px solid #d9e2e7; }
.b1-faq-item { border-bottom: 1px solid #d9e2e7; }
.b1-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  gap: 24px;
  cursor: pointer;
}
.b1-faq-q-text { color: #071b35; font-size: 16px; font-weight: 700; line-height: 1.5; transition: color 0.15s; }
.b1-faq-item:hover .b1-faq-q-text, .b1-faq-item.open .b1-faq-q-text { color: #f0895e; }
.b1-faq-circle {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid #dce4ea;
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 42px; color: #9fb2c2;
  transition: background 0.2s, border-color 0.2s;
}
.b1-faq-circle svg { width: 14px; height: 14px; transition: transform 0.2s; }
.b1-faq-item.open .b1-faq-circle { color: #fff; background: #071b35; border-color: #071b35; }
.b1-faq-item.open .b1-faq-circle svg { transform: rotate(90deg); }
.b1-faq-a { display: none; padding: 0 64px 22px 0; }
.b1-faq-item.open .b1-faq-a { display: block; }
.b1-faq-a p { margin: 0; color: #4b5563; font-size: 16px; font-weight: 400; line-height: 1.9; }
.b1-faq-detail { display: inline-flex; margin-top: 16px; color: #f0895e; font-size: 16px; font-weight: 750; text-decoration: none; align-items: center; gap: 12px; }
.b1-faq-detail span { font-size: 20px; transition: transform 0.2s; }
.b1-faq-detail:hover span { transform: translateX(4px); }

/* ─── RELATED ARTICLES ─── */
.b1-related {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(15,23,42,0.08);
}
.b1-related-h2 { font-size: 1.2rem; font-weight: 700; color: #0F172A; margin-bottom: 2rem; }
.b1-related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.b1-related-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: background 0.25s, box-shadow 0.25s, transform 0.25s;
}
.b1-related-card:hover { background: #0C294B; box-shadow: 0 8px 40px rgba(15,23,42,0.10); transform: translateY(-2px); }
.b1-related-img { height: 144px; overflow: hidden; }
.b1-related-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.b1-related-card:hover .b1-related-img img { transform: scale(1.04); }
.b1-related-body { padding: 1rem; }
.b1-related-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 0.68rem; color: #94A3B8; transition: color 0.15s; }
.b1-related-cat { background: var(--orange); color: #fff; font-size: 0.58rem; font-weight: 700; padding: 3px 8px; border-radius: 9999px; }
.b1-related-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #334155;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s;
}
.b1-related-card:hover .b1-related-title { color: #fff; }
.b1-related-card:hover .b1-related-meta { color: rgba(255,255,255,.8); }

/* ─── SIDEBAR (article detail) ─── */
.b1-sidebar { display: flex; flex-direction: column; gap: 2.5rem; position: sticky; top: 2rem; }

/* Related services (same style as blog.txt sidebar) */
.b1-sb-services { border: 1px solid #E5E7EB; border-radius: 16px; overflow: hidden; background: #fff; }
.b1-sb-services-hdr { background: #071B35; padding: 14px 16px 13px; }
.b1-sb-services-eyebrow { font-size: 14px; font-weight: 700; color: #F0895E; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 4px; }
.b1-sb-services-title { font-size:16px; font-weight: 700; color: #fff; line-height: 1.2; }
.b1-sb-service-item { display: block; padding: 14px 16px 12px; border-bottom: 1px solid #E5E7EB; text-decoration: none; transition: background 0.15s; cursor: pointer; }
.b1-sb-service-item:last-child { border-bottom: none; }
.b1-sb-service-item:hover { background: #0C294B; }
.b1-sb-service-name { font-size: 16px; font-weight: 700; color: #0F172A; line-height: 1.45; margin-bottom: 4px; transition: color 0.15s; }
.b1-sb-service-item:hover .b1-sb-service-name, .b1-sb-service-item:hover .b1-sb-service-link { color: #fff; }
.b1-sb-service-desc { font-size: 12px; color: #64748B; line-height: 1.7; margin-bottom: 5px; transition: color 0.15s; }
.b1-sb-service-link { font-size: 14px; font-weight: 700; color: var(--orange); transition: color 0.15s; }
.b1-sb-service-item:hover .b1-sb-service-desc { color: rgba(255,255,255,.8); }

/* Popular articles */
.b1-sb-popular { }
.b1-sb-section-eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.b1-sb-section-eyebrow-line { width: 16px; height: 1px; background: var(--orange); flex-shrink: 0; }
.b1-sb-section-eyebrow-txt { font-size: 14px; font-weight: 700; color: var(--orange); letter-spacing: 0.14em; text-transform: uppercase; }
.b1-sb-popular-h3 { font-size: 0.85rem; font-weight: 700; color: #0F172A; margin-bottom: 1rem; }
.b1-sb-popular-list { display: flex; flex-direction: column; gap: 1rem; }
.b1-sb-popular-item { display: flex; gap: 0.75rem; align-items: flex-start; cursor: pointer; }
.b1-sb-popular-thumb { width: 64px; height: 48px; border-radius: 8px; overflow: hidden; background: #E2E8F0; flex-shrink: 0; }
.b1-sb-popular-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.b1-sb-popular-item:hover .b1-sb-popular-thumb img { transform: scale(1.05); }
.b1-sb-popular-meta { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.b1-sb-popular-cat { background: var(--orange); color: #fff; font-size: 0.55rem; font-weight: 700; padding: 2px 7px; border-radius: 9999px; }
.b1-sb-popular-date { font-size: 0.62rem; color: #94A3B8; }
.b1-sb-popular-title { font-size: 0.73rem; font-weight: 500; color: #334155; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color 0.15s; }
.b1-sb-popular-item:hover .b1-sb-popular-title { color: var(--orange); }

/* Tag cloud */
.b1-sb-tags { }
.b1-sb-tags-wrap { display: flex; flex-wrap: wrap; gap: 6px; }
.b1-sb-tag {
  display: inline-block;
  font-size: 16px;
  color: #475569;
  background: var(--bg-light);
  padding: 6px 12px;
  border-radius: 9999px;
  border: 1px solid rgba(15,23,42,0.10);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.b1-sb-tag:first-child { background: var(--orange); border-color: var(--orange); color: #fff; }
.b1-sb-tag:hover { border-color: var(--orange); color: var(--orange); background: #FFF0E8; }

/* Sidebar CTA mini */
.b1-sb-cta {
  background: #071B35;
  border-radius: 16px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}
.b1-sb-cta-glow {
  position: absolute;
  top: -32px; right: -32px;
  width: 96px; height: 96px;
  border-radius: 50%;
  background: radial-gradient(circle, #F0895E, transparent);
  opacity: 0.10;
  pointer-events: none;
}
.b1-sb-cta-eyebrow { font-size: 14px; font-weight: 700; color: var(--orange); letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 8px; position: relative; }
.b1-sb-cta-h3 { font-size: 16px; font-weight: 700; color: #fff; line-height: 1.55; margin-bottom: 8px; position: relative; }
.b1-sb-cta-p { font-size: 14px; color: rgba(255,255,255,0.45); line-height: 1.75; margin-bottom: 1rem; position: relative; }
.b1-sb-cta-btn {
  display: block;
  box-sizing: border-box;
  width: 100%;
  background: var(--orange);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  padding: 12px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s;
  position: relative;
}
.b1-sb-cta-btn:hover { background: var(--orange-h); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .b1-layout { grid-template-columns: 1fr; }
  .b1-sidebar { display: none; }
  .b1-art-hdr-inner { padding: 2rem 1.5rem 0; }
  .b1-hero-img-wrap { padding: 0 1.5rem; }
  .b1-main { padding: 2.5rem 1.5rem; }
  .b1-related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .b1-art-h1 { font-size: 1.5rem; }
  .b1-art-meta { gap: 0.75rem; }
  .b1-related-grid { grid-template-columns: 1fr; }
  .b1-faq { margin-top: 68px; }
  .b1-faq-h2 { margin-bottom: 28px; }
  .b1-faq-q { padding: 19px 0; gap: 16px; }
  .b1-faq-q-text, .b1-faq-a p, .b1-faq-detail { font-size: 15px; }
  .b1-faq-circle { width: 36px; height: 36px; flex-basis: 36px; }
  .b1-faq-a { padding-right: 0; }
}
