.resource-card h4 a {
    color: #080C17;
}

.resource-card .excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  color: #585656;
}

.resource-card .date {
    background: rgba(0, 0, 0, 0.40);
    border-radius: 4px;
    backdrop-filter: blur(11px);
}

.resource-card .featured {
    transform: scale(1.02);
    transition: transform .25s ease-in;
    width: 100%;
    aspect-ratio: 1.5;
    object-fit: cover;
}

.resource-card:hover .featured, .resource-card:hover .insight-image img {
    transform: scale(1);
    transition: transform .25s ease-in;
}

.resource-card .read-more {
    display: flex;
    gap: 13px !important;
    align-items: center;
    margin-top: 20px;
    color: #0730A0;
    font-weight: 600;
}

.resource-card:hover .read-more {
    opacity: 50%;
    text-decoration: underline;
}

.button-blue-transparent.read-more .gb-shape {
    height: 14px !important;
}

/* PAGE TEMPLATE */

.page-template-page-resources .site-main {
    width: 100%;
}

.page-template-page-resources .site-main .insights-wrapper {
    max-width: 1398px;
    margin: 0 auto;
}

.page-template-page-resources .dropdown-menu {
    list-style-type: none;
    display: flex;
    gap: 10px 0;
    margin: 0;
    flex-wrap: nowrap;
    border: 1px solid #DEDEDE;
    border-radius: 66px;
    padding: 10px 20px;
    overflow: auto;
}

.page-template-page-resources .dropdown-menu li { 
    background: transparent;
    color: #0730A0;
    font-weight: 600;
    border-radius: 66px;
    font-family: var(--gp-font--effra-cc-semibold), sans-serif;
    padding: 27px 45px 22px;
    cursor: pointer;
    font-size: 18px;
    letter-spacing: -0.36px;
    transition: background-color .2s ease-in;
    white-space: nowrap;
}

@media(max-width: 1024px) {
    .page-template-page-resources .dropdown-menu li { 
        padding: 17px 30px 12px;
    }
}

.page-template-page-resources .dropdown-menu li.active {
    background-color: #E6EAF6;
    transition: background-color .2s ease-in;
}

.page-template-page-resources .news-archive__button-dropdown {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

@media(max-width: 1024px) {
    .page-template-page-resources .news-archive__button-dropdown {
        gap: 14px 20px;
    }
}

.page-template-page-resources .news-archive__button-dropdown h5 { 
    margin-bottom: 0;
}

.page-template-page-resources .news-archive, .page-template-page-resources .our-resources {
    padding: 0 16px;
    margin-bottom: 160px !important;
}

@media(max-width: 1024px) {
    .page-template-page-resources .news-archive, .page-template-page-resources .our-resources {
        margin-bottom: 80px !important;
    }
}

.page-template-page-resources .news-archive__input, .page-template-page-resources .resources-archive__input {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    padding-top: 8px;
    gap: 16px;
    align-items:center;
}

@media(max-width: 1024px) {
    .page-template-page-resources .resources-archive__input {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px 24px;
    }
}

.page-template-page-resources .news-archive__buttons, .page-template-page-resources .resources-archive__buttons {
    grid-column: 1 / span 8;
}

@media(max-width: 1024px) {
    .page-template-page-resources .news-archive__buttons {
        grid-column: 1 / -1;
    }
}

.page-template-page-resources .news-archive__input-container, .page-template-page-resources .resources-archive__input-container  {
    grid-column: 9 / -1;
    position: relative;
}

@media(max-width: 1024px) {
    .page-template-page-resources .news-archive__input-container {
        grid-column: 1 / span 6;
        margin-top: 16px;
    }
}

@media(max-width: 450px) {
    .page-template-page-resources .news-archive__input-container {
        grid-column: 1 / -1;
    }
}

.page-template-page-resources .news-archive__input-border-wrapper input {
    background-color: transparent;
    border: 1px solid #DEDEDE;
    border-radius: 66px;
    width: 100%;
    color: #080C17;
    font-family: var(--gp-font--effra-cc-medium), sans-serif;
    padding: 33px 40px 29px;
}

@media(max-width: 1024px) {
    .page-template-page-resources .news-archive__input-border-wrapper input {
       padding: 23px 30px 19px;
    }
}

.page-template-page-resources .news-archive__input-border-wrapper input:focus {
    outline: none !important;
}

.page-template-page-resources .news-archive__input-border-wrapper input::placeholder {
    color: #DEDEDE;
}

.page-template-page-resources .news-archive__search {
    position: absolute;
    right: 40px;
    top: 33px;
}

@media(max-width: 1024px) {
    .page-template-page-resources .news-archive__search {
       right: 30px;
       top: 24px;
    }
}

.page-template-page-resources .news-archive__posts-container, .page-template-page-resources .resources-archive__posts-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    margin-top: 60px;
    gap: 60px 33px;
}

