/* =====================================================================
   Webtel Global — Blog (listing + article). Matches the home-page
   "From the blog" section: Inter, indigo → sky → violet gradient,
   soft lavender backgrounds and rounded white cards.
   ===================================================================== */
:root{
  --wb-ink:#0F172A; --wb-body:#334155; --wb-muted:#64748b; --wb-line:#e5e7f2;
  --wb-brand:#4F46E5; --wb-brand-2:#2d4de0; --wb-sky:#0EA5E9; --wb-violet:#7C3AED;
  --wb-soft:#f5f7ff; --wb-grad:linear-gradient(135deg,#4F46E5,#0EA5E9,#7C3AED);
  --wb-radius:24px; --wb-shadow:0 10px 40px rgba(15,17,38,.08); --wb-shadow-h:0 20px 50px rgba(15,17,38,.12);
}
/* site-wide typography refinement (same as the home page) */
:where(h1,h2,h3,h4,h5,h6,p,a,li,span,button,label,input,textarea,div){
  font-family:'Inter',ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif !important;
}
h1,h2,h3,h4,h5,h6{letter-spacing:0.015em !important;line-height:1.35 !important;font-weight:600 !important}
h1{letter-spacing:0.01em !important;line-height:1.25 !important}
h2{letter-spacing:0.012em !important;line-height:1.3 !important}

