/* ===== Blog ===== */

/* Blog card */
.blog-page__card {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  padding: 0;
}

.blog-page__card-image {
  margin: 0;
  overflow: hidden;
  border-radius: 18px 18px 0 0;
}

.blog-page__card-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 300ms ease;
}

.blog-page__card:hover .blog-page__card-image img {
  transform: scale(1.04);
}

.blog-page__card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px 20px;
  flex: 1;
}

.blog-page__card-category {
  display: inline-block;
  width: fit-content;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #f1c989;
  background: rgba(241, 201, 137, 0.12);
  padding: 3px 10px;
  border-radius: 6px;
}

.blog-page__card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 8px;
  font-size: 13px;
  color: rgba(172, 183, 202, 0.7);
}

.blog-page__card-more {
  color: #f1c989;
  font-weight: 500;
  font-size: 13px;
}

.blog-page__card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Blog listing page */
.blog-page__hero {
  margin-bottom: 12px;
}

/* Pagination */
.blog-page .nav-links {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 32px;
}

.blog-page .nav-links .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(232, 238, 251, 0.8);
  background: linear-gradient(160deg, rgba(23, 34, 50, 0.64), rgba(12, 19, 30, 0.52));
  transition: background 200ms ease, color 200ms ease;
}

.blog-page .nav-links .page-numbers:hover {
  background: linear-gradient(160deg, rgba(27, 41, 61, 0.78), rgba(14, 21, 33, 0.62));
  color: #f1c989;
}

.blog-page .nav-links .page-numbers.current {
  background: linear-gradient(160deg, rgba(241, 201, 137, 0.2), rgba(200, 160, 100, 0.12));
  color: #f1c989;
  font-weight: 600;
}

.blog-page .nav-links .page-numbers.dots {
  background: none;
  cursor: default;
}

/* Blog single post */
.blog-single__hero {
  margin-bottom: 12px;
}

.blog-single__content {
  border-radius: 18px;
  padding: 28px;
  position: relative;
  min-width: 0;
  overflow-wrap: break-word;
}

.blog-single__content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: min(280px, 38%);
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(245, 166, 29, 0.85), rgba(245, 166, 29, 0));
}

.blog-single__text {
  margin-bottom: 20px;
}

.blog-single__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.blog-single__tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  color: rgba(232, 238, 251, 0.7);
  background: rgba(255, 255, 255, 0.06);
  padding: 4px 12px;
  border-radius: 8px;
  transition: background 200ms ease, color 200ms ease;
}

.blog-single__tag:hover {
  background: rgba(241, 201, 137, 0.15);
  color: #f1c989;
}

/* Wysiwyg tables */
.wysiwyg {
  overflow-wrap: break-word;
  word-break: break-word;
}

.wysiwyg img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}

.wysiwyg a {
  color: #f5c76a;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

.wysiwyg a:hover {
  color: #ffd88f;
  text-decoration-color: rgba(255, 216, 143, 0.92);
}

.wysiwyg .wp-block-image,
.wysiwyg figure {
  margin: 10px 0;
}

.wysiwyg figure img {
  border-radius: 14px;
}

.wysiwyg table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  table-layout: auto;
  margin: 10px 0;
  font-size: 15px;
  line-height: 1.5;
  background: rgba(8, 17, 31, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  overflow: hidden;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.wysiwyg th,
.wysiwyg td {
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  color: #dce8fb;
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

.wysiwyg table th:first-child,
.wysiwyg table td:first-child {
  min-width: 110px;
}

.wysiwyg table th:last-child,
.wysiwyg table td:last-child {
  min-width: 110px;
}

.wysiwyg table th:nth-child(2),
.wysiwyg table td:nth-child(2) {
  min-width: 260px;
}

.wysiwyg th {
  background: rgba(247, 210, 154, 0.12);
  color: #ffe0ac;
  font-weight: 700;
}

.wysiwyg tr:nth-child(even) td,
.wysiwyg tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.03);
}

@media (min-width: 641px) {
  .wysiwyg table {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    display: table;
    overflow-x: visible;
  }
}

@media (max-width: 640px) {
  .blog-single__content {
    padding: 14px;
    border-radius: 14px;
  }

  .blog-single__content::before {
    width: min(200px, 50%);
  }

}
