.posts-item-container {
  height: 100% !important;
}

.posts-item-container,
.tabs-wrapper .posts-item-container .post-tem {
  transition: all 0.3s ease-in-out;
}

.posts-item-container:hover {
  border-color: #b09a6966 !important;
}

.posts-item-container:hover .post-tem {
  background-color: #b09a691a !important;
}

.posts-item-container .post-tem .elementor-menu-anchor {
  display: none;
}

/* pagination */
.loop-post-item .elementor-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
}

.loop-post-item .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;

  font-size: 16px !important;
  line-height: 20px !important;
  letter-spacing: 10% !important;

  border: 1px solid #b09a6933;
  transition: all 0.3s ease-in-out;
}

.page-numbers.current {
  border: 1px solid #b09a69;
  background-color: #b09a694d;
}

a.page-numbers:hover {
  border: 1px solid #b09a69;
  color: #b09a69;
}

@media (max-width: 767px) {
  .loop-post-item .page-numbers {
    width: 40px;
    height: 40px;

    font-size: 14px !important;
    line-height: 18px !important;
  }

  .posts-item-container {
    height: auto !important;
  }
}

/* post-page */

.post-content-info-text h1 {
  font-size: clamp(1.75rem, 1.5rem + 1.111vw, 2.5rem) !important; /* 28 → 40 */
}

.post-content-info-text h2 {
  font-size: clamp(1.5rem, 1.25rem + 1.111vw, 2.25rem) !important; /* 24 → 36 */
  padding-top: 52px !important;
  letter-spacing: 10% !important;
}

.post-content-info-text h3 {
  font-size: clamp(1.25rem, 1rem + 1.111vw, 2rem) !important; /* 20 → 32 */
  padding-top: 36px;
}

.post-content-info-text h4 {
  font-size: clamp(1rem, 0.75rem + 1.111vw, 1.75rem) !important; /* 16 → 28 */
  padding-top: 28px;
}

.post-content-info-text h5 {
  font-size: clamp(
    0.875rem,
    0.667rem + 0.926vw,
    1.5rem
  ) !important; /* 14 → 24 */
  padding-top: 18px;
}

.post-content-info-text h6 {
  font-size: clamp(
    0.875rem,
    0.75rem + 0.556vw,
    1.25rem
  ) !important; /* 14 → 20 */
  padding-top: 14px;
}

.post-content-info .wp-block-heading {
  font-weight: 300 !important;
  text-transform: uppercase !important;
  line-height: normal !important;
  padding-bottom: 12px;
}

.post-content-info p:not(:last-child):not(.contact-info p) {
  padding-bottom: 12px;
}

.post-content-info .list-heading ol {
  margin: 0;
}

.post-content-info-text ul {
  margin-left: 0;
}

.post-content-info .list-heading .elementor-item-active {
  font-weight: 400 !important;
}

.post-content-info .list-heading .elementor-toc__header {
  padding-bottom: 12px !important;
}

.post-content-info .list-heading .elementor-toc__body {
  padding-top: 0 !important;
}

.post-content-info .list-heading .elementor-toc__header-title {
  padding: 0;
  position: relative;
  display: flex;
  padding-bottom: 12px;
}

.post-content-info .list-heading .elementor-toc__header-title::after {
  position: absolute;
  content: "";
  width: 100%;
  max-width: 300px;
  background-color: #00000000;
  height: 1px;
  bottom: 0;
  border: 0;

  background: linear-gradient(
    90deg,
    #b49a66 0%,
    rgba(180, 154, 102, 0.9) 8%,
    rgba(180, 154, 102, 0.45) 18%,
    rgba(180, 154, 102, 0.15) 35%,
    rgba(180, 154, 102, 0.04) 60%,
    transparent 100%
  );
}

.post-content-info-text p.has-text-align-center.wp-block-paragraph {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 12px;
}

.post-content-info-text p a:not(.contact-info a) {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 100%;
  min-height: 42px;
  margin: 8px 4px;
  box-sizing: border-box;

  font-family: "Sora", Sans-serif !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 16px !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  color: #f7f3ea !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  padding: 12px 50px 12px 28px !important;
  border: 1px solid #b09a694d;
  background-color: transparent;

  transition: all 0.3s ease-in-out;
}

.post-content-info-text p a:not(.contact-info a):hover {
  background-color: #b09a6933;
}

