/* Blog hub, category pages and single posts. Cards and category links reuse the aircraft hub
   styles (.aircraft-grid / .aircraft-card / .aircraft-filter) from routes-aircraft.css. */

/* ---------- Hero ----------
   Post titles are long, so the post hero gets top padding to clear the fixed header
   (about 162px) and a smaller, width-limited H1. */
#top.blog-hero {
  height: auto;
  min-height: 520px;
  padding: 190px 0 70px;
  box-sizing: border-box;
  /* light navy tint so the category, title and date stay readable on bright photos */
  box-shadow: inset 0 0 0 2000px rgba(13, 36, 63, 0.35);
}
.blog-hero .wrap {
  text-align: center;
  max-width: 1000px;
}
#top.blog-hero h1 {
  font-size: clamp(30px, 3.6vw, 50px);
  line-height: 1.2;
  margin: 0;
}
@media (max-width: 1220px) {
  #top.blog-hero {
    padding-top: 170px;
  }
}
@media (max-width: 768px) {
  #top.blog-hero {
    min-height: 0;
    padding: 184px 0 48px;
  }
  #top.blog-hero h1 {
    font-size: 28px;
  }
}
.blog-hero-cat {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: 50px;
  background: rgba(13, 36, 63, 0.75);
  color: #fff !important;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none !important;
}
.blog-hero-cat:hover, .blog-hero-cat:focus {
  background: rgba(13, 36, 63, 0.95);
}
.blog-hero-meta {
  margin: 14px 0 0;
  color: #fff;
  font-size: 15px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
  opacity: 0.95;
}

/* ---------- Hub + category pages ---------- */
.blog-hub {
  padding: 0 0 70px;
}
.blog-hub-intro {
  max-width: 760px;
  margin: 0 auto 30px;
  text-align: center;
  color: #0D243F;
}
.blog-cats {
  margin-bottom: 44px;
}
.blog-section-title {
  font-size: 30px;
  color: #0D243F;
  text-align: center;
  margin: 0 0 22px;
}
@media (max-width: 768px) {
  .blog-section-title {
    font-size: 24px;
  }
}
.blog-cats .aircraft-filter-btn {
  text-decoration: none;
}
.blog-card-meta {
  display: block;
  font-size: 13px;
  color: #6b7a8c;
  margin: 6px 0 10px;
}
.blog-empty {
  text-align: center;
  color: #0D243F;
  padding: 30px 0;
}
.blog-empty a {
  color: #1D4F89;
  text-decoration: underline;
}
.blog-pagination {
  margin-top: 40px;
  text-align: center;
}
.blog-pagination .page-numbers {
  display: inline-block;
  min-width: 40px;
  padding: 8px 12px;
  margin: 0 3px;
  border-radius: 50px;
  border: 1px solid rgba(29, 79, 137, 0.3);
  color: #0D243F;
  text-decoration: none;
}
.blog-pagination .page-numbers.current {
  background: #1D4F89;
  border-color: #1D4F89;
  color: #fff;
}

/* ---------- Single post layout: article + sticky CTA ---------- */
.blog-single {
  padding: 0 0 20px;
}
.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 56px;
  align-items: start;
}
.blog-article {
  min-width: 0;
  color: #0D243F;
  font-size: 17px;
  line-height: 1.75;
}
.blog-aside {
  position: sticky;
  top: var(--oaj-blog-sticky-top, 165px);
}

/* Quick answer */
.blog-summary {
  background: #F4F7FB;
  border-left: 4px solid #1D4F89;
  border-radius: 0 16px 16px 0;
  padding: 18px 22px;
  margin: 0 0 26px;
}
.blog-summary p {
  margin: 0;
}

