.desktop-subnav {
    margin-bottom: 1rem;
    display: none;
}
.mobile-subnav {
    display: flex;
    background-color: var(--edmund-color-accent-purple);
    width: 100%;
    flex-direction: column;
    border-top: 4px solid rgba(0, 0, 0, 0.2);
    border-bottom: 4px solid rgba(0, 0, 0, 0.2);
}
.mobile-subnav-header {
    padding: 1rem 1em;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}
.mobile-subnav-header a {
    font-size: 32px;
    font-weight: bold;
    color: var(--edmund-white);
    text-decoration: none;
    position: relative;
}
.mobile-subnav-more {
    display: flex;
    flex-direction: row;
    background-color: var(--edmund-vivid-purple);
    padding: 1rem 1rem;
    border-radius: 25px;
    border: 4px solid var(--edmund-white);
    height: 50px;
    align-items: center;
}
.mobile-subnav-more span {
    font-weight: bold;
    color: var(--edmund-white);
    text-transform: uppercase;
    font-size: 16px;
    height: 100%;
    margin-top: -7px;
}
.more-arrow-button {
    width: 30px;
    position: relative;
}
.more-arrow-button img {
    width: 12px;
    transform: rotate(270deg);
    position: absolute;
    left: 10px;
}
.top-arrow {
    top: -5px;
}
.bottom-arrow {
    bottom: -5px;
}
.mobile-subnav-more.clicked {
    background-color: var(--edmund-color-primary);
}
.mobile-subnav-more.clicked img {
    transform: rotate(90deg);
}
.mobile-subnav a:hover {
    color: var(--edmund-color-accent-yellow);
}

.mobile-subnav nav {
    margin: 1rem 3em;
    display: none;
}
.mobile-subnav nav ul {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    width: 100%;
    justify-items: start;
    background-color: var(--edmund-color-accent-purple);
    padding: 0;
}
.mobile-subnav nav ul li {
    list-style-type: none;
    background-image: none;
    background-color: unset;
    padding: 0;
    margin: 0;
}
.mobile-subnav nav ul li a {
    font-size: 24px;
    font-weight: 600;
    text-decoration: none;
    color: var(--edmund-white);
    position: relative;
}

.mobile-nav-bar {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    justify-items: center;
    align-items: center;
    color: white;
    background-color: var(--edmund-color-primary);
    position: fixed;
    gap: 1rem;
    width: 100%;
    height: 90px;
    top: 0px;
    padding: 1rem;
    z-index: 400;
}
.mobile-nav-bar-logo {
    width: 62px;
    height: 62px;
}
.modal-footer {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
    gap: 40px;
    margin-bottom: 15vh;
}
.modal-logo {
    width: 80px;
    height: 80px;
}
.mobile-nav-bar-identity {
    font-size: 22px;
    font-weight: 600;
    width: 100%;
}
.mobile-nav-close-button {
    width: 70px;
    display: flex;
    height: 70px;
    background-color: var(--edmund-color-primary);
    color: var(--edmund-white);
    flex-shrink: 0;
    flex-direction: column;
    gap: 0;
    border-radius: 10px;
    border: 2px var(--edmund-white) solid;
    position: absolute;
    right: 15px;
    top: 12px;
}
.mobile-nav-close-button-caption {
    margin: 10px auto 0 auto;
    text-align: center;
    font-size: 19px;
    font-weight: 600;
}
.mobile-nav-close-button-arrow {
    transform: rotate(90deg);
    width: 25px;
    margin: -10px auto 0 auto;
}
.mobile-nav-open-button {
    width: 70px;
    display: flex;
    height: 70px;
    background-color: var(--edmund-white);
    color: var(--edmund-color-primary);
    flex-shrink: 0;
    flex-direction: column;
    gap: 0;
    border-radius: 10px;
    position: absolute;
    right: 15px;
    top: 12px;
}
.mobile-nav-open-button-caption {
    margin: 10px auto 0 auto;
    text-align: center;
    font-size: 19px;
    font-weight: 600;
}
.mobile-nav-open-button-arrow {
    transform: rotate(270deg);
    width: 25px;
    margin: -10px auto 0 auto;
}
body {
    margin-top: 90px;
}
.menu-caption-container {
    display: flex;
    flex-direction: row;
    place-content: center center;
    align-items: center;
    justify-content: center;
}

.menu-caption-text {
    font-weight: 600;
    font-size: 16px;
    margin: auto;
}

.social-nav {
    display: none;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, auto);
    grid-template-areas:
        'b a'
        'c .'
        'd .';
    gap: 4px;
    z-index: 5;
    background-color: var(--edmund-white);
    width: 45px;
    direction: rtl;
    padding: 0 5px 3px 5px;
}

