/* ========== CASE STUDIES SECTION ========== */
.case-studies-section-wrapper {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0;
  text-align: center;
}

.case-studies-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0px;
  gap: 56px;
  width: 800px;
  max-width: 100%;
  margin: 0 auto 204px auto;
}

.case-studies-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0px;
  gap: 16px;
  width: 800px;
  height: 48px;
  max-width: 100%;
}

.case-studies-title {
  width: 800px;
  height: 48px;
  font-family: 'Inria Serif';
  font-style: italic;
  font-weight: 700;
  font-size: 40px;
  line-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #1A1A1A;
  color: color(display-p3 0.102 0.102 0.102);
  margin: 0 auto;
  max-width: 100%;
}

.case-studies-all {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0px;
  gap: 16px;
  width: 800px;
  max-width: 100%;
}

.case-studies-blocks {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  padding: 0px;
  gap: 16px;
  width: 800px;
  max-width: 100%;
}

.case-study-block {
  display: flex !important;
  flex-direction: column !important;
  align-items: center;
  text-align: center;
  padding: 16px 32px 48px;
  gap: 16px;
  width: 800px;
  height: auto;
  min-height: auto;
  background: #ffffff;
  border-radius: 56px;
  flex: none;
  align-self: stretch;
  flex-grow: 0;
  transition: all 0.3s ease;
  box-shadow: 0px 5px 32px rgba(39, 39, 39, 0.02);
}
.case-study-img,
.case-study-title,
.case-study-description {
  order: unset !important;
}

.case-study-block {
  transition: transform 0.3s ease;
}

.case-study-block:hover {
  text-decoration: none;
  transform: translateY(-8px);
}

.case-study-block,
.case-study-block:hover {
  opacity: 1 !important;
  color: #1A1A1A !important;
}

.case-study-description:hover {
  color: #505050 !important;
}

.case-study-block:hover .case-study-title {
  color: inherit !important;
}

.case-study-block:hover .case-study-img img {
  filter: none;
}

.case-study-img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  overflow: hidden;
  margin-top: 16px;
  flex: none;
  order: 1;
  align-self: center;
  flex-grow: 0;
}

.case-study-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

.case-study-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 480px;
  max-width: 100%;
  height: auto;
  margin-left: auto;
  margin-right: auto;
  padding: 0;
  flex: 1;
}

.case-study-title {
  font-family: 'Inria Serif';
  font-style: italic;
  font-weight: 700;
  font-size: 24px;
  line-height: 116%;
  display: block;
  text-align: center;
  letter-spacing: -0.01em;
  color: #1A1A1A;
  color: color(display-p3 0.102 0.102 0.102);
  margin: 0 auto;
  width: 100%;
  height: auto;
}

.case-study-description {
  width: 420px;
  max-width: 100%;
  height: auto;

  font-family: 'Inter', sans-serif !important;
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 132%;
  letter-spacing: 0.01em;

  display: flex;
  align-items: center;
  text-align: center;

  color: #505050;
  color: color(display-p3 0.471 0.471 0.471);

  flex: none;
  order: 1;
  flex-grow: 0;
}

/* ========== RESPONSIVE CASE STUDIES ========== */
@media (max-width: 840px) {
  .case-studies-section-wrapper {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    margin: 0 auto;
    padding: 0;
  }
  .case-studies-section {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    gap: 32px;
  }
  .case-studies-header {
    width: 100%;
    height: auto;
  }
  .case-studies-title {
    width: 100%;
    height: auto;
    font-size: 32px;
    line-height: 40px;
  }
  .case-studies-all {
    width: 100%;
    max-width: 100%;
    height: auto;
    gap: 16px;
  }
  .case-studies-blocks {
    width: 100%;
    max-width: 100%;
    height: auto;
  }
  .case-study-block {
    width: 100%;
    height: auto;
    padding: 24px 24px 32px;
    min-height: auto;
  }
  .case-study-img {
    width: 100%;
    height: auto;
  }
  .case-study-img img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }
  .case-study-content {
    width: 100%;
    height: auto;
    flex: 1;
  }
  .case-study-title {
    width: 100%;
    height: auto;
  }
  .case-study-description {
    width: 100%;
    height: auto;
  }
  }
@media (max-width: 600px) and (min-width: 481px) {
  .case-studies-section-wrapper {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    margin: 0 auto;
    padding: 0;
  }
  .case-studies-section {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    gap: 28px;
  }
  .case-studies-header {
    width: 100%;
    height: auto;
  }
  .case-studies-title {
    width: 100%;
    height: auto;
    font-size: 28px;
    line-height: 34px;
  }
  .case-studies-all {
    width: 100%;
    max-width: 100%;
    height: auto;
    gap: 14px;
  }
  .case-studies-blocks {
    width: 100%;
    max-width: 100%;
    height: auto;
  }
  .case-study-block {
    width: 100%;
    height: auto;
    padding: 22px 22px 28px;
    border-radius: 40px;
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .case-study-img {
    width: 100%;
    height: auto;
    margin: 0;
  }
  .case-study-img img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 20px;
  }
  .case-study-content {
    width: 100%;
    height: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .case-study-title {
    width: 100%;
    height: auto;
    font-size: 20px;
    line-height: 26px;
  }
  .case-study-description {
    width: 100%;
    height: auto;
    font-size: 16px;
    line-height: 22px;
    padding: 0;
    text-align: center;
  }
}
@media (max-width: 480px) {
  .case-studies-section-wrapper {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    margin: 0 auto;
    padding: 0;
  }
  .case-studies-section {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    gap: 24px;
  }
  .case-studies-header {
    width: 100%;
    height: auto;
  }
  .case-studies-title {
    width: 100%;
    height: auto;
    font-size: 24px;
    line-height: 29px;
  }
  .case-studies-all {
    width: 100%;
    max-width: 100%;
    height: auto;
    gap: 12px;
  }
  .case-studies-blocks {
    width: 100%;
    max-width: 100%;
    height: auto;
  }
  .case-study-block {
    width: 100%;
    height: auto;
    padding: 20px 20px 24px;
    border-radius: 32px;
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .case-study-img {
    width: 100%;
    height: auto;
    margin: 0;
  }
  .case-study-img img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 16px;
  }
  .case-study-content {
    width: 100%;
    height: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .case-study-title {
    width: 100%;
    height: auto;
    font-size: 18px;
    line-height: 24px;
  }
  .case-study-description {
    width: 100%;
    height: auto;
    font-size: 14px;
    line-height: 20px;
    padding: 0;
    text-align: center;
  }
} 