html,
body {
    background-color: #fdfdfd;
}

#blogposts {
    padding: 30px 0;
}

.blog-head {
    padding-bottom: 10px;
}

.sblog-head {
    padding: 10px 0;
    font-size: 24px;
    font-weight: 700;
}

.blogside-card {
    padding: 20px;
}

.bsc-head {
    font-weight: 700;
    font-size: 18px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 7px !important;
    margin-bottom: 15px !important;
}

.side-product-body .product-title {
    font-size: 16px;
    font-weight: 700;
}

.side-product-body .price {
    font-size: 14px;
    font-weight: 700 !important;
}

.sp-viewall {
    color: #000 !important;
}

.blogside-card {
    margin: 0 0 20px 0 !important;
}

.blog-author .au-image {
    border-radius: 50%;
}

.blog-author .au-image img {
    border-radius: 50%;
    height: 70px;
    width: 70px;
}

.blog-author .au-name {
    padding-left: 10px;
    width: 80%;
}

.blog-author .au-name h5 {
    font-weight: 700;
    font-size: 18px;
}

.blog-author {
    background-color: #fff;
    padding: 20px;
    margin: 40px 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.post-comment {
    margin-bottom: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

.blog-detail-area {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

.comment-list .single-comment:last-child {
    border: 0;
}

.comment-list .single-comment {
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.single-comment h5 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 0px !important;
}

.comment-list {
    margin-top: 20px;
}

/* blog list page css */
.blog-section {
    padding: 60px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    position: relative;
}

.section-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.blog-tabs {
    border: none;
    margin-bottom: 2rem;
    background: white;
    border-radius: 0;
    padding: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
    display: flex;
    flex-wrap: nowrap;
}

.blog-tabs::-webkit-scrollbar {
    display: none;
}

.blog-tabs .nav-link {
    background: transparent;
    border: none;
    color: #6c757d;
    font-weight: 500;
    padding: 12px 24px;
    border-radius: 0;
    transition: all 0.3s ease;
    margin: 0 4px;
    white-space: nowrap;
    position: relative;
    flex-shrink: 0;
}

.blog-tabs .nav-link:hover {
    color: #495057;
    background: #f8f9fa;
}

.blog-tabs .nav-link.active {
    background: #d9352c;
    color: white;
    /* box-shadow: 0 4px 15px rgba(214, 48, 49, 0.4); */
}

.scroll-btn {
    display: none;
}

.tabs-container {
    position: relative;
}

.blog-card {
    background: white;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    border: none;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.blog-card-img {
    height: 200px;
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-img img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-category {
    display: inline-block;
    background: #d9352c;
    color: white;
    padding: 4px 12px;
    border-radius: 0;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.blog-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-excerpt {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid #f1f3f4;
}

.author-info {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #d9352c;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 500;
    font-size: 0.8rem;
    margin-right: 0.5rem;
}

.author-details {
    font-size: 0.8rem;
}

.author-name {
    font-weight: 500;
    color: #2c3e50;
    margin: 0;
}

.blog-date {
    color: #6c757d;
    font-size: 0.75rem;
}

.read-more {
    color: #d9352c;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #2d3436;
}

.tab-content {
    min-height: 600px;
}

/* Blog Cards Horizontal Scrolling */
.blog-cards-container {
    position: relative;
    overflow: hidden;
}

.blog-cards-scroll {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 1.5rem;
    padding: 20px 60px;
}

.blog-cards-scroll::-webkit-scrollbar {
    display: none;
}

.blog-card-wrapper {
    flex: 0 0 calc(25% - 1.125rem);
    min-width: 280px;
}

.cards-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: #d9352c;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.cards-nav-btn:hover {
    background: #d9352c;
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(214, 48, 49, 0.3);
}

.cards-nav-btn.prev {
    left: 10px;
}

.cards-nav-btn.next {
    right: 10px;
}

.cards-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.cards-nav-btn:disabled:hover {
    background: white;
    color: #d9352c;
    transform: translateY(-50%);
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .blog-card-content {
        padding: 1rem;
    }

    .blog-tabs {
        scrollbar-width: none;
        -ms-overflow-style: none;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        padding: 6px;
    }

    .blog-tabs::-webkit-scrollbar {
        display: none;
    }

    .blog-tabs .nav-link {
        padding: 10px 20px;
        font-size: 0.9rem;
        margin: 0 2px;
        flex-shrink: 0;
        min-width: auto;
    }

    /* Mobile Blog Cards Scrolling */
    .blog-cards-scroll {
        padding: 20px;
        -webkit-overflow-scrolling: touch;
    }

    .blog-card-wrapper {
        flex: 0 0 calc(50% - 0.75rem);
        min-width: 250px;
    }

    .cards-nav-btn {
        display: none;
    }

    .blog-detail-area {
        padding: 20px;
    }

    .post-comment {
        padding: 20px;
    }
}

/* Loading animation */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #d9352c;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* blog list page css */
.w-40 {
    width: 40%;
}

.w-60 {
    width: 60%;
}

.comment-author {
    display: flex;
    align-items: start;
}

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #d9352c;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 500;
    font-size: 0.8rem;
    margin-right: 10px;
}

.comment-detail {
    color: #444;
    font-size: 14px;

}

.comment-name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 0 !important;
}

.comment-author-details {
    font-size: 0.8rem;
    width: 100%;
}

.sidebarcard {
    background: white;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: none;
    border: 0 !important;
}

.side-product-body {
    margin-left: 10px;
}

@media (min-width: 768px) and (max-width: 991px) {
    .d-flex {
        flex-wrap: wrap;
    }

    .w-40 {
        width: 100%;
    }

    .w-60 {
        width: 100%;
    }

    .side-product-body {
        margin-left: 0;
    }

    .product-title {
        font-size: 14px !important;
        padding-top: 10px;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    ...
}