/* ═══════════════════════════════════════════
   BrainBuddy AI — Blog Styles
   blog.css
═══════════════════════════════════════════ */

/* ── Hero ── */
.blog-hero {
  padding: 130px 24px 80px;
  text-align: center;
  background: #fff;
  font-family: "Bell MT", serif;
  border-bottom: 1px solid #e8e6f9;
}

.blog-hero-inner {
  max-width: 560px;
  font-family: "Bell MT", serif;
  margin: auto;
}

.blog-hero h1 {
  font-family: "Bell MT", serif;
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.08;
  color: #20212a;
  margin: 14px 0 18px;
}

.blog-hero h1 span {
  color: #5b4fcf;
  font-family: "Bell MT", serif;
}

.blog-hero p {
  color: #686a75;
  font-size: 16px;
  font-family: "Bell MT", serif;
  line-height: 1.65;
}

/* ── Container ── */
.blog-container {
  max-width: 1040px;
  margin: auto;
  padding: 0 24px;
}

/* ── Tags & Dates ── */
.blog-tag {
  display: inline-block;
  background: #eeecfc;
  color: #5b4fcf;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  font-family: "Bell MT", serif;
}

.blog-date {
  color: #bbb;
  font-size: 12px;
  margin-left: 8px;
  font-family: "Bell MT", serif;
}

/* ── Listing ── */
.blog-listing {
  padding: 64px 24px 80px;
  background: #fff;
}

/* ── Featured Card ── */
.blog-featured-card {
  display: block;
  text-decoration: none;
  background: #f7f6fe;
  border: 1px solid #e8e6f9;
  border-radius: 20px;
  padding: 48px 52px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
  transition: box-shadow .25s, transform .25s;
  font-family: "Bell MT", serif;
}

.blog-featured-card::after {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 4px;
  height: 100%;
  background: #5b4fcf;
  border-radius: 4px 0 0 4px;
}

.blog-featured-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(91,79,207,.12);
}

.blog-featured-card h2 {
  font-family: "Bell MT", serif;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: #20212a;
  margin: 14px 0 14px;
  line-height: 1.2;
}

.blog-featured-card p {
  color: #686a75;
  font-size: 15px;
  line-height: 1.7;
  max-width: 620px;
  margin: 0 0 22px;
  font-family: "Bell MT", serif;
}

/* ── Grid ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.blog-card {
  display: block;
  text-decoration: none;
  background: #fff;
  border: 1px solid #e8e6f9;
  border-radius: 16px;
  padding: 28px;
  transition: transform .2s, box-shadow .2s;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(91,79,207,.10);
}

.blog-card-meta {
  margin-bottom: 14px;
}

.blog-card h3 {
  font-family: "Bell MT", serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: #20212a;
  margin: 0 0 10px;
  line-height: 1.4;
}

.blog-card p {
  color: #686a75;
  font-size: 13.5px;
  line-height: 1.65;
  margin: 0 0 18px;
}

/* ── Read More ── */
.blog-read-more {
  color: #5b4fcf;
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none;
  display: inline-block;
  transition: letter-spacing .2s;
   font-family: "Bell MT", serif;

}

.blog-featured-card:hover .blog-read-more,
.blog-card:hover .blog-read-more {
  letter-spacing: .01em;
}

/* ══════════════════════════════
   BLOG POST PAGE
══════════════════════════════ */

.blog-post-page {
  padding: 40px 24px 80px;
  background: #fff;
}

.blog-post-container {
  max-width: 720px;
  margin: auto;
}

.blog-back {
  display: inline-block;
  color: #686a75;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 36px;
  transition: color .2s;
   font-family: "Bell MT", serif;
}

.blog-back:hover {
  color: #5b4fcf;
}

.blog-post-meta {
  margin-bottom: 16px;
}

.blog-post-page h1 {
  font-family: "Bell MT", serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -.035em;
  color: #20212a;
  line-height: 1.15;
  margin: 0 0 20px;
}