/* Table of contents */
.blog-toc {
  border: 1px solid rgba(29, 79, 137, 0.15);
  border-radius: 20px;
  padding: 18px 24px;
  margin: 0 0 34px;
  background: #fff;
}
.blog-toc summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 18px;
  color: #0D243F;
  list-style: none;
}
.blog-toc summary::-webkit-details-marker {
  display: none;
}
.blog-toc summary:after {
  content: "\2212";
  float: right;
  color: #1D4F89;
}
.blog-toc details:not([open]) summary:after {
  content: "+";
}
.blog-toc ol {
  margin: 14px 0 0 20px;
  padding: 0;
}
.blog-toc li {
  margin: 6px 0;
  line-height: 1.5;
}
.blog-toc a {
  color: #1D4F89;
  text-decoration: none;
}
.blog-toc a:hover, .blog-toc a:focus {
  text-decoration: underline;
}

/* Article body */
.blog-content h2 {
  font-size: 30px;
  line-height: 1.3;
  color: #0D243F;
  margin: 42px 0 16px;
  scroll-margin-top: var(--oaj-blog-sticky-top, 165px);
}
.blog-content h3 {
  font-size: 22px;
  line-height: 1.35;
  color: #0D243F;
  margin: 28px 0 12px;
}
.blog-content p {
  margin: 0 0 18px;
}
.blog-content ul, .blog-content ol {
  margin: 0 0 20px 22px;
}
.blog-content ul {
  list-style: disc;
}
.blog-content li {
  margin: 6px 0;
}
.blog-content a {
  color: #1D4F89;
  text-decoration: underline;
}
.blog-content img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
}
.blog-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 22px;
  font-size: 16px;
}
.blog-content th {
  background: linear-gradient(265.81deg, #154A89 5.55%, #4D6889 96.69%);
  color: #fff;
  text-align: left;
  font-weight: normal;
  padding: 12px 16px;
}
.blog-content td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(29, 79, 137, 0.1);
}
.blog-content .oaj-table-scroll {
  margin: 0 0 22px;
}
.blog-faqs {
  margin-top: 40px;
}
.blog-faqs h2 {
  font-size: 30px;
  color: #0D243F;
  margin-bottom: 18px;
}

/* Sticky CTA card */
.blog-cta {
  background: linear-gradient(200deg, #154A89 0%, #0D243F 100%);
  color: #fff;
  border-radius: 25px;
  padding: 28px 26px;
  box-shadow: 0 10px 30px rgba(13, 36, 63, 0.18);
}
.blog-cta-title {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 600;
  margin: 0 0 10px;
}
.blog-cta-text {
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 20px;
  opacity: 0.9;
}
.blog-cta .blog-cta-btn {
  display: block;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}
.blog-cta-phone {
  display: block;
  margin: 14px 0 0;
  text-align: center;
  color: #fff !important;
  font-size: 15px;
  text-decoration: underline !important;
}
.blog-cta-points {
  margin: 20px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  list-style: none;
  font-size: 14px;
}
.blog-cta-points li {
  position: relative;
  padding-left: 22px;
  margin: 8px 0;
}
.blog-cta-points li:before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: #C9A14A;
}

/* Related */
.blog-related {
  padding: 50px 0 70px;
  background: #F4F7FB;
  margin-top: 50px;
}
.blog-related h2 {
  font-size: 30px;
  color: #0D243F;
  margin-bottom: 26px;
  text-align: center;
}
.blog-related-all {
  text-align: center;
  margin: 30px 0 0;
}
.blog-related-all a {
  color: #1D4F89;
  text-decoration: underline;
}

/* ---------- Tablet / phone: CTA moves under the article (not sticky) ---------- */
@media (max-width: 1024px) {
  .blog-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
  .blog-aside {
    position: static;
  }
  .blog-cta {
    max-width: 560px;
  }
}
@media (max-width: 768px) {
  .blog-article {
    font-size: 16px;
  }
  .blog-content h2, .blog-faqs h2, .blog-related h2 {
    font-size: 24px;
  }
  .blog-content h3 {
    font-size: 19px;
  }
}
