/* =========================================================
   Blog page — builds on styles.css (tokens, header, band, footer, motion)
   ========================================================= */
[hidden] { display: none !important; }
.en { font-family: var(--font-wix); direction: ltr; unicode-bidi: isolate; }

/* ---------- Hero ---------- */
.hero--blog {
  height: max(480px, calc(540 * var(--u)));
  min-height: max(480px, calc(540 * var(--u)));
}
.hero--blog .hero__bg { object-position: center 45%; filter: saturate(.9); }
.hero--blog .hero__shade {
  background:
    radial-gradient(60% 70% at 50% 55%, rgba(0,0,0,.6), rgba(0,0,0,.82)),
    linear-gradient(0deg, #0e0e0f 0%, rgba(14,14,15,0) 35%);
}
.hero--blog .hero__content {
  inset: 0;
  top: 0;
  width: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 90px 20px 30px;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; margin-bottom: 14px;
  border: 1px solid rgba(245,170,3,.35); border-radius: 999px;
  background: rgba(245,170,3,.08);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: var(--yellow);
  font-size: max(13px, calc(15 * var(--u))); line-height: 1.5;
}
.hero__eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--yellow); box-shadow: 0 0 10px var(--yellow);
}
.hero--blog .hero__title { font-size: max(34px, calc(64 * var(--u))); line-height: 1.3; text-align: center; }
.hero--blog .hero__title span { color: var(--yellow); }
.hero--blog .hero__tagline { text-align: center; font-size: max(16px, calc(22 * var(--u))); margin-top: 6px; }

