:root {
  --blog-ink: #142238;
  --blog-muted: #65758b;
  --blog-blue: #1769e0;
  --blog-blue-dark: #0b4eb7;
  --blog-line: #e4eaf2;
  --blog-paper: #ffffff;
  --blog-canvas: #f4f7fb;
  --blog-radius: 18px;
  --blog-shadow: 0 14px 38px rgba(19, 43, 74, .075);
}

body.blog-page {
  background: var(--blog-canvas) !important;
  color: var(--blog-ink) !important;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: normal;
  word-spacing: .025em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.blog-page h1,
.blog-page h2,
.blog-page h3,
.blog-page h4,
.blog-page h5,
.blog-page p,
.blog-page ul,
.blog-page ol {
  letter-spacing: normal;
}

.blog-page a { transition: color .18s ease, background-color .18s ease, box-shadow .18s ease; }
.blog-page img { max-width: 100%; }

/* Shared editorial navigation */
.blog-page .ov-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 76px;
  background: rgba(255, 255, 255, .96) !important;
  border-bottom: 1px solid var(--blog-line);
  box-shadow: 0 3px 18px rgba(22, 42, 68, .04);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}

.blog-page .ov-nav {
  width: min(100% - 40px, 1320px);
  max-width: 1320px;
  min-height: 76px;
  padding: 0;
  gap: 24px;
}

.blog-page .ov-brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  color: var(--blog-ink);
  text-decoration: none;
}

.blog-page .ov-brand-logo { display: block; width: 42px; height: 42px; flex: 0 0 42px; object-fit: contain; }

.blog-page .ov-brand-copy { display: flex; flex-direction: column; line-height: 1.05; }
.blog-page .ov-brand-copy strong { color: var(--blog-ink); font-size: 18px; font-weight: 800; letter-spacing: -.035em; }
.blog-page .ov-brand-copy small { margin-top: 4px; color: var(--blog-muted); font-size: 9px; font-weight: 800; letter-spacing: .16em; }

.blog-page .ov-desktop-menu {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.3vw, 20px);
  margin: 0 !important;
  padding: 0 !important;
}

.blog-page .ov-desktop-menu a {
  padding: 9px 2px;
  border-bottom: 2px solid transparent;
  color: #526176;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
  opacity: 1;
  white-space: nowrap;
}

.blog-page .ov-desktop-menu a:hover,
.blog-page .ov-desktop-menu a.ov-active {
  border-color: var(--blog-blue);
  color: var(--blog-blue);
}

