:root {
    --resources-ink: #061f1b;
    --resources-green: #0b6b51;
    --resources-green-2: #12a875;
    --resources-gold: #d8a63a;
    --resources-paper: #f7faf8;
    --resources-line: #e1e9e5;
    --resources-muted: #6d7974;
    --resources-shadow: 0 22px 60px rgba(8, 43, 37, 0.1);
}

.resources-body {
    background: var(--resources-paper);
}

.resources-page {
    padding-top: 134px;
}

.resources-container {
    width: min(1360px, calc(100% - 64px));
    margin-inline: auto;
}

.resources-hero {
    position: relative;
    min-height: 330px;
    margin: 0 auto 12px;
    width: min(1360px, calc(100% - 64px));
    overflow: hidden;
    border-radius: 10px;
    background: var(--resources-ink);
    color: #fff;
    box-shadow: var(--resources-shadow);
}

.resources-hero > img,
.resources-hero__shade {
    position: absolute;
    inset: 0;
}

.resources-hero > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.resources-hero__shade {
    background:
        linear-gradient(90deg, rgba(2, 23, 20, 0.04), rgba(2, 23, 20, 0.3) 42%, rgba(2, 23, 20, 0.9)),
        linear-gradient(180deg, rgba(2, 23, 20, 0.1), rgba(2, 23, 20, 0.48));
}

.resources-hero__content {
    position: relative;
    z-index: 2;
    min-height: 330px;
    display: grid;
    grid-template-columns: 1fr minmax(420px, 720px);
    align-items: center;
    direction: ltr;
}

.resources-hero__copy {
    grid-column: 2;
    padding: 38px 0;
    direction: rtl;
}

.resources-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--resources-gold);
    font-weight: 900;
}

.resources-eyebrow svg {
    width: 22px;
    height: 22px;
}

.resources-hero h1 {
    margin: 0 0 8px;
    color: #fff;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.35;
    font-weight: 900;
}

.resources-hero p {
    width: min(100%, 680px);
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
    font-weight: 700;
}

.resources-search {
    width: min(100%, 610px);
    min-height: 58px;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 12px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(14px);
}

.resources-search svg {
    width: 24px;
    height: 24px;
    color: #fff;
}

.resources-search input {
    width: 100%;
    border: 0;
    outline: none;
    color: #fff;
    background: transparent;
    font-weight: 800;
}

.resources-search input::placeholder {
    color: rgba(255, 255, 255, 0.66);
}

.resources-popular {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.74);
    font-weight: 800;
}

.resources-popular a {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    padding: 3px 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 13px;
}

.resources-section {
    padding: 0 0 24px;
}

.resources-board {
    padding: 20px;
    border: 1px solid var(--resources-line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--resources-shadow);
}

.resources-toolbar {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 16px;
}

.resources-toolbar a {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid var(--resources-line);
    border-radius: 8px;
    color: #43544f;
    background: #fff;
    font-size: 14px;
    font-weight: 900;
}

