

    .resources-wrap {
        max-width: 1300px;
        margin: 0 auto;
        padding: 24px;
    }

    .res-filter {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
        margin: 1rem 0 3.5rem;
        padding-bottom: 2rem;
        border-bottom: 1px solid #21262d;
    }

    .res-filter .res-btn {
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        appearance: none !important;
        display: inline-flex !important;
        align-items: center !important;
        font-family: 'Montserrat', sans-serif !important;
        font-size: 1.2rem !important;
        font-weight: 600 !important;
        line-height: 1 !important;
        letter-spacing: .12em !important;
        text-transform: uppercase !important;
        color: #d9d9d9 !important;
        background: #0b0c0f !important;
        border: 1px solid #2a2f3a !important;
        border-radius: 0 !important;
        padding: 13px 20px !important;
        margin: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        width: auto !important;
        cursor: pointer !important;
        transition: color .2s, background .2s, border-color .2s, box-shadow .2s !important;
        text-shadow: none !important;
        box-shadow: none !important;
    }

    .res-filter .res-btn .count {
        display: inline-block;
        margin-left: 10px;
        padding: 2px 8px;
        font-size: 1rem;
        font-weight: 600;
        color: #8b949e;
        background: #161b22;
        border: 1px solid #21262d;
        border-radius: 10px;
        letter-spacing: 0;
    }

    .res-filter .res-btn:hover {
        color: #fff !important;
        border-color: #fff !important;
    }

    .res-filter .res-btn.active {
        color: #fff !important;
        background: #de0039 !important;
        border-color: #de0039 !important;
        box-shadow: 0 0 0 1px rgba(222, 0, 57, .35),
                    0 8px 20px rgba(222, 0, 57, .18) !important;
    }
    .res-filter .res-btn.active .count {
        color: #fff;
        background: rgba(0, 0, 0, .3);
        border-color: rgba(255, 255, 255, .3);
    }

    .res-filter .res-btn-link {
        text-decoration: none !important;
        color: #fff !important;
        background: transparent !important;
        border-color: #de0039 !important;
    }
    .res-filter .res-btn-link:hover {
        background: #de0039 !important;
        border-color: #de0039 !important;
        color: #fff !important;
    }

    .res-subfilter {
        display: none;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
        margin: -2rem 0 3rem;
        padding: 18px 20px;
        background: #0b0c0f;
        border: 1px solid #21262d;
        border-left: 3px solid #de0039;
    }
    .res-subfilter.is-open { display: flex; }

    .res-subfilter .sub-label {
        align-self: center;
        font-family: 'Montserrat', sans-serif;
        font-size: 1rem;
        letter-spacing: .15em;
        text-transform: uppercase;
        color: #8b949e;
        margin-right: 6px;
    }

    .res-subfilter .res-subbtn {
        -webkit-appearance: none !important;
        appearance: none !important;
        display: inline-flex !important;
        align-items: center !important;
        font-family: 'Montserrat', sans-serif !important;
        font-size: 1.05rem !important;
        font-weight: 600 !important;
        line-height: 1 !important;
        letter-spacing: .1em !important;
        text-transform: uppercase !important;
        color: #a4a7ae !important;
        background: transparent !important;
        border: 1px solid #2a2f3a !important;
        border-radius: 0 !important;
        padding: 9px 14px !important;
        margin: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        cursor: pointer !important;
        text-shadow: none !important;
        box-shadow: none !important;
        transition: color .2s, border-color .2s, background .2s !important;
    }
    .res-subfilter .res-subbtn:hover {
        color: #fff !important;
        border-color: #fff !important;
    }
    .res-subfilter .res-subbtn.active {
        color: #fff !important;
        border-color: #de0039 !important;
        background: rgba(222, 0, 57, .15) !important;
    }

    .res-section-head {
        display: flex;
        align-items: baseline;
        gap: 16px;
        margin: 0 0 2rem;
        padding-bottom: 1rem;
        border-bottom: 1px dashed #21262d;
    }
    .res-section-head h2 {
        font-family: 'Bebas Neue', sans-serif;
        font-size: 2.6rem;
        letter-spacing: .15em;
        color: #fff;
        margin: 0;
    }
    .res-section-head .head-bar {
        flex: 0 0 50px;
        height: 3px;
        background: #de0039;
    }
    .res-section-head p {
        margin: 0;
        color: #8b949e;
        font-size: 1.4rem;
    }

    .res-grid {
        display: grid;
        gap: 24px;
        grid-template-columns: repeat(1, 1fr);
    }
    @media (min-width: 768px) {
        .res-grid { grid-template-columns: repeat(2, 1fr); }
    }
    @media (min-width: 1100px) {
        .res-grid { grid-template-columns: repeat(3, 1fr); }
    }

    .res-card {
        position: relative;
        background: #0d1117;
        border: 1px solid #21262d;
        border-top: 3px solid #de0039;
        display: flex;
        flex-direction: column;
        color: #e8e8ea;
        transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
        overflow: hidden;
    }
    .res-card .res-thumb {
        position: relative;
        width: 100%;
        aspect-ratio: 21 / 12;
        background: #0b0d12;
        overflow: hidden;
        border-bottom: 1px solid #21262d;
    }
    .res-card .res-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform .4s ease, filter .4s ease;
        filter: grayscale(20%) brightness(.85);
    }
    .res-card:hover .res-thumb img {
        transform: scale(1.05);
        filter: grayscale(0%) brightness(1);
    }
    .res-card .res-thumb::after {
        content: "";
        position: absolute; inset: 0;
        background: linear-gradient(180deg, rgba(13,17,23,0) 55%, rgba(13,17,23,.9) 100%);
        pointer-events: none;
    }
    .res-card .res-thumb .res-type-badge {
        position: absolute;
        bottom: 12px; left: 12px;
        font-size: 1rem;
        letter-spacing: .15em;
        text-transform: uppercase;
        color: #fff;
        background: #de0039;
        padding: 5px 10px;
        font-weight: 600;
        z-index: 2;
    }
    .res-card .res-body {
        padding: 22px 22px 20px;
        display: flex;
        flex-direction: column;
        flex: 1;
    }
    .res-card:hover {
        transform: translateY(-5px);
        border-color: #de0039 #fff #fff #fff;
        box-shadow: 0 14px 34px rgba(0,0,0,.55),
                    0 0 0 1px rgba(255,255,255,.35);
    }

    .res-card h3 {
        font-size: 1.8rem;
        line-height: 1.35;
        margin: 0 0 10px;
        color: #fff;
    }
    .res-card h3 a {
        color: #fff;
        text-decoration: none;
        transition: color .2s;
    }
    .res-card h3 a:hover {
        color: #de0039;
    }
    .res-card h3 .conf-tag {
        display: inline-block;
        background: #ffffff;
        color: #000000;
        padding: 3px 9px;
        font-family: 'Montserrat', sans-serif;
        font-size: 1.1rem;
        font-weight: 700;
        letter-spacing: .1em;
        text-transform: uppercase;
        line-height: 1.2;
        margin-bottom: 6px;
        vertical-align: middle;
    }
    .res-card h3 a:hover .conf-tag {
        color: #000000;
        background: #ffffff;
    }
    .res-card p {
        font-size: 1.4rem;
        line-height: 1.6;
        color: #a4a7ae;
        margin: 0 0 18px;
        flex: 1;
    }

    .res-meta {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 1.05rem;
        color: #8b949e;
        padding-top: 14px;
        border-top: 1px solid #161b22;
    }
    .res-meta .res-link {
        color: #fff;
        text-transform: uppercase;
        letter-spacing: .1em;
        text-decoration: none;
        transition: color .2s;
    }
    .res-meta .res-link:hover,
    .res-card:hover .res-link { color: #de0039; }
    .res-meta .res-link::after { content: " →"; }

    .res-empty {
        text-align: center;
        padding: 60px 20px;
        color: #8b949e;
        font-size: 1.3rem;
        border: 1px dashed #21262d;
    }

    @media (max-width: 600px) {
        .res-filter .res-btn { padding: 11px 14px !important; font-size: 1.05rem !important; }
        .res-section-head h2 { font-size: 2rem; }
    }
    