/* --- Section --- */
.industry-resources-block {
    padding: var(--wp--preset--spacing--large);
    background-color: var(--wp--preset--color--main);
}

/* --- Preview placeholder --- */
.industry-resources-block--preview {
    padding: var(--wp--preset--spacing--large);
}

.industry-resources-block__placeholder {
    text-align: center;
    padding: var(--wp--preset--spacing--large);
    border: 0.125rem dashed var(--wp--preset--color--secondary);
    color: var(--wp--preset--color--secondary);
    font-family: var(--wp--preset--font-family--roboto-flex);
    font-size: var(--wp--preset--font-size--base);
    margin: 0;
}

/* --- Header --- */
.industry-resources-block__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.industry-resources-block__heading {
    font-family: var(--wp--preset--font-family--neue-haas-display);
    font-size: var(--wp--preset--font-size--large);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.044rem;
    color: var(--wp--preset--color--base);
    margin: 0;
}

.industry-resources-block__view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--wp--preset--color--base);
    transition: color 0.3s ease-in-out;
}

.industry-resources-block__view-all:hover {
    color: var(--wp--preset--color--tertiary);
}

.industry-resources-block__view-all-text {
    font-family: var(--wp--preset--font-family--roboto-flex);
    font-size: var(--wp--preset--font-size--x-small);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    line-height: 1.2;
}

.industry-resources-block__view-all-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.0625rem;
    height: 2.0625rem;
    color: var(--wp--preset--color--primary);
    transition: color 0.3s ease-in-out;
}

.industry-resources-block__view-all-arrow svg {
    width: 100%;
    height: 100%;
}

.industry-resources-block__view-all:hover .industry-resources-block__view-all-arrow {
    color: var(--wp--preset--color--primary-dark);
}

/* --- Separator --- */
.industry-resources-block__separator {
    border: none;
    border-top: 0.0625rem solid var(--wp--preset--color--tertiary);
    margin: 1.0625rem 0 var(--wp--preset--spacing--medium);
}

/* --- Grid --- */
.industry-resources-block__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.625rem 1rem;
}

/* --- Card --- */
.industry-resources-block__card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
}

.industry-resources-block__card:hover .industry-resources-block__title {
    text-decoration: underline;
}

/* --- Card image --- */
.industry-resources-block__image-wrap {
    position: relative;
    height: 11.75rem;
    margin: 0;
    overflow: hidden;
    width: 100%;
}

.industry-resources-block__image {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
    display: block;
}

.industry-resources-block__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 57.7%, rgba(0, 0, 0, 0.2));
    pointer-events: none;
}

/* --- Card body --- */
.industry-resources-block__body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 1.4375rem 1rem;
    background-color: var(--wp--preset--color--base);
}

/* --- Meta row --- */
.industry-resources-block__meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.6875rem;
}

.industry-resources-block__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--wp--preset--font-family--roboto-flex);
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.2;
    color: var(--wp--preset--color--main);
}

/* --- Brand icon --- */
.industry-resources-block__brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.4375rem;
    height: 1.4375rem;
    border-radius: 50%;
    flex-shrink: 0;
    background-color: var(--wp--preset--color--primary-light);
}

.industry-resources-block__brand-icon svg {
    width: 0.625rem;
    height: auto;
}

.industry-resources-block__brand-icon--americase {
    background-color: var(--wp--preset--color--primary-light);
}

.industry-resources-block__brand-icon--hazmat-safety-consulting {
    background-color: var(--wp--preset--color--hazmat-orange);
}

.industry-resources-block__brand-icon--fulcrum-testing {
    background-color: var(--wp--preset--color--fulcrum-green);
}

.industry-resources-block__brand-icon--americase-international {
    background-color: var(--wp--preset--color--primary-alt);
}

/* --- Card title --- */
.industry-resources-block__title {
    font-family: var(--wp--preset--font-family--neue-haas-display);
    font-size: 1.375rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.069rem;
    color: var(--wp--preset--color--main);
    margin: 0;
    flex-grow: 1;
}

/* --- Card CTA --- */
.industry-resources-block__cta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: var(--wp--preset--spacing--small);
}

.industry-resources-block__cta-text {
    font-family: var(--wp--preset--font-family--roboto-flex);
    font-size: var(--wp--preset--font-size--x-small);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    line-height: 1.2;
    color: var(--wp--preset--color--main);
}

.industry-resources-block__cta-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.0625rem;
    height: 2.0625rem;
    color: var(--wp--preset--color--primary);
    transition: color 0.3s ease-in-out;
}

.industry-resources-block__cta-arrow svg {
    width: 100%;
    height: 100%;
}

.industry-resources-block__card:hover .industry-resources-block__cta-arrow {
    color: var(--wp--preset--color--primary-dark);
}

/* --- Responsive --- */
@media (max-width: 64rem) {
    .industry-resources-block__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 37.5rem) {
    .industry-resources-block__grid {
        grid-template-columns: 1fr;
    }
}
