.resource-header {
    background: #201547;
    padding: 150px 0 180px;
    position: relative;
    text-align: center;
}

/* Mobile fixes: ensure full-width dropdowns, proper stacking, and text wrapping */
@media only screen and (max-width: 767px) {
    /* Allow the header container to expand fully on mobile */
    .resource-header-container {
        max-width: none !important;
        width: 100% !important;
    }
    /* Keep the filter tray above surrounding content and span the viewport */
    .resource-cat-nav {
        left: 0;
        right: 0;
        z-index: 1000;
        box-sizing: border-box;
    }

    /* Make each nav group and its list fill the available space */
    .resource-nav,
    .resource-nav ul {
        width: 100%;
    }

    /* Allow long labels to wrap instead of being clipped */
    .resource-nav li {
        white-space: normal;
    }

    /* Ensure the toggle stays above the tray */
    .resource-nav-toggle {
        z-index: 1001;
    }
}
.resource-header-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}
.resource-image-wrap {
    width: 252px;
    max-width: 252px;
    position: absolute;
    top: -149px;
    left: 1146px;
}
.resource-header p {
    color: #fff;
    font-family: "Inter", sans-serif;
    font-size: 24px;
    font-weight: 400;
    margin: 0;
    text-transform: uppercase;
    line-height: 52px;
    letter-spacing: 1.5px;
}
.resource-header-bottom-shape {
    overflow: hidden;
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    line-height: 0;
    direction: ltr;
}
.resource-header-bottom-shape svg {
    box-sizing: border-box;
    fill: #fff;
    display: block;
    height: 150px;
    width: calc(100% + 1.3px);
    position: relative;
    left: 50%;
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
}

.resource-cat-nav {
    color: #fff;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    text-align: left;
}
.resource-nav {
    position: relative;
}
.resource-nav:not(:last-of-type) {
    margin-right: 60px;
}
.resource-nav h5 {
    color: #fff;
    cursor: pointer;
    font-size: 18px;
    line-height: 20px;
    margin: 0;
    padding: 13px 30px 13px 20px;
    position: relative;
}
html.no-touch .resource-nav:hover h5 {
    border-bottom-color: #fff;
}
.resource-nav i {
    font-size: 16px;
    line-height: 1;
    position: absolute;
    right: 10px;
    top: calc(50% - 6px);
    transform-origin: 50% 50%;
    -webkit-transform-origin: 50% 50%;
    transition: transform .3s;
    -webkit-transition: transform .3s;
}
html.no-touch .resource-nav:hover i {
    transform: rotate(-180deg);
    -webkit-transform: rotate(-180deg);
}
.resource-nav ul {
    background: #fff;
    box-shadow: 0 3px 6px rgba(0,0,0,.16);
    list-style: none;
    margin: 0;
    padding: 5px 0;
    position: absolute;
    left: -20px;
    top: 100%;
    opacity: 0;
    visibility: hidden;
    z-index: 2;
    transition: opacity .3s, visibility .3s;
    -webkit-transition: opacity .3s, visibility .3s;
}
html.no-touch .resource-nav:hover ul {
    opacity: 1;
    visibility: visible;
    transition: opacity .3s, visibility .3s;
    -webkit-transition: opacity .3s, visibility .3s;
}
.resource-nav li {
    color: #201547;
    font-size: 15px;
    padding: 10px 15px 10px 10px;
    white-space: nowrap;
}
.resource-filter {
    cursor: pointer;
    margin: 0;
    padding-left: 30px;
    line-height: 20px;
    position: relative;
    display: block;
}
.resource-filter input {
    position: absolute;
    opacity: 0;
    height: 0;
    width: 0;
}
.resource-filter .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border: 1px solid #ddd;
    background-color: #fff;
}
.resource-filter input:checked ~ .checkmark {
    background-color: #4C4084;
    border-color: #4C4084;
}
.resource-filter input:checked ~ .checkmark:before {
    content: '';
    width: 6px;
    height: 13px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    position: absolute;
    top: 1px;
    left: 6px;
    transform: rotate(35deg);
    -webkit-transform: rotate(35deg);
}
.resource-wrapper {
    padding: 50px 30px 60px;
}
.resources-loop {
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    height: auto !important;
    max-width: 1200px;
    margin: 0 auto;
}
.resource-item {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 0 60px;
    padding: 0 20px;
    width: 33.33%;
    text-align: center;
    position: static !important;
}
.resource-item h4 {
    color: #201547;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 500;
    letter-spacing: 1.5px;
    margin: 0;
    padding: 0;
}
.resource-item a {
    color: inherit;
    text-decoration: none;
}
.resource-item figure {
    display: block;
    width: 80%;
    margin: 0 auto 15px !important;
}
.resource-item figure img {
    display: block;
    box-shadow: 2px 2px 8px rgba(0,0,0,.3);
    width: 100%;
    border-radius: 8px; /* Added border radius */
}
.resource-item p {
    color: #201547;
    font-size: 13px;
	padding: 8pt 0 14pt 0;
    font-weight: 400;
    line-height: 1.7em;
    margin: 0;
}
.resource-item .resource-link,
#load-more-resources {
    box-sizing: border-box;
    border: 3px solid;
    border-radius: 100px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5625;
    letter-spacing: 1.5px;
    padding: 8px 24px;
    text-transform: uppercase;
    transition: color .3s, background-color .3s;
    -webkit-transition: color .3s, background-color .3s;
}
.resource-item .resource-link {
    display: inline-block;
    border-color: #4c4084;
    background-color: #4c4084;
    margin-top: auto;
}
html.no-touch .resource-item .resource-link:hover {
    background-color: #fff;
    color: #4c4084;
}
.resource-nav-toggle {
    background-color: #ffa1a1;
    border: 2px solid #4c4084;
    border-radius: 10px;
    color: #4c4084;
    font-size: 30px;
    display: none;
    margin: 0 auto;
    width: 45px;
    height: 45px;
    padding: 0;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}
