/* =====================================================
   LIST HERO (title + filter bar)
   ===================================================== */
.list-hero {
    padding-bottom: 60px;
}

.list-hero__inner {
    width: 80%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.list-hero__inner .hero-title {
    font-size: 65px;
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
}

.list-hero__title-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.list-hero__inner .claim {
    color: #aaa;
    margin: 0;
    font-size: 16px;
}

/* =====================================================
   FILTER BAR (desktop pills)
   ===================================================== */
.filter-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-right: 4px;
}

.filter-bar label {
    display: flex;
    align-items: center;
    gap: 6px;
    background: white;
    border: 1px solid var(--clr-border);
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.filter-bar label:has(input:checked) {
    background: var(--clr-red);
    color: white;
    border-color: var(--clr-red);
}

.filter-bar input[type="checkbox"] {
    display: none;
}

/* =====================================================
   LIST CONTAINER
   ===================================================== */
.list-container {
    width: 80%;
    margin: 60px auto 0;
    padding-bottom: 80px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* =====================================================
   CARDS GRID (remaining items after featured)
   ===================================================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    margin-top: 20px;
}

/* =====================================================
   LOAD MORE ANIMATION
   ===================================================== */
@keyframes card-drop-in {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-news--animate {
    animation: card-drop-in 0.4s ease both;
}

/* =====================================================
   PARTNER LOGO (override card-news img per loghi)
   ===================================================== */
.partner-logo-img {
    object-fit: contain !important;
    background-color: var(--clr-dark);
    padding: 24px;
}

.partners-grid {
    grid-template-columns: repeat(4, 1fr);
}

/* =====================================================
   NEWSLETTER CARD (last grid item)
   ===================================================== */
.card-news--cta {
    background-color: var(--clr-dark);
    cursor: default;
}

.card-news--cta:hover {
    transform: none;
}

.card-news-cta__body {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
    justify-content: center;
}

.card-news-cta__label {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--clr-red);
}

.card-news-cta__title {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    color: white;
}

.card-news-cta__sub {
    margin: 0;
    font-size: 14px;
    color: #888;
    line-height: 1.6;
}

/* =====================================================
   LOAD MORE
   ===================================================== */
#show {
    display: block;
    margin: 30px auto;
    cursor: pointer;
}


/* =====================================================
   NEWSLETTER CTA BANNER
   ===================================================== */
.newsletter-cta {
    width: 80%;
    margin: 0 auto;
    padding: 60px 0;
    display: flex;
    justify-content: flex-end;
}

.newsletter-cta__card {
    width: max-content;
    max-width: 600px;
    background-color: var(--clr-dark);
    border-radius: 25px;
    padding: 50px;
}


.newsletter-cta__text {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 600px;
}

.newsletter-cta__label {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--clr-red);
}

.newsletter-cta__title {
    margin: 0;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.1;
    color: white;
}

.newsletter-cta__sub {
    margin: 0;
    font-size: 15px;
    color: #888;
    line-height: 1.5;
}

/* =====================================================
   MOBILE (< 800px)
   ===================================================== */
@media screen and (max-width: 800px) {
    .list-hero__inner {
        width: 90%;
    }

    .list-hero__inner .hero-title {
        font-size: 38px;
    }

    .list-container {
        width: 90%;
        margin-top: 30px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .partners-grid {
        grid-template-columns: 1fr;
    }

    .partner-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .partner-card__logo {
        width: 80px;
        height: 80px;
    }

    #show {
        width: max-content;
    }

    .newsletter-cta {
        width: 90%;
        padding: 30px 0;
    }

    .newsletter-cta__card {
        width: 100%;
        max-width: 100%;
        padding: 36px;
    }

    .newsletter-cta__title {
        font-size: 28px;
    }
}
