/**
 * Dynamic Projects tabs
 * Scoped to .axtra-project-tabs so Elementor/theme styles stay untouched.
 */
.axtra-project-tabs {
  --axtra-tabs-ink: var(--black-2, #1c1d20);
  --axtra-tabs-paper: var(--white, #ffffff);
  --axtra-tabs-accent: var(--primary, #e8bf96);
  --axtra-tabs-border: rgba(28, 29, 32, 0.18);
  --axtra-tabs-muted: rgba(28, 29, 32, 0.58);
  width: 100%;
  margin: 0 0 clamp(30px, 4vw, 56px);
}

.axtra-project-tabs__scroll {
  position: relative;
  width: 100%;
  padding-block: 3px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
}

.axtra-project-tabs__scroll::-webkit-scrollbar {
  display: none;
}

.axtra-project-tabs__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  width: max-content;
  min-width: 100%;
  margin-inline: auto;
}

.axtra-project-tabs__button {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  margin: 0;
  padding: 11px 20px;
  border: 1px solid var(--axtra-tabs-border);
  border-radius: 999px;
  background: transparent;
  color: var(--axtra-tabs-ink);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
  white-space: nowrap;
  cursor: pointer;
  isolation: isolate;
  overflow: visible;
  transition:
    color 220ms ease,
    background-color 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

/*
 * Keep hover feedback fully inside the pill. The previous translateY(-1px)
 * could push the top border into the horizontal scroller's clipping area,
 * which made tabs such as Social Media look broken on hover.
 */
.axtra-project-tabs__button:hover,
.axtra-project-tabs__button:focus-visible {
  border-color: var(--axtra-tabs-ink);
  box-shadow: inset 0 0 0 0.35px var(--axtra-tabs-ink);
}

/* Prevent generic theme/button hover pseudo-elements from leaking into tabs. */
.axtra-project-tabs__button::before,
.axtra-project-tabs__button::after {
  content: none !important;
  display: none !important;
}

.axtra-project-tabs__button:focus-visible {
  outline: 2px solid var(--axtra-tabs-accent);
  outline-offset: 3px;
}

.axtra-project-tabs__button[aria-pressed="true"] {
  border-color: var(--axtra-tabs-ink);
  background: var(--axtra-tabs-ink);
  color: var(--axtra-tabs-paper);
}

.axtra-project-tabs__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(28, 29, 32, 0.08);
  color: var(--axtra-tabs-muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  transition: inherit;
}

.axtra-project-tabs__button[aria-pressed="true"] .axtra-project-tabs__count {
  background: rgba(255, 255, 255, 0.14);
  color: var(--axtra-tabs-paper);
}

.axtra-project-tabs-card[hidden] {
  display: none !important;
}

.axtra-project-tabs__empty {
  display: none;
  width: 100%;
  padding: 28px 0 0;
  color: var(--axtra-tabs-muted);
  font-size: 16px;
  line-height: 1.5;
}

.axtra-project-tabs__empty.is-visible {
  display: block;
}

.axtra-project-tabs__status {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 767px) {
  .axtra-project-tabs {
    margin-bottom: 30px;
  }

  /*
   * Mobile: one category per line. This intentionally removes the old
   * horizontal scroller so every filter is immediately visible/tappable.
   */
  .axtra-project-tabs__scroll {
    overflow: visible;
    box-sizing: border-box;
    padding-block: 0;
    padding-inline: 15px;
  }

  .axtra-project-tabs__nav {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 10px;
    width: 100%;
    min-width: 0;
    margin-inline: 0;
    padding: 0;
  }

  .axtra-project-tabs__button {
    width: 100%;
    min-height: 48px;
    padding: 11px 16px 11px 18px;
    justify-content: space-between;
    font-size: 14px;
    text-align: left;
  }

  .axtra-project-tabs__count {
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    font-size: 10px;
    flex: 0 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .axtra-project-tabs__button {
    transition: none;
  }
}

/* ==========================================================================
   Projects pagination — matched to the live Web Dominance Blog pagination.
   Visual reference: 40px cyan current-page circle, plain page numbers,
   evenly spaced items and no previous/next arrows.
   ========================================================================== */
.axtra-project-pagination {
  width: 100%;
  margin-top: clamp(42px, 5vw, 70px);
}

.axtra-project-pagination[hidden] {
  display: none !important;
}

.axtra-project-pagination__list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  margin: 0;
  padding: 0;
  gap: 17px;
}

.axtra-project-pagination__item,
.axtra-project-pagination__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.axtra-project-pagination__button {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #1c1d20;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.axtra-project-pagination__button::before,
.axtra-project-pagination__button::after {
  content: none !important;
  display: none !important;
}

.axtra-project-pagination__button:hover,
.axtra-project-pagination__button:focus-visible {
  color: #1c1d20;
  background-color: rgba(94, 214, 249, 0.16);
}

.axtra-project-pagination__button:focus-visible {
  outline: 2px solid #5ed6f9;
  outline-offset: 2px;
}

.axtra-project-pagination__button.is-active,
.axtra-project-pagination__button.active {
  background-color: #5ed6f9;
  color: #1c1d20;
  cursor: default;
}

.axtra-project-pagination__button.is-active:hover,
.axtra-project-pagination__button.active:hover {
  background-color: #5ed6f9;
}

.axtra-project-pagination__dots {
  color: #1c1d20;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  user-select: none;
}

@media (max-width: 767px) {
  .axtra-project-pagination {
    margin-top: 36px;
    padding-inline: 15px;
    box-sizing: border-box;
  }

  .axtra-project-pagination__list {
    gap: 12px;
  }
}

@media (max-width: 390px) {
  .axtra-project-pagination__list {
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .axtra-project-pagination__button {
    transition: none;
  }
}

/*
 * The pager is injected after the Elementor element that owns the Projects
 * section's closing border. Keep its own box borderless so the native divider
 * remains the single line between the project grid and pagination.
 */
.axtra-project-pagination {
  border: 0 !important;
  outline: 0;
}
