/* ===== BLOG STYLES ===== */

/* Blog listing hero */
.blog-hero {
  background: linear-gradient(135deg, rgba(124,58,237,0.06), rgba(79,70,229,0.04));
  border-bottom: 1px solid #e2e8f0;
  padding: 60px 20px 48px;
  text-align: center;
}
.blog-hero h1 { font-size: 2.2rem; font-weight: 900; color: #0f172a; margin-bottom: 10px; }
.blog-hero p  { color: #64748b; font-size: 1rem; max-width: 500px; margin: 0 auto; }

/* Blog grid */
.blog-container { max-width: 1060px; margin: 0 auto; padding: 48px 20px 80px; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.09);
  border-color: #c4b5fd;
}

.blog-card-thumb {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}

.blog-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }

.blog-tag {
  display: inline-block;
  background: rgba(124,58,237,0.08);
  border: 1px solid rgba(124,58,237,0.2);
  color: #7c3aed;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.blog-card h2 {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.4;
  margin-bottom: 8px;
}

.blog-card p {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.6;
  flex: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
  font-size: 0.78rem;
  color: #94a3b8;
}

.blog-card-meta span { display: flex; align-items: center; gap: 4px; }
.read-more { color: #7c3aed; font-weight: 600; }

/* ===== INDIVIDUAL POST ===== */
.post-container {
  max-width: 740px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.post-tag {
  display: inline-block;
  background: rgba(124,58,237,0.08);
  border: 1px solid rgba(124,58,237,0.2);
  color: #7c3aed;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.post-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 900;
  color: #0f172a;
  line-height: 1.25;
  margin-bottom: 16px;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 2px solid #f1f5f9;
  flex-wrap: wrap;
}

.post-meta strong { color: #374151; }

.post-thumb {
  width: 100%;
  height: 260px;
  background: linear-gradient(135deg, rgba(124,58,237,0.1), rgba(79,70,229,0.05));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  margin-bottom: 36px;
  border: 1px solid #e2e8f0;
}

/* Post content typography */
.post-content h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #0f172a;
  margin: 32px 0 12px;
  padding-left: 14px;
  border-left: 4px solid #7c3aed;
}

.post-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
  margin: 24px 0 8px;
}

.post-content p {
  color: #374151;
  font-size: 0.97rem;
  line-height: 1.85;
  margin-bottom: 16px;
}

.post-content ul, .post-content ol {
  padding-left: 22px;
  margin: 12px 0 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.post-content li {
  color: #374151;
  font-size: 0.95rem;
  line-height: 1.7;
}

.post-content strong { color: #0f172a; }

.tip-box {
  background: rgba(124,58,237,0.05);
  border: 1.5px solid rgba(124,58,237,0.2);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 24px 0;
}
.tip-box p { margin: 0; color: #5b21b6; font-weight: 500; }

.cta-box {
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  border-radius: 16px;
  padding: 28px 28px;
  text-align: center;
  margin-top: 48px;
}
.cta-box h3 { color: #fff; font-size: 1.2rem; margin-bottom: 8px; }
.cta-box p  { color: rgba(255,255,255,0.85); font-size: 0.9rem; margin-bottom: 18px; }
.cta-box a  {
  display: inline-block;
  background: #fff;
  color: #7c3aed;
  padding: 11px 28px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  transition: opacity 0.2s;
}
.cta-box a:hover { opacity: 0.9; }

/* Post nav */
.post-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
  gap: 12px;
  flex-wrap: wrap;
}
.post-nav a {
  color: #7c3aed;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}
.post-nav a:hover { text-decoration: underline; }

/* ===== HOMEPAGE BLOG PREVIEW ===== */
.blog-preview-section {
  max-width: 1060px;
  margin: 0 auto;
  padding: 60px 20px;
  border-top: 1px solid #e2e8f0;
}

.blog-preview-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}

.blog-preview-header h2 { font-size: 1.6rem; font-weight: 800; color: #0f172a; }
.blog-preview-header a  { color: #7c3aed; font-weight: 600; font-size: 0.9rem; text-decoration: none; }
.blog-preview-header a:hover { text-decoration: underline; }

.blog-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .blog-grid, .blog-preview-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 500px) {
  .blog-grid, .blog-preview-grid { grid-template-columns: 1fr; }
  .blog-hero h1 { font-size: 1.7rem; }
  .post-title  { font-size: 1.5rem; }
}
