/* ============================================================
   Gemini OB/GYN — Resources page template
   Loaded only for template-resources.php (Pregnancy Resources,
   Gynecology Resources, …). Relies on tokens + shared classes
   (.container, .rich-text) defined in style.css.
   ============================================================ */

/* ----------------------------------------------------------
   1. Hero banner — full-bleed image, dark overlay, Trajan title
---------------------------------------------------------- */
.resource-hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 280px;
	overflow: hidden;
	background: var(--c-band-dark);
	isolation: isolate;
}
@media (max-width: 900px) {
	.resource-hero { height: 200px; }
}
.resource-hero__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: -2;
}
.resource-hero__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.26);
	z-index: -1;
}
.resource-hero__inner {
	text-align: center;
}
.resource-hero__title {
	margin: 0;
	font-family: var(--ff-display);
	font-weight: 400;
	font-size: var(--fs-h1);            /* up to 60px */
	line-height: 1.1;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--c-on-dark);
}

/* ----------------------------------------------------------
   2. Intro
---------------------------------------------------------- */
.resource-intro {
	padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(1rem, 2vw, 1.5rem);
	background: var(--c-bg);
}
.resource-intro__text {
	max-width: 1095px;
	margin: 0 auto;
	font-family: var(--ff-body);
	font-size: var(--fs-body-lg);       /* 22px */
	line-height: 1.7;
	color: var(--c-body);
	text-align: center;
}

/* ----------------------------------------------------------
   3. Resource sections
---------------------------------------------------------- */
.resource-sections {
	padding: clamp(2.5rem, 5vw, 4.5rem) 0 var(--section-pad-y);
	background: var(--c-bg);
}
.resource-block {
	padding: clamp(1.75rem, 3.5vw, 3rem) 0;
	border-bottom: 1px solid var(--c-line);
}
.resource-block:first-child { padding-top: 0; }
.resource-block:last-child  { border-bottom: 0; }

.resource-block__heading {
	margin: 0 0 clamp(1.25rem, 2.5vw, 2rem);
	font-family: var(--ff-display);     /* Trajan Pro */
	font-weight: 400;
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	line-height: 1.15;
	letter-spacing: 0.02em;
	color: var(--c-headline);
	font-variant-caps: all-small-caps;
}

.resource-block__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.35rem 2.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}
@media (max-width: 760px) {
	.resource-block__list { grid-template-columns: 1fr; }
}

.resource-block__item { margin: 0; }

.resource-link {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	padding: 0.7rem 0.25rem;
	font-family: var(--ff-body);
	font-size: 17px;
	line-height: 1.45;
	color: var(--c-body);
	text-decoration: none;
	transition: color 0.2s var(--ease);
}
.resource-link__icon {
	flex: 0 0 auto;
	margin-top: 1px;
	color: var(--c-accent);
}
.resource-link__label {
	flex: 1 1 auto;
	/* underline drawn under the text only, revealed on hover */
	background-image: linear-gradient(currentColor, currentColor);
	background-repeat: no-repeat;
	background-position: 0 100%;
	background-size: 0 1px;
	transition: background-size 0.2s var(--ease);
}
.resource-link__arrow {
	flex: 0 0 auto;
	margin-top: 3px;
	opacity: 0;
	transform: translateX(-4px);
	transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.resource-link:hover,
.resource-link:focus-visible {
	color: var(--c-accent);
	outline: none;
}
/* .resource-link:hover .resource-link__label,
.resource-link:focus-visible .resource-link__label {
	background-size: 100% 1px;
} */
.resource-link:hover .resource-link__arrow,
.resource-link:focus-visible .resource-link__arrow {
	opacity: 0;
	transform: translateX(0);
}
