/* =========================================================
   TCCOM Articles Hub — styles (scoped to #tccom-hub)
   Cards use a fixed 16:9 image area so every thumbnail fits
   cleanly regardless of the uploaded image size.
   ========================================================= */
#tccom-hub{max-width:1200px;margin:0 auto;padding:30px 24px 60px}
#tccom-hub *{box-sizing:border-box}

/* hero */
#tccom-hub .hub-hero{background:linear-gradient(135deg,#0d59e0 0%,#0a4fc4 55%,#063a9e 100%);
  color:#fff;border-radius:16px;padding:34px 34px;margin-bottom:24px}
#tccom-hub .hub-crumb{font-size:13px;opacity:.85;margin-bottom:8px}
#tccom-hub .hub-crumb a{color:#fff;text-decoration:none;opacity:.9}
#tccom-hub .hub-hero h1{font-size:34px;font-weight:900;line-height:1.2;margin:0 0 8px;color:#fff}
#tccom-hub .hub-hero p{font-size:16px;line-height:1.55;opacity:.94;margin:0;max-width:660px}

/* filter chips */
#tccom-hub .hub-chips{display:flex;gap:10px;margin-bottom:22px;flex-wrap:wrap}
#tccom-hub .hub-chip{font-size:14px;font-weight:700;padding:8px 16px;border-radius:999px;
  border:1px solid #d6deea;color:#40506a;background:#fff;text-decoration:none;transition:.15s}
#tccom-hub .hub-chip:hover{border-color:#0a4fc4;color:#0a4fc4}
#tccom-hub .hub-chip.on{background:#0a4fc4;color:#fff;border-color:#0a4fc4}

/* grid */
#tccom-hub .hub-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
@media(max-width:900px){#tccom-hub .hub-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){#tccom-hub .hub-grid{grid-template-columns:1fr}}

/* card */
#tccom-hub .hub-card{display:flex;flex-direction:column;border:1px solid #e8ecf2;border-radius:14px;
  overflow:hidden;background:#fff;box-shadow:0 6px 20px rgba(15,40,90,.05);text-decoration:none;
  color:inherit;transition:transform .18s, box-shadow .18s}
#tccom-hub .hub-card:hover{transform:translateY(-4px);box-shadow:0 14px 34px rgba(15,40,90,.13)}

/* IMAGE AREA — fixed 16:9, image always cover-fits, never distorts */
#tccom-hub .card-thumb{position:relative;width:100%;aspect-ratio:16/9;background:#eef2f8;overflow:hidden}
#tccom-hub .card-thumb img{width:100%;height:100%;object-fit:cover;object-position:center;display:block}
#tccom-hub .thumb-fallback{width:100%;height:100%;display:flex;align-items:center;justify-content:center;
  font-size:54px;background:linear-gradient(135deg,#0a4fc4,#0d59e0);color:#fff}
#tccom-hub .card-tag{position:absolute;top:12px;left:12px;background:rgba(255,255,255,.96);color:#0a4fc4;
  font-size:12px;font-weight:800;padding:5px 12px;border-radius:999px}
#tccom-hub .card-tag.k{color:#1f7a4d}

/* card body */
#tccom-hub .card-body{padding:16px 18px 18px;display:flex;flex-direction:column;flex:1}
#tccom-hub .card-body h3{font-size:17px;font-weight:800;color:#0b2e63;line-height:1.35;margin:0 0 8px}
#tccom-hub .card-body h3{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
#tccom-hub .card-body p{font-size:13.5px;color:#5a6a80;line-height:1.55;margin:0;flex:1;
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
#tccom-hub .card-meta{display:flex;align-items:center;justify-content:space-between;margin-top:14px;
  font-size:13px;color:#8a97a8}
#tccom-hub .card-meta .readmore{color:#0a4fc4;font-weight:800}

/* misc */
#tccom-hub .hub-empty{grid-column:1/-1;text-align:center;color:#8a97a8;padding:40px 0}
#tccom-hub .hub-pagination{display:flex;gap:8px;justify-content:center;margin-top:34px;flex-wrap:wrap}
#tccom-hub .hub-pagination .page-numbers{display:inline-flex;min-width:40px;height:40px;align-items:center;
  justify-content:center;padding:0 12px;border:1px solid #d6deea;border-radius:8px;color:#40506a;
  text-decoration:none;font-weight:700}
#tccom-hub .hub-pagination .page-numbers.current{background:#0a4fc4;color:#fff;border-color:#0a4fc4}
#tccom-hub .hub-pagination a.page-numbers:hover{border-color:#0a4fc4;color:#0a4fc4}

/* =========================================================
   Single article — optional readable width + figure styling
   (only applies inside a post with class .tccom-article, or
   remove the selector prefix to apply to all posts)
   ========================================================= */
