.blog-details-section .container {
    max-width: 1700px;
    /* Increased from default bootstrap container width */
}

.blog-post-content {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f2f6;
}

@media (max-width: 768px) {
    .blog-post-content {
        padding: 20px;
    }
}

.main-post-image {
    width: 100%;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.post-meta-details {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f2f6;
    color: #6c757d;
    font-size: 15px;
    flex-wrap: wrap;
}

.post-meta-details span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-meta-details i {
    color: #2d6a4f;
}

.post-content-body {
    color: #2c3e50;
    line-height: 1.8;
    font-size: 1.1rem;
}

.post-content-body h2,
.post-content-body h3 {
    color: #1a1a2e;
    font-weight: 700;
    margin-top: 35px;
    margin-bottom: 20px;
}

.post-content-body p {
    margin-bottom: 20px;
}

.post-content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
    display: block;
}

.post-content-body figure {
    margin: 20px 0;
    max-width: 100%;
}

.post-content-body figure.image {
    width: 100%;
}

.post-content-body figure.media {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.post-content-body figure.media oembed,
.post-content-body figure.media iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
}

.toc-wrapper {
    background: #ffffff;
    border: 1px solid #f1f2f6;
    border-radius: 20px;
    padding: 35px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.toc-title {
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: #1a1a2e;
    border: none;
}

.toc-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-body ul li {
    margin-bottom: 20px;
    position: relative;
    padding-left: 35px;
    line-height: 1.4;
}

.toc-body ul li::before {
    content: "\f101";
    font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free", "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: #f39c12;
    font-size: 1.2rem;
}

.toc-body ul li a {
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 1.15rem;
}

.toc-body ul li a:hover {
    color: #f39c12;
    padding-left: 5px;
}

/* Nested levels */
.toc-body ul ul {
    margin-top: 15px;
    margin-left: 20px;
}

.toc-body ul ul li {
    margin-bottom: 12px;
}

.toc-body ul ul li a {
    font-size: 1rem;
    color: #636e72;
}

/* Recent Posts Widget */
.recent-post-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

.recent-post-img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.recent-post-info h5 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 5px 0;
    line-height: 1.4;
}

.recent-post-info h5 a {
    color: #1a1a2e;
    text-decoration: none;
    transition: color 0.3s;
}

.recent-post-info h5 a:hover {
    color: #2d6a4f;
}

.recent-post-info .date {
    font-size: 13px;
    color: #6c757d;
}

.blog-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 100px;
    z-index: 10;
    align-self: flex-start;
    /* Ensure it doesn't stretch */
}

.page-wrapper {
    overflow: visible !important;
}

.sidebar-widget {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f2f6;
    margin-bottom: 30px;
}

/* Recommended Product Card */
.recommended-products-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 20px;
    text-align: center;
}

.recommended-product-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #f1f2f6;
    text-align: center;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    margin-bottom: 20px;
    display: none;
    /* Hidden by default for slider */
}

.recommended-product-card.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slider-container {
    position: relative;
}

.slider-nav {
    position: absolute;
    top: 40%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.slider-nav button {
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid #f1f2f6;
    border-radius: 50%;
    color: #636e72;
    cursor: pointer;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.slider-nav button:hover {
    background: #ff9f43;
    color: #fff;
    border-color: #ff9f43;
}

/* Adjust positions to leak out slightly like in image */
.slider-nav .prev {
    margin-left: -20px;
}

.slider-nav .next {
    margin-right: -20px;
}

.recommended-product-card img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    margin-bottom: 15px;
}

.recommended-product-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 4.2em;
    /* Ensure consistent height */
}

.recommended-product-card .price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ff4757;
    margin-bottom: 15px;
    display: block;
}

/* .recommended-product-card .btn-buy-now {
    display: block;
    width: 100%;
    padding: 12px;
    background: #ff9f43;
    color: var(--white-color, #ff0000ff);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s;
    border: 1px solid #ff9f43;
} */
/* 
.recommended-product-card .btn-buy-now:hover {
    background: #e67e22;
    color: var(--white-color, #ac0505ff);
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
} */

/* Inline Blog Product Card */
.blog-product-card-table {
    width: 100%;
    margin: 30px 0;
    background: #fff;
    border: 1px solid #f1f2f6;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    border-collapse: separate;
    border-spacing: 0;
}

.blog-product-card-table td {
    padding: 20px;
    vertical-align: middle;
}

.blog-product-card-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.blog-product-card-name {
    font-weight: 700;
    font-size: 1.2rem;
    color: #1a1a2e;
    margin-bottom: 5px;
    display: block;
    text-decoration: none;
}

.blog-product-card-price {
    color: #ff4757;
    font-weight: 700;
    font-size: 1.1rem;
}

.blog-product-card-btn {
    background: #f39c12;
    color: #fff !important;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none !important;
    font-weight: 700;
    white-space: nowrap;
    display: inline-block;
    transition: all 0.3s;
}

.blog-product-card-btn:hover {
    background: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(243, 156, 18, 0.3);
}

@media (max-width: 576px) {
    .blog-product-card-table td {
        padding: 15px 10px;
    }

    .blog-product-card-btn {
        padding: 8px 15px;
        font-size: 0.85rem;
    }
}