.eb-blog {
  padding: 32px 20px 72px;
  color: var(--eb-text);
  background: var(--eb-page-bg);
  font: inherit;
}

.eb-blog * { box-sizing: border-box; }
.eb-blog__shell { width: min(1240px, 100%); margin: 0 auto; }
.eb-blog h1, .eb-blog h2, .eb-blog h3, .eb-blog p { margin-top: 0; }
.eb-blog h1, .eb-blog h2, .eb-blog h3 { line-height: 1.16; }

.eb-blog__hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(230px, .55fr);
  align-items: end;
  gap: clamp(24px, 5vw, 72px);
  overflow: hidden;
  padding: clamp(32px, 5vw, 72px);
  border-radius: 24px;
  color: var(--eb-text-on-dark);
  background: linear-gradient(125deg, var(--eb-brand-dark), var(--eb-brand-primary));
}

.eb-blog__hero::after {
  position: absolute;
  right: -90px;
  top: -140px;
  width: 420px;
  height: 420px;
  border: 1px solid var(--eb-brand-cyan);
  border-radius: 50%;
  opacity: .28;
  pointer-events: none;
  content: "";
}

.eb-blog__hero-copy, .eb-blog__hero-note { position: relative; z-index: 1; }
.eb-blog__eyebrow { margin-bottom: 12px; color: var(--eb-brand-primary); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.eb-blog__hero .eb-blog__eyebrow, .eb-blog__closing .eb-blog__eyebrow { color: var(--eb-brand-cyan); }
.eb-blog__hero h1 { max-width: 790px; margin-bottom: 20px; color: var(--eb-text-on-dark); font-size: clamp(2.4rem, 5vw, 4.8rem); letter-spacing: -.04em; }
.eb-blog__hero-copy > p:not(.eb-blog__eyebrow) { max-width: 700px; color: var(--eb-dark-text-muted); font-size: clamp(1rem, 1.6vw, 1.2rem); line-height: 1.65; }
.eb-blog__hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.eb-blog__button { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; padding: 11px 20px; border: 1px solid transparent; border-radius: 9px; font-weight: 750; line-height: 1.25; text-align: center; text-decoration: none !important; transition: background .18s ease, transform .18s ease, border-color .18s ease; }
.eb-blog__button:hover { transform: translateY(-2px); }
.eb-blog__button:focus-visible, .eb-blog a:focus-visible { outline: 3px solid var(--eb-focus-ring); outline-offset: 3px; }
.eb-blog__button--primary { color: var(--eb-text-on-dark) !important; background: var(--eb-brand-primary); }
.eb-blog__hero .eb-blog__button--primary, .eb-blog__closing .eb-blog__button--primary { color: var(--eb-brand-dark) !important; background: var(--eb-brand-cyan); }
.eb-blog__button--primary:hover { background: var(--eb-brand-primary-hover); }
.eb-blog__hero .eb-blog__button--primary:hover, .eb-blog__closing .eb-blog__button--primary:hover { background: var(--eb-brand-cyan-soft); }
.eb-blog__button--outline { border-color: var(--eb-dark-text-muted); color: var(--eb-text-on-dark) !important; background: transparent; }
.eb-blog__button--outline:hover { background: var(--eb-dark-surface-hover); }
.eb-blog__hero-note { padding: 24px; border: 1px solid var(--eb-dark-border); border-radius: 16px; background: var(--eb-dark-surface); }
.eb-blog__hero-note span { display: block; color: var(--eb-brand-cyan); font-size: clamp(3.3rem, 5vw, 5rem); font-weight: 850; line-height: 1; }
.eb-blog__hero-note strong { display: block; margin: 5px 0 12px; color: var(--eb-text-on-dark); font-size: 1rem; }
.eb-blog__hero-note p { margin-bottom: 0; color: var(--eb-dark-text-muted); font-size: .9rem; line-height: 1.5; }

.eb-blog__section { padding-top: clamp(44px, 6vw, 72px); }
.eb-blog__section-heading { display: flex; align-items: end; justify-content: space-between; gap: 36px; margin-bottom: 26px; }
.eb-blog__section-heading h2 { margin-bottom: 0; color: var(--eb-text); font-size: clamp(2rem, 3vw, 2.8rem); }
.eb-blog__section-heading > p { max-width: 455px; margin-bottom: 0; color: var(--eb-text-muted); line-height: 1.6; }
.eb-blog__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.eb-blog-card { min-width: 0; border: 1px solid var(--eb-border); border-radius: 17px; overflow: hidden; background: var(--eb-surface); transition: box-shadow .18s ease, transform .18s ease; }
.eb-blog-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px color-mix(in srgb, var(--eb-brand-dark) 12%, transparent); }
.eb-blog-card__link { display: flex; flex-direction: column; height: 100%; color: inherit !important; text-decoration: none !important; }
.eb-blog-card__image-wrap { aspect-ratio: 16 / 9; overflow: hidden; background: var(--eb-surface-selected); }
.eb-blog-card__image-wrap img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.eb-blog-card:hover .eb-blog-card__image-wrap img { transform: scale(1.035); }
.eb-blog-card__body { display: flex; flex-direction: column; flex: 1; padding: 22px; }
.eb-blog-card__category { align-self: start; display: inline-flex; padding: 6px 10px; border-radius: 999px; color: var(--eb-brand-primary); background: var(--eb-surface-selected); font-size: .72rem; font-weight: 800; letter-spacing: .02em; }
.eb-blog-card h3 { margin: 15px 0 10px; color: var(--eb-text); font-size: clamp(1.25rem, 1.7vw, 1.65rem); }
.eb-blog-card p { margin-bottom: 20px; color: var(--eb-text-muted); line-height: 1.6; }
.eb-blog-card__read { margin-top: auto; color: var(--eb-brand-primary); font-size: .9rem; font-weight: 800; }
.eb-blog-card__read span { margin-left: 5px; }
.eb-blog-card--featured { grid-column: span 2; }
.eb-blog-card--featured .eb-blog-card__link { display: grid; grid-template-columns: 1.12fr 1fr; }
.eb-blog-card--featured .eb-blog-card__image-wrap { height: 100%; aspect-ratio: auto; }
.eb-blog-card--featured .eb-blog-card__body { padding: clamp(24px, 3vw, 40px); }
.eb-blog-card--featured h3 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); }

