.ai-hero-outer {
  border-radius: 0px;
  background: #010e1b;
  border-radius: 0px 0px 70px 70px;
  position: relative;
  z-index: 1;
  padding: 10rem clamp(2rem, 6vw, 6rem) 2.75rem clamp(2rem, 6vw, 6rem);
  overflow: hidden;
}
.hero-overflow {
  overflow: visible;
}

.ai-hero {
  margin: 0 auto;
  max-width: min(90rem, 100% - 1rem);
  align-items: center;
  font-family: "Lexend Deca", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  padding: 0;
  position: relative;
  display: flex;
}

.ai-hero-container {
  display: flex;
  width: 100%;
  justify-content: space-between;
}

.ai-hero-left {
  width: 48%;
  /* max-width: 880px; */
  margin: 0;
  position: relative;
  padding: 24px 55px 0 0;
}

.ai-hero-left p {
  font-size: 1rem;
  color: #ffff;
}

.ai-hero-left a.link_ref {
  margin: 0 auto;
  display: flex;
  width: max-content;
}

.ai-hero-left .cta-button.nav-link-connect {
  margin: 0 auto;
  background-color: #fff;
  border: 0;
  color: #010e1b;
  font-weight: 400;
  padding: 5px 25px;
}

.health-hero-content {
  margin: 0 auto;
  padding-bottom: 30px;
  padding-top: 30px;
}

.ai-hero-heading {
  font-size: 3rem;
  color: #fff;
  font-weight: 400;
  letter-spacing: -0.9px;
  text-align: left;
  position: relative;
  display: table;
  padding: 0;
  margin: 0;
}

.ai-hero-right {
  position: relative;
  width: 50%;
  display: flex;
  gap: 10px;
}
.cliencase-hero-conainer {
  position: relative;
  width: 50%;
  border-radius: 16px;
  overflow: hidden;
}

.cliencase-hero-conainer img {
  width: 100%;
}
.ellipse-hero {
    position: absolute;
     right: -6%;
    bottom: -25%;
    z-index: -1;
    width: 350px;
}
.search-container {
  position: relative;
  flex: 1;
  /* min-width: 428px; */
  margin: 0;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.7);
  pointer-events: none;
  z-index: 1;
}

.search-input {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 3rem;
  border: none;
  border-radius: 50px;
  background: rgba(214, 224, 248, 0.17);
  backdrop-filter: blur(10px);
  color: white;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
  border: 0;
  height: 52px;
}

.filter-container {
  position: relative;
  display: inline-block;
  align-self: center;
  flex-shrink: 0;
  min-width: 216px;
}

.filter-button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1rem 0.875rem 1.5rem;
  background: rgba(214, 224, 248, 0.17);
  backdrop-filter: blur(10px);
  border: 0;
  border-radius: 50px;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
  position: relative;
  justify-content: space-between;
}

#dropdown {
  display: none;
  position: absolute;
  background: white;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-top: 6px;
  z-index: 1000;
  min-width: 160px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.dropdown-content {
  border-radius: 6px;
  overflow: hidden;
  padding: 0;
}

.dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  padding: 12px;
  cursor: pointer;
  text-align: left;
}

.success-card-outer {
  background: white;
  padding: 30px clamp(2rem, 6vw, 6rem);
}

.success-card-container {
  display: flex;
  flex-direction: column;
  max-width: min(90rem, 100% - 1rem);
  margin: 0 auto;
}

.success-cards {
  display: grid;
  justify-content: center;
  gap: 20px;
  grid-template-columns: repeat(3, 1fr);
}

.success-card {
  border-radius: 12px;
  overflow: hidden;
  /* transition: transform 0.3s ease, box-shadow 0.3s ease; */
  position: relative;
  width: 100%;
}

.success-card-logo {
  width: 36px;
  height: 36px;
  background-color: #1e90ff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
}

.success-card-location {
  font-size: 0.8rem;
  color: #b0b0b0;
}

.success-card-content {
  padding: 0px;
  /* background-image: url(../../whiteForest/images/ai-healthcare/success-img.png); */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100%;
  position: relative;
}

.success-card-content img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.success-card-content:hover img {
  transform: scale(1.2);
}