.blog-page .ov-actions { flex: 0 0 auto; gap: 8px; }
.blog-page .ov-btn { color: #41516a; }
.blog-page .ov-btn:hover { background: #edf4ff; color: var(--blog-blue); }
.blog-page .ov-search-container { border: 1px solid transparent; }
.blog-page .ov-search-container.active { width: min(280px, 26vw); border-color: var(--blog-line); }
.blog-page .ov-sidebar { background: #fff; }
.blog-page .ov-side-link { border-radius: 10px; color: #41516a; font-weight: 600; }
.blog-page .ov-side-link:hover,
.blog-page .ov-side-link.ov-active { background: #edf4ff; color: var(--blog-blue); }

/* Home feed and lead stories */
.blog-home-page .blog-home-main.container {
  width: 100%;
  max-width: none;
  padding: 0;
}

.blog-home-page .sidebar-ad.main-ad {
  width: min(100% - 40px, 1240px);
  min-height: 90px;
  height: auto !important;
  margin: 24px auto 8px;
  padding: 10px 16px;
  border: 1px solid var(--blog-line);
  border-radius: 14px;
  background: #fff;
  text-align: center;
}

.blog-home-page .ad-label {
  color: #8b98aa;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
}

.blog-home-page .breaking-bar {
  display: flex;
  width: min(100% - 40px, 1240px);
  min-height: 52px;
  height: auto !important;
  margin: 18px auto 0;
  padding: 8px 16px;
  overflow: hidden;
  border: 0 !important;
  border-radius: 12px;
  background: #050505 !important;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
}

.blog-home-page .breaking-bar .ticker-wrap {
  display: flex;
  width: 100%;
  max-width: none;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 0;
}

.blog-home-page .breaking-bar .ticker-label { flex: 0 0 auto; }
.blog-home-page .breaking-bar marquee { flex: 1 1 auto; min-width: 0; color: #fff; font-size: 13px; line-height: 1.5; }
.blog-home-page .breaking-bar marquee a { color: #fff !important; }
.blog-home-page .breaking-bar marquee a:hover { color: #9dccff !important; }

.blog-home-page .hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, .85fr);
  gap: 20px;
  width: min(100% - 40px, 1240px);
  max-width: 1240px !important;
  margin: 16px auto 42px;
  padding: 0 !important;
}

.blog-home-page .slider-container {
  height: clamp(400px, 42vw, 540px);
  border-radius: 22px;
  background: #dce5f0;
  box-shadow: var(--blog-shadow);
}

.blog-home-page .card-overlay {
  padding: 34px clamp(22px, 4vw, 44px);
  background: linear-gradient(180deg, transparent 0%, rgba(7, 17, 32, .18) 25%, rgba(7, 17, 32, .92) 100%);
}

.blog-home-page .badge {
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--blog-blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}

.blog-home-page .slide-title {
  max-width: 760px;
  font-size: clamp(1.65rem, 3.1vw, 2.7rem);
  font-weight: 750;
  line-height: 1.14;
  letter-spacing: -.035em;
}

.blog-home-page .side-card {
  height: 250px;
  border: 1px solid var(--blog-line);
  border-radius: 20px;
  box-shadow: var(--blog-shadow);
}

.blog-home-page .side-card h2 { font-size: 1.22rem !important; line-height: 1.28; font-weight: 750; }
.blog-home-page .side-card .card-overlay { padding: 22px; }
.blog-home-page .slider-dots { right: 24px; bottom: 18px; gap: 8px; }
.blog-home-page .dot { width: 11px; height: 11px; border: 1px solid #fff; background: rgba(255,255,255,.4) !important; }
.blog-home-page .dot.active { background: #fff !important; transform: scale(1.18); }

.blog-home-page .main-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 34px;
  width: min(100% - 40px, 1240px);
  max-width: 1240px;
  margin: 0 auto 64px;
}

.blog-home-page .content-left { min-width: 0; }
.blog-home-page .content-left > section:first-child { margin-bottom: 42px; }
.blog-home-page .section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--blog-line);
}

.blog-home-page .section-header h2,
.blog-home-page .section-header h4 {
  margin: 0;
  color: var(--blog-ink);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -.025em;
}

.blog-home-page .view-all-btn { color: var(--blog-blue); font-size: 13px; font-weight: 700; text-decoration: none; }
.blog-home-page .news-list.latest-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.blog-home-page .post-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--blog-line);
  border-radius: 17px;
  background: var(--blog-paper);
  box-shadow: 0 8px 24px rgba(19, 43, 74, .045);
  transition: transform .2s ease, box-shadow .2s ease;
}

.blog-home-page .post-card:hover { transform: translateY(-3px); box-shadow: var(--blog-shadow); }
.blog-home-page .post-card .img-wrapper { overflow: hidden; aspect-ratio: 16 / 10; background: #e8edf4; }
.blog-home-page .post-card .img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.blog-home-page .post-card:hover .img-wrapper img { transform: scale(1.035); }
.blog-home-page .post-card .post-content { display: flex; flex: 1; flex-direction: column; padding: 17px 18px 16px; }
.blog-home-page .post-card .badge { margin: 0 0 9px; padding: 0; background: transparent; color: var(--blog-blue); font-size: 10px; }
.blog-home-page .post-card .post-content > a:not(.badge-link) { color: var(--blog-ink); text-decoration: none; }
.blog-home-page .post-card .post-content h3 { margin: 0 0 9px; font-size: 1.08rem !important; font-weight: 750; line-height: 1.35; letter-spacing: -.02em; }
.blog-home-page .post-card .post-content p { margin: 0 0 12px !important; color: var(--blog-muted); font-size: .9rem !important; line-height: 1.65; }
.blog-home-page .post-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid #edf0f5; }
.blog-home-page .author-pill { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: #46566c; text-decoration: none; }
.blog-home-page .author-pill img { width: 30px !important; height: 30px !important; }
.blog-home-page .author-pill span { overflow: hidden; font-size: 12px !important; text-overflow: ellipsis; white-space: nowrap; }
.blog-home-page .stats-pill { flex-wrap: wrap; color: #7b899a; font-size: 11px !important; }

.blog-home-page .category-section { margin-top: 40px !important; }
.blog-home-page .category-section .section-header { margin-bottom: 18px; }
.blog-home-page .category-section .section-header h2 { padding-left: 13px; border-left: 4px solid var(--blog-blue); font-size: 1.25rem !important; }
.blog-home-page .news-list-category { gap: 14px !important; }
.blog-home-page .post-card-list {
  gap: 18px !important;
  padding: 14px;
  border: 1px solid var(--blog-line);
  border-radius: 15px;
  background: #fff;
  transition: box-shadow .2s ease, transform .2s ease;
}
.blog-home-page .post-card-list:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(19,43,74,.07); }
.blog-home-page .post-card-list > div:first-child { flex-basis: 170px !important; height: 116px !important; flex-shrink: 0; border-radius: 11px; overflow: hidden; }
.blog-home-page .post-card-list h3 { color: var(--blog-ink) !important; font-size: 1rem !important; line-height: 1.38 !important; }

.blog-home-page .asinew { min-width: 0; }
.blog-home-page .asinew > .sidebar-ad,
.blog-home-page .sidebar-box,
.blog-home-page .newsletter-box,
.blog-home-page .tech-communities,
.blog-home-page .asinew > .mb-3 {
  margin-bottom: 22px;
  padding: 20px;
  border: 1px solid var(--blog-line);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 7px 22px rgba(19,43,74,.04);
}
.blog-home-page .sidebar-box h4 { margin: 0 0 16px !important; color: var(--blog-ink); font-size: 1.12rem; }
.blog-home-page .trending-item { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid #edf0f5; color: var(--blog-ink); text-decoration: none; }
.blog-home-page .trending-item:last-child { border-bottom: 0; }
.blog-home-page .trending-img { width: 76px; height: 66px; border-radius: 10px; object-fit: cover; }
.blog-home-page .trending-info h5 { margin: 0 0 5px; color: var(--blog-ink); font-size: 13px; font-weight: 700; line-height: 1.4; }
.blog-home-page .trending-info span { color: #8794a6; font-size: 10px; font-weight: 700; letter-spacing: .04em; }
.blog-home-page .newsletter-box { background: linear-gradient(145deg, #10284a, #0b4eb7); color: #fff; }
.blog-home-page .newsletter-box h3 { margin: 0 0 8px; color: #fff; font-size: 1.35rem; }
.blog-home-page .newsletter-box p,
.blog-home-page .newsletter-box .newsletter-footer,
.blog-home-page .newsletter-box .newsletter-privacy { color: rgba(255,255,255,.8); line-height: 1.6; }
.blog-home-page .newsletter-box input { width: 100%; min-height: 44px; margin: 8px 0; padding: 10px 12px; border: 1px solid #dbe4f0; border-radius: 9px; background: #fff; color: var(--blog-ink); }
.blog-home-page .newsletter-box button { width: 100%; min-height: 44px; margin: 4px 0 10px; border-radius: 9px; background: #39a3ff; color: #fff; font-weight: 750; }

/* Category archive */
.blog-category-page .blog-category-layout { padding: 30px 0 52px; }
.blog-category-page .blog-category-layout > .container { width: min(100% - 40px, 1240px); max-width: 1240px; padding: 0; }
.blog-category-page .blog-category-layout .row { margin-right: -14px; margin-left: -14px; }
.blog-category-page .blog-category-layout .col-lg-8,
.blog-category-page .blog-category-layout .col-lg-4 { padding-right: 14px; padding-left: 14px; }
.blog-category-page .section-title { min-height: 54px; margin: 0 0 20px; border-left-color: var(--blog-blue) !important; border-radius: 0 12px 12px 0; background: #eaf2ff !important; }
.blog-category-page .section-title h1 { color: var(--blog-ink) !important; font-size: 1.35rem !important; font-weight: 800; letter-spacing: -.02em !important; }
.blog-category-page .category-post-item {
  margin-bottom: 18px;
  border: 1px solid var(--blog-line);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 7px 22px rgba(19,43,74,.045);
  transition: transform .2s ease, box-shadow .2s ease;
}
.blog-category-page .category-post-item:hover { transform: translateY(-2px); box-shadow: var(--blog-shadow); }
.blog-category-page .post-image-container { flex-basis: 250px; height: 185px; background: #e8edf4; }
.blog-category-page .post-image-container img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.blog-category-page .category-post-item:hover .post-image-container img { transform: scale(1.035); }
.blog-category-page .post-content-container { padding: 20px 22px; }
.blog-category-page .post-content-container h2 { margin: 0 0 10px !important; color: var(--blog-ink); font-size: 1.2rem !important; line-height: 1.35 !important; font-weight: 750; letter-spacing: -.02em; }
.blog-category-page .post-content-container p { color: var(--blog-muted); line-height: 1.65 !important; }
.blog-category-page .post-content-container > div:last-child { color: #738198; }
.blog-category-page form input[type="text"] { min-height: 48px; border-color: #dbe3ee !important; background: #fff; }
.blog-category-page form button { min-height: 48px; }
.blog-category-page .pagination { gap: 6px; }
.blog-category-page .page-link { border-color: var(--blog-line); border-radius: 9px !important; color: var(--blog-blue); }
.blog-category-page .page-item.active .page-link { border-color: var(--blog-blue); background: var(--blog-blue); }

/* Article page */
.blog-article-page .container-fluid.mt-5 { margin-top: 18px !important; padding: 0 20px; }
.blog-article-page .breaking-bar { min-height: 48px; height: auto !important; margin: 0 auto 20px; padding: 8px 16px; border-radius: 12px; background: #12243b; }
.blog-article-page .breaking-bar .section-titles { border-radius: 8px; background: var(--blog-blue); }
.blog-article-page .breaking-bar .trending-carousel { height: 38px; border: 0 !important; }
.blog-article-page .breaking-bar .carousel-item a { font-size: 12px; }
.blog-article-page .container-fluid:not(.mt-5) { padding: 16px 20px 58px; }
.blog-article-page .container-fluid:not(.mt-5) > .container { width: min(100%, 1180px); max-width: 1180px; padding: 0; }
.blog-article-page .container-fluid:not(.mt-5) .row { margin-right: -14px; margin-left: -14px; }
.blog-article-page .container-fluid:not(.mt-5) .col-lg-8,
.blog-article-page .container-fluid:not(.mt-5) .col-lg-4 { padding-right: 14px; padding-left: 14px; }
.blog-article-page h1.mb-3 { margin: 0 0 18px !important; color: var(--blog-ink) !important; font-size: clamp(1.9rem, 4vw, 3.25rem); font-weight: 800; line-height: 1.12; letter-spacing: -.04em; text-transform: none !important; }
.blog-article-page .post-image-wrapper { overflow: hidden; border-radius: 20px !important; background: #e4eaf2; box-shadow: var(--blog-shadow); }
.blog-article-page .post-image-wrapper > img { width: 100%; max-height: 660px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 20px !important; }
.blog-article-page .position-relative > .border-top-0 { padding: 24px 0 !important; }
.blog-article-page .position-relative > .border-top-0 > .mb-3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--blog-muted); }
.blog-article-page .position-relative > .border-top-0 .badge { padding: 8px 12px !important; border-radius: 999px; background: #eaf2ff; color: var(--blog-blue); font-size: 11px; letter-spacing: .04em; }
.blog-article-page .post-content {
  max-width: 78ch;
  margin: 24px auto 0;
  color: #29384d;
  font-size: 1.08rem;
  line-height: 1.85;
  letter-spacing: normal;
  word-spacing: .025em;
  overflow-wrap: break-word;
}
.blog-article-page .post-content p { margin: 0 0 1.25rem !important; color: #34445a; font-size: 1.08rem; line-height: 1.85 !important; }
.blog-article-page .post-content h2,
.blog-article-page .post-content h3,
.blog-article-page .post-content h4 { margin: 2rem 0 .85rem; color: var(--blog-ink); font-weight: 800; line-height: 1.3; }
.blog-article-page .post-content h2 { font-size: 1.75rem; }
.blog-article-page .post-content h3 { font-size: 1.4rem; }
.blog-article-page .post-content ul,
.blog-article-page .post-content ol { margin: 0 0 1.4rem; padding-left: 1.5rem; }
.blog-article-page .post-content li { margin-bottom: .55rem; padding-left: .2rem; line-height: 1.8; }
.blog-article-page .post-content blockquote { margin: 1.7rem 0; padding: 1rem 1.25rem; border-left: 4px solid var(--blog-blue); border-radius: 0 12px 12px 0; background: #edf4ff; color: #35465d; }
.blog-article-page .post-content img { height: auto; margin: 1.5rem auto; border-radius: 14px; }
.blog-article-page .post-content pre { overflow-x: auto; margin: 1.4rem 0; padding: 1rem 1.2rem; border-radius: 12px; background: #111c2b; color: #e8f0fb; }
.blog-article-page .post-content table { display: block; max-width: 100%; overflow-x: auto; margin: 1.5rem 0; border-collapse: collapse; }
.blog-article-page .post-content th,
.blog-article-page .post-content td { padding: .7rem .85rem; border: 1px solid var(--blog-line); }
.blog-article-page .related-posts { margin-top: 2.5rem !important; padding-top: 1.5rem !important; border-color: var(--blog-line) !important; }
.blog-article-page .related-posts h3 { color: var(--blog-ink); font-size: 1.35rem; }
.blog-article-page .related-posts li { margin: 0 0 10px !important; padding: 12px 14px; border: 1px solid var(--blog-line); border-radius: 11px; background: #fff; line-height: 1.5; }
.blog-article-page .related-posts li a { color: var(--blog-blue) !important; font-weight: 650; }
.blog-article-page .post-author-panel {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  border: 1px solid var(--blog-line) !important;
  border-radius: 16px;
  background: var(--blog-paper) !important;
  box-shadow: 0 8px 24px rgba(19, 43, 74, .05);
}
.blog-article-page .post-author-panel .author-signature { margin: 0 !important; padding: 0 !important; border: 0 !important; }
.blog-article-page .post-author-panel a { color: var(--blog-ink); }
.blog-article-page .post-author-panel small { color: var(--blog-muted) !important; line-height: 1.55; }
.blog-article-page .post-author-panel > .d-flex > small { color: var(--blog-muted); white-space: nowrap; }
.blog-article-page .post-comments-list,
.blog-article-page .post-comment-form { margin: 26px 0 !important; }
.blog-article-page .post-comments-list > .section-title,
.blog-article-page .post-comment-form > .section-title {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: flex-start;
  padding: 12px 17px !important;
  border: 1px solid var(--blog-line) !important;
  border-left: 4px solid var(--blog-blue) !important;
  border-radius: 13px 13px 0 0;
  background: #eaf2ff !important;
}
.blog-article-page .post-comments-list > .section-title h4,
.blog-article-page .post-comment-form > .section-title h4 { margin: 0 !important; color: var(--blog-ink) !important; font-size: .9rem !important; font-weight: 800; }
.blog-article-page .post-comments-list #commentsContainer,
.blog-article-page .post-comment-form .comsec {
  border: 1px solid var(--blog-line) !important;
  border-top: 0 !important;
  border-radius: 0 0 13px 13px;
  background: var(--blog-paper) !important;
  color: var(--blog-ink);
}
.blog-article-page .post-comments-list #commentsContainer > p { margin: 0; color: var(--blog-muted); line-height: 1.7; }
.blog-article-page .post-comments-list .comment-item,
.blog-article-page .post-comments-list #commentsContainer > .bg-white {
  margin-bottom: 14px !important;
  padding: 16px !important;
  border: 1px solid var(--blog-line);
  border-radius: 13px;
  background: var(--blog-paper) !important;
  color: var(--blog-ink);
}
.blog-article-page .post-comments-list .comment-item:last-child { margin-bottom: 0 !important; }
.blog-article-page .post-comments-list .comment-item strong { color: var(--blog-ink) !important; }
.blog-article-page .post-comments-list .comment-item p { margin: 0 0 8px; color: var(--blog-ink); line-height: 1.65; }
.blog-article-page .post-comments-list .comment-item .text-muted { color: var(--blog-muted) !important; }
.blog-article-page .post-comments-list .nested-replies { border-left-color: var(--blog-line) !important; }
.blog-article-page .post-comments-list .reply-form { padding: 14px; border: 1px solid var(--blog-line); border-radius: 12px; background: var(--blog-canvas) !important; }
.blog-article-page .post-comment-form .comsec { padding: 20px !important; }
.blog-article-page .post-comment-form label { margin-bottom: 7px; color: var(--blog-ink); font-weight: 650; }
.blog-article-page .post-comment-form .form-group { margin-bottom: 16px; }
.blog-article-page .post-comment-form textarea.form-control { min-height: 130px; line-height: 1.65; }
.blog-article-page .post-comment-form input[type="submit"] { min-height: 44px; padding: 10px 18px; border-radius: 9px; font-weight: 700; }
.blog-article-page .asinew { display: flex; min-width: 0; flex-direction: column; gap: 18px; }
.blog-article-page .asinew > .sidebar-ad,
.blog-article-page .asinew > .sidebar-box,
.blog-article-page .asinew > .newsletter-box,
.blog-article-page .asinew > .tech-communities,
.blog-article-page .asinew > .mb-3 {
  margin: 0 !important;
  overflow: hidden;
  border: 1px solid var(--blog-line);
  border-radius: 16px;
  background: var(--blog-paper);
  box-shadow: 0 8px 24px rgba(19, 43, 74, .055);
}
.blog-article-page .asinew > .sidebar-ad:not(#ad-container) { padding: 0; }
.blog-article-page .asinew > .sidebar-ad .section-title,
.blog-article-page .asinew > .mb-3 > .section-title {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: flex-start;
  padding: 12px 16px !important;
  border: 0 !important;
  border-left: 4px solid var(--blog-blue) !important;
  border-radius: 0;
  background: #edf4ff !important;
}
.blog-article-page .asinew .section-title h4 { margin: 0 !important; color: var(--blog-ink) !important; font-size: .82rem !important; font-weight: 800; letter-spacing: .055em; }
.blog-article-page .asinew .inpback,
.blog-article-page .asinew .content-box { padding: 18px !important; border-color: var(--blog-line) !important; background: var(--blog-paper); color: var(--blog-muted); line-height: 1.7; }
.blog-article-page .asinew .inpback p,
.blog-article-page .asinew .content-box p { margin: 0 0 12px; color: var(--blog-muted); line-height: 1.7; }
.blog-article-page .asinew .support-btn,
.blog-article-page .asinew .inpback .btn { min-height: 40px; border-radius: 9px; font-weight: 700; }
.blog-article-page .asinew #ad-container { min-height: 300px; border-color: var(--blog-line) !important; border-radius: 16px !important; background: var(--blog-paper); }
.blog-article-page .asinew .sidebar-box { padding: 18px; }
.blog-article-page .asinew .sidebar-box h4 { margin: 0 0 12px !important; color: var(--blog-ink); font-size: 1.05rem; font-weight: 800 !important; }
.blog-article-page .asinew .trending-item { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--blog-line); color: var(--blog-ink); text-decoration: none; }
.blog-article-page .asinew .trending-item:last-child { border-bottom: 0; }
.blog-article-page .asinew .trending-img { width: 76px; height: 66px; border-radius: 10px; object-fit: cover; }
.blog-article-page .asinew .trending-info h5 { margin: 0 0 5px; color: var(--blog-ink); font-size: 13px; font-weight: 700; line-height: 1.4; }
.blog-article-page .asinew .trending-info span { color: var(--blog-muted); font-size: 10px; font-weight: 700; }
.blog-article-page .asinew .newsletter-box { padding: 20px !important; background: linear-gradient(145deg, #10284a, #0b4eb7); color: #fff; }
.blog-article-page .asinew .newsletter-box h3 { margin: 0 0 8px; color: #fff; font-size: 1.3rem; }
.blog-article-page .asinew .newsletter-box p,
.blog-article-page .asinew .newsletter-box .newsletter-footer,
.blog-article-page .asinew .newsletter-box .newsletter-privacy { color: rgba(255,255,255,.82); line-height: 1.6; }
.blog-article-page .asinew .newsletter-box input { width: 100%; min-height: 44px; margin: 7px 0; padding: 10px 12px; border: 1px solid #dbe4f0; border-radius: 9px; background: #fff; color: var(--blog-ink); }
.blog-article-page .asinew .newsletter-box button { width: 100%; min-height: 44px; margin: 5px 0 10px; border-radius: 9px; background: #39a3ff; color: #fff; font-weight: 750; }
.blog-article-page .asinew .tech-communities { padding: 0; }
.blog-article-page .asinew .tech-communities .btn-join { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px; }
.blog-article-page .asinew .tech-communities .btn-join .btn { margin: 0 !important; border-radius: 9px; }
.blog-article-page .asinew .mb-3 > .inpback { border-top: 0 !important; }
.blog-article-page .sidebar-box,
.blog-article-page .asinew > div,
.blog-category-page .sidebar-box,
.blog-category-page .asinew > div { border-radius: 16px; }

/* Shared mobile and reduced-motion behavior */
@media (max-width: 1100px) {
  .blog-page .ov-nav { width: calc(100% - 32px); gap: 14px; }
  .blog-page .ov-desktop-menu { display: none !important; }
  .blog-page .ov-mobile-trigger { display: flex !important; }
}

@media (min-width: 1101px) {
  .blog-page .ov-mobile-trigger { display: none !important; }
}

@media (max-width: 991.98px) {
  .blog-home-page .hero-grid { grid-template-columns: 1fr; }
  .blog-home-page .slider-container { height: clamp(340px, 58vw, 500px); }
  .blog-home-page .hero-grid > div:nth-child(2) { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px !important; }
  .blog-home-page .side-card { height: 220px; }
  .blog-home-page .main-layout { grid-template-columns: minmax(0, 1fr); }
  .blog-home-page .asinew { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 16px; }
  .blog-home-page .asinew > * { margin-bottom: 0 !important; }
}

@media (max-width: 767.98px) {
  .blog-page { font-size: 15px; }
  .blog-page .ov-header { height: 66px; }
  .blog-page .ov-nav { min-height: 66px; }
  .blog-page .ov-brand-logo { width: 38px; height: 38px; flex-basis: 38px; }
  .blog-page .ov-brand-copy strong { font-size: 17px; }
  .blog-page .ov-actions { gap: 2px; }
  .blog-page .ov-actions .ov-search-container { display: none; }
  .blog-page .ov-actions .ov-btn { width: 38px; height: 38px; }
  .blog-home-page .sidebar-ad.main-ad,
  .blog-home-page .hero-grid,
  .blog-home-page .main-layout { width: calc(100% - 28px); }
  .blog-home-page .breaking-bar { width: calc(100% - 28px); margin-top: 12px; padding: 7px 10px; }
  .blog-home-page .breaking-bar .ticker-wrap { gap: 10px; }
  .blog-home-page .breaking-bar .ticker-label { padding: 5px 8px; font-size: 9px; letter-spacing: .08em; }
  .blog-home-page .breaking-bar marquee { font-size: 11px; }
  .blog-home-page .sidebar-ad.main-ad { margin-top: 16px; }
  .blog-home-page .hero-grid { margin-top: 14px; margin-bottom: 30px; }
  .blog-home-page .slider-container { height: clamp(320px, 94vw, 460px); border-radius: 16px; }
  .blog-home-page .card-overlay { padding: 24px 18px 34px; }
  .blog-home-page .slide-title { font-size: clamp(1.45rem, 7vw, 2.1rem); }
  .blog-home-page .hero-grid > div:nth-child(2) { grid-template-columns: 1fr; }
  .blog-home-page .side-card { height: 220px; }
  .blog-home-page .news-list.latest-grid { grid-template-columns: 1fr; gap: 14px; }
  .blog-home-page .main-layout { gap: 24px; margin-bottom: 40px; }
  .blog-home-page .post-card-list { align-items: stretch !important; }
  .blog-home-page .post-card-list > div:first-child { width: 100% !important; height: auto !important; flex: 0 0 auto !important; aspect-ratio: 16 / 9; }
  .blog-home-page .post-card-list > div:last-child { width: 100%; }
  .blog-home-page .asinew { grid-template-columns: 1fr; }
  .blog-category-page .blog-category-layout { padding: 20px 0 36px; }
  .blog-category-page .blog-category-layout > .container { width: calc(100% - 28px); }
  .blog-category-page .category-post-item { flex-direction: column; gap: 0; }
  .blog-category-page .post-image-container { width: 100%; height: auto; flex: 0 0 auto; aspect-ratio: 16 / 9; }
  .blog-category-page .post-content-container { padding: 17px; }
  .blog-category-page .post-content-container h2 { font-size: 1.1rem !important; }
  .blog-article-page .container-fluid.mt-5 { padding: 0 14px; }
  .blog-article-page .container-fluid:not(.mt-5) { padding: 12px 14px 40px; }
  .blog-article-page .container-fluid:not(.mt-5) .col-lg-8,
  .blog-article-page .container-fluid:not(.mt-5) .col-lg-4 { padding-right: 8px; padding-left: 8px; }
  .blog-article-page h1.mb-3 { font-size: clamp(1.75rem, 8vw, 2.45rem); }
  .blog-article-page .post-image-wrapper > img { aspect-ratio: 4 / 3; }
  .blog-article-page .post-content { margin-top: 14px; font-size: 1.03rem; }
  .blog-article-page .post-content p { font-size: 1.03rem; line-height: 1.8 !important; }
}

@media (max-width: 420px) {
  .blog-page .ov-nav { width: calc(100% - 24px); }
  .blog-page .ov-brand { gap: 7px; }
  .blog-page .ov-brand-logo { width: 34px; height: 34px; flex-basis: 34px; }
  .blog-page .ov-brand-copy strong { font-size: 16px; }
}

/* Dark theme: keep every surface and text contrast in sync with the toggle. */
html.blog-theme-dark .blog-page {
  --blog-ink: #edf3fb;
  --blog-muted: #a7b5c8;
  --blog-blue: #78b7ff;
  --blog-blue-dark: #4f9cf0;
  --blog-line: #2b3a4f;
  --blog-paper: #172536;
  --blog-canvas: #0d1724;
  --blog-shadow: 0 14px 38px rgba(0, 0, 0, .24);
  color-scheme: dark;
  background: var(--blog-canvas) !important;
  color: var(--blog-ink) !important;
}

html.blog-theme-dark .blog-page .ov-header {
  background: rgba(13, 23, 36, .96) !important;
  border-bottom-color: var(--blog-line);
  box-shadow: 0 3px 18px rgba(0, 0, 0, .2);
}

html.blog-theme-dark .blog-page .ov-brand-copy strong,
html.blog-theme-dark .blog-page .ov-desktop-menu a,
html.blog-theme-dark .blog-page .ov-btn,
html.blog-theme-dark .blog-page .ov-side-link { color: var(--blog-ink); }

html.blog-theme-dark .blog-page .ov-desktop-menu a { color: #c0ccdc; }
html.blog-theme-dark .blog-page .ov-desktop-menu a:hover,
html.blog-theme-dark .blog-page .ov-desktop-menu a.ov-active { color: var(--blog-blue); }
html.blog-theme-dark .blog-page .ov-btn:hover,
html.blog-theme-dark .blog-page .ov-side-link:hover,
html.blog-theme-dark .blog-page .ov-side-link.ov-active { background: #20344d; color: #fff; }
html.blog-theme-dark .blog-page .ov-sidebar { background: #111e2d !important; border-color: var(--blog-line); }
html.blog-theme-dark .blog-page .ov-sidebar > div { color: var(--blog-ink) !important; }
html.blog-theme-dark .blog-page .ov-search-container { background: #1b2a3c; }
html.blog-theme-dark .blog-page .ov-search-input { color: var(--blog-ink); }

html.blog-theme-dark .blog-home-page .sidebar-ad.main-ad,
html.blog-theme-dark .blog-home-page .post-card,
html.blog-theme-dark .blog-home-page .post-card-list,
html.blog-theme-dark .blog-home-page .asinew > .sidebar-ad,
html.blog-theme-dark .blog-home-page .sidebar-box,
html.blog-theme-dark .blog-home-page .tech-communities,
html.blog-theme-dark .blog-home-page .asinew > .mb-3,
html.blog-theme-dark .blog-category-page .category-post-item,
html.blog-theme-dark .blog-article-page .related-posts li {
  border-color: var(--blog-line);
  background: var(--blog-paper);
  color: var(--blog-ink);
}

html.blog-theme-dark .blog-home-page .post-card .post-content > a:not(.badge-link),
html.blog-theme-dark .blog-home-page .section-header h2,
html.blog-theme-dark .blog-home-page .section-header h4,
html.blog-theme-dark .blog-home-page .category-section .post-card-list h3,
html.blog-theme-dark .blog-home-page .sidebar-box h4,
html.blog-theme-dark .blog-home-page .trending-info h5,
html.blog-theme-dark .blog-category-page .section-title h1,
html.blog-theme-dark .blog-category-page .post-content-container h2,
html.blog-theme-dark .blog-article-page h1.mb-3,
html.blog-theme-dark .blog-article-page .post-content h2,
html.blog-theme-dark .blog-article-page .post-content h3,
html.blog-theme-dark .blog-article-page .post-content h4,
html.blog-theme-dark .blog-article-page .related-posts h3 {
  color: var(--blog-ink) !important;
}

html.blog-theme-dark .blog-home-page .post-card .post-content p,
html.blog-theme-dark .blog-home-page .post-footer,
html.blog-theme-dark .blog-home-page .author-pill,
html.blog-theme-dark .blog-home-page .stats-pill,
html.blog-theme-dark .blog-category-page .post-content-container p,
html.blog-theme-dark .blog-category-page .post-content-container > div:last-child,
html.blog-theme-dark .blog-article-page .post-content,
html.blog-theme-dark .blog-article-page .post-content p { color: #c0ccdc !important; }

html.blog-theme-dark .blog-home-page .post-footer,
html.blog-theme-dark .blog-home-page .trending-item { border-color: var(--blog-line); }
html.blog-theme-dark .blog-category-page .section-title { background: #1b2d43 !important; }
html.blog-theme-dark .blog-category-page form input[type="text"],
html.blog-theme-dark .blog-page .form-control,
html.blog-theme-dark .blog-page input,
html.blog-theme-dark .blog-page select,
html.blog-theme-dark .blog-page textarea {
  border-color: #34465d !important;
  background-color: #152334 !important;
  color: var(--blog-ink) !important;
}
html.blog-theme-dark .blog-page input::placeholder,
html.blog-theme-dark .blog-page textarea::placeholder { color: #91a1b6; }
html.blog-theme-dark .blog-category-page .page-link { border-color: var(--blog-line); background: #172536; color: var(--blog-blue); }
html.blog-theme-dark .blog-category-page .page-item.active .page-link { border-color: var(--blog-blue-dark); background: #245b9f; color: #fff; }
html.blog-theme-dark .blog-article-page .post-image-wrapper { background: #1a2b3e; }
html.blog-theme-dark .blog-article-page .position-relative > .border-top-0 .badge { background: #1c3552; color: #9acaff; }
html.blog-theme-dark .blog-article-page .post-content blockquote { background: #182b40; color: #d4deea; }
html.blog-theme-dark .blog-article-page .post-content th,
html.blog-theme-dark .blog-article-page .post-content td { border-color: var(--blog-line); background: #172536; color: var(--blog-ink); }
html.blog-theme-dark .blog-article-page .related-posts li a { color: #8fc4ff !important; }

html.blog-theme-dark .blog-article-page .breaking-bar { background: #101d2c; }
html.blog-theme-dark .blog-page .section-header,
html.blog-theme-dark .blog-page .category-section .section-header,
html.blog-theme-dark .blog-page .post-footer { border-color: var(--blog-line) !important; }
html.blog-theme-dark .blog-article-page .asinew > .sidebar-ad,
html.blog-theme-dark .blog-article-page .asinew > .sidebar-box,
html.blog-theme-dark .blog-article-page .asinew > .tech-communities,
html.blog-theme-dark .blog-article-page .asinew > .mb-3,
html.blog-theme-dark .blog-article-page .asinew .content-box { border-color: var(--blog-line); background: var(--blog-paper); color: var(--blog-muted); }
html.blog-theme-dark .blog-article-page .asinew .section-title { background: #1b2d43 !important; }
html.blog-theme-dark .blog-article-page .asinew .inpback { background: var(--blog-paper) !important; color: var(--blog-muted); }
html.blog-theme-dark .blog-article-page .asinew .section-title h4,
html.blog-theme-dark .blog-article-page .asinew .sidebar-box h4,
html.blog-theme-dark .blog-article-page .asinew .trending-info h5 { color: var(--blog-ink) !important; }
html.blog-theme-dark .blog-article-page .asinew .trending-info span { color: var(--blog-muted); }
html.blog-theme-dark .blog-article-page .post-author-panel,
html.blog-theme-dark .blog-article-page .post-comments-list #commentsContainer,
html.blog-theme-dark .blog-article-page .post-comment-form .comsec,
html.blog-theme-dark .blog-article-page .post-comments-list .comment-item,
html.blog-theme-dark .blog-article-page .post-comments-list #commentsContainer > .bg-white {
  border-color: var(--blog-line) !important;
  background: var(--blog-paper) !important;
  color: var(--blog-ink);
}
html.blog-theme-dark .blog-article-page .post-comments-list > .section-title,
html.blog-theme-dark .blog-article-page .post-comment-form > .section-title { background: #1b2d43 !important; }
html.blog-theme-dark .blog-article-page .post-comments-list .comment-item p,
html.blog-theme-dark .blog-article-page .post-comments-list #commentsContainer > p { color: #c0ccdc; }
html.blog-theme-dark .blog-article-page .post-comments-list .reply-form { border-color: var(--blog-line); background: #101d2c !important; }
html.blog-theme-dark .blog-article-page .post-comment-form label,
html.blog-theme-dark .blog-article-page .post-author-panel a { color: var(--blog-ink); }
html.blog-theme-dark .blog-article-page .section-title h4,
html.blog-theme-dark .blog-category-page .section-title h1 { color: var(--blog-ink) !important; }
html.blog-theme-dark .blog-article-page .sidebar-ad,
html.blog-theme-dark .blog-article-page .sidebar-box,
html.blog-theme-dark .blog-article-page .inpback,
html.blog-theme-dark .blog-article-page .content-box,
html.blog-theme-dark .blog-category-page .sidebar-ad,
html.blog-theme-dark .blog-category-page .sidebar-box,
html.blog-theme-dark .blog-category-page .inpback,
html.blog-theme-dark .blog-category-page .content-box {
  border-color: var(--blog-line) !important;
  background-color: var(--blog-paper) !important;
  color: var(--blog-ink) !important;
}
html.blog-theme-dark .blog-article-page .sidebar-ad p,
html.blog-theme-dark .blog-article-page .sidebar-box p,
html.blog-theme-dark .blog-article-page .inpback p,
html.blog-theme-dark .blog-article-page .content-box p,
html.blog-theme-dark .blog-category-page .sidebar-ad p,
html.blog-theme-dark .blog-category-page .sidebar-box p,
html.blog-theme-dark .blog-category-page .inpback p,
html.blog-theme-dark .blog-category-page .content-box p { color: #c0ccdc; }

@media (prefers-reduced-motion: reduce) {
  .blog-page *, .blog-page *::before, .blog-page *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
