/* ==========================================================================
   Blog styles — extends style/style.css
   Load order on every blog page:  style.css -> bootstrap -> blog.css
   Palette is inherited from the homepage:
     cream page   #F7F2E5      hero band  #FDF0E8
     brown        #443A20      olive      #6A5E3F
     accent       #d9651d      accent hi  #ff7a1a
     card face    #F1ECDF      step card  #EBE6D9
   ========================================================================== */

:root {
  --akp-cream:  #F7F2E5;
  --akp-hero:   #FDF0E8;
  --akp-brown:  #443A20;
  --akp-olive:  #6A5E3F;
  --akp-accent: #d9651d;
  --akp-hi:     #ff7a1a;
  --akp-face:   #F1ECDF;
  --akp-step:   #EBE6D9;
  --akp-line:   #D8CFBB;
  --akp-ink:    #3f3a30;
  --akp-muted:  #6f6857;
}

/* ---------- shared: hero band ------------------------------------------- */

.blog-hero {
  background: var(--akp-hero);
  position: relative;
  overflow: hidden;
  padding: 70px 0 60px;
}

.blog-hero .floating-icons .icon-box img { opacity: .55; }

.blog-hero-kicker {
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 13px;
  font-weight: 700;
  color: var(--akp-accent);
  margin-bottom: 14px;
}

.blog-hero-title {
  font-size: 6.5rem;
  font-weight: 900;
  line-height: .95;
  text-transform: uppercase;
  color: #3b2a1a;
  margin: 0;
}

.blog-hero-lead {
  max-width: 660px;
  margin: 26px auto 0;
  font-size: 16px;
  line-height: 1.75;
  color: var(--akp-ink);
}

@media (max-width: 768px) {
  .blog-hero { padding: 44px 0 40px; }
  .blog-hero-title { font-size: 3.2rem; }
  .blog-hero .floating-icons { display: none; }
}

/* ---------- category page: post cards ----------------------------------- */

.post-grid { margin-top: 10px; }

.post-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--akp-face);
  border: 1px solid var(--akp-line);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.post-card:hover {
  transform: translateY(-6px);
  border-color: var(--akp-accent);
  box-shadow: 0 14px 30px rgba(68, 58, 32, .16);
}

.post-card-media {
  aspect-ratio: 16 / 9;
  background: var(--akp-step);
  overflow: hidden;
}

.post-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.post-card:hover .post-card-media img { transform: scale(1.06); }

.post-card-body {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.post-card h3 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.28;
  color: var(--akp-brown);
  margin: 14px 0 10px;
}

.post-card p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--akp-muted);
  margin: 0;
}

.post-card .read-more {
  margin-top: auto;
  padding-top: 18px;
  font-weight: 700;
  font-size: 15px;
  color: var(--akp-accent);
}

.post-card:hover .read-more { color: var(--akp-brown); }

/* chip + meta line */

