/* ============================================================
   Vers List Pages — Case & News
   Brand: #ed1b24 · #c9a962 · cream #faf8f4
   ============================================================ */

:root {
  --vers-list-cream: #faf8f4;
  --vers-list-cream-deep: #f3efe8;
}

/* ---- Shared list section ---- */
.vers-list-section--case,
.vers-list-section--news {
  padding: 72px 0 120px;
  background: var(--vers-list-cream);
}

.vers-list-section--case::before,
.vers-list-section--news::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, rgba(201, 169, 98, 0.35) 50%, transparent 95%);
  pointer-events: none;
}

.vers-list-section--case,
.vers-list-section--news {
  position: relative;
}

/* ---- Pagination ---- */
.vers-pagination {
  display: flex;
  justify-content: center;
  padding-top: 16px;
}

.vers-pagination ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vers-pagination ul li {
  font-size: 15px;
  font-weight: 500;
  color: var(--vers-brand);
}

.vers-pagination ul li a,
.vers-pagination ul li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border-radius: 50%;
  text-decoration: none;
  color: var(--vers-text);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.vers-pagination ul li a:hover,
.vers-pagination ul li a:focus,
.vers-pagination ul li a.active,
.vers-pagination ul li span.current {
  background: var(--vers-brand);
  border-color: var(--vers-brand);
  color: #fff;
}

.vers-pagination ul li a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(237, 27, 36, 0.2);
}

/* ============================================================
   Case List — vers-case-card
   ============================================================ */
.vers-case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 32px;
}

.vers-case-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--vers-radius, 16px);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--vers-shadow, 0 8px 32px rgba(0, 0, 0, 0.08));
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.vers-case-card:hover {
  transform: translateY(-8px);
  border-color: rgba(237, 27, 36, 0.12);
  box-shadow: var(--vers-shadow-hover, 0 16px 48px rgba(237, 27, 36, 0.12));
}

.vers-case-card-img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--vers-radius, 16px) var(--vers-radius, 16px) 0 0;
}

.vers-case-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.vers-case-card:hover .vers-case-card-img img {
  transform: scale(1.06);
}

.vers-case-card-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(25, 53, 45, 0.55);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.vers-case-card:hover .vers-case-card-img::after {
  opacity: 1;
}

.vers-case-card-zoom {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.vers-case-card:hover .vers-case-card-zoom {
  opacity: 1;
}

.vers-case-card-zoom i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  font-size: 28px;
  color: #fff;
  background: rgba(237, 27, 36, 0.92);
  border: 2px solid rgba(201, 169, 98, 0.5);
  border-radius: 50%;
  transition: transform 0.3s ease, background 0.3s ease;
}

.vers-case-card-zoom:hover i {
  transform: scale(1.1) rotate(90deg);
  background: var(--vers-brand-dark, #c4151c);
}

.vers-case-card-body {
  padding: 24px 26px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.vers-case-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vers-case-card-tags li {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--vers-muted, rgba(0, 0, 0, 0.55));
  background: var(--vers-list-cream-deep);
  border: 1px solid rgba(201, 169, 98, 0.25);
  border-radius: 100px;
}

.vers-case-card-tags li::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--vers-gold, #c9a962);
  flex-shrink: 0;
}

.vers-case-card-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
}

.vers-case-card-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--vers-text, #19352d);
}

.vers-case-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vers-case-card:hover .vers-case-card-title a {
  color: var(--vers-brand);
}

.vers-case-card-arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-size: 18px;
  color: var(--vers-text, #19352d);
  background: var(--vers-list-cream);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 50%;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.vers-case-card-arrow:hover {
  background: var(--vers-brand);
  border-color: var(--vers-brand);
  color: #fff;
  transform: rotate(45deg);
}

/* ============================================================
   News List — reuse vers-news-card from vers-home.css
   ============================================================ */
.vers-news-list-grid {
  --bs-gutter-x: 1.75rem;
  --bs-gutter-y: 1.75rem;
}

.vers-list-section--news .vers-news-card {
  margin-top: 0;
}

.vers-list-section--news .vers-news-card + .vers-news-card {
  margin-top: 0;
}

/* List-page variant: full date pill on image */
.vers-news-card-img .vers-news-date--full {
  flex-direction: row;
  min-width: auto;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  gap: 0;
  white-space: nowrap;
}

.vers-news-card-img .vers-news-date--full .vers-news-date-day,
.vers-news-card-img .vers-news-date--full .vers-news-date-ym {
  font-size: 12px;
  font-weight: 600;
  margin-top: 0;
  line-height: 1.3;
}

/* Circular arrow button variant (list page) */
.vers-news-card-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
}

.vers-news-card-round-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-size: 18px;
  color: var(--vers-brand);
  background: var(--vers-brand-light, rgba(237, 27, 36, 0.08));
  border: 1px solid rgba(237, 27, 36, 0.15);
  border-radius: 50%;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.vers-news-card:hover .vers-news-card-round-btn {
  background: var(--vers-brand);
  border-color: var(--vers-brand);
  color: #fff;
  transform: rotate(45deg);
}

.vers-list-section--news .vers-news-card-body h4 {
  color: var(--vers-brand);
  margin-bottom: 10px;
}

.vers-list-section--news .vers-news-card:hover .vers-news-card-body h4 {
  color: var(--vers-brand-dark, #c4151c);
}

/* ============================================================
   Product List — vers-product-card
   ============================================================ */
.vers-list-section--product {
  position: relative;
  padding: 72px 0 120px;
  background: var(--vers-list-cream);
}

.vers-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 28px;
}

.vers-product-card {
  height: 100%;
  border-radius: var(--vers-radius, 16px);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--vers-shadow, 0 8px 32px rgba(0, 0, 0, 0.08));
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.vers-product-card:hover {
  transform: translateY(-8px);
  border-color: rgba(237, 27, 36, 0.12);
  box-shadow: var(--vers-shadow-hover, 0 16px 48px rgba(237, 27, 36, 0.12));
}

.vers-product-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.vers-product-card-img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f5f2ec;
}

.vers-product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.vers-product-card:hover .vers-product-card-img img {
  transform: scale(1.05);
}

.vers-product-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 24px 26px;
}

.vers-product-card-title {
  font-size: 18px;
  font-weight: 600;
  color: #19352d;
  margin-bottom: 6px;
  line-height: 1.4;
}

.vers-product-card-series {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.45);
  margin-bottom: 8px;
}

.vers-product-card-slogan {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.58);
  margin-bottom: 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vers-product-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--vers-brand, #ed1b24);
  transition: gap 0.25s ease;
}

.vers-product-card:hover .vers-product-card-cta {
  gap: 10px;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 991px) {
  .vers-list-section--case,
  .vers-list-section--news,
  .vers-list-section--product {
    padding: 56px 0 88px;
  }

  .vers-product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 20px;
  }

  .vers-case-grid {
    gap: 32px 24px;
  }

  .vers-case-card-body {
    padding: 20px 22px 24px;
  }

  .vers-case-card-title {
    font-size: 18px;
  }
}

@media (max-width: 767px) {
  .vers-case-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .vers-case-card-img {
    aspect-ratio: 16 / 11;
  }
}

@media (max-width: 575px) {
  .vers-list-section--case,
  .vers-list-section--news,
  .vers-list-section--product {
    padding: 48px 0 72px;
  }

  .vers-product-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .vers-case-card-tags li {
    font-size: 11px;
    padding: 5px 12px;
  }

  .vers-pagination ul li a,
  .vers-pagination ul li span {
    min-width: 38px;
    height: 38px;
    font-size: 14px;
  }
}
