@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');

.blog-main {
    font-family: "Open Sans", sans-serif;
    font-weight: 400;
    margin: 0 auto;
    color: #444;
    font-size: 1rem;
    line-height: 24px;
    letter-spacing: 0.5px;
  }
  
  /* Title */
  .blog-main h1 {
    margin: 0 0 1rem;
    letter-spacing: 0.5px;
    font-weight: 700;
  }
  
  /* Meta section (author, updated, read time etc.) */
  .blog-meta{
    font-family: "Open Sans", sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 24px;
    color: #444;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.5rem;
    margin-bottom: 1rem;
    justify-content: center;
  }
  
  .blog-meta-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    overflow: hidden;
    flex-shrink: 0;
  }
  
  .blog-meta-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  /* Inline links */
  .blog-meta a,
  .blog-meta-author a,
  .blog-meta time {
    text-decoration: none;
    font-family: "Open Sans", sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 24px;
    color: #444;
  }
  
  .blog-meta a:hover,
  .blog-meta-author a:hover {
    color: #138808;
  }
  
  .blog-meta-author,
  .blog-meta-updated,
  .blog-meta-readtime {
    display: flex;
    align-items: center;
    gap: 0.35rem;
  }
  
  /* Short intro/subtitle under meta */
  .blog-intro {
    font-family: "Open Sans", sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    line-height: 30px;
    color: #444;
    margin-bottom: 1.75rem;
  }
  
  /* Hero image (if you add one later) */
  .blog-hero {
    font-family: "Open Sans", sans-serif;
    font-weight: 700;
    font-size: 1rem;
    line-height: 24px;
    color: #444;
    margin-bottom: 2rem;
  }
  
  .blog-hero img {
    width: 100%;
    height: auto;
    border-radius: 0.75rem;
    display: block;
  }
  
  /* TOC */
  .sticky-toc {
    top: 100px;
    max-height: 80vh;
    overflow-y: auto;
    position: -webkit-sticky !important;
    position: sticky !important;
  }
  
  .toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
  }
  
  /* TOC text unified with paragraph style */
  .toc,
  .toc ul,
  .toc li,
  .toc-link {
    font-family: "Open Sans", sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 24px;
    color: #444;
  }
  
  .toc-link {
    display: block;
    padding: 6px 0;
    text-decoration: none;
    color: #444;
    transition: color .25s ease;
  }
  
  .toc-link:hover,
  .toc-link.active {
    color: #138808;
  }
  
  .widget {
    border-radius: 10px;
    border: 1px solid #e5e7eb;
  }
  
  .widget h3 {
    font-family: "Open Sans", sans-serif;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #000000;
  }
  
  /* Main content body */
  .blog-post {
    font-family: "Open Sans", sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 24px;
    color: #444;
    padding: 1.75rem;
  }
  
  /* Paragraph spacing */
  caption,
  .blog-post p,
  .blog-post caption {
    font-family: "Open Sans", sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 24px;
    color: #444;
    letter-spacing: 0.5px;
    margin: 0 0 .5rem;
  }
  
  .blog-post a,
  .blog-post a:hover {
    color: #138808;
    text-decoration: underline;
  }
  
  /* Unified heading style */
  .blog-main h1,
  .blog-main h3,
  .blog-post h1,
  .blog-post h2,
  .blog-post h3,
  .blog-post h4,
  .blog-post h5,
  .blog-post h6 {
    font-family: "Open Sans", sans-serif;
    font-style: normal;
    font-weight: 700;
    color: #000000;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    scroll-margin-top: 2.5rem;
  }
  
  .bs-section h1:first-of-type,
  .bs-section h2:first-of-type,
  .bs-section h3:first-of-type,
  .bs-section h4:first-of-type,
  .bs-section h5:first-of-type,
  .bs-section h6:first-of-type {
      margin-top: 0 !important;
  }
  
  /* Sizes (clean visual hierarchy) */
  .blog-main h1,
  .blog-post h1 {
    font-size: 2rem;
    margin: 0 0 1rem;
  }
  
  .blog-post h2 {
    font-size: 1.5rem;
  }
  
  .blog-main h3,
  .blog-post h3 {
    font-size: 1.3rem;
  }
  
  .blog-post h4 {
    font-size: 1.15rem;
  }
  
  .blog-post h5 {
    font-size: 1.05rem;
  }
  
  .blog-post h6 {
    font-size: 1rem;
  }
  
  /* Lists */
  .blog-post ul,
  .blog-post ol {
    margin: 0 0 1.3rem 1.25rem;
    padding: 0 0 0 0.5rem;
  }
  
  .blog-post li {
    font-family: "Open Sans", sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 24px;
    color: #444;
    margin-bottom: 0.4rem;
  }
  
  .blog-post ul {
    list-style: disc;
  }
  
  .blog-post ol {
    list-style: decimal;
  }
  
  /* Images inside content */
  .blog-post img {
    max-width: 100%;
    height: auto;
  }
  
  /* Figure captions */
  .blog-post figure {
    font-family: "Open Sans", sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 24px;
    color: #444;
    margin: 1.75rem 0;
    text-align: center;
    display: inline-block;
  }
  
  .blog-post figure img {
    margin-bottom: 0.5rem;
  }
  
  .blog-post figcaption {
    font-family: "Open Sans", sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 24px;
    color: #444;
  }
  
  /* Blockquote / quotes */
  .blog-post blockquote {
    font-family: "Open Sans", sans-serif;
    font-weight: 400;
    font-style: italic;
    font-size: 1rem;
    line-height: 24px;
    color: #444;
    border-left: 3px solid #138803;
    margin: 1.75rem 0;
    background-color: #f9fafb;
    border-radius: 0.375rem;
    padding-left: 1rem;
    padding-right: 0.75rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }
  
  /* Horizontal rules */
  .blog-post hr {
    border: 0;
    border-top: 1px solid #e5e7eb;
    margin: 2.5rem 0;
  }
  
  /* Tables */
  .blog-post table th p,
  .blog-post table td p {
    font-family: "Open Sans", sans-serif;
    font-style: normal;
    font-size: 1rem;
    color: #444;
    margin-bottom: 0;
  }
  
  .blog-post table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 1rem;
    color: #444;
  }

  .blog-post table th,
  .blog-post table td {
    font-family: "Open Sans", sans-serif;
    font-style: normal;
    padding: 10px;
    vertical-align: middle;
  }

  .blog-post table thead td,
  .blog-post table thead th,
  .blog-post table thead th p,
  .blog-post table thead td p {
    background-color: #f1f5f9;
    font-weight: 700;
    color: #000000;
  }
  
  .blog-post table tbody td,
  .blog-post table tbody td p {
    font-weight: 400 !important;
    font-size: 1rem !important;
    color: #444 !important;
    letter-spacing: 0.5px;
  }
  
  .blog-post .table.table-bordered th, 
  .blog-post .table.table-bordered td {
    padding: 10px !important;
  }
  
  .blog-post .table.table-bordered th:first-child, 
  .blog-post .table.table-bordered td:first-child {
    white-space: wrap;
  }

  .blog-post .table.table-bordered{
    border: 1px solid #cbd5e1;
  }
  .blog-post .table.table-bordered th,
  .blog-post .table.table-bordered td {
    border: 1px solid #cbd5e1;
  }

  .blog-post .table.table-borderless{
    border: none;
    border-collapse: collapse;
  }

  .blog-post .table.table-borderless th,
  .blog-post .table.table-borderless td {
    border: none;
    border-collapse: collapse;
  }

  /* Table striped rows */
  .blog-post .table.table-striped tbody tr:nth-of-type(odd) > td,
  .blog-post .table.table-striped tbody tr:nth-of-type(odd) > th {
    background-color: rgba(0, 0, 0, 0.03);
  }
  .blog-post .table.table-striped tbody tr:nth-of-type(even) > td,
  .blog-post .table.table-striped tbody tr:nth-of-type(even) > th {
    background-color: transparent;
  }

  /* Table striped columns */
  .blog-post .table.table-striped-columns th:nth-of-type(odd),
  .blog-post .table.table-striped-columns td:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.03);
  }
  .blog-post .table.table-striped-columns th:nth-of-type(even),
  .blog-post .table.table-striped-columns td:nth-of-type(even) {
    background-color: transparent;
  }
  
  .blog-post table td img {
    display: inline-block !important;
    margin: 0 auto !important;
    float: none !important;
    max-width: none !important;
  }
  
  /* Responsive tweaks */
  @media (min-width: 640px) {
    .blog-main h1,
    .blog-post h1 {
      font-size: 2.35rem;
    }
  }
  
  @media (max-width: 767.98px) {
    .toc-container {
      display: none;
    }
  }
  
  @media (min-width: 1024px) {
    .blog-main h1,
    .blog-post h1 {
      font-size: 2.6rem;
    }
  }
  
  /* Bottom block wrapper */
  .blog-bottom-section {
    margin-top: 3rem;
  }
  
  /* Tags inline */
  .blog-tags-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
  }
  
  .blog-tags-label {
    font-weight: 700;
    color: #444;
  }
  
  .blog-tag-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    background-color: #f3f5fb;
    color: #444;
    font-size: 0.85rem;
    text-decoration: none;
  }
  
  .blog-tag-chip:hover {
    background-color: #e2e7f5;
    color: #161616;
  }
  
  /* Share inline */
  .blog-share-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
  }
  
  .blog-share-label {
    font-weight: 700;
    color: #444;
  }
  
  .blog-share-btn {
    width: 30px;
    height: 30px;
    border-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: calc(0.75px * 10);
    text-decoration: none;
    margin-right: 10px;
  }
  
  .blog-share-btn:hover svg {
    fill: #138808;
  }
  
  /* Previous / Next navigation */
  .blog-post-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
  }
  
  .blog-post-nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: #444;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }
  
  .blog-post-nav-prev {
    text-align: left;
  }
  
  .blog-post-nav-next {
    text-align: right;
    justify-content: flex-end;
  }
  
  .blog-post-nav-circle {
    width: 54px;
    height: 54px;
    border-radius: 999px;
    border: 2px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  
  .blog-post-nav-arrow {
    font-size: 1.1rem;
    color: #444;
  }
  
  .blog-post-nav-text {
    max-width: 260px;
  }
  
  .blog-post-nav-label {
    display: block;
    font-size: 0.85rem;
    color: #9ca3af;
  }
  
  .blog-post-nav-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: #000000;
  }
  
  .blog-post-nav-item:hover .blog-post-nav-circle {
    border-color: #d1d5db;
  }
  
  .blog-post-nav-item:hover .blog-post-nav-title {
    color: #138808;
  }
  
  /* Responsive tweaks */
  @media (max-width: 767.98px) {
    .blog-post-nav {
      flex-direction: column;
      align-items: stretch;
    }
  
    .blog-post-nav-item {
      justify-content: flex-start;
    }
  
    .blog-post-nav-next {
      justify-content: flex-start;
      text-align: left;
    }
  }
  .template-delete {
    display: none !important;
  }