/* =====================================================
   Alpha Package — Blog stylesheet
   Extends style.css. Loaded AFTER style.css.
   Reuses the same tokens: DM Sans, #e96989 rose,
   #A08963 gold, #555/#666 greys, white lift-on-hover cards.
   ===================================================== */

:root {
  --ap-rose: #e96989;
  --ap-rose-dark: #d85a7a;
  --ap-gold: #A08963;
  --ap-gold-dark: #8a6d3b;
  --ap-ink: #333;
  --ap-body: #555;
  --ap-muted: #666;
  --ap-tint: #fff9fa;
  --ap-tint-2: #fff5f7;
  --ap-shell: #f8f4f0;
  --ap-line: #eee;
  --ap-card-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  --ap-card-shadow-hover: 0 15px 30px rgba(233, 105, 137, 0.18);
  --ap-radius: 10px;
}

body.blog-body {
  font-family: "DM Sans", sans-serif;
  color: var(--ap-body);
  background: #fff;
}

/* Reading progress bar (single post) */
.reading_progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: var(--ap-rose);
  z-index: 1200;
  transition: width 0.1s linear;
}

/* -----------------------------------------------------
   Shared: section shell + headings
   ----------------------------------------------------- */
.blog_shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.blog_section_title {
  text-align: center;
  font-family: "DM Sans", sans-serif;
  color: var(--ap-rose);
  font-size: 1.5rem;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 18px;
  margin-bottom: 40px;
}

.blog_section_title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--ap-rose);
}

/* -----------------------------------------------------
   Breadcrumb
   ----------------------------------------------------- */
.blog_breadcrumb {
  font-family: "DM Sans", sans-serif;
  font-size: 0.95rem;
  color: var(--ap-muted);
  padding: 25px 0 0;
}

.blog_breadcrumb a {
  color: var(--ap-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog_breadcrumb a:hover {
  color: var(--ap-rose);
}

.blog_breadcrumb span {
  color: var(--ap-rose);
}

.blog_breadcrumb i {
  font-size: 0.7rem;
  margin: 0 8px;
  opacity: 0.6;
}

/* -----------------------------------------------------
   Archive hero
   ----------------------------------------------------- */
.blog_hero {
  background: linear-gradient(135deg, var(--ap-tint-2) 0%, #ffffff 100%);
  padding: 70px 20px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.blog_hero h1 {
  font-family: "DM Sans", sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--ap-rose);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
}

.blog_hero p {
  font-family: "DM Sans", sans-serif;
  color: var(--ap-muted);
  font-size: 1.2rem;
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto;
}

.blog_hero_box {
  position: absolute;
  width: 90px;
  height: auto;
  opacity: 0.75;
  animation: smoothBounce 2.4s infinite ease-in-out;
  pointer-events: none;
}

.blog_hero_box.left {
  left: 6%;
  top: 28%;
}

.blog_hero_box.right {
  right: 6%;
  top: 40%;
  animation-duration: 3s;
}

/* -----------------------------------------------------
   Toolbar: search + category filter
   ----------------------------------------------------- */
.blog_toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 50px 0 35px;
}

.blog_filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter_pill {
  font-family: "DM Sans", sans-serif;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 9px 20px;
  border-radius: 30px;
  border: 1px solid var(--ap-gold);
  background: transparent;
  color: var(--ap-body);
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter_pill:hover {
  background: var(--ap-tint);
  border-color: var(--ap-rose);
  color: var(--ap-rose);
}

.filter_pill.active {
  background: var(--ap-rose);
  border-color: var(--ap-rose);
  color: #fff;
  box-shadow: 0 5px 15px rgba(233, 105, 137, 0.3);
}

.blog_search {
  position: relative;
  min-width: 260px;
}

.blog_search input {
  width: 100%;
  padding: 12px 44px 12px 16px;
  border: 1px solid var(--ap-gold);
  border-radius: 30px;
  font-family: "DM Sans", sans-serif;
  font-size: 0.95rem;
  color: var(--ap-body);
  background: transparent;
  outline: none;
  transition: all 0.3s ease;
}

.blog_search input:focus {
  box-shadow: 0 0 0 2px rgba(233, 105, 137, 0.2);
  border-color: var(--ap-rose);
}

.blog_search i {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ap-rose);
  pointer-events: none;
}

.blog_empty {
  display: none;
  text-align: center;
  padding: 60px 20px;
  color: var(--ap-muted);
  font-family: "DM Sans", sans-serif;
  font-size: 1.1rem;
}

.blog_empty.show {
  display: block;
}

/* -----------------------------------------------------
   Featured post
   ----------------------------------------------------- */
.featured_post {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--ap-card-shadow);
  border: 1px solid rgba(194, 112, 169, 0.15);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  margin-top: 55px;
  margin-bottom: 20px;
}

.featured_post:hover {
  transform: translateY(-6px);
  box-shadow: var(--ap-card-shadow-hover);
}

.featured_media {
  position: relative;
  overflow: hidden;
  min-height: 380px;
}

.featured_media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.featured_post:hover .featured_media img {
  transform: scale(1.05);
}

.featured_flag {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--ap-rose);
  color: #fff;
  font-family: "DM Sans", sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 7px 16px;
  border-radius: 20px;
  z-index: 2;
}

