.blog-card {
    margin-bottom: 20px;
}

.blog-details-wrapper {
    padding: 30px 0;
}

.inner-pagination-area {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    margin: 0;
}

.pagination-list li {
    display: inline-block;
}

.pagination-list a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font-family);
    color: var(--black-color);
    background: var(--white-color);
    border: 1px solid var(--main-grey);
    transition: all 0.3s ease;
    box-shadow: var(--box-shadow);
}

/* Active page */
.pagination-list a.active {
    background: var(--main-color);
    color: var(--white-color);
    border-color: var(--main-color);
}

/* Hover state */
.pagination-list a:hover:not(.active) {
    background: var(--second-color);
    border-color: var(--second-color);
    color: var(--black-color);
}

/* Disabled buttons */
.page-item.disabled a {
    background: var(--main-grey);
    color: #999;
    pointer-events: none;
    box-shadow: none;
}

/* Next / Prev buttons */
.shop-pagi-btn {
    font-size: 14px;
    color: var(--main-color);
}

.shop-pagi-btn:hover {
    background: var(--third-color);
    border-color: var(--third-color);
    color: var(--white-color);
}

/* blog-details */
.blog-details {
    background: var(--white-color);
    border-radius: 12px;
}

.blog-image {
    width: 100%;
    height: 450px;
    overflow: hidden;
    border-radius: 12px;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.blog-image:hover img {
    transform: scale(1.05);
}

.blog-content {
    padding: 2.5rem;
    box-shadow: var(--box-shadow);
    margin: 20px auto;
    border-radius: 15px;
}

.blog-details .blog-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--main-grey);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--para-color);
    font-size: 0.9rem;
}

.meta-item i {
    color: var(--main-color);
}

h1.blog-title {
    font-size: clamp(1rem, 4vw, 1.7rem);
    font-weight: 600;
    color: var(--black-color);
    margin: 0.7rem auto;
    line-height: 1.5;
    letter-spacing: 1px;
}

.blog-intro {
    font-size: 1.1rem;
    color: var(--para-color);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.blog-section {
    margin-bottom: 1rem;
    scroll-margin-top: 100px;
}

.blog-section h2 {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    font-weight: 600;
    color: var(--second-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    position: relative;
    width: fit-content;
    /* border-bottom: 3px solid var(--third-color); */
}

.blog-section h2::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: calc(100% + 1rem);
    height: 2px;
    background: linear-gradient(45deg, var(--main-color), var(--light-color));
}

.section-image {
    width: 100%;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    margin: 1.5rem 0;
    box-shadow: var(--box-shadow);
}

.section-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.section-image:hover img {
    transform: scale(1.05);
}

.blog-section h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--black-color);
    margin: 1.5rem 0 1rem;
}

.blog-content p {
    color: var(--para-color);
    margin-bottom: 0;
    font-size: 1rem;
    line-height: 1.8;
}

.blog-section ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.blog-section li {
    color: var(--para-color);
    margin-bottom: 0.5rem;
    line-height: 1.7;
}


/* Table of Contents */

.sidebar-wrapper {
    height: 100%;
}

.toc-sidebar {
    position: sticky;
    top: 90px;
}

.toc-box {
    margin: auto;
    background: var(--white-color);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: var(--box-shadow);
    background: linear-gradient(white, white) padding-box,
        linear-gradient(to right, var(--main-color), var(--light-color)) border-box;
    border: 2px solid transparent;
}

.toc-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--black-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--main-grey);
}

.toc-list {
    list-style: decimal;
    padding-left: 1rem;
    display: block;
}

.toc-list::marker {
    font-size: 1rem;
    color: var(--main-color);
}

.toc-list li {
    display: list-item;
    list-style: decimal;
    width: 100%;
}

.toc-list a {
    display: block;
    color: var(--second-color);
    text-decoration: none;
    padding-bottom: 1.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
    border-left: 3px solid transparent;
    padding-left: 5px;
    font-size: 1rem;
}

.toc-list a:hover {
    background: var(--main-grey);
    color: var(--main-color);
    border-left-color: var(--main-color);
    transform: translateX(5px);
}

.toc-list a.active {
    background: var(--light-color);
    color: var(--main-color);
    border-left-color: var(--main-color);
}

/* Related Blogs */
.related-blogs-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    background: var(--white-color);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: var(--box-shadow);
}

.related-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--black-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--main-grey);
}

.related-blog-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--main-grey);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.related-blog-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.related-blog-item:hover {
    transform: translateX(5px);
}

.related-blog-image {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
}

.related-blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-blog-item:hover .related-blog-image img {
    transform: scale(1.1);
}

.related-blog-content {
    flex: 1;
}

.related-blog-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--black-color);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.related-blog-item:hover .related-blog-content h4 {
    color: var(--main-color);
}

.related-blog-content .meta {
    font-size: 0.85rem;
    color: var(--para-color);
    display: flex;
    gap: 1rem;
}

.related-blog-content .meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.related-blogs h2{
 text-align: center;
 text-decoration: underline;
}


.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
  }

  .category-card {
    background: var(--white-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
  }

  .category-card:hover {
    transform: translateY(-12px);
    box-shadow: rgba(207, 143, 11, 0.15) 0px 20px 40px,
      rgba(207, 143, 11, 0.1) 0px 10px 20px;
  }

  .card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
  }

  .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
  }

  .category-card:hover .card-image img {
    transform: scale(1.1);
  }

  .card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      to bottom,
      transparent 0%,
      rgba(12, 20, 40, 0.7) 100%
    );
    opacity: 0.8;
    transition: opacity 0.3s ease;
  }

  .category-card:hover .card-overlay {
    opacity: 0.6;
  }

  .card-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--main-color);
    color: var(--white-color);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
  }

  .card-stats {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    gap: 15px;
    z-index: 2;
  }

  .stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--white-color);
    font-size: 13px;
  }

  .stat-item svg {
    width: 16px;
    height: 16px;
    fill: var(--light-color);
  }

  .card-content {
    padding: 25px;
  }

  .card-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--second-color);
    margin-bottom: 12px;
    transition: color 0.3s ease;
    cursor: pointer;
  }

  .card-title:hover {
    color: var(--main-color);
  }

  .card-description {
    color: var(--para-color);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
  }

  .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
  }

  .card-author {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--light-color);
    overflow: hidden;
  }

  .author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .author-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--second-color);
  }

  .author-info span {
    font-size: 12px;
    color: var(--para-color);
  }

  .explore-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--second-color), var(--third-color));
    color: var(--white-color);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
  }

  .explore-btn:hover {
    background: linear-gradient(135deg, var(--main-color), #b37a09);
    transform: translateX(5px);
    color: var(--second-color);
  }

  .explore-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
  }

  .explore-btn:hover svg {
    transform: translateX(3px);
  }

  .featured-card {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .featured-card .card-image {
    height: 100%;
    min-height: 350px;
  }

  .featured-card .card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 35px;
  }

  .featured-card .card-badge {
    position: static;
    display: inline-block;
    width: fit-content;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--main-color), var(--light-color));
  }

  .featured-card .card-title {
    font-size: 28px;
  }

  .featured-card .card-description {
    font-size: 15px;
  }

  @media (max-width: 900px) {
    .featured-card {
      grid-column: span 1;
      grid-template-columns: 1fr;
    }

    .featured-card .card-image {
      min-height: 220px;
    }
  }

  @media (max-width: 480px) {
    .section-header h2 {
      font-size: 32px;
    }

    .cards-container {
      grid-template-columns: 1fr;
    }

    .card-footer {
      flex-direction: column;
      gap: 15px;
      align-items: flex-start;
    }
  }