/* Aspire Aviation blog styles (added 2026-06-09; card contrast fixed same day).
   Loaded only on /blog pages, in addition to style.css, so the tested core
   stylesheet stays untouched. Matches the site's DARK card system
   (var(--bg-card) + light text) — do not use white surfaces here. */

/* ---- Article (long-form post body) ---- */
.blog-article {
  max-width: 72ch;
  margin: 0 auto;
}
.blog-article > * + * {
  margin-top: 1.15rem;
}
.blog-article h2 {
  margin-top: 2.4rem;
  font-size: 1.55rem;
  line-height: 1.25;
}
.blog-article h3 {
  margin-top: 1.8rem;
  font-size: 1.2rem;
}
.blog-article p,
.blog-article li {
  line-height: 1.7;
}
.blog-article ul,
.blog-article ol {
  padding-left: 1.25rem;
}
.blog-article li + li {
  margin-top: 0.5rem;
}
/* In-prose links must stand out from muted body text */
.blog-article a {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.blog-article a:hover {
  color: var(--gold);
}
.blog-article .blog-callout {
  margin-top: 2rem;
  padding: 1.3rem 1.5rem;
}
/* Buttons inside the callout keep their own styling, not the prose-link look */
.blog-article .blog-callout a.button {
  color: inherit;
  text-decoration: none;
}

.blog-meta {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

/* ---- Index grid (post cards) ---- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}
.blog-card-media {
  display: block;
}
.blog-card picture,
.blog-card img {
  display: block;
  width: 100%;
}
.blog-card img {
  height: 190px;
  object-fit: cover;
}
.blog-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.25rem 1.35rem 1.4rem;
}
.blog-card-body h2,
.blog-card-body h3 {
  font-size: 1.15rem;
  line-height: 1.3;
  margin: 0;
}
.blog-card-body h2 a,
.blog-card-body h3 a {
  color: var(--text-primary);
}
.blog-card-body p {
  margin: 0;
  line-height: 1.6;
}
.blog-card-link {
  margin-top: auto;
  font-weight: 600;
  color: var(--gold-light);
}
@media (hover: hover) {
  .blog-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(201, 135, 26, 0.35);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
  }
  .blog-card-body h2 a:hover,
  .blog-card-link:hover {
    color: var(--gold);
  }
}
