/* Resources Grid */
.resources-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
    font-family: "Poppins", sans-serif;
}

.resource-card {
	background: transparent;
	border: 1px solid #D2DAC5;
	border-radius: 12px;
	overflow: hidden;
	transition: box-shadow 0.3s ease;
}
.resource-card.resource-card--radio{

}

.resource-thumbnail {
	position: relative;
	overflow: hidden;
	background: #e0e0e0;
	line-height: 0;
}

.resource-thumbnail img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.resource-card-body {
	padding: 20px;
}

.resource-card-body-top{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid #D2DAC5;
}

.resource-icon {
	font-size: 32px;
	width: 32px;
	height: 32px;
	color: #45ac40;
	margin-bottom: 10px;
	display: inline-block;
}

.resource-title {
	margin: 0 0 10px;
	font-size: 18px;
	line-height: 1.3;
    color: #10300E;
}

.resource-excerpt {
	margin: 0 0 15px;
	font-size: 14px;
	color: #666;
}

.resource-button {
	display: flex;
    align-items: center;
    gap: 8px;
	padding: 0;
	background: transparent !important;
	color: #10300E !important;
	text-decoration: none;
	border-radius: 4px;
	font-size: 14px;
    font-weight: 600;
	transition: background 0.3s ease;
}
.resource-button svg{
    width: 20px;
    height: 20px;
}
.resource-button:hover {
	background: transparent !important;
	color: #10300E !important;
}

.resources-view-all {
	text-align: center;
	margin-bottom: 40px;
}

.resource-view-all-button {
	display: inline-block;
	padding: 12px 30px;
	background: transparent !important;
	color: #45ac40 !important;
	border: 2px solid #45ac40 !important;
	text-decoration: none;
	border-radius: 4px;
	font-size: 16px;
	font-weight: 600;
	transition: all 0.3s ease;
}

.resource-view-all-button:hover {
	background: #45ac40 !important;
	color: #fff !important;
}

/* Radio card player */
.resource-card--radio {
	padding: 0;
}

.radio-player-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 20px 20px 0;
}

.radio-play-button {
	flex-shrink: 0;
	background: none!important;
	border: none;
	padding: 0;
	cursor: pointer;
	line-height: 0;
}

.radio-play-button:hover{
    background: none!important;
}

.radio-play-button svg {
	display: block;
}

.radio-waveform {
	flex: 1;
	position: relative;
	height: 50px;
	overflow: hidden;
} 

.radio-waveform-canvas {
	display: block;
	width: 100%;
	height: 100%;
}

.resource-duration {
	font-size: 14px;
    font-weight: bold;
	color: #10300E;
    margin:0;
}

/* Video card play button overlay */
.resource-card--video {
	cursor: pointer;
}

.resource-play-button {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: none!important;
	border: none;
	padding: 0;
	cursor: pointer;
	opacity: 0.9;
	transition: opacity 0.2s, transform 0.2s;
	z-index: 2;
}

.resource-play-button:hover {
	opacity: 1;
    background: none!important;
	transform: translate(-50%, -50%) scale(1.1);
}

/* Video modal */
.resource-video-modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 999999;
}

.resource-video-modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.85);
}

.resource-video-modal-content {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 90%;
	max-width: 960px;
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: 8px;
	overflow: hidden;
}

.resource-video-modal-close {
	position: absolute;
	top: -40px;
	right: 0;
	background: none;
	border: none;
	color: #fff;
	font-size: 32px;
	cursor: pointer;
	z-index: 10;
	line-height: 1;
	padding: 0;
}

.resource-video-modal-embed {
	width: 100%;
	height: 100%;
}

.resource-video-modal-embed iframe {
	border: 0;
}

@media (max-width: 768px) {
	.resources-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

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