/* Assign each link to a grid-area based on its position in HTML */
.social-nav .icon-nav-button-link:nth-child(1) {
    grid-area: a;
}

.social-nav .icon-nav-button-link:nth-child(2) {
    grid-area: b;
}

.social-nav .icon-nav-button-link:nth-child(3) {
    grid-area: c;
}

.social-nav .icon-nav-button-link:nth-child(4) {
    grid-area: d;
}

.burger-button-container {
    display: flex;
    flex-direction: row;
    place-content: center center;
    gap: 5px;
    align-items: center;
}

.social-nav .icon-nav-button-link [class^='icomoon-'] {
    color: var(--edmund-color-primary);
}
.social-nav .icon-nav-button-link [class^='icomoon-']:hover {
    color: var(--edmund-color-accent-purple);
}
.footer-social-nav,
.icon-nav-button-link [class^='icomoon-'] {
    color: var(--edmund-white);
}
.modal-social-nav {
    display: flex;
    flex-direction: row;
    gap: 20px;
}
.modal-social-nav .icon-nav-button-link [class^='icomoon-'] {
    font-size: 40px;
    width: 40px;
    height: 40px;
}
.icon-nav-button-link [class^='icomoon-'] {
    font-size: 30px;
    width: 30px;
    height: 30px;
    display: inline-block;
}

.icon-nav-button-link [class^='icomoon-']:hover {
    color: var(--edmund-color-accent-yellow);
}
.icon-nav-button {
    font-size: 30px;
    width: 30px;
    height: 30px;
    display: inline-block;
    margin: auto;
}

.modal-nav {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    /* opacity: 0; */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--edmund-vivid-purple);
    z-index: 500;
    color: var(--edmund-platinum);
    transition: opacity 50ms ease-out;
    padding-bottom: 2rem;
}
.modal-nav-bar {
    flex-direction: column;
    display: flex;
    gap: 20px;
    margin: 2rem 0 60px 2rem;
}

.modal-nav-bar a {
    display: block;
    font-size: 40px;
    font-weight: 600;
    text-decoration: none;
    color: var(--edmund-white);
}

[role='button'] {
    cursor: pointer;
}

.modal-nav-back-button {
    position: absolute;
    z-index: 21;
    top: 10px;
    left: 10px;
    place-content: center center;
    align-items: center;
    font-size: 40px;
    width: 40px;
    height: 40px;
    display: inline-block;
    margin: auto;
    color: var(--edmund-platinum);
}

.modal-nav-back-button:hover {
    color: var(--edmund-pink);
}

.footer-nav a {
    color: white;
    display: block;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
}
.footer-nav a:hover {
    color: var(--edmund-color-accent-yellow);
}
.footer-nav ul,
.footer-nav li {
    list-style-type: none;
}
.footer-nav {
    display: flex;
}
.footer-nav ul {
    column-count: 2;
    column-gap: 1rem;
    width: 100%;
    padding: 0;
    margin: 0;
}

.footend-desktop-logo {
    display: none;
}
.footer-social-nav {
    display: flex;
    flex-direction: row;
    gap: 5px;
    justify-content: space-between;
    color: white;
    border-left: 2px;

    /* border-left-color: white; */

    /* border-left-style: solid; */

    /* padding-left: 30px; */
}
.footer-nav > ul > li {
    break-inside: avoid;
    display: block;
    margin-bottom: 1rem;
}
.footer-nav .sub-menu {
    display: flex;
    flex-direction: column;
    margin: 2px 0 2px 1rem;
}
.footer-nav .sub-menu li {
    margin: 2px 0;
}
.footer-nav .sub-menu li a {
    color: var(--edmund-light-grey);
    font-weight: 500;
    font-size: 16px;
}
.footer-nav .sub-menu li a:hover {
    color: var(--edmund-color-accent-yellow);
}

.desktop-nav-logo {
    display: none;
}

.logo-banner-nav-desktop {
    display: none;
}

.desktop-nav-bar {
    display: none;
}
.desktop-banner-and-nav {
    margin-top: 1rem;
}

.desktop-banner-and-nav .social-nav {
    position: absolute;
    top: -3px;
    right: 0;
    align-items: center;
    justify-content: start;
}
.desktop-banner-and-nav .social-nav {
    display: none !important;
}
@media only screen and (width <= 360px) {
}

@media only screen and (width >= 600px) {
}

