/*
 *   Pests style for gallura template
 */

/* Internal pest section */
section#shop {
    text-align: center;
    padding-top: 0;
    padding-bottom: 2em;
    padding-left: 3%;
    padding-right: 3%;
}

section#shop > h3 {
    color: var(--black);
    text-transform: initial;
}

/* Pest section */
section#pest {
    display: flex;
    padding: 0;
}

section#pest .specie-container.bgGreen {
    width: 32%;
    padding: 3em 3% 3em 5%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

section#pest .species-container {
    width: 68%;
    padding: 3em 5% 3em 6%;
    position: relative;
}

section#pest .pest {
    width: 23%;
    margin: 1em 0 1em 2%;
    display: inline-block;
    border-radius: 7px;
    overflow: hidden;
    padding: 1em;
    background-color: var(--white);
    border: 1px solid var(--white);
}

section#pest a.pest:hover {
    border: 1px solid var(--green);
    -webkit-box-shadow: 0px 0px 15px 0px rgba(0,0,0,0.2);
       -moz-box-shadow: 0px 0px 15px 0px rgba(0,0,0,0.2);
         -o-box-shadow: 0px 0px 15px 0px rgba(0,0,0,0.2);
            box-shadow: 0px 0px 15px 0px rgba(0,0,0,0.2);
}

section#pest .specie-container.bgGreen .pest {
    width: 50%;
    border: 1px solid var(--green);
}

section#pest .specie-container.bgGreen:after {
    right: -50px;
    position: absolute;
    content: "";
    border-top: 70px solid transparent;
    border-bottom: 70px solid transparent;
    border-left: 70px solid var(--green);
    top: 6em;
    box-sizing: border-box;
    z-index: 2;
}

section#pest .specie-container.bgGreen h2.white {
    color: var(--white);
}

section#pest .species-container h2.green {
    color: var(--green);
    margin-left: 2%;
}

section#pest .pest img {
    width: 100%;
    display: block;
}

section#pest .pest h2 {
    background-color: var(--white);
    display: block;
    text-align: center;
    height: 2em;
    padding: .5em 0;
    line-height: 1.1em;
    font-size: .8em;
}

section#pest div#back {
    width: 100%;
    display: inline-block;
    text-align: center;
    margin-top: 2em;
}

section#pests {
    padding: 0;
}

section#pests .pests-container {
    padding: 3em 4%;
    display: flex;
    flex-wrap: wrap;
}

section#pests .pests-container .photo {
    width: 18%;
    float: left;
    margin: 1%;
    display: block;
}

section#pests .pests-container .photo img {
    width: 100%;
    display: block;
}

section#pests .pests-container .photo h5 {
    background-color: var(--white);
    text-align: center;
    padding: 1em 3%;
    margin: 0;
    font-size: .9em;
    color: var(--black);
}

section#pests .pests-container .photo:hover h5 {
    color: var(--green);
}

/* Internal pest */
section#internal {
    padding: 0;
    padding-bottom: 6em;
    display: flex;
}

section#internal > div.left {
    padding: 3em 5%;
}

section#internal > div.left img {
    display: block;
    width: 100%;
    margin-bottom: 1em;
}

section#internal > div.left h1 {
    font-size: 2em;
}

section#internal > div.right {
    padding: 3em 5%!important;
    display: block;
    color: var(--white);
}

section#internal > div.right h2.service-title {
    font-size: 2em;
    text-transform: capitalize;
    margin-bottom: 1em;
}

section#internal > div.right h3.service-subtitle {
    font-size: 1.2em;
    text-transform: uppercase;
    margin-bottom: 1em;
    color: var(--white);
}

section#internal > div.right p.body {
    margin-bottom: 2em;
}

section#internal > div.right .buttonContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
}

section#internal > div.right .buttonContainer a {
    border: 1px solid var(--white);
    width: 90%;
    margin-bottom: 1em;
    text-align: center;
}

@media screen and (max-width: 768px) {

    /* Pests section */
    section#pests .pests-container .button {
        margin: 3% 1% 3% 1%;
    }

    section#pests .pests-container .photo h5 {
        font-size: .8em;
    }

    section#pest .pests-container a.pest {
        width: 31%;
        margin: 1%;
        float: left;
    }

    section#pests .pests-container .photo {
        width: 48%;
    }

    /* Pest middle section */
    section#pest {
        flex-direction: column;
    }

    section#pest div#back {
        margin: 1.5em 0;
    }

    section#pest div.specie-container.bgGreen {
        width: 100%;
        padding-bottom: 6em;
        padding: 2em 0 3em;
    }
    
    section#pest .species-container {
        width: 100%;
        padding: 3em 5% 3em 3%;
    }

    section#pest .specie-container.bgGreen .pest {
        width: 30%;
    }

    section#pest .specie-container.bgGreen::before {
        position: absolute;
        content:"";
        border-style: solid;
        border-width: 0 50px 50px;
        border-color: var(--lightGrey) transparent var(--lightGrey) var(--lightGrey);
        left:0;
        right: 50%;
        bottom: -1px;
    }
    
    section#pest .specie-container.bgGreen::after {
      left: 50%;
      position: absolute;
      content:"";
      width: 50%;
      border-style: solid;
      border-width: 0 0 50px 50px;
      border-color: transparent transparent var(--lightGrey) transparent;
      bottom: -1px;
      box-sizing: border-box;
    }

    section#internal {
        flex-direction: column;
    }

    section#internal > div.right .buttonContainer {
        flex-direction: row;
        justify-content: space-between;
    }

    section#internal > div.right .buttonContainer a {
        width: 45%;
    }
}

@media screen and (max-width: 576px) {

    /* Pest section */
    section#pest .species-container {
        padding: 3em 4%;
    }

    section#pest .pest {
        width: 48%;
        margin: 1%;
    }

    /* Pests section */
    section#pests .pests-container .photo {
        width: 100%;
        text-align: center;
        margin: 1em 0;
    }
    section#pest .species-container .button {
        margin: 0 auto;
        display: block;
    }

    section#internal > div.right .buttonContainer {
        flex-direction: column;
        justify-content: center;
    }

    section#internal > div.right .buttonContainer a {
        width: 90%;
    }

    section#pest .species-container h2.green,
    section#pest .specie-container.bgGreen h2.white {
        font-size: 2em;
        margin-bottom: .5em;
    }
}