.page-template-page-resources .resources-archive__posts-container {
    gap: 32px !important;
}

@media(max-width: 1024px) {
    .page-template-page-resources .resources-archive__posts-container {
        gap: 20px!important;
    }
}

.page-template-page-resources .news-archive__posts-container:has(.empty-msg) {
    border: none;
}

@media(max-width: 850px) {
    .page-template-page-resources .news-archive__posts-container {
       grid-template-columns: 1fr;
       margin-top: 42px;
    }
}

.page-template-page-resources .news-archive__posts-container.loading { 
    opacity: .5;
}

.page-template-page-resources .insight-content {
    padding-top: 20px;
}
.page-template-page-resources .insight-content.event {
    padding: 20px;
    background-color: #F1F1F1;
    border-radius: 12px;
}

.post-date-range {
    color: #F9FCFC;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.40);
    backdrop-filter: blur(11px);
    border-radius: 4px;
    width: fit-content;
    padding: 6px 5px 3px;
}

.page-template-page-resources .post-category {
   background-color: var(--light-gray);
    color: var(--blue);
    font-family: var(--gp-font--effra-cc-medium);
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
    width: fit-content;
    border-radius: 4px;
    padding: 10px 8px 6px 8px;
}

.page-template-page-resources .post-format {
    background: rgba(0, 0, 0, 0.40);
    backdrop-filter: blur(11px);
    border-radius: 4px;
    color: #F9FCFC;
    width: fit-content;
    padding: 6px 8px 3px;
}

.page-template-page-resources .our-resources .our-card .insight-content {
    padding: 0;
}

.page-template-page-resources .insight-image img {
    width: 100%;
    min-height: 395px;
    transform: scale(1.02);
    transition: transform .25s ease-in;
    object-fit: cover;
    aspect-ratio: 1.156;
}

.page-template-page-resources .insight-card {
    grid-column: span 4;
}

.page-template-page-resources .insight-card.our-card {
    background: #F1F1F1;
    padding: 20px;
    border-radius: 12px;
}

@media(max-width: 1024px) {
    .page-template-page-resources .insight-card.our-card {
        grid-column: 1 / -1;
    }
}

@media(max-width: 1024px) {
    .page-template-page-resources .insight-card {
       grid-column: span 6;
    }
}

.page-template-page-resources .insight-card a {
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: unset;
}

.page-template-page-resources .js-load-more {
    display: flex;
    justify-content: center;
    margin: 120px 0 160px;
}

@media(max-width: 1024px) {
    .page-template-page-resources .js-load-more {
        margin: 80px 0 !important;
    }
}

.page-template-page-resources .insight-content h4 {
   margin: 8px 0;
   max-width: 400px;
}

@media(max-width: 1024px) {
    .page-template-page-resources .js-load-more {
       margin-top: 60px;
    }
}

@media(max-width: 500px) {
    .page-template-page-resources .js-load-more {
       margin-top: 30px;
    }
}

.page-template-page-resources .empty-msg {
    grid-column: 1 / -1;
}

.page-template-page-resources .news-archive .wrapper {
    max-width: 1434px;
    margin: 54px auto 0;
}

.page-template-page-resources .our-resources .wrapper {
    max-width: 1434px;
    margin: 0 auto;
}

