/* Blog page — responsive card grid aligned with site pages */
.blog-page-section {
  padding: 48px 0 72px;
  background: #fff;
}

.blog-page-heading {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
}

.blog-page-heading h2 {
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.25;
  margin: 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(26, 54, 104, 0.08);
  border: 1px solid rgba(26, 54, 104, 0.06);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 174, 239, 0.28);
  box-shadow: 0 12px 36px rgba(26, 54, 104, 0.12);
}

.blog-card.is-hidden {
  display: none;
}

.blog-card-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #eef4f9;
  flex-shrink: 0;
}

.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.blog-card:hover .blog-card-media img {
  transform: scale(1.04);
}

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

.blog-card-date {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-color);
  margin-bottom: 8px;
}

.blog-card-body h2 {
  font-size: clamp(16px, 2.4vw, 18px);
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.35;
  margin: 0 0 10px;
}

.blog-card-body p {
  font-size: 14px;
  line-height: 1.6;
  color: #4a5568;
  margin: 0;
  flex: 1;
}

.blog-load-more-wrap {
  text-align: center;
  margin-top: 40px;
}

.blog-load-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary-color);
  background: transparent;
  border: 2px solid var(--primary-color);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.blog-load-more-btn:hover {
  background: var(--primary-color);
  color: #fff;
}

.blog-load-more-btn.is-hidden {
  display: none;
}

/* Newsletter — The AnuSri Journal */
.blog-newsletter-section {
  padding: 56px 0 64px;
  background: linear-gradient(135deg, #eef8fc 0%, #f5f8fc 100%);
}

.blog-newsletter-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: 0 16px;
}

.blog-newsletter-inner h2 {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  color: var(--primary-color);
  margin: 0 0 12px;
}

.blog-newsletter-inner > p {
  font-size: 16px;
  line-height: 1.65;
  color: #4a5568;
  margin: 0 0 28px;
}

.blog-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
  margin: 0 auto;
}

.blog-newsletter-form input[type="email"] {
  width: 100%;
  padding: 14px 18px;
  font-size: 16px;
  border: 1px solid rgba(26, 54, 104, 0.15);
  border-radius: 12px;
  background: #fff;
  outline: none;
}

.blog-newsletter-form input[type="email"]:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.15);
}

.blog-newsletter-form button {
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--primary-color);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.blog-newsletter-form button:hover {
  background: var(--accent-color);
}

.blog-newsletter-msg {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 500;
  min-height: 20px;
}

.blog-newsletter-msg.is-success {
  color: #0d7a4a;
}

.blog-newsletter-msg.is-error {
  color: #c53030;
}

/* Bottom CTA */
.blog-cta-section {
  padding: 0 0 72px;
  background: #fff;
}

.blog-cta-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
  background: var(--primary-color);
  border-radius: 24px;
  padding: 36px 28px;
  overflow: hidden;
}

.blog-cta-copy h2 {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin: 0 0 12px;
}

.blog-cta-copy p {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 22px;
}

.blog-cta-copy .btn-default {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.blog-cta-media {
  border-radius: 16px;
  overflow: hidden;
  max-height: 280px;
}

.blog-cta-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (min-width: 768px) {
  .blog-page-section {
    padding: 64px 0 88px;
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  .blog-newsletter-form {
    flex-direction: row;
    max-width: 520px;
  }

  .blog-newsletter-form input[type="email"] {
    flex: 1;
  }

  .blog-cta-card {
    grid-template-columns: 1.1fr 0.9fr;
    padding: 48px 44px;
  }

  .blog-cta-media {
    max-height: none;
    min-height: 240px;
  }
}

@media (min-width: 992px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }

  .blog-card-body {
    padding: 22px 22px 26px;
  }
}

/* Blog article pages */
.blog-article-section {
  padding: 36px 0 72px;
  background: #fff;
}

.blog-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  color: #5a6485;
  margin-bottom: 28px;
}

.blog-breadcrumb a {
  color: var(--primary-color);
  text-decoration: none;
}

.blog-breadcrumb a:hover {
  color: var(--accent-color);
}

.blog-breadcrumb .sep {
  opacity: 0.5;
}

.blog-article-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

.blog-article-hero {
  margin: 0 0 20px;
  border-radius: 18px;
  overflow: hidden;
  background: #eef4f9;
}

.blog-article-hero img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.blog-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 14px;
  color: #5a6485;
  margin-bottom: 18px;
}

.blog-key-answer {
  background: linear-gradient(135deg, #eef8fc 0%, #f5f8fc 100%);
  border-left: 4px solid var(--accent-color);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 28px;
  font-size: 15px;
  line-height: 1.65;
  color: #334155;
}

.blog-article-content h2 {
  font-size: clamp(20px, 3vw, 26px);
  color: var(--primary-color);
  margin: 28px 0 12px;
  line-height: 1.3;
}

.blog-article-content p {
  font-size: 16px;
  line-height: 1.75;
  color: #3d4663;
  margin: 0 0 14px;
}

.blog-article-content a {
  color: var(--accent-color);
  font-weight: 600;
}

.blog-article-list {
  margin: 0 0 18px;
  padding-left: 1.2rem;
  color: #3d4663;
}

.blog-article-list li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.blog-article-faq {
  margin-top: 40px;
}

.blog-article-faq h2 {
  font-size: clamp(22px, 3vw, 28px);
  color: var(--primary-color);
  margin-bottom: 18px;
}

.blog-article-faq .accordion-item {
  border: 1px solid rgba(26, 54, 104, 0.1);
  border-radius: 12px !important;
  overflow: hidden;
  margin-bottom: 12px;
}

.blog-article-faq .accordion-button {
  font-weight: 600;
  color: var(--primary-color);
  box-shadow: none;
}

.blog-article-faq .accordion-button:not(.collapsed) {
  background: #eef8fc;
  color: var(--primary-color);
}

.blog-article-cta {
  margin-top: 36px;
  padding: 28px;
  border-radius: 18px;
  background: var(--primary-color);
  color: #fff;
}

.blog-article-cta h2 {
  color: #fff;
  margin: 0 0 10px;
  font-size: clamp(22px, 3vw, 28px);
}

.blog-article-cta p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 18px;
}

.blog-aside-card {
  background: #f7fafc;
  border: 1px solid rgba(26, 54, 104, 0.08);
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 16px;
}

.blog-aside-card h2 {
  font-size: 18px;
  color: var(--primary-color);
  margin: 0 0 10px;
}

.blog-aside-card p {
  font-size: 14px;
  line-height: 1.6;
  color: #4a5568;
  margin: 0 0 14px;
}

.blog-related-section {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid rgba(26, 54, 104, 0.1);
}

.blog-related-section h2 {
  font-size: clamp(22px, 3vw, 28px);
  color: var(--primary-color);
  margin-bottom: 22px;
}

.blog-related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.blog-related-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(26, 54, 104, 0.08);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.blog-related-card:hover {
  border-color: rgba(0, 174, 239, 0.3);
  box-shadow: 0 8px 24px rgba(26, 54, 104, 0.1);
}

.blog-related-card img {
  width: 120px;
  height: 84px;
  object-fit: cover;
  display: block;
}

.blog-related-card span {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-color);
  line-height: 1.4;
  padding-right: 12px;
}

@media (min-width: 992px) {
  .blog-article-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 36px;
  }

  .blog-related-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .blog-related-card img {
    width: 100%;
    height: 140px;
  }

  .blog-related-card span {
    padding: 12px 14px 16px;
  }
}
