/* Work page — ALL PROJECTS (theme-aligned) */

.ajn-work-grid-area.mb--16 {
  margin-bottom: 16px;
}

.ajn-work-grid-area .section-inner {
  position: relative;
}

.ajn-work-grid-area .section-top-area {
  padding: 100px 56px 28px;
}

.ajn-work-grid-area .section-title-area.center-style {
  text-align: center;
}

.ajn-work-grid-area .section-title-area.center-style .sub-title {
  margin-left: auto;
  margin-right: auto;
}

.ajn-work-grid-area .section-title-area.center-style .desc {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* Filter tabs — theme wpr-btn style, one line */
.ajn-work-filter {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  margin: 28px 0 0;
  padding: 0;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  background: transparent;
  border: none;
  box-sizing: border-box;
}

.ajn-work-filter::-webkit-scrollbar {
  display: none;
}

.ajn-work-filter__btn {
  appearance: none;
  margin: 0;
  cursor: pointer;
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: auto;
  min-height: 48px;
  max-width: max-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 16px 24px;
  border: none;
  border-radius: 12px;
  font-family: var(--font-primary, inherit);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  color: var(--color-heading-1, #111827);
  background: radial-gradient(
      62.56% 62.56% at 28.14% -10.42%,
      #ffffff 0%,
      rgba(255, 255, 255, 0) 100%
    ),
    #ffffff;
  box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.04),
    inset 0px 1px 0px rgba(255, 255, 255, 0.6), inset 0px -3px 0px #e4e4e4,
    inset 0px -4px 0px 1px #fafafa;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease,
    color 0.25s ease;
}

.ajn-work-filter__btn::after {
  display: none;
}

.ajn-work-filter__btn:hover {
  transform: translateY(-2px);
  box-shadow: 3px 3px 0 var(--color-primary, #4fbce6);
  color: #000;
}

.ajn-work-filter__btn.is-active {
  color: #fff;
  background: radial-gradient(
      62.56% 62.56% at 28.14% -10.42%,
      rgba(255, 255, 255, 0.12) 0%,
      rgba(255, 255, 255, 0) 100%
    ),
    linear-gradient(137.66deg, #1a1a1a 21.13%, #000000 80.53%);
  box-shadow: 0px 3px 3px rgba(0, 0, 0, 0.1),
    inset 0px 1px 0px rgba(255, 255, 255, 0.2), inset 0px -3px 0px #000000,
    inset 0px -4px 0px 1px rgba(255, 255, 255, 0.06);
}

.ajn-work-filter__btn.is-active:hover {
  color: #fff;
  box-shadow: 3px 3px 0 var(--color-primary, #4fbce6);
}

/* 2-col grid */
.ajn-work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding: 32px 56px 80px;
}

.ajn-work-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(137.66deg, #f5f5f5 21.13%, #f2f2f2 80.53%);
  box-shadow: inset 0px 1px 0px rgba(255, 255, 255, 0.6),
    inset 0px -5px 0px #e4e4e4, inset 0px -6px 0px 1px #fafafa;
  transition: transform 0.35s ease;
}

.ajn-work-card:hover {
  transform: translateY(-6px);
}

.ajn-work-card.is-hidden {
  display: none;
}

.ajn-work-card__media {
  position: relative;
  z-index: 1;
  display: block;
  margin: 16px 16px 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0px 1px 0px rgba(255, 255, 255, 0.6),
    inset 0px -5px 0px #e4e4e4, inset 0px -6px 0px 1px #fafafa;
}

.ajn-work-card__slides {
  position: absolute;
  inset: 0;
}

.ajn-work-card__cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.ajn-work-card:hover .ajn-work-card__cover {
  transform: scale(1.07);
}

.ajn-work-card__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.6s ease;
  pointer-events: none;
}

.ajn-work-card__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.ajn-work-card:hover .ajn-work-card__slide.is-active {
  transform: scale(1.07);
}

.ajn-work-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.ajn-work-card:hover .ajn-work-card__media > img:not(.shape) {
  transform: scale(1.07);
}

.ajn-work-card__dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
}

.ajn-work-card__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.ajn-work-card__dot.is-active {
  background: #4fbce6;
}

.ajn-work-card__media .shape {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.ajn-work-card__media .shape.top-left-shape {
  top: 0;
  left: 0;
}

.ajn-work-card__media .shape.top-right-shape {
  top: 0;
  right: 0;
  width: 72px;
  height: auto;
}

.ajn-work-card__cat {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 4px 8px 3px 22px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-heading-1, #111827);
  font-family: var(--font-primary, inherit);
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
}

.ajn-work-card__cat::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  top: 50%;
  transform: translateY(-50%);
  left: 6px;
  background: var(--color-primary, #4fbce6);
}

.ajn-work-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  margin: 12px 16px 16px;
  padding: 24px 20px 22px;
  background: #fff;
  border-radius: 8px;
  position: relative;
  z-index: 1;
}

.ajn-work-card__title {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 600;
  font-family: var(--font-secondary, inherit);
  text-transform: none;
}

.ajn-work-card__title a {
  color: var(--color-heading-1, #111827);
  text-decoration: none;
  transition: color 0.25s ease;
}

.ajn-work-card__title a:hover {
  color: var(--color-primary, #4fbce6);
}

.ajn-work-card__meta {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--color-body-1, #6b7280);
  font-weight: 500;
}

.ajn-work-card__result {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid rgba(3, 7, 18, 0.08);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
  font-family: var(--font-secondary, inherit);
  color: var(--color-heading-1, #111827);
}

.ajn-work-card__actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
}

.ajn-work-card__btn {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  padding: 12px 10px;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  font-family: var(--font-primary, inherit);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-heading-1, #111827);
  background: radial-gradient(
      62.56% 62.56% at 28.14% -10.42%,
      #ffffff 0%,
      rgba(255, 255, 255, 0) 100%
    ),
    #ffffff;
  box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.04),
    inset 0px 1px 0px rgba(255, 255, 255, 0.6), inset 0px -3px 0px #e4e4e4,
    inset 0px -4px 0px 1px #fafafa;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease,
    color 0.2s ease;
}

.ajn-work-card__btn:hover {
  transform: translateY(-1px);
  box-shadow: 2px 2px 0 var(--color-primary, #4fbce6);
  color: #000;
}

.ajn-work-card__btn:nth-child(1) {
  background: radial-gradient(
      62.56% 62.56% at 28.14% -10.42%,
      rgba(255, 255, 255, 0.12) 0%,
      rgba(255, 255, 255, 0) 100%
    ),
    linear-gradient(137.66deg, #1a1a1a 21.13%, #000000 80.53%);
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.1),
    inset 0px 1px 0px rgba(255, 255, 255, 0.2), inset 0px -2px 0px #000,
    inset 0px -3px 0px 1px rgba(255, 255, 255, 0.06);
  color: #fff;
}

.ajn-work-card__btn:nth-child(1):hover {
  color: #fff;
  box-shadow: 2px 2px 0 var(--color-primary, #4fbce6);
}

.ajn-work-card__link {
  display: none;
}

.ajn-work-grid__empty {
  text-align: center;
  padding: 0 56px 64px;
  color: var(--color-body-1, #6b7280);
  font-weight: 500;
}

.wpr-project-area .ajn-featured-cat {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 8px 3px 22px;
  background: rgba(79, 188, 230, 0.18);
  color: #fff;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  position: relative;
  z-index: 1;
  font-family: var(--font-primary, inherit);
}

.wpr-project-area .ajn-featured-cat::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  top: 50%;
  transform: translateY(-50%);
  left: 6px;
  background: var(--color-primary, #4fbce6);
}

@media (max-width: 1199px) {
  .ajn-work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 28px 32px 64px;
  }

  .ajn-work-grid-area .section-top-area {
    padding-left: 32px;
    padding-right: 32px;
  }
}

@media (max-width: 767px) {
  .ajn-work-grid-area .section-top-area {
    padding: 60px 24px 20px;
  }

  .ajn-work-filter {
    justify-content: flex-start;
    margin-top: 20px;
  }

  .ajn-work-card__btn {
    padding: 10px 6px;
    font-size: 11px;
  }

  .ajn-work-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px 24px 48px;
  }
}

/* Work process — match homepage tile height (not service compact) */
.wpr-working-process#work-process .working-process-wrapper {
  padding: 16px 16px 32px 16px;
  margin-bottom: 24px;
}

.wpr-working-process#work-process .working-process-wrapper .image-area,
.wpr-working-process#work-process .working-process-wrapper .image-area img {
  max-height: none;
  height: auto;
  width: 100%;
  object-fit: initial;
}
