/**
 * COA Category Cards Styles
 * Wide variant: horizontal 2-column grid with D-shape image
 * Tall variant: vertical 3-column grid with image on top
 */

/* WIDE CARDS - Horizontal 2-column */

.resourceGrid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 28px;
}

.resourceCard {
	display: flex;
	align-items: stretch;
	background: #ffffff;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	text-decoration: none;
	color: inherit;
	transition: box-shadow 0.2s ease;
	min-height: 450px;
}

.resourceCard:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.resourceCardImageWrap {
	flex-shrink: 0;
	width: 50%;
	overflow: hidden;
	border-radius: 0 50% 50% 0;
	align-self: stretch;
}

.resourceCardImageWrap img.resourceCardImage {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	max-width: none;
}

.resourceCardContent {
	flex: 1;
	min-width: 0;
	padding: 32px 32px 32px 16px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.resourceCardTitle {
	font-size: 1.25rem;
	font-weight: 600;
	color: #1a1a1a;
	line-height: 1.4;
	margin-bottom: 12px;
}

.resourceCardMeta {
	font-size: 0.8125rem;
	font-weight: 500;
	color: #B31A88;
	margin-bottom: 16px;
}

.resourceCardMetaDot {
	margin: 0 6px;
}

.resourceCardExcerpt {
	font-size: 0.9375rem;
	font-weight: 400;
	color: #4a4a4a;
	line-height: 1.55;
	margin-bottom: 20px;
}

.resourceCardReadMore {
	display: block;
	margin-top: 8px;
	color: #B31A88;
	font-weight: 600;
	text-decoration: underline;
}

.resourceCard:hover .resourceCardReadMore {
	text-decoration: none;
}

.resourceCardTags {
	display: none;
	flex-wrap: wrap;
	gap: 10px;
}

.resourceCardTag {
	display: inline-block;
	padding: 6px 18px;
	border: 1.5px solid #B31A88;
	border-radius: 50px;
	font-size: 0.8125rem;
	font-weight: 500;
	color: #B31A88;
	background: transparent;
	white-space: nowrap;
}

/* TALL CARDS - Vertical 3-column */

.newsroomGrid {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 28px;
}

.newsroomCard {
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	text-decoration: none;
	color: inherit;
	transition: box-shadow 0.2s ease;
}

.newsroomCard:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.newsroomCardImageWrap {
	width: 100%;
	height: 220px;
	overflow: hidden;
	border-radius: 0 0 50% 50%;
}

.newsroomCardImageWrap img.newsroomCardImage {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	max-width: none;
}

.newsroomCardContent {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 24px 24px 28px;
}

.newsroomCardMeta {
	font-size: 0.8125rem;
	font-weight: 500;
	color: #00415A;
	margin-bottom: 14px;
}

.newsroomCardMetaDot {
	margin: 0 6px;
}

.newsroomCardTitle {
	font-size: 1rem;
	font-weight: 400;
	color: #333333;
	line-height: 1.6;
	margin-bottom: 24px;
	flex: 1;
}

.newsroomCardTags {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.newsroomCardTag {
	display: inline-block;
	padding: 6px 16px;
	border: 1.5px solid #B31A88;
	border-radius: 50px;
	font-size: 0.75rem;
	font-weight: 500;
	color: #B31A88;
	background: transparent;
	white-space: nowrap;
}

/* LOAD MORE + PAGINATION FALLBACK */

.resourceCardsBlock {
	display: block;
}

.resourceLoadMoreWrap {
	display: flex;
	justify-content: flex-end;
	margin-top: 36px;
}

.resourceLoadMoreBtn,
.resourceLoadMoreBtn:visited {
	appearance: none;
	background: #B31A88;
	color: #ffffff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	padding: 12px 28px;
	border: none;
	border-radius: 50px;
	cursor: pointer;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.resourceLoadMoreBtn:hover,
.resourceLoadMoreBtn:focus {
	background: #9A1575;
	color: #ffffff;
	box-shadow: 0 4px 16px rgba(179, 26, 136, 0.25);
}

.resourceLoadMoreBtn:active {
	background: #9A1575;
}

.resourceLoadMoreBtn:disabled,
.resourceLoadMoreBtn.is-loading {
	opacity: 0.7;
	cursor: progress;
}

.resourceLoadMoreBtn.has-error {
	background: #8a1466;
}

@media (max-width: 600px) {
	.resourceLoadMoreWrap {
		justify-content: center;
	}
}

.resourcePaginationFallback {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	margin-top: 36px;
}

.resourcePaginationLink {
	display: inline-block;
	padding: 8px 14px;
	border: 1.5px solid #B31A88;
	border-radius: 50px;
	font-size: 0.875rem;
	font-weight: 500;
	color: #B31A88;
	text-decoration: none;
}

.resourcePaginationLink.is-current {
	background: #B31A88;
	color: #ffffff;
}

/* SHARED */

.resourceCardNoResults {
	grid-column: 1 / -1;
	text-align: center;
	padding: 40px 20px;
	color: #666666;
	font-size: 1rem;
}

/* RESPONSIVE */

@media (max-width: 960px) {
	.resourceGrid {
		grid-template-columns: 1fr;
	}

	.resourceCard {
		min-height: 380px;
	}

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

@media (max-width: 600px) {
	.resourceCard {
		flex-direction: column;
		text-align: center;
		height: auto;
	}

	.resourceCardImageWrap {
		width: 100%;
		height: 200px;
		border-radius: 0 0 50% 50%;
	}

	.resourceCardContent {
		padding: 20px 24px 28px;
	}

	.resourceCardTags {
		justify-content: center;
	}

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