/* Post / News pages */

.post-page {
  max-width: 1550px;
  margin: 0 auto;
  padding: 1rem 0 2.5rem;
}

.post-breadcrumb {
  margin-bottom: 1rem;
}

.post-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0.85rem 1rem;
  background-color: #e5e5e5;
  border-radius: 15px;
  font-size: 0.875rem;
  color: #6c757e;
}

.post-breadcrumb__list a {
  color: #6c757e;
  transition: color 0.2s ease;
}

.post-breadcrumb__list a:hover {
  color: #fe7e13;
}

.post-breadcrumb__separator {
  width: 12px;
  height: 12px;
  opacity: 0.6;
}

.post-breadcrumb__current {
  color: #343a40;
  font-weight: 600;
}

.post-article {
  width: 100%;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.post-article__header {
  padding: 1.75rem 1.75rem 0;
}

.post-article__title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.6;
  color: #212529;
  margin: 0 0 0.75rem;
}

.post-article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  font-size: 0.8125rem;
  color: #868e96;
}

.post-article__meta time {
  direction: ltr;
  unicode-bidi: embed;
}

.post-article__featured {
  margin: 1.25rem 1.75rem 0;
  border-radius: 12px;
  overflow: hidden;
  background: #f8f9fa;
  text-align: center;
}

.post-article__featured img {
  display: block;
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  margin: 0 auto;
}

.post-article__summary {
  margin: 1.25rem 1.75rem 0;
  padding: 1rem 1.25rem;
  background: #f8f9fa;
  border-right: 4px solid #fe7e13;
  border-radius: 8px;
  font-size: 1rem;
  line-height: 1.8;
  color: #495057;
}

.post-article__body {
  padding: 1.5rem 1.75rem 1.75rem;
  font-size: 1rem;
  line-height: 1.9;
  color: #343a40;
  text-align: justify;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.post-article__body p {
  margin-bottom: 1rem;
}

.post-article__body h2,
.post-article__body h3,
.post-article__body h4 {
  margin: 1.5rem 0 0.75rem;
  font-weight: 700;
  line-height: 1.5;
  color: #212529;
}

.post-article__body h2 {
  font-size: 1.25rem;
}

.post-article__body h3 {
  font-size: 1.125rem;
}

.post-article__body ul,
.post-article__body ol {
  margin: 0 0 1rem;
  padding-right: 1.5rem;
}

.post-article__body li {
  margin-bottom: 0.35rem;
}

.post-article__body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.25rem auto;
  border-radius: 8px;
}

.post-article__body a {
  color: #fe7e13;
  text-decoration: underline;
}

.post-article__body a:hover {
  color: #d96a0a;
}

.post-article__body table {
  width: 100%;
  max-width: 100%;
  margin-bottom: 1rem;
  border-collapse: collapse;
  font-size: 0.9375rem;
  overflow-x: auto;
  display: block;
}

.post-article__body table th,
.post-article__body table td {
  border: 1px solid #dee2e6;
  padding: 0.5rem 0.75rem;
}

.post-article__footer {
  padding: 0 1.75rem 1.75rem;
  border-top: 1px solid #e9ecef;
  margin-top: 0.5rem;
  padding-top: 1rem;
}

.post-article__footer time {
  font-size: 0.8125rem;
  color: #868e96;
  direction: ltr;
  unicode-bidi: embed;
}

/* Post list cards */
.post-list-page {
  max-width: 1550px;
  margin: 0 auto;
  padding: 1rem 0 2.5rem;
}

.post-list-header {
  margin: 0 auto 1.25rem;
}

.post-list-header__title {
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.5;
  color: #212529;
  margin: 0 0 0.35rem;
}

.post-list-header__count {
  font-size: 0.875rem;
  color: #868e96;
  margin: 0;
}

.post-list-feed {
  width: 100%;
}

.post-list-card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.post-list-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.post-list-card__inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem;
}

.post-list-card__thumb {
  flex-shrink: 0;
  width: 100%;
  height: 180px;
  border-radius: 10px;
  overflow: hidden;
  background: #f8f9fa;
}

.post-list-card__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-list-card__thumb--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f3f5;
}

.post-list-card__thumb--placeholder img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  opacity: 0.35;
}

.post-list-card__content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.post-list-card__title {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.6;
  margin: 0 0 0.5rem;
}

.post-list-card__title a {
  color: #212529;
  transition: color 0.2s ease;
}

.post-list-card__title a:hover {
  color: #fe7e13;
}

.post-list-card__summary {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: #6c757d;
  margin: 0 0 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-list-card__footer {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid #f1f3f5;
}

.post-list-card__meta {
  display: inline-block;
  font-size: 0.8125rem;
  color: #868e96;
  direction: ltr;
  unicode-bidi: embed;
}

.post-list-empty {
  background: #fff;
  border-radius: 15px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: #868e96;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
}

.post-list-pagination {
  margin: 1.5rem auto 0;
}

.post-list-pagination .pagination {
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.post-list-pagination .page-link {
  border-radius: 8px;
  min-width: 2.25rem;
  text-align: center;
  color: #495057;
  border-color: #dee2e6;
}

.post-list-pagination .page-link:hover {
  color: #fe7e13;
  border-color: #fe7e13;
  background: #fff8f2;
}

.post-list-pagination .page-item.active .page-link {
  background-color: #fe7e13;
  border-color: #fe7e13;
  color: #fff;
}

.post-list-pagination .page-item.disabled .page-link {
  color: #adb5bd;
}

@media (min-width: 768px) {
  .post-list-card__inner {
    flex-direction: row;
    align-items: stretch;
    gap: 1.25rem;
  }

  .post-list-card__thumb {
    width: 160px;
    height: 120px;
  }
}

@media (max-width: 767.98px) {
  .post-page {
    padding-top: 0.5rem;
  }

  .post-article__header,
  .post-article__body,
  .post-article__footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .post-article__featured {
    margin-left: 1rem;
    margin-right: 1rem;
  }

  .post-article__summary {
    margin-left: 1rem;
    margin-right: 1rem;
  }

  .post-article__title {
    font-size: 1.25rem;
  }

  .post-article__body {
    font-size: 0.9375rem;
    line-height: 1.85;
  }

  .post-list-page {
    padding-top: 0.5rem;
  }

  .post-list-header__title {
    font-size: 1.2rem;
  }

  .post-list-card__inner {
    padding: 1rem;
  }

  .post-list-card__thumb {
    height: 160px;
  }
}
