/* =========================
   BLOG CONTENT – DARK / RED
   (SCOPED – SAFE FOR NAVBAR)
   ========================= */

/* Headings */
.blog-page .blog-post h2,
.blog-page .blog-content h2{
  margin-top: 2rem;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid #b91c1c;
}

/* tighter spacing after h2 */
.blog-page .blog-content h2 + p,
.blog-page .blog-content h2 + ul{
  margin-top: 0.5rem;
}

/* H3 styling */
.blog-page .blog-content h3{
  border-left: 4px solid #b91c1c;
  padding-left: 0.6rem;
  margin-top: 1.5rem;
  font-weight: 500;
  color: #e5e7eb;
}

/* Light mode headings */
body.light-mode .blog-page .blog-content h2{
  border-bottom-color: #7f1d1d;
}
body.light-mode .blog-page .blog-content h3{
  color: #111;
  border-left-color: #7f1d1d;
}

/* =========================
   LINKS
   ========================= */
.blog-page .blog-content a{
  color: #b91c1c;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s ease, background-color .2s ease;
}

.blog-page .blog-content a:hover,
.blog-page .blog-content a:focus{
  color: #ef4444;
  background-color: rgba(185, 28, 28, 0.12);
  text-decoration: none;
}

.blog-page .blog-content a:visited{
  color: #7f1d1d;
}

/* Light mode links */
body.light-mode .blog-page .blog-content a{
  color: #7f1d1d;
}
body.light-mode .blog-page .blog-content a:hover{
  color: #991b1b;
}

/* =========================
   TABLES
   ========================= */
.blog-page .blog-content table{
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
  table-layout: auto;
}

.blog-page .blog-content th,
.blog-page .blog-content td{
  border: 1px solid rgba(255,255,255,0.12);
  padding: 10px 15px;
  text-align: center;
  white-space: nowrap;
}

.blog-page .blog-content th{
  background-color: #0f1117;
  color: #f3f4f6;
  font-weight: 600;
}

.blog-page .blog-content tr:nth-child(even){
  background-color: #0b0b0f;
}

.blog-page .blog-content tr:hover{
  background-color: rgba(185,28,28,0.12);
}

/* Light mode tables */
body.light-mode .blog-page .blog-content th{
  background-color: #f3f4f6;
  color: #111;
}
body.light-mode .blog-page .blog-content td,
body.light-mode .blog-page .blog-content th{
  border-color: #e5e7eb;
}
body.light-mode .blog-page .blog-content tr:nth-child(even){
  background-color: #fafafa;
}
body.light-mode .blog-page .blog-content tr:hover{
  background-color: #f1f5f9;
}

/* =========================
   IMAGES (SCOPED)
   ========================= */
.blog-page .blog-content img,
.blog-page .blog-post img{
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem auto;
}

/* =========================
   MOBILE SAFETY (SCOPED)
   ========================= */





  .blog-page.container{
    padding-left: 1rem;
    padding-right: 1rem;
    max-width: 100%;
  }

  .blog-page .row{
    margin-left: 0;
    margin-right: 0;
  }

  .blog-page .col-lg-8,
  .blog-page .col-lg-4{
    padding-left: 0;
    padding-right: 0;
  }

  /* Tables scroll only if needed */
  .blog-page .blog-content table{
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }
}