.featured_body {
  padding: 45px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured_body h2 {
  font-family: "DM Sans", sans-serif;
  font-size: 1.8rem;
  line-height: 1.3;
  color: var(--ap-ink);
  margin: 14px 0 18px;
}

.featured_body h2 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.featured_body h2 a:hover {
  color: var(--ap-rose);
}

.featured_body p {
  font-family: "DM Sans", sans-serif;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ap-body);
  margin-bottom: 25px;
}

/* -----------------------------------------------------
   Post cards grid
   ----------------------------------------------------- */
.blog_grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin: 50px 0;
  list-style: none;
}

.blog_card {
  background: #fff;
  border-radius: var(--ap-radius);
  overflow: hidden;
  box-shadow: var(--ap-card-shadow);
  border: 1px solid rgba(194, 112, 169, 0.15);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.blog_card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--ap-rose);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  z-index: 3;
}

.blog_card:hover {
  transform: translateY(-10px);
  box-shadow: var(--ap-card-shadow-hover);
}

.blog_card:hover::before {
  transform: scaleX(1);
}

.blog_card.is_hidden {
  display: none;
}

.card_media {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #393a3a;
}

.card_media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.blog_card:hover .card_media img {
  transform: scale(1.06);
  filter: brightness(0.85);
}

.card_tag {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(233, 105, 137, 0.92);
  backdrop-filter: blur(2px);
  color: #fff;
  font-family: "DM Sans", sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: 20px;
  z-index: 2;
}

.card_body {
  padding: 24px 24px 0;
  flex: 1;
}

.card_body h3 {
  font-family: "DM Sans", sans-serif;
  font-size: 1.2rem;
  line-height: 1.4;
  color: var(--ap-ink);
  margin-bottom: 12px;
}

.card_body h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.card_body h3 a:hover {
  color: var(--ap-rose);
}

.card_body p {
  font-family: "DM Sans", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ap-body);
}

/* Post meta line (avatar • author • date • read time) */
.post_meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "DM Sans", sans-serif;
  font-size: 0.85rem;
  color: var(--ap-muted);
  flex-wrap: wrap;
}

.post_meta img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--ap-rose);
}

.post_meta .meta_sep {
  opacity: 0.5;
}

.post_meta strong {
  color: var(--ap-ink);
  font-weight: 600;
}

.card_footer {
  padding: 18px 24px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  border-top: 1px solid var(--ap-line);
}

.read_more {
  font-family: "DM Sans", sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ap-rose);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.read_more i {
  margin-left: 6px;
  transition: transform 0.3s ease;
}

.read_more:hover i {
  transform: translateX(5px);
}

/* -----------------------------------------------------
   Pagination
   ----------------------------------------------------- */
.blog_pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 20px 0 70px;
}

.blog_pagination a,
.blog_pagination span {
  min-width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 50%;
  border: 1px solid var(--ap-gold);
  color: var(--ap-body);
  font-family: "DM Sans", sans-serif;
  text-decoration: none;
  transition: all 0.3s ease;
}

.blog_pagination a:hover {
  background: var(--ap-tint);
  border-color: var(--ap-rose);
  color: var(--ap-rose);
}

.blog_pagination .current {
  background: var(--ap-rose);
  border-color: var(--ap-rose);
  color: #fff;
}

