/* qmt-news.css: moved verbatim from Bricks code element (208) in plugin v0.0.22. */
  .qmt-news {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 40px 120px;
    font-family: 'DM Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
    min-height: calc(100vh - var(--qmt-h, 76px));
  }
  /* ── HEADING BLOCK ── */
  .qmt-news__heading-wrap {
    margin-bottom: 64px;
  }
  .qmt-news__eyebrow {
    display: block;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #B8962E;
    margin-bottom: 16px;
  }
  .qmt-news__heading {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #F5F2ED;
    line-height: 1.05;
    margin: 0;
  }
  /* ── LOADING STATE ── */
  .qmt-news__loading {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 60px 0;
    color: #9C9890;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .qmt-news__spinner {
    width: 18px;
    height: 18px;
    border: 1px solid rgba(184, 150, 46, 0.25);
    border-top-color: #B8962E;
    border-radius: 50%;
    animation: qmt-spin 0.8s linear infinite;
    flex-shrink: 0;
  }
  @keyframes qmt-spin {
    to { transform: rotate(360deg); }
  }
  /* ── EMPTY STATE ── */
  .qmt-news__empty {
    padding: 80px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }
  .qmt-news__empty-inner {
    max-width: 480px;
  }
  .qmt-news__empty-num {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(80px, 14vw, 140px);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(184, 150, 46, 0.12);
    line-height: 1;
    margin-bottom: 24px;
    display: block;
    user-select: none;
  }
  .qmt-news__empty-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #F5F2ED;
    margin-bottom: 14px;
  }
  .qmt-news__empty-text {
    font-size: 14px;
    color: #9C9890;
    line-height: 1.75;
    margin: 0;
  }
  /* ── ERROR STATE ── */
  .qmt-news__error {
    padding: 48px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }
  .qmt-news__error-text {
    font-size: 13px;
    color: #9C9890;
    letter-spacing: 0.04em;
  }
  .qmt-news__error-text a {
    color: #D4B060;
    text-decoration: none;
  }
  .qmt-news__error-text a:hover {
    color: #F5F2ED;
  }
  /* ── GRID ── */
  .qmt-news__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.06);
  }
  /* ── CARD ── */
  .qmt-news__card {
    background: #080809;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: background 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .qmt-news__card:hover {
    background: #0F0F11;
  }
  .qmt-news__card-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    opacity: 0.85;
    transition: opacity 0.4s, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .qmt-news__card:hover .qmt-news__card-thumb {
    opacity: 1;
    transform: scale(1.03);
  }
  .qmt-news__card-thumb-wrap {
    overflow: hidden;
    flex-shrink: 0;
  }
  .qmt-news__card-body {
    padding: 28px 28px 32px;
    display: flex;
    flex-direction: column;
    flex: 1;
  }
  .qmt-news__card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
  }
  .qmt-news__card-date {
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #B8962E;
    opacity: 0.8;
  }
  .qmt-news__card-cat {
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #9C9890;
    padding: 3px 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
  }
  .qmt-news__card-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(17px, 1.5vw, 20px);
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #F5F2ED;
    line-height: 1.2;
    margin: 0 0 12px;
    transition: color 0.3s;
  }
  .qmt-news__card:hover .qmt-news__card-title {
    color: #D4B060;
  }
  .qmt-news__card-excerpt {
    font-size: 13px;
    color: #9C9890;
    line-height: 1.75;
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .qmt-news__card-footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .qmt-news__card-read {
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #B8962E;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s;
  }
  .qmt-news__card:hover .qmt-news__card-read {
    color: #D4B060;
    gap: 12px;
  }
  /* Gold left border on hover */
  .qmt-news__card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #B8962E;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .qmt-news__card:hover::before {
    transform: scaleY(1);
  }
  /* ── PAGINATION ── */
  .qmt-news__pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }
  .qmt-news__page-info {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #9C9890;
  }
  .qmt-news__page-info strong {
    color: #E2DED7;
    font-weight: 400;
  }
  .qmt-news__page-btns {
    display: flex;
    gap: 8px;
  }
  .qmt-news__page-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9C9890;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    cursor: pointer;
    padding: 9px 16px;
    transition: color 0.3s, border-color 0.3s;
  }
  .qmt-news__page-btn:hover:not(:disabled) {
    color: #D4B060;
    border-color: rgba(184, 150, 46, 0.22);
  }
  .qmt-news__page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
  }
  /* ── RESPONSIVE ── */
  @media (max-width: 1080px) {
    .qmt-news {
      padding: 60px 28px 100px;
    }
    .qmt-news__grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  @media (max-width: 640px) {
    .qmt-news {
      padding: 60px 20px 80px;
    }
    .qmt-news__grid {
      grid-template-columns: 1fr;
    }
    .qmt-news__pagination {
      flex-direction: column;
      gap: 20px;
      align-items: flex-start;
    }
    .qmt-news__card-body {
      padding: 20px 20px 24px;
    }
  }

/* Server-rendered pager: the Prev/Next controls are now <a>/<span>, not <button>. */
a.qmt-news__page-btn { text-decoration: none; }
a.qmt-news__page-btn:hover { color: #D4B060; border-color: rgba(184, 150, 46, 0.22); }
.qmt-news__page-btn[aria-disabled="true"] { opacity: 0.3; cursor: not-allowed; }
/* Thumbnails now carry width/height attributes; let aspect-ratio win as before. */
.qmt-news__card-thumb { height: auto; }

.qmt-news__page-btn[aria-disabled="true"]:hover {
  color: #9C9890;
  border-color: rgba(255, 255, 255, 0.06);
}
