/* ==============================
MP Knowledge Article - Pro
Copy-paste for Joomla
============================== */
.mpk-article{
--mpk-navy:#0f2a44;
--mpk-blue:#1f5ea8;
--mpk-blue-2:#2f76c7;
--mpk-green:#178a42;
--mpk-orange:#f28c18;
--mpk-orange-dark:#e67d0c;
--mpk-text:#314255;
--mpk-muted:#6f7d8c;
--mpk-line:#d8e3ec;
--mpk-soft:#f6f9fc;
--mpk-soft-2:#eef5fb;
--mpk-soft-3:#f5fbf7;
--mpk-white:#ffffff;
--mpk-shadow:0 14px 40px rgba(15,42,68,.08);
--mpk-shadow-sm:0 8px 24px rgba(15,42,68,.05);
--mpk-radius:26px;
--mpk-radius-md:20px;
--mpk-radius-sm:14px;
max-width:980px;
margin:0 auto;
color:var(--mpk-text);
font-family:Tahoma, "Noto Sans Thai", Arial, sans-serif;
line-height:1.8;
}

.mpk-article *,
.mpk-article *:before,
.mpk-article *:after{
box-sizing:border-box;
}

.mpk-article a{
color:var(--mpk-blue);
}

.mpk-article img{
max-width:100%;
height:auto;
}

