/* ==========================================================================
   Single Post – breadcrumb banner + nội dung bài viết
   ========================================================================== */

/* ── Wrapper chính ──────────────────────────────────────────────────────── */
/* .single-post {
    padding: 60px 0 80px;
} */

/* ── Ảnh đại diện bài viết ──────────────────────────────────────────────── */
.post-thumbnail {
    margin-bottom: 2rem;
}

.post-thumbnail img {
    width: 100%;
    border-radius: 12px;
    display: block;
    object-fit: cover;
}

/* ── Entry content – nội dung bài viết ─────────────────────────────────── */
.entry-content {
    font-family: var(--font-main), sans-serif;
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-dark);
}

/* Tiêu đề */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    font-family: var(--font-main), sans-serif;
    font-weight: 700;
    color: var(--text-darker);
    margin: 2rem 0 0.75rem;
    line-height: 1.3;
}

.entry-content h1 { font-size: 2rem; }
.entry-content h2 { font-size: 1.65rem; }
.entry-content h3 { font-size: 1.4rem; }
.entry-content h4 { font-size: 1.2rem; }
.entry-content h5 { font-size: 1.05rem; }
.entry-content h6 { font-size: 0.95rem; }

/* Đoạn văn */
.entry-content p {
    margin-bottom: 1.25rem;
}

/* Liên kết */
.entry-content a {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.entry-content a:hover {
    color: var(--secondary-color);
}

/* Danh sách */
.entry-content ul,
.entry-content ol {
    margin: 0 0 1.25rem 1.5rem;
    padding: 0;
}

.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }

.entry-content li {
    margin-bottom: 0.4rem;
}

.entry-content li > ul,
.entry-content li > ol {
    margin-top: 0.4rem;
    margin-bottom: 0;
}

/* Ảnh trong nội dung */
.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 1.5rem auto;
}

/* Hình và chú thích (WordPress figure/figcaption) */
.entry-content figure {
    margin: 1.5rem 0;
}

.entry-content figcaption {
    text-align: center;
    font-size: 13px;
    color: #888;
    margin-top: 0.4rem;
}

/* Trích dẫn */
.entry-content blockquote {
    border-left: 4px solid var(--primary-color);
    background: var(--bg-soft);
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #555;
}

.entry-content blockquote p:last-child {
    margin-bottom: 0;
}

/* Phân cách */
.entry-content hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 2rem 0;
}

/* Code inline */
.entry-content code {
    background: #f4f4f4;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.88em;
    font-family: 'Courier New', Courier, monospace;
}

/* Khối code */
.entry-content pre {
    background: #1e1e1e;
    color: #d4d4d4;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-size: 0.88em;
    line-height: 1.6;
}

.entry-content pre code {
    background: none;
    border: none;
    padding: 0;
    color: inherit;
    font-size: inherit;
}

/* Bảng */
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 15px;
}

.entry-content th,
.entry-content td {
    border: 1px solid #ddd;
    padding: 10px 14px;
    text-align: left;
    vertical-align: top;
}

.entry-content th {
    background: var(--bg-soft);
    font-weight: 600;
    color: var(--secondary-color);
}

.entry-content tr:nth-child(even) td {
    background: #fafafa;
}

/* Chữ đậm / nghiêng */
.entry-content strong,
.entry-content b { font-weight: 700; }

.entry-content em,
.entry-content i { font-style: italic; }

/* WordPress alignment helpers */
.entry-content .alignleft  { float: left;  margin: 0 1.5rem 1rem 0; }
.entry-content .alignright { float: right; margin: 0 0 1rem 1.5rem; }
.entry-content .aligncenter { display: block; margin: 1rem auto; text-align: center; }
.entry-content .alignfull  { width: 100%; margin: 1.5rem 0; }

/* Clearfix cho float */
.entry-content::after {
    content: '';
    display: table;
    clear: both;
}

/* ==========================================================================
   Related Posts
   ========================================================================== */
.related-posts {
    margin-top: 60px;
    padding-top: 48px;
    border-top: 1px solid #e8e8e8;
}

.related-posts-title {
    font-family: var(--font-main), sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-darker);
    margin-bottom: 28px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
    /* .single-post {
        padding: 40px 0 60px;
    } */

    .entry-content {
        font-size: 16px;
    }

    .entry-content h1 { font-size: 1.6rem; }
    .entry-content h2 { font-size: 1.35rem; }
    .entry-content h3 { font-size: 1.15rem; }

    .entry-content .alignleft,
    .entry-content .alignright {
        float: none;
        margin: 1rem 0;
    }

    .entry-content table {
        display: block;
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    .entry-content {
        font-size: 15px;
    }

    .entry-content blockquote {
        padding: 0.75rem 1rem;
    }
}
