/* Public blog — listing + article. Pairs with main.css / Bootstrap 5. */

/* ============================ LISTING ============================ */

.blog-list-area .blog-cat-filter{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}
.blog-chip{
  display:inline-block;padding:8px 18px;border-radius:999px;border:1px solid #e2e6ee;
  color:#5b6472;font-weight:600;font-size:14px;background:#fff;transition:all .2s ease;
}
.blog-chip:hover{border-color:#0FC8E6;color:#0FC8E6;text-decoration:none}
.blog-chip.active{background:#040021;border-color:#040021;color:#fff}

.blog-card{
  display:flex;flex-direction:column;background:#fff;border:1px solid #eceef3;border-radius:16px;
  overflow:hidden;transition:transform .3s ease,box-shadow .3s ease;
}
.blog-card:hover{transform:translateY(-6px);box-shadow:0 22px 50px rgba(4,0,33,.10)}
.blog-card__media{display:block;aspect-ratio:16/9;background:#0f172a;overflow:hidden;position:relative}
.blog-card__media img{width:100%;height:100%;object-fit:cover;transition:transform .4s ease}
.blog-card:hover .blog-card__media img{transform:scale(1.05)}
.blog-card__ph{
  position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;
  background:linear-gradient(135deg,#0F172A 0%,#123244 55%,#0a5b6e 100%);overflow:hidden;
}
.blog-card__ph::before{
  content:"";position:absolute;inset:0;
  background:radial-gradient(circle at 75% 18%,rgba(15,200,230,.28),transparent 60%);
}
.blog-card__ph i{position:relative;font-size:32px;color:rgba(255,255,255,.55)}
.blog-card__ph em{
  position:relative;font-style:normal;font-size:11px;font-weight:700;letter-spacing:.1em;
  text-transform:uppercase;color:rgba(255,255,255,.4);
}
.blog-card__body{padding:22px 22px 24px;display:flex;flex-direction:column;gap:10px;flex:1}
.blog-card__meta{display:flex;flex-wrap:wrap;gap:6px;align-items:center;font-size:12.5px;color:#8a93a3}
.blog-card__meta a{color:#0FC8E6;font-weight:700}
.blog-card__title{font-size:19px;line-height:1.4;font-weight:700;margin:0}
.blog-card__title a{color:#040021}
.blog-card__title a:hover{color:#0FC8E6}
.blog-card__excerpt{font-size:14px;color:#5b6472;margin:0;flex:1}
.blog-card__more{font-weight:700;font-size:13.5px;color:#040021}
.blog-card__more i{transition:transform .2s ease}
.blog-card__more:hover{color:#0FC8E6}
.blog-card__more:hover i{transform:translateX(4px)}

.blog-empty{border:2px dashed #e2e6ee;border-radius:18px}

.blog-chip__n{
  display:inline-block;min-width:18px;padding:0 5px;margin-left:4px;border-radius:999px;
  background:#eef1f6;color:#8a93a3;font-size:11px;font-weight:700;line-height:16px;text-align:center;
}
.blog-chip.active .blog-chip__n{background:rgba(255,255,255,.25);color:#fff}

.blog-topics{border-top:1px solid #eceef3;padding-top:36px}
.blog-topics__title{font-size:16px;font-weight:750;color:#040021;margin:0 0 16px;text-transform:uppercase;letter-spacing:.04em}
.blog-topics__list{display:flex;flex-wrap:wrap;gap:8px}
.mt-70{margin-top:70px}
.mb-40{margin-bottom:40px}

.blog-pager a{
  display:inline-block;min-width:40px;padding:9px 12px;margin:0 4px;border-radius:10px;
  border:1px solid #e2e6ee;color:#5b6472;font-weight:700;
}
.blog-pager a.active,.blog-pager a:hover{background:#040021;border-color:#040021;color:#fff;text-decoration:none}

/* ========================= SINGLE ARTICLE ========================= */

.blog-preview-bar{
  background:#fff3cd;border-bottom:1px solid #ffe69c;color:#664d03;
  text-align:center;padding:10px 16px;font-size:13.5px;
}

/* ---- Article masthead ------------------------------------------------
   The site's nav is transparent + absolutely positioned with a WHITE logo/
   menu (see .header__main / .main-menu ul li a in main.css) — it only reads
   over a dark background. So .post-hero__bar is a slim dark strip sized to
   just clear the nav (measured: ~101px desktop / ~81px ≤991px), then the
   real masthead breaks into its own light, editorial layout — deliberately
   distinct from .page-title-area, which every other page on the site uses. */
.post-hero{background:#fff}

.post-hero__bar{
  background:linear-gradient(135deg,#0F172A 0%,#1E293B 100%);
  padding:140px 0 20px;
}
@media (max-width:991px){.post-hero__bar{padding:112px 0 16px}}

.post-hero__crumbs{
  display:flex;flex-wrap:wrap;align-items:center;gap:8px;
  font-size:12.5px;color:rgba(255,255,255,.45);
}
.post-hero__crumbs a{color:rgba(255,255,255,.82);font-weight:500}
.post-hero__crumbs a:hover{color:#0FC8E6;text-decoration:none}
.post-hero__crumbs span{color:rgba(255,255,255,.3)}

.post-hero__body{
  position:relative;overflow:hidden;
  background:linear-gradient(180deg,#eefbfc 0%,#ffffff 62%);
  padding:40px 0 0;
}
.post-hero__body::before{
  content:"";position:absolute;top:-140px;right:-120px;width:440px;height:440px;
  border-radius:50%;background:radial-gradient(circle,rgba(15,200,230,.18),transparent 70%);
  pointer-events:none;
}
.post-hero__body > .container{position:relative}

.post-hero__tag{
  display:inline-block;background:rgba(15,200,230,.12);color:#0a7c90;font-weight:700;
  font-size:12px;letter-spacing:.06em;text-transform:uppercase;padding:7px 16px;
  border-radius:999px;margin-bottom:22px;
}
.post-hero__tag:hover{background:rgba(15,200,230,.22);color:#0a7c90;text-decoration:none}

.post-hero__title{
  font-family:"Newsreader",Georgia,"Times New Roman",serif;font-weight:600;
  font-size:clamp(30px,4.6vw,52px);line-height:1.16;letter-spacing:-.01em;
  color:#0b0f2a;max-width:850px;margin:0;text-wrap:balance;
}

.post-hero__dek{
  font-size:18.5px;line-height:1.62;color:#57616f;max-width:660px;margin:20px 0 0;
}

/* listing variant: no byline/cover follows, so the section needs its own
   bottom breathing room (the article variant gets that from the byline/cover instead) */
.post-hero--listing .post-hero__body{padding-bottom:48px}
.post-hero--listing .post-hero__tag{background:transparent;border:1px solid rgba(15,200,230,.4);cursor:default}
.post-hero--listing .post-hero__dek{max-width:700px}

.post-hero__byline{display:flex;align-items:center;gap:13px;margin:32px 0 40px}
.post-hero__avatar{
  flex:0 0 auto;width:42px;height:42px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,#0F172A,#0a7c90);color:#fff;
  font-weight:700;font-size:12.5px;letter-spacing:.02em;
}
.post-hero__byline strong{display:block;color:#040021;font-size:14.5px;line-height:1.4}
.post-hero__bydot{color:#8a93a3;font-size:13px}

@media (max-width:575px){
  .post-hero__byline{margin:26px 0 30px}
}
/* named .post-body (not .blog-single) — the theme's main.css already defines an
   unrelated, unused .blog-single rule from a dead template; reusing that name
   made this article wrapper depend on load order to win the cascade. */
.post-body{padding:52px 0 40px}

/* one column by default; two only when there are related posts */
.post-body__wrap{max-width:760px;margin:0 auto}
.post-body__wrap.has-aside{
  max-width:1120px;display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:60px;align-items:start;
}
@media (max-width:991px){
  .post-body__wrap.has-aside{grid-template-columns:1fr;gap:32px;max-width:760px}
}

/* rendered markdown */
.blog-body{font-size:17.5px;line-height:1.85;color:#33404f}
.blog-body>*:first-child{margin-top:0}
.blog-body h2{font-size:28px;font-weight:750;color:#040021;margin:2.2rem 0 .7rem;letter-spacing:-.01em}
.blog-body h3{font-size:21px;font-weight:700;color:#040021;margin:1.8rem 0 .5rem}
.blog-body h4{font-size:18px;font-weight:700;color:#040021;margin:1.5rem 0 .5rem}
.blog-body p{margin:0 0 1.3rem}
.blog-body a{color:#0a7c90;text-decoration:underline;text-underline-offset:2px}
.blog-body a:hover{color:#0FC8E6}
.blog-body ul,.blog-body ol{margin:0 0 1.3rem;padding-left:1.4em}
.blog-body li{margin:.45rem 0}
.blog-body li::marker{color:#0FC8E6}
.blog-body blockquote{
  margin:1.8rem 0;padding:16px 24px;border-left:4px solid #0FC8E6;background:#f4feff;
  color:#334;border-radius:0 12px 12px 0;font-size:16.5px;
}
.blog-body blockquote p{margin:0}
.blog-body img{border-radius:12px;margin:1.6rem 0;display:block}
.blog-body pre{
  background:#0f172a;color:#e2e8f0;padding:20px 22px;border-radius:14px;overflow:auto;
  font-size:14px;line-height:1.65;margin:1.8rem 0;
}
.blog-body :not(pre)>code{
  background:#eef1f6;color:#b4315f;padding:2px 6px;border-radius:6px;font-size:.88em;
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
}
.blog-body pre code{background:none;color:inherit;padding:0;font-size:inherit}
.blog-body table{width:100%;border-collapse:collapse;margin:1.8rem 0;font-size:15px}
.blog-body th,.blog-body td{border:1px solid #e2e6ee;padding:10px 14px;text-align:left}
.blog-body th{background:#f6f8fb}
.blog-body hr{border:0;border-top:1px solid #e2e6ee;margin:2.6rem 0}

.blog-tags{display:flex;flex-wrap:wrap;gap:8px;margin:40px 0 0}
.blog-tag{
  background:#f2f4f8;color:#5b6472;font-size:12.5px;font-weight:600;padding:5px 12px;border-radius:999px;
  transition:background .2s ease,color .2s ease;
}
a.blog-tag:hover{background:#0FC8E6;color:#fff;text-decoration:none}

.blog-share{
  display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px;
  margin:36px 0 0;border-top:1px solid #eceef3;padding-top:24px;
}
.blog-share__label{font-weight:700;color:#040021;font-size:13px;text-transform:uppercase;letter-spacing:.05em}
.blog-share__links{display:flex;align-items:center;gap:10px}
.blog-share__link{
  width:42px;height:42px;display:inline-flex;align-items:center;justify-content:center;
  border-radius:12px;border:1px solid #e2e6ee;background:#fff;color:#5b6472;font-size:15px;
  cursor:pointer;transition:transform .18s ease,box-shadow .18s ease,background-color .18s ease,
    border-color .18s ease,color .18s ease;
}
.blog-share__link:hover,.blog-share__link:focus-visible{
  background:#0FC8E6;border-color:#0FC8E6;color:#fff;text-decoration:none;
  transform:translateY(-3px);box-shadow:0 10px 22px rgba(15,200,230,.32);
}
.blog-share__link.is-copied{background:#17a869;border-color:#17a869;color:#fff}

.blog-aside{position:sticky;top:110px}
@media (max-width:991px){.blog-aside{position:static}}
.blog-aside__box{background:#f8fafc;border:1px solid #eceef3;border-radius:16px;padding:24px}
.blog-aside__box h4{
  font-size:13px;font-weight:750;color:#040021;margin:0 0 16px;
  text-transform:uppercase;letter-spacing:.05em;
}
.blog-aside__box ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:14px}
.blog-aside__box a{color:#2c333f;font-weight:600;font-size:14.5px;line-height:1.45}
.blog-aside__box a:hover{color:#0FC8E6;text-decoration:none}
