/* Blog ByteCode School — stiluri de sine stătătoare (nu depind de main.css). */

:root {
  --bg: #05070a;
  --surface: #0d1218;
  --surface-2: #141b23;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #e6e9ee;
  --muted: #97a1ad;
  --white: #fff;
  --lime: #c8f023;
  --lime-soft: rgba(200, 240, 35, 0.12);
  --lime-ink: #0b0f05;
  --radius: 20px;
  --radius-sm: 12px;
  --wrap: 1200px;
  --font-display: "Space Grotesk", "Segoe UI", Arial, sans-serif;
  --font-body: "Poppins", "Segoe UI", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--bg);
  background-image: radial-gradient(900px 520px at 85% -120px, rgba(200, 240, 35, 0.11), transparent 65%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--white);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

em {
  font-style: normal;
  color: var(--lime);
}

button,
input {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--lime);
  color: var(--lime-ink);
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
}

.chip {
  display: inline-block;
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--lime-soft);
  border: 1px solid rgba(200, 240, 35, 0.28);
  color: var(--lime);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ---------- Butoane ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--lime);
  color: var(--lime-ink);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.btn:hover {
  background: #d6f94a;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(200, 240, 35, 0.22);
}

.btn:disabled {
  opacity: 0.7;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.btn--sm {
  padding: 10px 18px;
  font-size: 14px;
}

.btn--lg {
  padding: 18px 34px;
  font-size: 18px;
}

/* ---------- Navigare ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 10px 16px 0;
}

.site-nav__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 14px 10px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(9, 12, 16, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.site-nav__logo img {
  width: 96px;
  height: auto;
}

.site-nav__links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.site-nav__links a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.site-nav__links a:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
}

.site-nav__links a[aria-current] {
  color: var(--lime);
}

/* ---------- Pagina de listare ---------- */

.blog-hero {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 72px 24px 40px;
}

.blog-hero h1 {
  max-width: 16ch;
  margin-top: 18px;
  font-size: clamp(38px, 6.2vw, 76px);
  font-weight: 700;
}

.blog-hero > p {
  max-width: 62ch;
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 19px);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}

.filter {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.filter:hover {
  border-color: var(--lime);
}

.filter.is-active {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--lime-ink);
  font-weight: 600;
}

.posts {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px 40px;
}

.posts__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.posts > .posts__grid {
  margin-top: 24px;
}

.posts__empty {
  padding: 48px 0;
  color: var(--muted);
  text-align: center;
}

/* ---------- Carduri ---------- */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card[hidden] {
  display: none;
}

.card:not(.card--ebook):hover {
  transform: translateY(-4px);
  border-color: rgba(200, 240, 35, 0.45);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
}

.card__media {
  display: block;
  overflow: hidden;
  aspect-ratio: 1200 / 630;
  background: var(--surface-2);
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover .card__media img {
  transform: scale(1.04);
}

.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
  padding: 22px;
}

.card__title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--white);
}

.card__title a {
  text-decoration: none;
}

.card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.card__excerpt {
  color: var(--muted);
  font-size: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__meta {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.card__meta span::before {
  content: "·";
  margin-right: 8px;
}

.card--featured {
  flex-direction: row;
  align-items: center;
  border-radius: 28px;
  background: #07090d;
}

.card--featured .card__media {
  flex: 0 0 60%;
}

.card--featured .card__body {
  justify-content: center;
  gap: 16px;
  padding: 28px 36px;
}

.card--featured .card__title {
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.12;
}

.card--featured .card__excerpt {
  font-size: 16px;
  -webkit-line-clamp: 4;
}

.card--featured .card__meta {
  margin-top: 0;
}

.card--ebook {
  gap: 14px;
  justify-content: center;
  padding: 28px;
  border-color: rgba(200, 240, 35, 0.3);
  background: radial-gradient(420px 260px at 100% 0%, rgba(200, 240, 35, 0.16), transparent 70%), var(--surface);
}

.card--ebook .card__title {
  font-size: 26px;
}

.card--ebook .card__excerpt {
  display: block;
  color: var(--text);
}

/* ---------- Formular newsletter (folosit de js/newsletterFooter.js) ---------- */

.newsletter-form {
  display: grid;
  gap: 10px;
}

.newsletter-email {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: #111;
  font-size: 16px;
}

.newsletter-email:disabled {
  opacity: 0.6;
}

.newsletter-form .btn {
  width: 100%;
  border-radius: var(--radius-sm);
}

.newsletter-message {
  min-height: 0;
  font-size: 14px;
}

.newsletter-message:empty {
  display: none;
}

.newsletter-message.is-success {
  color: var(--lime);
}

.newsletter-message.is-error {
  color: #ff8a80;
}

/* ---------- Benzi CTA ---------- */

.band {
  max-width: var(--wrap);
  margin: 40px auto 0;
  padding: 0 24px;
}

.band__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
  padding: 48px;
  border: 1px solid rgba(200, 240, 35, 0.28);
  border-radius: 28px;
  background: radial-gradient(600px 300px at 0% 0%, rgba(200, 240, 35, 0.14), transparent 70%), var(--surface);
}

.band h2 {
  margin-top: 14px;
  font-size: clamp(26px, 3.2vw, 40px);
}

.band__inner > div > p {
  margin-top: 14px;
  color: var(--muted);
}

.band__actions {
  text-align: center;
}

.band__actions p {
  font-size: 14px;
}

.band--ebook .band__inner {
  display: block;
  padding: 0;
  border: 0;
  background: none;
}

/* ---------- Articol: antet ---------- */

.progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: 3px;
}

.progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
}

.post-header {
  max-width: 1102px;
  margin: 0 auto;
  padding: 56px 24px 36px;
}

.post-header h1,
.post-header__lead {
  max-width: 860px;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.crumbs a {
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--lime);
}

.crumbs span:last-child {
  color: var(--lime);
}

.post-header h1 {
  margin-top: 22px;
  font-size: clamp(32px, 4.8vw, 56px);
  font-weight: 700;
}

.post-header__lead {
  margin-top: 20px;
  color: var(--muted);
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.55;
}

.byline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.byline img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: #000;
}

.byline span {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.byline strong {
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
}

.byline small {
  color: var(--muted);
  font-size: 13px;
}

.post-cover {
  max-width: 1102px;
  margin: 0 auto;
  padding: 0 24px;
}

.post-cover img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 28px;
}

/* ---------- Articol: layout ---------- */

.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 720px) 270px;
  justify-content: center;
  gap: 64px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 56px 24px 24px;
}

.post-aside {
  order: 2;
}

.post-aside > * + * {
  margin-top: 20px;
}

@media (min-width: 1081px) {
  .post-aside {
    position: sticky;
    top: 96px;
    align-self: start;
    max-height: calc(100vh - 112px);
    overflow-y: auto;
  }
}

.toc {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.toc__title {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.toc ol {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 2px;
}

.toc a {
  display: block;
  padding: 7px 0 7px 14px;
  border-left: 2px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.toc a:hover,
.toc a.is-active {
  color: var(--white);
  border-left-color: var(--lime);
}

.aside-cta {
  padding: 22px;
  border: 1px solid rgba(200, 240, 35, 0.3);
  border-radius: var(--radius);
  background: radial-gradient(260px 160px at 100% 0%, rgba(200, 240, 35, 0.16), transparent 70%), var(--surface);
}

.aside-cta__title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--white);
}

.aside-cta p + p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.aside-cta .btn {
  margin-top: 16px;
  width: 100%;
}

/* ---------- Articol: text ---------- */

.prose {
  font-size: 18px;
  line-height: 1.75;
  min-width: 0;
}

.prose > * + * {
  margin-top: 22px;
}

.prose > :first-child {
  margin-top: 0;
}

.prose h2 {
  margin-top: 60px;
  font-size: clamp(25px, 2.8vw, 33px);
  font-weight: 700;
}

.prose h3 {
  margin-top: 40px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
}

.prose h2 + *,
.prose h3 + * {
  margin-top: 16px;
}

.prose strong {
  color: var(--white);
  font-weight: 600;
}

.prose a:not(.btn):not(.course-card) {
  color: var(--lime);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.prose a:not(.btn):not(.course-card):hover {
  text-decoration-thickness: 2px;
}

.prose ul,
.prose ol {
  padding-left: 24px;
}

.prose li + li {
  margin-top: 8px;
}

.prose li::marker {
  color: var(--lime);
  font-weight: 600;
}

.prose ul.checklist {
  padding-left: 0;
  list-style: none;
}

.prose ul.checklist li {
  position: relative;
  padding-left: 34px;
}

.prose ul.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 5px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--lime-ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.prose blockquote {
  margin-left: 0;
  margin-right: 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--lime);
  color: var(--white);
  font-size: 20px;
  font-style: italic;
  line-height: 1.55;
}

.prose blockquote cite {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
}

.prose code {
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--lime);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.88em;
}

.prose pre {
  overflow-x: auto;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #0a0e13;
  font-size: 15px;
  line-height: 1.6;
}

.prose pre code {
  padding: 0;
  background: none;
  color: #d7e3f0;
  font-size: inherit;
}

.prose figure {
  margin-left: 0;
  margin-right: 0;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.prose table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}

.prose th,
.prose td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.prose th {
  background: var(--surface-2);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
}

.prose tr:last-child td {
  border-bottom: 0;
}

