body {
    overflow-x: visible;
}

.service {
    padding: 2rem;
    margin-top: 4rem;

    @media only screen and (max-width: 1200px) {
        padding: 0;
        margin-top: 1rem;
    }
}

.service-header {
    width: 100%;
    padding-bottom: 15rem;
    position: relative;
    margin-bottom: 2rem;

    @media only screen and (max-width: 640px) {
        min-height: 90vh;
    }

    @media only screen and (min-width: 641px) and (max-width: 1200px) {
        padding-bottom: 12rem;
        min-height: 50vh;
    }
}

.service-white-box {
    margin-left: 2rem;
    padding: 1rem 1rem 1rem 3rem;
    width: 50vw;
    background: #fff;
    border-radius: 2rem;
    position: relative;
    z-index: 10;
    flex-direction: column;
    display: flex;
    gap: 1.5rem;

    @media only screen and (max-width: 1200px) {
        margin-left: 0;
        padding: 1.5rem;
        width: 95vw;
        gap: 1rem;
        margin-right: 8%;
        border-radius: 0 0.7rem 0.7rem 0;
        align-self: flex-start;
    }

    @media only screen and (min-width: 1201px) and (max-width: 1600px) {
        gap: 0.5rem;
    }
}

.service-text-box {
    width: 55%;
    height: 70%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;

    @media only screen and (max-width: 1200px) {
        width: 100%;
        margin-left: 0;
        gap: 1rem;
    }

    @media only screen and (min-width: 1201px) and (max-width: 1600px) {
        gap: 0.5rem;
        padding-top: 0.5rem;
    }
}

.service-text-box h1 {
    color: #000;
    font-size: 3rem;
    font-style: normal;
    font-weight: 400;
    line-height: 115%;

    @media only screen and (max-width: 1200px) {
        font-size: 2rem;
    }

    @media only screen and (min-width: 1201px) and (max-width: 1500px) {
        font-size: 2.5rem;
    }
}

.service-text-box p {
    color: #4A4A4A;
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;

    @media only screen and (min-width: 1201px) and (max-width: 1500px) {
        font-size: 0.9rem;
    }
}

.service-category-border {
    width: 50vw;
    position: absolute;
    top: 5%;
    right: 4%;
    border-radius: 1rem;
    border: 2px solid #000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.2%;

    @media only screen and (max-width: 1200px) {
        width: 95vw;
        top: auto;
        bottom: 0;
        right: -4%;
        border-radius: 0.7rem;
        padding: 0.3%;
    }
}

.service-category-orange-box {
    border-radius: 1rem;
    background: #FF4C00;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 1rem 1.5rem 1.5rem 12rem;
    flex-direction: column;

    @media only screen and (max-width: 600px) {
        padding: 1rem 3rem 0.5rem 1rem;
        width: 100%;
        align-items: center;
    }

    @media only screen and (min-width: 601px) and (max-width: 1200px) {
        padding: 1rem 1rem 0.5rem 1rem;
        width: 100%;
        align-items: center;
    }
}

.service-category-orange-box h2 {
    color: #FFF;
    font-size: 1rem;
    font-style: normal;
    font-weight: 700;
    line-height: 150%;
    padding: 1rem;

    @media only screen and (max-width: 1200px) {
        font-size: 0.9rem;
        align-self: flex-start;
    }
}

.service-category-box {
    width: 100%;
    height: 100%;
}

.service-category-item {
    background: none;
    border-radius: 99px;
    border: 2px solid #FFF;
    padding: 0.5rem 1rem;
    gap: 0.5rem;
    color: #FFF;
    font-size: 1rem;
    font-weight: 700;
    line-height: 150%;
    cursor: pointer;
    margin: 0.25rem;

    @media only screen and (max-width: 600px) {
        max-width: 90%;
        font-size: 0.6rem;
        overflow:hidden;
        white-space:nowrap;
        text-overflow: ellipsis;
    }

    @media only screen and (min-width: 601px) and (max-width: 1200px) {
        max-width: 90%;
        font-size: 0.7rem;
        overflow:hidden;
        white-space:nowrap;
        text-overflow: ellipsis;
    }

    @media only screen and (min-width: 1201px) and (max-width: 1600px) {
        max-width: 90%;
        font-size: 0.8rem;
        overflow:hidden;
        white-space:nowrap;
        text-overflow: ellipsis;
    }
}

.service-category-item:hover {
    border: 2px black solid;
    color: white;
    background: var(--main-text-color);
}

.service-category-expand-button:hover {
    border: 2px black solid;
    color: white;
    background: var(--main-text-color);
}

.service-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    padding-bottom: 10vh;

    @media only screen and (max-width: 1200px) {
        gap: 1rem;
    }
}