.chip {
  display: inline-block;
  padding: 4px 13px;
  border-radius: 30px;
  background: rgba(217, 101, 29, .12);
  border: 1px solid rgba(217, 101, 29, .35);
  color: var(--akp-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.post-meta {
  font-size: 13px;
  color: var(--akp-muted);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.post-meta .sep { color: var(--akp-line); }

/* featured card — horizontal on desktop */

.post-card.featured { border-radius: 24px; }

@media (min-width: 992px) {
  .post-card.featured { flex-direction: row; }
  .post-card.featured .post-card-media { flex: 0 0 48%; aspect-ratio: auto; }
  .post-card.featured .post-card-body { padding: 40px 44px; justify-content: center; }
  .post-card.featured h3 { font-size: 34px; }
  .post-card.featured p { font-size: 16px; }
}

/* ---------- breadcrumb --------------------------------------------------- */

.breadcrumb-bar {
  font-size: 14px;
  color: var(--akp-muted);
  padding: 18px 0 0;
}

.breadcrumb-bar a { color: var(--akp-accent); text-decoration: none; }
.breadcrumb-bar a:hover { text-decoration: underline; }
.breadcrumb-bar span { color: var(--akp-line); margin: 0 8px; }

/* ---------- article layout ---------------------------------------------- */

.article-wrap { padding-top: 46px; }

.article-body {
  font-size: 17px;
  line-height: 1.85;
  color: var(--akp-ink);
}

.article-body > p { margin-bottom: 20px; }

.article-body h2 {
  font-size: 30px;
  font-weight: 700;
  color: var(--akp-brown);
  margin: 48px 0 18px;
  padding-top: 6px;
  scroll-margin-top: 24px;
}

.article-body h3 {
  font-size: 21px;
  font-weight: 700;
  color: var(--akp-brown);
  margin: 32px 0 12px;
  scroll-margin-top: 24px;
}

.article-body a { color: var(--akp-accent); }

/* Download buttons inside the article.
   The rule above is (0,1,1) and beats .download-btn's own (0,1,0) colour,
   which left orange text on the orange button. a.download-btn is (0,2,1),
   so it wins back. inline-block is needed too: .download-btn has vertical
   padding but no display, and outside a flex parent it stays inline, so
   the padding bleeds instead of forming the pill. */
.download-btn { display: inline-block; }

.article-body a.download-btn {
  color: #fff;
  background-color: var(--akp-accent);
  text-decoration: none;
}

.article-body a.download-btn:hover {
  color: #fff;
  background-color: #000;
}

.article-body ul,
.article-body ol { margin: 0 0 22px; padding-left: 22px; }
.article-body li { margin-bottom: 10px; }
.article-body ul li::marker { color: var(--akp-accent); }
.article-body ol li::marker { color: var(--akp-accent); font-weight: 700; }

.article-body strong { color: var(--akp-brown); }

.article-lead {
  font-size: 19px;
  line-height: 1.75;
  color: var(--akp-brown);
  font-weight: 500;
  border-left: 4px solid var(--akp-accent);
  padding-left: 20px;
  margin-bottom: 34px;
}

.article-figure { margin: 34px 0; }

.article-figure img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--akp-line);
}

.article-figure figcaption {
  font-size: 13px;
  color: var(--akp-muted);
  text-align: center;
  margin-top: 10px;
}

/* UI screenshots — never upscale past native size, or the text goes soft */
.article-figure.shot img {
  width: auto;
  max-width: 100%;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  background: #fff;
  padding: 8px;
  box-shadow: 0 6px 18px rgba(68, 58, 32, .10);
}

/* Featured image — sits directly under the hero band.
   Capped a little above the article text column (~700px) so it introduces
   the post without dominating it. Change max-width to resize. */
.featured-image {
  margin: -28px auto 0;
  max-width: 760px;
  padding: 0 12px;
}

.featured-image img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  border: 1px solid var(--akp-line);
  box-shadow: 0 18px 40px rgba(68, 58, 32, .18);
  display: block;
}

@media (max-width: 768px) {
  .featured-image { margin-top: -18px; }
  .featured-image img { border-radius: 12px; }
}

/* callouts — square, echoing .content-box */

.callout {
  background: var(--akp-step);
  border: 1px solid #bdb59f;
  border-left: 4px solid var(--akp-accent);
  padding: 18px 22px;
  margin: 28px 0;
  font-size: 16px;
  line-height: 1.75;
}

.callout p:last-child { margin-bottom: 0; }

.callout-title {
  display: block;
  font-weight: 700;
  color: var(--akp-brown);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 13px;
}

.callout.warn { border-left-color: #b3411c; }
.callout.warn .callout-title { color: #b3411c; }

/* numbered step cards — same motif as the homepage .content-box */

.step-card {
  background: var(--akp-step);
  border: 1px solid grey;
  padding: 22px 24px;
  margin: 22px 0;
}

.step-card .step-num {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--akp-brown);
  display: block;
  margin-bottom: 12px;
}

.step-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  color: var(--akp-brown);
}

