/*====================================
            Small Screens            
=====================================*/
@media only screen and (min-width: 600px) and (max-width: 640px) {
    .wp-block-column:not(:only-child) {
        flex-basis: 100% !important;
        flex-grow: inherit;
    }
    .wp-block-column:nth-child(2n) {
        margin-left: inherit;
    }
}
@media only screen and (max-width: 40em) {
    html {
        font-size: 8.5px;
    }
    /* TOP BAR Mobile STYLING */
    .top-bar {
        align-self: flex-end;
    }
    .top-bar .menu-toggler {
        position: relative;
    }
    .top-bar .menu-toggler::before {
        top: 50%;
        margin-top: -1px;
    }
    .top-bar .menu-toggler span {
        /*position: relative;*/
        font-weight: 700;
        text-transform: uppercase;
        cursor: pointer;
        padding-left: 30px;
        font-size: 18px;
        line-height: 20px;
    }
    .top-bar .menu-toggler::before,
    .top-bar .menu-toggler span::after,
    .top-bar .menu-toggler span::before {
        content: '';
        display: block;
        width: 25px;
        height: 2px;
        background-color: #313359;
        position: absolute;
        left: 0;
        transition: all 0.3s ease;
    }
    .top-bar .menu-toggler span::after {
        top: 1px;
    }
    .top-bar .menu-toggler span::before {
        /*top: 100%;
        margin-top: -1px;*/
        bottom: 1px;
    }
    .top-bar .menu-toggler span:hover::after{
        transform: rotate(25deg);
    }
    .top-bar .menu-toggler span:hover::before{
        transform: rotate(-25deg);
    }
    .top-bar-section {
        display: none;
        background-color: #313359;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 99;
        overflow: hidden;
        overflow-y: auto;
        width: 100%;
        height: 100%;
    }
    .top-bar-section .close {
        display: block;
        width: 20px;
        height: 20px;
        position: absolute;
        top: 15px;
        right: 15px;
        cursor: pointer;
        z-index: 99;
    }
    .top-bar-section .close::before,
    .top-bar-section .close::after {
        content: '';
        display: block;
        width: 100%;
        height: 2px;
        background-color: #63B2D4;
        position: absolute;
    }
    .top-bar-section .close::before {
        top: 9px;
        left: 0;
        transform: rotate(45deg);
    }
    .top-bar-section .close::after {
        bottom: 9px;
        right: 0;
        transform: rotate(-45deg);
    }
    .top-bar-section .back {
        text-transform: uppercase;
        color: #63B2D4;
        font-weight: 700;
        font-size: 15px;
        position: absolute;
        top: 15px;
        right: 45%;
        z-index: 99;
        display: none;
    }
    .top-bar-section .common-menu-wrapper {
        position: relative;
        display: flex;
        align-items: flex-end;
        justify-content: flex-start;
        flex-direction: column;
        height: 100%;
        padding: 70px 50px;
    }
    .top-bar-section .menu {
        padding: 0;
        text-align: right;
    }
    .top-bar-section .menu > li {
        position: inherit;
        margin-bottom: 20px;
    }
    .top-bar-section .menu > li > a,
    .top-bar-section .menu > li > span{
        color: white;
        text-transform: uppercase;
        font-size: 20px;
        font-weight: 700;
        text-decoration: none;
    }
    .top-bar-section .submenu-wrapper {
        position: absolute;
        top: 0;
        right: 0;
        width: 60%;
        height: 100%;
        background-color: #fff;
        border-left: 2px solid #63B2D4;
        padding: 20px;
        padding-top: 50px;
        transform: translateX(100%);
        transition: all 0.3s ease;
    }
    .top-bar-section .submenu-wrapper.expanded {
        transform: translateX(0);
    }
    .top-bar-section .submenu-wrapper .submenu-inner-wrap {
        display: block;
    }
    .top-bar-section .submenu-wrapper .body-wrap {
        font-size: 16px;
        text-transform: none;
        font-weight: normal;
        color: #313359;
    }
    .top-bar-section .submenu-wrapper .dropdrown_menu {
        margin-top: 25px;
        margin-bottom: 25px;
        padding: 0;
    }
    .top-bar-section .submenu-wrapper .dropdrown_menu li::before {
        display: none;
    }
    .top-bar-section .submenu-wrapper .dropdrown_menu li a {
        color: #2A95C3;
        text-transform: none;
        font-weight: normal;
    }


    .header .row {
        flex-direction: column;
    }
    .header-right {
        flex-direction: column-reverse;
        margin-top: 20px;
        width: 100%;
    }
    .header .search-bar {
        margin: 0;
        margin-bottom: 15px;
        margin-top: 15px;
        width: 100%;
    }
    .header .search-bar form {
        max-width: none;

    }
    .header .search-bar input[type="text"]:focus{
        width: 100%;
    }
    .row {
        flex-direction: column;
    }

    .footer {
        padding-top: 30px;
    }
    .top-footer {
        flex-direction: row;
        flex-wrap: wrap;
        margin-bottom: 15px;
    }
    .footer .footer-menu {
        margin: 0;
        margin-bottom: 15px;
        padding-right: 15px;
    }
    .footer .footer-menu:not(.menu-location) {
        flex-basis: 50%;
    }
    .footer .footer-menu.menu-location {
        margin-left: 15px;
        padding: 0;
        margin-bottom: 0;
        display: flex;
        flex-wrap: wrap;
        flex-basis: 100%;
        margin-top: 25px;
    }
    .footer .footer-menu.menu-location p {
        flex-basis: 50%;
        margin-bottom: 15px;
    }
    .footer .footer-menu.menu-location p:first-child {
        padding-right: 15px;
    }
    .footer .footer-menu.menu-location ul {
        flex-basis: 100%;
        justify-content: center;
    }

    /*single page styling*/
    .single-post-container .content-row .cover-col {
        flex-basis: auto;
    }
    .single-post-container .content-row .content-col {
        padding-left: 0;
    }
    .single-post-container .content-row .content-col .post-meta {
        padding: 20px 0 30px 0;
        flex-wrap: wrap;
        max-width: none;
    }
    .single-post-container .content-row .content-col .post-meta .right-col {
        padding-left: 15px;
    }

    .content-wrapper main.history-page > .wp-block-columns .wp-block-column:not(:first-child) {
        padding-left: 0;
    }

    .history-sidebar {
        padding-top: 20px;
    }

    .content-wrapper .white:last-child {
        padding-bottom: 40px;
    }

    .single-activities .single-post-container .meta-row .content-wrap .meta-wrap {
        position: relative;
        top: inherit;
        left: inherit;
        padding: 20px 25px;
        padding-right: 25px;
        background-color: rgba(49, 51, 89, 1);
    }

    .single-activities .single-post-container .meta-row .content-wrap .meta-wrap .left-col {
        margin-right: 20px;
        flex-basis: 40%;
    }

    .table .tab-row.heading-row {
        display: none;
    }
    .table .tab-row {
        flex-direction: column;
        margin-bottom: 10px;
    }
    .table-content .tab-cell {
        display: flex;
        padding: 0;
        border-bottom: 1px solid #fff;
    }
    .table-content .tab-cell .cell-head {
        display: flex;
        align-items: center;
        background-color: #313359;
        color: #fff;
        max-width: 90px;
        width: 100%;
        padding: 10px;
        text-align: left;
    }
    .table .tab-cell .cell-content {
        display: block;
        padding: 10px;
        margin: auto;
    }
} /* max-width 640px and lower. Use this for mobiles only */