.service-container-item {
    border-radius: 20px;
    border: 1px solid #4A4A4A;
    background: #FDFDFD;
    width: 70vw;
    height: 12vh;
    flex-shrink: 0;

    @media only screen and (max-width: 1200px) {
        width: 93vw;
    }
}

.service-container-item-header {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    height: 12vh;
    flex-shrink: 0;
    width: 70vw;

    @media only screen and (max-width: 1200px) {
        width: 93vw;
    }
}

.service-container-item-up {
    width: 100%;
    height: 50%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;

    @media only screen and (max-width: 1200px) {
        padding: 0 0.75rem;
    }
}

.service-container-item-up button {
    display: flex;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0.5rem;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    border-radius: 3rem;
    background: #FF4C00;
    border: none;
    cursor: pointer;

    @media only screen and (max-width: 1200px) {
        width: 2rem;
        height: 2rem;
    }
}

.service-container-item-up h3 {
    color: #000;
    font-size: 1.5rem;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;

    @media only screen and (max-width: 1200px) {
        font-size: 1rem;
    }
}

.service-container-item-bottom {
    background: #000 2px;
    width: 95%;
    height: 2px;
}

.service-container-item-open {
    border-radius: 1.25rem;
    border: 2px solid #FF4C00;
    background: #FDFDFD;
    width: 70vw;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;

    @media only screen and (max-width: 1200px) {
        width: 93vw;
    }
}

.service-container-item .service-container-item-content {
    display: none;
}

.service-container-item-open .service-container-item-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;

    @media only screen and (max-width: 1200px) {
        gap: 1rem;
        padding: 1rem;
    }
}

.service-container-item-content {
    padding: 1rem 2rem;
}

.service-container-item-body {
    color: #4A4A4A;
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    width: 100%;
    height: 100%;
    padding-left: 1rem;
    margin-bottom: 1rem;

    @media only screen and (max-width: 1200px) {
        font-size: 0.9rem;
    }
}

.service-container-item-body h2 {
    color: #1a1a1a;
    font-size: 1.2rem;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    width: 100%;
    height: 100%;
    padding-bottom: 1rem;

    @media only screen and (max-width: 1200px) {
        font-size: 1rem;
    }
}

.service-container-item-body ul, ol {
    margin-left: 2rem;
}

.service-container-item-open>.service-container-item-header .service-container-item-up>h3 {
    color: #FF4C00;
}

.service-container-item-open>.service-container-item-header .service-container-item-bottom {
    background: #FF4C00;
}


.service-footer {
    min-height: 60vh;
    display: flex;
    position: relative;
    justify-content: flex-end;
    width: 96%;
    margin: 8vh 0;
    align-items: flex-end;

    @media only screen and (max-width: 1200px) {
        width: 100%;
        padding: 0;
        margin-top: 1rem;
        flex-direction: column;
        margin-bottom: 5vh;
    }
}

.service-footer-photo-border {
    position: absolute;
    top: 0;
    left: 10%;
    border-radius: 20px;
    border: 2px solid #000;
    height: 65vh;
    width: 65vh;
    display: flex;
    justify-content: center;

    @media only screen and (max-width: 900px) {
        left: auto;
        right: 5%;
        height: 40vh;
        width: 40vh;
    }

    @media only screen and (min-width: 901px) and (max-width: 1200px) {
        left: auto;
        right: 5%;
        height: 50vh;
        width: 50vh;
    }

    @media only screen and (min-width: 1201px) and (max-width: 1500px) {
        height: 55vh;
        width: 55vh;
    }
}

.service-footer-photo {
    flex-shrink: 0;
    border-radius: 20px;
    aspect-ratio: 1 / 1;
    height: 99%;
    width: 99%;
    align-self: center;
}

.service-footer-header {
    text-transform: uppercase;
    font-size: 1rem;
    color: var(--secondary-color);
}

.service-footer-title {
    color: var(--main-text-color);
    text-edge: cap;
    font-size: 3rem;
    font-style: normal;
    font-weight: 400;
    line-height: 115%;

    @media only screen and (max-width: 1200px) {
        font-size: 2rem;
    }
}

.service-footer-description {
    color: var(--secondary-text-color);
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
}

.service-footer-orange-block {
    position: absolute;
    left: 9%;
    background-color: var(--secondary-color);
    padding: 1.5rem;
    border-radius: 0.7rem;
    height: 30vh;
    align-self: center;
    display: flex;
    width: 10vw;
    z-index: -10;

    @media only screen and (max-width: 1200px) {
        position: static;
        left: auto;
        padding: 0;
        width: 80vw;
        height: 20vh;
        margin-right: 15%;
        margin-top: 11vh;
        margin-bottom: 20vh;
    }
}

.service-footer-text-box {
    width: 40%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-self: center;
    gap: 2rem;

    @media only screen and (max-width: 1200px) {
        width: 85%;
        gap: 1rem;
    }
}