/**
 * Single Blog Post Styles
 *
 * @package TopTheme
 * @since 1.0.0
 */

/* Single Blog Wrapper */
.single-blog-wrapper {
    width: 100%;
    max-width: 100%;
    padding: 50px 0;
    min-height: 70vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    box-sizing: border-box;
}

/* Single Blog Container uses .container class from style.css (same as header) */

/* Content Wrapper - Flexbox for sidebar layout */
.single-blog-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 992px) {
    .single-blog-content-wrapper {
        flex-direction: row;
        align-items: flex-start;
        gap: 40px;
    }
}

/* Main Content */
.single-blog-main-content {
    flex: 1;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    order: 1;
}

/* Single Blog Post Article */
.single-blog-post {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 35px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-left: 0;
    margin-right: 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.single-blog-post::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007bff 0%, #FFB22C 50%, #007bff 100%);
}

/* Header */
.single-blog-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.single-blog-title {
    font-size: 32px;
    font-weight: 700;
    color: #000;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

@media (min-width: 768px) {
    .single-blog-title {
        font-size: 36px;
    }
}

.single-blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 14px;
    color: #666;
}

.single-blog-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.single-blog-meta a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.single-blog-meta a:hover {
    color: #0056b3;
}

/* Featured Image */
.single-blog-featured-image {
    margin: 0 -40px 35px -40px;
    text-align: center;
    overflow: hidden;
    width: calc(100% + 80px);
    box-sizing: border-box;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    position: relative;
}