.tccom-article .post-crumb a{color:#0a4fc4;font-weight:700;text-decoration:none;font-size:14px}
.tccom-article .post-meta{color:#8a97a8;font-size:14px;margin-top:8px}
.tccom-article .post-cover{max-width:820px;margin:0 auto 26px}
.tccom-article .post-cover img{width:100%;height:auto;border-radius:14px;box-shadow:0 10px 30px rgba(10,40,90,.14)}
.tccom-article .post-footer-cta{max-width:760px;margin:36px auto 0;padding-top:20px;border-top:1px solid #e6ebf3}
.tccom-article .post-footer-cta a{color:#0a4fc4;font-weight:800;text-decoration:none}
.tccom-article .entry-content{max-width:760px;margin-left:auto;margin-right:auto;font-size:17px;line-height:1.75}
.tccom-article .entry-content h3{color:#0b2e63;font-weight:800;margin-top:1.3em}
.tccom-article .entry-content ul,.tccom-article .entry-content ol{margin:1em 0 1em 1.4em}
.tccom-article .entry-content blockquote{background:#eef3fd;border-left:4px solid #0a4fc4;margin:1.2em 0;padding:12px 18px;border-radius:6px}
.tccom-article .entry-content h2{color:#0a4fc4;font-weight:800;margin-top:1.6em}
.tccom-article .entry-content figure{margin:1.4em auto;text-align:center}
.tccom-article .entry-content figure img{border-radius:12px;box-shadow:0 8px 26px rgba(10,40,90,.14);max-width:340px}
.tccom-article .entry-content figcaption{font-size:13px;color:#6a7788;font-style:italic;margin-top:8px}

/* ---------- Separated STEP cards (numbered, mobile-friendly) ---------- */
.tccom-article .entry-content .steps-intro{display:flex;align-items:center;gap:10px;margin:1.8em 0 .2em;font-weight:900;color:#0b2e63;font-size:20px}
.tccom-article .entry-content .steps-intro .line{flex:1;height:2px;background:linear-gradient(90deg,#0a4fc4,transparent)}
.tccom-article .entry-content .step{border:1px solid #dbe6f6;border-radius:16px;background:#fff;margin:20px 0;overflow:hidden;box-shadow:0 5px 20px rgba(10,40,90,.07)}
.tccom-article .entry-content .step-head{display:flex;align-items:center;gap:15px;padding:16px 20px;background:linear-gradient(90deg,#e9f1fe,#f6faff);border-bottom:1px solid #e2ecfb}
.tccom-article .entry-content .step-num{flex:0 0 auto;width:46px;height:46px;border-radius:50%;background:#0a4fc4;color:#fff;font-weight:900;font-size:23px;display:flex;align-items:center;justify-content:center;box-shadow:0 5px 14px rgba(10,79,196,.38)}
.tccom-article .entry-content .step-head h2{margin:0;padding:0;font-size:20px;color:#0b2e63;line-height:1.3;border:0}
.tccom-article .entry-content .step-body{padding:16px 22px 20px}
.tccom-article .entry-content .step-body>p:first-child{margin-top:0}
.tccom-article .entry-content .step-body figure img{max-width:290px}
.tccom-article .entry-content .step-hint{background:#eef3fd;border-left:4px solid #0a4fc4;border-radius:6px;padding:10px 14px;margin-top:12px;font-size:14px}
@media(max-width:600px){
  .tccom-article .entry-content .step-head{padding:14px 15px;gap:12px}
  .tccom-article .entry-content .step-num{width:40px;height:40px;font-size:20px}
  .tccom-article .entry-content .step-head h2{font-size:18px}
  .tccom-article .entry-content .step-body{padding:14px 16px 18px}
}

/* ---------- Article components (lead, notes, do/dont, FAQ, CTA) ---------- */
.tccom-article .entry-content .lead{font-size:18px;color:#33415c}
.tccom-article .entry-content .note{background:#eef6ee;border-left:4px solid #37a24a;border-radius:6px;padding:11px 15px;margin:16px 0;font-size:15px}
.tccom-article .entry-content .note.blue{background:#eef3fd;border-left-color:#0a4fc4}
.tccom-article .entry-content .note.amber{background:#fff7e0;border-left-color:#e6a700}
.tccom-article .entry-content .do-dont{display:flex;gap:14px;margin:16px 0;flex-wrap:wrap}
.tccom-article .entry-content .do-dont>div{flex:1;min-width:250px;border-radius:10px;padding:14px 16px}
.tccom-article .entry-content .do-dont .do{background:#eef6ee;border:1px solid #cfe6d2}
.tccom-article .entry-content .do-dont .dont{background:#fdeeee;border:1px solid #f2cccc}
.tccom-article .entry-content .do-dont h4{margin:0 0 6px;font-size:16px}
.tccom-article .entry-content .do-dont .do h4{color:#2a8a3a}
.tccom-article .entry-content .do-dont .dont h4{color:#c0392b}
.tccom-article .entry-content .do-dont ul{margin:0 0 0 1.1em;font-size:14.5px}
.tccom-article .entry-content .faq q{display:block;font-weight:800;color:#0b2e63;margin-top:16px;font-size:17px}
.tccom-article .entry-content .cta{display:inline-block;background:#0a4fc4;color:#fff;font-weight:800;padding:13px 26px;border-radius:999px;margin:10px 0;text-decoration:none}
