/* Common styles */
.resources-results {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* GRID VIEW (Default) — Two per row */
.resources-results.grid-view .resource-item {
    box-sizing: border-box;
    padding: 32px 40px;
    background: white;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: space-between;
}

/* LIST VIEW — Full width */
.resources-results.list-view {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.resources-results.list-view .resource-item {
    flex: 1 1 100%;
    width: 100%;
    box-sizing: border-box;
    padding: 32px 40px;
    background: white;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: space-between;
}

/* Typography */
.resources-results .resource-title {
    font-size: 22px !important;
    line-height: 30px !important;
}

/* Link styling */
.resources-results .read-more {
    color: black !important;
    text-decoration: underline !important;
}

@media (min-width: 768px) {
	.resources-results.grid-view .resource-item {
		    flex: 0 0 calc(50% - 10px);
	}
}