.services.section{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.allservices .services__container::after{
  content: '';
  position: absolute;
  z-index: -1;
  background-color: whitesmoke;
  width:20px;
  left: 0;
  transform: translateY(-30%);
  height: 50%;
  /* border: 1px solid black; */
  clip-path: polygon(0 9%, 100% 0, 100% 91%, 0 100%);
}
.allservices .services__container::before{
  content: '';
  position: absolute;
  z-index: -1;
  background-color: var(--primary);
  right: 0;
  width:20px;
  transform: translateY(30%);
  transition: all 1s ease;
  height: 50%;
  clip-path: polygon(0 0, 100% 8%, 100% 100%, 0 91%);}


/* services */
.section__services-title{
  text-align: center;
   font-size: 20px; 
  width: fit-content;
  margin: auto;
  margin-bottom: 3rem;

}
.section__services-title::after {
  content: "";
  width: 40px;
  height: 4px;
  background: var(--primary);
  position: relative;
  display: block;
  bottom: 1px;
}
.services__container{
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2.5rem;
}
.services__card{
  background-color: rgba(255, 255, 255, 0.684);
  /* background-color: #f4f4f4; */
  padding: 2.5rem 1rem;
  box-shadow: 0 3px 16px rgba(0, 0, 0, 0.1);
border: 2px solid transparent;
  text-align: center;
     border: 2px solid var(--border-color);
  width: clamp(250px, 300px, 75vw);
  transition: all .4s;
}
.services__icon{
  display: inline-block;
  font-size: 3rem;
  color: var(--first-color);
  margin-bottom: 1.5rem;
}
.services__title{
margin-bottom: 1rem;
}
.services__description{
  margin-bottom: 3rem;
}
.services__button{
  padding: 1.25rem 2rem;
  cursor: pointer;
}
.services__card:hover .services__icon{
    filter: invert(1);

}
 .services__card:hover {
   border: 2px solid var(--primary);
}
/*
.services__card:hover .services__icon{
  color: white;
} */



/* btn-3 */

.btn-3 {
  line-height: 1;
  text-decoration: none;
  display: inline-flex;
  flex-direction:row-reverse ;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--primary);
  color: #fff;
  font-weight: 200;
  font-size: 14px;
  padding: 12px 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background-color 0.3s;
  border-bottom: 2px solid white;
}

.btn-3 .button__icon-wrapper {
  flex-shrink: 0;
  width: 25px;
  height: 25px;
  position: relative;
  color: black;
  background-color: #ffffff4a;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
}

/* .btn-3:hover {
  background-color: white;
  color: black;
} */

/* .btn-3:hover .button__icon-wrapper {
  color: var(--primary);
  background: whitesmoke;
} */
.btn-3:hover .button__icon-wrapper {
  border: 2px solid var(--primary);
}

.btn-3 .button__icon-svg--copy {
  position: absolute;
  transform: translate(-150%, 150%);
}

.btn-3:hover .button__icon-svg:first-child {
  transition: transform 0.3s ease-in-out;
  transform: translate(150%, -150%);
}

.btn-3:hover .button__icon-svg--copy {
  transition: transform 0.3s ease-in-out 0.1s;
  transform: translate(0);
}











/*=============== ACCORDION ===============*/
.accordion {
  display: grid;
  align-content: center;
  /* height: 100vh; */
}

.accordion__container {
  display: grid;
  row-gap: .75rem;
  padding: 2rem 1rem;
  padding: 0;
}

.accordion__title {
  font-size: var(--small-font-size);
  color: var(--title-color);
  font-weight: 400;
  margin-top: .15rem;
  transition: .2s;
}

.accordion__header {
  display: flex;
  column-gap: .5rem;
  padding: 1.25rem 1.25rem 1.25rem 1rem;
  cursor: pointer;
}

.accordion__description {
  padding: 0 1.25rem 1.25rem 3rem;
  font-size: var(--smaller-font-size);
}

.accordion__icon {
  font-size: 1.5rem;
  height: max-content;
  color: var(--title-color);
  transition: .3s;
}

.accordion__item {
  /* box-shadow: 0 2px 6px rgba(38, 38, 38, 0.1); */
  background-color: #f4f4f4;
  position: relative;
  transition: all .25s ease;
}

.accordion__item::after {
  content: '';
  background-color: var(--primary);
  width: 5px;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  /* border-radius: .25rem 0 0 .25rem; */
}

/* .accordion__item:nth-child(1) {
  background-color: #fff7f0;
} */

.accordion__item:nth-child(1)::after {
  background-color: var(--primary);
}

/* .accordion__item:nth-child(2) {
  background-color: #f0f0ff;
} */

.accordion__item:nth-child(2)::after {
  background-color: black;
}

/* .accordion__item:nth-child(3) {
  background-color: #fff0f3;
} */

.accordion__item:nth-child(3)::after {
  background-color: var(--primary);
}

/* .accordion__item:nth-child(4) {
  background-color: #f0faff;
} */

.accordion__item:nth-child(4)::after {
  background-color: black;
}

.accordion__content {
  overflow: hidden;
  height: 0;
  transition: all .25s ease;
}

/*Rotate icon and add font weight to titles*/
.accordion-open .accordion__icon {
  transform: rotate(45deg);
}

.accordion-open .accordion__title {
  font-weight: 600;
}

/*=============== MEDIA QUERIES ===============*/
/* For medium devices */
@media screen and (min-width: 576px) {
  .accordion__container {
    /* width: 550px; */
    padding: 2.5rem;
    padding-top: 0;
    justify-self: center;
  }
  .accordion__header {
    padding: 1.5rem;
  }
  .accordion__title {
    padding-right: 3.5rem;
  }
  .accordion__description {
    padding: 0 4rem 1.25rem 3.5rem;
  }
}

/* For large devices */
@media screen and (min-width: 968px) {
  .container {
    margin-left: auto;
    margin-right: auto;
  }
}