.blog_pagination .disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* -----------------------------------------------------
   Newsletter band
   ----------------------------------------------------- */
.blog_newsletter {
  background: linear-gradient(135deg, var(--ap-tint-2) 0%, #ffffff 100%);
  padding: 70px 20px;
  text-align: center;
}

.blog_newsletter h2 {
  font-family: "DM Sans", sans-serif;
  color: var(--ap-rose);
  font-size: 1.5rem;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.blog_newsletter p {
  font-family: "DM Sans", sans-serif;
  color: var(--ap-muted);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

.newsletter_note {
  font-size: 0.85rem !important;
  color: var(--ap-muted);
  margin: 18px auto 0 !important;
  opacity: 0.8;
}

/* =====================================================
   SINGLE POST
   ===================================================== */

.post_hero {
  position: relative;
  height: 60vh;
  min-height: 420px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  border-radius: 0 0 80px 0;
}

/* Direct child only. A bare `.post_hero img` also matches any nested image
   (e.g. an avatar), blowing it up to full-bleed behind the title. */
.post_hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post_hero_overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.25) 60%, rgba(0, 0, 0, 0.1) 100%);
}

.post_hero_inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px 55px;
  width: 100%;
  text-align: center;
}

.post_hero_inner .card_tag {
  position: static;
  display: inline-block;
  margin-bottom: 18px;
}

.post_hero_inner h1 {
  font-family: "DM Sans", sans-serif;
  font-size: 2.4rem;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 22px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

/* Layout: article + sidebar */
.post_layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 55px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 55px 20px 80px;
  align-items: start;
}

/* -----------------------------------------------------
   BLOCK LIBRARY — article body
   ----------------------------------------------------- */
.post_article {
  font-family: "DM Sans", sans-serif;
  color: var(--ap-body);
  min-width: 0;
}

.post_article > p {
  font-size: 1.08rem;
  line-height: 1.85;
  margin-bottom: 24px;
  color: var(--ap-body);
}

.post_article h2 {
  font-family: "DM Sans", sans-serif;
  font-size: 1.6rem;
  color: var(--ap-ink);
  margin: 50px 0 20px;
  padding-bottom: 12px;
  position: relative;
  scroll-margin-top: 30px;
}

.post_article h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--ap-rose);
}

.post_article h3 {
  font-family: "DM Sans", sans-serif;
  font-size: 1.25rem;
  color: var(--ap-rose);
  margin: 34px 0 14px;
  scroll-margin-top: 30px;
}

.post_article a {
  color: var(--ap-rose);
  text-decoration: none;
  border-bottom: 1px solid rgba(233, 105, 137, 0.35);
  transition: all 0.3s ease;
}

.post_article a:hover {
  border-bottom-color: var(--ap-rose);
}

.post_article strong {
  color: var(--ap-ink);
  font-weight: 600;
}

/* Block: lede */
.post_lede {
  font-size: 1.28rem !important;
  line-height: 1.7 !important;
  color: var(--ap-ink) !important;
  font-weight: 500;
  padding-left: 22px;
  border-left: 4px solid var(--ap-rose);
  margin-bottom: 34px !important;
}

/* Block: figure */
.post_figure {
  margin: 40px 0;
}

.post_figure img {
  width: 100%;
  height: auto;
  border-radius: var(--ap-radius);
  display: block;
  box-shadow: var(--ap-card-shadow);
}

.post_figure figcaption {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--ap-muted);
  text-align: center;
  font-style: italic;
}

/* Block: gallery */
.post_gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin: 40px 0;
}

.post_gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--ap-radius);
  transition: transform 0.4s ease;
}

.post_gallery img:hover {
  transform: scale(1.03);
}

/* Block: pull quote */
.post_quote {
  margin: 45px 0;
  padding: 34px 34px 34px 70px;
  background: var(--ap-tint);
  border-radius: var(--ap-radius);
  border-left: 4px solid var(--ap-rose);
  position: relative;
}

.post_quote::before {
  content: "\201C";
  position: absolute;
  left: 22px;
  top: 6px;
  font-size: 4.5rem;
  line-height: 1;
  color: var(--ap-rose);
  opacity: 0.35;
  font-family: Georgia, serif;
}

.post_quote p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--ap-ink);
  font-style: italic;
  margin-bottom: 12px;
}

