@font-face {
  font-family: "Cormorant";
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/self/cormorant-italic-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Asmorix blog listing — Quiety-inspired layout */
.ax-qblog {
  --qb-ink: #111111;
  --qb-muted: #525252;
  --qb-line: #f1f1f1;
  --qb-card: #ffffff;
  --qb-hero: #0b1220;
  --qb-accent: #175cff;
  --qb-soft: rgba(23, 92, 255, 0.15);
  --qb-font: "Inter", system-ui, -apple-system, sans-serif;
  --qb-title-font: "Rajdhani", Sans-serif;
  background: #ffffff;
  padding-top: 0;
  font-family: var(--qb-font);
  font-weight: 400;
  line-height: 1.65;
  color: var(--qb-ink);
}

.ax-qblog__hero {
  position: relative;
  overflow: hidden;
  padding: 16px 0 8px;
  background: linear-gradient(#e3f2fb 0%, rgba(227, 242, 251, 0) 100%);
  color: #141721;
}

.ax-qblog__hero-panel {
  border-radius: 0;
  padding: 56px 24px 28px;
  background: transparent;
  text-align: center;
}

.ax-qblog__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 14px;
  color: #666666;
  font-family: var(--qb-font);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
}

.ax-qblog__spark {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  background: #3b6cff;
  clip-path: polygon(50% 0, 64% 36%, 100% 50%, 64% 64%, 50% 100%, 36% 64%, 0 50%, 36% 36%);
}

.ax-qblog__hero-inner {
  position: relative;
  z-index: 1;
  max-width: none;
  margin: 0 auto;
  text-align: center;
}

.ax-qblog__hero-title {
  margin: 0 0 28px;
  color: #141721;
  font-family: Inter, system-ui, sans-serif;
  font-size: 60px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0;
}

.ax-qblog__hero-title em {
  font-family: "Cormorant", Georgia, serif;
  font-style: italic;
  font-weight: 600;
}

.ax-qblog__hero-panel .ax-qblog__row {
  margin-top: 28px;
  text-align: left;
}

.ax-qblog__row--featured {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 16px;
  margin: 28px 0 0;
  align-items: stretch;
}

.ax-qblog__row--featured > .ax-qblog__col {
  padding: 0;
  margin: 0;
  max-width: none;
  min-width: 0;
  display: flex;
}

.ax-qblog__row--featured > .ax-qblog__col:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
}

.ax-qblog__row--featured > .ax-qblog__col:nth-child(2) {
  grid-column: 1;
  grid-row: 2;
}

.ax-qblog__row--featured > .ax-qblog__col:nth-child(3) {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.ax-qblog__row--featured .ax-qblog__card {
  width: 100%;
}

.ax-qblog__row--featured .ax-qblog__card--side .ax-qblog__media img {
  height: 100%;
  min-height: 0;
}

.ax-qblog__row--featured .ax-qblog__card--side .ax-qblog__body {
  padding: 16px 18px;
}

.ax-qblog__row--featured .ax-qblog__card--lead {
  height: 100%;
}

.ax-qblog__row--featured .ax-qblog__card--lead .ax-qblog__media {
  flex: 1 1 auto;
  min-height: 220px;
}

.ax-qblog__row--featured .ax-qblog__card--lead .ax-qblog__media img {
  height: 100%;
  min-height: 260px;
}

.ax-qblog__filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.ax-qblog__filter {
  appearance: none;
  border: 0;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  max-width: none !important;
  flex: 0 0 auto;
  min-height: 36px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #ffffff;
  color: #141721;
  border: 1px solid #d7e6f2;
  font-family: var(--qb-font);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  transition: background 0.2s ease, transform 0.2s ease;
}

.ax-qblog__filter:hover,
.ax-qblog__filter.is-active {
  background: var(--qb-accent);
  color: #fff;
}

.ax-qblog__section {
  padding: 48px 0 80px;
  background: #fff;
}

.ax-qblog__group {
  margin: 0 0 20px;
}

.ax-qblog__group-title {
  margin: 8px 12px 16px;
  font-family: "Rajdhani", sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.15;
  color: #041424;
}

.ax-qblog__group.is-hidden {
  display: none !important;
}

.ax-qblog__row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -12px;
}

