:root {
  --primary: #2ecc71;
  --primary-dark: #27ae60;
  --bg: #f9fafb;
  --text: #111827;
  --muted: #6b7280;
  --card: #ffffff;
  --border: #e5e7eb;
  --radius: 20px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 20px 40px rgba(46, 204, 113, 0.15);
}

* {
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  padding-bottom: 100px;
}

/* ===== NAVBAR ===== */
.navbar {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 80px;
  margin-bottom: 60px;
}
.navbar a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: color 0.2s;
}
.navbar a:hover {
  color: var(--primary);
}
.navbar h1 {
  font-size: 1.6rem;
  font-weight: 900;
  margin: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== BLOG LIST GRID ===== */
.blog-list {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Default: 3 */
  gap: 32px;
  align-items: stretch;
}

/* Large Desktop: 4 per row */
@media (min-width: 1280px) {
  .blog-list {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Tablet: 2 per row */
@media (max-width: 1024px) and (min-width: 641px) {
  .blog-list {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 30px;
    gap: 28px;
  }
}

/* Mobile: 1 per row */
@media (max-width: 640px) {
  .blog-list {
    grid-template-columns: 1fr;
    padding: 0 20px;
    gap: 24px;
  }
  .navbar {
    padding: 16px 20px;
    margin-bottom: 40px;
  }
}

/* ===== BLOG CARD ===== */
.blog-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow);
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(46, 204, 113, 0.3);
}

.blog-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.blog-card:hover img {
  transform: scale(1.05);
}

.blog-content {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  flex-wrap: wrap;
}

.blog-date {
  color: var(--muted);
}

.blog-category {
  color: var(--primary-dark);
  background: #e6fcf1;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  white-space: nowrap;
}

.blog-content h2 {
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.5px;
  margin: 0 0 14px 0;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-content p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 15px;
  margin: 0 0 20px 0;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s;
  font-size: 15px;
  margin-top: auto;
}
.read-more:hover {
  gap: 12px;
  color: var(--primary-dark);
}