.post-content-info-text p a:not(.contact-info a)::after {
  position: absolute;
  content: "";
  width: 14px;
  height: 14px;
  top: 50%;
  right: 28px;
  transform: translateY(-50%);

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M3 7H11M7 11L11 7L7 3' stroke='%23F7F3EA' stroke-linecap='square' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.post-content-info .wp-block-heading[id],
.post-content-info .elementor-widget-theme-post-content h2[id],
.post-content-info .elementor-widget-theme-post-content h3[id],
.post-content-info .elementor-menu-anchor,
.post-content-info [id].elementor-menu-anchor {
  scroll-margin-top: 100px;
}

/* table post */
.post-content-info-text tr:first-child {
  background-color: #b09a691a !important;
}

.post-content-info-text .wp-block-table {
  margin: 40px 0 !important;
  overflow-x: auto !important;
}

.post-content-info-text .wp-block-table::before {
  content: "Scroll horizontally through the table →";
  display: none;
  margin-bottom: 8px;
  font-size: 10px;
  color: #666;
  text-align: left;
}

.post-content-info-text .wp-block-table table {
  width: 100% !important;
  table-layout: fixed !important;
  border-collapse: collapse !important;
  background: transparent !important;
  border: none !important;
  border-left: none !important;
  border-right: none !important;
  border-top: none !important;
  border-bottom: none !important;
}

.post-content-info-text .wp-block-table tbody {
  border: none !important;
}

.post-content-info-text .wp-block-table tr {
  border: none !important;
}

.post-content-info-text .wp-block-table th,
.post-content-info-text .wp-block-table td {
  box-sizing: border-box !important;
  white-space: normal !important;
  overflow-wrap: break-word !important;
  word-break: normal !important;
  hyphens: auto;
}

/* Header */
.post-content-info-text .wp-block-table thead th,
.post-content-info-text .wp-block-table tbody tr:first-child th {
  padding: 16px 20px !important;
  text-align: left !important;
  text-transform: uppercase !important;
  font-size: 12px !important;
  line-height: 16px !important;
  font-weight: 400 !important;
  letter-spacing: 16% !important;
  color: #f7f3ea !important;

  border-top: none !important;
  border-left: none !important;
  border-bottom: 1px solid rgba(185, 160, 106, 0.4) !important;
  border-right: 1px solid transparent !important;
}

.post-content-info-text .wp-block-table tbody strong {
  font-weight: 500 !important;
}

.post-content-info-text .wp-block-table thead th:not(:last-child),
.post-content-info-text
  .wp-block-table
  tbody
  tr:first-child
  th:not(:last-child) {
  border-right: 1px solid rgba(185, 160, 106, 0.4) !important;
}

/* Cells */
.post-content-info-text .wp-block-table td {
  padding: 16px 20px !important;
  vertical-align: top !important;

  font-size: 12px !important;
  line-height: 18px !important;
  letter-spacing: 2% !important;
  color: #f7f3ea !important;

  border-top: none !important;
  border-left: none !important;
  border-bottom: 1px solid rgba(185, 160, 106, 0.2) !important;
  border-right: 1px solid rgba(185, 160, 106, 0.2) !important;
}

.post-content-info-text .wp-block-table td:last-child {
  border-right: none !important;
}

.post-content-info-text .wp-block-table tbody tr:last-child td {
  border-bottom: none !important;
}

/* First column */
.post-content-info-text .wp-block-table td:first-child,
.post-content-info-text .wp-block-table th:first-child {
  width: 24% !important;
  font-weight: 500 !important;

  border-left: none !important;
}

/* Links */
.post-content-info-text .wp-block-table a {
  color: inherit !important;
  text-decoration: underline !important;
}

.post-content-info-text .wp-block-table a:hover {
  color: #b9a06a !important;
}

@media (max-width: 767px) {
  .post-content-info-text p a:not(.contact-info a) {
    width: 100% !important;
    display: flex;
    margin-right: 0;
    margin-left: 0;
    white-space: break-spaces !important;
  }

  .post-content-info .wp-block-heading[id],
  .post-content-info .elementor-widget-theme-post-content h2[id],
  .post-content-info .elementor-widget-theme-post-content h3[id] {
    scroll-margin-top: 60px;
  }

  /* .single-post .post-content-info-text .wp-block-table thead th,
  .single-post .post-content-info-text .wp-block-table tbody tr:first-child th,
  .single-post .post-content-info-text .wp-block-table td {
    padding: 16px !important;
  } */

  .post-content-info-text .wp-block-table {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .post-content-info-text .wp-block-table::before {
    display: block;
  }

  .post-content-info-text .wp-block-table table {
    min-width: 720px !important;
  }

  .post-content-info-text .wp-block-table td,
  .post-content-info-text .wp-block-table th {
    padding: 16px !important;
  }
}

@media (min-width: 1025px) {
  .post-page .post-img,
  .post-page .post-content {
    max-width: 47.2%;
  }
}

.legal-toc {
  --toc-top: 130px !important;
  --toc-bottom-gap: 24px !important;

  position: sticky !important;
  top: var(--toc-top) !important;
  align-self: flex-start !important;

  max-height: calc(100dvh - var(--toc-top) - var(--toc-bottom-gap)) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;

  scrollbar-gutter: stable !important;
}

@media (max-width: 1024px) {
  .legal-toc {
    position: static !important;
    max-height: none !important;
    overflow: visible !important;
  }
}
