/* ---------- Page base ---------- */
html, body{
  background: #f8fbfe;
}

.ti-wrap{
  max-width: 1140px;
  margin: 0 auto;
  padding: 10px 16px 40px;
  color: #0b1220;
}

/* ---------- Hero (listing page header panel) ---------- */
.ti-hero{
  position:relative;
  overflow:hidden;
  border-radius:22px;
  background:
    linear-gradient(180deg, #eef2f7 0%, #f7f8fb 52%, #ffffff 100%);
  border:1px solid rgba(11,18,32,.06);
  box-shadow:0 24px 60px rgba(15,23,42,.08);
}
.ti-hero::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:0;
  height:220px;
  background:
    linear-gradient(180deg, rgba(15,23,42,.10), rgba(15,23,42,.04) 62%, rgba(15,23,42,0) 100%),
    radial-gradient(circle at top right, rgba(255,255,255,.30), transparent 34%);
  pointer-events:none;
}
.ti-hero__inner{
  position:relative;
  z-index:1;
  padding:26px 18px 4px;
}
.ti-hero__eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-bottom:12px;
  padding:7px 12px;
  border-radius:999px;
  background:rgba(11,18,32,.05);
  border:1px solid rgba(11,18,32,.08);
  color:#344054;
  font-size:12px;
  letter-spacing:.06em;
  text-transform:uppercase;
  font-weight:700;
}
.ti-title{
  margin:0 0 6px 0;
  letter-spacing:.2px;
  color:#0b1220;
}
.ti-subtitle{
  margin:0 0 14px 0;
  opacity:.85;
  max-width:85ch;
  color:rgba(11,18,32,.78);
}
.ti-hero__desc{
  margin:14px 0 0 0;
  max-width:860px;
  color:#344054;
  line-height:1.7;
  font-size:16px;
}
.ti-hero-rotator{
  margin-top:14px;
  min-height:30px;
}
.ti-hero-rotator__text{
  display:block;
  font-size:18px;
  line-height:1.5;
  font-weight:700;
  color:#1f2937;
  opacity:1;
  transition:opacity .35s ease, transform .35s ease;
}
.ti-hero-rotator__text.is-fading{
  opacity:0;
  transform:translateY(4px);
}
.ti-hero__stats{
  margin-top:18px;
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}
.ti-hero__stat{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  border-radius:999px;
  background:#ffffff;
  border:1px solid rgba(11,18,32,.08);
  color:#344054;
  font-size:13px;
  box-shadow:0 8px 18px rgba(15,23,42,.05);
}

/* ---------- Search ---------- */
.ti-filters-wrap{
  margin-top:22px;
  padding-top:4px;
}
.ti-search{
  display:flex;
  gap:10px;
  align-items:center;
  margin-top:10px;
}
.ti-search__input{
  flex:1 1 auto;
  min-width:220px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(11,18,32,.14);
  background:#ffffff;
  color:#0b1220;
  outline:none;
}
.ti-search__input::placeholder{ opacity:.7; }
.ti-search__btn{
  padding:10px 14px;
  border-radius:12px;
  border:1px solid #0b1220;
  background:#0b1220;
  color:#f2efe6;
  font-weight:800;
}
.ti-search__btn:hover{ filter: brightness(1.05); }

/* filter line */
.ti-filterline{
  margin-top:12px;
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  opacity:.95;
  color:rgba(11,18,32,.78);
}
.ti-chip{
  display:inline-block;
  padding:4px 10px;
  border-radius:999px;
  border:1px solid rgba(11,18,32,.14);
  background:rgba(11,18,32,.04);
  color:#0b1220;
  font-size:12px;
}
.ti-clear{
  color:#2b68b0;
  text-decoration:underline;
  text-underline-offset:3px;
}