.search {
  margin-top: max(22px, calc(30 * var(--u)));
  width: min(520px, 100%);
  height: 54px;
  display: flex; align-items: center; gap: 10px;
  padding-inline: 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(20,20,20,.6);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: border-color .3s, box-shadow .3s;
}
.search:focus-within { border-color: rgba(245,170,3,.6); box-shadow: 0 0 0 4px rgba(245,170,3,.12); }
.search svg { width: 20px; height: 20px; fill: none; stroke: #9a9a9a; stroke-width: 2; stroke-linecap: round; flex-shrink: 0; }
.search input {
  flex: 1; min-width: 0;
  background: none; border: 0; outline: 0;
  color: #fff; font: inherit; font-size: 15px;
}
.search input::placeholder { color: #8a8a8a; }
.search input::-webkit-search-cancel-button { filter: invert(.6); }

/* ---------- Blog body ---------- */
.blog {
  background: #0e0e0f;
  padding: max(28px, calc(40 * var(--u))) var(--gutter) max(72px, calc(110 * var(--u)));
  position: relative;
}
.blog::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 140px;
  background: linear-gradient(180deg, rgba(14,14,15,0), #000);
  pointer-events: none;
}
.blog__inner { max-width: var(--container); margin: 0 auto; position: relative; z-index: 1; }

/* Filters */
.filters {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin-bottom: max(28px, calc(40 * var(--u)));
}
.filter {
  display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding-inline: 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.03);
  color: #cfcfcf;
  font: inherit; font-size: 14.5px;
  cursor: pointer;
  transition: background .3s, color .3s, border-color .3s;
}
.filter span {
  min-width: 22px; height: 22px; padding-inline: 6px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  font-size: 12px;
}
.filter:hover { border-color: rgba(245,170,3,.4); color: #fff; }
.filter.is-active { background: var(--yellow); border-color: var(--yellow); color: #000; font-weight: 500; }
.filter.is-active span { background: rgba(0,0,0,.15); }

/* Featured post */
.featured {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  background: radial-gradient(70% 100% at 0% 100%, rgba(245,170,3,.1), transparent), #141414;
  margin-bottom: max(24px, calc(32 * var(--u)));
  transition: border-color .4s;
}
.featured:hover { border-color: rgba(245,170,3,.35); }
.featured__media { order: 2; display: block; overflow: hidden; min-height: 320px; }
.featured__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.16,1,.3,1); }
.featured:hover .featured__media img { transform: scale(1.04); }
.featured__body {
  order: 1;
  padding: max(24px, calc(48 * var(--u)));
  display: flex; flex-direction: column; justify-content: center;
}
.featured__label { color: var(--yellow); font-size: 13.5px; font-weight: 500; margin-bottom: 12px; }
.featured__title { font-size: max(24px, calc(36 * var(--u))); font-weight: 700; line-height: 1.4; color: #f4f4f4; }
.featured__title a:hover { color: var(--yellow); }
.featured__excerpt {
  margin-top: 14px;
  color: #b9b9bb; font-weight: 300;
  font-size: max(15px, calc(17.5 * var(--u))); line-height: 1.95;
}
.featured .post__meta { margin-top: 22px; border-top: 1px solid rgba(255,255,255,.07); padding-top: 16px; }
.featured__more {
  align-self: flex-start;
  margin-top: 22px;
  display: inline-flex; align-items: center; gap: 8px;
  height: 46px; padding-inline: 24px;
  border-radius: 999px;
  background: var(--yellow); color: #080808;
  font-weight: 500;
  transition: transform .4s cubic-bezier(.16,1,.3,1), box-shadow .4s;
}
.featured__more:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(245,170,3,.3); }

/* Post grid */
.posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: max(16px, calc(24 * var(--u)));
}
.post {
  display: flex; flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  background: #141414;
  transition: transform .4s cubic-bezier(.16,1,.3,1), border-color .4s, box-shadow .4s;
}
.post:hover { transform: translateY(-4px); border-color: rgba(245,170,3,.35); box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.post__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.16,1,.3,1); }
.post:hover .post__media img { transform: scale(1.05); }
.post__chip {
  position: absolute; top: 12px; right: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,.6);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(245,170,3,.35);
  color: var(--yellow);
  font-size: 12.5px;
}
.post__body { flex: 1; display: flex; flex-direction: column; padding: 18px 20px 16px; }
.post__title { font-size: max(17px, calc(19.5 * var(--u))); font-weight: 500; line-height: 1.55; color: #f4f4f4; }
.post__title a { transition: color .3s; }
.post:hover .post__title a { color: var(--yellow); }
.post__excerpt {
  margin-top: 8px;
  color: #a9a9ab; font-weight: 300;
  font-size: 14.5px; line-height: 1.9;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.post__meta {
  margin-top: auto;
  padding-top: 14px;
  display: flex; align-items: center; gap: 16px;
  color: #8d8d8f; font-size: 13px;
}
.post__body .post__meta { border-top: 1px solid rgba(255,255,255,.07); margin-top: 16px; }
.post__meta span, .post__like { display: inline-flex; align-items: center; gap: 6px; }
.post__meta svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.post__like {
  margin-inline-start: auto;
  background: none; border: 0; padding: 0;
  color: inherit; font: inherit; cursor: pointer;
  transition: color .3s;
}
.post__like b { font-weight: 400; }
.post__like:hover { color: #ff6b81; }
.post__like.is-liked { color: #ff4d6a; }
.post__like.is-liked svg { fill: currentColor; animation: pop .45s cubic-bezier(.16,1,.3,1); }
@keyframes pop { 0% { transform: scale(.6); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }

.blog__empty { text-align: center; color: #9a9a9a; padding: 40px 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .posts { grid-template-columns: repeat(2, 1fr); }
  .featured { grid-template-columns: 1fr; }
  .featured__media { order: 1; min-height: 0; aspect-ratio: 16 / 9; }
  .featured__body { order: 2; }
}
@media (max-width: 760px) {
  .hero--blog { min-height: 520px; }
  .hero--blog .hero__content { position: absolute; inset: 0; padding: 90px 20px 30px; }
  .hero--blog .hero__title { font-size: 34px; }
  .search { height: 50px; }
  .blog { padding-inline: 16px; }
  .filters { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin-inline: -16px; padding: 2px 16px 6px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex-shrink: 0; }
  .featured__body { padding: 20px; }
  .featured__more { align-self: stretch; justify-content: center; }
}
@media (max-width: 560px) {
  .posts { grid-template-columns: 1fr; }
}
