:root {
  --color-text: #111827;
  --color-subtext: #4b5563;
  --color-muted: #6b7280;
  --color-light-bg: #f8f9fa;
  --color-primary: #2563eb;
  --transition: all 0.3s ease;
}

/* Core Blog Layout */
.blog-post {
  max-width: 800px;
  margin: 7rem auto 4rem;
  padding: 0 1.5rem;
}

.blog-header {
  margin-bottom: 2rem;
  text-align: center;
}

.blog-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.blog-meta {
  color: var(--color-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.blog-featured-image {
  width: 100%;
  height: 400px;
  background-size: cover;
  background-position: center;
  border-radius: 1rem;
  margin-bottom: 2rem;
  /* Use inline style or class-specific background-image in HTML */
}

/* Blog Content Styling */
.blog-content {
  line-height: 1.8;
  color: var(--color-subtext);
}

.blog-content h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 2.5rem 0 1rem;
}

.blog-content h3 {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 2rem 0 1rem;
}

.blog-content p {
  margin-bottom: 1.5rem;
}

.blog-content ul,
.blog-content ol {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.blog-content li {
  margin-bottom: 0.75rem;
}

.blog-content strong {
  color: var(--color-text);
  font-weight: 600;
}

/* Tags Section */
.blog-tags {
  margin: 3rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.blog-tag {
  background: #e5e7eb;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  color: var(--color-subtext);
  text-decoration: none;
  transition: var(--transition);
}

.blog-tag:hover {
  background: var(--color-primary);
  color: #fff;
}

/* Author Box */
.author-section {
  margin: 4rem auto;
  padding: 2.5rem;
  background: linear-gradient(to right, #ffffff, var(--color-light-bg));
  border-radius: 1.5rem;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 10px 15px -3px rgba(0, 0, 0, 0.05);
  max-width: 800px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.author-section:hover {
  transform: translateY(-5px);
  box-shadow:
    0 8px 12px -1px rgba(0, 0, 0, 0.1),
    0 20px 25px -5px rgba(0, 0, 0, 0.05);
}

.author-content {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.author-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 4px solid #fff;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  /* Use inline style for image, or inject via class */
}

.author-avatar:hover {
  transform: scale(1.05);
}

.author-info {
  flex: 1;
}

.author-info h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #2d3748;
  letter-spacing: -0.025em;
}

.author-bio {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #4a5568;
}

/* Actionable Steps (Optional Highlight Box) */
.actionable-steps {
  background: #f8fafc;
  padding: 2rem;
  border-radius: 1rem;
  margin: 2rem 0;
}

.actionable-steps ul {
  list-style-type: none;
  padding-left: 0;
}

.actionable-steps li {
  margin-bottom: 1rem;
  padding-left: 2rem;
  position: relative;
}

.actionable-steps li::before {
  content: "✅";
  position: absolute;
  left: 0;
}

/* Responsive Layouts */
@media (max-width: 768px) {
  .author-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .author-section {
    padding: 1.5rem;
    margin: 2rem 1rem;
  }

  .author-avatar {
    width: 100px;
    height: 100px;
  }

  .author-info h3 {
    font-size: 1.25rem;
  }

  .author-bio {
    font-size: 1rem;
  }
}

@media (max-width: 640px) {
  .author-section {
    padding: 1.2rem;
    margin: 1.5rem;
  }

  .author-avatar {
    width: 90px;
    height: 90px;
  }

  .author-info h3 {
    font-size: 1.1rem;
  }

  .author-bio {
    font-size: 0.9rem;
  }
}