.post_quote cite {
  font-size: 0.9rem;
  color: var(--ap-rose);
  font-style: normal;
  font-weight: 600;
}

/* Block: callout (tip / note / warn) */
.post_callout {
  display: flex;
  gap: 18px;
  margin: 38px 0;
  padding: 24px 26px;
  border-radius: var(--ap-radius);
  background: var(--ap-tint);
  border: 1px solid rgba(233, 105, 137, 0.3);
}

.post_callout i {
  font-size: 1.4rem;
  color: var(--ap-rose);
  flex-shrink: 0;
  margin-top: 3px;
}

.post_callout h4 {
  font-family: "DM Sans", sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ap-rose);
  margin-bottom: 8px;
}

.post_callout p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ap-body);
  margin: 0;
}

.post_callout.note {
  background: #fbf8f2;
  border-color: rgba(160, 137, 99, 0.4);
}

.post_callout.note i,
.post_callout.note h4 {
  color: var(--ap-gold);
}

.post_callout.warn {
  background: #fff8f6;
  border-color: rgba(233, 105, 137, 0.45);
}

/* Block: bulleted list */
.post_list {
  list-style: none;
  margin: 26px 0 32px;
  padding: 0;
}

.post_list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 14px;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ap-body);
}

.post_list li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 0.85rem;
  color: var(--ap-rose);
}

/* Block: numbered steps */
.post_steps {
  list-style: none;
  counter-reset: apstep;
  margin: 30px 0 36px;
  padding: 0;
}

.post_steps li {
  counter-increment: apstep;
  position: relative;
  padding-left: 56px;
  margin-bottom: 26px;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ap-body);
}

.post_steps li::before {
  content: counter(apstep);
  position: absolute;
  left: 0;
  top: -2px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ap-rose);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.post_steps li strong {
  display: block;
  color: var(--ap-ink);
  margin-bottom: 4px;
}

/* Block: comparison table */
.post_table_wrap {
  overflow-x: auto;
  margin: 40px 0;
  border-radius: var(--ap-radius);
  box-shadow: var(--ap-card-shadow);
}

.post_table {
  width: 100%;
  border-collapse: collapse;
  font-family: "DM Sans", sans-serif;
  font-size: 0.98rem;
  background: #fff;
  min-width: 520px;
}

.post_table thead th {
  background: var(--ap-rose);
  color: #fff;
  text-align: left;
  padding: 16px 20px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.8px;
}

.post_table tbody td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--ap-line);
  color: var(--ap-body);
  line-height: 1.6;
}

.post_table tbody tr:nth-child(even) {
  background: #fdfbfb;
}

.post_table tbody tr:last-child td {
  border-bottom: none;
}

.post_table tbody td:first-child {
  font-weight: 600;
  color: var(--ap-ink);
}

/* Block: stat row */
.post_stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 18px;
  margin: 40px 0;
}

.post_stat {
  background: #fff;
  border-radius: var(--ap-radius);
  padding: 26px 18px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(233, 105, 137, 0.1);
  transition: transform 0.3s ease;
}

.post_stat:hover {
  transform: translateY(-6px);
}

.post_stat b {
  display: block;
  font-family: "DM Sans", sans-serif;
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--ap-rose);
  margin-bottom: 6px;
}

.post_stat span {
  font-size: 0.92rem;
  color: var(--ap-body);
  line-height: 1.4;
}

/* Block: key takeaways */
.post_takeaways {
  margin: 48px 0;
  padding: 32px 34px;
  background: linear-gradient(135deg, var(--ap-tint-2) 0%, #ffffff 100%);
  border-radius: var(--ap-radius);
  border: 1px solid rgba(233, 105, 137, 0.25);
}

.post_takeaways h4 {
  font-family: "DM Sans", sans-serif;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ap-rose);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.post_takeaways ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.post_takeaways li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--ap-body);
}

.post_takeaways li:last-child {
  margin-bottom: 0;
}

.post_takeaways li::before {
  content: "\f0da";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--ap-rose);
}

