/* Start aphids hero */
.post-template-pest-aphids .hero {
  align-items: flex-start;
  padding-top: 150px;
}
.post-template-pest-aphids .hero h1 {
  max-width: 658px;
}
.hero__content {
  max-width: 612px;
}
.hero-image--aphid {
  width: calc(45vw + 259.2px);
  max-width: 1250px;
  right: 3vw;
  bottom: -2.5vw;
}
@media (max-width: 1920px) {
  .hero-image--aphid {
    right: -2.5vw;
  }
}

@media (orientation: portrait), (max-width: 768px), (max-height: 460px) {
  .post-template-pest-aphids .hero.hero--secondary {
    padding-top: calc(65px + 4.5vw);
  }

  .hero-image--aphid {
    width: 92vw;
    max-width: 678px;
    margin: 35px auto 0;
  }
}

@media (orientation: landscape) and (max-height: 1024px) and (min-height: 520px) {
  .post-template-pest-aphids .hero {
    padding-top: calc(75px + 4.5vw);
  }
  .post-template-page-templates .hero h1 {
    margin-bottom: 25px;
  }
  .hero-image--aphid {
    bottom: -5vw;
  }
  .hero__wrapper > span {
    display: block;
    font-size: 95px;
    margin-bottom: 25px;
  }
}

@media (max-width: 1024px) {
  .hero-image--aphid {
    right: -10vw;
  }
}
@media (max-width: 980px) {
  .hero-image--aphid {
    right: -20vw;
  }
}

@media (max-width: 850px) {
  .hero__wrapper {
    margin-bottom: 0;
  }
  .post-template-pest-aphids .hero {
    padding-bottom: 25px;
  }
}
@media (max-width: 440px) {
  .post-template-pest-aphids .hero.hero--secondary h1 {
    font-size: 30px;
    margin-bottom: 25px;
  }
  .hero__wrapper > span {
    font-size: 50px;
  }
}
/* End aphids hero */

/* Start aphids action */
.aphids-action__flex {
  width: 100%;
  display: flex;
}
.aphids-action__container {
  width: calc(50% + 150px);
  padding: 60px 50px 60px var(--sidePadding);
  background: var(--green);
  color: white;
}
.aphids-action__container ul {
  width: 100%;
  max-width: calc(calc(var(--maxScreenWidth) / 2) + 100px);
  margin-left: auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 3.5vw;
  row-gap: 30px;
}
.aphids-action__item {
  padding: 30px;
  background: var(--green3);
  border-radius: 30px;
}
.aphids-action__container ul li {
  min-height: 300px;
}
.aphids-action__container ul li h2 {
  font-size: var(--textFontSizeL);
  text-transform: uppercase;
  margin-bottom: 25px;
  text-align: center;
}
.aphids-action__container ul li h3 {
  font-size: var(--textFontSizeM);
  font-family: var(--secondaryFont);
  font-weight: 600;
  margin-bottom: 20px;
}
.aphids-action__content {
  font-family: var(--secondaryFont);
  font-size: var(--textFontSizeS);
  font-weight: 400;
  text-align: justify;
  line-height: 1.2;
}
.aphids-action__cta {
  width: 100%;
  max-width: calc(calc(var(--maxScreenWidth) / 2) + 100px);
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 40px;
  gap: 25px;
}
.aphids-action__content-bottom {
  text-align: center;
  line-height: 1.3;
}
.aphids-action__image {
  width: calc(50% - 150px);
}
.aphids-action__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 1040px) {
  .aphids-action__container {
    width: 100%;
    padding: 50px var(--sidePadding);
  }
  .aphids-action__container ul {
    max-width: 100%;
  }
  .aphids-action__image {
    display: none;
  }
  .aphids-action__cta {
    max-width: 100%;
  }
}
@media (max-width: 590px) {
  .aphids-action__container ul {
    grid-template-columns: 1fr;
  }
  .aphids-action__container ul li {
    min-height: initial;
  }
}

/* Start Prevention */

.aphids-prevention {
  padding: 132px var(--sidePadding);
  position: relative;
  margin: 75px 0;
}
.aphids-prevention > div {
  width: 100%;
  position: relative;
  max-width: var(--maxScreenWidth);
  margin: 0 auto;
}

.aphids-prevention::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background: rgba(12, 99, 47, 1);
}

.aphids-prevention::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    360deg,
    rgba(203, 213, 11, 0.2) 34.13%,
    rgba(12, 99, 47, 0.2) 100%
  );
  z-index: -1;
}

.aphids-prevention__bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  z-index: -2;
}
.aphids-prevention__wrapper {
  max-width: var(--maxScreenWidth);
  margin: 0 auto;
  color: white;
}

.aphids-prevention__container {
  max-width: 671px;
}
.aphids-prevention__title {
  font-size: var(--textFontSizeL);
  text-transform: uppercase;
  line-height: 1;
  text-align: start;
  margin-bottom: 35px;
}
.aphids-prevention__content {
  font-size: var(--textFontSizeS);
  font-family: var(--secondaryFont);
  text-align: justify;
  line-height: 1.2;
}
.aphids-prevention__img {
  position: absolute;
  height: 44.5vw;
  max-height: 810px;
  object-fit: contain;
  right: 5%;
  top: 53%;
  transform: translateY(-50%);
  z-index: 1;
}

@media (max-width: 1728px) {
  .aphids-prevention__img {
    height: auto;
    max-height: 780px;
  }
}
@media (max-width: 1512px) {
  .aphids-prevention {
    padding: 85px var(--sidePadding);
  }
  .aphids-prevention__img {
    max-height: calc(600px + 10vw);
  }
  .aphids-prevention__container {
    max-width: calc(400px + 15.68vw);
  }
}
@media (max-width: 1100px) {
  .aphids-prevention__img {
    right: -3%;
  }
}
@media (max-width: 1000px) {
  .aphids-prevention {
    padding-bottom: 0;
    overflow: hidden;
  }
  .aphids-prevention__wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }
  .aphids-prevention__container {
    max-width: 100%;
  }
  .aphids-prevention__title {
    text-align: center;
  }
  .aphids-prevention__img {
    position: initial;
    top: initial;
    transform: initial;
    margin: 0 auto;
    width: 100%;
    max-width: 800px;
    height: auto;
    transform: rotate(12deg);
  }
}
@media (max-width: 768px) {
  .aphids-prevention {
    margin: 50px 0;
  }
}
/* End Prevention */

.post-template-pest-aphids .image-with-accordion-list {
  height: calc(1120px - 3vw);
  margin-bottom: 75px;
}

@media (max-width: 1100px) {
  .post-template-pest-aphids .image-with-accordion-list {
    height: calc(1120px - 3vw);
  }
}

@media (max-width: 768px) {
  .post-template-pest-aphids .image-with-accordion-list {
    height: 928px;
    margin-bottom: 50px;
  }
}

@media (max-width: 500px) {
  .post-template-pest-aphids .image-with-accordion-list {
    height: 980px;
  }
}
.post-template-pest-aphids .feedback__slider h2 {
  max-width: 699px;
}
