
.agri__head {
  text-align: center;
  margin-bottom: 10px;
  margin-top: 80px;
}

.agri__head__title {
  font-size: 20px;
  font-weight: 700;
  line-height: normal;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  color: var(--text);
}
@media (max-width:1360px){
    .agri__head__title{
        font-size: 18px;
    }
}
@media (max-width:1200px){
    .agri__head__title{
        font-size: 16px;
    }
}
@media (max-width:992px){
    .agri__head__title{
        font-size: 14px;
    }
}
@media (max-width:680px){
    .agri__head__title{
        font-size: 12px;
    }
}
@media (max-width:520px){
    .agri__head__title{
        font-size: 11px;
    }
}
.agri__head__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.agri__head__dots span {
  width: 5px;
  height: 5px;
  border-radius: 5px;
  background-color: #d6e5be;
}
.agri__head__dots::before {
  content: "";
  height: 5px;
  width: 22px;
  border-radius: 5px;
  background-color: var(--green);
}
.agri__head__dots::after {
  content: "";
  height: 5px;
  width: 22px;
  border-radius: 5px;
  background-color: var(--green);
}

.services__menu{
    margin:60px auto 120px auto;
}
.services__menu_box{
    width: 100%;
    display: flex;
    flex-flow: row wrap;
    background: rgb(214, 229, 190);
    padding: 0;
    border-radius: 15px;

}
.services__menu_item{
    display: block;
    position: relative;
    width: calc((100% / 7 ));
    z-index: 2;
    display: flex;
    align-items: center;
    flex-flow: column wrap;
    padding: 30px 40px;
    background: rgb(214, 229, 190);
}
.services__menu_item:first-child{
    border-radius: 0 15px 15px 0;
}
.services__menu_item:nth-child(7){
    border-radius: 15px 0 0 15px;
}
.services__menu_item .title{
    font-size: 13px;
    font-weight: bold;
    color: var(--text);
    margin-top: 16px;
    text-align: center;
    font-weight: 700;
    transition: 0.3s;

}
.services__menu_item .niafam{
    font-size: 60px;
    color: var(--text);
transition: 0.3s;
}
.services__menu_item .img__item{
    width: 60px;
    height: 60px;
}
.current{
  height: 180px;
  inset-inline-start: 7.5%;
  margin-inline-start: -50px;
  position: absolute;
  top: -13px;
  width: 120px;

  -webkit-transition: all 400ms cubic-bezier(0, 1.1, 0.5, 1.1);
  -moz-transition: all 400ms cubic-bezier(0, 1.1, 0.5, 1.1);
  -o-transition: all 400ms cubic-bezier(0, 1.1, 0.5, 1.1);
  -ms-transition: all 400ms cubic-bezier(0, 1.1, 0.5, 1.1);
  transition: all 400ms cubic-bezier(0, 1.1, 0.5, 1.1);
}
.cback {
  background-color: #F4AA02;
  border-bottom: 2px solid rgb(151 199 75);
  border-radius: 10px;
  height: 100%;
  position: absolute;
  width: 100%;
}
.ctoparr {
  height: 12px;
  inset-inline-start: 0;
  overflow: hidden;
  position: absolute;
  top: 13px;
  width: 100%;
  z-index: 2;
}
.ctoparr:before {
  border-radius: 20%;
  box-shadow: 0 0 15px #b1db6d;
  content: "";
  height: 10px;
  inset-inline-start: 5%;
  position: absolute;
  top: -10px;
  width: 90%;
}
.ctoparr:after{
  border-right: 8px solid transparent;
  border-left: 8px solid transparent;
  border-top: 12px solid #F4AA02;
  content: "";
  height: 0;
  inset-inline-start: 50%;
  margin-inline-start: -8px;
  position: absolute;
  top: 0;
  width: 0;
}
.cbotarr {
  bottom: 17px;
  height: 12px;
  inset-inline-start: 0;
  overflow: hidden;
  position: absolute;
  width: 100%;
  z-index: 2;
}
.cbotarr:before {
  border-radius: 20%;
  bottom: -10px;
  box-shadow: 0 0 15px #b1db6d;
  content: "";
  height: 10px;
  inset-inline-start: 5%;
  position: absolute;
  width: 90%;
}
.cbotarr:after {
  border-bottom: 12px solid #F4AA02;
  border-right: 8px solid transparent;
  border-left: 8px solid transparent;
  bottom: 0;
  content: "";
  height: 0;
  inset-inline-start: 50%;
  margin-inline-start: -8px;
  position: absolute;
  width: 0;
}
#services__menu .services__menu_item:hover .title,#services__menu .services__menu_item:hover .niafam{
    color: #F4AA02;
}
#services__menu .services__menu_item.selected:nth-child(1) ~ .current {
  inset-inline-start: 7.5%;
}
#services__menu .services__menu_item.selected:nth-child(2) ~ .current {
  inset-inline-start: 21.5%;
}
#services__menu .services__menu_item.selected:nth-child(3) ~ .current {
  inset-inline-start: 35.5%;
}
#services__menu .services__menu_item.selected:nth-child(4) ~ .current {
  inset-inline-start: 49.5%;
}
#services__menu .services__menu_item.selected:nth-child(5) ~ .current {
  inset-inline-start: 63.5%;
}
#services__menu .services__menu_item.selected:nth-child(6) ~ .current {
  inset-inline-start: 77.5%;
}
#services__menu .services__menu_item.selected:nth-child(7) ~ .current {
  inset-inline-start: 91.5%;
}
#services__menu .services__menu_item:nth-child(1):hover ~ .current {
  inset-inline-start: 7.5%;
}
#services__menu .services__menu_item:nth-child(2):hover ~ .current {
  inset-inline-start: 21.5%;
}
#services__menu .services__menu_item:nth-child(3):hover ~ .current {
  inset-inline-start: 35.5%;
}
#services__menu .services__menu_item:nth-child(4):hover ~ .current {
  inset-inline-start: 49.5%;
}
#services__menu .services__menu_item:nth-child(5):hover ~ .current {
  inset-inline-start: 63.5%;
}
#services__menu .services__menu_item:nth-child(6):hover ~ .current {
  inset-inline-start: 77.5%;
}
#services__menu .services__menu_item:nth-child(7):hover ~ .current {
  inset-inline-start: 91.5%;
}
@media (max-width:1619.99px){
    .services__menu_item{
        padding: 24px 30px;
    }
    .current{height: 168px;}
    
}
@media (max-width:1399.99px){
    .services__menu_item{ padding: 18px 20px;}
    .current{height: 146px;}
    .services__menu_item .niafam{font-size: 50px;}
    .services__menu_item .img__item{width: 50px;height: fit-content;}
}
@media (max-width:1199.99px)
{
    .services__menu_item{
        padding: 18px 10px;
    }
    .services__menu_box{
        position: relative;
    }
      .current{width: 100px;}
      .services__menu_item .title{margin-top: 11px;font-size: 11px;line-height: 16px;}
      .services__menu_item .niafam{font-size: 40px;}
      .services__menu_item .img__item{width: 40px;}
      .cbotarr:after {
        border-bottom: 6px solid #F4AA02;
        border-right: 5px solid transparent;
        border-left: 5px solid transparent;
    }
    .ctoparr:after {
        border-right: 5px solid transparent;
        border-left: 5px solid transparent;
        border-top: 6px solid #F4AA02;
    }
    .current{height: 128px;}
}
@media (max-width:992px){
    .current {
        height: 139px;
        width: 78px;
        margin-inline-start: -40px;
    }
}
@media (max-width: 760px){
    .services__menu_item .niafam{font-size: 30px;}
    .services__menu_item .img__item{width: 30px;}
    .services__menu_item .title{font-size: 10px;}
    .services__menu_item {
        min-width: 112px;
    }
    .services__menu_box{
        overflow-x: scroll;
        overflow-y:hidden;
        flex-wrap: nowrap;
    }
    /* .services_box.container,.contaioner{max-width: 90%;margin: 0 auto;} */
    li.services__menu_item:before {
    content: '';
    height: 6px;
    width: 100%;
    background: #F4AA02;
    top: -21px;
    position: relative;
    opacity: 0;
    visibility: hidden;
    transition: 0.5s;
}
 li.services__menu_item:hover:before{
    opacity: 1;
    visibility: visible;
 }
    /* li.services__menu_item:after {
    content: '';
    height: 8px;
    width: 100%;
    background: #F4AA02;
    bottom: -21px;
    position: relative;
    } */
    .current{
        display: none;
    }
}