/* Block: inline CTA banner */
.post_cta {
  margin: 50px 0;
  padding: 40px 36px;
  border-radius: 14px;
  background: var(--ap-rose);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.post_cta h4 {
  font-family: "DM Sans", sans-serif;
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.post_cta p {
  font-size: 1.05rem;
  line-height: 1.6;
  opacity: 0.95;
  max-width: 520px;
  margin: 0 auto 24px;
}

.post_cta .cta_btn {
  display: inline-block;
  padding: 13px 34px;
  background: #fff;
  color: var(--ap-rose);
  border-radius: 30px;
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.92rem;
  text-decoration: none;
  border: none;
  transition: all 0.3s ease;
}

.post_cta .cta_btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Block: tags */
.post_tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 50px 0 30px;
  padding-top: 30px;
  border-top: 1px solid var(--ap-line);
}

.post_tags span {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ap-muted);
  margin-right: 6px;
}

.post_tags a {
  font-size: 0.85rem;
  padding: 7px 16px;
  border-radius: 20px;
  background: var(--ap-tint);
  color: var(--ap-rose);
  text-decoration: none;
  border: 1px solid rgba(233, 105, 137, 0.25);
  transition: all 0.3s ease;
}

.post_tags a:hover {
  background: var(--ap-rose);
  color: #fff;
  border-color: var(--ap-rose);
}

/* Block: share */
.post_share {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 45px;
  flex-wrap: wrap;
}

.post_share span {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ap-muted);
}

.post_share a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ap-tint);
  color: var(--ap-rose);
  border: 1px solid rgba(233, 105, 137, 0.25);
  text-decoration: none;
  transition: all 0.3s ease;
}

.post_share a:hover {
  background: var(--ap-rose);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(233, 105, 137, 0.35);
}

/* Block: author card */
.post_author {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  padding: 30px;
  background: #fff;
  border-radius: var(--ap-radius);
  box-shadow: var(--ap-card-shadow);
  border: 1px solid rgba(194, 112, 169, 0.15);
  margin-bottom: 45px;
}

.post_author img {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--ap-rose);
  flex-shrink: 0;
}

.post_author h4 {
  font-family: "DM Sans", sans-serif;
  font-size: 1.1rem;
  color: var(--ap-ink);
  margin-bottom: 4px;
}

.post_author .author_role {
  font-size: 0.85rem;
  color: var(--ap-rose);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.post_author p {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--ap-body);
  margin: 0;
}

/* Block: prev / next */
.post_nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.post_nav a {
  padding: 22px 24px;
  border-radius: var(--ap-radius);
  background: #fff;
  border: 1px solid rgba(194, 112, 169, 0.2);
  box-shadow: var(--ap-card-shadow);
  text-decoration: none;
  transition: all 0.3s ease;
}

.post_nav a:hover {
  transform: translateY(-4px);
  box-shadow: var(--ap-card-shadow-hover);
  border-color: var(--ap-rose);
}

.post_nav small {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ap-rose);
  margin-bottom: 8px;
}

.post_nav strong {
  display: block;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--ap-ink);
  font-weight: 600;
}

.post_nav .next_link {
  text-align: right;
}

.post_nav .is_empty {
  visibility: hidden;
}

/* -----------------------------------------------------
   Sidebar
   ----------------------------------------------------- */
.post_sidebar {
  position: sticky;
  top: 25px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.sidebar_card {
  background: #fff;
  border-radius: var(--ap-radius);
  padding: 26px;
  box-shadow: var(--ap-card-shadow);
  border: 1px solid rgba(194, 112, 169, 0.15);
}

.sidebar_card h4 {
  font-family: "DM Sans", sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ap-rose);
  margin-bottom: 18px;
  padding-bottom: 12px;
  position: relative;
}

.sidebar_card h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--ap-rose);
}

/* Table of contents */
.post_toc ol {
  list-style: none;
  counter-reset: aptoc;
  padding: 0;
  margin: 0;
}

.post_toc li {
  counter-increment: aptoc;
  margin-bottom: 12px;
}

.post_toc a {
  display: flex;
  gap: 10px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ap-body);
  text-decoration: none;
  transition: all 0.3s ease;
  border-left: 2px solid transparent;
  padding-left: 10px;
}

.post_toc a::before {
  content: "0" counter(aptoc);
  color: var(--ap-rose);
  font-weight: 600;
  flex-shrink: 0;
  opacity: 0.7;
}

.post_toc a:hover,
.post_toc a.active {
  color: var(--ap-rose);
  border-left-color: var(--ap-rose);
}