/*=====================================
            Medium Screens            
======================================*/

@media only screen and (min-width: 40.0625em) {
    /* TOP BAR STYLING */
    .top-bar { background: transparent; }
    .top-bar .title-area{ display: none; }
    .top-bar-section {
        display: flex;
        justify-content: flex-end;
        margin-right: 16px;
    }
    .top-bar-section .common-menu-wrapper {
        display: flex;
    }
    .top-bar-section ul {
        background: transparent;
        font-size: 0;
        margin: 0;
        padding: 0;
    }
    .top-bar-section ul li { 
        background: transparent;
        display: inline-block;
        padding: 0 9px;
        vertical-align: middle;
        margin: 0;
        position: inherit;
    }
    .top-bar-section ul li::before {
        display: none;
    }
    .top-bar-section li:not(.has-form) > a:not(.button),
    .top-bar-section li:not(.has-form) > span {
        text-transform: uppercase;
        display: inline-block;
        font-size: 1.6rem;
        line-height: 4rem;
        color: #313359;
        font-weight: 700;
        text-decoration: none;
    }
    .top-bar-section li:not(.has-form):hover > a:not(.button),
    .top-bar-section li:not(.has-form):hover > span:not(.submenu-wrapper),
    .top-bar-section li.current-menu-parent > span:not(.submenu-wrapper),
    .top-bar-section li.current-menu-parent > a:not(.button),
    .top-bar-section .menu > .current-menu-item > a:not(.button) {
        color: #63B2D4;
    }

    /* Dropdown Styling*/
    .top-bar-section ul li .submenu-wrapper {
        display: none;
        position: absolute;
        /*top: calc(100% - 25px);*/
        left: 0;
        padding-top: 10px;
        z-index: 999;
    }
    .top-bar-section ul li:hover .submenu-wrapper,
    .top-bar-section ul li:focus .submenu-wrapper {
        display: block;
    }
    .top-bar-section ul li .submenu-wrapper .submenu-inner-wrap {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background-color: #fff;
        box-shadow: 0px 5px 19px #00000029;
        padding: 50px;
    }
    .top-bar-section ul li .submenu-wrapper .submenu-inner-wrap .body-wrap {
        flex-basis: 340px;
        flex-shrink: 0;
        font-size: 1.6rem;
        line-height: 1.8rem;
        text-transform: none;
        font-weight: normal;
    }
    .top-bar-section ul li .submenu-wrapper .submenu-inner-wrap .body-wrap h2 {
        margin-bottom: 10px;
    }

    .top-bar-section ul li .submenu-wrapper .submenu-inner-wrap .img-wrap {
        flex-shrink: 0;
    }
    .top-bar-section ul li .submenu-wrapper .submenu-inner-wrap .img-wrap img {
        display: block;
    }
    .top-bar-section ul li .submenu-wrapper .submenu-inner-wrap .dropdrown_menu {
        margin: 0;
        padding: 0;
        padding-left: 30px;
        padding-right: 15px;
    }
    .top-bar-section ul li .submenu-wrapper .submenu-inner-wrap .dropdrown_menu li {
        padding: 0;
        margin: 0;
        display: block;
    }
    .top-bar-section ul li .submenu-wrapper .submenu-inner-wrap .dropdrown_menu li a,
    .top-bar-section ul li .submenu-wrapper .submenu-inner-wrap .dropdrown_menu li span {
        text-transform: none;
        font-weight: 400;
        color: #2A95C3;
        line-height: 2.3rem;
    }
    .top-bar-section ul li .submenu-wrapper .submenu-inner-wrap .dropdrown_menu li a:hover,
    .top-bar-section ul li .submenu-wrapper .submenu-inner-wrap .dropdrown_menu li a:focus,
    .top-bar-section ul li .submenu-wrapper .submenu-inner-wrap .dropdrown_menu li.current-menu-item a {
        text-decoration: underline;
    }
    .top-bar-section .has-dropdown > a { padding: 0 15px !important; }
    .top-bar-section .has-dropdown > a:after { display: none; }

    .top-bar-section ul li .submenu-wrapper .submenu-inner-wrap .dropdrown_menu li span.btn-logout {
        cursor: pointer;
    }
    .show-for-mobile {
        display: none;
    }

}  /* min-width 641px */

