.post-detail-wrapper {
    max-width: 100%;
}

.post-detail-wrapper .post-header {
    margin-bottom: 30px;
}

.post-detail-wrapper .post-header .post-title {
    font-size: 2.2em;
    margin-bottom: 15px;
    line-height: 1.3;
}

.post-detail-wrapper .post-header .post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.post-detail-wrapper .post-header .post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-detail-wrapper .post-header .post-meta .post-category {
    color: #da0014;
    font-weight: 600;
}

.post-detail-wrapper .post-header .post-meta .post-category a {
    color: #da0014;
    text-decoration: none;
}

.post-detail-wrapper .post-header .post-meta .post-category a:hover {
    text-decoration: underline;
}

.post-detail-wrapper .post-header .post-meta .post-tags a {
    display: inline-block;
    padding: 2px 10px;
    margin: 0 3px;
    background: #f5f5f5;
    border-radius: 3px;
    font-size: 12px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-detail-wrapper .post-header .post-meta .post-tags a:hover {
    background: #da0014;
    color: #fff;
}

.post-detail-wrapper .post-featured-image {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.post-detail-wrapper .post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.post-detail-wrapper .post-content {
    font-size: 1em;
    line-height: 1.8;
    color: #333;
}

.post-detail-wrapper .post-content h2 {
    font-size: 1.6em;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #222;
}

.post-detail-wrapper .post-content h3 {
    font-size: 1.4em;
    margin-top: 25px;
    margin-bottom: 12px;
    color: #222;
}

.post-detail-wrapper .post-content h4 {
    font-size: 1.2em;
    margin-top: 20px;
    margin-bottom: 10px;
    color: #222;
}

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

.post-detail-wrapper .post-content ul,
.post-detail-wrapper .post-content ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.post-detail-wrapper .post-content ul li,
.post-detail-wrapper .post-content ol li {
    margin-bottom: 8px;
}

.post-detail-wrapper .post-content blockquote {
    margin: 25px 0;
    padding: 20px 30px;
    border-left: 4px solid #da0014;
    background: #f9f9f9;
    font-style: italic;
    color: #555;
}

.post-detail-wrapper .post-content blockquote p {
    margin-bottom: 0;
}

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

.post-detail-wrapper .post-content .wp-caption {
    max-width: 100%;
    margin: 20px 0;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 4px;
}

.post-detail-wrapper .post-content .wp-caption img {
    margin: 0;
    display: block;
}

.post-detail-wrapper .post-content .wp-caption .wp-caption-text {
    margin-top: 8px;
    font-size: 14px;
    color: #666;
    text-align: center;
}

.post-detail-wrapper .post-content table {
    width: 100%;
    margin-bottom: 20px;
    border-collapse: collapse;
}

.post-detail-wrapper .post-content table th,
.post-detail-wrapper .post-content table td {
    padding: 10px 15px;
    border: 1px solid #ddd;
}

.post-detail-wrapper .post-content table th {
    background: #f5f5f5;
    font-weight: 600;
}

.post-detail-wrapper .post-content .highlight {
    background: #fff3cd;
    padding: 2px 5px;
    border-radius: 3px;
}

.post-detail-wrapper .post-navigation {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.post-detail-wrapper .post-navigation .nav-link {
    flex: 1;
    min-width: 200px;
    padding: 15px 20px;
    background: #f9f9f9;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.post-detail-wrapper .post-navigation .nav-link:hover {
    background: #da0014;
    color: #fff;
}

.post-detail-wrapper .post-navigation .nav-link .nav-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 5px;
}

.post-detail-wrapper .post-navigation .nav-link:hover .nav-label {
    color: rgba(255, 255, 255, 0.7);
}

.post-detail-wrapper .post-navigation .nav-link .nav-title {
    font-weight: 600;
}

.post-detail-wrapper .post-navigation .nav-link.next-link {
    text-align: right;
}

.post-detail-wrapper .post-navigation .nav-link.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.post-detail-wrapper .post-navigation .nav-link.disabled:hover {
    background: #f9f9f9;
    color: #333;
}

.post-detail-wrapper .post-share {
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 0;
    border-top: 1px solid #eee;
}

.post-detail-wrapper .post-share .share-label {
    font-weight: 600;
    color: #333;
}

.post-detail-wrapper .post-share .share-buttons {
    display: flex;
    gap: 10px;
}

.post-detail-wrapper .post-share .share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 18px;
}

.post-detail-wrapper .post-share .share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.post-detail-wrapper .post-share .share-btn.facebook {
    background: #3b5998;
}

.post-detail-wrapper .post-share .share-btn.twitter {
    background: #1da1f2;
}

.post-detail-wrapper .post-share .share-btn.whatsapp {
    background: #25d366;
}

.post-detail-wrapper .post-share .share-btn.telegram {
    background: #0088cc;
}

.post-detail-wrapper .post-share .share-btn.linkedin {
    background: #0077b5;
}

.post-detail-wrapper .related-posts {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.post-detail-wrapper .related-posts .related-title {
    font-size: 1.6em;
    margin-bottom: 25px;
    color: #222;
}

.post-detail-wrapper .related-posts .related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.post-detail-wrapper .related-posts .related-item {
    /* background: #fff; */
    /* border-radius: 6px; */
    border: 0.1rem solid #e0e0e0;
    overflow: hidden;
    transition: all 0.3s ease;
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); */
}

.post-detail-wrapper .related-posts .related-item:hover {
    transform: translateY(-2px);
    /* box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); */
}

.post-detail-wrapper .related-posts .related-item .related-thumb {
    position: relative;
    padding-bottom: 60%;
    overflow: hidden;
}

.post-detail-wrapper .related-posts .related-item .related-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-detail-wrapper .related-posts .related-item:hover .related-thumb img {
    transform: scale(1.05);
}

.post-detail-wrapper .related-posts .related-item .related-body {
    padding: 15px 20px 20px;
}

.post-detail-wrapper
    .related-posts
    .related-item
    .related-body
    .related-title-link {
    display: block;
    font-size: 1.1em;
    font-weight: 600;
    color: #222;
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-detail-wrapper
    .related-posts
    .related-item
    .related-body
    .related-title-link:hover {
    color: #da0014;
}

.post-detail-wrapper .related-posts .related-item .related-body .related-date {
    display: block;
    font-size: 13px;
    color: #999;
    margin-top: 8px;
}

.blog-layout-wrap {
    display: flex !important;
    align-items: flex-start;
    gap: 40px;
}

.blog-layout-wrap .blog-content-area {
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0;
}

.blog-layout-wrap .blog-sidebar-area {
    flex: 0 0 280px !important;
    width: 280px !important;
    float: none !important;
    margin: 0 !important;
}

.search-empty {
    grid-column: 1 / -1;
    padding: 30px;
}

/* Comments Section */
.comments-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.comments-section .comments-title {
    font-size: 1.6em;
    margin-bottom: 25px;
    color: #222;
}

.comments-section .comment-list {
    list-style: none;
    padding: 0;
}

.comments-section .comment-list .comment {
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

.comments-section .comment-list .comment:last-child {
    border-bottom: none;
}

.comments-section .comment-list .comment .comment-author {
    font-weight: 600;
    color: #222;
}

.comments-section .comment-list .comment .comment-date {
    font-size: 13px;
    color: #999;
    margin-left: 10px;
}

.comments-section .comment-list .comment .comment-text {
    margin-top: 8px;
    color: #555;
    line-height: 1.6;
}

.comments-section .comment-form {
    margin-top: 30px;
}

.comments-section .comment-form .form-group {
    margin-bottom: 20px;
}

.comments-section .comment-form .form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.comments-section .comment-form .form-group input,
.comments-section .comment-form .form-group textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    /* border-radius: 4px; */
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.comments-section .comment-form .form-group input:focus,
.comments-section .comment-form .form-group textarea:focus {
    border-color: #da0014;
    outline: none;
}

.comments-section .comment-form .form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.comments-section .comment-form .submit-btn {
    padding: 12px 30px;
    background: #da0014;
    color: #fff;
    border: none;
    /* border-radius: 4px; */
    font-size: 1em;
    /* font-weight: 600; */
    cursor: pointer;
    transition: background 0.3s ease;
}

.comments-section .comment-form .submit-btn:hover {
    background: #da0014;
}

/* Pagination for comments */
.pagination-wrap {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination-wrap .pagination {
    margin: 0;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
}

.pagination-wrap .pagination .page-item {
    display: inline-block;
}

.pagination-wrap .pagination .page-link {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    background: #fff;
    min-width: 34px;
    text-align: center;
    font-size: 14px;
}

.pagination-wrap .pagination .page-link:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.pagination-wrap .pagination .active .page-link {
    background: #da0014;
    border-color: #da0014;
    color: #fff;
}

.pagination-wrap .pagination .active .page-link:hover {
    background: #da0014;
    border-color: #da0014;
}

.pagination-wrap .pagination .disabled .page-link {
    color: #999;
    cursor: not-allowed;
    opacity: 0.6;
}

@media (max-width: 992px) {
    .post-detail-wrapper .related-posts .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-layout-wrap {
        display: block !important;
    }

    .blog-layout-wrap .blog-sidebar-area {
        width: 100% !important;
        margin-top: 40px !important;
    }

    .post-detail-wrapper .post-header .post-title {
        font-size: 1.8em;
    }

    .post-detail-wrapper .post-header .post-meta {
        flex-direction: column;
        gap: 10px;
    }

    .post-detail-wrapper .post-navigation {
        flex-direction: column;
    }

    .post-detail-wrapper .post-navigation .nav-link {
        text-align: center !important;
    }

    .post-detail-wrapper .related-posts .related-grid {
        grid-template-columns: 1fr;
    }

    .post-detail-wrapper .post-share {
        flex-wrap: wrap;
    }

    .post-detail-wrapper .post-content {
        font-size: 15px;
    }

    .post-detail-wrapper .post-content blockquote {
        padding: 15px 20px;
    }
}
