.resource-wrapper {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 50px;
}

/* ---------- SIDEBAR ---------- */
.resource-sidebar {
    position: sticky;
    top: 40px;
    height: max-content;
}
.resource-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.resource-sidebar li {
    margin: 0;
}
.sidebar-link {
    display: block;
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 57px;
    background: transparent;
    color: #1F1F1F;
    font-family: 'Inter Tight', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 28px;
    letter-spacing: 0%;
    transition: background 0.2s ease, color 0.2s ease;
}
.sidebar-link.active {
    background: var(--Colors-Action-Orange-50, #FEF7EE);
    color: #E35413;
    font-weight: 600;
    line-height: 32px;
    letter-spacing: -0.36px;
}

/* ---------- ALL RESOURCES HEADER ---------- */
#all-resources h1 {
    color: #0B0D0B;
    font-family: 'Google Sans', sans-serif;
    font-weight: 600;
    font-size: 36px;
    line-height: 48px;
    letter-spacing: -0.72px;
    margin: 0 0 24px 0;
}

.resource-search-wrapper {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}
.search-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--background-muted, #F2F7FD);
    border-radius: 999px;
    padding: 13px 16px;
}
.search-input-wrap svg {
    flex-shrink: 0;
}
.resource-search {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    color: #4B5563;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 26px;
    letter-spacing: 0%;
    vertical-align: middle;
}
.resource-search::placeholder {
    color: #4B5563;
}
.search-btn {
    background: var(--button-bg, #1E4679);
    color: #FEFEFE;
    padding: 15px 24px;
    border: none;
    border-radius: 999px;
    font-family: 'Google Sans', sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 28px;
    letter-spacing: 0%;
    vertical-align: middle;
    cursor: pointer;
}

/* ---------- FILTER TAGS ---------- */
.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 40px;
}
.filter-tag {
    background: var(--Colors-Apex-Navy-100, #E5EDF9);
    color: #111827;
    border: none;
    border-radius: 36px;
    padding: 10px 25px;
    font-family: 'Inter Tight', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0%;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}
.filter-tag.active {
    background: #3460FB;
    color: #FEFEFE;
}
.extra-tag {
    display: none;
}
.extra-tag.show-tag {
    display: inline-block;
}
.show-more {
    background: transparent;
    color: #171717;
    border: none;
    font-family: 'Inter Tight', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    cursor: pointer;
    padding: 10px 12px;
}

/* ---------- SECTION HEADINGS ---------- */
.resource-content section {
    margin-bottom: 56px;
}
#latest-news h2,
#case-studies h2 {
    color: #171717;
    font-family: 'Google Sans', sans-serif;
    font-weight: 700;
    font-size: 36px;
    line-height: 44px;
    letter-spacing: 0%;
    margin-bottom: 24px;
}

/* ---------- CARDS ---------- */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}
.resource-card {
    padding: 16px;
    background: var(--Colors-Gray-50, #FCFCFC);
    border: 2px solid var(--input, #E5E7EB);
    border-radius: 32px;
    overflow: hidden;
}
.resource-card.hidden-card {
    display: none;
}
.resource-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 20px;
    display: block;
}
.card-body {
    padding-top: 16px;
}
.tag {
    background: #06D59F33;
    border-radius: 36px;
    padding: 4px 8px;
    width: fit-content;
    display: inline-block;
    font-family: 'Inter Tight', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0%;
    margin-bottom: 12px;
}
.card-body h3 {
    margin: 0 0 12px 0;
}
.card-body h3 a {
    color: #171717;
    font-family: 'Google Sans', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 32px;
    letter-spacing: 0%;
    text-decoration: none;
}
.post-meta {
    color: #6B7280;
    font-family: 'Inter Tight', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0%;
    margin: 0;
}

/* ---------- LOAD MORE ---------- */
.load-more-btn {
    display: block;
    margin: 32px 0 0;
    padding: 14px 24px;
    background: var(--updated-button-color, #F26F1F);
    color: #FEFEFE;
    border: none;
    border-radius: 9999px;
    font-family: 'Google Sans', sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 28px;
    letter-spacing: 0%;
    vertical-align: middle;
    cursor: pointer;
    =
}
.load-more-btn.hide-btn {
    display: none;
}

/* ---------- GALLERY / MISC (kept from original) ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.gallery-card img {
    width: 100%;
    border-radius: 12px;
}
.download-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    border-radius: 15px;
    background: #f7f7f7;
    margin-bottom: 20px;
}
.download-btn {
    background: #111;
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
}

@media (max-width: 900px) {
    .resource-wrapper {
        grid-template-columns: 1fr;
    }
    .resource-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .resource-search-wrapper {
        flex-direction: column;
    }
    .search-btn {
        width: 100%;
    }
}