.ax-qblog__row.ax-qblog__row--featured {
  display: grid;
}

.ax-qblog__col {
  padding: 0 12px;
  margin-bottom: 24px;
}

.ax-qblog__col--half {
  flex: 0 0 50%;
  max-width: 50%;
}

.ax-qblog__col--third {
  flex: 0 0 33.333%;
  max-width: 33.333%;
}

.ax-qblog__col.is-hidden,
.ax-qblog__card.is-hidden,
.ax-qblog__row.is-hidden {
  display: none !important;
}

.ax-qblog__pagination {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px;
  margin: 40px 0 8px;
  width: 100%;
}

.ax-qblog__pagination .ax-qblog__page,
.ax-qblog__page {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: none !important;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #041424;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  font-family: var(--qb-font);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.ax-qblog__pagination .ax-qblog__page:hover:not(:disabled):not(.is-active),
.ax-qblog__page:hover:not(:disabled):not(.is-active) {
  border-color: #FFC107;
  color: #041424;
  transform: translateY(-1px);
}

.ax-qblog__pagination .ax-qblog__page.is-active,
.ax-qblog__page.is-active {
  background: #FFC107;
  border-color: #FFC107;
  color: #041424;
  box-shadow: 0 8px 18px rgba(255, 193, 7, 0.3);
}

.ax-qblog__pagination .ax-qblog__page--nav,
.ax-qblog__page--nav {
  min-width: 72px;
}

.ax-qblog__pagination .ax-qblog__page:disabled,
.ax-qblog__page:disabled,
.ax-qblog__pagination .ax-qblog__page[aria-disabled="true"] {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.ax-qblog__pagination a.ax-qblog__page {
  text-decoration: none !important;
  color: inherit;
}

.ax-qblog__archive {
  margin: 36px 0 8px;
  padding: 28px 22px 24px;
  border-radius: 16px;
  border: 1px solid var(--qb-line);
  background: #f7f9fc;
}

.ax-qblog__archive-title {
  margin: 0 0 6px;
  font-family: "Rajdhani", sans-serif;
  font-size: 26px;
  font-weight: 600;
  color: #0f172a;
}

.ax-qblog__archive-note {
  margin: 0 0 16px;
  font-size: 14px;
  color: #64748b;
}

.ax-qblog__archive-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 8px 18px;
}

.ax-qblog__archive-list a {
  display: inline-block;
  font-size: 14px;
  line-height: 1.45;
  color: #0c5adb;
  text-decoration: none !important;
}

.ax-qblog__archive-list a:hover {
  color: #0847b0;
  text-decoration: underline !important;
}

.ax-qblog__card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  overflow: hidden;
  background: var(--qb-card);
  border: 1px solid var(--qb-line);
  border-radius: 14px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.ax-qblog__card--feature {
  flex-direction: row;
  align-items: stretch;
}

.ax-qblog__card:hover {
  box-shadow: 0 11px 18px -8px rgba(0, 0, 0, 0.16);
}

.ax-qblog__media {
  position: relative;
  display: block;
  overflow: hidden;
  flex: 0 0 auto;
  background: #e5e7eb;
}

.ax-qblog__card--feature .ax-qblog__media {
  flex: 0 0 44%;
  max-width: 44%;
}

.ax-qblog__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.22);
  transition: background 0.3s ease;
  pointer-events: none;
}

.ax-qblog__card:hover .ax-qblog__media::before {
  background: rgba(0, 0, 0, 0);
}

.ax-qblog__media img {
  display: block;
  width: 100%;
  height: 14rem;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.ax-qblog__card--feature .ax-qblog__media img {
  height: 100%;
  min-height: 20rem;
}

.ax-qblog__card:hover .ax-qblog__media img {
  transform: rotate(3deg) scale(1.08);
}

.ax-qblog__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 24px;
  min-width: 0;
}

