.resources-tabs-block {
    /* background-color: #E5F0F5; */
    position: relative;
    padding: 30px 0;
}

.resources-tabs-block.block-margin {
    margin: 0;
}

.resources-tabs-block::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    right: 0;
    width: 100vw;
    height: 100%;
    transform: translateX(-50%);
    background-color: #E5F0F5;
    z-index: -1;
}

.resources-tabs-block .top {
    text-align: center;
}

.resources-tabs {
    display: none;
}

.tab-nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 1rem;
    border-bottom: 1px solid #71777D;
}

.tab-nav button {
    background-color: #E5F0F5;
    border: none;
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    transition: background 0.2s;
    color: var(--Navy, #02335F);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-bottom: 2px solid transparent;
}

.tab-nav button.active {
    background: #C6E2F1;
    border-bottom: 2px solid #007acc;
}

.tab-panel {
    display: none;
    padding: 1rem;
    flex-wrap: wrap;
    justify-content: space-between;
}

.tab-panel.active {
    display: flex;
}

.resource-type-file.tab-panel {
    justify-content: flex-start;
}

.tab-panel ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tab-panel li {
    margin-bottom: 0.75rem;
}

.tab-panel a {
    text-decoration: none;
    color: #0056b3;
}

.tab-panel a:hover {
    text-decoration: underline;
}

.half-width {
    width: 48%;
    margin-bottom: 10px;
}

.resources-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-item {
    overflow: hidden;
}

.accordion-header {
    border-radius: 4px;
    border: 2px solid var(--APWU-Blue, #0060A0);
    background: var(--Lightest-Blue, #E5F0F5);
    padding: 10px;
    cursor: pointer;
    color: var(--APWU-Blue, #0060A0);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.accordion-header svg {
    margin-left: 10px;
    vertical-align: middle;
    transition: all 0.4s ease-in-out;
}

.accordion-header:hover {
    background: #C6E2F1;
}

.accordion-header:hover svg {
    transform: rotate(180deg);
}

.accordion-header.active svg {
    transform: rotate(180deg);
}

.accordion-header.active {
    border-bottom: none;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.accordion-content {
    display: none;
    padding: 10px;
    border: 2px solid var(--APWU-Blue, #0060A0);
    border-top: none;
}

.accordion-content.single-tab {
    border: none;
}

.accordion-content .resource-link {
    display: block;
    margin: 5px 0;
}

.file-card {
    text-align: center;
    margin-bottom: 1rem;
    padding: 10px;
    border-radius: 10px;
    width: 24%;
}

.file-card a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.file-card .file-label {
    word-break: break-word;
    text-decoration: none;
}

.file-card .file-label p {
    text-decoration: none;
    margin: 0;
    font-size: 16px;
    color: #35383B;
}

.file-thumbnail {
    position: relative;
    display: inline-block;
    overflow: hidden;
    border-radius: 10px;
}

.file-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

.download-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    /* border: 2px solid #007acc; */
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.25s ease;
}

.file-card:hover .download-overlay {
    opacity: 1;
}

.file-card:hover {
    border: 2px solid #007acc;
}

.download-icon {
    font-size: 1.5rem;
    background: #FFB100;
    padding: 8px;
    color: black;
}

.file-label {
    margin-top: 0.5rem;
    font-size: 14px;
    color: #02335F;
}

.resource-link:not(.file-card) a {
    text-decoration: underline;
    vertical-align: middle;
    display: flex;
    justify-content: space-between;
    color: #35383B;
    font-size: 18px;
}

.resource-link:not(.file-card) svg {
    vertical-align: middle;
    margin: 0 10px;
    transition: all 0.4s ease-in-out;
    min-width: 16px;
}

.resource-link:not(.file-card):hover svg {
    transform: translateX(5px);
}

.resource-link:not(.file-card):hover a {
    color: #0056b3;
}

@media (max-width: 900px) {
    .half-width {
        width: 100%;
    }
    .resource-link:not(.file-card) a {
        justify-content: flex-start;
    }
}


@media (min-width: 769px) {
    .resources-tabs {
        display: block;
    }

    .resources-accordion {
        display: none;
    }
}