/*
 * NexaEsim block patterns (Inserter › Mẫu › NexaEsim). Loaded on blog posts and inside the editor
 * so authors see exactly what readers will see.
 */

/* Callouts: core/group.nx-callout (+ --warning / --success) */
.nx-callout{margin:1.75rem 0;padding:1.1rem 1.25rem 1.1rem 1.25rem;border:1px solid #c7d2fe;border-left:4px solid #4f46e5;border-radius:12px;background:#eef2ff;color:#334155}
.nx-callout>*:last-child{margin-bottom:0!important}
.nx-callout .nx-callout__title,.nx-callout h4{margin:0 0 .4rem!important;font-size:1.05rem!important;color:#312e81!important;border:0!important;padding:0!important}
.nx-callout--warning{border-color:#fde68a;border-left-color:#d97706;background:#fffbeb}
.nx-callout--warning .nx-callout__title,.nx-callout--warning h4{color:#92400e!important}
.nx-callout--success{border-color:#bbf7d0;border-left-color:#16a34a;background:#f0fdf4}
.nx-callout--success .nx-callout__title,.nx-callout--success h4{color:#166534!important}

/* Numbered steps: core/list (ordered).nx-steps */
ol.nx-steps{list-style:none;counter-reset:nxstep;padding:0!important;margin:1.75rem 0!important}
ol.nx-steps>li{position:relative;counter-increment:nxstep;margin:0 0 1rem!important;padding:0 0 0 3.1rem;min-height:2.2rem}
ol.nx-steps>li::before{content:counter(nxstep);position:absolute;left:0;top:.05rem;display:flex;align-items:center;justify-content:center;width:2.1rem;height:2.1rem;border-radius:50%;background:#4f46e5;color:#fff;font-weight:700;font-size:.95rem}
ol.nx-steps>li::marker{content:none}

/* CTA box: core/group.nx-cta */
.nx-cta{margin:2.25rem 0;padding:1.75rem;border-radius:16px;background:linear-gradient(135deg,#4f46e5,#6366f1);color:#e0e7ff;text-align:center}
.nx-cta h3,.nx-cta h4{margin:0 0 .5rem!important;color:#fff!important;border:0!important;padding:0!important;font-size:1.35rem!important}
.nx-cta p{color:#e0e7ff!important;margin:0 0 1.1rem!important}
.nx-cta .wp-block-buttons{justify-content:center;gap:.6rem}
.nx-cta .wp-block-button__link{border-radius:999px!important;padding:.7rem 1.4rem!important;font-weight:600;text-decoration:none!important;background:#fff!important;color:#4338ca!important}
.nx-cta .is-style-outline .wp-block-button__link{background:transparent!important;color:#fff!important;border:1.5px solid rgba(255,255,255,.6)!important}

/* Comparison table: core/table.nx-compare */
.nx-compare{margin:1.75rem 0}
.nx-compare table{width:100%;border-collapse:separate;border-spacing:0;border:1px solid #e2e8f0;border-radius:12px;overflow:hidden;font-size:16px}
.nx-compare thead th{background:#4f46e5!important;color:#fff!important;border:0!important}
.nx-compare td,.nx-compare th{padding:.8rem 1rem;border-bottom:1px solid #e2e8f0}
.nx-compare tbody tr:nth-child(even) td{background:#f8fafc}
.nx-compare tbody tr:last-child td{border-bottom:0}

/* FAQ: core/details inside group.nx-faq */
.nx-faq{margin:1.75rem 0}
.nx-faq .wp-block-details{margin:0 0 .6rem!important;padding:0;border:1px solid #e2e8f0;border-radius:12px;background:#fff;overflow:hidden}
.nx-faq .wp-block-details summary{padding:.9rem 1.1rem;font-weight:600;color:#0f172a;cursor:pointer;list-style-position:inside}
.nx-faq .wp-block-details[open] summary{border-bottom:1px solid #e2e8f0;background:#f8fafc}
.nx-faq .wp-block-details>*:not(summary){margin:.8rem 1.1rem!important}

/* Key takeaways: core/group.nx-summary */
.nx-summary{margin:1.75rem 0;padding:1.25rem 1.4rem;border:1px solid #e2e8f0;border-radius:14px;background:#f8fafc}
.nx-summary h4{margin:0 0 .6rem!important;font-size:1.05rem!important;border:0!important;padding:0!important}
.nx-summary ul{margin:0!important}
