.resource-loading {
    display: flex;
    justify-content: center;
    padding: 3rem 0;
}

.resource-loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e0e0e0;
    border-top-color: #333;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
.card-link-wrapper {
    display: flex;
    flex: 1 1 300px;
    max-width: calc((100% - 48px) / 3);
}

@media (max-width: 900px) {
    .card-link-wrapper {
        max-width: calc((100% - 24px) / 2);
    }
}

@media (max-width: 600px) {
    .card-link-wrapper {
        max-width: 100%;
    }
}

.resource-card {
    border-radius: 12px;
    background: #FFF;
    box-shadow: 0 0 12px 0 rgba(41, 162, 219, 0.20);
    padding: 8px;
    flex-direction: column;
    display: flex;
    width: 100%;
}
.resource-card-image {
    background-size: cover;
    border-radius: 8px;
    background-repeat: no-repeat;
    width: 100%;
    min-height: 200px;
    background-position: center;
}
.resource-card-image-overlay {
    background: linear-gradient(180deg, rgba(0, 90, 156, 0.90) 20%, rgba(0, 90, 156, 0.00) 90%);
    padding: 12px 12px 18px;
    border-radius: 8px;
}
.resource-card-image-overlay  h3 {
    color: #FFF;
    font-family: Raleway;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 0.32px;
}
.resource-card-text h4 {
    color: var(--APV-Green, #00A060);
    font-family: Raleway;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}
.resource-card-text h3 {
    color: #000;
    font-family: Raleway;
    font-size: 22px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}
.resource-card-excerpt {
    font-family: "Source Sans Pro";
    font-size: 17px;
    font-style: normal;
    font-weight: 400;
    line-height: 26px; 
    color: #000;
}
.resource-card-more-container {
    display: flex;
    align-items: center;
    gap: 12px;
}
.resource-card-more {
    color: var(--APV-Blue, #29A2DB);
    font-family: "Source Code Pro";
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 28px;
    letter-spacing: 1.28px;
    margin: 0;
    text-transform: uppercase;
}
.resource-card-more-container img {
    width: 18px;
}

#post_type_filter .post-type-btn.is-active a {
    background-color: var(--APV-Blue, #29A2DB);
    color: #fff;
}
#post_type_filter .post-type-btn a {
    padding: 12px;
}

.resource-filter {
    border-radius: 4px;
    background: #F7F9FA;
    padding: 8px;
}
.resource-filter-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.resource-filter-toggle {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.resource-filter-toggle p {
    color: var(--Text, #202020);
    font-family: "Source Sans Pro";
    font-size: 20px;
    font-style: normal;
    font-weight: 900;
    line-height: 26px;
    transition: transform 0.3s ease;
    margin: 0;
}
.resource-filter-rotate {
    transform: rotate(45deg);
}
.resource-filter-wrapper form {
    max-height: 1000px;
    overflow: hidden;
    opacity: 1;
    transition: opacity 0.3s ease, max-height 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.resource-filter h3 {
    color: var(--Text, #202020);
    font-family: "Source Sans Pro";
    font-size: 17px;
    font-style: normal;
    font-weight: 900;
    line-height: 26px;
    margin: 8px 0;
}
.resource-filter .resource-filter-input {
    display: flex;
    gap: 12px;
    align-items: start;
    cursor: pointer;
}
.resource-filter label {
    font-family: 'raleway', sans-serif;
    font-weight: 600;
    letter-spacing: .5px;
    cursor: pointer;
}
.resource-filter-header {
    color: var(--APV-Dark-Blue, #005A9C);
    font-family: "Source Code Pro";
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 3.2px;
    text-transform: uppercase;
}
.resource-filter-reset {
    color: var(--APV-Blue, #29A2DB);
    font-family: "Source Code Pro";
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 28px;
    opacity: .7;
    transition: opacity .25s ease-in-out;
    cursor: pointer;
}
.resource-filter-reset:hover {
    opacity: 1;
}
form.hidden {
    max-height: 0;
    opacity: 0;
}
.pagination-wrapper {
    display: flex;
    justify-content: end;
    gap: 12px;
}
.pagination-wrapper .pagination-btn,
.pagination-wrapper .pagination-btn-prev,
.pagination-wrapper .pagination-btn-next {
    display: flex;
    width: 36px;
    height: 36px;
    padding: 0;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    border-radius: 50%;
    color: #29A2DB;
    line-height: 1;
    padding-left: 2.5px;
    font-weight: 500;
    font-size: 18px;
}
.pagination-wrapper .is-active {
    background-color: #29A2DB;
    color: #fff;
}
.pagination-wrapper .pagination-btn-prev,
.pagination-wrapper .pagination-btn-next {
    width: auto;
    border-radius: 90px;
    padding: 10px;
    text-transform: capitalize;
    letter-spacing: 0;
}

input[type="checkbox"] {
  accent-color: #6EC1E4;
}

.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .post-type-btn-row {
        display: none !important;
    }
    .mobile-only {
        display: block;
    }
}