.farmi-gallery-block .gallery-area {
    position: relative;
    z-index: inherit;
}

.farmi-gallery-block .gallery-area .fixed-shape {
    position: absolute;
    right: 0;
    top: 0;
    opacity: 0.03;
}
.farmi-gallery-block .gallery-area .gallery-items {
    display: flex;
    flex-wrap: wrap;
}
@media (max-width: 991px) {
    .farmi-gallery-block .gallery-area .gallery-items {
        justify-content: center;
        align-items: center;
    }
}
.farmi-gallery-block .gallery-area .gallery-items .pf-item {
    position: relative;
    flex: 0 0 33.33%;
    padding: 15px;
}
@media (max-width: 991px) {
    .farmi-gallery-block .gallery-area .gallery-items .pf-item {
        flex: none;
        width: 100%;
        padding: 15px 0px;
    }
}
.farmi-gallery-block .gallery-area .gallery-items .pf-item:nth-of-type(1) .item,
.farmi-gallery-block .gallery-area .gallery-items .pf-item:nth-of-type(6) .item,
.farmi-gallery-block .gallery-area .gallery-items .pf-item:nth-of-type(5) .item {
    /*height: 263px;*/
}
@media (max-width: 991px) {
    .farmi-gallery-block .gallery-area .gallery-items .pf-item:nth-of-type(1) .item,
    .farmi-gallery-block .gallery-area .gallery-items .pf-item:nth-of-type(6) .item,
    .farmi-gallery-block .gallery-area .gallery-items .pf-item:nth-of-type(5) .item {
        height: auto;
    }
}
@media (max-width: 767px) {
    .farmi-gallery-block .gallery-area .gallery-items .pf-item:nth-of-type(1) .item,
    .farmi-gallery-block .gallery-area .gallery-items .pf-item:nth-of-type(6) .item,
    .farmi-gallery-block .gallery-area .gallery-items .pf-item:nth-of-type(5) .item {
        /*height: 243px;*/
    }
}
.farmi-gallery-block .gallery-area .gallery-items .pf-item:nth-of-type(2) .item,
.farmi-gallery-block .gallery-area .gallery-items .pf-item:nth-of-type(3) .item,
.farmi-gallery-block .gallery-area .gallery-items .pf-item:nth-of-type(4) .item {
    /*height: 350px;*/
}
@media (max-width: 991px) {
    .farmi-gallery-block .gallery-area .gallery-items .pf-item:nth-of-type(2) .item,
    .farmi-gallery-block .gallery-area .gallery-items .pf-item:nth-of-type(3) .item,
    .farmi-gallery-block .gallery-area .gallery-items .pf-item:nth-of-type(4) .item {
        height: auto;
    }
}
@media (max-width: 767px) {
    .farmi-gallery-block .gallery-area .gallery-items .pf-item:nth-of-type(2) .item,
    .farmi-gallery-block .gallery-area .gallery-items .pf-item:nth-of-type(3) .item,
    .farmi-gallery-block .gallery-area .gallery-items .pf-item:nth-of-type(4) .item {
        /*height: 330px;*/
    }
}
.farmi-gallery-block .gallery-area .gallery-items .pf-item:nth-of-type(n + 7),
.farmi-gallery-block .gallery-area .gallery-items .pf-item:nth-of-type(8),
.farmi-gallery-block .gallery-area .gallery-items .pf-item:nth-of-type(9) {
    /*top: -88px;*/
}
@media (max-width: 991px) {
    .farmi-gallery-block .gallery-area .gallery-items .pf-item:nth-of-type(n + 7),
    .farmi-gallery-block .gallery-area .gallery-items .pf-item:nth-of-type(8),
    .farmi-gallery-block .gallery-area .gallery-items .pf-item:nth-of-type(9) {
        top: 0;
    }
}
.farmi-gallery-block .gallery-area .gallery-items .pf-item:nth-of-type(4) {
    /*top: -88px;*/
}
@media (max-width: 991px) {
    .farmi-gallery-block .gallery-area .gallery-items .pf-item:nth-of-type(4) {
        top: 0;
    }
}
.farmi-gallery-block .gallery-area .gallery-items .pf-item .item {
    width: 100%;
    position: relative;
    overflow: hidden;
}
.farmi-gallery-block .gallery-area .gallery-items .pf-item .item::after {
    position: absolute;
    left: 0;
    top: 0;
    background: #000000;
    content: "";
    transition: all 0.25s ease-in-out;
    opacity: 0;
    height: 100%;
    width: 100%;
}
.farmi-gallery-block .gallery-area .gallery-items .pf-item .item .thumb {
    height: 100%;
    width: 100%;
}
.farmi-gallery-block .gallery-area .gallery-items .pf-item .item .info {
    padding: 30px 45px;
    position: absolute;
    bottom: -30px;
    left: 0;
    display: flex;
    align-items: center;
    transition: all 0.35s ease-in-out;
    opacity: 0;
    z-index: 1;
    right: 0;
    text-align: center;
    justify-content: center;
}
.farmi-gallery-block .gallery-area .gallery-items .pf-item .item .info h4 {
    margin: 0;
}
.farmi-gallery-block .gallery-area .gallery-items .pf-item .item .info h4 a {
    color: #fff;
    position: relative;
}
@media (max-width: 767px) {
    .farmi-gallery-block .gallery-area .gallery-items .pf-item .item .info h4 a .a-text {
        font-size: 24px !important;
    }
}
.farmi-gallery-block .gallery-area .gallery-items .pf-item .item .info h4 a .image {
    position: absolute;
    bottom: -10px;
}
.farmi-gallery-block .gallery-area .gallery-items .pf-item .item .thumb a {
    position: absolute;
    left: 50%;
    top: 50%;
    height: 60px;
    width: 60px;
    background: var(--color-primary);
    z-index: 1;
    text-align: center;
    line-height: 60px;
    border-radius: 50%;
    opacity: 0;
    transition: all 0.35s ease-in-out;
    text-decoration: none;
    transform: translate(-50%, -50px);
}
.farmi-gallery-block .gallery-area .gallery-items .pf-item .item .thumb a::after {
    display: none;
}
.farmi-gallery-block .gallery-area .gallery-items .pf-item .item .thumb a .iconfont {
    color: #000;
}
.farmi-gallery-block .gallery-area .gallery-items .pf-item .item .thumb a:hover {
    background: var(--color-second);
}
.farmi-gallery-block .gallery-area .gallery-items .pf-item .item .thumb img {
    -webkit-transition: all 0.35s ease-in-out;
    -moz-transition: all 0.35s ease-in-out;
    -ms-transition: all 0.35s ease-in-out;
    -o-transition: all 0.35s ease-in-out;
    transition: all 0.35s ease-in-out;
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
.farmi-gallery-block .gallery-area .gallery-items .pf-item .item:hover .info {
    opacity: 1;
    bottom: 0;
}
.farmi-gallery-block .gallery-area .gallery-items .pf-item .item:hover::after {
    opacity: 0.6;
}
.farmi-gallery-block .gallery-area .gallery-items .pf-item .item:hover .thumb a {
    transform: translate(-50%, -50%);
    opacity: 1;
}
.farmi-gallery-block .gallery-area .gallery-items .pf-item .item:hover .thumb img {
    -webkit-transform: scale(1.2);
    -moz-transform: scale(1.2);
    -ms-transform: scale(1.2);
    transform: scale(1.2);
}
.farmi-gallery-block .gallery-area .site-heading {
    margin-bottom: 60px;
    margin-top: -5px;
}
.farmi-gallery-block .gallery-area .site-heading h2 {
    display: block;
    font-weight: 600;
    padding-bottom: 20px;
    margin-bottom: 0;
    position: relative;
    line-height: 1.4;
    font-size: 40px;
}
@media (max-width: 767px) {
    .farmi-gallery-block .gallery-area .site-heading h2 {
        font-size: 30px;
    }
}
.farmi-gallery-block .gallery-area .site-heading h2::before {
    background: var(--color-primary) none repeat scroll 0 0;
    bottom: 0;
    content: "";
    height: 2px;
    left: 50%;
    margin-left: -25px;
    position: absolute;
    width: 40px;
}
.farmi-gallery-block .gallery-area .site-heading h2::after {
    background: var(--color-primary) none repeat scroll 0 0;
    bottom: 0;
    content: "";
    height: 2px;
    left: 50%;
    margin-left: 20px;
    position: absolute;
    width: 5px;
}
.farmi-gallery-block .gallery-area .site-heading h4 {
    color: var(--text-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 20px;
    display: inline-block;
    position: relative;
    overflow: inherit;
}

/*text*/
.pt-120 {
  padding-top: 60px;
}
@media only screen and (min-width: 992px) {
  .pt-120 {
    padding-top: 80px;
  }
}
@media only screen and (min-width: 1200px) {
  .pt-120 {
    padding-top: 100px;
  }
}
@media only screen and (min-width: 1400px) {
  .pt-120 {
    padding-top: 120px;
  }
}

.pb-120 {
  padding-bottom: 40px;
}
@media only screen and (min-width: 992px) {
  .pb-120 {
    padding-bottom: 40px;
  }
}
@media only screen and (min-width: 1200px) {
  .pb-120 {
    padding-bottom: 40px;
  }
}
@media only screen and (min-width: 1400px) {
  .pb-120 {
    padding-bottom: 40px;
  }
}

/*----------------------------------
    SECTION TITLE 
    -----------------------------------*/
.section-title-wrap {
  position: relative;
  margin-bottom: 40px;
}
.section-title-wrap .section-title {
  display: inline-block;
  position: relative;
  margin: 5px 0 40px;
  text-transform: capitalize;
  line-height: 1.4;
  font-size: calc(1.525rem + 3.3vw);
}
@media (min-width: 1200px) {
  .section-title-wrap .section-title {
    font-size: 4rem;
  }
}
.section-title-wrap .section-title::before,
.section-title-wrap .section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  width: 20px;
  height: 8px;
  border-radius: 4px;
  background-clip: padding-box; /* stops bg color from leaking outside the border: */
  background-color: var(--color-primary);
  -webkit-animation: animate 6s linear infinite;
  animation: animate 6s linear infinite;
}
.section-title-wrap .section-title::before {
  right: 50%;
  margin-right: 4px;
}
.section-title-wrap .section-title::after {
  left: 50%;
  margin-left: 4px;
}
.section-title-wrap p {
  display: inline-block;
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 0;
  max-width: 1200px;
}

@-webkit-keyframes animate {
  0% {
    width: 20px;
  }
  25% {
    width: 50px;
  }
  50% {
    width: 50px;
  }
  75% {
    width: 100px;
  }
  100% {
    width: 100px;
  }
}

@keyframes animate {
  0% {
    width: 20px;
  }
  25% {
    width: 50px;
  }
  50% {
    width: 50px;
  }
  75% {
    width: 100px;
  }
  100% {
    width: 100px;
  }
}

/*-------------------------------
  SERVICES
  -------------------------------*/
.maha-service-wrap {
  position: relative;
}

.maha-service-wrap .service-box {
  margin-bottom: 60px;
}
@media only screen and (min-width: 768px) {
  .maha-service-wrap .service-box {
    margin-bottom: 0;
  }
}
.maha-service-wrap .service-box .box {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-flow: column nowrap;
  flex-flow: column nowrap;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  height: 220px;
  width: 220px;
  margin: auto;
  overflow: hidden;
  position: relative;
  border: 6px solid #ffcb08;
  border-radius: 100%;
}
.maha-service-wrap .service-box h5 {
  margin-top: 25px;
  text-transform: uppercase;
  font-size: 32px;
  font-family: var(--title-font-family);
}
.maha-service-wrap .service-box a {
  color: #243a48;
}
.maha-service-wrap .service-box a:hover {
  color: var(--color-second);
}
.maha-service-wrap .service-box p {
  display: inline-block;
  margin-bottom: 15px;
  max-width: 500px;
}
.maha-service-wrap .service-box:hover .spin {
  border: 0;
}
.maha-service-wrap .service-box:hover .spin::before {
  border-bottom-color: var(--color-second);
  border-right-color: var(--color-second);
  border-top-color: var(--color-second);
  -webkit-transition: border-top-color 0.15s linear,
    border-right-color 0.15s linear 0.1s, border-bottom-color 0.15s linear 0.2s;
  transition: border-top-color 0.15s linear,
    border-right-color 0.15s linear 0.1s, border-bottom-color 0.15s linear 0.2s;
}
.maha-service-wrap .service-box:hover .spin::after {
  border-left-width: 6px;
  border-right-width: 6px;
  border-top: 6px solid var(--color-second);
  -webkit-transform: rotate(270deg);
  transform: rotate(270deg);
  transition: border-left-width 0s linear 0.35s,
    -webkit-transform 0.4s linear 0s;
  -webkit-transition: border-left-width 0s linear 0.35s,
    -webkit-transform 0.4s linear 0s;
  transition: transform 0.4s linear 0s, border-left-width 0s linear 0.35s;
  transition: transform 0.4s linear 0s, border-left-width 0s linear 0.35s,
    -webkit-transform 0.4s linear 0s;
}

.maha-service-wrap .service-box:hover {
  opacity: 1;
  filter: alpha(opacity=100);
  text-indent: 0;
  /* margin-right: 6px; */
  visibility: visible;
  -webkit-transition: visibility 0.4s ease, margin-right 0.3s ease-out,
    text-indent 0.4s ease-out, color 0.4s ease, opacity 0.4s ease;
  transition: visibility 0.4s ease, margin-right 0.3s ease-out,
    text-indent 0.4s ease-out, color 0.4s ease, opacity 0.4s ease;
}

.maha-service-wrap .spin::before,
.maha-service-wrap .spin::after {
  position: absolute;
  z-index: 1;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  -webkit-box-sizing: inherit;
  box-sizing: inherit;
  content: "";
}
.maha-service-wrap .spin::before {
  border: 6px solid transparent;
  z-index: 20;
}
.maha-service-wrap .spin::after {
  border: 0 solid transparent;
}

.maha-service-wrap .circle {
  border-radius: 100%;
  background-clip: padding-box; /* stops bg color from leaking outside the border: */
  -webkit-box-shadow: none;
  box-shadow: none;
}
.maha-service-wrap .circle::before,
.maha-service-wrap .circle::after {
  border-radius: 100%;
  background-clip: padding-box; /* stops bg color from leaking outside the border: */
}