.success-card-overlay {
  background: linear-gradient(180deg, rgba(23, 39, 56, 0) 0%, #172738 72.6%);
  padding: 20px;
  position: absolute;
  min-height: 200px;
  bottom: 0;
  align-content: end;
  width: 100%;
}

.success-card-label {
  width: 100px;
  color: #808080;
}

.success-card-value {
  flex: 1;
}

.success-card-title-wrapper {
  display: flex;
  align-items: center;
  justify-content: left;
}

.success-card-title {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 5px;
  color: #fff;
}

.success-card-arrow {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-left: 10px;
}

.success-card-description {
  line-height: 20px;
  color: #fff;
  margin-bottom: 0;
  font-size: 0.875rem;
  font-weight: 300;
}

.banner-explore {
  margin: 0 auto;
}

/* Casestudy detail page style start here */
.case-study-outer {
  /* position: relative; */
}

.ai-casedetail-container {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  justify-content: center;
  padding: 6.25rem clamp(2rem, 6vw, 6rem);
  position: relative;
  overflow: hidden;
}
.ellipse-bottom {
  position: absolute;
  right: -10%;
  bottom: -10%;
  z-index: 0;
  width: 350px;
}

.timeline-circle {
  position: absolute;
  top: -20%;
  left: -10%;
  z-index: -1;
}

.ai-casedetail-heading {
  font-size: 3rem;
  color: #fff;
  font-weight: 400;
  letter-spacing: -0.9px;
  padding: 0 0 15px 0;
  margin: 0;
}

.casedetail-hero {
  position: relative;
  width: 100%;
  text-align: center;
}

.casedetail-hero img {
  border-radius: 14px;
}

.casetext-container {
  position: relative;
  max-width: 500px;
  line-height: 1.5;
  margin: 0 auto;
}

/* Clientcase testimonail style start here */

.cliencase-container {
  display: flex;
  margin: 0 auto;
  justify-content: center;
  width: 100%;
  max-width: min(90rem, 100% - 1rem);

  /* ✅ container shouldn't trigger scroll */
  /* height: 100vh; */
  height: -moz-calc(100vh- (200px));
    height: -webkit-calc(100vh - (200px));
    height: calc(100vh - (200px));
  overflow: hidden;
}

/* Left Timeline (only scrollable part) */
.cliencase-timeline {
  width: 35%;
  padding: 60px 0 20px;
  display: flex;
  flex-direction: column;
  position: sticky;
  justify-content: center;
  /* gap: 40px; */

  /* ✅ only this part scrolls */
  /* overflow-y: auto;   
  height: 100vh;      
  scrollbar-width: thin; */
}

/* Scrollbar styling for webkit */
.cliencase-timeline::-webkit-scrollbar {
  width: 0px;
  scrollbar-width: none;
}
.cliencase-timeline::-webkit-scrollbar-thumb {
  background: rgba(175, 175, 175, 0.2);
  border-radius: 4px;
}

.cliencase-step {
  position: relative;
  font-size: 1rem;
  color: #7f868c;
  transition: all 0.3s ease;
  cursor: pointer;
  font-family: "Lexend Deca";
  line-height: normal;
  font-weight: 400;
  padding: 15px 30px;
  /* min-height: 95px; */
}

.cliencase-step::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #D0DBF3;
  transition: all 0.3s ease;
  z-index: 1;
}

.cliencase-step::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 65%;
  width: 2px;
  height: 100%;
  border-left: 2px dashed #d0dbf3;
  z-index: 0;
}

.cliencase-step:last-child::after {
  display: none;
}

.cliencase-step.active {
  font-size: 2.85rem;
  color: #010e1b;
  font-family: "Lexend Deca";
  font-style: normal;
  font-weight: 400;
  line-height: 50px;
}

.cliencase-step.active::after {
  top: 55px;
  height: 70%;
}

.cliencase-step.active::before {
  background: #fff;
  transform: translateY(260%) scale(1.4);
  top: 0px;
   border: 2px solid #2286e8;
}

/* Right Content (sticky, not scrollable) */
.cliencase-content {
  width: 65%;
  justify-content: center;
  align-items: center;
  top: 0;
  /* height: 100vh; */
  display: flex;

  /* ✅ no scroll here */
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(
    0deg,
    rgba(34, 134, 232, 0) 0%,
    rgba(34, 134, 232, 0.26) 47.12%,
    rgba(34, 134, 232, 0) 100%
  );
}

/* Sections overlay each other */
.cliencase-section {
  /* position: absolute; */
  inset: 0; /* fill the content box */
  opacity: 0;
  transition: opacity 0.5s ease;
  display: flex;
  flex-direction: column;
  z-index: 5;
  padding: 55px;
  width: 100%;
  display: none;
  margin-top: 0%;
}

.cliencase-section svg {
  margin-bottom: 30px;
}

.cliencase-section p {
  color: #010e1b;
  font-family: "Lexend Deca";
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 30px;
  letter-spacing: -0.36px;
  margin: 0;
}

.cliencase-section.active {
  opacity: 1;
  position: relative;
  animation: fadeIn 0.6s ease forwards;
  display: block;
}

/* Fade animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Timeline List (inside a step if used) */
.clientcase-timeline-list {
  margin: 0 0 150px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-height: 420px;
  overflow-y: auto;
  scrollbar-width: none;
}

