/* ============================================
   BLOG STYLES — Versed Learn
   ============================================ */

/* --- Blog Listing --- */
.blog-hero {
  padding: 120px 0 60px;
  text-align: center;
}

.blog-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.blog-hero p {
  font-size: 1.15rem;
  color: var(--text-light);
  max-width: 540px;
  margin: 0 auto;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  padding-bottom: 80px;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.blog-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--teal-subtle);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.blog-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-meta {
  font-size: 0.85rem;
  color: var(--text-lighter);
  margin-bottom: 0.5rem;
}

.blog-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.blog-card-excerpt {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
  flex: 1;
}

/* --- Article Layout --- */
.article-header {
  padding: 120px 0 40px;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.article-header h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 1rem;
}

.article-meta {
  font-size: 0.95rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.article-meta .divider {
  color: var(--text-lighter);
}

.article-content {
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: 80px;
}

.article-content h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  margin: 2.5rem 0 1rem;
  line-height: 1.3;
}

.article-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin: 2rem 0 0.75rem;
}

.article-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.article-content ul,
.article-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
  line-height: 1.8;
  font-size: 1.05rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content blockquote {
  border-left: 4px solid var(--teal);
  background: var(--teal-subtle);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-light);
}

.article-content strong {
  font-weight: 600;
  color: var(--text);
}

.article-content a {
  color: var(--teal-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-content a:hover {
  color: var(--teal);
}

/* Video embed */
.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin: 2rem 0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: var(--radius-md);
}

/* CTA Box */
.article-cta {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  text-align: center;
  margin: 3rem 0 2rem;
}

.article-cta h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 0.75rem;
}

.article-cta p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

.article-cta .btn {
  background: var(--white);
  color: var(--teal-dark);
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  display: inline-block;
  transition: transform var(--transition), box-shadow var(--transition);
}

.article-cta .btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  transition: color var(--transition);
}

.back-link:hover {
  color: var(--teal);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .blog-hero h1 {
    font-size: 2rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .article-header h1 {
    font-size: 1.7rem;
  }

  .article-header {
    padding: 100px 1rem 30px;
  }

  .article-content {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .article-cta {
    padding: 1.75rem;
  }
}
