.blog-search input[type="search"]:focus {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}
/* Pagination wrapper */
#blog-pagination {
    display: flex;
    gap: 0.5rem;
}

/* Link & span */
#blog-pagination a.page-numbers,
#blog-pagination span.page-numbers {
    display: flex;
    height: 2.5rem;
    width: 2.5rem;
    color: rgb(95 108 123);
    border-color: rgb(229 231 235);
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, -webkit-text-decoration-color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
    border-width: 1px;
    border-radius: 0.5rem;
    justify-content: center;
    align-items: center;
}

/* Hover */
#blog-pagination a.page-numbers:hover {
    background-image: linear-gradient(135deg, #c95eb7 0%, #81356f 100%);
    color: #fff;
}

/* Active */
#blog-pagination span.page-numbers.current {
    background-image: linear-gradient(135deg, #c95eb7 0%, #81356f 100%);
    color: #fff;
}
/* ===== POST CONTENT ===== */
.post-content {
    font-size: 18px;
    line-height: 1.75;
    color: #3a4252;
}

/* Dark mode (nếu dùng class dark) */
.dark .post-content {
    color: #d1d5db;
}

/* Headings */
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    font-weight: 700;
    color: #111318;
    line-height: 1.3;
    margin: 2.5rem 0 1.25rem;
}
.post-content h1:first-child,
.post-content h2:first-child,
.post-content h3:first-child,
.post-content h4:first-child,
.post-content h5:first-child,
.post-content h6:first-child {
   margin-top: 0;
}

.dark .post-content h1,
.dark .post-content h2,
.dark .post-content h3,
.dark .post-content h4,
.dark .post-content h5,
.dark .post-content h6 {
    color: #ffffff;
}

.post-content h1 { font-size: 2.5rem; }
.post-content h2 { font-size: 2rem; }
.post-content h3 { font-size: 1.5rem; }
.post-content h4 { font-size: 1.25rem; }

/* Paragraph */
.post-content p {
    margin-bottom: 1.25rem;
}

/* Links */
.post-content a {
    color: var(--color-brand-pink, #c95eb7);
    font-weight: 600;
    text-decoration: none;
}

.post-content a:hover {
    text-decoration: underline;
}

/* Images */
.post-content img {
    margin: 2rem auto;
    border-radius: 12px;
    max-width: 100%;
    height: auto;
}

/* Lists */
.post-content ul,
.post-content ol {
    padding-left: 1.5rem;
    margin: 1.5rem 0;
}

.post-content ul li {
    list-style: disc;
    margin-bottom: 0.5rem;
}

.post-content ol li {
    list-style: decimal;
    margin-bottom: 0.5rem;
}

/* Blockquote */
.post-content blockquote {
    margin: 2rem 0;
    padding: 1.25rem 1.5rem;
    border-left: 4px solid #c95eb7;
    background: #faf5fb;
    font-style: italic;
    color: #4b5563;
    border-radius: 0 8px 8px 0;
}

.dark .post-content blockquote {
    background: #2a0e1f;
    color: #d1d5db;
}

/* Strong */
.post-content strong {
    color: #111318;
    font-weight: 700;
}

.dark .post-content strong {
    color: #ffffff;
}
/* ===== TABLE WRAPPER ===== */
.post-content .wp-block-table{
    margin: 2rem 0;
}
.post-content .wp-block-table,
.post-content table {
    display: block;
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-size: 14px;
    overflow-x: auto;
    --webkit-overflow-scrolling: touch;
}
.dark .post-content .wp-block-table{
    background: #1f2937;
    border: 1px solid #374151;
}
.post-content .wp-block-table table{
    white-space: nowrap;
}
/* Desktop giữ nguyên table */
@media (min-width: 768px) {
    .post-content table {
        display: table;
    }
}
/* ===== TABLE HEAD ===== */
.post-content .wp-block-table thead,
.post-content thead {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.post-content .wp-block-table th,
.post-content th {
    padding: 16px 24px;
    text-align: left;
    font-weight: 700;
    color: #111318;
    white-space: nowrap;
}

/* ===== TABLE BODY ===== */
.post-content .wp-block-table tbody tr,
.post-content tbody tr {
    transition: background-color 0.25s ease;
}

.post-content .wp-block-table tbody tr:hover,
.post-content tbody tr:hover {
    background: #f9fafb;
}

.post-content .wp-block-table td,
.post-content td {
    padding: 16px 24px;
    color: #6b7280;
    vertical-align: middle;
}

/* Divider */
.post-content .wp-block-table td,
.post-content .wp-block-table th,
.post-content .wp-block-table tbody tr + tr td,
.post-content tbody tr + tr td {
    border-bottom: 1px solid #e5e7eb;
    border-top: none ;
    border-left: none ;
    border-right: none ;
}

/* ===== EMPHASIS ROW (AI Dynamic Pricing) ===== */
.post-content tbody tr:last-child {
    background: rgba(201, 94, 183, 0.08);
}

.dark .post-content tbody tr:last-child {
    background: rgba(201, 94, 183, 0.12);
}

.post-content tbody tr:last-child:hover {
    background: rgba(201, 94, 183, 0.12);
}

.post-content tbody tr:last-child td {
    color: #111318;
}

.dark .post-content tbody tr:last-child td {
    color: #e5e7eb;
}
/* ===== TABLE CAPTION ===== */
.post-content caption {
    caption-side: bottom;
    text-align: left;
    padding: 12px 4px 0;
    font-size: 13px;
    font-style: italic;
    color: #6b7280;
}

.dark .post-content caption {
    color: #9ca3af;
}
/* ===== IFRAME BASE ===== */
.post-content iframe {
    display: block;
    max-width: 100%;
    width: 100%;
    border: 0;
}

.post-content .iframe-wrap,
.post-content .wp-block-embed {
    position: relative;
    overflow: hidden;
}

/* Iframe inside wrapper */
.post-content .iframe-wrap iframe,
.post-content .wp-block-embed iframe {
    width: 100%;
    height: auto;
    object-fit: cover;
}
.post-content .wp-block-image.size-full{
    height: auto;
}
.toc-link.toc-active {
    background-color: rgb(252, 238, 249);
    color: var(--color-brand-wine, #6366f1);
}
.dark .toc-link.toc-active {
    background-color: rgba(168, 85, 247, 0.2);
}