.clientcase-timeline-list li {
  border-radius: 8px;
  border: 2px solid rgba(34, 134, 232, 0.28);
  background: linear-gradient(311deg, #e7edf9 0.55%, #fff 94.64%);
  box-shadow: 0 4px 6px 0 rgba(0, 0, 0, 0.09);
  list-style: none;
  padding: 20px;
  font-weight: 400;
  font-size: 18px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeSlide 0.8s forwards;
  width: 100%;
}

.clientcase-timeline-list li p {
  color: #010e1b;
  font-family: "Lexend Deca";
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 27px;
  letter-spacing: -0.36px;
  margin: 0;
}

/* Tools list (if used inside section) */
.tools-list {
  margin: 0 0 100px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  padding: 0;
      max-height: 400px;
    overflow-y: auto;
    scrollbar-width: none;
}

.tools-list li {
  border-radius: 8px;
  border: 1px solid #87afd5;
  background: rgba(255, 255, 255, 0.25);
  display: flex;
  padding: 16px 24px;
  align-items: center;
  gap: 16px;
  align-self: stretch;
}
.tools-list li span {
  color: #000;
  font-family: "Lexend Deca";
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.tools {
  background: #fff;
  border-radius: 6px;
  padding: 4px;
  box-shadow: 0px 0px 0 2px rgba(0, 0, 0, 0.08);
  width: 44px;
  height: 44px;
  text-align: center;
  display: flex;
  justify-content: center;
}
/* Keyframes for fade + slide */
@keyframes fadeSlide {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animate each card with delay */
.clientcase-timeline-list li:nth-child(1) {
  animation-delay: 0.2s;
}
.clientcase-timeline-list li:nth-child(2) {
  animation-delay: 0.5s;
}
.clientcase-timeline-list li:nth-child(3) {
  animation-delay: 0.8s;
}
.clientcase-timeline-list li:nth-child(4) {
  animation-delay: 1.1s;
}
.clientcase-timeline-list li:nth-child(5) {
  animation-delay: 1.4s;
}
.clientcase-timeline-list li:nth-child(6) {
  animation-delay: 1.7s;
}
.clientcase-timeline-list li:nth-child(7) {
  animation-delay: 2s;
}
.clientcase-timeline-list li:nth-child(8) {
  animation-delay: 2.3s;
}

.pin-spacer {
  padding: 0 !important;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

.cliencase-section h2 {
  margin-bottom: 20px;
  font-size: 28px;
  color: #0d1b2a;
}

.cliencase-section p {
  line-height: 1.6;
  color: #333;
}

@media (max-width: 1600px) {
  .success-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1182px) {
  .search-container {
    min-width: unset;
  }
}

@media (max-width: 1024px) {
  .ai-hero-outer {
    padding: 10rem 16px 2.75rem 16px;
  }

  .success-card-outer {
    background: white;
    padding: 50px 16px;
  }

  .success-cards {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .ai-hero-container {
    flex-direction: column;
    gap: 5px !important;
    padding-left: 0;
    padding-right: 0;
  }

  .ai-hero-heading {
    text-align: left;
    padding-bottom: 30px;
  }

  .ai-hero-left {
    /* width: 100%; */
    text-align: center;
    padding: 0;
  }

  .ai-hero-right {
    justify-content: center;
  }
  .cliencase-container {
    flex-direction: column;
    flex-direction: column;
    justify-content: start;
    margin-top: 40px;
  }
  .cliencase-timeline {
    flex-direction: row;
    width: 100%;
  }
  .ai-casedetail-heading,
  .ai-hero-left p {
    text-align: left;
  }
  .ai-casedetail-container {
    padding: 30px 16px;
  }
  .cliencase-timeline {
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    white-space: nowrap;
    min-height: 100px;
    justify-content: flex-start;
  }
  .ai-hero {
    flex-direction: column;
  }
  .cliencase-hero-conainer {
    width: 100%;
  }
  .ai-hero-left {
    width: 100%;
  }
  .cliencase-content {
    width: 100%;
  }
  .cliencase-step.active {
    font-size: 1.25rem;
    line-height: normal;
    align-content: start;
  }
  .cliencase-step.active::before {
    top: 25%;
  }
  .cliencase-step {
    min-width: 275px;
    text-align: center;
    min-height: auto;
     min-height: 100px;
  }
  .cliencase-step::before {
    transform: translate(50%, -50%);
    left: 50%;
    top: 70%;
  }
  .cliencase-step::after {
    border-top: 2px dashed #d0dbf3;
    border-left: 0;
    width: 100%;
    height: 1px;
    left: -45%;
    top: 70%;
  }
  .cliencase-step:last-child::after {
  display: block;
}
  .cliencase-step.active::after {
      width: 100%;
    height: 1px;
    top: 70%;
  }
  .timeline-circle, .ellipse-bottom {
    display: none;
  }
    .cliencase-step:first-child::after {
  display: none;
}

}

@media (max-width: 991px) {
  .ai-hero-left {
    width: 100%;
  }
.ellipse-hero {
  display: none;
}
  .success-cards {
    grid-template-columns: repeat(1, 1fr) !important;
  }
     .cliencase-section {
      padding: 55px 15px;
      overflow-y: auto;
      scrollbar-width: none;
    }
       .cliencase-section p {
        margin-bottom: 30px;
       }
}

@media (max-width: 768px) {
  .ai-hero-left,
  .ai-hero-right {
    width: 100%;
    text-align: center;
  }

  .ai-hero-outer {
    border-radius: 0px 0px 50px 50px;
  }

  .ai-hero-right {
    flex-direction: column;
    gap: 10px;
  }

  .search-container {
    min-width: unset !important;
    width: 100%;
    max-width: unset !important;
  }

  .filter-container {
    width: 100%;
  }

  #dropdown {
    width: 100%;
  }

  .recruitment-container {
    margin: 10px;
    border-radius: 15px;
  }

  .recruitment-tab {
    padding: 15px 10px;
    font-size: 0.95rem;
    min-width: 120px;
  }

  .recruitment-tab-content {
    padding: 30px 20px;
  }

  .recruitment-content-header {
    flex-direction: column;
    gap: 20px;
  }

  .recruitment-image {
    width: 100%;
    height: 200px;
  }

  .recruitment-text h3 {
    font-size: 1.5rem;
  }

  .recruitment-text p {
    font-size: 1rem;
  }
  .cliencase-container {
    height: 100vh;
  }
}

@media (max-width: 520px)  {
  .tools-list {
          grid-template-columns: 1fr;
    }
 
}

@media (max-width: 480px) {
  .recruitment-tab {
    padding: 12px 8px;
    font-size: 0.9rem;
    min-width: 100px;
  }

  .recruitment-tab-content {
    padding: 20px 15px;
  }

  .recruitment-text h3 {
    font-size: 1.3rem;
  }

  .recruitment-text p {
    font-size: 0.95rem;
  }
  .ai-casedetail-heading {
    font-size: 2.25rem; 
  }
 
}

@media (max-width: 420px) {
  .success-card-container {
    max-width: unset;
  }

  .success-card-title {
    font-size: 1.25rem;
  }

  .success-card-description br {
    display: none;
  }
  .clientcase-timeline-list {
        max-height: 350px;
  }
}

@media (resolution: 1.5dppx) {
 .ai-casedetail-heading {
    font-size: 2rem;
 }
 .ai-hero-left p {
    font-size: 0.85rem; 
 }
  .cliencase-section p {
    font-size: 14px;
  }
  .cliencase-step.active {
    font-size: 2rem;
  }
  .cliencase-section svg {
    width: 45px;
    margin-bottom: 0;
  }
  .cliencase-step {
    font-size: 14px;
    min-height: 50px;
  } 
  .cliencase-container {
        height: calc(100vh - (120px));
  }
  .cliencase-step.active::before {
        top: 0px;
  }
  .cliencase-step::after {
     top: 62%;
  }
  .cliencase-step.active::after {
    top: 48px;
}
  .ai-casedetail-container {
    padding-top: 70px !important;
    padding-bottom: 30px;
  }
  .clientcase-timeline-list {
    margin-bottom: 105px;
    max-height: 380px;
  }
  .clientcase-timeline-list li {
    font-size: 0.85rem;
    padding: 15px;
  }
  .timeline-circle {
    position: absolute;
    top: -6%;
    left: -10%;
    z-index: -1;
    width: 340px;
}
.ellipse-bottom {
    position: absolute;
    width: 280px;
    right: -10%;
    bottom: -30%;
    z-index: -2;
}
.pin-spacer {
  padding: 0 !important;
}
.ai-casedetail-container {
  max-height: unset !important;
  height: 100% !important;
  position: relative;
}
.tools {
    width: 35px;
    height: 35px;
}
.tools-list li span {
  font-size: 16px;
}
.tools-list li {
  padding: 15px;
}
.cliencase-section {
  height: calc(100vh - 100px);
}
}

@media (resolution: 1.25dppx) {
  .success-cards {
    grid-template-columns: repeat(3, 1fr);
  }
  .ellipse-bottom {
        bottom: -25%;
  }
  
/* Sections overlay each other */
.cliencase-section {
height: calc(100vh - 100px);
}
.clientcase-timeline-list {
  max-height: 330px;
}

}
