/* STORIES SECTION */

  
/* case studies_sec section start */
.casestudies_sec {
  padding: 4rem 0 ;
  position: relative;
  background-color: #0d1b2a;
}

.viewCaseStudies {
  border: 1px solid #fff;
  color: #fff;
  border-radius: 10px;
  padding: 10px 1.5rem;
}

.casestudies_sec h4 {
  text-align: center;
  line-height: normal;
  font-size: 2.7rem;
  color: #fff;
  font-weight: 700;
  text-transform: capitalize;
}

.caseStudiesSliderBox h4 {
  font-size: 2rem;
  color: #fff;
  font-weight: 600;
  text-align: left;
  margin-bottom: 1rem;
}

.casestudies_slider {
  position: relative;
  width: 100%;
  margin: auto;
  overflow: hidden;
}

.slider-casestudies {
  display: flex;
  transition: transform 0.4s ease-in-out;
}
.caseStudiesSliderBox {
  flex: 0 0 50%;
  max-width: 50%;
  padding: 10px;
  box-sizing: border-box;
}
.caseStudiesBottomArrows {
  position: absolute;
  /* bottom: 15px; */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 40;
}
.caseStudiesBottomArrows button {
  height: 42px;
  width: 42px;
  border-radius: 50%;
  border: none;
  padding: 8px;
  background-color: #0b79be;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.3s ease-in-out;
}

.caseStudiesBottomArrows button:hover {
  background-color: transparent;
  color: #0b79be;
  border: 1px solid #0b79be;
}

.caseStudiesBottomArrows button i {
  font-size: 1rem;
}

/* place arrows slightly outside the slider for better touch */
.caseStudiesLeftArrow {
  left: -24px;
}
.caseStudieRightArrow {
  right: -24px;
}

.caseStudiesLeftArrow:hover,
.caseStudieRightArrow:hover {
  background-color: transparent;
  color: #0b79be;
  border: 1px solid #0b79be;
}

.caseStudiesLeftArrow i,
.caseStudieRightArrow i {
  font-size: 1.2rem;
}

.case_box {
  padding: 15px;
  border-radius: 20px;
  height: 380px;
  align-items: stretch;
  overflow: hidden;
  scroll-snap-align: start;
  position: relative;
}

.case_box p {
  display: -webkit-box;
  -webkit-line-clamp: 9;
  /* Limit to 4 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: start;
  color: #fff;
  margin-bottom: 2rem;
}

.case_logo img {
  margin-bottom: 1rem;
  height: auto;
  width: 100px;
}

.case_img img {
  float: right;
  /* max-height: 350px; */
  width: 100%;
  height: auto;
  text-align: center;
}

.img-landscape {
  padding: 10px 6px 10px 0;
  align-items: center !important;
  justify-content: center !important;
}

.img-wrapper {
  /* position: absolute; */
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-landscape img {
  width: 100%;
  height: auto;
  /* max-height: 100%; */
  object-fit: contain;
  object-position: center;
  border-radius: 10px;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.5));
  opacity: 0.95;
}

.case-available {
  display: flex;
  gap: 10px;
  margin-bottom: 3rem;
  align-items: center;
}

.img-portrait {
  align-items: flex-end;
}

.img-portrait img {
  /* height: 100%; */
  /* width: auto!important; */
  object-fit: contain;
  object-position: bottom;
  border-radius: 12px 12px 0 0;
  filter: drop-shadow(0 -8px 24px rgba(0, 0, 0, 0.4));
}

.case-available p {
  /* marg */
  margin-bottom: 0;
}

.case-available img {
  filter: invert(1);
  width: 40px;
  height: 40px;
}

/* case studies section end */
@media only screen and (max-width: 500px) {
  /*  */
  .case_logo img {
    margin-bottom: 1rem;
    height: 50px;
    width: auto;
    max-width: 140px;
    display: block;
  }
  .casestudies_sec h4 {
    text-align: center;
    margin-bottom: 1.5rem;
  }
  .img-wrapper{
    margin-top: 1.5rem;
  }

  .casestudies_slider {
    padding-bottom: 1rem;
  }
  .caseStudiesSliderBox {
    min-width: 100%;
  }

  .caseStudiesLeftArrow,
  .caseStudieRightArrow {
    /* z-index: 1000 !important; */
    top: 95% !important;
  }

  .caseStudieRightArrow {
    right: 125px;
  }

  .caseStudiesLeftArrow {
    left: 125px;
  }

  .caseStudiesSliderBox {
    padding: 20px;
  }

  .case-available p {
    display: inline;
  }

  /* FIX SLIDER HEIGHT + NO BLANK SPACE */
  .case_box {
    height: auto !important;
    min-height: auto !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 15px;
  }

  /* FIX SLIDER ITEM WIDTH */
  .caseStudiesSliderBox {
    min-width: 100%;
    max-width: 100%;
    padding: 10px;
  }

  /* FIX TRACK HEIGHT */
  .slider-casestudies {
    align-items: stretch;
  }

  /* FIX IMAGE SIZE */
  .img-portrait img {
    max-height: 200px;
    width: auto;
    margin: 0 auto;
  }

  .img-landscape img {
    max-height: 180px;
    width: 100%;
  }

  /* REMOVE EXTRA SPACE */
  .casestudies_slider {
    height: auto;
    overflow: hidden;
  }

  /* CENTER CONTENT */
  .case_box .row {
    flex-direction: column;
    text-align: center;
  }

  /* OPTIONAL: HIDE LONG TEXT */
  .case_box p {
    display: none;
  }

  /* indistry serve */
}
 
