/* Trang Sản phẩm — product listing (mockup DTSVN) */

.products-page {
  --pl-hero: #00204a;
  --pl-bg: #f4f7fa;
  --pl-card: #ffffff;
  --pl-title: #003366;
  --pl-text: #4a5568;
  --pl-tag: #777777;
  --pl-accent: #003366;
  --pl-pager-active: #1e5bb6;
  font-family: "Lexend", sans-serif;
}

/* ——— Animations ——— */
@keyframes products-fade-up {
  from {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.products-reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--pl-i, 0) * 0.08s);
  will-change: opacity, transform;
}

.products-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.products-page.is-ready .products-reveal--load {
  animation: products-fade-up 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.products-page.is-ready .products-reveal--delay-1 {
  animation-delay: 0.1s;
}

.products-page.is-ready .products-reveal--delay-2 {
  animation-delay: 0.22s;
}

.products-page.is-ready .products-reveal--delay-3 {
  animation-delay: 0.35s;
}

.products-reveal--delay-3:not(.products-reveal--load) {
  transition-delay: calc(0.15s + (var(--pl-i, 0) * 0.08s));
}

.products-page__below-item + .products-page__below-item {
  margin-top: 0;
}

@media (prefers-reduced-motion: reduce) {
  .products-reveal,
  .products-reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
    animation: none !important;
  }

  .products-page__card-inner:hover {
    transform: none;
  }
}

/* Hero — banner tiêu đề (Sản phẩm, Dịch vụ UX, Marketing) */
.products-page__hero {
  position: relative;
  overflow: hidden;
  background-color: #0d1b3e;
  background-image: url("/static-assets/images/DTSVN-update/update-banner.png");
  background-repeat: no-repeat;
  background-position: left center;
  background-size: cover;
  padding: 0;
}

.products-page__hero-inner {
  position: relative;
  z-index: 1;
  padding: clamp(32px, 5vw, 56px) var(--site-gutter-x) clamp(40px, 6vw, 64px);
}

.products-page__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 clamp(16px, 2vw, 24px);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.products-page__breadcrumb a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.2s ease;
}

.products-page__breadcrumb a:hover {
  color: #ffffff;
}

.products-page__breadcrumb-sep {
  color: rgba(255, 255, 255, 0.45);
}

.products-page__breadcrumb [aria-current="page"] {
  color: rgba(255, 255, 255, 0.9);
}

.products-page__title {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(2rem, 3.5vw + 0.5rem, 3.25rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #ffffff;
}

/* Main grid */
.products-page__main {
  padding: 0;
  background-color: var(--pl-bg);
}

.products-page__main-inner {
  padding: clamp(40px, 6vw, 64px) var(--site-gutter-x) clamp(48px, 7vw, 80px);
}

.products-page__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(16px, 2vw, 24px);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 576px) {
  .products-page__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .products-page__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(20px, 2.2vw, 28px);
  }
}

.products-page__card {
  display: flex;
  margin: 0;
  padding: 0;
  height: 100%;
}

.products-page__card-inner {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  width: 100%;
  min-height: 0;
  min-width: 0;
  gap: 30px;
  padding: 32px;
  background: var(--pl-card);
  border: 1px solid #c6e2f7;
  box-shadow: inset 0 5px 0 #2b6bb2, 0 1px 2px rgba(0, 32, 74, 0.03);
  transition: box-shadow 0.22s ease, transform 0.22s ease;
}

.products-page__card-inner:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 5px 0 #2b6bb2, 0 14px 30px rgba(10, 29, 77, 0.1);
}

.products-page__card-content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  gap: 18px;
}