@media only screen and (min-width: 40.063em) and (max-width: 64em) {
    .header-right {
        flex-wrap: wrap;
    }
    .top-bar-section {
        margin-right: 0;
    }
    .top-bar {
        flex-basis: 100%;
    }
    .top-bar-section ul li {
        padding: 0 6px;
    }
    .top-bar-section .menu-logged-in-menu-container ul li:last-child {
        padding-right: 0;
    }
    .top-bar-section li:not(.has-form) > a:not(.button),
    .top-bar-section li:not(.has-form) > span {
        font-size: 1.3rem;
    }
    /*.top-bar-section ul li .submenu-wrapper {
        top: calc(100% - 45px);
    }*/
    .top-bar-section ul li .submenu-wrapper .submenu-inner-wrap {
        padding: 20px;
    }
    .top-bar-section ul li .submenu-wrapper .submenu-inner-wrap .img-wrap {
        display: none;
    }

    .wp-block-columns {
        flex-wrap: wrap;
    }
    .wp-block-column:not(:only-child) {
        flex-basis: 100% !important;
        flex-grow: inherit;
    }
    .wp-block-column:nth-child(2n) {
        margin-left: inherit;
    }

    .cff-wrapper {
        max-width: 664px;
        margin: auto;
    }

    /*single template styling*/
    .single-post-container .content-row .cover-col {
        flex: 0 0 250px;
    }
    .single-post-container .content-row .content-col {
        padding-left: 15px;
    }
    .single-post-container .content-row .content-col .post-meta {
        padding: 25px 0 25px 0px;
    }

    .content-wrapper main.history-page > .wp-block-columns .wp-block-column:not(:first-child) {
        padding-left: 0;
    }
    .history-sidebar {
        padding-top: 30px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .table-content .tab-cell {
        padding: 10px;
    }
} /* min-width 641px and max-width 1024px, use when QAing tablet-only issues */

/*====================================
            Large Screens            
=====================================*/

@media only screen and (min-width: 64.063em) { 


} /* min-width 1025px, large screens */