.single-blog-image {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.single-blog-featured-image:hover .single-blog-image {
    transform: scale(1.02);
}

/* Excerpt Section - Different Background */
.single-blog-excerpt {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-right: 5px solid #007bff;
    padding: 25px 30px;
    margin-bottom: 35px;
    border-radius: 12px;
    font-size: 17px;
    line-height: 1.8;
    color: #333;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.1);
    position: relative;
    font-style: italic;
}

.single-blog-excerpt::before {
    content: '"';
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 60px;
    color: rgba(0, 123, 255, 0.1);
    font-family: serif;
    line-height: 1;
}

.single-blog-excerpt p {
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Table of Contents */
.single-blog-toc-wrapper {
    margin-bottom: 30px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.single-blog-toc-toggle {
    width: 100%;
    background: #f8f9fa;
    border: none;
    padding: 15px 20px;
    text-align: right;
    cursor: pointer;
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    transition: background-color 0.3s ease;
}

.single-blog-toc-toggle:hover {
    background: #e9ecef;
}

.single-blog-toc-toggle:focus {
    outline: 2px solid #007bff;
    outline-offset: -2px;
}

.toc-toggle-icon {
    display: inline-flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.single-blog-toc-wrapper.active .toc-toggle-icon {
    transform: rotate(180deg);
}

.toc-toggle-text {
    flex: 1;
    text-align: right;
}

.single-blog-toc {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.single-blog-toc-wrapper.active .single-blog-toc {
    max-height: 1000px;
    padding: 20px;
}

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

.toc-item {
    margin-bottom: 8px;
}

.toc-item:last-child {
    margin-bottom: 0;
}

.toc-link {
    display: block;
    padding: 8px 12px;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.toc-link:hover {
    background: #f8f9fa;
    color: #007bff;
    padding-right: 18px;
}

.toc-link.active {
    background: #007bff;
    color: #fff;
    font-weight: 600;
}

.toc-level-2 .toc-link {
    font-weight: 600;
}

.toc-level-3 .toc-link {
    padding-right: 30px;
    font-size: 13px;
}

.toc-level-4 .toc-link {
    padding-right: 45px;
    font-size: 12px;
}

.toc-sublist {
    list-style: none;
    margin: 8px 0 0 0;
    padding: 0;
}

/* Main Content */
.single-blog-content {
    font-size: 16px;
    line-height: 1.8;
    color: #303030;
    margin-bottom: 30px;
    text-align: justify;
}

/* Mobile styles for blog content */
@media (max-width: 767px) {
    .single-blog-content {
        font-size: 15px;
        line-height: 34px;
    }
}

.single-blog-content h2,
.single-blog-content h3,
.single-blog-content h4 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #000;
    font-weight: 700;
}

.single-blog-content h2 {
    font-size: 28px;
}

.single-blog-content h3 {
    font-size: 24px;
}

.single-blog-content h4 {
    font-size: 20px;
}

.single-blog-content p {
    margin-bottom: 15px;
}

.single-blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 20px 0;
}

.single-blog-content ul,
.single-blog-content ol {
    margin: 15px 0;
    padding-right: 30px;
}

.single-blog-content li {
    margin-bottom: 8px;
}

.single-blog-content a {
    color: #007bff;
    text-decoration: none;
}

.single-blog-content a:hover {
    text-decoration: underline;
}

.single-blog-content blockquote {
    border-right: 4px solid #007bff;
    padding: 15px 20px;
    margin: 20px 0;
    background: #f8f9fa;
    font-style: italic;
    border-radius: 4px;
}

/* Footer */
.single-blog-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.single-blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.tags-label {
    font-weight: 600;
    color: #666;
}

.tag-item {
    display: inline-block;
}

.tag-item a {
    display: inline-block;
    padding: 5px 12px;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 20px;
    font-size: 13px;
    transition: all 0.3s ease;
}

.tag-item a:hover {
    background: #007bff;
    color: #fff;
}

/* Comments Section */
.single-blog-comments {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 35px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-left: 0;
    margin-right: 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.single-blog-comments::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FFB22C 0%, #007bff 100%);
}

.single-blog-comments .comments-title {
    font-size: 26px;
    font-weight: 800;
    color: #212529;
    margin: 0 0 30px 0;
    padding-bottom: 20px;
    border-bottom: 3px solid #007bff;
    position: relative;
}

.single-blog-comments .comments-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #007bff 0%, #FFB22C 100%);
}

.single-blog-comments .comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.single-blog-comments .comment {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-right: 3px solid #007bff;
    position: relative;
}

.single-blog-comments .comment.bypostauthor {
    background: #e7f3ff;
    border-right-color: #0056b3;
}

.single-blog-comments .comment-awaiting-moderation {
    display: block;
    padding: 10px;
    background: #fff3cd;
    color: #856404;
    border-radius: 4px;
    margin: 10px 0;
    font-size: 13px;
    font-style: italic;
}

.single-blog-comments .comment-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.single-blog-comments .comment-author .avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #007bff;
}

.single-blog-comments .comment-author .fn {
    font-weight: 600;
    color: #000;
    font-style: normal;
    margin-left: 10px;
}

.single-blog-comments .comment-author .fn a {
    color: #000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.single-blog-comments .comment-author .fn a:hover {
    color: #007bff;
}

.single-blog-comments .comment-author .says {
    display: inline;
    margin: 0 5px;
    color: #666;
    font-style: normal;
}

.single-blog-comments .comment-metadata {
    margin-bottom: 10px;
    font-size: 13px;
    color: #666;
}

.single-blog-comments .comment-metadata {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.single-blog-comments .comment-metadata a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.single-blog-comments .comment-metadata a:hover {
    color: #0056b3;
}

.single-blog-comments .comment-metadata .edit-link {
    margin-right: 10px;
}

.single-blog-comments .comment-metadata .edit-link a {
    font-size: 12px;
    color: #666;
}

.single-blog-comments .comment-metadata .edit-link a:hover {
    color: #007bff;
}

.single-blog-comments .comment-content {
    color: #333;
    line-height: 1.8;
    margin-bottom: 10px;
}

.single-blog-comments .comment-content p {
    margin-bottom: 10px;
}

.single-blog-comments .comment-content p:last-child {
    margin-bottom: 0;
}

.single-blog-comments .reply {
    margin-top: 10px;
}

.single-blog-comments .reply a {
    display: inline-block;
    padding: 5px 15px;
    background: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 20px;
    font-size: 13px;
    transition: all 0.3s ease;
}

.single-blog-comments .reply a:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.single-blog-comments .children {
    list-style: none;
    margin: 20px 0 0 30px;
    padding: 0;
}

.single-blog-comments .children {
    list-style: none;
    margin: 20px 0 0 30px;
    padding: 0;
}

.single-blog-comments .children .comment {
    background: #fff;
    border-right-color: #28a745;
}

.single-blog-comments .comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.single-blog-comments .comment-list > .comment {
    margin-bottom: 30px;
}

.single-blog-comments .comment-list .children {
    margin-top: 20px;
    margin-right: 30px;
    margin-left: 0;
}

/* Comment Form */
.single-blog-comments #respond {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.single-blog-comments #respond .comment-reply-title {
    font-size: 20px;
    font-weight: 700;
    color: #000;
    margin: 0 0 20px 0;
}

.single-blog-comments #respond .comment-reply-title #cancel-comment-reply-link {
    font-size: 14px;
    font-weight: 400;
    color: #666;
    text-decoration: none;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.single-blog-comments #respond .comment-reply-title #cancel-comment-reply-link:hover {
    color: #007bff;
}

.single-blog-comments .comment-form-comment label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.single-blog-comments .comment-form-comment textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    min-height: 120px;
}

