/* ---------- HERO ---------- */
.hero-section { background-size: cover; background-position: center; text-align: center; color: #000; }
.hero-overlay { background: rgba(0,0,0,0.05); padding: 40px 20px; }
.hero-content { max-width: 900px; margin: 0 auto; padding: 0 20px; }
.hero-meta, .hero-title, .hero-breadcrumbs { max-width: 900px; margin-left: auto; margin-right: auto; color: #000; }
.hero-meta { font-size: 13px; margin-bottom: 12px; font-weight: 500; opacity: .9; }
.hero-title { margin-bottom: 12px; line-height: 1.3; font-weight: 700; }
.hero-breadcrumbs { font-size: 13px; opacity: .85; }
.hero-breadcrumbs a { color: #000; text-decoration: none; }
.hero-breadcrumbs a:hover { text-decoration: underline; }

/* ---------- LAYOUT ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 40px 20px; }
.row { display: flex; gap: 30px; align-items: flex-start; }
.content-area { flex: 2; }
.sidebar-area { flex: 1; }

/* ---------- SIDEBAR ---------- */
.sidebar .widget { border: 1px solid #e9edf3; background: #f9fbfd; padding: 20px; border-radius: 8px; margin-bottom: 30px; }
.sidebar .widget-title { font-weight: 700; margin-bottom: 12px; }
.toc-list, .recent-posts { list-style: none; margin: 0; padding: 0; }
.toc-list li, .recent-posts li { border-bottom: 1px solid #e9edf3; padding: 8px 0; }
.toc-list li:last-child, .recent-posts li:last-child { border-bottom: 0; }
.toc-list a, .recent-posts a { color: #0d2545; text-decoration: none; }
.toc-list a:hover, .recent-posts a:hover { color: #1a73e8; }

/* ---------- CONTENT ---------- */
.featured-before-h2 { width: 100%; height: auto; margin: 24px 0; border-radius: 6px; }
.page-content h2[id] { scroll-margin-top: 100px; }

/* ---------- RELATED POSTS ---------- */
.related-posts { margin-top: 60px; padding-top: 30px; border-top: 2px solid #eee; }
.related-title { font-size: 12px; font-weight: 700; margin-bottom: 25px; text-align: left; color: #111; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.related-item { background: #fff; border: 1px solid #e9edf3; border-radius: 8px; overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease; display: flex; flex-direction: column; }
.related-item:hover { transform: translateY(-4px); box-shadow: 0 6px 18px rgba(0,0,0,0.08); }
.related-thumb img { width: 100%; height: 220px; object-fit: cover; display: block; }
.related-content { padding: 18px; }
.related-post-title { font-size: 18px; font-weight: 700; margin: 0 0 8px; line-height: 1.3; }
.related-post-title a { color: #0d2545; text-decoration: none; }
.related-post-title a:hover { color: #1a73e8; }
.related-meta { font-size: 13px; text-transform: uppercase; font-weight: 500; color: #888; margin-bottom: 12px; }
.related-excerpt { font-size: 15px; line-height: 1.6; color: #333; margin: 0; }

/* ---------- HUBSPOT MODAL ---------- */
.hubspot-modal { display: none; position: fixed; z-index: 2000; inset: 0; background: rgba(0,0,0,0.6); justify-content: center; align-items: center; }
.hubspot-modal-content { background: #fff; padding: 20px; border-radius: 10px; max-width: 480px; width: 90%; position: relative; }
.hubspot-close { position: absolute; top: 10px; right: 15px; font-size: 22px; cursor: pointer; }

/* ---------- DESKTOP BUTTON ---------- */
.desktop-demo-btn { position: fixed; bottom: 20px; right: 20px; z-index: 1000; }
.desktop-demo-btn button { background: #1a73e8; color: #fff; border: none; border-radius: 30px; padding: 12px 20px; font-weight: 600; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.desktop-demo-btn button:hover { background: #1558b0; }

/* ---------- MOBILE BOTTOM BAR ---------- */
.mobile-bottom-bar { display: none; position: fixed; bottom: 0; left: 0; width: 100%; background: #fff; border-top: 1px solid #e9edf3; justify-content: space-around; z-index: 999; }
.mobile-bottom-bar button { flex: 1; padding: 12px; border: none; font-weight: 600; cursor: pointer; }
#toggle-toc { background: #444; color: #fff; }
#open-demo-form-mobile { background: #1a73e8; color: #fff; }

/* ---------- MOBILE TOC DRAWER ---------- */
.mobile-toc-drawer { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 2000; justify-content: center; align-items: flex-end; }
.mobile-toc-drawer.active { display: flex; }
.mobile-toc-drawer .drawer-content { background: #fff; width: 100%; max-height: 70%; border-radius: 12px 12px 0 0; padding: 20px; overflow-y: auto; animation: slideUp 0.3s ease; }
.mobile-toc-drawer .close-btn { background: #444; color: #fff; border: none; padding: 8px 12px; border-radius: 6px; font-weight: 600; cursor: pointer; margin-bottom: 12px; }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .desktop-demo-btn { display: none; }
  .sidebar-area { display: none; }
  .mobile-bottom-bar { display: flex; }
  .content-area { flex: 1; }
}
