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

body {
  font-family: 'Open Sans', sans-serif;
  background: #f5f5f5;
  color: #1a1a1a;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.blog-main {
  flex: 1;
}

/* ── HEADER ── */
.site-header {
  background: #111;
  padding: 20px 24px;
  text-align: center;
}
.site-header .logo {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-decoration: none;
}
.site-header .logo span {
  color: #4caf50;
}
.site-header .tagline {
  color: #aaa;
  font-size: 0.78rem;
  margin-top: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ── HERO BANNER ── */
.blog-hero {
  background: #1a1a1a;
  color: #fff;
  text-align: center;
  padding: 48px 24px 40px;
}
.blog-hero h1 {
  font-size: 1.7rem;
  font-weight: 800;
  max-width: 600px;
  margin: 0 auto 10px;
  line-height: 1.3;
}
.blog-hero p {
  color: #bbb;
  font-size: 0.92rem;
  max-width: 480px;
  margin: 0 auto;
}

/* ── GRID ── */
.blog-main {
  max-width: 1080px;
  margin: 40px auto;
  padding: 0 20px 60px;
  width: 100%;
}
.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #888;
  margin-bottom: 18px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 8px;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* ── CARD ── */
.card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-img img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  padding: 16px;
  background: #fafafa;
}
.card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-tag {
  display: inline-block;
  background: #e8f5e9;
  color: #2e7d32;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.card-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
  color: #111;
}
.card-excerpt {
  font-size: 0.85rem;
  color: #555;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}
.card-meta {
  font-size: 0.75rem;
  color: #999;
  margin-bottom: 14px;
}
.card-btn {
  display: inline-block;
  background: #111;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 6px;
  text-align: center;
  transition: background 0.2s;
}
.card:hover .card-btn {
  background: #333;
}

/* ── FOOTER ── */
.site-footer {
  background: #111;
  color: #666;
  text-align: center;
  font-size: 0.75rem;
  padding: 24px 16px;
  line-height: 1.8;
}
.site-footer a { color: #888; text-decoration: none; }
.site-footer a:hover { color: #aaa; }

/* ── MOBILE ── */
@media (max-width: 600px) {
  .blog-hero h1 { font-size: 1.3rem; }
  .cards-grid { grid-template-columns: 1fr; }
}
