.case-studies-archive {
  background: #fff;
}

.case-studies-archive h1 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 60px;
}

.cs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 60px 40px;
  justify-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.case-item {
  text-align: center;
  width: 100%;
  max-width: 360px;
}

.case-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 360 / 500;
  clip-path: polygon(40% 0%, 100% 0%, 100% 100%, 90% 100%, 0% 100%, 0% 25%);
  position: relative;
  overflow: hidden;
}

.case-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #274AC0 1%, rgba(39, 74, 192, 0) 101.22%);
  z-index: 2;
  pointer-events: none;
  opacity: 1;
  transition: opacity .35s ease;
}

.case-thumb:hover::after {
  opacity: .45;
}

.case-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.case-thumb:hover img {
  transform: scale(1.05);
}

.case-meta {
  margin-bottom: 10px;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

.case-tag {
  display: inline-block;
  background: #000;
  border: 1px solid #000;
  color: #fff;
  font-size: 13px;
  padding: 3px 10px;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.case-tag:hover {
  background: #fff;
  border-color: #274ac0;
  color: #274ac0;
}

.case-title a {
  font-weight: 600;
  font-size: x-large;
  transition: color 0.3s ease;
  color: #274ac0;
}

.case-title a:hover {
  color: #000;
}

.case-pagination {
  margin-top: 60px;
  text-align: center;
}

.case-pagination a,
.case-pagination span {
  display: inline-block;
  margin: 0 6px;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  background: #eee;
  color: #333;
  transition: background 0.3s, color 0.3s;
}

.case-pagination a:hover {
  background: #274ac0;
  color: #fff;
}

.case-pagination .current {
  background: #274ac0;
  color: #fff;
}

/******************** DROPDOWN ********************/

.case-chips-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 40px;
}

.case-chips-filter .chip {
    padding: 8px 18px;
    background: #fff;
    border: 1px solid #274ac0;
    color: #284ac0;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s ease;
    user-select: none;
}

.case-chips-filter .chip:hover {
    background: #274ac0;
    color: #fff;
}

.case-chips-filter .chip.active {
    background: #284ac0;
    color: #fff;
}

/******************** CASE STUDIES SINGLE ********************/

/* =========================
   CASE STUDY HERO
========================= */

.cs-hero {
  background: #274ac0;
  color: #fff;
  padding: 96px 0;
  margin-bottom: 3rem;
}

.cs-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: start;
}

/* =========================
   LEFT
========================= */

.cs-hero-title {
  color: #fff;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.05;
  margin-bottom: 24px;
}

.cs-hero-subtitle {
  color: #fff;
  font-size: 16px;
  opacity: 0.85;
  margin-bottom: 24px;
}

.cs-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.cs-hero-tags span {
  border: 1px solid rgba(255,255,255,.35);
  padding: 6px 14px;
  font-size: 13px;
}

/* =========================
   RIGHT
========================= */

.cs-hero-description {
  color: #fff;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 32px;
  opacity: 0.9;
}

/* =========================
   METRICS GRID (2x2)
========================= */

.cs-hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.cs-metric {
  background: rgba(255,255,255,0.12);
  padding: 24px;
  min-height: 140px;

  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cs-metric strong {
  font-size: 28px;
  line-height: 1.1;
  margin-bottom: 6px;
}

.cs-metric span {
  font-size: 14px;
  opacity: 0.85;
}

section.cs-hero .cs-hero-left .white-section-button:hover {
  border: 2px solid #fff !important;
  background: #fff;
  color: #000 !important;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 992px) {
  .cs-hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .cs-hero-metrics {
    grid-template-columns: 1fr;
  }
}

.single-case-study p,
.has-medium-font-size {
    line-height: inherit;
}
