/* XM Thailand - Complete Brand Styles */
/* Import Thai fonts */
@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700;800;900&display=swap');

/* Global reset */
body.page, body.single, body {
    font-family: 'Prompt', 'Sukhumvit Set', 'Noto Sans Thai', sans-serif !important;
    color: #333 !important;
    line-height: 1.8 !important;
    background: #f8f9fb !important;
}

/* HERO / PAGE HEADER */
body .wp-site-blocks > header,
body .entry-header {
    background: linear-gradient(135deg, #0a1628 0%, #0d2a3a 50%, #0a1628 100%) !important;
    color: #fff !important;
    padding: 60px 0 !important;
    text-align: center !important;
}
body .entry-header h1,
body .wp-site-blocks .entry-title {
    font-size: 38px !important;
    font-weight: 800 !important;
    color: #fff !important;
    margin: 0 !important;
    text-align: center !important;
}

/* MAIN CONTENT AREA - Card Style */
body .entry-content,
body .wp-block-post-content {
    max-width: 1100px !important;
    margin: 30px auto !important;
    padding: 50px !important;
    background: #fff !important;
    border-radius: 20px !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08) !important;
}

/* HEADINGS */
body .entry-content h2,
body .wp-block-post-content h2 {
    color: #0a1628 !important;
    font-size: 30px !important;
    font-weight: 800 !important;
    margin: 40px 0 20px !important;
    padding-bottom: 12px !important;
    border-bottom: 4px solid #0d7377 !important;
}
body .entry-content h3,
body .wp-block-post-content h3 {
    color: #0d7377 !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    margin-top: 30px !important;
    margin-bottom: 15px !important;
}
body .entry-content h4,
body .wp-block-post-content h4 {
    color: #0a1628 !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    margin-top: 25px !important;
    margin-bottom: 12px !important;
}

/* PARAGRAPHS */
body .entry-content p,
body .wp-block-post-content p {
    font-size: 16px !important;
    color: #444 !important;
    margin-bottom: 16px !important;
    line-height: 1.8 !important;
}

/* LISTS */
body .entry-content ul,
body .entry-content ol,
body .wp-block-post-content ul,
body .wp-block-post-content ol {
    padding-left: 28px !important;
    margin-bottom: 20px !important;
}
body .entry-content li,
body .wp-block-post-content li {
    font-size: 15px !important;
    color: #444 !important;
    margin-bottom: 8px !important;
    line-height: 1.7 !important;
}
body .entry-content li::marker,
body .wp-block-post-content li::marker {
    color: #0d7377 !important;
}

/* LINKS */
body .entry-content a,
body .wp-block-post-content a {
    color: #0d7377 !important;
    font-weight: 600 !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
}
body .entry-content a:hover,
body .wp-block-post-content a:hover {
    color: #085c5f !important;
}

/* TABLES */
body .entry-content table,
body .wp-block-post-content table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 25px 0 !important;
    background: #f8f9fb !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06) !important;
}
body .entry-content th,
body .wp-block-post-content th {
    background: #0a1628 !important;
    color: #fff !important;
    padding: 15px 18px !important;
    text-align: center !important;
    font-weight: 700 !important;
    font-size: 15px !important;
}
body .entry-content td,
body .wp-block-post-content td {
    padding: 13px 18px !important;
    text-align: center !important;
    border-bottom: 1px solid #e0e0e0 !important;
    font-size: 15px !important;
}
body .entry-content tr:last-child td,
body .wp-block-post-content tr:last-child td {
    border-bottom: none !important;
}
body .entry-content tr:hover td,
body .wp-block-post-content tr:hover td {
    background: #e8f4f4 !important;
}
body .entry-content .highlight,
body .wp-block-post-content .highlight {
    color: #0d7377 !important;
    font-weight: 700 !important;
}

/* BUTTONS */
body .entry-content .wp-block-button__link,
body .entry-content a.wp-block-button__link {
    background: #0d7377 !important;
    color: #fff !important;
    border-radius: 50px !important;
    padding: 14px 36px !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: all 0.3s !important;
}
body .entry-content .wp-block-button__link:hover {
    background: #0a5c5f !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(13,115,119,0.3) !important;
}

