/* Blog-only styling.
   Uses existing tokens + light mode rules from ../css/styles.css
   (so keep blog.css small and safe). */

.blog-hero{
  padding: 2px 0 2px;
}

.blog-hero__inner{
  max-width: 920px;
}

.blog-back{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  transition: color .18s ease, border-color .18s ease, transform .18s ease;
}

.blog-back:hover{
  color: rgba(227,178,27,.95);
  border-color: rgba(199,154,18,.35);
  transform: translateY(-1px);
}

.blog-title{
  margin: 4px 0 6px;
  font-size: 44px;
  line-height: 1.08;
}

.blog-subtitle{
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  max-width: 70ch;
}

.blog-list{
  padding-top: 34px;
}

/* Grid for blog cards */
.blog-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* Card */
.blog-card{
  margin-top: 30px;
  border: 1px solid var(--border);
  background: var(--surface-1);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.blog-card:hover{
  transform: translateY(-3px);
  border-color: rgba(199,154,18,.32);
  background: rgba(255,255,255,.03);
}

.blog-card__media{
  display:block;
  position: relative;
}

.blog-card__media img{
  width: 100%;
  height: 240px;
  object-fit: cover;
  display:block;
}

.blog-card__body{
  padding: 16px 16px 18px;
}

.blog-card__title{
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: -.2px;
}

.blog-card__text{
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.65;
}

.blog-card__bullets{
  margin: 0 0 14px;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.65;
}

.blog-card__actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Light-mode tuning (only what blog needs) */
html[data-theme="light"] .blog-back{
  color: rgba(10,14,20,.72);
  border-color: rgba(10,14,20,.12);
  background: rgba(10,14,20,.03);
}

html[data-theme="light"] .blog-back:hover{
  color: rgba(227,178,27,.95);
  border-color: rgba(199,154,18,.35);
}

/* Responsive */
@media (max-width: 980px){
  .blog-grid{
    grid-template-columns: 1fr;
  }

  .blog-title{
    font-size: 36px;
  }

  .blog-card__media img{
    height: 220px;
  }
}

@media (max-width: 520px){
  .blog-title{
    font-size: 32px;
  }

  .blog-back{
    width: 100%;
    justify-content: center;
  }

  .blog-card__media img{
    height: 200px;
  }
}

/* default (dark) */
.brand__logo--light { display: none; }
.brand__logo--dark  { display: block; }

/* light theme */
html[data-theme="light"] .brand__logo--dark  { display: none; }
html[data-theme="light"] .brand__logo--light { display: block; }