/* ===== Ccost Blog — brand variables (overridden from plugin settings) ===== */
.ccost-blog,.ccost-related,.ccost-single{--b:#2563eb;--n:#0b1f4b;--ac:#60a5fa;--tint:#eff6ff;--m:#64748b;--l:#e5e7eb;--bg:#f8fafc}
.ccost-blog,.ccost-blog *,.ccost-related,.ccost-related *,.ccost-single,.ccost-single *{font-family:'Cairo',sans-serif}
.ccost-blog *,.ccost-single *{box-sizing:border-box}
.ccost-i{flex:none;vertical-align:-3px}

/* ===== Listing ===== */
.ccost-blog{max-width:1200px;margin:0 auto;padding:40px 20px;color:var(--n)}
.ccost-hero{margin-bottom:28px}
.ccost-hero h1{font-size:clamp(30px,5vw,48px);font-weight:800;margin:0 0 10px;color:var(--b)}
.ccost-hero p{margin:0;color:var(--m);font-size:17px}
.ccost-bar{display:flex;flex-wrap:wrap;gap:14px;align-items:center;margin:26px 0 34px}
.ccost-search{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid var(--l);border-radius:14px;padding:0 14px;height:48px;min-width:260px;flex:1 1 260px;max-width:380px;transition:.2s}
.ccost-search:focus-within{border-color:var(--b);box-shadow:0 0 0 4px var(--tint)}
.ccost-search input{border:0!important;outline:0!important;background:transparent!important;box-shadow:none!important;flex:1;height:100%;font-size:15px;padding:0!important}
.ccost-search button{background:none;border:0;cursor:pointer;color:var(--m);padding:0;display:flex}
.ccost-pills{display:flex;flex-wrap:wrap;gap:10px}
.ccost-pill{display:inline-flex;align-items:center;height:42px;padding:0 18px;border:1px solid var(--l);border-radius:12px;background:#fff;color:var(--n);font-weight:600;font-size:14px;text-decoration:none;transition:.2s}
.ccost-pill:hover{border-color:var(--b);color:var(--b)}
.ccost-pill.on{background:var(--n);border-color:var(--n);color:#fff}

/* image + tag overlay */
.ccost-img{position:relative;aspect-ratio:16/10;background:linear-gradient(135deg,var(--b),var(--n));overflow:hidden}
.ccost-img img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .6s cubic-bezier(.2,.7,.2,1)}
.ccost-img.noimg{display:flex;align-items:center;justify-content:center;color:rgba(255,255,255,.35)}
.ccost-img.noimg svg{width:56px;height:56px}
.ccost-img .ccost-tag{position:absolute;top:14px;inset-inline-start:14px;z-index:2;background:rgba(255,255,255,.95);box-shadow:0 4px 14px rgba(0,0,0,.12)}
.ccost-tag{align-self:flex-start;background:var(--tint);color:var(--b);font-size:12.5px;font-weight:700;padding:5px 12px;border-radius:999px;text-decoration:none;line-height:1.5}

/* cards */
.ccost-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:26px}
.ccost-card{display:flex;flex-direction:column;background:#fff;border:1px solid var(--l);border-radius:20px;overflow:hidden;text-decoration:none;color:inherit;transition:transform .3s,box-shadow .3s,border-color .3s}
.ccost-card:hover,.ccost-feat:hover{transform:translateY(-5px);box-shadow:0 18px 40px color-mix(in srgb,var(--n) 14%,transparent);border-color:color-mix(in srgb,var(--b) 35%,var(--l))}
.ccost-card:hover .ccost-img img,.ccost-feat:hover .ccost-img img{transform:scale(1.06)}
.ccost-cb{padding:20px 22px 18px;display:flex;flex-direction:column;gap:11px;flex:1}
.ccost-card h3{font-size:18.5px;font-weight:800;line-height:1.55;margin:0;color:var(--n);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ccost-card:hover h3,.ccost-feat:hover h2{color:var(--b)}
.ccost-card p{margin:0;color:var(--m);font-size:14.5px;line-height:1.8;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;flex:1}
.ccost-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:6px;padding-top:14px;border-top:1px dashed var(--l);color:var(--m);font-size:13px}
.ccost-meta{display:flex;gap:6px 14px;flex-wrap:wrap;color:var(--m);font-size:13px}
.ccost-meta span,.ccost-views{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.ccost-views{font-weight:700;color:var(--b);background:var(--tint);padding:3px 11px;border-radius:999px}

/* featured */
.ccost-feat{display:grid;grid-template-columns:1.2fr 1fr;background:#fff;border:1px solid var(--l);border-radius:24px;overflow:hidden;margin-bottom:34px;text-decoration:none;color:inherit;transition:transform .3s,box-shadow .3s,border-color .3s}
.ccost-feat .ccost-img{min-height:360px;height:100%;aspect-ratio:auto}
.ccost-feat .ccost-fb{padding:36px;display:flex;flex-direction:column;justify-content:center;gap:15px}
.ccost-feat h2{font-size:28px;font-weight:800;line-height:1.5;margin:0;color:var(--n);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.ccost-feat p{margin:0;color:var(--m);font-size:15.5px;line-height:1.9}
.ccost-feat .ccost-foot{margin-top:8px}
.ccost-badge{align-self:flex-start;display:inline-flex;align-items:center;gap:6px;font-size:12.5px;font-weight:700;color:var(--n);background:var(--ac);padding:4px 12px;border-radius:999px}

.ccost-pag ul{display:flex;gap:8px;justify-content:center;list-style:none;padding:0;margin:40px 0 0;flex-wrap:wrap}
.ccost-pag a,.ccost-pag span{display:inline-flex;min-width:42px;height:42px;padding:0 14px;align-items:center;justify-content:center;border:1px solid var(--l);border-radius:10px;background:#fff;color:var(--n);text-decoration:none;font-weight:600}
.ccost-pag .current{background:var(--b);border-color:var(--b);color:#fff}
.ccost-empty{padding:60px 20px;text-align:center;color:var(--m);background:#fff;border:1px dashed var(--l);border-radius:18px}
.ccost-single-meta{display:flex;gap:14px;flex-wrap:wrap;color:var(--m);font-size:14px;margin:0 0 22px}
.ccost-related{margin-top:56px;padding-top:30px;border-top:1px solid var(--l)}
.ccost-related h2{font-size:24px;margin:0 0 20px;color:var(--n)}
@media(max-width:800px){.ccost-feat{grid-template-columns:1fr}.ccost-feat .ccost-img{min-height:230px}.ccost-feat .ccost-fb{padding:22px}.ccost-feat h2{font-size:22px}}

/* ===== Single article ===== */
.ccost-single{background:#fff;color:var(--n);overflow-x:clip}
.ccost-single a{transition:.2s}

.ccost-progress{position:fixed;top:0;inset-inline:0;height:4px;z-index:99990;pointer-events:none}
body.admin-bar .ccost-progress{top:32px}
@media(max-width:782px){body.admin-bar .ccost-progress{top:46px}}
.ccost-progress span{display:block;height:100%;background:var(--ac);transform:scaleX(0);transform-origin:left}
.ccost-single[dir=rtl] .ccost-progress span{transform-origin:right}

.ccost-sh{background:radial-gradient(1200px 400px at 85% -10%,color-mix(in srgb,var(--ac) 38%,transparent),transparent 60%),linear-gradient(135deg,var(--b) 0%,var(--n) 100%);color:#fff;padding:56px 20px 110px}
.ccost-sh.no-img{padding-bottom:64px}
.ccost-sh-in{max-width:880px;margin:0 auto;display:flex;flex-direction:column;gap:18px;align-items:flex-start}
.ccost-crumbs{display:flex;flex-wrap:wrap;gap:8px;align-items:center;font-size:14px;color:rgba(255,255,255,.75)}
.ccost-crumbs a{color:rgba(255,255,255,.85);text-decoration:none}
.ccost-crumbs a:hover{color:#fff;text-decoration:underline}
.ccost-crumbs i{font-style:normal;opacity:.5}
.ccost-sh .ccost-tag{background:rgba(255,255,255,.16);color:#fff;border:1px solid rgba(255,255,255,.28);backdrop-filter:blur(4px)}
.ccost-sh h1{margin:0;font-size:clamp(28px,4.6vw,46px);font-weight:800;line-height:1.5;color:#fff;letter-spacing:-.2px}
.ccost-sh-meta{display:flex;flex-wrap:wrap;gap:10px 22px;color:rgba(255,255,255,.85);font-size:14px}
.ccost-sh-meta span{display:inline-flex;align-items:center;gap:7px}

.ccost-cover{max-width:980px;margin:-70px auto 0;padding:0 20px;position:relative}
.ccost-cover img{display:block;width:100%;height:auto;aspect-ratio:16/8;object-fit:cover;border-radius:22px;box-shadow:0 24px 60px color-mix(in srgb,var(--n) 28%,transparent);border:4px solid #fff;background:#e2e8f0}

.ccost-wrap{max-width:1160px;margin:0 auto;padding:44px 20px 20px;display:grid;grid-template-columns:minmax(0,1fr);gap:28px}
@media(min-width:1000px){.ccost-wrap{grid-template-columns:300px minmax(0,1fr);gap:52px}}

/* sidebar */
.ccost-side-in{display:flex;flex-direction:column;gap:18px}
@media(min-width:1000px){.ccost-side-in{position:sticky;top:104px;max-height:calc(100vh - 124px);overflow-y:auto;scrollbar-width:thin;padding-bottom:6px}}
.ccost-box{background:#fff;border:1px solid var(--l);border-radius:18px;padding:18px 20px}
.ccost-box h4{margin:0 0 12px;font-size:14px;font-weight:700;color:var(--m)}
.ccost-box p{margin:0 0 12px;font-size:13px;line-height:1.8;color:var(--m)}
.ccost-icons{display:flex;gap:10px;flex-wrap:wrap}
.ccost-icons a,.ccost-icons button{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:50%;border:1px solid var(--l);background:#fff;color:var(--n);font-weight:800;font-size:14px;text-decoration:none;cursor:pointer;font-family:inherit;padding:0;line-height:1}
.ccost-icons a:hover,.ccost-icons button:hover{background:var(--b);border-color:var(--b);color:#fff;transform:translateY(-2px)}
.ccost-icons button.copy{width:auto;padding:0 16px;border-radius:999px;font-size:13px;font-weight:600}
.ccost-ai{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.ccost-ai a{display:flex;align-items:center;justify-content:center;height:42px;border-radius:12px;background:var(--tint);color:var(--b);font-weight:700;font-size:13px;text-decoration:none;border:1px solid transparent}
.ccost-ai a:hover{border-color:var(--b);background:#fff}

/* toc */
.ccost-toc{background:var(--bg);border:1px solid var(--l);border-radius:18px;padding:16px 18px}
.ccost-toc summary{list-style:none;cursor:pointer;font-weight:800;font-size:15px;color:var(--n);display:flex;justify-content:space-between;align-items:center}
.ccost-toc summary::-webkit-details-marker{display:none}
.ccost-toc summary:after{content:'+';font-size:20px;color:var(--b);line-height:1}
.ccost-toc[open] summary:after{content:'–'}
@media(min-width:1000px){.ccost-toc summary{pointer-events:none}.ccost-toc summary:after{display:none}}
.ccost-toc ol{list-style:none;margin:12px 0 0;padding:0;display:flex;flex-direction:column;gap:2px;max-height:38vh;overflow:auto;scrollbar-width:thin}
.ccost-toc a{display:block;padding:7px 12px;border-radius:9px;color:var(--m);text-decoration:none;font-size:13.5px;line-height:1.6;border-inline-start:3px solid transparent}
.ccost-toc li.l3 a{padding-inline-start:26px;font-size:13px}
.ccost-toc a:hover{color:var(--b);background:var(--tint)}
.ccost-toc a.on{color:var(--b);background:var(--tint);border-inline-start-color:var(--b);font-weight:700}

/* promo */
.ccost-promo{border-radius:20px;padding:24px 22px;color:#fff;background:radial-gradient(400px 200px at 90% 0,color-mix(in srgb,var(--ac) 40%,transparent),transparent 60%),linear-gradient(160deg,var(--b),var(--n))}
.ccost-promo h4{margin:0 0 16px;font-size:18px;font-weight:800;line-height:1.6;color:#fff}
.ccost-promo a{display:flex;align-items:center;justify-content:center;height:46px;border-radius:12px;background:var(--ac);color:var(--n);font-weight:800;text-decoration:none}
.ccost-promo a:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(0,0,0,.25)}

/* article text */
.ccost-body{max-width:760px;width:100%;font-size:18px;line-height:2.05;color:#1e293b;word-wrap:break-word}
.ccost-body>*:first-child{margin-top:0}
.ccost-body p{margin:0 0 1.35em}
.ccost-body h2,.ccost-body h3,.ccost-body h4{color:var(--n);font-weight:800;line-height:1.55;scroll-margin-top:110px}
.ccost-body h2{font-size:clamp(23px,3vw,30px);margin:2.1em 0 .7em;padding-inline-start:16px;border-inline-start:5px solid var(--b)}
.ccost-body h3{font-size:clamp(20px,2.4vw,24px);margin:1.8em 0 .6em}
.ccost-body h4{font-size:19px;margin:1.5em 0 .5em}
.ccost-body strong,.ccost-body b{color:var(--n);font-weight:800}
.ccost-body a{color:var(--b);text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1.5px}
.ccost-body a:hover{color:var(--n)}
.ccost-body ul,.ccost-body ol{margin:0 0 1.4em;padding-inline-start:1.5em;padding-inline-end:0}
.ccost-body li{margin:.4em 0;padding-inline-start:.25em}
.ccost-body li::marker{color:var(--b);font-weight:700}
.ccost-body blockquote{margin:1.8em 0;padding:20px 24px;background:var(--tint);border-inline-start:5px solid var(--b);border-radius:14px;color:var(--n);font-weight:600}
.ccost-body blockquote p:last-child{margin:0}
.ccost-body img,.ccost-body video,.ccost-body iframe{max-width:100%;height:auto;border-radius:16px}
.ccost-body figure{margin:1.8em 0}
.ccost-body figcaption{text-align:center;color:var(--m);font-size:14px;margin-top:10px}
.ccost-body table{display:table;width:100%;border-collapse:separate;border-spacing:0;overflow:hidden;margin:1.8em 0;border:1px solid var(--l);border-radius:14px;font-size:16px;line-height:1.8}
.ccost-body th{background:var(--n);color:#fff;font-weight:700;padding:12px 16px;text-align:start}
.ccost-body td{padding:12px 16px;border-top:1px solid var(--l)}
.ccost-body tr:nth-child(even) td{background:var(--bg)}
.ccost-body hr{border:0;height:1px;background:var(--l);margin:2.4em 0}
.ccost-body code{background:#f1f5f9;padding:2px 7px;border-radius:6px;font-size:.9em;direction:ltr;unicode-bidi:embed}
.ccost-body pre{background:var(--n);color:#e2e8f0;padding:18px;border-radius:14px;overflow:auto;direction:ltr;text-align:left}
.ccost-body pre code{background:none;color:inherit;padding:0}

/* mobile-only bottom block */
.ccost-after{max-width:1160px;margin:0 auto;padding:0 20px;display:flex;flex-direction:column;gap:16px}
@media(min-width:1000px){.ccost-after{display:none}}
@media(max-width:999px){.ccost-side .ccost-d-only{display:none}}

.ccost-cta-in{background:radial-gradient(600px 240px at 90% 0,color-mix(in srgb,var(--ac) 40%,transparent),transparent 60%),linear-gradient(135deg,var(--b),var(--n));color:#fff;border-radius:22px;padding:30px 28px;display:flex;flex-wrap:wrap;gap:18px;align-items:center;justify-content:space-between}
.ccost-cta-in h2{margin:0;font-size:clamp(19px,2.8vw,25px);font-weight:800;line-height:1.5;color:#fff;flex:1 1 260px}
.ccost-cta-in a{display:inline-flex;align-items:center;height:48px;padding:0 28px;border-radius:13px;background:var(--ac);color:var(--n);font-weight:800;text-decoration:none}

.ccost-single .ccost-rel{max-width:1200px;margin:0 auto;padding:56px 20px 70px}
.ccost-single .ccost-rel h2{font-size:26px;font-weight:800;margin:0 0 22px;color:var(--n)}

@media(max-width:600px){
 .ccost-sh{padding:36px 18px 90px}
 .ccost-body{font-size:17px;line-height:2}
 .ccost-cover{margin-top:-56px;padding:0 14px}
 .ccost-cover img{border-radius:16px;aspect-ratio:16/10}
}
@media(prefers-reduced-motion:reduce){.ccost-card,.ccost-feat,.ccost-img img,.ccost-single a{transition:none}}
@media(max-width:999px){.ccost-side:not(:has(.ccost-toc)){display:none}}