.resources-toolbar a.active {
    color: #fff;
    background: linear-gradient(135deg, #052b25, #0b604a);
    border-color: transparent;
}

.resources-toolbar svg {
    width: 18px;
    height: 18px;
}

.resources-layout {
    display: grid;
    grid-template-columns: 290px 1fr;
    gap: 18px;
    direction: ltr;
}

.resources-sidebar {
    display: grid;
    align-content: start;
    gap: 14px;
    direction: rtl;
}

.resources-grid {
    direction: rtl;
}

.resources-sort,
.resources-categories,
.resources-help {
    border: 1px solid var(--resources-line);
    border-radius: 8px;
    background: #fff;
}

.resources-sort {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    color: #273c36;
    font-weight: 900;
}

.resources-sort svg {
    width: 18px;
    height: 18px;
}

.resources-categories {
    padding: 18px;
}

.resources-categories h2 {
    margin: 0 0 12px;
    color: var(--resources-ink);
    font-size: 18px;
    font-weight: 900;
}

.resources-categories a {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #314840;
    font-size: 14px;
    font-weight: 800;
}

.category-name {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.category-name svg {
    width: 17px;
    height: 17px;
    color: var(--resources-green);
}

.resources-categories b {
    min-width: 40px;
    min-height: 24px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    color: var(--resources-green);
    background: #e8f7f1;
    font-size: 12px;
}

.resources-help {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2px 12px;
    padding: 18px;
    background: linear-gradient(135deg, #eef9f4, #f8fbfa);
}

.resources-help svg {
    grid-row: span 2;
    width: 34px;
    height: 34px;
    color: var(--resources-green);
}

.resources-help strong {
    color: var(--resources-ink);
    font-weight: 900;
}

.resources-help span {
    color: var(--resources-muted);
    font-size: 13px;
    font-weight: 800;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.resource-card {
    min-height: 218px;
    display: flex;
    flex-direction: column;
    padding: 22px;
    border: 1px solid var(--resources-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(8, 43, 37, 0.04);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.resource-card__image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: -8px -8px 16px;
    overflow: hidden;
    border-radius: 8px;
    background: #f3f7f5;
}

.resource-card__image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.24s ease;
}

.resource-card:hover .resource-card__image img {
    transform: scale(1.035);
}

.resource-card:hover {
    transform: translateY(-4px);
    border-color: rgba(18, 168, 117, 0.32);
    box-shadow: 0 20px 48px rgba(8, 43, 37, 0.1);
}

.resource-card__icon {
    width: 54px;
    height: 54px;
    display: inline-grid;
    place-items: center;
    border-radius: 13px;
    color: var(--resources-green);
    background: #e8f7f1;
}

.resource-card:nth-child(2n) .resource-card__icon {
    color: #b9821f;
    background: #fff6df;
}

.resource-card__icon svg {
    width: 28px;
    height: 28px;
}

.resource-card h3 {
    margin: 16px 0 8px;
    color: var(--resources-ink);
    font-size: 19px;
    line-height: 1.45;
    font-weight: 900;
}

.resource-card p {
    flex: 1;
    margin: 0;
    color: var(--resources-muted);
    font-size: 14px;
    font-weight: 700;
}

.resource-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid #edf2ef;
    color: #7a8681;
    font-size: 12px;
    font-weight: 900;
}

.resource-card__meta a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--resources-green);
}

.resource-card__meta svg {
    width: 15px;
    height: 15px;
}

.resources-cta {
    min-height: 86px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr auto;
    align-items: center;
    gap: 18px;
    margin-top: 18px;
    padding: 18px 22px;
    overflow: hidden;
    border-radius: 8px;
    color: #fff;
    background:
        radial-gradient(circle at 2% 20%, rgba(216, 166, 58, 0.16), transparent 30%),
        linear-gradient(135deg, #052b25, #073d34);
}

.resources-cta div {
    display: grid;
    gap: 2px;
    padding-inline: 6px;
}

.resources-cta strong {
    color: #fff;
    font-weight: 900;
}

.resources-cta span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 700;
}

.resources-cta a {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 20px;
    border-radius: 7px;
    color: #10231d;
    background: linear-gradient(135deg, #f0c76d, #c9942e);
    font-weight: 900;
    white-space: nowrap;
}

.resources-cta svg {
    width: 18px;
    height: 18px;
}

.resources-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.resources-pagination a,
.resources-pagination span {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border: 1px solid var(--resources-line);
    border-radius: 8px;
    background: #fff;
    color: var(--resources-ink);
    font-weight: 900;
}

.resources-pagination .disabled {
    opacity: 0.5;
}

@media (max-width: 1200px) {
    .resources-toolbar {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .resources-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .resources-cta {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .resources-container,
    .resources-hero {
        width: min(100% - 28px, 1360px);
    }

    .resources-page {
        padding-top: 112px;
    }

    .resources-hero,
    .resources-hero__content {
        min-height: 470px;
    }

    .resources-hero__shade {
        background:
            linear-gradient(180deg, rgba(2, 23, 20, 0.5), rgba(2, 23, 20, 0.86)),
            linear-gradient(90deg, rgba(2, 23, 20, 0.42), rgba(2, 23, 20, 0.48));
    }

    .resources-hero__content {
        display: block;
    }

    .resources-hero__copy {
        padding: 120px 18px 28px;
    }

    .resources-layout {
        grid-template-columns: 1fr;
    }

    .resources-sidebar {
        grid-template-columns: 1fr;
    }

    .resources-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .resources-hero h1 {
        font-size: 31px;
    }

    .resources-hero p {
        font-size: 16px;
    }

    .resources-toolbar,
    .resources-grid,
    .resources-cta {
        grid-template-columns: 1fr;
    }

    .resources-board {
        padding: 14px;
    }

    .resources-toolbar a {
        justify-content: flex-start;
    }

    .resource-card {
        min-height: auto;
    }
}
