/* =========================================================
   Resources & Insights
   PDF Gallery
   ========================================================= */

.resources-insights-gallery {
    width: 100%;
}

.resources-insights-gallery__container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 60px 30px;
}

.resources-insights-gallery__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
}

.resources-insights-gallery__item {
    min-width: 0;
    margin: 0;
}

.resources-insights-gallery__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 2px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.16);
    color: inherit;
    text-decoration: none;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.resources-insights-gallery__link:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.18);
    color: inherit;
    text-decoration: none;
}

.resources-insights-gallery__link:focus-visible {
    outline: 2px solid #333;
    outline-offset: 3px;
}


/* =========================================================
   PDF Preview
   ========================================================= */

.resources-insights-gallery__image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
}

.resources-insights-gallery__image-file {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}


/* =========================================================
   Card Details
   ========================================================= */

.resources-insights-gallery__details {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px 20px 18px;
    line-height: 1.35;
}

.resources-insights-gallery__type {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8eb63e;
}

.resources-insights-gallery__title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    color: #333;
}

.resources-insights-gallery__action {
    margin-top: auto;
    padding-top: 18px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.resources-insights-gallery__action-arrow {
    display: inline-block;
    margin-left: 4px;
    transition: transform 0.25s ease;
}

.resources-insights-gallery__link:hover .resources-insights-gallery__title {
    color: #333;
}

.resources-insights-gallery__link:hover .resources-insights-gallery__action-arrow {
    transform: translateX(3px);
}


/* =========================================================
   Empty State
   ========================================================= */

.resources-insights-gallery__empty {
    margin: 0;
}


/* =========================================================
   Responsive
   ========================================================= */

/* Tablet / small laptop */
@media (min-width: 768px) and (max-width: 1023px) {

    .resources-insights-gallery__container {
        padding: 50px 24px;
    }

    .resources-insights-gallery__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 24px;
    }

    .resources-insights-gallery__image {
        height: 280px;
    }
}


/* Larger phones / small tablets */
@media (min-width: 480px) and (max-width: 767px) {

    .resources-insights-gallery__container {
        padding: 40px 20px;
    }

    .resources-insights-gallery__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .resources-insights-gallery__image {
        height: 260px;
    }

    .resources-insights-gallery__details {
        padding: 18px 16px 16px;
    }

    .resources-insights-gallery__title {
        font-size: 17px;
    }
}


/* Narrow phones */
@media (max-width: 479px) {

    .resources-insights-gallery__container {
        padding: 35px 15px;
    }

    .resources-insights-gallery__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .resources-insights-gallery__image {
        height: 330px;
    }

    .resources-insights-gallery__details {
        padding: 18px 16px 16px;
    }
}