.eb-blog__closing { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-top: 56px; padding: clamp(28px, 4vw, 48px); border-radius: 20px; color: var(--eb-text-on-dark); background: var(--eb-brand-dark); }
.eb-blog__closing h2 { margin-bottom: 10px; color: var(--eb-text-on-dark); font-size: clamp(1.8rem, 3vw, 2.6rem); }
.eb-blog__closing p:not(.eb-blog__eyebrow) { max-width: 650px; margin-bottom: 0; color: var(--eb-dark-text-muted); line-height: 1.6; }
.eb-blog__closing .eb-blog__button { flex: 0 0 auto; }

.eb-blog__breadcrumbs { display: flex; align-items: center; gap: 10px; margin: 8px 0 26px; color: var(--eb-text-muted); font-size: .92rem; }
.eb-blog__breadcrumbs a, .eb-blog__back a { color: var(--eb-brand-primary); font-weight: 700; }
.eb-blog-article__header { max-width: 920px; margin: 0 auto 30px; text-align: center; }
.eb-blog-article__header h1 { margin-bottom: 18px; color: var(--eb-text); font-size: clamp(2.35rem, 5vw, 4.4rem); letter-spacing: -.035em; }
.eb-blog-article__lead { color: var(--eb-text-muted); font-size: clamp(1.08rem, 1.8vw, 1.3rem); line-height: 1.65; }
.eb-blog-article__image { display: block; width: 100%; max-height: 560px; border-radius: 20px; object-fit: cover; }
.eb-blog-article__content { display: grid; grid-template-columns: minmax(0, 1fr) 310px; align-items: start; gap: clamp(32px, 5vw, 72px); max-width: 1120px; margin: 46px auto 0; }
.eb-blog-article__main { max-width: 720px; font-size: 1.05rem; line-height: 1.75; }
.eb-blog-article__main section + section { margin-top: 38px; }
.eb-blog-article__main h2 { margin-bottom: 15px; color: var(--eb-text); font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.eb-blog-article__main p, .eb-blog-article__steps { color: var(--eb-text-muted); }
.eb-blog-article__steps { display: grid; gap: 14px; margin: 18px 0; padding-left: 25px; }
.eb-blog-article__steps li { padding-left: 6px; }
.eb-blog-article__steps li::marker { color: var(--eb-brand-primary); font-weight: 800; }
.eb-blog-article__aside { padding: 24px; border: 1px solid var(--eb-border); border-radius: 16px; background: var(--eb-surface); }
.eb-blog-article__aside h2 { margin: 15px 0 10px; color: var(--eb-text); font-size: 1.4rem; }
.eb-blog-article__aside p { color: var(--eb-text-muted); line-height: 1.6; }
.eb-blog-article__aside .eb-blog__button { width: 100%; }
.eb-blog__back { margin-top: 48px; }

@media (max-width: 960px) {
  .eb-blog__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eb-blog-card--featured { grid-column: span 2; }
  .eb-blog__hero { grid-template-columns: 1fr; }
  .eb-blog__hero-note { max-width: 360px; }
  .eb-blog-article__content { grid-template-columns: 1fr; }
  .eb-blog-article__aside { max-width: 580px; }
}

@media (max-width: 650px) {
  .eb-blog { padding: 14px 12px 44px; }
  .eb-blog__hero { gap: 24px; padding: 28px 22px; border-radius: 16px; }
  .eb-blog__hero h1 { font-size: clamp(2rem, 9vw, 3.1rem); }
  .eb-blog__hero-note { max-width: none; }
  .eb-blog__hero-actions, .eb-blog__section-heading, .eb-blog__closing { flex-direction: column; align-items: stretch; }
  .eb-blog__section-heading { gap: 10px; }
  .eb-blog__grid { grid-template-columns: 1fr; }
  .eb-blog-card--featured { grid-column: auto; }
  .eb-blog-card--featured .eb-blog-card__link { display: flex; }
  .eb-blog-card--featured .eb-blog-card__image-wrap { aspect-ratio: 16 / 9; }
  .eb-blog-card--featured .eb-blog-card__body { padding: 22px; }
  .eb-blog__closing { margin-top: 40px; padding: 28px 22px; }
  .eb-blog-article__image { border-radius: 14px; }
  .eb-blog-article__content { margin-top: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .eb-blog-card, .eb-blog-card__image-wrap img, .eb-blog__button { transition: none; }
  .eb-blog-card:hover, .eb-blog-card:hover .eb-blog-card__image-wrap img, .eb-blog__button:hover { transform: none; }
}
