/* Blog article shared styles */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif; background: #f8f9fa; color: #1a1a2e; line-height: 1.75; }
.blog-header { background: #fff; border-bottom: 1px solid #e8e8e8; padding: 16px 24px; }
.blog-header nav a { color: #0047ab; text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.blog-main { max-width: 760px; margin: 40px auto; padding: 0 20px; }
article { background: #fff; border-radius: 12px; padding: 48px; box-shadow: 0 2px 16px rgba(0,0,0,0.06); overflow: hidden; }
/* Defensive: every image inside article must respect container width */
article img { max-width: 100%; height: auto; border-radius: 8px; }
.article-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; font-size: 0.82rem; color: #888; }
.tag { padding: 3px 10px; border-radius: 20px; font-weight: 600; font-size: 0.78rem; }
.tag-tof { background: #e8f4ff; color: #0047ab; }
.tag-mof { background: #fff3e0; color: #e65100; }
.tag-bof { background: #e8f5e9; color: #2e7d32; }
.tag-process, .tag-material, .tag-quality, .tag-sourcing { background: #f3e5f5; color: #7b1fa2; }
h1 { font-size: 2rem; line-height: 1.3; margin-bottom: 16px; color: #111; }
h2 { font-size: 1.35rem; margin-top: 36px; margin-bottom: 12px; color: #0047ab; border-bottom: 2px solid #e8f0fe; padding-bottom: 6px; }
h3 { font-size: 1.1rem; margin-top: 20px; margin-bottom: 8px; color: #1a1a2e; }
.lead { font-size: 1.1rem; color: #555; margin-bottom: 24px; line-height: 1.8; }
p { margin-bottom: 14px; color: #333; }
ul, ol { margin: 0 0 14px 20px; color: #333; }
li { margin-bottom: 6px; }
table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.85rem; }
th { background: #e8f0fe; padding: 9px 12px; border: 1px solid #d0d0d0; text-align: left; color: #0047ab; font-weight: 700; }
td { padding: 9px 12px; border: 1px solid #d0d0d0; vertical-align: top; }
tr:nth-child(even) td { background: #f8fafd; }
.note { background: #fff8e1; border-left: 4px solid #f39c12; padding: 12px 16px; font-size: 0.85rem; color: #555; margin: 16px 0; border-radius: 0 6px 6px 0; }
.faq-section { background: #f8fafd; border: 1px solid #e0e8f4; border-radius: 12px; padding: 32px; margin-top: 40px; }
.faq-section h2 { border-bottom: none; margin-top: 0; }
.faq-item { background: #fff; border: 1px solid #e0e8f4; border-radius: 8px; padding: 16px 20px; margin-bottom: 12px; }
.faq-item h3 { font-size: 0.95rem; color: #0047ab; margin-top: 0; margin-bottom: 8px; }
.faq-item p { margin-bottom: 0; font-size: 0.88rem; color: #444; }
.cta-box { background: linear-gradient(135deg, #0047ab, #0052cc); color: #fff; border-radius: 12px; padding: 28px; margin-top: 40px; text-align: center; }
.cta-box h3 { color: #fff; margin-top: 0; font-size: 1.1rem; }
.cta-box p { color: rgba(255,255,255,0.9); font-size: 0.9rem; }
.cta-btn { display: inline-block; background: #fff; color: #0047ab; padding: 12px 28px; border-radius: 8px; text-decoration: none; font-weight: 700; font-size: 0.95rem; margin-top: 8px; }
.cta-btn:hover { background: #f0f0f0; }
.blog-footer { text-align: center; padding: 24px; color: #999; font-size: 0.82rem; }
.data-table { margin: 12px 0; }
@media (max-width: 640px) {
  article { padding: 24px; }
  h1 { font-size: 1.5rem; }
  table { font-size: 0.78rem; }
}
/* Hero and content images */
.hero-image { max-width: 100%; width: 100%; height: auto; border-radius: 12px; margin: 20px 0; border: 1px solid #e8e8e8; display: block; }
.section-image { max-width: 100%; width: 100%; height: auto; border-radius: 8px; margin: 20px 0; border: 1px solid #e8e8e8; display: block; }
.warning-box { background: #fff5f5; border-left: 4px solid #c8102e; padding: 14px 18px; margin: 20px 0; border-radius: 0 8px 8px 0; }
.warning-box strong { color: #c8102e; display: block; margin-bottom: 4px; }
.tip-box { background: #f0fff4; border-left: 4px solid #38a169; padding: 14px 18px; margin: 20px 0; border-radius: 0 8px 8px 0; }
.tip-box strong { color: #38a169; }
.cta-section { background: linear-gradient(135deg,#0047ab,#0052cc); color:#fff; border-radius:12px; padding:28px; margin-top:40px; text-align:center; }
.cta-section h2 { color:#fff; border:none; font-size:1.2rem; margin-top:0; }
.cta-section p { color:rgba(255,255,255,0.9); font-size:0.92rem; }
.cta-section a { display:inline-block; background:#fff; color:#0047ab; padding:12px 28px; border-radius:8px; text-decoration:none; font-weight:700; margin-top:12px; }
.author-note { font-size:0.82rem; color:#888; border-top:1px solid #eee; margin-top:2em; padding-top:1em; }
blockquote { font-style:italic; color:#555; border-left:3px solid #ccc; margin:20px 0; padding:10px 20px; background:#f9f9f9; border-radius:0 6px 6px 0; }
.zj-nav {
  position: fixed; top: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e5e7eb;
  z-index: 1000;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.zj-nav-inner { max-width: 1240px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 80px; }
.zj-nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.zj-nav-logo-icon {
  width: 38px; height: 38px;
  background: #002C5F;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 1rem;
  flex-shrink: 0;
}
.zj-nav-logo-text { line-height: 1.2; }
.zj-nav-logo-text .name {
  font-size: 1rem; font-weight: 800;
  color: #002C5F; display: block;
}
.zj-nav-logo-text .tagline {
  font-size: 0.68rem; color: #9ca3af; display: block;
}
.zj-nav-links {
  display: flex; align-items: center; gap: 2px;
  list-style: none; margin: 0; padding: 0;
}
.zj-nav-links a {
  font-size: 0.875rem; font-weight: 500;
  color: #4b5563;
  padding: 7px 13px; border-radius: 7px;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.zj-nav-links a:hover { color: #002C5F; background: rgba(0,44,95,0.06); }
.zj-nav-links a.zj-active { color: #002C5F; font-weight: 700; }
/* Products dropdown trigger */
.zj-nav-products { position: relative; }
.zj-nav-products > a {
  display: flex; align-items: center; gap: 4px; cursor: pointer;
}
.zj-nav-products > a svg {
  transition: transform 0.2s;
  flex-shrink: 0;
}
.zj-nav-cta {
  background: #E87722 !important;
  color: #fff !important;
  padding: 8px 18px !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  white-space: nowrap;
  transition: background 0.2s !important;
}
.zj-nav-cta:hover { background: #c9621a !important; }
/* Hidden original dropdown slot */
.zj-dropdown-src { display: none !important; }
.zj-dropdown-src { display: none !important; }

/* ============================================
   DROPDOWN MENU FIX - Added 2026-05-01
   ============================================ */

/* Dropdown menu container */
.zj-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  min-width: 240px;
  padding: 8px 0;
  display: none;
  z-index: 9999;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.2s, transform 0.2s;
}

/* Show dropdown on hover */
.zj-nav-products:hover .zj-dropdown-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Dropdown menu items */
.zj-dropdown-menu a {
  display: block;
  padding: 10px 18px;
  font-size: 0.85rem;
  color: #4b5563;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.zj-dropdown-menu a:hover {
  background: rgba(0,44,95,0.06);
  color: #002C5F;
}

/* Arrow indicator for dropdown */
.zj-nav-products > a svg {
  transition: transform 0.2s;
}

.zj-nav-products:hover > a svg {
  transform: rotate(180deg);
}

/* Invisible bridge to prevent dropdown from closing */
.zj-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

/* Ensure dropdown parent has proper positioning */
.zj-nav-products {
  position: relative;
}

/* ============================================
   HERO IMAGE CENTERING FIX - Added 2026-05-01
   ============================================ */

/* Hero image in blog header */
.blog-header img[src*="images/hero"] {
  width: 100%;
  max-width: 900px;
  height: auto;
  border-radius: 12px;
  margin: 24px auto;
  display: block;
  border: 1px solid #e8e8e8;
}

/* Center hero image container */
.blog-header-content {
  text-align: center;
}

/* Ensure subtitle stays below hero */
.blog-header-content h1 {
  margin-bottom: 8px;
}

.blog-header-content .subtitle {
  margin-top: 16px;
  font-size: 1.15rem;
  color: #666;
  line-height: 1.6;
}