.products-page__card-title {
  width: 100%;
  margin: 0;
  color: #2b6bb2;
  font-family: "Lexend Deca", "Lexend", sans-serif;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.products-page__card-title a {
  color: inherit;
  text-decoration: none;
}

.products-page__card-title a:hover {
  opacity: 0.85;
}

.products-page__card-desc {
  display: -webkit-box;
  width: 100%;
  margin: 0;
  overflow: hidden;
  color: #4e5a62;
  font-family: "Lexend Deca", "Lexend", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.products-page__features,
.products-page__tags {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.products-page__features {
  flex-direction: column;
  width: 100%;
  gap: 10px;
}

.products-page__feature {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 24px;
  min-width: 0;
  gap: 12px;
  color: #232a2f;
  font-family: "Lexend Deca", "Lexend", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.products-page__feature-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: #45d6b0;
}

.products-page__feature-icon svg {
  display: block;
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.products-page__tags {
  flex-wrap: wrap;
  width: 100%;
  gap: 12px;
  padding-top: 14px;
}

.products-page__tag {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  min-height: 31px;
  min-width: 0;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid #c6e2f7;
  background: #edf8fe;
  color: #2b6bb2;
  font-family: "Lexend Deca", "Lexend", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.products-page__card-footer {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.products-page__card-divider {
  width: 100%;
  height: 1px;
  background: #d7e2eb;
}

.products-page__consult-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  height: 52px;
  gap: 8px;
  padding: 16px 24px;
  border: 1px solid #afbec8;
  background: #2b6bb2;
  color: #ffffff;
  font-family: "Lexend Deca", "Lexend", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.products-page__consult-btn:hover {
  background: #245c9a;
  transform: translateY(-1px);
}

.products-page__solution-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 24px;
  gap: 12px;
  color: #2b6bb2;
  font-family: "Lexend Deca", "Lexend", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 0.2s ease;
}

.products-page__solution-link:hover {
  color: #174777;
}

.products-page__solution-text {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}

.products-page__solution-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.products-page__solution-icon svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: currentColor;
}

@media (max-width: 575px) {
  .products-page__card-inner {
    padding: 28px 24px;
  }

  .products-page__card-title {
    font-size: 22px;
  }
}

.products-page__empty {
  padding: clamp(48px, 8vw, 80px) 0;
  text-align: center;
  color: var(--pl-text);
}

.products-page__empty h2 {
  margin: 0 0 12px;
  font-size: 1.25rem;
  color: var(--pl-title);
}

.products-page__empty p {
  margin: 0;
}

/* Footer: count + pagination */
.products-page__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 24px;
  margin-top: clamp(32px, 4vw, 48px);
  padding-top: clamp(8px, 1vw, 12px);
}

.products-page__count {
  margin: 0;
  font-size: clamp(0.8125rem, 0.75vw + 0.35rem, 0.875rem);
  font-weight: 400;
  color: var(--pl-tag);
}

.products-page__pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.products-page__pager-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #d8dee6;
  background: #ffffff;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  color: var(--pl-title);
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.products-page__pager-btn:hover:not(.products-page__pager-btn--active):not(.products-page__pager-btn--disabled) {
  border-color: var(--pl-accent);
  color: var(--pl-accent);
}

.products-page__pager-btn--active {
  border-color: var(--pl-pager-active);
  background: var(--pl-pager-active);
  color: #ffffff;
  cursor: default;
}

.products-page__pager-btn--disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

@media (max-width: 575px) {
  .products-page__footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

.section.product-direction {
  width: 100%;
  padding: 64px 200px;
  background: #ffffff;
}

.product-direction__container {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1520px;
  margin: 0 auto;
  gap: 40px;
}

.product-direction__title {
  margin: 0;
  color: #0e245b;
  font-family: "Lexend Deca", "Lexend", sans-serif;
  font-size: 48px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.product-direction__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 64px;
  width: 100%;
}

.product-direction__item {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 32px;
  padding: 32px 0;
}

.product-direction__number {
  flex-shrink: 0;
  color: #bdd1e7;
  font-family: "Lexend Deca", "Lexend", sans-serif;
  font-size: 64px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.product-direction__text {
  min-width: 0;
  margin: 0;
  color: #122d4b;
  font-family: "Lexend Deca", "Lexend", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

@media (max-width: 1399px) {
  .section.product-direction {
    padding: 64px 96px;
  }
}

@media (max-width: 991px) {
  .section.product-direction {
    padding: 56px 48px;
  }

  .product-direction__title {
    font-size: 40px;
  }

  .product-direction__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 48px;
  }
}

@media (max-width: 575px) {
  .section.product-direction {
    padding: 40px 24px;
  }

  .product-direction__container {
    gap: 28px;
  }

  .product-direction__title {
    font-size: 32px;
  }

  .product-direction__list {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-direction__item {
    gap: 20px;
    padding: 20px 0;
  }

  .product-direction__number {
    font-size: 48px;
  }
}