 /* --- Modern Pagination Design --- */
  #pagination-links .pagination {
    gap: 8px;
    border: none;
    margin-top: 30px;
  }

  #pagination-links .page-item {
    margin: 0;
  }

  #pagination-links .page-link {
    border-radius: 12px !important;
    border: 1px solid #f0f0f0 !important;
    padding: 10px 18px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--title-color) !important;
    background: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
  }

  #pagination-links .page-item.active .page-link {
    background: #6f972d !important; /* brand-primary */
    color: #ffffff !important;
    border-color: #6f972d !important;
    box-shadow: 0 8px 20px rgba(111, 151, 45, 0.3);
    transform: translateY(-3px);
  }

  #pagination-links .page-link:hover:not(.active) {
    background: #f9fbf7 !important;
    border-color: #6f972d !important;
    color: #6f972d !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.05);
  }

  #pagination-links .page-item.disabled .page-link {
    opacity: 0.5;
    background: #fcfcfc !important;
    border-color: #eeeeee !important;
    cursor: not-allowed;
  }

  @media (max-width: 575px) {
    #pagination-links .page-link {
      padding: 8px 14px;
      font-size: 0.85rem;
      min-width: 38px;
    }
    #pagination-links .pagination {
      gap: 5px;
    }
  }

  .blog-category {
    white-space: nowrap;
    padding: 6px 12px;
    color: var(--title-color);
    background-color: #f5f8fc;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
    cursor: pointer;
  }

  /* .blog-category.active {
    background-color: #6f972d; 
    color: white;
  } */
  .custom-active {
    background-color: #6f972d !important;
    color: white !important;
}

  .tag-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
   /* Firefox */
   -ms-overflow-style: none;
   /* IE and Edge */
  }

  .tag-scroll::-webkit-scrollbar {
    display: none;                /* Chrome, Safari */
  }

  @media (min-width: 768px) {
    .tag-scroll {
      overflow-x: visible !important;
    }
  }

  /* --- Modern Blog Header Styles --- */
  .blog-header-modern {
    position: relative;
    padding: 80px 0 40px;
    background: #ffffff;
    overflow: hidden;
  }
  
  .floating-blog-icon {
    position: absolute;
    opacity: 0.5;
    z-index: 0;
    animation: floatBlogIcon 6s infinite alternate ease-in-out;
    pointer-events: none;
    transition: all 0.3s ease;
  }

  @keyframes floatBlogIcon {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-20px) rotate(10deg); }
  }

  /* Randomized Positions & Colors */
  .icon-b-1 { top: 15%; left: 8%; color: #6f972d; font-size: 2.2rem; animation-delay: 0s; }
  .icon-b-2 { top: 65%; left: 12%; color: #c1ce0e; font-size: 1.8rem; animation-delay: 1s; }
  .icon-b-3 { top: 10%; right: 10%; color: #2c3124; font-size: 2rem; animation-delay: 2s; }
  .icon-b-4 { top: 55%; right: 8%; color: #6f972d; font-size: 2.5rem; animation-delay: 3s; }
  .icon-b-5 { top: 40%; left: 5%; color: #adb5bd; font-size: 1.4rem; animation-delay: 0.5s; }
  .icon-b-6 { top: 35%; right: 4%; color: #6c757d; font-size: 1.6rem; animation-delay: 1.5s; }
  .icon-b-7 { top: 25%; left: 20%; color: #6f972d; font-size: 1.2rem; opacity: 0.3 !important; }
  .icon-b-8 { top: 45%; right: 22%; color: #c1ce0e; font-size: 1.3rem; opacity: 0.3 !important; }

  .fw-800 { font-weight: 800 !important; }

  @media (max-width: 768px) {
    .floating-blog-icon { opacity: 0.25 !important; font-size: 1.2rem !important; }
    .blog-header-modern { padding: 60px 0 30px; }
  }

  .sub-page {
    background: unset !important;
  }

  /* --- Sticky Sidebar Fixes --- */
  .blog, 
  .blog > .container-fluid, 
  .blog > .container-fluid > .row {
    overflow: visible !important; /* Critical for position: sticky to work */
  }

  .sticky-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 100px;
    z-index: 100;
    align-self: flex-start;
    height: auto;
  }

  .demat-cta-card-white {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px 22px;
    color: var(--title-color);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #eeeeee;
    transition: all 0.3s ease;
    top: 30px;
  }

  .demat-cta-card-white:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(111, 151, 45, 0.1);
    border-color: #6f972d;
  }

  .demat-cta-icon-modern {
    width: 60px;
    height: 60px;
    background: #fcfcfc;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: #6f972d;
    border: 1px solid #eeeeee;
    transition: all 0.3s ease;
  }

  .demat-cta-card-white:hover .demat-cta-icon-modern {
    background: #6f972d;
    color: #ffffff;
    transform: scale(1.05);
    border-color: #6f972d;
  }

  .demat-cta-title-dark {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
    color: #333333;
  }

  .demat-cta-list-dark {
    list-style: none;
    padding: 0;
    margin: 0 0 25px;
    text-align: left;
  }

  .demat-cta-list-dark li {
    font-size: 0.95rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #555555;
    font-weight: 500;
  }

  .demat-cta-list-dark i {
    color: #6f972d;
    font-size: 0.9rem;
  }

  .demat-cta-btn-modern {
    background: #6f972d;
    color: #ffffff !important;
    font-weight: 700;
    padding: 12px 15px;
    border-radius: 12px;
    display: block;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 12px rgba(111, 151, 45, 0.15);
    font-size: 0.95rem;
    text-transform: none;
    border: none;
  }

  .demat-cta-btn-modern:hover {
    background: #5d8125;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(111, 151, 45, 0.2);
  }

  .demat-cta-tnc {
    font-size: 0.7rem;
    color: #999999;
    margin-top: 15px;
    line-height: 1.2;
  }

  .demat-cta-btn-modern i {
    transition: transform 0.3s ease;
  }

  .demat-cta-btn-modern:hover i {
    transform: translateX(5px);
  }


  @media (max-width: 991px) {
    /* .sticky-sidebar { position: static; margin-top: 40px; margin-bottom: 0; }
    .demat-cta-card-white { padding: 35px 25px; } */
    html,
    body {
      overflow-x: hidden !important;
      max-width: 100vw !important;
    }

    .blog {
      padding-top: 25px !important;
      padding-bottom: 35px !important;
      overflow-x: hidden !important;
    }

    .blog>.container-fluid {
      padding-left: 15px !important;
      padding-right: 15px !important;
      max-width: 100% !important;
      overflow-x: hidden !important;
    }

    .blog>.container-fluid>.row {
      margin-left: 0 !important;
      margin-right: 0 !important;
    }

    .blog>.container-fluid>.row>[class*="col-"] {
      padding-left: 0 !important;
      padding-right: 0 !important;
    }

    #blog-container {
      overflow-x: hidden !important;
      max-width: 100% !important;
    }

    #blog-container .row {
      margin-left: -6px !important;
      margin-right: -6px !important;
    }

    #blog-container .row>[class*="col-"] {
      padding-left: 6px !important;
      padding-right: 6px !important;
    }

    .blog__wrapper {
      overflow-x: hidden !important;
      max-width: 100% !important;
    }

    .tag-scroll {
      overflow-x: auto !important;
      -webkit-overflow-scrolling: touch;
      padding-left: 2px !important;
      padding-right: 2px !important;
      margin-left: 0 !important;
      margin-right: 0 !important;
      max-width: 100% !important;
    }

    .sticky-sidebar {
      position: static;
      margin-top: 30px;
      margin-bottom: 0;
    }

    .demat-cta-card-white {
      padding: 30px 20px;
    }
  }

  /* --- Accessibility & Focus Styles --- */
  .blog-category:focus-visible,
  .page-link:focus-visible,
  .blog__item-inner:focus-within {
    outline: 3px solid rgba(111, 151, 45, 0.5);
    outline-offset: 2px;
    box-shadow: 0 0 15px rgba(111, 151, 45, 0.2);
  }

  .blog__item-inner:hover,
  .blog__item-inner:focus-within {
    border-color: #6f972d !important;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
  }

  .blog-category:hover,
  .blog-category:focus-visible {
    border-color: #6f972d !important;
    color: #6f972d !important;
    background-color: #f9fbf7 !important;
  }

  .blog-category.custom-active:hover {
    background-color: #5d8125 !important;
    color: #ffffff !important;
  }

  /* Smooth transition for all interactive elements */
  .blog__item-inner, 
  .blog-category, 
  .page-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }