body.kgx-du-an-archive #main-content.container {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.kgx-du-an-archive #wrapper,
body.kgx-du-an-archive .inner-wrapper,
body.kgx-du-an-archive #main-content,
body.kgx-du-an-archive #p-cat.content,
body.kgx-du-an-archive #p-cat.block-content {
  width: 100% !important;
  max-width: 100% !important;
}

body.kgx-du-an-archive #p-cat.content,
body.kgx-du-an-archive #p-cat.block-content {
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.kgx-du-an-archive .page-head,
body.category-du-an .page-head,
body.archive .du-an-archive ~ .page-head {
  display: none !important;
}

.du-an-archive {
  background:
    radial-gradient(circle at top, rgba(47, 155, 72, 0.18), transparent 34%),
    linear-gradient(180deg, #0d1111 0%, #101717 100%);
  color: #f4f5f0;
  padding: 112px 0 88px;
}

.du-an-archive__container {
  width: min(1800px, calc(100% - 80px));
  margin: 0 auto;
}

.du-an-archive__hero {
  margin-bottom: 48px;
}

.du-an-archive__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: #80c98f;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.du-an-archive__eyebrow::before {
  content: "";
  width: 42px;
  height: 1px;
  background: currentColor;
  opacity: 0.85;
}

.du-an-archive__title {
  margin: 0 0 18px;
  color: #f8f8f3;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.05;
  font-weight: 700;
}

.du-an-archive__desc {
  max-width: 760px;
  color: rgba(232, 236, 232, 0.78);
  font-size: 17px;
  line-height: 1.8;
}

.du-an-archive__desc p:last-child {
  margin-bottom: 0;
}

.du-an-archive__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
  padding: 24px 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 22, 22, 0.72);
  backdrop-filter: blur(14px);
}

.du-an-archive__subfilters-wrap {
  margin-top: -12px;
  margin-bottom: 34px;
  padding: 0 4px;
}

.du-an-archive__subfilters-label {
  margin-bottom: 14px;
  color: rgba(232, 236, 232, 0.72);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.du-an-archive__subfilters {
  width: 100%;
  overflow: hidden;
}

.du-an-archive__subfilters .swiper-wrapper {
  align-items: center;
}

.du-an-archive__subfilters .swiper-slide {
  width: auto !important;
}

.du-an-archive__filters {
  min-width: 0;
  flex: 1 1 auto;
  padding: 6px 2px;
  margin: -6px 8px -6px 0;
}

.du-an-archive__filters .swiper-wrapper {
  align-items: center;
}

.du-an-archive__filters .swiper-slide {
  width: auto !important;
}

.du-an-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid rgba(128, 201, 143, 0.22);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(244, 245, 240, 0.72);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none !important;
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.du-an-filter:hover,
.du-an-filter:focus {
  border-color: rgba(128, 201, 143, 0.5);
  color: #f4f5f0;
  box-shadow: 0 14px 30px rgba(47, 155, 72, 0.16);
  transform: none;
}

.du-an-filter.is-active {
  border-color: #2f9b48;
  background: #2f9b48;
  color: #fff;
  box-shadow: 0 14px 32px rgba(47, 155, 72, 0.18);
}

.du-an-filter--sub {
  min-height: 40px;
  padding: 8px 16px;
  border-color: rgba(128, 201, 143, 0.18);
  background: rgba(255, 255, 255, 0.015);
  color: rgba(244, 245, 240, 0.68);
  font-size: 13px;
}

.du-an-filter:focus-visible {
  outline: 2px solid rgba(128, 201, 143, 0.45);
  outline-offset: 2px;
}

.du-an-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.du-an-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(19, 28, 27, 0.94) 0%, rgba(12, 18, 18, 0.98) 100%);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.22);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.du-an-card:hover {
  transform: translateY(-6px);
  border-color: rgba(128, 201, 143, 0.28);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.du-an-card__media {
  display: block;
  overflow: hidden;
  aspect-ratio: 1.16;
  background: #1a2322;
}

.du-an-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 0.7s ease;
}

.du-an-card:hover .du-an-card__image {
  transform: scale(1.08);
}

.du-an-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 18px;
  padding: 28px 28px 30px;
}

.du-an-card__meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.du-an-card__term {
  color: #82d992;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.du-an-card__date {
  color: rgba(244, 245, 240, 0.46);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.du-an-card__title {
  margin: 0;
  font-size: 24px;
  line-height: 1.32;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.du-an-card__title a {
  color: #f4f5f0;
  text-decoration: none !important;
}

.du-an-card__excerpt {
  margin: 0;
  color: rgba(226, 232, 226, 0.74);
  font-size: 15px;
  line-height: 1.75;
}

.du-an-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  padding-top: 4px;
}

.du-an-card__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(244, 245, 240, 0.64);
  font-size: 13px;
  line-height: 1.6;
}

.du-an-card__meta-item svg {
  width: 16px;
  height: 16px;
  color: #6fc584;
  flex-shrink: 0;
}

.du-an-card__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 10px;
  margin-top: auto;
  padding: 10px 0;
  color: #94e2a3;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  transition: color 0.25s ease, transform 0.25s ease;
}

.du-an-card__link svg {
  width: 16px;
  height: 16px;
}

.du-an-card__link:hover {
  color: #b7f0c0;
  transform: translateX(4px);
}

.du-an-load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 52px;
}

.du-an-load-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid rgba(128, 201, 143, 0.22);
  background: rgba(255, 255, 255, 0.03);
  color: #f4f5f0;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: all 0.25s ease;
}

.du-an-load-more-btn:hover,
.du-an-load-more-btn:focus {
  border-color: #2f9b48;
  background: #2f9b48;
  color: #fff;
}

.du-an-scroll-status {
  margin-top: 26px;
  text-align: center;
  color: rgba(244, 245, 240, 0.64);
  font-size: 14px;
}

.du-an-scroll-status .infinite-scroll-last,
.du-an-scroll-status .infinite-scroll-error {
  margin: 0;
}

.du-an-empty {
  padding: 64px 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 22, 22, 0.82);
  text-align: center;
}

.du-an-empty h2 {
  margin: 0 0 12px;
  color: #f4f5f0;
  font-size: 28px;
}

.du-an-empty p {
  margin: 0;
  color: rgba(232, 236, 232, 0.72);
  font-size: 15px;
  line-height: 1.8;
}

@media (max-width: 1080px) {
  .du-an-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1023px) {
  .du-an-archive {
    padding: 104px 0 80px;
  }

  .du-an-archive__container {
    width: min(calc(100% - 48px), 1600px);
  }

  .du-an-archive__hero {
    margin-bottom: 40px;
  }

  .du-an-archive__title {
    font-size: clamp(34px, 6vw, 48px);
  }

  .du-an-archive__desc {
    font-size: 16px;
    line-height: 1.7;
  }

  .du-an-archive__toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 20px 22px;
  }

  .du-an-archive__filters {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .du-an-archive__subfilters-wrap {
    margin-top: -8px;
    margin-bottom: 30px;
    padding: 0;
  }

  .du-an-grid {
    gap: 24px;
  }

  .du-an-card__body {
    padding: 24px 22px 26px;
    gap: 16px;
  }
}

@media (max-width: 767px) {
  .du-an-archive {
    padding: 96px 0 72px;
  }

  .du-an-archive__container {
    width: min(100% - 24px, 1600px);
  }

  .du-an-archive__hero {
    margin-bottom: 34px;
  }

  .du-an-archive__toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-bottom: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    backdrop-filter: none;
  }

  .du-an-archive__filters {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
  }

  .du-an-archive__filters .swiper-wrapper {
    display: flex !important;
    align-items: center;
  }

  .du-an-archive__filters .swiper-slide {
    width: auto !important;
  }

  .du-an-filter {
    width: auto;
    min-width: max-content;
    padding: 12px 16px;
  }

  .du-an-archive__subfilters-wrap {
    margin-top: 16px;
    margin-bottom: 28px;
    padding: 0;
  }

  .du-an-archive__subfilters-label {
    margin-bottom: 12px;
  }

  /* Horizontal scroll layout — 2 rows, swipe right to load more */
  .du-an-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, 70vw) !important;
    grid-template-rows: auto auto;
    grid-auto-flow: column;
    grid-auto-columns: 70vw;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .du-an-grid::-webkit-scrollbar {
    display: none;
  }

  .du-an-card {
    scroll-snap-align: start;
  }

  .du-an-card__media {
    aspect-ratio: 1.4;
  }

  /* Ẩn excerpt trên mobile */
  .du-an-card__excerpt {
    display: none;
  }

  /* Loading indicator at end of horizontal scroll */
  .du-an-hscroll-loader {
    flex: 0 0 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
  }

  .du-an-hscroll-loader img {
    display: block;
    width: 32px;
    height: 32px;
  }

  .du-an-hscroll-loader.is-done {
    display: none;
  }

  .du-an-card__media {
    aspect-ratio: 1.4;
  }

  .du-an-card__body {
    padding: 14px 16px 16px;
    gap: 10px;
  }

  .du-an-card__title {
    font-size: 16px;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .du-an-card__meta-top {
    gap: 8px;
  }

  .du-an-card__term {
    font-size: 11px;
  }

  .du-an-card__date {
    display: none;
  }

  .du-an-card__excerpt,
  .du-an-card__meta {
    display: none;
  }

  .du-an-card__link {
    min-height: 36px;
    font-size: 13px;
    padding: 6px 0;
  }

  /* Hide vertical load more / scroll status on mobile horizontal mode */
  .du-an-load-more-wrap,
  .du-an-scroll-status {
    display: none !important;
  }
}

/* Project tabs: keep active state calm and consistent. */
.du-an-filter.is-active,
.du-an-filter.active,
.du-an-filter.is-active:hover,
.du-an-filter.active:hover {
  background: #2F9B48 !important;
  border-color: #2F9B48 !important;
  color: #fff !important;
  box-shadow: 0 14px 30px rgba(47, 155, 72, 0.16) !important;
}
