/* Listing pages: jobs, blog, tech updates, study materials, FAQ.  Classes are prefixed ls-. */

/* ── header: title, one line, search, filter chips ── */
.ls-head { background: linear-gradient(180deg, var(--accent-light) 0%, transparent 100%); border-bottom: 1px solid var(--border); padding: 30px 0 0; }
.ls-head__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; }
.ls-head h1 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; color: var(--text-primary); }
.ls-head p { margin: 6px 0 0; font-size: .95rem; color: var(--text-secondary); max-width: 46ch; }
.ls-search { position: relative; flex: 0 1 360px; width: 100%; max-width: 360px; }
.ls-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.ls-search input { width: 100%; height: 44px; padding: 0 44px 0 40px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-card); font: inherit; font-size: .92rem; color: var(--text-primary); transition: border-color .15s ease, box-shadow .15s ease; }
.ls-search input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.ls-search a { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--text-muted); text-decoration: none; }
.ls-search a:hover { background: var(--bg-secondary); color: var(--text-primary); }
.ls-chips { display: flex; gap: 8px; margin-top: 22px; padding-bottom: 14px; overflow-x: auto; scrollbar-width: none; }
.ls-chips::-webkit-scrollbar { display: none; }
.ls-chip { flex: none; display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-card); font-size: .84rem; font-weight: 600; color: var(--text-secondary); text-decoration: none; white-space: nowrap; transition: all .15s ease; }
.ls-chip:hover { border-color: var(--accent); color: var(--accent); }
.ls-chip.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── body ── */
.ls-main { padding-top: 28px; padding-bottom: 56px; }
.ls-count { margin: 0 0 16px; font-size: .84rem; color: var(--text-muted); }
.ls-count b { color: var(--text-primary); font-weight: 700; }
.ls-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ls-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 16px; border: 1px solid var(--border); background: var(--bg-card); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.ls-card:hover { transform: translateY(-3px); border-color: var(--border-strong, var(--border)); box-shadow: 0 16px 30px -22px rgba(15, 23, 42, .45); }
.ls-card__media { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--bg-secondary); overflow: hidden; }
.ls-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.ls-card:hover .ls-card__media img { transform: scale(1.04); }
.ls-card__ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; font-weight: 800; letter-spacing: .02em; color: var(--accent); background: linear-gradient(135deg, var(--accent-light), var(--bg-secondary)); }
.ls-new { position: absolute; left: 10px; top: 10px; padding: 3px 10px; border-radius: 999px; background: #16a34a; color: #fff; font-size: .68rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.ls-card__body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 14px 16px 16px; }
.ls-meta { display: flex; align-items: center; gap: 8px; font-size: .74rem; color: var(--text-muted); }
.ls-meta b { font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ls-meta i { flex: none; width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .5; }
.ls-title { margin: 0; font-size: 1rem; font-weight: 700; line-height: 1.35; color: var(--text-primary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ls-title a { color: inherit; text-decoration: none; }
.ls-card:hover .ls-title a { color: var(--accent); }
.ls-desc { margin: 0; font-size: .85rem; line-height: 1.5; color: var(--text-secondary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ls-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); font-size: .78rem; color: var(--text-muted); }
.ls-go { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: var(--accent); text-decoration: none; white-space: nowrap; }
.ls-go svg { transition: transform .15s ease; }
.ls-card:hover .ls-go svg { transform: translateX(3px); }
.ls-price { font-size: 1rem; font-weight: 800; color: var(--text-primary); }
.ls-price s { margin-left: 6px; font-size: .78rem; font-weight: 500; color: var(--text-muted); }
.ls-price--free { color: #16a34a; }
.ls-btn { display: inline-flex; align-items: center; justify-content: center; height: 34px; padding: 0 16px; border-radius: 10px; background: var(--accent); color: #fff; font-size: .82rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.ls-btn:hover { filter: brightness(1.08); color: #fff; }
.ls-pager { margin-top: 32px; }

/* list layout (tech updates) */
.ls-list { display: flex; flex-direction: column; gap: 12px; max-width: 860px; }
.ls-row { display: flex; align-items: center; gap: 16px; padding: 12px; border-radius: 14px; border: 1px solid var(--border); background: var(--bg-card); text-decoration: none; transition: border-color .2s ease, box-shadow .2s ease; }
.ls-row:hover { border-color: var(--accent); box-shadow: 0 12px 26px -22px rgba(15, 23, 42, .5); }
.ls-row__img { flex: none; width: 128px; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--bg-secondary); }
.ls-row__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ls-row__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ls-row .ls-title { font-size: .98rem; }
.ls-row__go { flex: none; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--bg-secondary); color: var(--accent); transition: all .15s ease; }
.ls-row:hover .ls-row__go { background: var(--accent); color: #fff; }

/* empty */
.ls-empty { max-width: 400px; margin: 40px auto; text-align: center; }
.ls-empty__ico { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--accent-light); color: var(--accent); }
.ls-empty h2 { margin: 0 0 6px; font-size: 1.1rem; font-weight: 700; }
.ls-empty p { margin: 0 0 18px; font-size: .88rem; color: var(--text-muted); }

/* FAQ */
.ls-faq { max-width: 780px; padding-top: 24px; padding-bottom: 56px; }
.ls-faq__group[hidden] { display: none; }
.ls-faq__group { margin-bottom: 28px; }
.ls-faq__group h2 { margin: 0 0 10px; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.ls-q { border: 1px solid var(--border); border-radius: 12px; background: var(--bg-card); margin-bottom: 8px; overflow: hidden; transition: border-color .15s ease; }
.ls-q[open] { border-color: var(--accent); }
.ls-q summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; font-size: .94rem; font-weight: 600; color: var(--text-primary); }
.ls-q summary::-webkit-details-marker { display: none; }
.ls-q summary svg { flex: none; color: var(--accent); transition: transform .2s ease; }
.ls-q[open] summary svg { transform: rotate(180deg); }
.ls-q__a { padding: 0 16px 16px; font-size: .9rem; line-height: 1.65; color: var(--text-secondary); }
.ls-help { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 12px; padding: 18px 20px; border-radius: 14px; border: 1px solid var(--border); background: var(--bg-card); }
.ls-help b { font-size: .98rem; color: var(--text-primary); }
.ls-help span { display: block; margin-top: 2px; font-size: .84rem; color: var(--text-muted); }

@media (max-width: 1020px) { .ls-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .ls-head { padding-top: 20px; }
  .ls-head h1 { font-size: 1.4rem; }
  .ls-head p { font-size: .86rem; }
  .ls-head__row { gap: 14px; }
  .ls-search { flex-basis: 100%; max-width: none; }
  .ls-chips { margin-top: 16px; margin-inline: -16px; padding-inline: 16px; }
  .ls-chip { height: 34px; padding: 0 14px; font-size: .8rem; }
  .ls-main { padding-top: 20px; padding-bottom: 40px; }
  .ls-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .ls-card { border-radius: 14px; }
  .ls-card__body { padding: 12px 14px 14px; }
  .ls-title { font-size: .95rem; }
  .ls-row { gap: 12px; padding: 10px; }
  .ls-row__img { width: 96px; }
  .ls-row .ls-title { font-size: .9rem; }
  .ls-row__go { display: none; }
  .ls-q summary { padding: 12px 14px; font-size: .88rem; }
  .ls-q__a { padding: 0 14px 14px; font-size: .84rem; }
  .ls-help { padding: 16px; }
}
