/* ========== CASES SECTION ========== */

.cases {
  padding: 100px 20px 0px;
  background: #FAFAFA;
}

.cases-header {
  max-width: 1280px;
  margin: 0 auto 60px;
}

.cases-tag {
  display: inline-block;
  color: #188A50;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 16px;
  border: 1px solid #28E485;
}

.cases-title {
  font-size: 48px;
  font-weight: 700;
  font-family: 'Red Hat Display', sans-serif;
  line-height: 58px;
  color: #333333;
  max-width: 500px;
  margin-top: 8px;
}

.cases-title em {
  font-style: italic;
  font-family: 'Playfair Display', serif;
}

.cases-stack {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
}
.cases,
.cases-stack,
.site,
.site-content,
.content-area,
.inside-article,
.entry-content,
main,
section {
  overflow: visible !important;
}

.case-card {
  position: sticky;
  top: calc(var(--i, 0) * 40px);
  margin-bottom: 80px;
  border-radius: 20px;
  overflow: hidden;
}

.case-blue { background: #C6CFFF; }
.case-red { background: #FFB8B0; }
.case-yellow { background: #FBE8A4; }

.case-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 40px;
}

.case-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
   align-items: start !important;
}

.case-info-header {
    display: flex;
  flex-direction: column;
  gap: 15px;
}
.case-info-header h3 {
  color: #0A0A0A;
  font-family: 'Red Hat Display', sans-serif;
  font-size: 32px;
  line-height: 38px;
  font-weight: 700;
}
.case-info-header p {
  color: #525252;
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  
}
.case-info-header .category {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  line-height: 24px;
  font-weight: 700;
  font-style: italic;
  color: #0A0A0A;
}

.stats {
  display: flex;
  gap: 40px;
  padding: 10px 0;
}
.stats_project,
.stats_retention {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stats strong {
  color: #0A0A0A;
  font-family: 'Red Hat Display', sans-serif;
  font-size: 24px;
  line-height: 28px;
  font-weight: 700;  
  display: block;
}

.stats span {
  color: #525252;
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
}

.case-blue .client {
  background-color: #9AABFF;
}
.case-red .client {
  background-color: #FE8F83;
}

.case-yellow .client {
  background-color: #F7BB48;
}
.client {
  border-radius: 8px;
  padding: 8px 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
}
.client .content {
  display: flex;
  flex-direction: column;
}
.client strong {
  color: #0A0A0A;
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;  
}

.client span {
  color: #525252;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  line-height: 24px;
  font-weight: 400;
}
.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.case-info .btn {
  color: #0A0A0A;
  align-self: start;
  padding: 0 !important;
}

.case-info .btn svg path {
  fill: #0A0A0A;
}
@media (max-width: 768px) {
  .cases { padding: 60px 16px 20px;  }
  .case-card { position: relative; top: 0; }
  .case-inner { grid-template-columns: 1fr; gap: 24px; padding:20px; }
  .stats { padding: 0;}
  .client { width: 100%;}
  .case-media img { width: 100%;}
  .case-card { margin-bottom: 40px;}
}