/* ── Blog Post Page ── */
.blog-post-page {
  width: 100%;
  max-width: 100vw;
  overflow-x: clip;
}

.blog-post-page--error {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 64px 24px;
  background-color: #f6efdf;
  font-family: 'Inter', sans-serif;
  color: #17407d;
}

.blog-post-page--error a {
  color: #377ee4;
  text-decoration: underline;
}

/* ── Cover ── */
.blog-post-page__cover {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.blog-post-page__coverContent {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 483px;
  padding: 130px 144px;
  background-color: #f6efdf;
  text-align: center;
}

.blog-post-page__breadcrumbs {
  display: flex;
  width: 100%;
  max-width: 894px;
  justify-content: center;
}

.blog-post-page__breadcrumbs .breadcrumbs__list {
  justify-content: center;
}

.blog-post-page__title {
  max-width: 894px;
  margin: 0;
  font-family: 'Outfit', 'Trebuchet MS', 'Segoe UI', sans-serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  color: #17407d;
  text-wrap: balance;
}

.blog-post-page__imageWrap {
  width: 100%;
  height: 553px;
  background-color: #17407d;
}

.blog-post-page__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ── Body ── */
.blog-post-page__body {
  padding-top: 96px;
  padding-bottom: 80px;
  background-color: #f6efdf;
}

/* ── 3-Column Grid ── */
.blog-post-page__grid {
  display: grid;
  grid-template-columns: 118px 1fr 280px;
  gap: 96px;
  align-items: start;
  padding-inline: 24px;
}

.blog-post-page__empty {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: #6b7280;
}

/* ── Left Sidebar (Social Icons) ── */
.blog-post-page__sidebar {
  position: static;
}

.blog-post-page__sidebarLinks {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0 10px;
}

.blog-post-page__sidebarLink {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  padding: 0;
  border: 1px solid #001e44;
  background: transparent;
  color: #001e44;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.blog-post-page__sidebarLink:hover {
  background-color: #001e44;
  color: #ffffff;
}

/* ── Center Content (Sections) ── */
.blog-post-page__center {
  min-width: 0;
}

.blog-post-page__sections {
  display: flex;
  flex-direction: column;
}

.blog-post-page__sections > * {
  max-width: 100%;
}

/* TextAndHeadlineSection on blog: title above content card (same stacking as mobile layout) */
.blog-post-page .text-and-headline-section__inner {
  flex-direction: column;
  align-items: stretch;
  gap: 48px;
}

.blog-post-page .text-and-headline-section__headline-wrap {
  flex: none;
  width: 100%;
  min-width: 0;
  min-height: auto;
  padding: 0;
}

.blog-post-page .text-and-headline-section__headline {
  max-width: none;
}

.blog-post-page .text-and-headline-section__content-card {
  flex: none;
  width: 100%;
  max-width: none;
  min-width: 0;
  align-self: stretch;
}

/*
 * Full-bleed (blog only): `calc(50% - 50vw)` only works when the parent is viewport-centered.
 * Here the center column sits after sidebar + gap, so that hack leaves a gap on the right (beige past READ MORE).
 * Offset = centered .container inset + grid padding + sidebar + column gap (matches BlogPostPage grid).
 */
.blog-post-page__sections > .pasicaSection,
.blog-post-page__sections > .donateSection {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(-1 * (max(0px, (100vw - 1440px) / 2) + 24px + 118px + 96px));
  margin-right: 0;
}

@media (max-width: 1100px) {
  .blog-post-page__sections > .pasicaSection,
  .blog-post-page__sections > .donateSection {
    margin-left: calc(-1 * (max(0px, (100vw - 1440px) / 2) + 24px + 80px + 32px));
  }
}

@media (max-width: 768px) {
  .blog-post-page__sections > .pasicaSection,
  .blog-post-page__sections > .donateSection {
    margin-left: calc(-1 * (max(0px, (100vw - 1440px) / 2) + 16px));
  }
}

/* ── Right Sidebar (Related News) ── */
.blog-post-page__related {
  position: static;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.blog-post-page__relatedHeading {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  color: #032f70;
}

.blog-post-page__relatedDivider {
  width: 100%;
  height: 1px;
  background-color: #cbc4b5;
}

.blog-post-page__relatedList {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.blog-post-page__relatedCard {
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-decoration: none;
  color: inherit;
}

.blog-post-page__relatedCard:hover .blog-post-page__relatedTitle {
  color: #377ee4;
}

.blog-post-page__relatedImageWrap {
  width: 100%;
  height: 177px;
  overflow: hidden;
  background-color: #17407d;
}

.blog-post-page__relatedImage {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-post-page__relatedMeta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.blog-post-page__relatedCategory {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 24.94px;
  color: #377ee4;
}

.blog-post-page__relatedDate {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 24.94px;
  color: #377ee4;
}

.blog-post-page__relatedTitle {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.2;
  color: #001e44;
  transition: color 0.15s ease;
}

.blog-post-page__relatedEmpty {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #6b7280;
}

/* ── Post Navigation ── */
.blog-post-page__nav {
  background-color: #f6efdf;
  border-top: 1px solid #cbc4b5;
}

.blog-post-page__navInner {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding-top: 48px;
  padding-bottom: 64px;
}

.blog-post-page__navLink {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 45%;
  text-decoration: none;
}

.blog-post-page__navLink--next {
  text-align: right;
  margin-left: auto;
}

.blog-post-page__navLabel {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: 0.188px;
  text-transform: uppercase;
  color: #377ee4;
}

.blog-post-page__navTitle {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  color: #001e44;
}

.blog-post-page__navLink:hover .blog-post-page__navTitle {
  color: #17407d;
}

/* ── Print ── */
@media print {
  .blog-post-page__sidebar,
  .blog-post-page__related,
  .blog-post-page__nav {
    display: none;
  }

  .blog-post-page__grid {
    display: block;
  }
}

/* ── Tablet (collapse right sidebar) ── */
@media (max-width: 1100px) {
  .blog-post-page__grid {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 32px;
    padding-inline: 24px;
  }

  .blog-post-page__related {
    grid-column: 1 / -1;
    position: static;
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid #cbc4b5;
  }

  .blog-post-page__relatedList {
    flex-direction: row;
    gap: 24px;
  }

  .blog-post-page__relatedCard {
    flex: 1;
    min-width: 0;
  }
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .blog-post-page__coverContent {
    min-height: auto;
    padding: 40px 16px;
  }

  .blog-post-page__title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.32px;
  }

  .blog-post-page__imageWrap {
    height: 324px;
  }

  .blog-post-page__body {
    padding-top: 32px;
    padding-bottom: 48px;
  }

  .blog-post-page__grid {
    grid-template-columns: 1fr;
    gap: 0;
    padding-inline: 16px;
  }

  /* Section roots add their own horizontal padding on mobile; grid already has padding-inline — avoid doubling */
  .blog-post-page .blog-post-page__sections > * {
    padding-inline-start: 0;
    padding-inline-end: 0;
  }

  .blog-post-page__sidebar {
    position: static;
    order: -1;
    margin-bottom: 24px;
  }

  .blog-post-page__sidebarLinks {
    flex-direction: row;
    gap: 16px;
    padding: 0;
  }

  .blog-post-page__sidebarLink {
    width: 48px;
    height: 48px;
  }

  .blog-post-page__related {
    margin-top: 32px;
    padding-top: 32px;
  }

  .blog-post-page__relatedList {
    flex-direction: column;
    gap: 24px;
  }

  .blog-post-page__navInner {
    flex-direction: column;
    gap: 24px;
    padding-top: 32px;
    padding-bottom: 48px;
  }

  .blog-post-page__navLink {
    max-width: 100%;
  }

  .blog-post-page__navLink--next {
    text-align: left;
  }
}