.resource-nav-toggle:hover,
.resource-nav-toggle:focus {
    background-color: #ffa1a1;
    border-color: #4c4084;
    color: #4c4084;
}

.resources-info-bar {
    width: 200px;
    margin: 30px auto;
    text-align: center;
}
.resources-info-bar p {
    color: #000;
    font-size: 11px;
    line-height: 13px;
    margin: 0 0 13px;
}
.resources-progress-bar {
    display: block;
    background-color: #ffa1a1;
    height: 9px;
    width: 100%;
    margin: 0 0 20px;
}
.resources-progress-bar span {
    display: block;
    height: 100%;
    width: 0;
    background-color: #201547;
}
#load-more-resources {
    border-color: #201547;
    background-color: #201547;
    width: 100%;
    text-align: center;
}
html.no-touch #load-more-resources:hover {
    background-color: #fff;
    color: #201547;
}

@media only screen and (max-width: 991px) {
    .resource-item {
        width: 50%;
    }
    .resource-nav:not(:last-of-type) {
        margin-right: 30px;
    }
}

@media only screen and (max-width: 767px) {
    .resource-header {
        padding: 100px 0;
    }
    .resource-header p {
        display: none;
    }
    .resource-nav-toggle {
        display: flex;
    }
    .resource-nav-toggle.opened i:before {
        content: "\f00d";
    }
    .resource-cat-nav {
        background-color: #fff;
        box-shadow: 0 1px 6px rgba(0,0,0,.16);
        display: block;
        margin-top: 10px;
        /* Remove transform-based open/close to avoid layout bugs */
        -webkit-transform: none;
        transform: none;
        max-height: 0;
        width: 100%;
        transition: max-height .3s ease;
        -webkit-transition: max-height .3s ease;
        -webkit-transform-origin: top;
        transform-origin: top;
        overflow: hidden;
        position: absolute;
        z-index: 1;
        left: 0;
        right: 0;
        box-sizing: border-box;
        max-width: none !important;
        padding: 0 12px;
    }
    .resource-cat-nav.opened {
        max-height: 100vh;
        /* Force full-viewport width and pin to viewport to avoid parent constraints */
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        top: var(--rc-top, 160px) !important; /* fallback top if JS is unavailable */
    }
    .resource-nav {
        margin: 0 !important;
        display: block;
        width: 100% !important;
        max-width: none !important;
    }
    .resource-nav h5 {
        color: #4c4084;
        display: flex;
        align-items: center;
        font-weight: 400;
        padding-top: 10px;
        padding-bottom: 10px;
        width: 100%;
        max-width: none !important;
        box-sizing: border-box;
    }
    .resource-nav h5.active {
        background-color: #4c4084;
        color: #fff;
    }
    .resource-nav i {
        top: calc(50% - 8px);
    }
    .resource-nav h5.active i {
        transform: rotate(-180deg);
        -webkit-transform: rotate(-180deg);
    }
    .resource-nav ul {
        box-shadow: none;
        display: none;
        opacity: 1 !important;
        visibility: visible !important;
        padding: 0 10px;
        position: static;
        -webkit-tap-highlight-color: rgba(0,0,0,0);
        width: 100%;
        max-width: none !important;
        box-sizing: border-box;
    }
    .resource-nav li {
        font-size: 12px;
        white-space: normal;        
    }
    .resource-filter {
        line-height: 16px;
        padding-left: 25px
    }
    .resource-filter .checkmark {
        width: 16px;
        height: 16px;
    }
    .resource-filter input:checked ~ .checkmark:before {
        width: 4px;
        height: 10px;
        top: 2px;
        left: 5px;
    }
    .resource-wrapper {
        padding-top: 30px;
    }
    .resource-item {
        width: 100%;
    }
}