.ax-qblog__badge {
  display: inline-flex;
  align-self: flex-start;
  margin: 0 0 14px;
  padding: 5px 12px;
  border-radius: 999px;
  font-family: var(--qb-font);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.ax-qblog__badge--primary {
  background: rgba(23, 92, 255, 0.14);
  color: #175cff;
}

.ax-qblog__badge--warning {
  background: rgba(245, 158, 11, 0.16);
  color: #b45309;
}

.ax-qblog__badge--success {
  background: rgba(16, 185, 129, 0.14);
  color: #047857;
}

.ax-qblog__badge--danger {
  background: rgba(239, 68, 68, 0.14);
  color: #b91c1c;
}

.ax-qblog__badge--info {
  background: rgba(6, 182, 212, 0.16);
  color: #0e7490;
}

.ax-qblog__title {
  margin: 0 0 10px;
  font-family: var(--qb-title-font);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ax-qblog__title a {
  color: var(--qb-ink) !important;
  text-decoration: none !important;
}

.ax-qblog__title a:hover,
.ax-qblog__title a:focus-visible {
  color: var(--qb-accent) !important;
}

.ax-qblog__excerpt {
  margin: 0 0 18px;
  color: var(--qb-muted);
  font-family: var(--qb-font);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ax-qblog__author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.ax-qblog__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #e8edf5;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: none;
}
.ax-qblog__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}

.ax-qblog__author-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ax-qblog__name {
  color: var(--qb-ink);
  font-family: var(--qb-font);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.ax-qblog__date {
  color: #94a3b8;
  font-family: var(--qb-font);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
}

@media (max-width: 991px) {
  .ax-qblog__col--half,
  .ax-qblog__col--third {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .ax-qblog__card--feature {
    flex-direction: column;
  }

  .ax-qblog__card--feature .ax-qblog__media {
    flex: 0 0 auto;
    max-width: none;
  }

  .ax-qblog__card--feature .ax-qblog__media img {
    height: 14rem;
    min-height: 0;
  }

  .ax-qblog__row--featured .ax-qblog__card--side {
    flex-direction: row;
  }

  .ax-qblog__row--featured .ax-qblog__card--side .ax-qblog__media {
    flex: 0 0 40%;
    max-width: 40%;
  }

  .ax-qblog__row--featured .ax-qblog__card--side .ax-qblog__media img {
    height: 100%;
    min-height: 9rem;
  }
}

@media (max-width: 767px) {
  .ax-qblog__hero {
    padding: 12px 0 8px;
  }

  .ax-qblog__hero-panel {
    padding: 40px 16px 12px;
  }

  .ax-qblog__row--featured {
    grid-template-columns: 1fr;
  }

  .ax-qblog__row--featured > .ax-qblog__col:nth-child(1),
  .ax-qblog__row--featured > .ax-qblog__col:nth-child(2),
  .ax-qblog__row--featured > .ax-qblog__col:nth-child(3) {
    grid-column: 1;
    grid-row: auto;
  }

  .ax-qblog__row--featured .ax-qblog__card--side,
  .ax-qblog__row--featured .ax-qblog__card--lead {
    flex-direction: column;
  }

  .ax-qblog__row--featured .ax-qblog__card--side .ax-qblog__media,
  .ax-qblog__row--featured .ax-qblog__card--lead .ax-qblog__media {
    flex: none;
    max-width: none;
    min-height: 0;
  }

  .ax-qblog__row--featured .ax-qblog__card--side .ax-qblog__media img,
  .ax-qblog__row--featured .ax-qblog__card--lead .ax-qblog__media img {
    height: 12rem;
    min-height: 0;
  }

  .ax-qblog__hero-title {
    font-size: 36px;
  }

  .ax-qblog__group-title {
    font-size: 26px;
  }

  .ax-qblog__eyebrow {
    font-size: 16px;
  }

  .ax-qblog__col--half,
  .ax-qblog__col--third {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .ax-qblog__section {
    padding: 32px 0 56px;
  }
}