.page-template-page-resources .news-archive__button {
    background: transparent !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-template-page-resources .news-archive__button:focus {
    color: var(--black) !important;
}

.page-template-page-resources .news-archive__button:hover {
    background-color: #080C17 !important;
    color: #F9FCFC !important;
}

.page-template-page-resources .news-archive__button:hover svg {
    filter: invert(1);
    transition: filter .2s ease-in;
}

@media(max-width: 1024px) {
    .page-template-page-resources .news-archive .wrapper {
        margin: 34px auto 0;
    }
}

@media(max-width: 1024px) {
    .page-template-page-resources .news-archive .wrapper {
       margin: 24px auto 0;
    }
}

.news-archive .insight-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}
.news-archive .date {
    position: absolute;
    top: 25px;
    left: 25px;
    color: #F9FCFC;
    padding: 6px 7px 3px 7px;
}


/* OUR RESOURCES PART*/

.our-resources--format, .our-resources--cat {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #F1F1F1;
    border-radius: 4px;
    color: #080C17;
    width: fit-content;
    padding: 9px 14px 6px;
}

.our-resources--format h5, .our-resources--cat h5 {
    margin: 0;
}

.our-resources--format svg, .our-resources--cat svg {
    height: 9px !important;
}

.our-resources--categories {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* Add this to hide dropdowns by default */
.our-resources--format .dropdown,
.our-resources--cat .dropdown {
    display: none;
    position: absolute; /* Or relative, depending on your layout */
    top: 40px;
    right: 0;
    gap: 24px;
    list-style-type: none;
    z-index: 100; /* Ensure it appears above other content */
    margin: 0;
    flex-direction: column; /* To make list items stack */
    font-size: 20px;
    background: #F1F1F1;
    box-shadow: 0px 34px 124px 0px rgba(0, 0, 0, 0.11);
    padding: 16px 20px;
    border-radius: 4px;
    min-width: 226px;
}

/* Style for active dropdown item */
.our-resources--format .dropdown li.active,
.our-resources--cat .dropdown li.active {
    color: #0730A0; /* Highlight active item */
    text-decoration: underline;
}

.our-resources--format .dropdown li,
.our-resources--cat .dropdown li {
    transition: opacity .2s ease-in;
    cursor: pointer;
    color: #080C17;
    font-weight: 500;
    position: relative;
    width: fit-content;
}

.our-resources--format .dropdown li::after,
.our-resources--cat .dropdown li::after {
    position: absolute;
    content: '';
    right: -21px;
    top: 4px;
    width: 9px;
    height: 10px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='10' fill='none'%3E%3Cpath d='m1 8.5 3.14-2.747a1 1 0 0 0 0-1.506L1 1.5' stroke='%23080C17' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat;
}

/* Style for hover on dropdown items */
.our-resources--format .dropdown li:hover,
.our-resources--cat .dropdown li:hover {
    opacity: 50%;
    transition: opacity .2s ease-in;
}

/* Ensure our-resources--format and our-resources--cat are positioned correctly for dropdowns */
.our-resources--format, .our-resources--cat {
    position: relative; /* Needed for absolute positioning of dropdown-menu */
}

/* Your existing styles for the buttons */
.our-resources--format, .our-resources--cat {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #F1F1F1;
    border-radius: 4px;
    color: #080C17;
    width: fit-content;
    padding: 9px 14px 6px;
    cursor: pointer; /* Indicate it's clickable */
}

.our-resources--format h5, .our-resources--cat h5 {
    margin: 0;
}

.our-resources--format svg, .our-resources--cat svg {
    height: 9px !important;
}

.our-resources--categories {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
    flex-wrap: wrap;
    position: relative; /* If dropdowns go outside this container, adjust positioning */
}

.page-template-page-resources .our-card .post-category {
    padding-left: 0;
}

.page-template-page-resources .js-load-more-resources {
    margin-top: 100px;
}

@media(max-width: 1024px) {
    .page-template-page-resources .js-load-more-resources {
    margin-top: 60px;
    }
}

.page-template-page-resources .resources-title {
    grid-column: 1 / span 4;
}

.page-template-page-resources .resources-archive__input-container {
    grid-column: 5 / -1;
}

.page-template-page-resources .library input {
    padding: 9px 14px 6px;
}

@media(max-width: 509px) {
    .page-template-page-resources .js-resource-search {
        min-width: 100%;
        }
}

@media(max-width: 509px) {
    .page-template-page-resources .resources-archive__input-container.our-resources--categories {
            justify-content: flex-start;
        }
}

.page-template-page-resources .our-resources #library {
    scroll-margin-top: 200px;
}