@media only screen and (width >= 940px) {
    .mobile-subnav {
        display: none;
    }
    .desktop-subnav {
        display: grid;
        background-color: var(--edmund-color-accent-purple);
        width: 100%;
        grid-template-columns: 15% 1fr;
        justify-content: space-evenly;
        align-items: flex-start;
    }
    .desktop-subnav-header {
        padding: 1rem 3rem;
        width: 10%;
    }
    .desktop-subnav-header a {
        font-size: 30px;
        font-weight: bold;
        color: var(--edmund-white);
        text-decoration: none;
        position: relative;
        text-align: left;
    }
    .desktop-subnav-header a:hover::before {
        content: '';
        position: absolute;
        left: -1.2em;
        background-color: var(--edmund-white);
        width: 0.8em;
        height: 0.8em;
        top: 0.3em;
    }
    .desktop-subnav nav {
        margin: 0rem 1rem;
        width: 100%;
        padding-right: 2rem;
    }
    .desktop-subnav nav ul {
        display: grid;
        grid-auto-flow: row;
        grid-template-columns: repeat(3, auto);
        grid-template-rows: repeat(3, auto);
        row-gap: 1rem;
        column-gap: 3rem;
        justify-items: start;
    }
    .desktop-subnav nav ul li {
        list-style-type: none;
    }
    .desktop-subnav nav ul li a {
        font-size: 20px;
        font-weight: 600;
        text-decoration: none;
        color: var(--edmund-white);
        position: relative;
    }
    .desktop-subnav nav a:hover::before {
        content: '';
        position: absolute;
        left: -2rem;
        background-color: var(--edmund-white);
        width: 26px;
        height: 26px;
        top: 4px;
    }
    .footend-mobile-logo {
        display: none;
    }
    body {
        margin-top: 0;
    }
    .footer-nav {
        grid-template-rows: repeat(3, 0.5fr);
        grid-template-columns: repeat(5, 1fr);
        align-content: center;
        gap: 10px 20px;
        padding-top: 10px;
    }

    .desktop-banner-and-nav .social-nav {
        display: grid !important;
    }
    .mobile-nav-bar {
        display: none;
    }

    .desktop-nav-logo {
        display: block;
        width: 100%;
        max-width: 1200px;
        min-width: 800px;
        overflow: hidden;
        position: relative;
    }

    .desktop-nav-bar {
        display: flex;
        position: absolute;
        top: 74px;
        left: 20%;
        width: 80%;
        justify-content: flex-start;
        gap: 2rem;
        align-items: center;
    }

    .desktop-nav-bar .social-nav {
        padding: 3px;
        height: 31px;
        align-items: center;
        top: 100px;
    }

    /* Desktop Main Nav Links */

    .main-nav-link {
        display: inline-block;
        font-size: 0.8rem;
        font-weight: 600;
        color: var(--edmund-white);
        margin: 2px;
        text-decoration: none;
    }
    .desktop-nav-bar a.active {
        color: var(--edmund-white);
        text-decoration: underline;
        text-decoration-color: var(--edmund-white);
        text-decoration-offset: 2px;
        text-decoration-thickness: 3px;
    }

    .main-nav-link:hover,
    .main-nav-link:focus {
        color: var(--edmund-color-accent-yellow);
        cursor: pointer;
    }

    .social-nav [class^='icomoon-']:before,
    .social-nav [class^='icomoon-'] {
        font-size: 1.5rem;
        width: 1.5rem;
        height: 1.5rem;
        inset: 0;
    }

    .footer-social-nav {
        flex-direction: row;
        gap: 0.8rem;
    }

    .footer-nav-divider {
        background-color: white;
        width: 2px;
        height: 100px;
        display: inline-block;
    }
    .footer-hrule {
        opacity: 0.2;
    }
    .footer-nav ul {
        column-count: unset;
        column-gap: unset;
        display: grid;
        grid-template-columns: repeat(6, auto);
        grid-template-rows: unset;
        grid-auto-flow: column;
        justify-content: space-between;
    }
    .footend-desktop-logo {
        display: block;
    }
    .footend-banner-row img {
        opacity: 20%;
    }
}

@media only screen and (width >= 1240px) {
    .desktop-banner-and-nav .social-nav {
        top: 2px;
        width: 56px;
    }
    .footer-social-nav {
        gap: 1rem;
    }

    .social-nav [class^='icomoon-']:before,
    .social-nav [class^='icomoon-'] {
        font-size: 2rem;
        width: 2rem;
        height: 2rem;
    }

    .desktop-nav-button {
        font-size: 24px;
    }

    .desktop-nav-bar {
        top: 100px;
        gap: 3.5rem;
    }
    .main-nav-link {
        font-size: 1rem;
    }
    .footer-nav {
        gap: 10px;
    }
    .desktop-subnav nav ul {
        padding-left: 5rem;
    }
}
