/*  hero section styles start */
.hero_section {
  background-color: var(--black);
  width: 100%;
  color: var(--white);
  margin-top: 3.75rem;
  padding-bottom: 2rem;
}

.hero_section_text > span {
  font-size: 0.875rem;
  line-height: 19px;
}

.hero_section_text h1 {
  text-align: left;
  font-size: 1.5rem;
  line-height: 40px;
  font-weight: normal;
}

.fade {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.fade.visible {
  opacity: 1;
}

.hero_img-container {
  padding-top: 20px;
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.hero_img-container img {
  aspect-ratio: 1/1;
  width: 100%;
  margin: 0 auto;
}

.hero_section_cta_wrapper > a {
  cursor: pointer;
  min-width: 10rem;
  max-width: 100%;
  text-decoration: none;
  font-size: 0.875rem;
  text-align: center;
  flex-basis: 100%;
}

.hero_section_cta_wrapper {
  display: flex;
  gap: 20px;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.hero_section_cta_wrapper > a:first-child {
  background-color: var(--primary);
  color: var(--white);
  border: none;
  padding: 1rem;
}

.hero_section_cta_wrapper > a:last-child {
  background-color: transparent;
  color: var(--white);
  border: 0.84px solid rgba(255, 255, 255, 0.46);
  padding: 1rem;
}

.comprehensive-solutions__section {
  padding: 1.5rem 0;
  background-color: #f8f8f9;
}

.comprehensive-solutions__section .container:first-child h2 {
  font-size: 1.5rem;
  font-weight: 500;
}

.comprehensive-solutions__section .container:first-child h2 br {
  display: none;
}

.comprehensive-solutions__section .container:first-child p {
  font-size: 0.875rem;
  padding: 0.8rem 0;
  line-height: 1.3rem;
  font-weight: 400;
}

.comprehensive-solutions__section .container:nth-child(2) {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
}

.comprehensive-solutions__section .container:nth-child(2) .card {
  border: 0.875px solid #c7c7d6;
  border-radius: 0.5rem;
  padding: 1rem;
  background-color: #ffffff;
  transition: all linear 0.6s;
}

.comprehensive-solutions__section .container:nth-child(2) .card h5 {
  font-size: 1.719rem;
  line-height: 2.139rem;
  font-weight: 400;
  color: #1e1d28;
  padding: 1.5rem 0 1rem;
}

.comprehensive-solutions__section .container:nth-child(2) .card p {
  color: #54575e;
  font-size: 0.85rem;
  line-height: 1.284rem;
  padding-bottom: 3rem;
}

.comprehensive-solutions__section .container:nth-child(2) .card:hover {
  background-color: #1e1d28;
  transition: all ease-in-out 0.6s;
}

.comprehensive-solutions__section .container:nth-child(2) .card:hover p,
.comprehensive-solutions__section .container:nth-child(2) .card:hover h5 {
  color: white;
  transition: color ease-in-out 0.5;
}

.comprehensive-solutions__section .container:nth-child(2) a {
  text-decoration: none;
}

.comprehensive-solutions__section
  .container:nth-child(2)
  .card:hover
  .discover-more__section {
  background-image: url(https://res.cloudinary.com/deklnqsqn/image/upload/f_auto,q_auto/image_fx__18_fjp1gq);
  transition: all ease-in-out 0.6s;
}

.discover-more__section {
  position: relative;
  border: 1px solid #d9d9d9;
  border-radius: 20px;
  display: flex;
  font-size: 1rem;
  align-items: center;
  gap: 1rem;
  padding: 1.3rem 1rem;
  background-image: transparent;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transition: all ease-in-out 0.6s;
  min-height: 84px;
}

.discover-more__section span:first-child {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background-color: #d9d9d9;
  border-radius: 50%;
  transition: all ease-in 0.4s;
  position: absolute;
  left: 10%;
  z-index: 10;
}

.discover-more__section span:nth-child(2) {
  transform: translateX(70%);
  transition: all ease-in-out 0.35s;
  color: #000000;
}

.comprehensive-solutions__section
  .container:nth-child(2)
  .card:hover
  .discover-more__section
  span:first-child {
  position: absolute;
  left: 80%;
  transition: all ease-out 0.4s;
}

.comprehensive-solutions__section
  .container:nth-child(2)
  .card:hover
  .discover-more__section
  span:nth-child(2) {
  transform: translateX(30%);
  color: white;
  transition: all ease-in-out 0.35s;
}

/* business category section */
.business_category-wrapper {
  padding: 3rem 0;
  margin-top: 2rem;
}

.business_category-wrapper > h2 {
  font-weight: 400;
  font-size: 1.5rem;
  text-align: center;
  color: var(--header);
}

.business_category-filters {
  display: flex;
  align-items: center;
  justify-items: center;
  max-width: 650px;
  margin: 0 auto;
  height: 40px;
  border: 0.85px solid #d0d0d0;
  margin-top: 1.5rem;
  font-size: 0.875rem;
}

.business_category-filters > select {
  padding: 0 0.3rem;
  outline: none;
}

.business_category-filters > select,
.business_category-filters > input,
.business_category-filters > label {
  height: 100%;
  border: none;
}

.business_category-filters > select {
  padding: 0 0.3rem;
  outline: none;
}

.business_category-filters > input {
  background: transparent;
  outline: none;
  flex: 1;
  padding: 0 10px;
}

.business_category-filters > label {
  background-color: var(--primary);
  color: var(--white);
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* media queries */
@media (min-width: 600px) {
  .comprehensive-solutions__section .container:nth-child(2) .card h5 {
    padding: 4rem 0 1rem;
  }

  .comprehensive-solutions__section .container:nth-child(2) .card p {
    padding-bottom: 8rem;
  }

  .comprehensive-solutions__section .container:nth-child(2) .card {
    border-radius: 0.5rem;
    padding: 2rem;
  }

  .comprehensive-solutions__section .container:nth-child(2) {
    grid-template-columns: repeat(2, 1fr);
    gap: 5rem;
    padding-top: 3rem;
  }

  .hero_section_cta_wrapper > a {
    max-width: 19.75rem;
  }

  .hero_section_cta_wrapper {
    flex-wrap: nowrap;
    justify-content: center;
  }

  .hero_section_text > span {
    font-size: 1rem;
    line-height: 19px;
  }

  .hero_section_text > h1 {
    font-size: 2.5rem;
    line-height: 60px;
  }
}

@media (min-width: 768px) {
  .hero_img-container h1 {
    display: none;
  }

  .comprehensive-solutions__section {
    padding: 3.5rem 0;
  }
  .comprehensive-solutions__section .container:first-child h2 br {
    display: block;
  }
  .comprehensive-solutions__section .container:first-child {
    display: flex;
    gap: 2rem;
  }
  .comprehensive-solutions__section .container:first-child h2 {
    font-weight: 400;
    line-height: 3rem;
    font-size: 1.7rem;
  }
  .comprehensive-solutions__section .container:first-child p {
    font-weight: 400;
    line-height: 1.8rem;
    font-size: 0.9rem;
  }
  .comprehensive-solutions__section .container:first-child h2,
  .comprehensive-solutions__section .container:first-child p {
    flex-basis: 50%;
  }
}

@media (min-width: 1024px) {
  .hero_section {
    padding-block: 1rem;
  }
  .hero_section > div {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
  }
  .hero_section_text > h1 > br {
    display: block;
  }
  .hero_section_text > h1 {
    font-size: 2rem;
    line-height: 50px;
  }

  .comprehensive-solutions__section .container:first-child h2 {
    line-height: 4rem;
    font-size: 2rem;
  }
  .comprehensive-solutions__section .container:first-child p {
    font-weight: 400;
    line-height: 2.05rem;
    font-size: 1rem;
  }

  .case_study-wrapper {
    background-image: url("https://res.cloudinary.com/deklnqsqn/image/upload/f_auto,q_auto:best/v1/stransact/qzetrnrxdwmvwbhd1r7r");
    background-size: 50vw 100%;
    background-repeat: no-repeat;
    background-position: right;
  }
  .comprehensive-solutions__section .container:nth-child(2) {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1250px) {
  .hero_section {
    margin-top: 4.4rem;
  }
  .hero_section_text > span {
    font-size: 1.25rem;
    line-height: 51px;
  }
  .hero_section_text > h1 {
    font-size: 3rem;
    line-height: 80px;
  }
  .hero_section_cta_wrapper > a {
    width: 19.75rem;
  }
  .hero_img-container {
    max-width: 600px;
  }
  .comprehensive-solutions__section .container:first-child h2 {
    line-height: 4rem;
    font-size: 2.63rem;
  }
  .comprehensive-solutions__section .container:first-child p {
    line-height: 2.2rem;
    font-size: 1.1rem;
  }
}

@media (min-width: 1400px) {
  .hero_img-container {
    max-width: 700px;
  }
  .hero_section > div {
    gap: 3rem;
  }
}

@media (min-width: 449px) and (max-width: 767px) {
  .hero_section_cta_wrapper {
    display: flex;
    justify-content: center;
    flex-flow: row;
  }
}

@media (min-width: 449px) and (max-width: 1023px) {
  .hero_section_text h1 {
    text-align: center;
  }
}

@media (min-width: 598px) and (max-width: 1300px) {
  .comprehensive-solutions__section .container:nth-child(2) {
    gap: 2rem;
  }
}

@media (min-width: 999px) and (max-width: 998px) {
  .comprehensive-solutions__section .container:nth-child(2) {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}
