/* off background Flatsome */

  /* Tắt nền Flatsome cho single post "chia-se" */
body.single-post.category-chia-se #wrapper,
body.single-post.category-chia-se .page-wrapper,
body.single-post.category-chia-se #main,
body.single-post.category-chia-se #content,
body.single-post.category-chia-se .ux-wrapper {
  background: linear-gradient(180deg, #FFFFFF 0%, #0DB04B14 100%) !important;


}


    .chiase-container {
        max-width: 966px;
        margin: 0 auto;        
        background: linear-gradient(180deg, #FFFFFF 0%, #0DB04B14 100%);
        padding: 50px;
        box-sizing: border-box;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);

    }
    
    .chiase-container img {
        width: 100%;
        aspect-ratio: 1 / 1;
        border-radius: 4px;
        
    }
    
    .chiase-header {
        margin-bottom: 30px;
        text-align: center;
        border-bottom: 2px solid #f0f0f0;
        padding-bottom: 20px;
    }
    
    .chiase-title {
        font-size: 2.5rem;
        color: #82604a;
        margin-bottom: 15px;
        font-family: 'Lexend Deca', sans-serif;
        line-height: 1.2;
    }
    
    .chiase-meta {
        color: #666;
        font-size: 14px;
        margin-bottom: 20px;
        display: flex;
        justify-content: center;
        gap: 20px;
        flex-wrap: wrap;
    }
    
    .chiase-meta span {
        display: flex;
        align-items: center;
        gap: 5px;
    }
    
    .chiase-featured-image {
        margin-bottom: 30px;
        text-align: center;
    }
    
    .chiase-featured-image img {
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }
    
    .chiase-content {
        line-height: 1.8;
        font-size: 16px;
    }
    
    .chiase-content h2,
    .chiase-content h3 {
        color: #82604a;
        margin-top: 35px;
        margin-bottom: 20px;
        border-left: 4px solid #82604a;
        padding-left: 15px;
    }
    
    .chiase-content h2 {
        font-size: 1.8rem;
    }
    
    .chiase-content h3 {
        font-size: 1.5rem;
    }
    
    .chiase-content p {
        margin-bottom: 18px;
        text-align: justify;
    }
    
    .chiase-content blockquote {
        background: #f8f8f8;
        border-left: 4px solid #82604a;
        padding: 20px;
        margin: 25px 0;
        font-style: italic;
        border-radius: 0 8px 8px 0;
    }
    
    .chiase-footer {
        margin-top: 40px;
        padding-top: 20px;
        border-top: 1px solid #eee;
    }
    
    .chiase-tags {
        margin-bottom: 15px;
    }
    
    .chiase-tags a {
        background: #f0f0f0;
        color: #666;
        padding: 5px 12px;
        border-radius: 15px;
        text-decoration: none;
        font-size: 12px;
        margin-right: 8px;
        margin-bottom: 5px;
        display: inline-block;
        transition: all 0.3s ease;
    }
    
    .chiase-tags a:hover {
        background: #82604a;
        color: white;
    }
    
    .related-chiase {
        margin-top: 30px;
    }
    
    .related-chiase h3 {
        color: #82604a;
        margin-bottom: 25px;
        text-align: center;
        position: relative;
        padding-bottom: 10px;
    }
    
    .related-chiase h3:after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 2px;
        background: #82604a;
    }
    
    .related-posts-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
    
    .related-post {
        background: white;
        border-radius: 8px;
        padding: 20px;
        border: 1px solid #f0f0f0;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .related-post:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    }
    
    .related-post h4 {
        margin: 0 0 10px 0;
        font-size: 1.1rem;
    }
    
    .related-post h4 a {
        color: #82604a;
        text-decoration: none;
        transition: color 0.3s ease;
    }
    
    .related-post h4 a:hover {
        color: #5d4335;
    }
    
    .related-post p {
        margin: 0;
        color: #666;
        font-size: 14px;
        line-height: 1.5;
    }
    
    .related-post-meta {
        font-size: 12px;
        color: #999;
        margin-top: 10px;
    }

.related-post-thumbnail {
    width: 100% !important;
    aspect-ratio: 1 / 1; /* khung vuông */
    overflow: hidden; /* cắt phần ảnh thừa */
    border-radius: 4px;
    background: linear-gradient(135deg, #0DB04B26 0%, #61CE7033 100%);
}

.related-post-thumbnail img {
    width: 100% !important;
    height: 100%;
    object-fit: cover; /* cắt đều, không méo */
    display: block;
}

    
    /* Custom HTML Post Block */
    .custom-html-post {
        margin-top: 30px;
        padding: 25px;
        background: linear-gradient(135deg, #f8f9fa, #e9ecef);
        border-radius: 8px;
        border: 1px solid #dee2e6;
        position: relative;
        overflow: hidden;
    }
    
    .custom-html-post::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #82604a, #a67c00);
    }

    .chiase-tuvan {
        margin-top: 40px;
    }

    
    .cta-block {
        text-align: center;
    }
    
    .cta-block h4 {
        color: #82604a;
        margin: 0 0 10px 0;
        font-size: 1.3rem;
    }
    
    .cta-block p {
        color: #666;
        margin: 0 0 20px 0;
        font-size: 15px;
    }
    
    .social-share {
        display: flex;
        justify-content: center;
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .share-btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 10px 20px;
        border-radius: 25px;
        text-decoration: none;
        font-weight: 500;
        font-size: 14px;
        transition: all 0.3s ease;
        border: 2px solid transparent;
    }
    
    .share-btn.facebook {
        background: #1877f2;
        color: white;
    }
    
    .share-btn.facebook:hover {
        background: white;
        color: #1877f2;
        border-color: #1877f2;
        transform: translateY(-2px);
    }
    
    .share-btn.threads {
        background: #000;
        color: white;
    }
    
    .share-btn.threads:hover {
        background: white;
        color: #000;
        border-color: #000;
        transform: translateY(-2px);
    }
    
    /* Custom HTML Post - Responsive */
    @media (max-width: 768px) {
        .custom-html-post {
            padding: 20px 15px;
            margin-top: 25px;
        }
        
        .social-share {
            flex-direction: column;
            align-items: center;
        }
        
        .share-btn {
            width: 200px;
            justify-content: center;
        }
    }
    
    /* Responsive */
    @media (max-width: 768px) {
        .chiase-container {
            padding: 30px 20px;
            margin: 0 15px;
        }
        
        .chiase-title {
            font-size: 2rem;
        }
        
        .chiase-meta {
            flex-direction: column;
            gap: 10px;
        }
        
        .related-posts-grid {
            grid-template-columns: 1fr;
        }
    }
    
    @media (max-width: 480px) {
        .chiase-container {
            padding: 20px 15px;
        }
        
        .chiase-title {
            font-size: 1.5rem;
        }
        
        .chiase-content {
            font-size: 15px;
        }
    }