/* ---------- Category cards (listing page) ---------- */
.ti-catgrid{
  margin-top:24px;
  display:flex;
  gap:12px;
  justify-content:center;
  flex-wrap:wrap;
  position:relative;
  z-index:2;
}
.ti-catcard{
  text-decoration:none;
  min-width:220px;
  max-width:260px;
  flex:1 1 220px;
  border-radius:14px;
  padding:12px 14px;
  border:1px solid rgba(11,18,32,.08);
  background:#ffffff;
  box-shadow:0 12px 28px rgba(15,23,42,.06);
  color:#0b1220;
  transition:transform .12s ease, background .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.ti-catcard:hover{
  transform:translateY(-2px);
  box-shadow:0 18px 36px rgba(15,23,42,.10);
}
.ti-catcard--active{
  border-color:rgba(11,18,32,.18);
  box-shadow:0 16px 34px rgba(15,23,42,.10);
}

/* ---------- Listing grid + cards ---------- */
.ti-grid{
  margin-top:26px;
  display:grid;
  grid-template-columns: repeat(2, minmax(420px, 1fr));
  gap:18px;
  max-width:1140px;
  margin-left:auto;
  margin-right:auto;
}
@media (max-width: 991.98px){
  .ti-grid{ grid-template-columns: 1fr; }
}

.ti-card{
  border:1px solid rgba(11,18,32,.10);
  background:#ffffff;
  border-radius:16px;
  padding:14px 14px 12px;
  box-shadow:0 10px 28px rgba(11,18,32,.08);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.ti-card:hover{
  transform:translateY(-2px);
  box-shadow:0 18px 44px rgba(0,0,0,.14);
  border-color:rgba(11,18,32,.14);
}

.ti-card__meta{
  margin-bottom:10px;
}
.ti-card__meta-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.ti-card__meta-sub{
  margin-top:10px;
}
.ti-date{
  font-size:12px;
  line-height:1.25;
  color:rgba(11,18,32,.70);
  white-space:normal;
}
.ti-tags{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.ti-tag{
  font-size:12px;
  color:#0b1220;
  text-decoration:none;
  border:1px solid rgba(11,18,32,.14);
  background:rgba(11,18,32,.04);
  padding:3px 8px;
  border-radius:999px;
  white-space:nowrap;
}
.ti-tag:hover{ background: rgba(11,18,32,.07); }

.ti-card__cat{
  display:inline-flex;
  align-items:center;
  padding:7px 11px;
  border-radius:999px;
  font-size:11px;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
  background:#f8f6ef;
  color:#0b1220;
  border:1px solid rgba(11,18,32,.08);
}

.ti-card__title{
  margin:0 0 8px 0;
  font-size:20px;
  line-height:1.2;
}
.ti-card__title a{ color:#0b1220; text-decoration:none; }
.ti-card__title a:hover{ text-decoration: underline; text-underline-offset: 3px; }

.ti-card__summary{
  margin:0 0 12px 0;
  color:rgba(11,18,32,.78);
  line-height:1.55;
  min-height:72px;
}
.ti-card__cta{
  display:flex;
  justify-content:flex-end;
}
.ti-read{
  color:#2b68b0;
  text-decoration:none;
  font-weight:800;
}
.ti-read:hover{ text-decoration: underline; text-underline-offset: 3px; }

.ti-empty{
  margin-top:18px;
  border:1px dashed rgba(11,18,32,.18);
  border-radius:16px;
  padding:18px;
  opacity:.9;
  background:#ffffff;
}

/* ---------- Listing page newsletter + CTA ---------- */
.ti-inline-news{
  margin-top:28px;
  background:#ffffff;
  border:1px solid rgba(11,18,32,.10);
  border-radius:18px;
  padding:22px;
}
.ti-inline-news h3{
  margin:0 0 8px 0;
  font-size:22px;
  line-height:1.2;
  color:#0b1220;
}
.ti-inline-news p{
  margin:0;
  color:#344054;
  line-height:1.7;
}
.ti-inline-news form{
  margin-top:16px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}
.ti-inline-news input,
.ti-inline-news select{
  min-height:44px;
  border-radius:10px;
  border:1px solid rgba(11,18,32,.12);
  padding:0 12px;
}
.ti-inline-news button{
  min-height:44px;
  border:0;
  border-radius:10px;
  padding:0 16px;
  background:#0b1220;
  color:#fff;
  font-weight:700;
}
.ti-inline-news-msg{
  display:none;
  margin-top:10px;
  font-size:13px;
}
.ti-inline-news-msg.is-visible{ display:block; }
.ti-inline-news-msg.ok{ color:#1f7a43; }
.ti-inline-news-msg.err{ color:#b42318; }

.ti-bottom-cta{
  margin-top:22px;
  background:#ffffff;
  border:1px solid rgba(11,18,32,.10);
  border-radius:18px;
  padding:22px;
}
.ti-bottom-cta h3{
  margin:0 0 8px 0;
  font-size:22px;
  line-height:1.2;
  color:#0b1220;
}
.ti-bottom-cta p{
  margin:0;
  color:#344054;
  line-height:1.7;
}
.ti-bottom-cta__actions{
  margin-top:16px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.ti-bottom-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:11px 16px;
  border-radius:10px;
  text-decoration:none;
  background:#0b1220;
  color:#ffffff;
  font-weight:700;
}
.ti-bottom-btn--ghost{
  background:#f8f6ef;
  color:#0b1220;
  border:1px solid rgba(11,18,32,.10);
}

.ti-pagination{
  margin-top:24px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:center;
  align-items:center;
}
.ti-page-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:42px;
  min-height:42px;
  padding:0 14px;
  border-radius:10px;
  text-decoration:none;
  background:#ffffff;
  color:#0b1220;
  border:1px solid rgba(11,18,32,.10);
  font-weight:700;
}
.ti-page-btn:hover{
  background:#f8f6ef;
}
.ti-page-btn.is-active{
  background:#0b1220;
  color:#ffffff;
  border-color:#0b1220;
}

/* ---------- Post page: hero band full-width BLACK ---------- */
.ti-post-hero{
  width:100%;
  background:#000;
  border-bottom:1px solid rgba(255,255,255,.10);
  padding-top:calc(var(--iqb-header-offset, 92px));
  padding-bottom:28px;
}
.ti-post-hero__inner{
  max-width:1140px;
  margin:0 auto;
  padding:0 16px;
  color:#f2efe6;
}
.ti-back{
  color:rgba(242,239,230,.90);
  text-decoration:none;
  font-weight:800;
}
.ti-back:hover{ text-decoration: underline; text-underline-offset: 3px; }

.ti-post-title{
  margin:10px 0 10px 0;
  color:#f2efe6;
  font-size:40px;
  line-height:1.12;
  letter-spacing:.2px;
}
.ti-post-deck{
  margin:0 0 22px 0;
  color:rgba(242,239,230,.85);
  font-size:18px;
  line-height:1.6;
  max-width:90ch;
}

.ti-post-meta{
  margin-top:18px;
  padding-top:10px;
  border-top:1px solid rgba(255,255,255,.10);
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  font-size:13px;
  color:rgba(242,239,230,.82);
}
.ti-post-meta .dot{ opacity:.55; }

.ti-post-langswitch{
  margin-top:16px;
  margin-bottom:10px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
}
.ti-post-langswitch a{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  border-radius:999px;
  text-decoration:none;
  border:1px solid rgba(255,255,255,.14);
  color:#f2efe6;
  background:rgba(255,255,255,.06);
}
.ti-post-langswitch a:hover{
  background:rgba(255,255,255,.10);
}

.ti-post-actions{
  margin-top:12px;
  display:flex;
  gap:12px;
  align-items:center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.ti-post-tags{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}
.ti-post-tools{
  display:flex;
  gap:10px;
  align-items:center;
}
.ti-tool-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color: rgba(242,239,230,.92);
  font-size: 13px;
  font-weight: 800;
  text-decoration:none;
}
.ti-tool-btn:hover{ background: rgba(255,255,255,.10); }

.ti-post-hero .ti-post-tags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.ti-post-hero .ti-tag{
  display:inline-flex;
  align-items:center;
  padding:8px 12px;
  border-radius:999px;
  text-decoration:none;
  font-size:12px;
  font-weight:600;
  color:#f2efe6;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.16);
}
.ti-post-hero .ti-tag:hover{
  background:rgba(255,255,255,.14);
  color:#ffffff;
  border-bottom-color:rgba(255,255,255,.28);
}

/* ---------- Post body ---------- */
.ti-post-body{
  max-width: 1140px;
  margin: 0 auto;
  padding: 26px 16px 40px;
}
.ti-article{
  border: 1px solid rgba(11,18,32,.10);
  background: #ffffff;
  border-radius: 16px;
  padding: 18px 18px 14px;
  box-shadow: 0 14px 40px rgba(11,18,32,.10);
}

.ti-content{
  max-width: 88ch;
  margin-left:auto;
  margin-right:auto;
  color:#0b1220;
  font-size: 18px;
  line-height: 1.8;
}

/* Typography normalization */
.ti-content p{ margin: 0 0 14px 0; color: rgba(11,18,32,.92); }
.ti-content h2{ margin: 26px 0 12px 0; font-size: 24px; color:#0b1220; }
.ti-content h3{ margin: 20px 0 10px 0; font-size: 19px; color:#0b1220; opacity:.95; }
.ti-content ul, .ti-content ol{ margin: 0 0 14px 22px; }
.ti-content li{ margin: 0 0 8px 0; }
.ti-content blockquote{
  margin: 16px 0;
  padding: 12px 14px;
  border-left: 3px solid rgba(43,104,176,.55);
  background: rgba(43,104,176,.08);
  border-radius: 12px;
  color: rgba(11,18,32,.92);
}
.ti-content a{
  color:#2b68b0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Code blocks on light */
.ti-content pre, .ti-content code{
  background: #f3f6fb;
  border: 1px solid rgba(11,18,32,.12);
  border-radius: 12px;
  padding: 10px 12px;
  overflow:auto;
  color:#0b1220;
}

/* Images ALWAYS centered and large */
.ti-content img,
.ti-content p img{
  display:block !important;
  margin: 18px auto !important;
  max-width: min(100%, 980px);
  height:auto !important;
  border-radius: 12px;
  border: 1px solid rgba(11,18,32,.10);
  box-shadow: 0 10px 28px rgba(11,18,32,.10);
}

/* Anchors not hidden behind fixed header */
.ti-content h2, .ti-content h3, .ti-content h4{
  scroll-margin-top: calc(var(--iqb-header-offset, 92px) + 14px);
}

/* ---------- Post page panels ---------- */
.ti-post-after{
  margin-top:34px;
  display:grid;
  gap:18px;
}
.ti-post-panel{
  background:#ffffff;
  border:1px solid rgba(11,18,32,.10);
  border-radius:16px;
  padding:18px;
}
.ti-post-panel h3{
  margin:0 0 10px 0;
  font-size:20px;
  line-height:1.2;
  color:#0b1220;
}
.ti-post-panel p{
  margin:0;
  color:#344054;
  line-height:1.7;
}
.ti-post-panel-actions{
  margin-top:14px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.ti-inline-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:11px 16px;
  border-radius:10px;
  background:#0b1220;
  color:#ffffff;
  text-decoration:none;
  font-weight:700;
}
.ti-inline-btn.ti-inline-btn--ghost{
  background:#f8f6ef;
  color:#0b1220;
  border:1px solid rgba(11,18,32,.10);
}
.ti-newsletter-mini{
  margin-top:8px;
}
.ti-newsletter-mini form{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}
.ti-newsletter-mini input,
.ti-newsletter-mini select{
  min-height:44px;
  border-radius:10px;
  border:1px solid rgba(11,18,32,.12);
  padding:0 12px;
}
.ti-newsletter-msg{
  display:none;
  margin-top:10px;
  font-size:13px;
}
.ti-newsletter-msg.is-visible{ display:block; }
.ti-newsletter-msg.ok{ color:#1f7a43; }
.ti-newsletter-msg.err{ color:#b42318; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px){
  .ti-post-title{ font-size: 30px; }
  .ti-content{ font-size: 16.5px; }
  .ti-card__summary{ min-height:0; }
  .ti-hero-rotator__text{ font-size:16px; }
}