.single-blog-comments .comment-form-comment textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.single-blog-comments .comment-form-author,
.single-blog-comments .comment-form-email,
.single-blog-comments .comment-form-url {
    margin-bottom: 20px;
}

.single-blog-comments .comment-form-author label,
.single-blog-comments .comment-form-email label,
.single-blog-comments .comment-form-url label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.single-blog-comments .comment-form-author input,
.single-blog-comments .comment-form-email input,
.single-blog-comments .comment-form-url input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
}

.single-blog-comments .comment-form-author input:focus,
.single-blog-comments .comment-form-email input:focus,
.single-blog-comments .comment-form-url input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.single-blog-comments .form-submit {
    margin-top: 20px;
}

.single-blog-comments .form-submit input[type="submit"] {
    padding: 12px 30px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.single-blog-comments .form-submit input[type="submit"]:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Comments Pagination */
.single-blog-comments .comment-navigation {
    margin: 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.single-blog-comments .comment-navigation .nav-previous,
.single-blog-comments .comment-navigation .nav-next {
    flex: 1;
    min-width: 150px;
}

.single-blog-comments .comment-navigation .nav-previous a,
.single-blog-comments .comment-navigation .nav-next a {
    display: inline-block;
    padding: 10px 20px;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.single-blog-comments .comment-navigation .nav-previous a:hover,
.single-blog-comments .comment-navigation .nav-next a:hover {
    background: #007bff;
    color: #fff;
    transform: translateY(-2px);
}

.single-blog-comments .no-comments {
    padding: 20px;
    background: #fff3cd;
    color: #856404;
    border-radius: 8px;
    text-align: center;
    margin: 20px 0;
}

/* Related Posts */
.single-blog-related-posts {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-left: 0;
    margin-right: 0;
}

.single-blog-related-title {
    font-size: 24px;
    font-weight: 700;
    color: #000;
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #007bff;
}

.single-blog-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

/* Sidebar */
.single-blog-sidebar {
    width: 100%;
    order: 2;
}

@media (min-width: 992px) {
    .single-blog-sidebar {
        width: 300px;
        flex: 0 0 300px;
        flex-shrink: 0;
    }
}

.single-blog-sidebar .widget {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.single-blog-sidebar .widget-title {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
}

.single-blog-sidebar .single-blog-widget-title {
    font-size: 18px;
    font-weight: 700;
    color: #212529;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
    position: relative;
}

.single-blog-sidebar .single-blog-widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #007bff 0%, #FFB22C 100%);
}

/* Smooth Scroll for TOC Links */
html {
    scroll-behavior: smooth;
}

/* Table of Contents */
.single-blog-toc-wrapper {
    background: #fff;
    border-radius: 12px;
    margin: 25px 0 30px 0;
    border: 2px solid #f0f0f0;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.single-blog-toc-header {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    padding: 0;
    position: relative;
}

.single-blog-toc-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
}

.single-blog-toc-toggle {
    width: 100%;
    background: none;
    border: none;
    padding: 18px 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.single-blog-toc-toggle:hover,
.single-blog-toc-toggle:focus {
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

.single-blog-toc-toggle .toggle-icon {
    font-size: 16px;
    transition: transform 0.3s ease;
    margin-left: 12px;
    font-weight: bold;
}

.single-blog-toc-toggle[aria-expanded="true"] .toggle-icon {
    transform: rotate(180deg);
}

.single-blog-toc-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background: #fafafa;
}

.single-blog-toc-content[aria-hidden="false"] {
    max-height: 600px;
    padding: 10px 0;
}

.single-blog-toc-list {
    margin: 0;
    padding: 15px 25px;
    list-style: none;
}

.single-blog-toc-list li {
    margin-bottom: 6px;
    line-height: 1.5;
    position: relative;
}

.single-blog-toc-list li a {
    color: #495057;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    position: relative;
}

.single-blog-toc-list li a:hover,
.single-blog-toc-list li a:focus {
    color: #007bff;
    background: rgba(0, 123, 255, 0.1);
    text-decoration: none;
    transform: translateX(5px);
}

.single-blog-toc-list li a.active {
    color: #007bff;
    background: rgba(0, 123, 255, 0.15);
    font-weight: 600;
    border-right: 3px solid #007bff;
}

.single-blog-toc-list .toc-level-1 {
    font-weight: 700;
    margin-bottom: 12px;
    margin-top: 8px;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 12px;
}

.single-blog-toc-list .toc-level-1:first-child {
    margin-top: 0;
}

.single-blog-toc-list .toc-level-1 a {
    font-size: 16px;
    color: #212529;
    padding: 10px 15px;
}

.single-blog-toc-list .toc-level-2 {
    padding-right: 20px;
    font-weight: 500;
}

.single-blog-toc-list .toc-level-2 a {
    font-size: 15px;
}

.single-blog-toc-list .toc-level-3,
.single-blog-toc-list .toc-level-4,
.single-blog-toc-list .toc-level-5,
.single-blog-toc-list .toc-level-6 {
    padding-right: 35px;
    font-size: 13px;
    color: #6c757d;
}

.single-blog-toc-list .toc-level-3 a,
.single-blog-toc-list .toc-level-4 a,
.single-blog-toc-list .toc-level-5 a,
.single-blog-toc-list .toc-level-6 a {
    font-size: 13px;
    padding: 6px 12px;
}

/* Related Posts */
.single-blog-related-posts {
    background: #fff;
    border-radius: 12px;
    padding: 35px;
    margin-top: 45px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.related-posts-title {
    font-size: 26px;
    font-weight: 800;
    color: #212529;
    margin: 0 0 30px 0;
    padding-bottom: 20px;
    border-bottom: 3px solid #007bff;
    position: relative;
}

.related-posts-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #007bff 0%, #FFB22C 100%);
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

/* Import blog-post-card styles for related posts */
.related-posts-grid .blog-post-card {
    margin: 0;
}

.related-posts-grid .blog-post-image {
    height: 180px;
}

.related-posts-grid .blog-post-content {
    padding: 20px;
}

.related-posts-grid .blog-post-title {
    font-size: 16px;
    margin-bottom: 10px;
}

.related-posts-grid .blog-post-title a {
    color: #212529;
    transition: color 0.3s ease;
}

.related-posts-grid .blog-post-title a:hover {
    color: #007bff;
}

.related-posts-grid .blog-post-excerpt {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 15px;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

.related-posts-grid .blog-read-more {
    align-self: flex-start;
    margin-top: auto;
    padding: 8px 16px;
    font-size: 13px;
    background: #007bff;
    color: #fff;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.related-posts-grid .blog-read-more:hover {
    background: #0056b3;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .single-blog-wrapper {
        padding: 30px 0;
    }

    .single-blog-content-wrapper {
        gap: 25px;
    }

    .single-blog-post {
        padding: 25px;
        border-radius: 12px;
        margin-bottom: 25px;
    }

    .single-blog-featured-image {
        margin: 0 -25px 25px -25px;
        width: calc(100% + 50px);
        border-radius: 8px;
    }

    .single-blog-title {
        font-size: 28px;
    }

    .single-blog-excerpt {
        margin: 0 -25px 25px -25px;
        border-radius: 8px;
        padding: 20px 25px;
    }

    .single-blog-toc-wrapper {
        margin: 20px -25px 25px -25px;
        border-radius: 8px;
    }

    .single-blog-comments,
    .single-blog-related-posts {
        padding: 25px;
        border-radius: 12px;
        margin-bottom: 25px;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .related-posts-grid .blog-post-card {
        max-width: 100%;
    }
}

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

    .single-blog-featured-image {
        margin: 0 -20px 20px -20px;
        width: calc(100% + 40px);
        border-radius: 6px;
    }

    .single-blog-title {
        font-size: 24px;
        line-height: 1.3;
    }

    .single-blog-excerpt {
        margin: 0 -20px 20px -20px;
        padding: 18px 20px;
        font-size: 16px;
    }

    .single-blog-toc-wrapper {
        margin: 15px -20px 20px -20px;
    }

    .single-blog-comments,
    .single-blog-related-posts {
        padding: 20px;
        margin-bottom: 20px;
    }

    .related-posts-title {
        font-size: 22px;
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .single-blog-wrapper {
        padding: 20px 0;
    }

    .single-blog-post {
        padding: 15px;
        border-radius: 8px;
    }

    .single-blog-featured-image {
        margin: 0 -15px 15px -15px;
        width: calc(100% + 30px);
    }

    .single-blog-title {
        font-size: 22px;
    }

    .single-blog-excerpt {
        margin: 0 -15px 15px -15px;
        padding: 15px 18px;
        font-size: 15px;
    }

    .single-blog-toc-wrapper {
        margin: 10px -15px 15px -15px;
    }

    .single-blog-comments,
    .single-blog-related-posts {
        padding: 15px;
    }

    .related-posts-title {
        font-size: 20px;
    }
}

