/*
Theme Name: Astra Child - Custom Blog
Theme URI: https://wpastra.com/
Description: Child theme for Astra with a custom blog index and single-post design.
Author: Your Website
Template: astra
Version: 1.0.0
Text Domain: astra-child-custom-blog
*/

/* Blog archive and single post styles only. Parent Astra header/footer remain intact. */
.acb-wrap {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}
.acb-main {
  background: #f7f9fd;
  padding: 70px 0 86px;
  min-height: 55vh;
}
.acb-hero {
  margin-bottom: 38px;
  text-align: center;
}
.acb-kicker {
  color: #2463eb;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  margin: 0 0 9px;
}
.acb-hero h1 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.12;
  color: #14213d;
  margin: 0;
}
.acb-hero p {
  max-width: 640px;
  color: #64748b;
  margin: 14px auto 0;
}
.acb-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.acb-card {
  min-width: 0;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 30px rgba(15, 23, 42, .06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.acb-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(15, 23, 42, .12);
}
.acb-card-image {
  aspect-ratio: 16 / 10;
  display: block;
  background: linear-gradient(135deg, #dbeafe, #e2e8f0);
  overflow: hidden;
}
.acb-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.acb-card:hover .acb-card-image img { transform: scale(1.035); }
.acb-image-placeholder { display: block; width: 100%; height: 100%; }
.acb-card-body { padding: 22px 24px 26px; }
.acb-cat,
.acb-cat a {
  color: #2463eb;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  text-decoration: none;
}
.acb-card h2 {
  font-size: 21px;
  line-height: 1.35;
  font-weight: 750;
  margin: 10px 0;
  overflow-wrap: anywhere;
}
.acb-card h2 a { color: #14213d; text-decoration: none; }
.acb-card h2 a:hover { color: #2463eb; }
.acb-meta {
  color: #64748b;
  font-size: 13px;
}
.acb-card-excerpt {
  color: #475569;
  font-size: 15px;
  line-height: 1.75;
  margin: 13px 0 18px;
}
.acb-more { color: #1d4ed8; font-weight: 700; text-decoration: none; }
.acb-more:hover { text-decoration: underline; }
.acb-pagination { margin-top: 42px; text-align: center; }
.acb-pagination .nav-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.acb-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 8px 12px;
  background: #fff;
  color: #1e293b;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  text-decoration: none;
}
.acb-pagination .page-numbers.current,
.acb-pagination .page-numbers:hover { background: #1d4ed8; color: white; border-color: #1d4ed8; }
.acb-empty { background: #fff; padding: 35px; border-radius: 12px; text-align: center; }

/* Single-post page. */
.acb-single { background: #f7f9fd; padding: 60px 0 90px; }
.acb-article {
  width: min(820px, calc(100% - 40px));
  margin: auto;
  padding: 44px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 36px rgba(15, 23, 42, .055);
}
.acb-back { display: inline-block; color: #1d4ed8; font-size: 14px; text-decoration: none; margin-bottom: 26px; }
.acb-single-title {
  color: #14213d;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.2;
  margin: 14px 0 16px;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.acb-single-meta { color: #64748b; font-size: 14px; margin-bottom: 27px; }
.acb-featured { margin: 0 0 34px; border-radius: 12px; overflow: hidden; }
.acb-featured img { width: 100%; height: auto; display: block; }
.acb-content { color: #334155; font-size: 17px; line-height: 1.9; overflow-wrap: anywhere; }
.acb-content h2, .acb-content h3, .acb-content h4 { color: #14213d; line-height: 1.35; margin-top: 1.55em; }
.acb-content p { margin-bottom: 1.2em; }
.acb-content ul, .acb-content ol { padding-left: 1.5em; margin-bottom: 1.25em; }
.acb-content a { color: #1d4ed8; text-decoration: underline; }
.acb-content img { max-width: 100%; height: auto; }
.acb-content blockquote { border-left: 4px solid #2463eb; padding-left: 20px; color: #475569; }
.acb-content table { display: block; width: 100%; overflow-x: auto; }
.acb-article-footer { border-top: 1px solid #e2e8f0; margin-top: 36px; padding-top: 22px; color: #475569; }
.acb-article-footer a { color: #1d4ed8; text-decoration: none; }
.acb-post-nav { border-top: 1px solid #e2e8f0; margin-top: 22px; padding-top: 22px; }
.acb-post-nav .nav-links { display: flex; justify-content: space-between; gap: 20px; }
.acb-post-nav a { color: #1d4ed8; text-decoration: none; }
.acb-post-nav .nav-next { margin-left: auto; text-align: right; }
.acb-main a:focus-visible, .acb-single a:focus-visible { outline: 3px solid #2563eb; outline-offset: 3px; }
@media (max-width: 900px) {
  .acb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .acb-main, .acb-single { padding: 42px 0 60px; }
  .acb-wrap, .acb-article { width: min(100% - 28px, 820px); }
  .acb-grid { grid-template-columns: 1fr; gap: 22px; }
  .acb-card-body { padding: 20px; }
  .acb-article { padding: 24px 18px; }
  .acb-content { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .acb-card, .acb-card-image img { transition: none; }
}