.blog-post-byline {
  display: flex;
  align-items: center;
  gap: 10px;
  
  margin-bottom: 28px;
}

.blog-post-byline img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: contain;
  background: #eeecfc;
  padding: 3px;
}

.blog-post-byline span {
  color: #686a75;
  font-size: 13px;
   font-family: "Bell MT", serif;
}

.blog-post-divider {
  height: 1px;
  background: #e8e6f9;
  margin: 32px 0;
}

/* ── Post Content ── */
.blog-post-content p {
  color: #3a3b45;
  font-size: 16px;
  line-height: 1.85;
  margin: 0 0 20px;
   font-family: "Bell MT", serif;
}

.blog-post-content h2 {
  font-family: "Bell MT", serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: #20212a;
  margin: 36px 0 12px;
}

.blog-post-content h3 {
  font-family: "Bell MT", serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #20212a;
  margin: 28px 0 10px;
}

.blog-post-content ul,
.blog-post-content ol {
  color: #3a3b45;
  font-size: 16px;
  line-height: 1.85;
  padding-left: 22px;
  margin: 0 0 20px;
   font-family: "Bell MT", serif;
}

.blog-post-content ul li,
.blog-post-content ol li {
  margin-bottom: 8px;
}

.blog-post-content strong {
  color: #20212a;
  font-weight: 700;
   font-family: "Bell MT", serif;
}

.blog-post-content blockquote {
  border-left: 3px solid #5b4fcf;
  padding-left: 20px;
  margin: 24px 0;
  color: #686a75;
  font-size: 16px;
  font-style: italic;
  line-height: 1.7;
   font-family: "Bell MT", serif;
}

/* ── Post CTA ── */
.blog-post-cta {
  background: #f7f6fe;
  border: 1px solid #e8e6f9;
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  margin: 8px 0 48px;
}

.blog-post-cta strong {
  display: block;
  font-family: "Bell MT", serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: #20212a;
  margin-bottom: 8px;
}

.blog-post-cta p {
  color: #686a75;
  font-size: 14px;
  margin: 0 0 20px;
}

.blog-post-cta .btn-primary {
  display: inline-block;
  background: #5b4fcf;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 28px;
  border-radius: 12px;
  text-decoration: none;
  transition: background .2s;
}

.blog-post-cta .btn-primary:hover {
  background: #4338a8;
}

/* ── More Posts ── */
.blog-more {
  margin-top: 16px;
}

.blog-more .section-label {
  display: block;
  margin-bottom: 20px;
}

.blog-more-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.blog-more-card {
  display: block;
  text-decoration: none;
  background: #fff;
  border: 1px solid #e8e6f9;
  border-radius: 14px;
  padding: 20px;
  transition: transform .2s, box-shadow .2s;
}

.blog-more-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(91,79,207,.10);
}

.blog-more-card h4 {
  font-family: "Bell MT", serif;
  font-size: .9rem;
  font-weight: 700;
  color: #20212a;
  margin: 10px 0 0;
  line-height: 1.4;
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .blog-hero { padding: 100px 20px 60px; }
  .blog-featured-card { padding: 28px 24px; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-more-grid { grid-template-columns: 1fr; }
  .blog-post-page { padding: 32px 20px 60px; }
}

/* ── Blog Post Special Styles ── */
.blog-opening-quote {
  font-size: 17px;
  color: #5b4fcf;
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 28px;
}

.blog-emphasis {
  font-size: 17px;
  font-weight: 600;
  color: #20212a;
  line-height: 1.7;
  font-family: "Bell MT", serif;
  margin: 20px 0;
}

.blog-why {
  font-family: "Bell MT", serif;
  font-size: 2rem;
  font-weight: 800;
  color: #5b4fcf;
  letter-spacing: -.03em;
  margin: 24px 0;
  line-height: 1;
}

.blog-tagline {
  font-size: 17px;
  color: #20212a;
  margin-top: 24px;
}

.blog-post-content blockquote cite {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-size: 13px;
  color: #aaa;
}