/* ΕΛΤΕΧΝΙΚΑ: Άρθρα & Νέα */

/* ---------- intro ---------- */
.arthra-intro__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 100px); align-items: end; }
.arthra-intro .fill-words .fw { color: #b9c1ce; }
.arthra-intro__sub { margin-top: 24px; color: var(--mute); font-size: 17px; max-width: 560px; }

/* ---------- toolbar: category chips ---------- */
.blog__bar { display: flex; align-items: center; justify-content: space-between; gap: 20px 30px; flex-wrap: wrap; margin-bottom: clamp(30px, 4vw, 54px); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  position: relative; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 99px;
  background: #fff; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; isolation: isolate;
  font: 600 14px/1 var(--f-b); color: var(--ink-2); transition: color .4s var(--ease), box-shadow .4s;
}
.chip::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: translateY(101%); transition: transform .5s var(--ease); border-radius: inherit; }
.chip:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.chip.is-on { color: #fff; box-shadow: none; }
.chip.is-on::before { transform: none; background: var(--blue); }
.chip i { font: 800 13px/1 var(--f-d); font-style: normal; letter-spacing: .04em; opacity: .55; }
.chip:focus-visible { outline: 3px solid var(--blue-l); outline-offset: 2px; }
.blog__count { font: 700 12px/1 var(--f-b); letter-spacing: .18em; text-transform: uppercase; color: var(--mute); white-space: nowrap; }
.blog__count b { font: 900 30px/1 var(--f-d); color: var(--ink); letter-spacing: 0; margin-right: 6px; vertical-align: -4px; }

/* ---------- posts ---------- */
.post { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: 8px; overflow: hidden; transition: box-shadow .5s var(--ease), transform .5s var(--ease); }
.post:hover { box-shadow: 0 30px 60px -28px rgba(11,18,32,.35); transform: translateY(-6px); }
.post[hidden] { display: none; }
.post__media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: #dde2ea; }
.post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.post:hover .post__media img { transform: scale(1.06); }
.post__body { display: flex; flex-direction: column; flex: 1; padding: clamp(22px, 2.2vw, 32px); }
.post__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.post__cat, .post__flag { padding: 7px 12px; border-radius: 99px; font: 700 11px/1 var(--f-b); letter-spacing: .14em; text-transform: uppercase; }
.post__cat { background: rgba(44,88,161,.1); color: var(--blue); }
.post__flag { background: var(--ink); color: #fff; }
.post__title { font: 800 clamp(26px, 2vw, 32px)/1.02 var(--f-d); text-transform: uppercase; letter-spacing: .005em; }
.post__title a { background: linear-gradient(currentColor, currentColor) 0 calc(100% - .2em) / 0 2px no-repeat; /* just under the baseline: the tight line-height would put 100% on the next line */ transition: background-size .5s var(--ease), color .3s; }
/* the title link covers the whole card */
.post__title a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.post:hover .post__title a { color: var(--blue); background-size: 100% 2px; }
.post__title a:focus-visible { outline: none; }
.post:has(.post__title a:focus-visible) { outline: 3px solid var(--blue); outline-offset: 3px; }
.post__ex { margin-top: 14px; color: var(--mute); font-size: 15.5px; }
.post__more { margin-top: auto; padding-top: 22px; display: inline-flex; align-items: center; gap: 10px; font: 700 13px/1 var(--f-b); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.post__more svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .4s var(--ease); }
.post:hover .post__more { color: var(--blue); }
.post:hover .post__more svg { transform: translateX(6px); }

/* featured */
.post--feat { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); margin-bottom: clamp(20px, 2.4vw, 34px); }
.post--feat .post__media { aspect-ratio: auto; min-height: 460px; }
.post--feat .post__media img { position: absolute; inset: 0; }
.post--feat .post__body { justify-content: center; padding: clamp(28px, 4vw, 64px); }
.post--feat .post__title { font-size: clamp(36px, 3.6vw, 60px); line-height: .95; }
.post--feat .post__ex { font-size: 17px; margin-top: 20px; max-width: 460px; }
.post--feat .link-arrow { margin-top: 30px; align-self: flex-start; }
.post--feat:hover .link-arrow { color: var(--blue); border-color: var(--blue); }

.blog__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 34px); }
.blog__grid .post { grid-column: span 2; }
/* editorial rhythm: two wide cards, then three */
.blog__grid .post:nth-child(-n+2) { grid-column: span 3; }
.blog__grid .post:nth-child(-n+2) .post__media { aspect-ratio: 16/9; }
.blog__empty { padding: 60px 0; text-align: center; color: var(--mute); }

@media (max-width: 1080px) {
  .arthra-intro__grid { grid-template-columns: 1fr; }
  .blog__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blog__grid .post, .blog__grid .post:nth-child(-n+2) { grid-column: auto; }
  .blog__grid .post:first-child { grid-column: 1 / -1; }
  .post--feat { grid-template-columns: 1fr; }
  .post--feat .post__media { min-height: 0; aspect-ratio: 16/9; }
}
@media (max-width: 760px) {
  .blog__grid { grid-template-columns: 1fr; }
  .blog__grid .post:first-child { grid-column: auto; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--pad) * -1); padding: 2px var(--pad); scrollbar-width: none; max-width: 100vw; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; height: 40px; padding: 0 14px; font-size: 13px; }
  .blog__bar { flex-direction: column; align-items: flex-start; }
  .post--feat .post__title { font-size: 34px; }
}
