.resources-scroll-wrapper {
    position: relative;
}

.resources-scroll {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.resources-scroll::-webkit-scrollbar {
    height: 0px;
}

.resources-scroll::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0);
    border-radius: 999px;
}

.resource-card {
    position: relative;
    display: block;
    flex: 0 0 auto;
    width: 250px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    text-decoration: none;
    color: #fff;
    scroll-snap-align: start;
    isolation: isolate;
    height: 200px;
    box-shadow: 25px 25px 30px 0px rgb(0 0 0 / 20%);
    margin: 40px 0;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.resources-scroll .resource-card:last-child {
    margin-right: 50px;
}

.resource-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.65) 0%,
            rgba(0, 0, 0, 0.1) 50%,
            rgba(0, 0, 0, 0) 100%);
    transition: background 0.35s ease;
    z-index: 1;
}

.resource-card:hover {
    transform: translateY(-10px);
}

.resource-card:hover::before {
    background: var(--destaque_color);
}

.resource-card__badge {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
    background-color: var(--destaque_color);
    color: #fff;
    font-weight: 500;
    font-size: 14px;
    text-transform: lowercase;
    padding: 4px 12px;
    border-radius: 999px;
    transition: background-color 0.35s ease, color 0.35s ease;
}


.resource-card__content {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 2;
}

.resource-card__title {
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0 0 8px;
    letter-spacing: 0.02em;
    color: #fff;
}

.resource-card__subtitle {
    font-size: 12px;
    font-weight: 400;
    color: #fff;
    line-height: 1.4;
    margin: 0 0 12px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.3s ease, margin 0.35s ease;
}

.resource-card:hover .resource-card__subtitle {
    max-height: 80px;
    opacity: 1;
    margin-bottom: 16px;
}

.resource-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.resource-card__grade {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    transition: color 0.35s ease;
}


.resource-card__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: color 0.35s ease, transform 0.35s ease;
}

.resource-card:hover .resource-card__arrow {
    transform: translateX(4px);
}

.resources-nav {
    position: absolute;
    width: 40px;
    height: 40px;
    bottom: -20px;
    border-radius: 50%;
    border: 2px solid var(--destaque_color);
    background: transparent;
    color: var(--destaque_color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.resources-nav:hover {
    background: var(--destaque_color);
    color: #fff;
}

.resources-scroll-wrapper button:disabled {
    opacity: 0.3;
    cursor: default;
}

.resources-nav--prev {
    left: 0px;
}

.resources-nav--next {
    left: 50px;
}


@media (max-width: 768px) {
    .resource-card {
        width: 280px;
    }
}