ul.filter-panel,
article ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ── HERO ── */

.page-hero h1 {
    font-size: clamp(48px, 6vw, 88px);
    font-weight: 300;
    text-transform: uppercase;
    color: var(--text-color);
    line-height: 0.95;
    margin-bottom: 14px;
}

.page-hero h1 span {
    color: var(--primary-color);
}

.page-hero .hero-desc {
    max-width: 900px;
    line-height: 1.65;
}

.result-count {
    margin-top: 22px;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
}

.result-count strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* ── FILTROS ── */

.filter-tabs {
    display: flex;
    border-bottom: 1px solid rgba(250, 197, 50, 0.1);
    padding: 0 1vw;
    gap: 0;
    overflow: hidden;
}

.filter-tab {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7) !important;
    padding: 12px 16px;
    cursor: pointer;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all 0.2s ease-in-out;
    user-select: none;
    white-space: nowrap;
}

.filter-tab:hover {
    color: rgba(255, 255, 255, 1) !important;
}

.filter-tab.active {
    color: var(--primary-color) !important;
    border-bottom-color: var(--primary-color);
}

.filter-tab.active.tipo {
    color: #b388ff !important;
    border-bottom-color: #b388ff;
}

.filter-tab.active.disc {
    color: var(--secondary-color) !important;
    border-bottom-color: var(--secondary-color);
}

/* painéis de pills */
.filter-panels {
    padding: 16px 16px 24px;
}

.filter-panel {
    display: none;
}

.filter-panel.active {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* pills */
.fa-pill {
    border: 1px solid rgba(250, 197, 50, 0.22);
    padding: 8px 16px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.2s;
    background: transparent;
    user-select: none;
}

.fa-pill:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.fa-pill.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--bg);
    font-weight: 700;
}

.filter-panel.tipo .fa-pill:hover {
    border-color: #b388ff;
    color: #b388ff;
}

.filter-panel.tipo .fa-pill.active {
    background: var(--third-color);
    border-color: var(--third-color);
    color: #fff;
}

.filter-panel.disc .fa-pill:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.filter-panel.disc .fa-pill.active {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #fff;
}

/* active filter tags + reset */
.filter-status {
    padding: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    min-height: 44px;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(250, 197, 50, 0.08);
    border: 1px solid rgba(250, 197, 50, 0.25);
    padding: 3px 10px;
    font-size: 12px;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.filter-tag:hover {
    background: rgba(251, 13, 105, 0.15);
    border-color: var(--secondary-color);
    color: #fff;
}

.filter-tag .closeFilterTag {
    font-size: 14px;
    line-height: 1;
}

.btn-reset {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.25);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-reset:hover {
    color: var(--secondary-color);
}

/* ── GRID CARDS ── */
.resources-section {
    position: relative;
    z-index: 1;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.card-grid-item {
    position: relative;
    height: 300px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: border-color 0.3s;
    border-radius: 0.375rem;
}


.card-grid-item.hidden {
    display: none;
}
.card-info {
    height: 100%;
    display: flex;
    align-items: end;
    overflow: hidden;
}

.card-grid-item:hover .glow-wrapper {
    opacity: 1;
    z-index: 10;
}

.card-grid-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 3;
    filter: brightness(0.7) saturate(0.7);
    transition: transform 0.55s ease, filter 0.4s ease;
}

.card-grid-item:hover img {
    transform: scale(1.06);
    filter: brightness(0.22) saturate(0.5);
}

.card-grid-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgb(0 4 27 / 65%) 0%, rgb(0 4 27 / 70%) 55%, transparent 100%);
    z-index: 1;
}

.card-grid-item .card-content {
    position: relative;
    z-index: 2;
    padding: 50% 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cb-badges {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.cb-badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 8px;
    color: #e0e0e0;
}

.cb-badge.publico {
    background: #90742d;
}

.cb-badge.tipo {
    background: var(--third-color);
}

.cb-badge.disc {
    background: #801742;
}

.card-grid-item h3 {
    font-family: "Londrina Solid", sans-serif;
    font-size: 22px;
    font-weight: 300;
    text-transform: uppercase;
    color: #fff;
    line-height: 1.1;
}

.card-grid-item p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

.card-grid-item:hover p {
    max-height: 150px;
    opacity: 1;
    height: 100%;
}

.cb-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
}

.knowMore,
p.knowMore {
    font-size: 12px;
    margin-left: 0;
}


.card-grid-item:hover .knowMore::before,
.card-grid-item:hover p.knowMore::before {
    width: 100%;
}

.cb-dl {
    width: 32px;
    height: 32px;
    border: 1.5px solid rgba(250, 197, 50, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
    flex-shrink: 0;
    position: absolute;
    z-index: 2;
    right: 24px;
    bottom: 24px;
}

 .cb-dl:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.cb-dl svg {
    width: 14px;
    height: 14px;
    stroke: var(--primary-color);
    stroke-width: 2;
    fill: none;
    transition: stroke 0.2s;
}

.cb-dl:hover svg {
    stroke: var(--bg);
}

/* empty state */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
}

.empty-icon {
    font-size: 48px;
    opacity: 0.25;
}

.empty-state p {
    color: rgba(255, 255, 255, 0.25);
    font-size: 14px;
    margin-top: 14px;
}


@media (min-width: 2000px) {
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {

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

    .card-grid-item {
        transform: none !important;
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 475px) {

    .filter-tabs {
        overflow-x: scroll;
        overflow-y: hidden;
    }
}
