 /* ─── READING PROGRESS BAR ─── */

  #reading-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #ff5c8a, #ff5c8abf);
    z-index: 9999;
    transition: width 0.1s linear;
    box-shadow: 0 0 12px #ff5c8abf;
  }

  .blog_title h1 {
      font-size: 56px;
      margin-bottom: 10px;
      margin-top: 50px;
      color: var(--text-blog_title);
      letter-spacing: .5px;
      font-weight: 600;
      line-height: 68px;
      text-transform: none;
      padding: 25px;
  }
  /* ─── LAYOUT ─── */
  .page-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 4rem;
    align-items: start;
  }

  /* ─── SIDEBAR ─── */
  .sidebar {
    position: sticky;
    top: 72px;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    scrollbar-width: none;
  }

  .sidebar::-webkit-scrollbar { display: none; }

  .toc-header {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #6b6880;
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid #1e1e2e;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .toc-header svg { opacity: 0.4; }

  .toc-list { list-style: none; padding: 0px;}

  .toc-item {
    position: relative;
    padding: 0;
    margin-bottom: 2px;
  }

  .toc-link {
    display: flex;
    align-items: center;
    gap: 0;
    text-decoration: none;
    color: #6b6880;
    font-size: 0.90rem;
    line-height: 1.4;
    padding: 0.45rem 0.75rem 0.45rem 0.2rem;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
    position: relative;
    overflow: hidden;
  }

  /* progress fill behind each item */
  .toc-link::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 0%;
    background: rgba(255,92,138,0.25);
    transition: width 0.3s ease;
    z-index: 0;
  }

  .toc-link span { position: relative; z-index: 1; }

  /* left bar indicator */
  .toc-link::after {
    content: '';
    position: absolute;
    left: 0; top: 20%; bottom: 20%;
    width: 2px;
    background: transparent;
    border-radius: 2px;
    transition: background 0.25s, top 0.25s, bottom 0.25s;
  }

  .toc-link:hover {
    color: #e8e6f0;
    background: rgba(255,255,255,0.03);
  }

  .toc-link.active {
    color: #d1c9c9;
  }

  .toc-link.active::before {
    width: 100%;
  }

  .toc-link.active::after {
    background: #ff5c8a;
    top: 15%; bottom: 15%;
  }

  /* ─── ARTICLE ─── */
  .article-body {
    max-width: 680px;
  }

  .article-image {
    width: 100%;
    height: 360px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 2.5rem;
    display: block;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    position: relative;
    overflow: hidden;
  }

  .article-image-placeholder {
    width: 100%;
    height: 360px;
    border-radius: 8px;
    margin-bottom: 2.5rem;
    background: linear-gradient(135deg, #0d0d1a 0%, #1a1030 50%, #0d1a30 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #1e1e2e;
    position: relative;
    overflow: hidden;
  }

  .article-image-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
      radial-gradient(circle at 30% 50%, rgba(108,99,255,0.2) 0%, transparent 50%),
      radial-gradient(circle at 70% 30%, rgba(0,200,255,0.1) 0%, transparent 40%);
  }

  .ai-figure {
    position: relative; z-index: 1;
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    filter: drop-shadow(0 0 30px rgba(108,99,255,0.6));
  }

  .article-body p {
    color: #c9c5dc;
    margin-bottom: 1.5rem;
    font-weight: 300;
    font-size: 17px;
  }

  .article-body li, .article-body span {
    color: #c9c5dc;
    font-weight: 300;
    font-size: 17px;
  }

  .article-body h2 {
    font-size: 1.7rem;
    font-weight: 700;
    color: #e8e6f0;
    margin: 2.8rem 0 1rem;
    line-height: 1.25;
    scroll-margin-top: 80px;
    position: relative;
  }

  .article-body h2::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background: #ff5c8a;
    border-radius: 2px;
    transition: height 0.4s ease;
  }

  .article-body h2.in-view::before {
    height: 70%;
  }

  .article-body h3 {
    /* font-family: 'Source Serif 4', serif; */
    font-size: 1.15rem;
    font-weight: 600;
    color: #e8e6f0;
    margin: 2rem 0 0.75rem;
    scroll-margin-top: 80px;
  }

  blockquote {
    border-left: 3px solid #ff5c8a;
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: rgba(108,99,255,0.06);
    border-radius: 0 6px 6px 0;
    font-style: italic;
    color: #c9c5dc;
  }

  .tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #1e1e2e;
  }

  .tag-list a {
    background: #111118;
    border: 1px solid #1e1e2e;
    color: #6b6880;
    padding: 0.3rem 0.8rem;
    border-radius: 3px;
    font-size: 0.72rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    transition: border-color 0.2s, color 0.2s;
  }

  .tag-list a:hover {
    border-color: #ff5c8a;
    color: #ff5c8abf;
  }

  /* mobile */
  @media (max-width: 768px) {
    .page-wrap {
      grid-template-columns: 1fr;
    }
    .sidebar {
      position: static;
      border-bottom: 1px solid #1e1e2e;
      padding-bottom: 1.5rem;
      margin-bottom: 0;
    }
    .sidebar{
      display: none;
    }
    .article-image-placeholder {
      height: auto;
    }
    .blog_title h1 {
      font-size: 24px;
      line-height:34px;
      margin-top: 25px;
    }
    .page-wrap{
      padding:1rem 2rem;
    }
  }

  .blog_title {
      text-align: center;
  }

  .add_info ul {
      list-style: none;
      padding: 0;
      display: inline-block;
      margin-top: 0;
  }

  .add_info ul li {
      display: -webkit-inline-box;
      display: -ms-inline-flexbox;
      display: inline-flex;
      -webkit-box-align: center;
      -ms-flex-align: center;
      align-items: center;
      padding: 0 12px;
      font-weight: 400;
      font-size: 14px;
      line-height: 21px;
      color: #79767f;
  }

  .add_info ul li svg {
    margin-right: 8px;
  }

  .blog-img {
      width: 100%;
      -o-object-fit: cover;
      object-fit: cover;
      vertical-align: middle;
  }

  .blog-author-card {
      margin-top: 48px;
      display: -webkit-box;
      display: -ms-flexbox;
      display: flex;
      gap: 24px;
      -webkit-box-align: center;
      -ms-flex-align: center;
      align-items: center;
      padding: 28px 32px;
      border-radius: 18px;
      background: #18181d;
      color: rgba(255, 255, 255, .85);
  }
  .blog-author-card__avatar {
      -webkit-box-flex: 0;
      -ms-flex: 0 0 auto;
      flex: 0 0 auto;
  }
  .blog-author-card__content {
      -webkit-box-flex: 1;
      -ms-flex: 1;
      flex: 1;
  }
  .blog-author-card__name {
      display: -webkit-inline-box;
      display: -ms-inline-flexbox;
      display: inline-flex;
      -webkit-box-align: baseline;
      -ms-flex-align: baseline;
      align-items: baseline;
      gap: 8px;
      /* margin: 0 0 8px; */
      font-size: 20px;
      font-weight: 600;
      color: #fff;
      /* font-family: Inter; */
      /* text-decoration: underline; */
  }
  .blog-author-card__bio {
      margin: 0;
      font-size: 16px;
      line-height: 1.6;
      color: rgba(255, 255, 255, .72);
  }
  .blog-author-card__avatar img {
      width: 72px;
      height: 72px;
      border-radius: 50%;
      -o-object-fit: cover;
      object-fit: cover;
      -webkit-box-shadow: 0 12px 24px rgba(0, 0, 0, .18);
      box-shadow: 0 12px 24px rgba(0, 0, 0, .18);
  }

  /* For Related Blogs */
  .recent_post .blog-card {
       border: 2px solid #333;
       border-radius: 12px;
       -webkit-transition: .2s;
       transition: all .2s ease;
       cursor: pointer;
       padding:0px !important;
    }
    .recent_post .blog-card .blog-img-div{
        position: relative;
        height:150px;
    }
    .recent_post .blog-card .blog-img-div .blog-img {
        width: 100%;
        height: 100%;
        -o-object-fit: cover;
        object-fit: cover;
        border-radius: 12px 12px 0 0;
        vertical-align: middle;
    }
    .recent_post .blog-card .blog-title-div {
        background-color: #000000;
        backdrop-filter: blur(5px);
        border-radius: 0 0 12px 12px;
        z-index: 1;
        overflow: hidden;
        position: relative;
    }
    .recent_post .blog-card .blog-title-div .blog-title-bg-img
    {
        position: absolute;
        width: 100%;
        height: 100%;
        -o-object-fit: cover;
        object-fit: cover;
        -webkit-filter: blur(5px);
        filter: blur(5px);
        z-index: -1;
    }
    .recent_post .blog-title-text
    {
        z-index: 1;
        padding: 16px;
        position: relative;
        min-height: 115px;
    }
    .recent_post .blog-card .blog-title-div .blog-date {
        color:rgb(255 255 255 / 80%);
        margin-bottom: 5px;
        font-size: 15px;
        /* font-family: Inter !important; */
    }
    .recent_post .blog-card .blog-title-div .blog-title
    {
        color: #ffffff;
        font-size: 16px;
        font-weight: 500;
        line-height: 24px;
        margin: 0;
        text-align: left;
    }
    .recent_post .blog-card .blog-title-div::before
    {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #1a1a1acc;
        background: #000000;
    }
    .recent_post .blog-card:hover {
        -webkit-box-shadow: rgba(255, 92, 138, .2) 0 7px 29px 0;
        box-shadow: rgba(255, 92, 138, .2) 0 7px 29px 0;
    }
    .recent_post .truncate-2-lines {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .recent_post .blogs-title{
        font-size:72px !important;
    }
    .recent_post .blogs-subtitle{
        max-width: 500px;
        margin:0 auto;
    }
    .recent_post .page-title-container{
        border-bottom:0px;
        padding: 25px 0px 60px 0px;
    }
    .recent_post .recent_post_inner h2 {
        font-size: 50px;
        margin: 15px;
        color: #edeaf1;
        font-weight: 600;
        letter-spacing: .1px;
        text-align:center;
    }
    .recent_post .recent_post_inner>h4 {
      margin-top: 0;
      max-width: 460px;
      font-size: 20px;
      margin-left: auto;
      margin-right: auto;
      color: #adaab0;
      font-weight: 200;
      letter-spacing: .2px;
      text-transform: none;
      line-height: 1.4;
      text-align:center;
    }
    #view-all {
        background-color: var(--primary-color);
        color: var(--text-color);
        border: 0px;
    }

    .article-content a {
        color: #ff5c8a;
    }
    .article-content a:hover {
        /* color: #fff; */
        text-decoration:underline;
    }
    /* For Blog Detail Author */
    .text-avatar {
      width: 66px;
      height: 66px;
      border-radius: 50%;
      background: #ff5c8a;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 20px;
      font-weight: 500;
      color: #fff;
      flex-shrink: 0;
      font-family: 'DM Sans', sans-serif;
    }
    .author-role {
      font-size: 13px;
      color: var(--color-text-secondary);
      margin: 0;
      font-weight: 300;
      letter-spacing: 0.01em;
    }
    .author-role span {
      color: #ff5c8a;
      font-weight: 400;
    }