/* ==================== BLOG POST PAGE ==================== */


/* ========== HERO ========== */

.post-hero {
  padding: 20px 0 0;
}

.post-hero .container {
  max-width: 1720px;
  padding: 0 20px;
}

/* Заокруглений блок з радіальним градієнтом (теплий бежевий → майже білий) */
.post-hero__inner {
  border-radius: 22px;
  background: radial-gradient(ellipse 100% 150% at 50% 0%, #ddd5cc 0%, #f8f7f5 100%);
  padding: calc(var(--header-top) + var(--header-height-desktop)) 60px 50px;
}

/* Двоколонковий ряд: ліва карта + праве фото */
.post-hero__content {
  display: flex;
  gap: 20px;
  padding: 0 85px;
}

/* Ліва карта — напівпрозорий білий блок */
.post-hero__card {
  flex: 1;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Breadcrumb — вирівнювання по лівому краю (override global center) */
.post-hero .breadcrumb__list {
  justify-content: flex-start;
}

/* Назва поста — gradient, uppercase, 40px */
.post-hero__title {
  font-size: 40px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  background: var(--gradient-heading);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

/* Короткий текст поста */
.post-hero__excerpt {
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: -0.09px;
  color: #111;
  margin: 0;
}

/* Дата публікації */
.post-hero__date {
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  color: #9ca3af;
  margin: 0;
}

/* Праве фото — абсолютне заповнення */
.post-hero__photo {
  flex: 1;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  min-height: 300px;
  align-self: stretch;
}

.post-hero__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* ========== КОНТЕНТ ПОСТА ========== */

.post-content {
  padding: 60px 20px 80px;
}

.post-content__inner {
  max-width: 920px;
  margin: 0 auto;
}


/* ---- Prose — стилі WYSIWYG-контенту ---- */

.prose {
  color: #111;
  font-size: 16px;
  line-height: 1.6;
}

/* Заголовок h2 — gradient, 28px */
.prose h2 {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  background: var(--gradient-heading);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 40px 0 16px;
}

.prose h2:first-child {
  margin-top: 0;
}

/* Заголовок h3 */
.prose h3 {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  color: #1c1c1e;
  margin: 32px 0 12px;
}

.prose h3:first-child {
  margin-top: 0;
}

/* Абзаци */
.prose p {
  font-size: 16px;
  line-height: 1.6;
  color: #111;
  margin: 0 0 10px;
}

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

/* Виділення */
.prose strong {
  font-weight: 600;
}

/* Посилання */
.prose a {
  color: var(--color-primary);
  text-decoration: underline;
  transition: opacity var(--transition);
}

.prose a:hover {
  opacity: 0.75;
}

/* Список з іконкою-галочкою */
.prose ul {
  list-style: none;
  padding: 0 0 0 20px;
  margin: 0 0 10px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.prose ul:last-child {
  margin-bottom: 0;
}

.prose ul li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  font-size: 16px;
  line-height: 1.6;
  color: #111;
}

/* Іконка-галочка перед кожним li */
.prose ul li::before {
  content: '';
  display: block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
  background: url('../img/check.svg') center / contain no-repeat;
}

/* Нумерований список */
.prose ol {
  padding: 0 0 0 24px;
  margin: 0 0 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.prose ol:last-child {
  margin-bottom: 0;
}

.prose ol li {
  font-size: 16px;
  line-height: 1.6;
  color: #111;
}

/* Цитата */
.prose blockquote {
  border-left: 3px solid var(--color-primary);
  background: transparent;
  padding: 4px 20px;
  margin: 0 0 10px;
}

.prose blockquote p {
  font-size: 14px;
}

/* Зображення в тексті */
.prose img {
  display: block;
  width: 100%;
  height: 453px;
  object-fit: cover;
  border-radius: 16px;
  margin: 0;
}

/* Відступи між блоковими елементами */
.prose h2 + ul,
.prose h2 + ol,
.prose h2 + p,
.prose p + ul,
.prose p + ol {
  margin-top: 0;
}

.prose ul + p,
.prose ol + p,
.prose ul + h2,
.prose ol + h2,
.prose img + h2,
.prose img + p {
  margin-top: 32px;
}

.prose img {
  margin-top: 32px;
  margin-bottom: 32px;
}

.prose img:first-child {
  margin-top: 0;
}

.prose img:last-child {
  margin-bottom: 0;
}


/* ============ ≤1199px ============ */
@media (max-width: 1199px) {
  .post-hero__inner {
    padding-left: 20px;
    padding-right: 20px;
  }

  .post-hero__content {
    padding: 0;
  }

  .post-hero__title {
    font-size: 32px;
  }
}

/* ============ ≤1023px ============ */
@media (max-width: 1023px) {
  .post-hero {
    padding: 0;
  }

  .post-hero .container {
    padding: 0;
  }

  .post-hero__inner {
    border-radius: 0;
    padding: calc(var(--header-height-mobile) + 30px) 30px 40px;
  }

  .post-hero__content {
    gap: 24px;
    padding: 0;
  }

  .post-hero__card {
    padding: 30px;
  }

  .post-hero__title {
    font-size: 28px;
  }

  .post-hero__excerpt {
    font-size: 16px;
  }

  .post-hero__photo {
    min-height: 280px;
    align-self: auto;
  }

  .post-content {
    padding: 40px 20px 60px;
  }

  .prose h2 {
    font-size: 24px;
    margin-top: 32px;
  }
}

/* ============ ≤767px ============ */
@media (max-width: 767px) {
  .post-hero__inner {
    padding: calc(var(--header-height-mobile) + 20px) 16px 32px;
  }

  .post-hero__card {
    padding: 24px;
    gap: 16px;
  }

  .post-hero__content {
    flex-direction: column;
  }

  .post-hero__title {
    font-size: 24px;
  }

  .post-hero__excerpt {
    font-size: 15px;
  }

  .post-hero__photo {
    min-height: 220px;
  }

  .post-content {
    padding: 32px 16px 48px;
  }

  .prose h2 {
    font-size: 22px;
    margin-top: 28px;
  }

  .prose ul {
    gap: 16px;
    padding-left: 0;
  }

  .prose img {
    height: 240px;
    border-radius: 12px;
  }
}
