:root {
  --main-color: #1EAE8F;
  --secondry-color: #122237;
  --case-text: #4d5a68;
  --case-light: #f4fbf9;
  --case-border: rgba(18, 34, 55, 0.10);
  --case-shadow: 0 22px 60px rgba(18, 34, 55, 0.10);
}

.immwit-case-study-page {
  font-family: inherit;
  color: var(--secondry-color);
  overflow: hidden;
  background: #ffffff;
}

.immwit-case-study-page img {
  max-width: 100%;
  height: auto;
  display: block;
}

.case-hero-section {
  position: relative;
  padding: 160px 0 75px;
  background:
    radial-gradient(circle at 12% 18%, rgba(30, 174, 143, 0.16), transparent 32%),
    linear-gradient(135deg, #f5fffc 0%, #ffffff 48%, #eef8f6 100%);
	border-bottom: 1px solid #c0f0e5;
}

.case-hero-section:before {
  content: "";
  position: absolute;
  top: 72px;
  right: -130px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: rgba(30, 174, 143, 0.12);
  filter: blur(4px);
}

.case-hero-row {
  position: relative;
  z-index: 2;
}

.case-eyebrow,
.case-section-head span,
.case-strategy-panel span,
.case-proof-box span,
.case-side-card span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(30, 174, 143, 0.10);
  color: var(--main-color);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.case-hero-content h1 {
  margin: 0 0 22px;
  color: var(--secondry-color);
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05;
}

.case-hero-content p,
.case-content-card p,
.case-text-block p,
.case-mini-card p,
.case-challenge-card p,
.case-strategy-panel p,
.case-timeline-item p,
.case-section-head p,
.case-result-card p {
  margin: 0 0 18px;
}

.case-hero-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 32px;
}

.case-hero-meta div {
  padding: 18px 16px;
  border: 1px solid var(--case-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 34px rgba(18, 34, 55, 0.06);
  backdrop-filter: blur(10px);
}

.case-hero-meta span {
  display: block;
  margin-bottom: 5px;
  color: var(--case-text);
  font-size: 13px;
  font-weight: 600;
}

.case-hero-meta strong {
  color: var(--secondry-color);
  font-size: 15px;
  font-weight: 800;
}

.case-hero-image {
  position: relative;
  padding: 14px;
  border-radius: 34px;
  background: #ffffff;
  box-shadow: var(--case-shadow);
}

.case-hero-image:before {
  content: "";
  position: absolute;
  inset: -16px;
  z-index: -1;
  border-radius: 42px;
  background: linear-gradient(135deg, rgba(30, 174, 143, 0.30), rgba(18, 34, 55, 0.08));
  transform: rotate(-2deg);
}

.case-hero-image img {
  width: 100%;
  border-radius: 24px;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.case-intro-section,
.case-problem-section,
.case-barrier-section,
.case-challenges-section,
.case-strategy-section,
.case-stats-section {
  padding: 60px 0;
}

.case-intro-section {
  background: #ffffff;
}

.case-content-card,
.case-mini-card,
.case-challenge-card,
.case-proof-box {
  border: 1px solid var(--case-border);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(18, 34, 55, 0.07);
}

.case-content-card {
  padding: 34px;
}

.case-content-card p:last-child,
.case-text-block p:last-child,
.case-mini-card p:last-child,
.case-challenge-card p:last-child,
.case-strategy-panel p:last-child,
.case-section-head p:last-child,
.case-result-card p:last-child {
  margin-bottom: 0;
}

.case-side-card {
  height: 100%;
  padding: 30px;
  border-radius: 26px;
  background: var(--secondry-color);
  box-shadow: var(--case-shadow);
}

.case-side-card span {
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
}

.case-side-card ul,
.case-list-card ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.case-side-card li {
  position: relative;
 padding: 0px 0 12px 28px;
}

.case-side-card li:last-child {
  border-bottom: 0;
}

.case-side-card li:before,
.case-list-card li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--main-color);
}

.case-section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.case-section-head.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.case-section-head h2,
.case-strategy-panel h2,
.case-proof-box h2 {
  margin: 0;
 font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
  padding-top:0px;
}

.case-section-head p {
  margin-top: 18px;
}

.case-text-block {
  padding-right: 28px;
}


.case-list-card h3 {
  margin: 0 0 20px;
  color: var(--secondry-color);
  font-size: 22px;
  line-height: 1.35;
  font-weight: 800;
}

.case-list-card li {
  position: relative;
  padding: 0px 0 12px 28px;
}

.case-list-card li:last-child {
  border-bottom: 0;
}

.case-barrier-section {
  background: linear-gradient(180deg, #f7fbfa 0%, #ffffff 100%);
}

.sticky-head {
  position: sticky;
  top: 110px;
}

.case-stack {
  display: grid;
  gap: 18px;
}

.case-mini-card {
  position: relative;
  padding: 26px 28px 26px 34px;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.case-mini-card:before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  bottom: 22px;
  width: 5px;
  border-radius: 0 20px 20px 0;
  background: var(--main-color);
}

.case-mini-card:hover,
.case-challenge-card:hover,
.case-result-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--case-shadow);
  border-color: rgba(30, 174, 143, 0.28);
}