.prose td:first-child {
  color: var(--white);
  font-weight: 600;
}

/* Casete */

.tldr {
  padding: 24px 26px;
  border: 1px solid rgba(200, 240, 35, 0.3);
  border-radius: var(--radius);
  background: var(--lime-soft);
  font-size: 17px;
}

.tldr > strong {
  display: block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
}

.tldr ul {
  margin: 12px 0 0;
}

.callout {
  padding: 22px 24px;
  border-left: 3px solid var(--lime);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--surface);
  font-size: 17px;
}

.callout__label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
}

.callout p + p {
  margin-top: 12px;
}

.takeaway {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-radius: var(--radius-sm);
  background: var(--lime);
  color: var(--lime-ink);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
}

.takeaway span {
  flex: none;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.7;
}

.versus {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  font-size: 16px;
}

.versus > div {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.versus > div:last-child {
  border-color: rgba(200, 240, 35, 0.3);
  background: radial-gradient(260px 160px at 100% 0%, rgba(200, 240, 35, 0.12), transparent 70%), var(--surface);
}

.versus h3 {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.versus > div:last-child h3 {
  color: var(--lime);
}

.versus ul {
  padding-left: 20px;
}

.versus > div:first-child li::marker {
  color: var(--muted);
}

/* Recenzie reală */

.review {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.review__photo {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
}

.review__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 24px 26px;
}

.prose .review blockquote {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 18px;
  font-style: normal;
  line-height: 1.55;
}

.review blockquote::before {
  content: "“";
  display: block;
  height: 26px;
  font-family: var(--font-display);
  font-size: 54px;
  line-height: 1;
  color: var(--lime);
}

.review figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  font-size: 14px;
  line-height: 1.35;
}

.review figcaption img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.review figcaption span {
  display: flex;
  flex-direction: column;
  margin-right: auto;
}

.review figcaption small {
  color: var(--muted);
  font-size: 13px;
}

.review figcaption a {
  font-size: 14px;
}

/* Video shorts */

.shorts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.shorts--1 {
  grid-template-columns: minmax(0, 260px);
  justify-content: center;
}

.shorts--2 {
  grid-template-columns: repeat(2, minmax(0, 260px));
  justify-content: center;
}

.short {
  margin: 0;
}

.short__play {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #000;
  cursor: pointer;
}

.short__play img,
.short__play iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.short__icon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--lime);
  transform: translate(-50%, -50%);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
  transition: transform 0.15s ease;
}

.short__icon::after {
  content: "";
  position: absolute;
  left: 54%;
  top: 50%;
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent var(--lime-ink);
  transform: translate(-50%, -50%);
}

.short__play:hover .short__icon {
  transform: translate(-50%, -50%) scale(1.08);
}

.short figcaption {
  margin-top: 10px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.4;
}

.short figcaption small {
  display: block;
  margin-bottom: 2px;
  color: var(--lime);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Carduri de curs */

.course-cards {
  display: grid;
  gap: 12px;
}

.prose .faq + .course-cards {
  margin-top: 40px;
}

.course-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px 14px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.course-card:hover {
  border-color: rgba(200, 240, 35, 0.45);
  transform: translateX(3px);
}

.course-card img {
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 14px;
  object-fit: cover;
}

.course-card__text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  line-height: 1.35;
}