.step-card p { color: grey; margin-bottom: 12px; }
.step-card p:last-child { margin-bottom: 0; }
.step-card ul, .step-card ol { color: grey; margin-bottom: 0; }

/* data table — olive frame, same motif as .req_box */

.data-table {
  background: var(--akp-olive);
  border-radius: 20px;
  padding: 14px;
  margin: 30px 0;
  overflow-x: auto;
}

.data-table table {
  width: 100%;
  min-width: 380px;
  background: var(--akp-face);
  border-radius: 14px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  margin: 0;
}

.data-table th {
  text-align: left;
  padding: 14px 18px;
  font-size: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--akp-olive);
}

.data-table td {
  padding: 14px 18px;
  font-size: 16px;
  color: var(--akp-ink);
  border-top: 1px solid #ded6c4;
}

.data-table td:first-child { color: var(--akp-brown); font-weight: 600; }

/* ---------- table of contents (sticky rail) ------------------------------ */

.toc {
  background: var(--akp-olive);
  border-radius: 20px;
  padding: 12px;
}

.toc-inner {
  background: var(--akp-face);
  border-radius: 14px;
  padding: 20px 22px;
}

.toc h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 700;
  color: var(--akp-brown);
  margin: 0 0 14px;
}

.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }

.toc li { counter-increment: toc; margin-bottom: 11px; line-height: 1.45; }

.toc a {
  font-size: 15px;
  color: var(--akp-ink);
  text-decoration: none;
  display: block;
}

.toc li::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--akp-accent);
  font-weight: 700;
  font-size: 12px;
  margin-right: 8px;
}

.toc a:hover { color: var(--akp-accent); }

@media (min-width: 992px) {
  .toc-sticky { position: sticky; top: 24px; }
}

/* sidebar download card */

.side-cta {
  background: var(--akp-brown);
  border-radius: 20px;
  padding: 26px 24px;
  text-align: center;
  margin-top: 24px;
}

.side-cta h4 { color: #fff; font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.side-cta p { color: #d8cfc4; font-size: 13px; margin-bottom: 18px; }

/* ---------- in-article CTA band ------------------------------------------ */

.inline-cta {
  background: var(--akp-brown);
  border-radius: 20px;
  padding: 34px 32px;
  text-align: center;
  margin: 44px 0;
}

.inline-cta h3 { color: #fff; font-size: 26px; font-weight: 700; margin-bottom: 8px; }
.inline-cta p { color: #d8cfc4; font-size: 15px; margin-bottom: 20px; }

/* ---------- bottom CTA band (echoes homepage .section-5) ----------------- */

.blog-cta-band {
  background: var(--akp-brown);
  border-top-right-radius: 20%;
  border-top-left-radius: 20%;
  padding: 70px 20px;
  text-align: center;
  margin-top: 100px;
}

.blog-cta-band h2 {
  color: #fff;
  font-size: 3.4rem;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 14px;
}

.blog-cta-band p { color: #d8cfc4; font-size: 15px; }

@media (max-width: 768px) {
  .blog-cta-band { border-top-right-radius: 40px; border-top-left-radius: 40px; padding: 50px 16px; }
  .blog-cta-band h2 { font-size: 2rem; }
}

/* ---------- related posts ------------------------------------------------ */

.related-head {
  font-size: 30px;
  font-weight: 700;
  color: var(--akp-brown);
  margin-bottom: 26px;
}

/* ---------- share / author strip ----------------------------------------- */

.article-foot {
  border-top: 1px solid var(--akp-line);
  margin-top: 44px;
  padding-top: 24px;
  font-size: 14px;
  color: var(--akp-muted);
}

/* ---------- nav active state --------------------------------------------- */

.navbar-nav .nav-link.active { color: var(--akp-accent) !important; font-weight: 700; }