.case-challenges-section {
  background: #ffffff;
}

.case-challenge-card {
  height: 100%;
  padding: 30px;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.case-challenge-card strong {
  display: block;
  margin-bottom: 15px;
  color: var(--main-color);
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.case-strategy-section {
  position: relative;
  background: var(--case-light);
}

.case-strategy-panel {
  position: sticky;
  top: 110px;
  padding: 34px;
  border-radius: 30px;
  background: var(--secondry-color);
  box-shadow: var(--case-shadow);
}

.case-strategy-panel span {
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
}

.case-strategy-panel h2,
.case-strategy-panel p {
  color: #ffffff;
}

.case-strategy-panel p {
  color: rgba(255, 255, 255, 0.78);
  margin-top: 18px;
}

.case-timeline {
  position: relative;
  display: grid;
  gap: 18px;
}

.case-timeline:before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 30px;
  width: 2px;
  background: rgba(30, 174, 143, 0.22);
}

.case-timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--case-border);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(18, 34, 55, 0.06);
}

.case-timeline-item span {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: var(--main-color);
  color: #ffffff;
  font-weight: 900;
}

.case-results-section {
  position: relative;
  padding: 90px 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(30, 174, 143, 0.22), transparent 30%),
    linear-gradient(135deg, var(--secondry-color) 0%, #172f4a 100%);
}

.case-section-head.light h2,
.case-section-head.light p {
  color: #ffffff;
}

.case-section-head.light p {
  color: rgba(255, 255, 255, 0.78);
}

.case-results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 42px;
}

.case-result-card {
  padding: 32px 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.08);
  text-align: center;
  backdrop-filter: blur(10px);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.case-result-card h3 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.case-result-card p {
  color: rgba(255, 255, 255, 0.82);
}

.case-result-card strong {
  color: rgba(255, 255, 255, 0.92);
}


.case-proof-box {
  padding: 34px;
  background: linear-gradient(145deg, #ffffff, #f6fffc);
}

.reveal-up {
  opacity: 0;
  transform: translateY(24px);
  animation: caseRevealUp 0.75s ease forwards;
}

.delay-1 {
  animation-delay: 0.15s;
}

.delay-2 {
  animation-delay: 0.3s;
}

@keyframes caseRevealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-up {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .case-mini-card,
  .case-challenge-card,
  .case-result-card {
    transition: none;
  }
}

@media (max-width: 991px) {
  .case-hero-section {
    padding: 70px 0 60px;
  }

  .case-hero-image {
    margin-top: 34px;
  }

  .case-intro-section,
  .case-problem-section,
  .case-barrier-section,
  .case-challenges-section,
  .case-strategy-section,
  .case-stats-section {
    padding: 60px 0;
  }

  .case-text-block {
    padding-right: 0;
    margin-bottom: 28px;
  }

  .sticky-head,
  .case-strategy-panel {
    position: static;
    margin-bottom: 28px;
  }

  .case-results-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .case-challenge-card {
    margin-bottom: 18px;
  }
}

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

  .case-content-card,
  .case-side-card,
  .case-list-card,
  .case-mini-card,
  .case-challenge-card,
  .case-strategy-panel,
  .case-proof-box {
    border-radius: 22px;
    padding: 24px;
  }

  .case-results-grid {
    grid-template-columns: 1fr;
  }

  .case-timeline:before {
    display: none;
  }

  .case-timeline-item {
    grid-template-columns: 1fr;
  }

  .case-timeline-item span {
    width: 52px;
    height: 52px;
  }

  .case-hero-content h1 {
    font-size: 36px;
  }

  .case-section-head h2,
  .case-strategy-panel h2,
  .case-proof-box h2 {
    font-size: 30px;
  }
}



/* New style */



.case-deliverables h3 {
  margin: 0 0 18px;
  color: #122237;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 800;
}

.case-deliverables ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.case-deliverables li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(30, 174, 143, 0.10);
  color: #122237;
  border: 1px solid rgba(30, 174, 143, 0.22);
  font-size: 14px;
  line-height: 1.25;
  font-weight: 500;
  transition: all 0.25s ease;
}



@media (max-width: 767px) {


  .case-deliverables ul {
    gap: 8px;
  }

  .case-deliverables li {
    padding: 9px 14px;
    font-size: 13px;
  }
}


/* Problem Section With Right Quote */

.case-problem-section{
	background: #f5f4f0;
}

/* Challenges + Strategy With Vertical CTA */
/* Challenges + Strategy With Vertical CTA */

.case-action-section {
  padding: 80px 0;
  background: #f6fffd;
}

.case-action-content {
  padding: 38px 0;
}

.case-action-section .case-section-head {
  margin-bottom: 22px;
}

.case-action-section .case-section-head h2 {
  margin-bottom: 0;
}

.case-strategy-head {
  margin-top: 42px;
}

