/* ============================================================
   PUBLIC POSTS — blog index, detail
   ============================================================ */

/* ── Hero ── */
.blog-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 100vh;
  padding-bottom: 134px;
  background-color: #160000;
  overflow: hidden;
}

.blog-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.blog-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22, 0, 0, 0.25) 0%, rgba(22, 0, 0, 0.5) 100%);
  z-index: 1;
}

.hero-post-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  border-radius: 1000px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background-color: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.4;
}

.blog-hero__inner {
  position: relative;
  z-index: 2;
}

.blog-hero__heading {
  max-width: 868px;
  font-size: var(--public-h1-size);
  font-weight: 500;
  line-height: 1.15;
  color: #ffffff;
}

/* ── Posts section ── */
.blog-posts-section {
  padding: 85px 0 100px;
  background-color: #f7f3e8;
}

.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 60px;
}

.blog-cat-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 28px;
  border-radius: var(--fnfc-radius-pill);
  border: 1px solid #ce6838;
  background-color: transparent;
  font-size: var(--fnfc-text-btn);
  font-weight: var(--fnfc-weight-semibold);
  line-height: 1.5;
  letter-spacing: var(--fnfc-tracking-btn-wider);
  text-transform: uppercase;
  text-decoration: none;
  color: #ce6838;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.blog-cat-pill:hover {
  background-color: rgba(206, 104, 56, 0.08);
  color: #ce6838;
}

.blog-cat-pill--active,
.blog-cat-pill--active:hover {
  background-color: #ce6838;
  border-color: #ce6838;
  color: #f7f3e8;
}

.blog-rows {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.blog-row {
  display: flex;
  align-items: stretch;
  gap: 72px;
}

.blog-row__media {
  flex: 0 0 673px;
  width: 673px;
  max-width: 51%;
  height: 400px;
  border-radius: 30px;
  overflow: hidden;
}

.blog-row__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-row__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  min-height: 400px;
}

.blog-row__main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

body.public-site .blog-row__title {
  margin: 0;
  font-size: var(--public-h3-size);
  font-weight: 500;
  line-height: 1.2;
  color: #46170d;
}

.blog-row__title a {
  color: inherit;
  text-decoration: none;
}

.blog-row__title a:hover {
  color: #ce6838;
}

body.public-site .blog-row__excerpt {
  margin: 0;
  font-size: var(--public-body-size);
  font-weight: 400;
  line-height: var(--public-body-leading);
  color: var(--fnfc-color-text);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  overflow: hidden;
}

.blog-row__main .btn-orange {
  margin-top: 0;
}

.blog-row__byline {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 24px 0 0;
  font-size: var(--public-body-size);
  font-weight: 400;
  line-height: var(--public-body-leading);
  color: #ce6838;
}

.blog-row__byline-rule {
  width: 1px;
  height: 20px;
  background-color: #ce6838;
}

/* ── Detail page ── */
.hero.post-detail-hero {
  min-height: 68vh;
}

.post-detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22, 0, 0, 0.28) 0%, rgba(22, 0, 0, 0.62) 100%);
  pointer-events: none;
  z-index: 0;
}

.post-detail-hero .hero__content {
  padding-bottom: 72px;
}

.post-detail-hero__byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
}

.post-detail-hero__excerpt {
  max-width: 36rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}

.public-post-back--hero .public-post-back__link {
  color: rgba(255, 255, 255, 0.9);
}

.public-post-back--hero .public-post-back__link:hover {
  color: #ffffff;
  opacity: 1;
}

.post-detail-body {
  padding: 72px 0 80px;
  background-color: #f7f3e8;
}

.post-related {
  margin-top: 2.5rem;
}

.post-related__sticky {
  position: sticky;
  top: 6.5rem;
}

.post-related__heading {
  position: relative;
  margin: 0 0 1.35rem;
  padding-bottom: 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ce6838;
}

.post-related__heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2.25rem;
  height: 2px;
  background-color: #ce6838;
}

.post-related__item + .post-related__item {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(70, 23, 13, 0.1);
}

.post-related__link {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  text-decoration: none;
}

.post-related__thumb {
  flex: 0 0 88px;
  width: 88px;
  height: 64px;
  overflow: hidden;
  border-radius: 0.7rem;
  background-color: #eadfd0;
}

.post-related__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.post-related__link:hover .post-related__img {
  transform: scale(1.06);
}

.post-related__copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  gap: 0.3rem;
  padding-top: 0.1rem;
}

.post-related__title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.3;
  color: #46170d;
}

.post-related__link:hover .post-related__title {
  color: #ce6838;
}

.post-related__meta {
  font-size: 0.8125rem;
  line-height: 1.3;
  color: #ce6838;
}

.post-related__all {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  width: 100%;
  margin-top: 1.15rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: #46170d;
}

.post-related__all:hover {
  color: #ce6838;
}

@media (min-width: 992px) {
  .post-related {
    margin-top: 0;
  }
}

.post-detail-body__byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  color: #ce6838;
  font-size: 0.95rem;
}

.hero-post-badge--light {
  border-color: #ce6838;
  background-color: transparent;
  color: #ce6838;
}

.public-post-detail__content {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #4a3f3a;
}

.public-post-detail__content h2,
.public-post-detail__content h3,
.public-post-detail__content h4 {
  margin-top: 2rem;
  margin-bottom: 0.85rem;
  font-family: var(--font-title);
  font-weight: 500;
  color: #160000;
}

.public-post-detail__content p {
  margin-bottom: 1.25rem;
}

.public-post-detail__content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

.public-post-detail__content blockquote {
  border-left: 3px solid #ce6838;
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
  color: #6b6060;
  font-style: italic;
}

.public-post-back__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #ce6838;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.public-post-back__link:hover {
  opacity: 0.75;
  color: #ce6838;
}

.public-post-detail__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.75rem;
}

.public-post-detail .cms-page-detail-body {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #333;
}

.public-post-detail .cms-page-detail-body img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

.public-post-detail .cms-page-detail-body h2,
.public-post-detail .cms-page-detail-body h3,
.public-post-detail .cms-page-detail-body h4 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: #160000;
}

.public-post-detail .cms-page-detail-body p {
  margin-bottom: 1.25rem;
}

.public-post-detail .cms-page-detail-body blockquote {
  border-left: 3px solid #ce6838;
  margin-left: 0;
  padding-left: 1.25rem;
  color: #6b6060;
  font-style: italic;
}

/* ── Responsive ── */
@media (max-width: 1199px) {
  .blog-row {
    gap: 40px;
  }

  .blog-row__media {
    flex-basis: 46%;
    width: 46%;
    max-width: none;
    height: 320px;
  }

  .blog-row__body {
    min-height: 320px;
  }
}

@media (max-width: 991px) {
  .blog-hero {
    padding-bottom: 72px;
  }

  .blog-posts-section {
    padding: 64px 0 80px;
  }

  .blog-row {
    flex-direction: column;
    gap: 24px;
  }

  .blog-row__media {
    flex-basis: auto;
    width: 100%;
    height: 280px;
  }

  .blog-row__body {
    min-height: 0;
  }
}

@media (max-width: 575px) {
  .blog-hero {
    padding-bottom: 48px;
  }

  .blog-posts-section {
    padding: 48px 0 64px;
  }

  .blog-filters {
    margin-bottom: 40px;
  }

  .blog-rows {
    gap: 48px;
  }

  .blog-row__media {
    height: 220px;
    border-radius: 20px;
  }
}
