body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

.blog-header {
    background-color: #f1f5f9;
    padding: 4rem 0;
    margin-bottom: 3rem;
}

.blog-content {
    line-height: 1.8;
    font-size: 1.1rem;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
}

.author-card {
    border-radius: 12px;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.related-post-card {
    transition: transform 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.related-post-card:hover {
    transform: translateY(-5px);
}

.implementation-card {
    padding: 2rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.blog-categories-scroll {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.blog-categories-scroll::-webkit-scrollbar {
    display: none;
}

.category-pill {
    padding: 0.5rem 1rem;
    border: 1px solid #dee2e6;
    border-radius: 50px;
    background: white;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.category-pill:hover,
.category-pill.active {
    background: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

.category-arrow-btn {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-arrow-btn:hover {
    background: #f8f9fa;
}

.tablist-scroll {
    width: 100%;
    overflow-x: auto;
    background: #fff;
    padding-bottom: 0.5rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.tablist-scroll::-webkit-scrollbar {
    display: none;
}

.blog-tabs-list {
    display: flex;
    flex-wrap: nowrap;
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
    /* background: #000; */
    white-space: nowrap;
    gap: 0.5rem;
    justify-content: center;
    padding: 10px 0;
}

.blog-tab-item {
    flex: 0 0 auto;
}

.blog-tab-link {
    border-radius: 1.5rem;
    background: #f8f9fa;
    color: #222;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    margin: 0 0.1rem;
    border: none;
    transition: all 0.2s;
    outline: none;
    cursor: pointer;
    white-space: nowrap;
    min-width: 120px;
    text-align: center;
    font-size: 1rem;
    border: 1px solid #4f46e5;
}

.blog-tab-link.active {
    background: #4f46e5;
    color: #fff;
}

.blog-tab-link:not(.active):hover {
    background: #d7dee5;
    color: #4f46e5;
}

/* Add space for sticky header */
#blog-content h1,
#blog-content h2,
#blog-content h3 {
    scroll-margin-top: 110px;
}

@media (max-width: 991px) {
    #toc-sticky {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .tablist-scroll {
        padding-bottom: 0.5rem;
    }

    .blog-tabs-list {
        gap: 0.25rem;
    }

    .blog-tab-link {
        font-size: 0.95rem;
        padding: 0.5rem 0.75rem;
        min-width: 100px;
    }
}

@media (max-width: 576px) {
    .blog-tabs-list {
        gap: 0.15rem;
    }

    .blog-tab-link {
        font-size: 0.92rem;
        padding: 0.45rem 0.5rem;
        min-width: 90px;
    }
}

@media (max-width: 576px) {
    .nav-pills .nav-link {
        margin-bottom: 0.5rem;
    }

    .card-title {
        font-size: 1.1rem;
    }

    .lead {
        font-size: 1rem;
    }
}

@media (min-width: 768px) {
    .blog-tabs-list {
        justify-content: center;
    }
}

/* Pagination styling */
.pagination {
    display: flex;
    justify-content: center;
}

.page-item.active .page-link {
    background-color: #0099e5;
    border-color: #0099e5;
}

.page-link {
    color: #0099e5;
}

/* Blog title & meta responsive */
.blog-title {
    font-size: 2rem; /* default for desktop */
    line-height: 1.2;
}
.blog-meta {
    font-size: 1rem;
}

/* Tablet */
@media (max-width: 991.98px) {
    .blog-title {
        font-size: 1.75rem;
    }
    .blog-meta {
        font-size: 0.95rem;
    }
}

/* Mobile */
@media (max-width: 575.98px) {
    .blog-title {
        font-size: 1.4rem;
    }
    .blog-meta {
        font-size: 0.85rem;
    }
}