.case-action-copy p {
  padding-bottom: 12px;
}

.case-action-copy p:last-child {
  padding-bottom: 0;
}

.case-vertical-cta {
  position: sticky;
  top: 110px;
  padding: 34px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 88% 12%, rgba(30, 174, 143, 0.22), transparent 34%),
    linear-gradient(145deg, var(--secondry-color) 0%, #172f4a 100%);
  box-shadow: 0 22px 60px rgba(18, 34, 55, 0.16);
}

.case-vertical-cta span {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.case-vertical-cta h2 {
  margin: 0 0 18px;
  color: #ffffff;
}

.case-vertical-cta p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.78);
}

.case-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 15px 22px;
  border-radius: 999px;
  background: var(--main-color);
  color: #ffffff;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.case-cta-btn:hover {
  color: #ffffff;
  background: #19a081;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(30, 174, 143, 0.25);
}

@media (max-width: 991px) {
  .case-action-section {
    padding: 60px 0;
  }

  .case-vertical-cta {
    position: static;
    margin-top: 28px;
  }
}

@media (max-width: 767px) {
  .case-action-content {
    padding: 24px 0;
  }

  .case-vertical-cta {
    padding: 24px;
    border-radius: 22px;
  }

  .case-strategy-head {
    margin-top: 34px;
  }
}


.case-cta-image {
  margin: -12px -12px 24px;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.case-cta-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

@media (max-width: 767px) {
  .case-cta-image {
    margin: -6px -6px 22px;
    border-radius: 18px;
  }
}


/* Stats Center Section */



.case-stats-center {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.case-stats-center .case-section-head {
  margin-bottom: 24px;
}

.case-stats-content {
  max-width: 880px;
  margin: 0 auto;
  padding: 0;
  text-align: center;
}

.case-stats-content p:last-child {
  margin-bottom: 0;
}


@media (max-width: 767px) {
  .case-stats-content {
    padding: 24px;
    border-radius: 22px;
  }
}


/* Keep case-list-card class and make it fit barrier content */

.case-barrier-content .case-list-card {
  margin: 24px 0;
}

.case-barrier-content .case-list-card ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.case-barrier-content .case-list-card li {
  position: relative;
  padding: 0 0 12px 28px;
}

.case-barrier-content .case-list-card li:last-child {
  padding-bottom: 0;
}


/* Closing note should not look same as previous stats section */

.case-closing-note-section {
  padding-top: 20px;
  background: #ffffff;
}

.case-closing-note-section .case-stats-center {
  max-width: 920px;
  padding: 44px 38px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 90% 10%, rgba(30, 174, 143, 0.14), transparent 34%),
    linear-gradient(135deg, #f6fffd 0%, #ffffff 70%);
  border: 1px solid rgba(30, 174, 143, 0.16);
}

.case-closing-note-section .case-section-head {
  margin-bottom: 18px;
}

.case-closing-note-content {
  max-width: 820px;
}

@media (max-width: 767px) {


  .case-closing-note-section .case-stats-center {
    padding: 28px 22px;
    border-radius: 24px;
  }
}


.related-portfolio-section {
  padding:60px 0;
  background: #F8F3EB;
}

.related-portfolio-head {
  max-width: 780px;
  margin: 0 0 42px;
}

.related-portfolio-head h2 {
  margin: 0;
  color: #122237;
}

.related-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
}

.related-portfolio-card {
  height: 100%;
  transition: all 0.3s;
}

.related-portfolio-card:hover {
  transform: translateY(-5px);
}

.related-portfolio-image {
  display: block;
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(18, 34, 55, 0.10);
  box-shadow: 0 18px 46px rgba(18, 34, 55, 0.08);
}

.related-portfolio-image img {
  width: 100%;
  height: 240px;
  display: block;
  object-fit: cover;
  border-radius: 24px;
  transition: transform 0.35s ease;
}



.related-portfolio-content {
  padding-top: 22px;
}

.related-portfolio-content h3 {
  margin: 0;
  font-size: 20px;
  padding-top: 0;
}

.related-portfolio-content h3 a {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  color: #122237;
  text-decoration: none;
  transition: color 0.25s ease;
}

.related-portfolio-content h3 a:after {
  content: "↗";
  position: relative;
  top: 1px;
  width: 26px;
  height: 26px;
  min-width: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(30, 174, 143, 0.14);
  color: #1EAE8F;
  font-size: 15px;
  line-height: 1;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.related-portfolio-content h3 a:hover {
  color: #1EAE8F;
}

.related-portfolio-content h3 a:hover:after {
  background: #1EAE8F;
  color: #ffffff;
  transform: translate(2px, -2px);
}

@media (max-width: 991px) {
  .related-portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }

  .related-portfolio-image img {
    height: 230px;
  }
}

@media (max-width: 767px) {
  .related-portfolio-section {
    padding: 60px 0;
  }

  .related-portfolio-grid {
    grid-template-columns: 1fr;
  }

  .related-portfolio-image img {
    height: 220px;
  }
}