/* Popular posts list */
.sidebar_posts {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar_posts li {
  display: flex;
  gap: 14px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--ap-line);
}

.sidebar_posts li:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.sidebar_posts img {
  width: 68px;
  height: 68px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.sidebar_posts a {
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--ap-ink);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.sidebar_posts a:hover {
  color: var(--ap-rose);
}

.sidebar_posts small {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--ap-muted);
}

/* Sidebar CTA */
.sidebar_cta {
  background: var(--ap-rose);
  color: #fff;
  text-align: center;
  border: none;
}

.sidebar_cta img {
  width: 90px;
  height: auto;
  margin: 0 auto 14px;
  display: block;
  animation: smoothBounce 2.5s infinite ease-in-out;
}

.sidebar_cta h4 {
  color: #fff;
}

.sidebar_cta h4::after {
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
}

.sidebar_cta p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
  opacity: 0.95;
}

.sidebar_cta .cta_btn {
  display: inline-block;
  padding: 12px 28px;
  background: #fff;
  color: var(--ap-rose);
  border-radius: 30px;
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.sidebar_cta .cta_btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Sidebar tag cloud */
.sidebar_tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sidebar_tags a {
  font-size: 0.82rem;
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--ap-tint);
  color: var(--ap-rose);
  text-decoration: none;
  border: 1px solid rgba(233, 105, 137, 0.25);
  transition: all 0.3s ease;
}

.sidebar_tags a:hover {
  background: var(--ap-rose);
  color: #fff;
}

/* -----------------------------------------------------
   Related posts band
   ----------------------------------------------------- */
.related_posts {
  background: var(--ap-tint);
  padding: 70px 0;
}

.related_posts .blog_grid {
  margin: 0;
}

/* -----------------------------------------------------
   Responsive
   ----------------------------------------------------- */
@media (max-width: 1024px) {
  .post_layout {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .post_sidebar {
    position: static;
  }

  .featured_post {
    grid-template-columns: 1fr;
  }

  .featured_media {
    min-height: 280px;
  }
}

@media (max-width: 768px) {
  .blog_hero {
    padding: 45px 20px 55px;
  }

  .blog_hero h1 {
    font-size: 1.6rem;
  }

  .blog_hero p {
    font-size: 1rem;
  }

  .blog_hero_box {
    display: none;
  }

  .blog_toolbar {
    flex-direction: column;
    align-items: stretch;
    margin: 35px 0 25px;
  }

  .blog_search {
    min-width: 100%;
  }

  .blog_filter {
    justify-content: center;
  }

  .featured_body {
    padding: 30px 24px;
  }

  .featured_body h2 {
    font-size: 1.35rem;
  }

  .blog_grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .post_hero {
    height: auto;
    min-height: 340px;
    border-radius: 0 0 40px 0;
  }

  .post_hero_inner {
    padding: 90px 20px 40px;
  }

  .post_hero_inner h1 {
    font-size: 1.5rem;
  }

  .post_layout {
    padding: 35px 20px 60px;
  }

  .post_article > p {
    font-size: 1rem;
  }

  .post_article h2 {
    font-size: 1.3rem;
    margin: 38px 0 16px;
  }

  .post_lede {
    font-size: 1.12rem !important;
    padding-left: 16px;
  }

  .post_quote {
    padding: 26px 22px 26px 22px;
  }

  .post_quote::before {
    display: none;
  }

  .post_quote p {
    font-size: 1.05rem;
  }

  .post_callout {
    flex-direction: column;
    gap: 10px;
    padding: 20px;
  }

  .post_cta {
    padding: 30px 22px;
  }

  .post_cta h4 {
    font-size: 1.1rem;
  }

  .post_author {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .post_nav {
    grid-template-columns: 1fr;
  }

  .post_nav .next_link {
    text-align: left;
  }

  .post_nav .is_empty {
    display: none;
  }

  .post_gallery img {
    height: 150px;
  }

  .related_posts {
    padding: 50px 0;
  }
}

@media (max-width: 576px) {
  .blog_hero h1 {
    font-size: 1.4rem;
  }

  .post_hero_inner h1 {
    font-size: 1.3rem;
  }

  .post_meta {
    font-size: 0.8rem;
    justify-content: center;
  }

}
