/*
 * la-page-content.css
 * Style cho nội dung bài viết / page content.
 * Dùng chung: trang lịch âm (partials/lich-am/page-content.php)
 *             và trang chi tiết bài viết (single.php)
 */

/* =============================================
   WRAPPER
   ============================================= */
.la-pc-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 24px 32px;
    border-top: 1px solid #f0ebe3;
}

/* =============================================
   TYPOGRAPHY
   ============================================= */
.la-pc-body h1,
.la-pc-body h2,
.la-pc-body h3,
.la-pc-body h4,
.la-pc-body h5,
.la-pc-body h6 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #362900;
    font-weight: 700;
    line-height: 1.35;
    margin-top: 1.75em;
    margin-bottom: .55em;
}

.la-pc-body h1 {
    font-size: 1.9rem;
    border-bottom: 2px solid #ffeeb8;
    padding-bottom: .45em;
}

.la-pc-body h2 {
    font-size: 1.45rem;
    padding-bottom: .3em;
    border-bottom: 1px solid #ffeeb8;
}

.la-pc-body h3 {
    font-size: 1.2rem;
    color: #b85c00;
}

.la-pc-body h4 {
    font-size: 1.05rem;
    color: #4c3600;
}

.la-pc-body p {
    color: #3d3200;
    font-size: 1rem;
    line-height: 1.9;
    margin-bottom: 1.2em;
}

/* =============================================
   LISTS
   ============================================= */
.la-pc-body ul,
.la-pc-body ol {
    padding-left: 1.75rem;
    margin-bottom: 1.2em;
}

.la-pc-body ul {
    list-style: none;
    padding-left: 0;
}

.la-pc-body ul > li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: .55rem;
    color: #3d3200;
    line-height: 1.8;
}

.la-pc-body ul > li::before {
    content: '';
    position: absolute;
    left: 0;
    top: .65em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #e65c00;
    flex-shrink: 0;
}

.la-pc-body ol {
    list-style: decimal;
}

.la-pc-body ol > li {
    margin-bottom: .55rem;
    color: #3d3200;
    line-height: 1.8;
    padding-left: .35rem;
}

.la-pc-body ol > li::marker {
    color: #e65c00;
    font-weight: 700;
}

/* =============================================
   LINKS
   ============================================= */
.la-pc-body a {
    color: #b85c00;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color .15s;
}

.la-pc-body a:hover {
    color: #8a3e00;
}

/* =============================================
   BLOCKQUOTE
   ============================================= */
.la-pc-body blockquote {
    border-left: 4px solid #e65c00;
    background: #fffbf0;
    margin: 2em 0;
    padding: 1.2em 1.5em;
    border-radius: 0 8px 8px 0;
}

.la-pc-body blockquote p {
    color: #6b4226;
    font-style: italic;
    margin-bottom: 0;
    font-size: 1.05rem;
}

/* =============================================
   INLINE ELEMENTS
   ============================================= */
.la-pc-body strong,
.la-pc-body b {
    color: #2c1e00;
    font-weight: 700;
}

.la-pc-body em,
.la-pc-body i {
    color: #5c4200;
}

.la-pc-body hr {
    border: none;
    border-top: 1px solid #ffeeb8;
    margin: 2.5em 0;
}

/* =============================================
   MEDIA – override inline width/height do WordPress tự sinh
   ============================================= */
.la-pc-body img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    display: block !important;
    border-radius: 10px;
    margin: 1.5em auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .07);
    float: none !important;
    clear: both !important;
    /* KHÔNG dùng object-fit: cover – sẽ crop chiều cao ảnh */
}

.la-pc-body figure,
.la-pc-body .wp-caption {
    width: 100% !important;
    max-width: 100% !important;
    margin: 2em auto !important;
    float: none !important;
    clear: both !important;
    display: block !important;
    /* KHÔNG dùng overflow: hidden – sẽ clip ảnh vượt container */
}

.la-pc-body figure img,
.la-pc-body .wp-caption img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    display: block !important;
    border-radius: 10px;
    margin: 0 auto !important;
}

.la-pc-body figcaption,
.la-pc-body .wp-caption-text {
    text-align: center;
    font-size: .85rem;
    color: #9ca3af;
    margin-top: .5em;
}

.la-pc-body iframe,
.la-pc-body video,
.la-pc-body embed {
    width: 100% !important;
    max-width: 100% !important;
    height: auto;
}

/* =============================================
   TABLE
   ============================================= */
.la-pc-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.75em 0;
    font-size: .95rem;
}

.la-pc-body table th {
    background: #fff3cd;
    color: #362900;
    font-weight: 700;
    padding: 10px 14px;
    border: 1px solid #ffeeb8;
    text-align: left;
}

.la-pc-body table td {
    padding: 9px 14px;
    border: 1px solid #ffeeb8;
    color: #3d3200;
    vertical-align: top;
}

.la-pc-body table tr:nth-child(even) td {
    background: #fffbf0;
}

/* =============================================
   CODE
   ============================================= */
.la-pc-body pre,
.la-pc-body code {
    font-family: 'Courier New', monospace;
    font-size: .9em;
}

.la-pc-body pre {
    background: #1f2937;
    color: #f9fafb;
    padding: 1.2em 1.5em;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5em 0;
}

.la-pc-body code:not(pre code) {
    background: #fff3cd;
    color: #b85c00;
    padding: 2px 6px;
    border-radius: 4px;
}

/* =============================================
   WP BLOCKS
   ============================================= */
.la-pc-body .wp-block-buttons,
.la-pc-body .wp-block-button {
    margin: 1.5em 0;
}

.la-pc-body .wp-block-button__link {
    display: inline-block;
    background: #e65c00;
    color: #fff;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s;
}

.la-pc-body .wp-block-button__link:hover {
    background: #b84a00;
    color: #fff;
}

.la-pc-body .wp-block-separator {
    border: none;
    border-top: 2px solid #ffeeb8;
    margin: 2.5em 0;
}

/* First element no top margin */
.la-pc-body > *:first-child,
.la-pc-body > .entry-content > *:first-child {
    margin-top: 0;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 640px) {
    .la-pc-wrap {
        padding: 32px 16px 24px;
    }

    .la-pc-body h1 { font-size: 1.5rem; }
    .la-pc-body h2 { font-size: 1.25rem; }
    .la-pc-body h3 { font-size: 1.1rem; }
}
