@media screen and (min-width: 365px) {
    #pay .container {
        box-sizing: border-box;
        padding: 0 1.4rem;
    }
    #services .item p {
        height: 13rem;
    }


}

@media screen and (min-width: 500px) {

    #services .item p {
        height: 11rem;
    }
}

@media screen and (min-width: 760px) {

    #services .item p {
        height: 8rem;
    }
}

@media screen and (min-width: 900px) {
    .background {
        top: 500px !important;
    }
    #banner .carousel-item {
        height: 500px !important;
    }

    #services .item p {
        height: 9rem;
    }
    
}

@media screen and (max-width: 1200px) {
    #banner .rotating-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    footer .container {
        flex-direction: column;
    }
}

@media screen and (min-width: 1200px) {

    .nav-item .nav-link {
        padding-inline: 0;
    }

    #banner .rows {
        grid-template-columns: repeat(4,1fr);
        grid-template-areas: 
        "image image text text"
    }

    #banner .rotating-image {
        grid-column: 1 /-1;
        grid-row: image;
        opacity: 1;
        object-fit: cover;
        margin-block: 2.5rem;
    }

    #dots {
        flex-direction: column;
        justify-content: start;
        align-items: start;
        gap: 1rem 0px;
        flex: 1 1 100%;
      }
      
      #services .owl-dot {
        transition: all var(--tran-2) ease-in-out;
        color: var(--text-para);
        box-shadow: 0  2px 4px var(--image-shadow);
        padding: 1.4rem;
        width: 100%;
      }
      
      #services .owl-dot:last-child {
        box-shadow: 0  2px 4px var(--image-shadow);
        padding: 1.4rem;
      }
      
      #services .owl-dot.active{
        background: var(--prime);
      }
      
      #services .owl-dot button {
        width: 100%;
        text-align: start;
        font-size: 1.1rem;
        font-weight: 400;
        background: transparent;
        font-family: var(--para);
        color: var(--text-para);
        border: 0;
        outline: 0;
      }
      
    #services .owl-dot.active button {
        color: var(--dark-background);
        transition: color;
    }

    #contact .container {
        justify-content: end;
    }

    footer .container {
        flex-direction: row;
    }
}

@media screen and (min-width: 1400px) {
    #services .item p {
        height: 8rem;
    }
}