/* CALLOUT BOX */
body .entry-content .callout,
body .wp-block-post-content .callout {
    background: linear-gradient(135deg, #e8f4f4, #f0f8f8) !important;
    border-left: 4px solid #0d7377 !important;
    padding: 20px 25px !important;
    border-radius: 8px !important;
    margin: 20px 0 !important;
}

/* QUOTE / INFO BOX */
body .entry-content blockquote,
body .wp-block-post-content blockquote {
    border-left: 4px solid #0d7377 !important;
    margin: 20px 0 !important;
    padding: 15px 20px !important;
    background: #f8f9fb !important;
    font-style: italic !important;
}

/* NAVIGATION FIX - make page list in nav look nice */
.wp-block-page-list .wp-block-pages-list__item {
    padding: 4px 0 !important;
}
.wp-block-page-list .current-menu-item a {
    color: #0d7377 !important;
    font-weight: 700 !important;
}

/* ENSURE responsive content area */
@media (max-width: 768px) {
    body .entry-content,
    body .wp-block-post-content {
        padding: 25px 18px !important;
        margin: 15px 10px !important;
    }
    body .entry-header h1,
    body .wp-site-blocks .entry-title {
        font-size: 28px !important;
        padding: 0 15px !important;
    }
}


* Twenty Twenty-Five actual structure fixes */
.wp-site-blocks > .wp-block-template-part:first-child {
    display: none !important;
}

/* Style the page/post title area */
.wp-site-blocks .wp-block-post-title {
    background: linear-gradient(135deg, #0a1628 0%, #0d2a3a 50%, #0a1628 100%) !important;
    color: #fff !important;
    font-size: 38px !important;
    font-weight: 800 !important;
    padding: 60px 20px !important;
    text-align: center !important;
    margin: 0 auto !important;
    max-width: 100% !important;
    line-height: 1.3 !important;
}

/* Ensure entry content looks good */
.entry-content, .wp-block-post-content {
    max-width: 1100px !important;
    margin: 30px auto !important;
    padding: 50px !important;
    background: #fff !important;
    border-radius: 20px !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08) !important;
}

/* Style the navigation to XM brand */
.wp-block-template-part .wp-block-navigation {
    background: #0a1628 !important;
    padding: 10px 20px !important;
}
.wp-block-template-part .wp-block-navigation a {
    color: #ccc !important;
    font-size: 14px !important;
}
.wp-block-template-part .wp-block-navigation a:hover {
    color: #0d7377 !important;
}

/* Hide default header site title */
.wp-block-site-title {
    color: #0d7377 !important;
    font-size: 22px !important;
    font-weight: 900 !important;
}
/* ============================================
   ENHANCED SUBPAGE STYLES - clxm.net
   Added: 2026-05-06
   ============================================ */

/* --- PAGE HEADER / TITLE AREA (Enhanced) --- */
body .wp-site-blocks > .wp-block-post-title,
body.page .wp-block-post-title,
body.single .wp-block-post-title,
body .entry-header {
    background: linear-gradient(135deg, #0a1628 0%, #0d2a3a 40%, #0d7377 100%) !important;
    padding: 80px 20px !important;
    text-align: center !important;
    position: relative !important;
    overflow: hidden !important;
}

/* Decorative overlay on header */
body .wp-site-blocks > .wp-block-post-title::before,
body.page .wp-block-post-title::before,
body.single .wp-block-post-title::before {
    content: '' !important;
    position: absolute !important;
    top: -50% !important;
    left: -50% !important;
    width: 200% !important;
    height: 200% !important;
    background: radial-gradient(circle, rgba(13,115,119,0.1) 0%, transparent 60%) !important;
    animation: headerPulse 8s ease-in-out infinite !important;
}

@keyframes headerPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

body .wp-site-blocks > .wp-block-post-title,
body.page .wp-block-post-title {
    font-size: 48px !important;
    font-weight: 900 !important;
    color: #fff !important;
    letter-spacing: -0.5px !important;
    line-height: 1.3 !important;
    max-width: 100% !important;
    margin: 0 !important;
    position: relative !important;
    z-index: 1 !important;
}

/* --- CONTENT CARD (Enhanced) --- */
body .entry-content,
body .wp-block-post-content,
body.page .entry-content,
body.single .entry-content {
    max-width: 1100px !important;
    margin: -40px auto 40px auto !important;
    padding: 50px 60px !important;
    background: #fff !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1) !important;
    position: relative !important;
    z-index: 2 !important;
    border: 1px solid rgba(13,115,119,0.08) !important;
}

/* --- HEADINGS (Enhanced) --- */
body .entry-content h2 {
    font-size: 32px !important;
    font-weight: 800 !important;
    color: #0a1628 !important;
    margin: 45px 0 20px !important;
    padding-bottom: 14px !important;
    border-bottom: 4px solid #0d7377 !important;
    position: relative !important;
}

body .entry-content h2::after {
    content: '' !important;
    position: absolute !important;
    bottom: -4px !important;
    left: 0 !important;
    width: 80px !important;
    height: 4px !important;
    background: #0d7377 !important;
    border-radius: 2px !important;
}

body .entry-content h3 {
    font-size: 26px !important;
    font-weight: 700 !important;
    color: #0d7377 !important;
    margin: 35px 0 15px !important;
    padding-left: 15px !important;
    border-left: 4px solid #0d7377 !important;
}

body .entry-content h4 {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #0a1628 !important;
    margin: 25px 0 12px !important;
}

/* --- LISTS (Enhanced) --- */
body .entry-content ul,
body .entry-content ol {
    padding-left: 28px !important;
    margin-bottom: 20px !important;
}

body .entry-content ul li {
    position: relative !important;
    padding-left: 8px !important;
    margin-bottom: 10px !important;
    font-size: 16px !important;
    color: #444 !important;
    line-height: 1.7 !important;
    list-style-type: none !important;
}

body .entry-content ul li::before {
    content: '▸' !important;
    color: #0d7377 !important;
    font-weight: bold !important;
    position: absolute !important;
    left: -20px !important;
}

body .entry-content ol li {
    margin-bottom: 10px !important;
    font-size: 16px !important;
    color: #444 !important;
    line-height: 1.7 !important;
}

/* --- TABLES (Enhanced) --- */
body .entry-content table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    margin: 30px 0 !important;
    background: #fff !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
    border: 1px solid #e8e8e8 !important;
}

body .entry-content th {
    background: linear-gradient(135deg, #0a1628, #0d2a3a) !important;
    color: #fff !important;
    padding: 16px 20px !important;
    text-align: center !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    letter-spacing: 0.5px !important;
}

body .entry-content td {
    padding: 14px 20px !important;
    text-align: center !important;
    border-bottom: 1px solid #f0f0f0 !important;
    font-size: 15px !important;
    color: #444 !important;
}

body .entry-content tr:last-child td {
    border-bottom: none !important;
}

body .entry-content tr:nth-child(even) td {
    background: #f8f9fb !important;
}

body .entry-content tr:hover td {
    background: #e8f4f4 !important;
}

body .entry-content .highlight {
    color: #0d7377 !important;
    font-weight: 700 !important;
    background: rgba(13,115,119,0.08) !important;
    padding: 2px 8px !important;
    border-radius: 4px !important;
}

/* --- CALLOUT / INFO BOX (Enhanced) --- */
body .entry-content .callout,
body .wp-block-post-content .callout {
    background: linear-gradient(135deg, #e8f4f4, #f5fafa) !important;
    border-left: 5px solid #0d7377 !important;
    padding: 24px 30px !important;
    border-radius: 12px !important;
    margin: 25px 0 !important;
    box-shadow: 0 2px 10px rgba(13,115,119,0.08) !important;
    font-size: 16px !important;
    color: #333 !important;
}

/* --- WARNING / RISK NOTICE (Enhanced) --- */
body .entry-content .risk-notice,
body.wp-block-post-content .risk-notice {
    background: #fff8f0 !important;
    border-left: 5px solid #e67e22 !important;
    padding: 20px 25px !important;
    border-radius: 12px !important;
    margin: 25px 0 !important;
    font-size: 14px !important;
    color: #8b6914 !important;
    box-shadow: 0 2px 10px rgba(230,126,34,0.1) !important;
}

/* --- BUTTONS (Enhanced) --- */
body .entry-content .wp-block-button__link {
    background: linear-gradient(135deg, #0d7377, #0a5c5f) !important;
    color: #fff !important;
    border-radius: 50px !important;
    padding: 16px 40px !important;
    font-weight: 700 !important;
    font-size: 17px !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: all 0.3s !important;
    box-shadow: 0 4px 15px rgba(13,115,119,0.3) !important;
    cursor: pointer !important;
    border: none !important;
}

body .entry-content .wp-block-button__link:hover {
    background: linear-gradient(135deg, #0a5c5f, #074749) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(13,115,119,0.4) !important;
}

/* --- IMAGES (Enhanced) --- */
body .entry-content img,
body .wp-block-post-content img {
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 20px 0 !important;
}

/* --- BLOCKQUOTE (Enhanced) --- */
body .entry-content blockquote {
    border-left: 5px solid #0d7377 !important;
    margin: 25px 0 !important;
    padding: 20px 30px !important;
    background: linear-gradient(135deg, #f8f9fb, #eef5f5) !important;
    font-style: italic !important;
    font-size: 17px !important;
    color: #555 !important;
    border-radius: 0 12px 12px 0 !important;
}

/* --- CODE BLOCK --- */
body .entry-content pre,
body .entry-content code {
    background: #0a1628 !important;
    color: #e8e8e8 !important;
    border-radius: 8px !important;
    padding: 15px 20px !important;
    overflow-x: auto !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

/* --- POST META (Enhanced) --- */
body .entry-meta {
    text-align: center !important;
    color: #889 !important;
    font-size: 14px !important;
    margin-top: -30px !important;
    margin-bottom: 30px !important;
}

body .entry-meta a {
    color: #0d7377 !important;
    text-decoration: none !important;
}

/* --- SIDEBAR / WIDGET (if applicable) --- */
body .widget-area {
    background: #fff !important;
    border-radius: 16px !important;
    padding: 25px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06) !important;
}

/* --- RESPONSIVE (Enhanced) --- */
@media (max-width: 1024px) {
    body .entry-content,
    body .wp-block-post-content {
        margin: -30px 15px 30px 15px !important;
        padding: 35px 30px !important;
    }
    body .wp-block-post-title,
    body.page .wp-block-post-title {
        font-size: 36px !important;
        padding: 60px 15px !important;
    }
}

@media (max-width: 768px) {
    body .entry-content,
    body .wp-block-post-content {
        margin: -20px 10px 20px 10px !important;
        padding: 25px 18px !important;
        border-radius: 14px !important;
    }
    body .wp-block-post-title,
    body.page .wp-block-post-title {
        font-size: 28px !important;
        padding: 50px 15px !important;
    }
    body .entry-content h2 {
        font-size: 24px !important;
    }
    body .entry-content h3 {
        font-size: 20px !important;
    }
    body .entry-content h4 {
        font-size: 17px !important;
    }
    body .entry-content th,
    body .entry-content td {
        padding: 10px 12px !important;
        font-size: 13px !important;
    }
    body .entry-content .wp-block-button__link {
        padding: 12px 28px !important;
        font-size: 15px !important;
    }
}

@media (max-width: 480px) {
    body .wp-block-post-title,
    body.page .wp-block-post-title {
        font-size: 22px !important;
        padding: 40px 12px !important;
    }
    body .entry-content,
    body .wp-block-post-content {
        padding: 20px 14px !important;
    }
}

/* --- PRINT --- */
@media print {
    body .navbar,
    body .nav-menu,
    body .hero-btns {
        display: none !important;
    }
    body .entry-content {
        box-shadow: none !important;
        margin: 0 !important;
        padding: 20px !important;
    }
}


/* ===== CLXM FULLOVERRIDE ===== */
.is-layout-constrained,
.has-global-padding,
.wp-block-post-content-is-layout-constrained {
    max-width: none !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Full-width gradient page title header */
body .wp-site-blocks .wp-block-post-title {
    background: linear-gradient(135deg, #0a1628 0%, #0d2a3a 50%, #0a1628 100%) !important;
    color: #fff !important;
    font-size: 40px !important;
    font-weight: 900 !important;
    padding: 70px 20px 60px !important;
    text-align: center !important;
    margin: 0 auto !important;
    max-width: 100% !important;
    line-height: 1.2 !important;
    width: 100% !important;
    display: block !important;
}

/* Beautiful content card */
body .entry-content,
body .wp-block-post-content {
    max-width: 1100px !important;
    margin: 30px auto !important;
    padding: 50px 55px !important;
    background: #fff !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06), 0 2px 10px rgba(0,0,0,0.04) !important;
    position: relative !important;
    overflow: hidden !important;
}

body .entry-content::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 4px !important;
    background: linear-gradient(90deg, #0d7377, #0a1628) !important;
}

/* Headings */
body .entry-content h2,body .wp-block-post-content h2 {
    color: #0a1628 !important;
    font-size: 30px !important;
    font-weight: 800 !important;
    margin: 40px 0 20px !important;
    padding: 0 0 14px 0 !important;
    border-bottom: 4px solid #0d7377 !important;
    letter-spacing: -0.5px !important;
}

body .entry-content h3,body .wp-block-post-content h3 {
    color: #0d7377 !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    margin: 35px 0 15px !important;
    padding-left: 15px !important;
    border-left: 4px solid #0d7377 !important;
}

body .entry-content h4,body .wp-block-post-content h4 {
    color: #0a1628 !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    margin: 25px 0 12px !important;
}

/* Paragraphs */
body .entry-content p,body .wp-block-post-content p {
    font-size: 16px !important;
    color: #444 !important;
    line-height: 1.9 !important;
    margin-bottom: 18px !important;
}

/* Lists */
body .entry-content ul,body .entry-content ol,body .wp-block-post-content ul,body .wp-block-post-content ol {
    padding-left: 30px !important;
    margin-bottom: 20px !important;
}

body .entry-content li,body .wp-block-post-content li {
    font-size: 15px !important;
    color: #444 !important;
    margin-bottom: 10px !important;
    line-height: 1.7 !important;
}

body .entry-content li::marker,body .wp-block-post-content li::marker {
    color: #0d7377 !important;
    font-weight: bold !important;
}

/* Links */
body .entry-content a,body .wp-block-post-content a {
    color: #0d7377 !important;
    font-weight: 600 !important;
    text-decoration: underline !important;
    text-decoration-thickness: 2px !important;
    text-underline-offset: 3px !important;
    transition: color 0.2s !important;
}

body .entry-content a:hover,body .wp-block-post-content a:hover {
    color: #085c5f !important;
}

/* Tables */
body .entry-content table,body .wp-block-post-content table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    margin: 30px 0 !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06) !important;
}

body .entry-content th,body .wp-block-post-content th {
    background: #0a1628 !important;
    color: #fff !important;
    padding: 16px 20px !important;
    text-align: center !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    letter-spacing: 0.5px !important;
}

body .entry-content td,body .wp-block-post-content td {
    padding: 14px 20px !important;
    text-align: center !important;
    border-bottom: 1px solid #eee !important;
    font-size: 15px !important;
    background: #fff !important;
}

body .entry-content tr:nth-child(even) td,body .wp-block-post-content tr:nth-child(even) td {
    background: #f8f9fb !important;
}

body .entry-content tr:last-child td,body .wp-block-post-content tr:last-child td {
    border-bottom: none !important;
}

body .entry-content tr:hover td,body .wp-block-post-content tr:hover td {
    background: #e8f4f4 !important;
}

/* Buttons */
body .entry-content a.wp-block-button__link,body .entry-content .wp-block-button__link {
    background: linear-gradient(135deg, #0d7377, #0a5c5f) !important;
    color: #fff !important;
    border-radius: 50px !important;
    padding: 16px 40px !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(13,115,119,0.3) !important;
    border: none !important;
}

body .entry-content a.wp-block-button__link:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(13,115,119,0.4) !important;
}

/* Callout box */
body .entry-content .callout,~body .wp-block-post-content .callout {
    background: linear-gradient(135deg, #e8f4f4, #f5fafa) !important;
    border-left: 5px solid #0d7377 !important;
    padding: 22px 28px !important;
    border-radius: 10px !important;
    margin: 25px 0 !important;
}

/* Navigation */
.wp-site-blocks > header.wp-block-template-part {
    background: #0a1628 !important;
}

.wp-site-blocks .wp-block-navigation a {
    color: #ccc !important;
    font-size: 14px !important;
    text-decoration: none !important;
}

.wp-site-blocks .wp-block-navigation a:hover {
    color: #0d7377 !important;
}

.wp-block-site-title {
    color: #0d7377 !important;
    font-size: 22px !important;
    font-weight: 900 !important;
}

.wp-block-group.is-layout-flow,
.wp-block-group.alignfull {
    padding: 0 !important;
    margin: 0 !important;
}

/* Responsive */
@media (max-width: 768px) {
    body .wp-site-blocks .wp-block-post-title {
        font-size: 26px !important;
        padding: 40px 15px 35px !important;
    }
    body .entry-content,
    body .wp-block-post-content {
        padding: 25px 18px !important;
        margin: 15px 12px !important;
    }
    body .entry-content h2,
    body .wp-block-post-content h2 {
        font-size: 24px !important;
    }
}
