/*
 Theme Name:   Astra Child - Wildlife Returns
 Theme URI:    https://wildlifereturns.org/
 Description:  Child theme for Astra, customised for the Resources section
 Author:       Wildlife Returns
 Template:     astra
 Version:      1.0.1
*/

/* Add any custom CSS below this line */

.single-resources .resource-header {
	margin-bottom: 1.5em;
}

.single-resources .resource-title {
	font-family: var(--ast-heading-font-family) !important;
	color: var(--ast-global-color-0);
}

.single-resources .resource-type {
	display: inline-block;
	background: #f7f7f7;
	color: var(--ast-global-color-0);
	font-family: var(--ast-body-font-family) !important;
	font-size: 0.85em;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 0.3em 0.8em;
	border-radius: 3px;
	margin-right: 0.75em;
}

.single-resources .resource-date {
	font-family: var(--ast-body-font-family) !important;
	color: #666;
	font-size: 0.9em;
}

.single-resources .resource-summary {
	font-family: var(--ast-body-font-family) !important;
	font-size: 1.125rem;
	line-height: 1.6;
	color: #1a1a1a;
	background-color: #f7f7f7;
	border: none;
	padding: 24px 28px;
	margin: 1.5em 0;
}

.single-resources .resource-summary p {
	margin-bottom: 0.5em;
}

.single-resources .resource-summary p:last-child {
	margin-bottom: 0;
}

.single-resources .resource-content {
	font-family: var(--ast-body-font-family) !important;
	font-size: 1.125rem;
	line-height: 1.6;
	color: #1a1a1a;
	max-width: 760px;
}

.single-resources .resource-content p {
	margin-bottom: 1.25rem;
}

.single-resources .resource-download {
	margin-top: 2em;
}

/* Let Astra's native .ast-button class handle color/shape so it matches
   buttons used elsewhere on the site automatically */

/* Resources archive grid */
.resources-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 2rem;
	margin-top: 2rem;
}

.resource-card {
	background: #fff;
	padding: 1.5rem;
}

.resource-card-link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.resource-card .post-thumb img {
	object-fit: contain;
	width: 100%;
	height: auto;
	margin-bottom: 1rem;
}

.resource-card-title {
	font-family: var(--ast-heading-font-family) !important;
	color: var(--ast-global-color-0);
	font-size: 1.25rem;
	margin-bottom: 0.5rem;
}

.resource-card-title a,
.resource-card-title a:hover,
.resource-card-title a:visited {
	color: var(--ast-global-color-0);
	text-decoration: none;
}

.resource-card-summary {
	font-family: var(--ast-body-font-family) !important;
	font-size: 0.95rem;
	line-height: 1.6;
	color: #444;

	/* Clamp to roughly 5 lines */
	display: -webkit-box;
	-webkit-line-clamp: 5;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
