/* ============================================
   Resources List Block
   ============================================ */
.acv-resources-list {
    padding: 80px 190px;
    background-color: #ffffff;
}

.acv-resources-list-container {
    max-width: 1600px;
    margin: 0 auto;
}

/* Header Section */
.acv-resources-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.acv-resources-list-title {
    font-size: 2.5rem;
    font-weight: 400;
    color: #070707;
    margin: 0;
    line-height: 1.2;
}

/* Button styles moved to /css/buttons.css */
.acv-resources-list-btn {
    white-space: nowrap;
}

/* Resource Grid */
.acv-resources-list-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

/* Resource Card */
.acv-resource-card {
    background: #f3f3f3;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.acv-resource-card-link {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    aspect-ratio: 1 / 1.15;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.acv-resource-card.acv-rl-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .acv-resource-card {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Card Image - fills top portion of card */
.acv-resource-image {
    position: relative;
    width: 100%;
    padding: 29px;
    height: 65%;
    z-index: 1;
    transition: opacity 0.4s ease;
}

.acv-resource-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.acv-resource-placeholder {
    width: 100%;
    height: 100%;
    background-color: #e5e5e5;
}

/* Bottom bar overlay (visible when not hovering) */
.acv-resource-overlay {
    position: relative;
    padding: 20px 24px;
    height: 35%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 2;
    transition: opacity 0.4s ease;
}

.acv-resource-name {
    font-size: 1.5rem;
    font-weight: 400;
    color: #000000;
    margin: 0;
    line-height: 1.4;
}

.acv-resource-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 400;
    color: #ea7e37;
    opacity: 1;
    text-decoration: none;
    transition: opacity 0.3s ease, gap 0.3s ease;
}

.acv-resource-link svg,
.acv-resource-link i {
    transition: transform 0.3s ease;
}

/* Hover content (hidden by default) */
.acv-resource-hover-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #14394f;
    padding: 24px;
    height: 35%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 3;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.acv-resource-hover-title {
    font-size: 1.5rem;
    font-weight: 400;
    color: #ffffff;
    margin: 0;
    line-height: 1.4;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.acv-resource-hover-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ea7e37;
    font-size: 0.85rem;
    font-weight: 400;
    text-decoration: none;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.4s ease 0.1s, opacity 0.4s ease 0.1s, gap 0.3s ease;
}

.acv-resource-hover-cta svg,
.acv-resource-hover-cta i {
    transition: transform 0.3s ease;
}

/* Hover States */
.acv-resource-card-link:hover .acv-resource-overlay {
    opacity: 0;
}

.acv-resource-card-link:hover .acv-resource-hover-content {
    opacity: 1;
    visibility: visible;
}

.acv-resource-card-link:hover .acv-resource-hover-title,
.acv-resource-card-link:hover .acv-resource-hover-cta {
    transform: translateY(0);
    opacity: 1;
}

.acv-resource-card-link:hover .acv-resource-link {
    gap: 12px;
}

.acv-resource-card-link:hover .acv-resource-hover-cta {
    gap: 12px;
}

.acv-resource-card-link:hover .acv-resource-link svg,
.acv-resource-card-link:hover .acv-resource-hover-cta svg,
.acv-resource-card-link:hover .acv-resource-link i,
.acv-resource-card-link:hover .acv-resource-hover-cta i {
    transform: translateX(4px);
}

/* Empty State */
.acv-resources-list-empty {
    text-align: center;
    color: #6b7280;
    font-style: italic;
    padding: 40px;
}

/* Responsive */
@media (max-width: 1024px) {
    .acv-resources-list-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .acv-resources-list-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}

@media (max-width: 640px) {
    .acv-resources-list {
        padding: 60px 20px;
    }

    .acv-resources-list-container {
        padding: 0;
    }

    .acv-resources-list-grid {
        grid-template-columns: 1fr;
    }

    .acv-resources-list-title {
        font-size: 1.75rem;
    }

    .acv-resource-name {
        font-size: 1.5rem;
    }
}