/* Scoped layout for Use Cases archive (/usecases/) and matching Page template */
.tv-cases {
  font-family: "Open Sans", "Zen Kaku Gothic New", sans-serif;
  color: #00033d;
  background-color: #f6f6f6;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
  padding-top: 0;
  padding-bottom: 8rem;
  letter-spacing: 0.025em;
  min-height: 80vh;
}

.tv-cases .cases-hero {
  padding: 4rem 0 2rem;
  margin-bottom: 4rem;
}

.tv-cases .hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.tv-cases .hero-title {
  font-size: clamp(2.4rem, 4.8vw, 4.25rem);
  font-weight: 300 !important;
  color: #00033d;
  margin-bottom: 0;
  line-height: 1.1;
  letter-spacing: 0.05em;
  text-align: left;
}

.tv-cases .hero-subtitle-wrapper {
  margin-top: 0.5rem;
}

.tv-cases .hero-subtitle {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
  display: inline-block;
  padding-right: 1rem;
}

.tv-cases .hero-divider {
  width: 100%;
  height: 1px;
  background-color: rgba(0, 3, 61, 0.1);
  margin-top: 1rem;
}

/* Card Styling */
.tv-cases .case-card,
.tv-case-detail .case-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 3, 61, 0.05);
}

.tv-cases .case-card:hover,
.tv-case-detail .case-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.tv-cases .case-img-wrap,
.tv-case-detail .case-img-wrap {
  background-color: #d8d8d8;
  aspect-ratio: 4/3;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.tv-cases .placeholder-text,
.tv-case-detail .placeholder-text {
  font-size: 0.85rem;
  color: #00033d;
  font-weight: 500;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.tv-cases .case-content,
.tv-case-detail .case-content {
  padding: 1.5rem 1.5rem 2rem 1.5rem;
  background-color: #fff;
}

.tv-cases .case-company,
.tv-case-detail .case-company {
  color: #1245f6;
  font-size: 24px;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.tv-cases .case-title,
.tv-case-detail .case-title {
  color: #00033d;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.tv-cases .case-arrow,
.tv-case-detail .case-arrow {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 24px;
  height: 24px;
  background-color: #1245f6;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  transition: all 0.3s ease;
}

.tv-cases .case-card:hover .case-arrow,
.tv-case-detail .case-card:hover .case-arrow {
  background-color: #0044a3;
  transform: translateX(3px);
}

/* Pagination Styling */
.tv-cases .cases-pagination .page-nav,
.tv-cases .cases-pagination .page-num {
  width: 40px;
  height: 40px;
  border: 1px solid #00033d;
  color: #00033d;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
  background-color: transparent;
}

.tv-cases .cases-pagination .page-nav {
  font-size: 0.8rem;
}

.tv-cases .cases-pagination .page-num.current {
  background-color: #00033d;
  color: #fff;
}

.tv-cases .cases-pagination a.page-num:hover,
.tv-cases .cases-pagination a.page-nav:hover {
  background-color: rgba(0, 3, 61, 0.05);
}

.tv-cases .cases-pagination .page-dots {
  font-weight: 700;
  color: #00033d;
  padding: 0 0.5rem;
}

.tv-cases .cases-pagination .disabled {
  opacity: 0.3;
  pointer-events: none;
}

@media (max-width: 991.98px) {
  .tv-cases .cases-hero {
    padding: 3rem 0 2rem;
  }
}