.wbb a{text-decoration:none;color:inherit}
.wbb img{max-width:100%;display:block}
.wbb-wrap{max-width:1280px;margin:0 auto;padding:0 32px}
.wbb-grad{background:var(--wb-grad);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent}
.wbb-pill{display:inline-flex;align-items:center;gap:8px;background:#eef0ff;border-radius:999px;padding:7px 16px;font-size:13px;font-weight:500;color:#4338ca;letter-spacing:.04em}
.wbb-dot{width:7px;height:7px;background:#6366f1;border-radius:50%;animation:wbbPulse 2s infinite}
@keyframes wbbPulse{0%,100%{opacity:1}50%{opacity:.35}}

/* ---------- Hero ---------- */
.wbb-hero{position:relative;overflow:hidden;padding:84px 0 56px;background:linear-gradient(135deg,#f8f9ff 0%,#eef1fb 100%)}
.wbb-hero:before,.wbb-hero:after{content:"";position:absolute;border-radius:50%;filter:blur(28px);pointer-events:none}
.wbb-hero:before{top:-200px;left:6%;width:560px;height:560px;background:radial-gradient(circle,rgba(99,102,241,.17),transparent 65%)}
.wbb-hero:after{top:-120px;right:4%;width:480px;height:480px;background:radial-gradient(circle,rgba(60,197,255,.17),transparent 65%)}
.wbb-hero .wbb-wrap{position:relative;z-index:1}
.wbb-hero h1{font-size:clamp(32px,4.6vw,52px);color:var(--wb-ink);margin:18px 0 12px;max-width:820px}
.wbb-hero p.wbb-lead{font-size:18px;line-height:1.65;color:#475569;max-width:680px}
.wbb-search{margin-top:28px;display:flex;max-width:520px;background:#fff;border-radius:14px;box-shadow:var(--wb-shadow);padding:6px;border:1px solid #e8eafc}
.wbb-search input{flex:1;border:0;outline:0;padding:12px 14px;font-size:15px;background:transparent;color:var(--wb-ink)}
.wbb-search button{border:0;background:var(--wb-brand-2);color:#fff;border-radius:10px;padding:0 20px;font-size:14px;font-weight:600;cursor:pointer;transition:.25s}
.wbb-search button:hover{background:#1734b8}

/* ---------- Category chips ---------- */
.wbb-chips{display:flex;flex-wrap:wrap;gap:10px;margin-top:30px}
.wbb-chip{display:inline-flex;align-items:center;gap:8px;padding:9px 16px;border-radius:999px;background:#fff;border:1px solid #e3e6f7;color:#334155;font-size:14px;font-weight:500;transition:.2s}
.wbb-chip:hover{border-color:#c7cdf6;color:var(--wb-brand)}
.wbb-chip.is-active{background:var(--wb-brand-2);border-color:var(--wb-brand-2);color:#fff}
.wbb-chip small{font-size:12px;opacity:.7}

/* ---------- Listing ---------- */
.wbb-list{padding:56px 0 90px;background:#fff}
.wbb-section-title{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:28px;flex-wrap:wrap}
.wbb-section-title h2{font-size:26px;color:var(--wb-ink)}
.wbb-section-title span{color:var(--wb-muted);font-size:15px}

.wbb-featured{display:grid;grid-template-columns:1.25fr 1fr;background:#fff;border-radius:28px;overflow:hidden;box-shadow:var(--wb-shadow);margin-bottom:48px;transition:.3s;border:1px solid #eef0fb}
.wbb-featured:hover{box-shadow:var(--wb-shadow-h);transform:translateY(-4px)}
.wbb-featured .wbb-thumb{min-height:340px}
.wbb-featured .wbb-fbody{padding:44px 44px 40px;display:flex;flex-direction:column;justify-content:center}
.wbb-featured h3{font-size:clamp(24px,2.6vw,32px);color:var(--wb-ink);margin:14px 0 14px}
.wbb-featured p{font-size:17px;line-height:1.7;color:#475569;margin-bottom:24px}

.wbb-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:28px}
.wbb-card{background:#fff;border-radius:var(--wb-radius);overflow:hidden;box-shadow:var(--wb-shadow);transition:all .3s cubic-bezier(.4,0,.2,1);display:flex;flex-direction:column;border:1px solid #eef0fb}
.wbb-card:hover{transform:translateY(-8px);box-shadow:var(--wb-shadow-h)}
.wbb-thumb{position:relative;height:200px;background-size:cover;background-position:center;display:flex;align-items:center;justify-content:center;color:#fff;font-size:13px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;text-align:center;padding:0 16px}
.wbb-card .wbb-cbody{padding:26px 26px 24px;display:flex;flex-direction:column;flex:1}
.wbb-card h3{font-size:20px;color:var(--wb-ink);margin:12px 0 10px;line-height:1.35}
.wbb-card p{font-size:15.5px;line-height:1.65;color:#475569;margin-bottom:20px;flex:1}
.wbb-cat{display:inline-block;align-self:flex-start;font-size:12px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;color:var(--wb-brand);background:#eef0ff;padding:5px 11px;border-radius:999px}
.wbb-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:14px;color:var(--wb-muted)}
.wbb-meta i{font-size:4px;color:#cbd5e1}
.wbb-more{margin-left:auto;color:var(--wb-brand);font-weight:600}

.wbb-empty{text-align:center;padding:70px 20px;background:var(--wb-soft);border-radius:var(--wb-radius);color:#475569}
.wbb-empty h3{font-size:22px;color:var(--wb-ink);margin-bottom:8px}

.wbb-pager{display:flex;justify-content:center;gap:8px;margin-top:52px;flex-wrap:wrap}
.wbb-pager a,.wbb-pager span{min-width:44px;height:44px;padding:0 14px;display:inline-flex;align-items:center;justify-content:center;border-radius:12px;border:1px solid #e3e6f7;font-weight:600;color:#334155;font-size:15px}
.wbb-pager a:hover{border-color:var(--wb-brand);color:var(--wb-brand)}
.wbb-pager .is-current{background:var(--wb-brand-2);border-color:var(--wb-brand-2);color:#fff}

/* ---------- CTA band ---------- */
.wbb-cta{background:linear-gradient(135deg,#1e1b4b 0%,#312e81 55%,#1e3a8a 100%);color:#fff;border-radius:28px;padding:48px;display:flex;justify-content:space-between;align-items:center;gap:28px;flex-wrap:wrap;position:relative;overflow:hidden}
.wbb-cta:after{content:"";position:absolute;right:-120px;top:-120px;width:360px;height:360px;border-radius:50%;background:radial-gradient(circle,rgba(14,165,233,.35),transparent 65%)}
.wbb-cta h3{font-size:clamp(22px,2.4vw,30px);margin-bottom:8px;color:#fff}
.wbb-cta p{color:#c7d2fe;font-size:16px;line-height:1.6}
.wbb-cta .wbb-cta-actions{display:flex;gap:12px;flex-wrap:wrap;position:relative;z-index:1}
.wbb-btn{display:inline-flex;align-items:center;gap:8px;padding:13px 22px;border-radius:12px;font-weight:600;font-size:15px;transition:.25s}
.wbb-btn-light{background:#fff;color:#1e1b4b !important}
.wbb-btn-light:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(0,0,0,.2)}
.wbb-btn-ghost{border:1px solid rgba(255,255,255,.35);color:#fff !important}
.wbb-btn-ghost:hover{background:rgba(255,255,255,.08)}

/* ---------- Article ---------- */
.wbb-article-hero{padding:56px 0 36px;background:linear-gradient(135deg,#f8f9ff 0%,#eef1fb 100%);position:relative;overflow:hidden}
.wbb-article-hero .wbb-wrap{max-width:980px;position:relative;z-index:1}
.wbb-crumbs{font-size:14px;color:var(--wb-muted);display:flex;gap:8px;flex-wrap:wrap;margin-bottom:22px}
.wbb-crumbs a:hover{color:var(--wb-brand)}
.wbb-article-hero h1{font-size:clamp(30px,4.2vw,48px);color:var(--wb-ink);margin:16px 0 16px}
.wbb-article-hero .wbb-lead{font-size:19px;line-height:1.65;color:#475569;margin-bottom:26px}
.wbb-byline{display:flex;align-items:center;gap:14px;font-size:15px;color:var(--wb-muted);flex-wrap:wrap}
.wbb-avatar{width:44px;height:44px;border-radius:50%;background:var(--wb-grad);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:600;font-size:15px}
.wbb-byline strong{color:var(--wb-ink);font-weight:600;display:block}
.wbb-cover{max-width:1100px;margin:36px auto 0;padding:0 32px}
.wbb-cover img{width:100%;border-radius:24px;box-shadow:var(--wb-shadow);aspect-ratio:16/8;object-fit:cover}

.wbb-article{padding:48px 0 80px;background:#fff}
.wbb-layout{max-width:1100px;margin:0 auto;padding:0 32px;display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:56px}
.wbb-aside{position:sticky;top:96px;align-self:start;display:flex;flex-direction:column;gap:20px}
.wbb-box{background:var(--wb-soft);border-radius:18px;padding:22px}
.wbb-box h4{font-size:13px;letter-spacing:.08em;text-transform:uppercase;color:var(--wb-muted);margin-bottom:12px}
.wbb-toc a{display:block;padding:6px 0 6px 12px;border-left:2px solid #dfe3fb;color:#475569;font-size:14px;line-height:1.45}
.wbb-toc a.lvl-3{padding-left:24px;font-size:13.5px}
.wbb-toc a:hover,.wbb-toc a.is-active{color:var(--wb-brand);border-left-color:var(--wb-brand)}
.wbb-share{display:flex;gap:10px}
.wbb-share a,.wbb-share button{width:40px;height:40px;border-radius:12px;background:#fff;border:1px solid #e3e6f7;display:inline-flex;align-items:center;justify-content:center;color:#334155;cursor:pointer;font-size:15px;transition:.2s}
.wbb-share a:hover,.wbb-share button:hover{color:#fff;background:var(--wb-brand-2);border-color:var(--wb-brand-2)}

/* rich text coming from the editor (the page-wide reset removes margins, so restore them) */
.wbb-prose{font-size:18px;line-height:1.8;color:var(--wb-body);word-wrap:break-word}
.wbb-prose > *+*{margin-top:1.15em}
.wbb-prose h2{font-size:30px;color:var(--wb-ink);margin-top:1.8em;scroll-margin-top:96px}
.wbb-prose h3{font-size:23px;color:var(--wb-ink);margin-top:1.6em;scroll-margin-top:96px}
.wbb-prose h4{font-size:19px;color:var(--wb-ink);margin-top:1.4em}
.wbb-prose p{margin-top:1.1em}
.wbb-prose a{color:var(--wb-brand);text-decoration:underline;text-underline-offset:3px}
.wbb-prose strong{color:var(--wb-ink)}
.wbb-prose ul,.wbb-prose ol{padding-left:1.4em}
.wbb-prose li{margin-top:.45em}
.wbb-prose li::marker{color:var(--wb-brand)}
.wbb-prose blockquote{border-left:4px solid var(--wb-brand);background:var(--wb-soft);padding:18px 24px;border-radius:0 14px 14px 0;color:#1e293b;font-size:19px}
.wbb-prose img{border-radius:16px;height:auto;margin-top:1.4em}
.wbb-prose figure figcaption{font-size:14px;color:var(--wb-muted);text-align:center;margin-top:8px}
.wbb-prose table{width:100%;border-collapse:collapse;font-size:16px;display:block;overflow-x:auto}
.wbb-prose th,.wbb-prose td{border:1px solid var(--wb-line);padding:10px 14px;text-align:left;vertical-align:top}
.wbb-prose th{background:var(--wb-soft);color:var(--wb-ink);font-weight:600}
.wbb-prose code{background:#f1f5f9;padding:2px 6px;border-radius:6px;font-size:.9em}
.wbb-prose pre{background:#0f172a;color:#e2e8f0;padding:18px;border-radius:14px;overflow:auto;font-size:15px}
.wbb-prose pre code{background:none;padding:0}
.wbb-prose hr{border:0;border-top:1px solid var(--wb-line);margin:2em 0}
.wbb-prose iframe{max-width:100%;border-radius:14px}

.wbb-tags{display:flex;gap:8px;flex-wrap:wrap;margin-top:40px;padding-top:28px;border-top:1px solid var(--wb-line)}
.wbb-tags a{font-size:14px;padding:6px 14px;border-radius:999px;background:var(--wb-soft);color:#475569}
.wbb-tags a:hover{color:var(--wb-brand)}
.wbb-related{padding:70px 0 90px;background:linear-gradient(135deg,#f8f9ff 0%,#eef1fb 100%)}
.wbb-preview-bar{background:#fef3c7;color:#92400e;text-align:center;padding:10px 16px;font-size:14px;font-weight:500}
.wbb-preview-bar a{color:#92400e;text-decoration:underline}

/* ---------- 404 ---------- */
.wbb-404{padding:120px 0;text-align:center;background:linear-gradient(135deg,#f8f9ff 0%,#eef1fb 100%)}
.wbb-404 .code{font-size:clamp(80px,14vw,150px);font-weight:700;line-height:1}
.wbb-404 h1{font-size:30px;color:var(--wb-ink);margin:12px 0}
.wbb-404 p{color:#475569;font-size:17px;margin-bottom:28px}
.wbb-404 .wbb-btn{background:var(--wb-brand-2);color:#fff}

/* ---------- Responsive ---------- */
@media (max-width:1024px){
  .wbb-grid{grid-template-columns:repeat(2,1fr)}
  .wbb-featured{grid-template-columns:1fr}
  .wbb-featured .wbb-thumb{min-height:240px}
  .wbb-layout{grid-template-columns:1fr;gap:36px}
  .wbb-aside{position:static;order:2}
}
@media (max-width:640px){
  .wbb-wrap,.wbb-layout,.wbb-cover{padding:0 18px}
  .wbb-grid{grid-template-columns:1fr}
  .wbb-hero{padding:60px 0 40px}
  .wbb-featured .wbb-fbody{padding:28px 24px}
  .wbb-cta{padding:32px 24px}
  .wbb-prose{font-size:17px}
  .wbb-prose h2{font-size:25px}
}