.course-card__text small {
  color: var(--lime);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.course-card__text strong {
  font-family: var(--font-display);
  font-size: 18px;
}

.course-card__text span {
  color: var(--muted);
  font-size: 14px;
}

.course-card__arrow {
  color: var(--lime);
  font-size: 22px;
}

/* CTA în articol */

.cta-box {
  padding: 32px;
  border: 1px solid rgba(200, 240, 35, 0.32);
  border-radius: 24px;
  background: radial-gradient(420px 240px at 100% 0%, rgba(200, 240, 35, 0.18), transparent 70%), var(--surface);
  font-size: 16px;
  line-height: 1.6;
}

.cta-box__title {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 700;
  line-height: 1.18;
  color: var(--white);
}

.cta-box p + p {
  margin-top: 10px;
  color: var(--muted);
}

.cta-box .btn {
  margin-top: 22px;
}

.ebook-box {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  padding: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: var(--surface-2);
  font-size: 16px;
  line-height: 1.6;
}

.ebook-box__title {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
}

.ebook-box__text p + p {
  margin-top: 10px;
  color: var(--muted);
}

.ebook-box__trust {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.ebook-box--footer {
  padding: 48px;
  border-color: rgba(200, 240, 35, 0.28);
  border-radius: 28px;
  background: radial-gradient(600px 300px at 0% 0%, rgba(200, 240, 35, 0.14), transparent 70%), var(--surface);
}

/* Întrebări frecvente */

.faq {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.prose .faq + .faq {
  margin-top: 10px;
}

.faq summary {
  position: relative;
  padding: 18px 52px 18px 20px;
  color: var(--white);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  color: var(--lime);
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1;
  transform: translateY(-50%);
  transition: transform 0.2s ease;
}

.faq[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq p {
  padding: 0 20px 20px;
  font-size: 16px;
  line-height: 1.7;
}

/* Final de articol */

.share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.share span {
  flex: 1 1 100%;
  color: var(--white);
  font-weight: 600;
}

.share button {
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.share button:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.author-box {
  display: flex;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 15px;
  line-height: 1.6;
}

.author-box img {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: #000;
}

.author-box__name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
}

.author-box p + p {
  margin-top: 8px;
  color: var(--muted);
}

.related {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 56px 24px 0;
}

.related h2 {
  margin-bottom: 24px;
  font-size: clamp(26px, 3vw, 36px);
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 88px;
  border-top: 1px solid var(--line);
  background: #030406;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1.2fr 0.8fr 1.1fr;
  gap: 40px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 56px 24px 40px;
}

.site-footer__brand img {
  width: 132px;
}

.site-footer__brand p {
  max-width: 34ch;
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer__social {
  display: flex;
  gap: 14px;
  margin-top: 20px;
}

.site-footer__social img {
  width: 28px;
  height: 28px;
}

.site-footer h2 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-footer ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: 14px;
}

.site-footer ul a {
  text-decoration: none;
}

.site-footer ul a:hover {
  color: var(--lime);
}

.site-footer ul small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 20px 24px 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.site-footer__legal a {
  margin-left: 20px;
  text-decoration: none;
}

.site-footer__legal a:first-child {
  margin-left: 0;
}

.site-footer__legal a:hover {
  color: var(--lime);
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .post-layout {
    grid-template-columns: minmax(0, 720px);
    gap: 36px;
    padding-top: 40px;
  }

  .post-aside {
    order: 0;
  }

  .aside-cta {
    display: none;
  }

  .posts__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .card--featured {
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
  }

  .card--featured .card__media {
    flex: none;
  }

  .card--featured .card__body {
    padding: 26px;
  }

  .band__inner,
  .ebook-box {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .band__inner,
  .ebook-box--footer {
    padding: 32px 24px;
  }

  .band__actions {
    text-align: left;
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 84px;
  }

  .site-nav {
    padding: 8px 10px 0;
  }

  .site-nav__inner {
    gap: 8px;
    padding: 8px 8px 8px 14px;
    border-radius: 16px;
  }

  .site-nav__logo img {
    width: 78px;
  }

  .site-nav__links a {
    padding: 8px 9px;
    font-size: 14px;
  }

  .hide-sm {
    display: none;
  }

  .btn--sm {
    padding: 10px 14px;
    font-size: 13px;
  }

  .blog-hero {
    padding: 44px 18px 28px;
  }

  .filters {
    flex-wrap: nowrap;
    margin: 28px -18px 0;
    padding: 0 18px 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .filters::-webkit-scrollbar {
    display: none;
  }

  .filter {
    flex: none;
  }

  .posts,
  .band,
  .related {
    padding-left: 18px;
    padding-right: 18px;
  }

  .posts__grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .post-header {
    padding: 36px 18px 28px;
  }

  .post-cover {
    padding: 0 18px;
  }

  .post-cover img {
    border-radius: 18px;
  }

  .post-layout {
    padding: 28px 18px 16px;
  }

  .prose {
    font-size: 17px;
    line-height: 1.72;
  }

  .prose h2 {
    margin-top: 48px;
  }

  .tldr,
  .callout,
  .cta-box,
  .ebook-box {
    padding: 22px 20px;
  }

  .takeaway {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    font-size: 18px;
  }

  .versus {
    grid-template-columns: 1fr;
  }

  .review {
    grid-template-columns: 1fr;
  }

  .review__photo {
    height: 220px;
    min-height: 0;
    object-position: center 30%;
  }

  .review__body {
    padding: 20px;
  }

  /* shorts: rând cu derulare orizontală */
  .shorts,
  .shorts--2 {
    display: flex;
    gap: 12px;
    margin-left: -18px;
    margin-right: -18px;
    padding: 0 18px 4px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 18px;
    scrollbar-width: none;
  }

  .shorts::-webkit-scrollbar {
    display: none;
  }

  .shorts .short {
    flex: 0 0 62%;
    scroll-snap-align: start;
  }

  .shorts--1 {
    display: grid;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .course-card__arrow {
    display: none;
  }

  .author-box {
    flex-direction: column;
  }

  .site-footer {
    margin-top: 56px;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 18px 28px;
  }

  .site-footer__legal {
    flex-direction: column;
    padding: 20px 18px 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