.mpk-hero{
position:relative;
overflow:hidden;
padding:40px 36px;
border-radius:30px;
background:linear-gradient(135deg,#0f2a44 0%, #1f5ea8 100%);
color:#fff;
box-shadow:var(--mpk-shadow);
margin-bottom:28px;
}

.mpk-hero:before{
content:"";
position:absolute;
right:-70px;
top:-70px;
width:240px;
height:240px;
border-radius:50%;
background:rgba(255,255,255,.08);
}

.mpk-hero:after{
content:"";
position:absolute;
left:-40px;
bottom:-60px;
width:180px;
height:180px;
border-radius:50%;
background:rgba(255,255,255,.05);
}

.mpk-hero-inner{
position:relative;
z-index:1;
}

.mpk-badges{
display:flex;
flex-wrap:wrap;
gap:10px;
margin-bottom:16px;
}

.mpk-badge{
display:inline-flex;
align-items:center;
justify-content:center;
min-height:34px;
padding:0 14px;
border-radius:999px;
font-size:13px;
font-weight:700;
text-decoration:none;
}

.mpk-badge-white{
background:rgba(255,255,255,.12);
border:1px solid rgba(255,255,255,.18);
color:#fff !important;
}

.mpk-badge-orange{
background:rgba(242,140,24,.18);
border:1px solid rgba(255,214,163,.32);
color:#fff !important;
}

.mpk-hero h1{
margin:0 0 14px;
font-size:34px;
line-height:1.35;
color:#fff;
}

.mpk-hero p{
margin:0;
max-width:760px;
font-size:17px;
color:rgba(255,255,255,.92);
}

.mpk-summary{
display:grid;
grid-template-columns:1.1fr .9fr;
gap:20px;
margin-bottom:24px;
}

.mpk-summary-card,
.mpk-toc-card{
background:var(--mpk-white);
border:1px solid var(--mpk-line);
border-radius:24px;
box-shadow:var(--mpk-shadow-sm);
padding:24px;
}

.mpk-summary-head,
.mpk-toc-head{
display:flex;
align-items:center;
gap:12px;
margin-bottom:14px;
}

.mpk-icon{
flex:0 0 auto;
width:42px;
height:42px;
border-radius:14px;
display:flex;
align-items:center;
justify-content:center;
font-size:18px;
font-weight:700;
}

.mpk-icon-blue{
background:#eaf3fb;
color:var(--mpk-blue);
}

.mpk-icon-green{
background:#edf8f1;
color:var(--mpk-green);
}

.mpk-summary-title,
.mpk-toc-title{
margin:0;
font-size:22px;
line-height:1.4;
color:var(--mpk-navy);
}

.mpk-summary p{
margin:0 0 10px;
}

.mpk-meta{
display:flex;
flex-wrap:wrap;
gap:10px;
margin-top:14px;
}

.mpk-meta-item{
display:inline-flex;
align-items:center;
min-height:36px;
padding:0 14px;
border-radius:999px;
background:var(--mpk-soft);
border:1px solid #e1eaf2;
color:var(--mpk-text);
font-size:14px;
font-weight:700;
}

.mpk-toc-list{
list-style:none;
margin:0;
padding:0;
}

.mpk-toc-list li{
margin:0 0 10px;
}

.mpk-toc-list li:last-child{
margin-bottom:0;
}

.mpk-toc-list a{
display:block;
padding:11px 14px;
border-radius:14px;
background:var(--mpk-soft);
border:1px solid #e3ebf3;
color:var(--mpk-text);
font-weight:700;
text-decoration:none;
transition:.2s ease;
}

.mpk-toc-list a:hover{
transform:translateY(-1px);
border-color:#bcd0e1;
background:#f9fcff;
}

.mpk-section{
margin-bottom:24px;
padding:28px;
background:var(--mpk-white);
border:1px solid var(--mpk-line);
border-radius:24px;
box-shadow:var(--mpk-shadow-sm);
}

.mpk-section h2{
margin:0 0 14px;
font-size:28px;
line-height:1.4;
color:var(--mpk-navy);
}

.mpk-section h3{
margin:22px 0 10px;
font-size:21px;
line-height:1.5;
color:var(--mpk-blue);
}

.mpk-section h4{
margin:0 0 10px;
font-size:18px;
line-height:1.5;
color:var(--mpk-navy);
}

.mpk-section p{
margin:0 0 14px;
font-size:16px;
}

.mpk-section ul{
margin:0 0 14px;
padding-left:22px;
}

.mpk-section li{
margin-bottom:8px;
}

.mpk-highlight{
margin:18px 0;
padding:18px 20px;
border-left:5px solid var(--mpk-orange);
background:linear-gradient(180deg,#fffaf2 0%, #fff 100%);
border-radius:16px;
}

.mpk-note{
margin:18px 0;
padding:18px 20px;
border-radius:16px;
background:var(--mpk-soft);
border:1px solid var(--mpk-line);
}

.mpk-quickbox{
margin:18px 0;
padding:18px 20px;
border-radius:18px;
background:linear-gradient(135deg,#f5fbf7 0%, #eef6ff 100%);
border:1px solid #dbe8df;
}

.mpk-quickbox h4{
margin:0 0 8px;
}

.mpk-formula{
margin:14px 0;
padding:15px 18px;
border-radius:16px;
background:var(--mpk-soft-2);
border:1px dashed #bcd0e1;
color:var(--mpk-navy);
font-weight:700;
overflow:auto;
}

.mpk-example{
margin-top:16px;
padding:20px;
border-radius:18px;
background:#fbfdff;
border:1px solid #dbe7f2;
}

.mpk-example p{
margin-bottom:8px;
}

.mpk-result{
margin-top:12px;
padding:14px 16px;
border-radius:14px;
background:#f2fbf5;
border:1px solid #cfe9d7;
color:#14532d;
font-weight:700;
}

.mpk-grid-2{
display:grid;
grid-template-columns:1fr 1fr;
gap:18px;
}

.mpk-table-wrap{
overflow-x:auto;
margin-top:14px;
}

.mpk-table{
width:100%;
min-width:640px;
border-collapse:collapse;
background:#fff;
}

.mpk-table th,
.mpk-table td{
padding:14px 14px;
border-bottom:1px solid #e3ebf3;
text-align:left;
font-size:15px;
}

.mpk-table th{
background:var(--mpk-navy);
color:#fff;
font-weight:700;
}

.mpk-table tr:nth-child(even) td{
background:#f8fbfe;
}

.mpk-checklist{
list-style:none !important;
padding:0 !important;
margin:0;
}

.mpk-checklist li{
position:relative;
margin:0 0 10px;
padding-left:30px;
}

.mpk-checklist li:before{
content:"✓";
position:absolute;
left:0;
top:0;
color:var(--mpk-green);
font-weight:700;
}

.mpk-cta{
padding:32px;
border-radius:28px;
background:linear-gradient(135deg,#f5fbf7 0%, #eef7ff 100%);
border:1px solid #dbe8df;
box-shadow:0 12px 28px rgba(15,42,68,.05);
}

.mpk-cta h2{
margin:0 0 10px;
font-size:28px;
line-height:1.4;
color:var(--mpk-navy);
}

.mpk-cta p{
margin:0 0 18px;
font-size:16px;
}

.mpk-btns{
display:flex;
flex-wrap:wrap;
gap:12px;
}

.mpk-btn{
display:inline-flex;
align-items:center;
justify-content:center;
min-height:48px;
padding:0 22px;
border-radius:999px;
font-size:15px;
font-weight:700;
text-decoration:none !important;
transition:.2s ease;
}

.mpk-btn-primary{
background:var(--mpk-orange);
color:#fff !important;
box-shadow:0 10px 20px rgba(242,140,24,.22);
}

.mpk-btn-primary:hover{
background:var(--mpk-orange-dark);
transform:translateY(-2px);
}

.mpk-btn-secondary{
background:#fff;
color:var(--mpk-navy) !important;
border:1px solid #ccdae6;
}

.mpk-btn-secondary:hover{
transform:translateY(-2px);
border-color:#9fb8cf;
}

.mpk-credit{
margin-top:18px;
padding-top:16px;
border-top:1px solid #dbe6ef;
font-size:14px;
color:var(--mpk-muted);
}

.mpk-small{
font-size:14px;
color:var(--mpk-muted);
}

@media (max-width:900px){
.mpk-summary{
grid-template-columns:1fr;
}

.mpk-grid-2{
grid-template-columns:1fr;
}
}

@media (max-width:767px){
.mpk-hero{
padding:30px 22px;
border-radius:22px;
}

.mpk-hero h1{
font-size:27px;
}

.mpk-hero p{
font-size:15px;
}

.mpk-summary-card,
.mpk-toc-card,
.mpk-section,
.mpk-cta{
padding:22px 18px;
border-radius:18px;
}

.mpk-summary-title,
.mpk-toc-title{
font-size:20px;
}

.mpk-section h2{
font-size:23px;
}

.mpk-section h3{
font-size:19px;
}

.mpk-cta h2{
font-size:23px;
}

.mpk-btns{
flex-direction:column;
}

.mpk-btn{
width:100%;
}
}