/*======================= HOSPITAL ============================*/
#hospital {
    scroll-margin-top: 8.4vh;
}

.hospital__content {
    flex-direction: column;
    row-gap: 50px;
    align-items: center;
    padding: 50px 0;
}

/*========================= SERVICES ==========================*/
/* Styles for title */
.service__tile {
    width: 100%;
    text-align: left;
    position: relative;
}

.service__tile::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60%;
    height: 3px;
    background-color: var(--accent);
}

/* Styles for service cards */
.hospital__service {
    width: 75%;
    -webkit-box-shadow: 0px 0px 19px -5px rgba(66, 68, 90, 1);
    -moz-box-shadow: 0px 0px 19px -5px rgba(66, 68, 90, 1);
    box-shadow: 0px 0px 19px -5px rgba(66, 68, 90, 1);
    border-radius: 15px;
    padding-top: 15px;
}

.hospital__service__thumbnail {
    width: 100%;
    min-height: 215px;
    padding: 0 15px;
    display: flex;
    align-items: center;
}

.hospital__service__thumbnail > img {
    width: 100%;
    pointer-events: none;
    user-select: none;
}

.hospital__service__info .hospital__service__title {
    text-align: center;
    padding: 15px 0;
    width: 100%;
    border-bottom: 1px solid var(--secondary);
}

.hospital__service__info input[type="checkbox"] {
    display: none;
}

.hospital__service__info .hospital__service__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s, padding 0.3s;
}

.hospital__service__info > label {
    display: flex;
    padding: 10px 0;
    justify-content: center;
    align-items: center;
    width: 100%;
    border-top: 1px solid var(--secondary);
    column-gap: 5px;
}

.hospital__service__info > label > h4 {
    color: var(--accent);
}

.hospital__service__info > label > .hospital__service__arrow {
    font-size: var(--small-mobile);
    color: var(--accent);
    transition: transform 0.3s;
}

.hospital__service__info input[type="checkbox"]:checked + .hospital__service__content {
    padding: 15px 15px 15px 30px;
    max-height: 1000px;
}

.hospital__service__info input[type="checkbox"]:checked ~ label > .hospital__service__arrow {
    transform: rotate(180deg);
}

/* For scrolling */
@media screen and (min-width: 1360px) {
    #hospital {
        scroll-margin-top: 13vh;
    }
}

/* For spaces */
@media screen and (min-width: 1000px) {
    .hospital__content {
        row-gap: 100px;
        padding: 100px 0;
    }
}

/* For large devices */
@media screen and (min-width: 800px) {
    .hospital__service {
        width: 100%;
        display: flex;
        box-shadow: none;
        border-radius: 0;
        align-items: center;
        justify-content: space-between;
    }
    .hospital__service__thumbnail {
        width: 32%;
    }
    .hospital__service__info {
        width: 58%;
    }
    .hospital__service__info > label {
        display: none;
    }
    .hospital__service__info > .hospital__service__title {
        border: none;
        padding: 0 0 5% 0;
        text-align: left;
    }
    .hospital__service__info > .hospital__service__content {
        max-height: max-content;
    }
    .hospital__service__info > .hospital__service__content > ul {
        padding: 0 30px;
    }

    /* Reversed direction */
    .direction__reversed {
        flex-direction: row-reverse;
    }
    .direction__reversed > .hospital__service__info {
        border-left: 2px solid var(--accent);
        padding-left: 6.5%;
    }

    /* Normal direction */
    .direction__normal > .hospital__service__info {
        border-right: 2px solid var(--accent);
        padding-right: 6.5%;
    }
}