/* HOME PAGE CONTENT GRID */
.content-grid {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: 1fr;
}

/* MISSION STATEMENT STYLES */
.ms {
    grid-row: 1;
    justify-self: center;
    align-self: center;
    width: 60%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 2rem 0 2rem;
}

.ms h1 {
    text-align: center;
}

.ms-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem 2rem 2rem 2rem;
}

.ms-link {
    margin-top: 2rem;
    width: 50%;
}

/* MISSION STATEMENT SECTION STYLES - MOBILE */
@media only screen and (max-width: 992px) {
    .ms {
        width: 100%;
        padding: 0 1rem 0 1rem;
    }

    .ms-content {
        padding: 1rem;
    }

    .ms-link {
        width: 90%;
    }
}

/* EMPLOYMENT OPPORTUNITIES SECTION STYLES */
.eo-wrapper {
    padding: 3rem 0 3rem 0;
    margin-top: 3rem;
    grid-row: 2;
    display: flex;
    background-color: #F5F5F5;
}

.eo-content {
    width: 50%;
    padding: 0 1rem 0 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.eo-content-title {
    width: 60%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.eo-content-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem 2rem 2rem 2rem;
}

.eo-content-body p {
    text-align: center;
}

.eo-content-body a {
    margin-top: 2rem;
    justify-content: center;
    width: 60%;
}

.eo-image {
    width: 60%;
    height: 450px;
}

.eo-image img {
    width: 100%;
    height: 95%;
    object-fit: cover;
}

.clip-right-container {
    grid-column: 1 / 3;
    grid-row: 1;
    padding-top: .15rem;
    padding-left: .15rem;
    justify-self: end;
}

.img-container {
    height: 450px;
    background-color: #f5f5f5;
}

/* EMPLOYMENT OPPORTUNITIES SECTION STYLES - MOBILE */
@media only screen and (max-width: 992px) {
    .eo-wrapper {
        flex-direction: column-reverse;
        padding: 0;
    }

    .eo-image {
        padding: 0;
        margin: 0;
        width: 100%;
    }

    .eo-image img {
        object-fit: cover;
        width: 100%;
        height: 100%;
    }

    .eo-content {
        width: 100%;
    }

    .eo-content-title {
        width: 100%;
    }

    .eo-content-body a {
        width: 100%;
    }

    .clip-right-img {
        clip-path: none;
    }

    .clip-right-container {
        clip-path: none;
        padding: 0;
        background-color: transparent;
        justify-self: unset;
    }
}

/* INFO TILES SECTION STYLES */
.body-menu-wrapper {
    margin-top: 3rem;
    grid-row: 3;
    margin-bottom: 3rem;
}

.body-menu {
    overflow-y: hidden;
    display: flex;
    justify-content: space-evenly;
    padding: 0.5rem 0;
}

.body-menu-item {
    position: relative;
    width: 30%;
    background-color: #F5F5F5;
    border-radius: 6px;
    transition: transform 0.15s, box-shadow 0.15s;
}

.body-menu-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.body-menu-item:has(.body-menu-link:focus-visible) {
    outline: 2px solid rgba(244, 116, 6, 1);
    outline-offset: 2px;
}

.body-menu-item-image {
    overflow: hidden;
    border-radius: 6px 6px 0 0;
}

.body-menu-item-image img {
    display: block;
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s;
}

.body-menu-item:hover .body-menu-item-image img {
    transform: scale(1.05);
}

.body-menu-item-content {
    padding: 1.5rem;
}

.body-menu-item h2 {
    font-size: 32px;
    font-style: italic;
}

.body-menu-link {
    color: inherit;
    text-decoration: none;
}

.body-menu-link::after {
    content: "";
    position: absolute;
    inset: 0;
}

.body-menu-link:focus {
    outline: none;
}

.body-menu-item .card-divider {
    width: 40px;
    margin-top: 0.75rem;
    transition: width 0.2s;
}

.body-menu-item:hover .card-divider {
    width: 80px;
}

.body-menu-item p {
    margin-top: 1rem;
    font-size: 20px;
}

.tel-link {
    position: relative;
    z-index: 1;
    text-decoration: none;
    color: rgba(244, 116, 6, 1);
}

.tel-link:hover {
    color: rgb(243, 132, 35);
}

.card.animate {
    animation: fadeInUp 1.2s backwards;
}

/* INFO TILES SECTION STYLES - DESKTOP */
@media only screen and (min-width: 992px) {
    .card.animate:nth-child(1) {
        animation-delay: 0.25s;
    }

    .card.animate:nth-child(2) {
        animation-delay: 0.5s;
    }

    .card.animate:nth-child(3) {
        animation-delay: 0.75s;
    }
}

/* INFO TILES SECTION STYLES - MOBILE */
@media only screen and (max-width: 992px) {
    .body-menu {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .body-menu-item {
        margin-top: 2rem;
        width: 90%;
    }
}

@media only screen and (max-width: 768px) {
    .body-menu-item {
        width: 100%;
    }
}

@media only screen and (min-width: 993px) {
    .card.animate {
        animation: fadeInUp 1.2s backwards;
    }

    .card.animate:nth-child(1) {
        animation-delay: 0.25s;
    }

    .card.animate:nth-child(2) {
        animation-delay: 0.5s;
    }

    .card.animate:nth-child(3) {
        animation-delay: 0.75s;
    }
}

@media only screen and (max-width: 992px) {

    .card,
    .card.animate {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}