/**
 * Single gated resource template — guide, policy-template, webinar.
 */

.single-gated-resource {
	box-sizing: border-box;
	background: #fff;
	color: #111827;
}

/* ── Hero ── */
.single-gated-resource__hero {
	background: #12121f;
	color: #fff;
	padding-top: clamp(3rem, 6vw, 5rem);
	padding-bottom: clamp(3rem, 6vw, 5rem);
}

.single-gated-resource__hero-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
	align-items: start;
}

@media (min-width: 1024px) {
	.single-gated-resource__hero-grid {
		grid-template-columns: minmax(0, 1.05fr) minmax(320px, 420px);
		gap: 3rem;
		align-items: center;
	}

	.single-gated-resource--webinar .single-gated-resource__hero-grid {
		align-items: start;
	}
}

.single-gated-resource__hero-meta {
	margin: 0 0 1.25rem;
}

.single-gated-resource__hero-meta-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.85rem 1.25rem;
}

.single-gated-resource__hero-meta-row + .single-gated-resource__hero-meta-row {
	margin-top: 0.55rem;
}

.single-gated-resource__tag {
	display: inline-flex;
	align-items: center;
	margin: 0;
	padding: 0.35rem 0.85rem;
	border: 1px solid rgba(213, 0, 195, 0.65);
	border-radius: 9999px;
	font-size: 0.6875rem;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #f5d0fe;
}

.single-gated-resource__hero-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	font-size: 0.875rem;
	line-height: 1.35;
	color: rgba(255, 255, 255, 0.82);
}

.single-gated-resource__hero-meta-free {
	font-size: 0.875rem;
	line-height: 1.35;
	color: #d8b4fe;
}

.single-gated-resource__icon {
	flex-shrink: 0;
	color: rgba(255, 255, 255, 0.72);
}

.single-gated-resource__title {
	margin: 0 0 1rem;
	font-size: clamp(1.875rem, 4vw, 2.75rem);
	font-weight: 400;
	line-height: 1.15;
	color: #fff;
}

.single-gated-resource__subtitle {
	margin: 0 0 1.75rem;
	max-width: 38rem;
	font-size: clamp(1rem, 2vw, 1.125rem);
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.78);
}

.single-gated-resource__list-header {
	margin: 0 0 0.85rem;
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.55);
}

.single-gated-resource__hero-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.single-gated-resource__hero-list-item {
	position: relative;
	margin: 0 0 0.65rem;
	padding-left: 1.35rem;
	font-size: 0.9375rem;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.88);
}

.single-gated-resource__hero-list-item::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.45em;
	width: 0.45rem;
	height: 0.45rem;
	border-radius: 50%;
	background: linear-gradient(135deg, #7400b2, #d500c3);
}

.single-gated-resource__hero-media {
	margin-top: 1.5rem;
	border-radius: 12px;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.04);
}

.single-gated-resource__hero-img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	object-fit: cover;
}

@media (min-width: 1024px) {
	.single-gated-resource__hero-media {
		max-width: 500px;
	}

	.single-gated-resource__hero-img {
		max-width: 500px;
	}
}

/* ── Speakers ── */
.single-gated-resource__speakers {
	margin-top: 2.25rem;
	padding-top: 2rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.single-gated-resource__speakers-header {
	margin: 0 0 1.15rem;
	font-size: 0.6875rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.5);
}

.single-gated-resource__speakers-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.85rem;
}

@media (min-width: 640px) {
	.single-gated-resource__speakers-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.single-gated-resource__speaker-card {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	padding: 0.85rem 1rem;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.04);
}

.single-gated-resource__speaker-card--link {
	text-decoration: none;
	color: inherit;
	cursor: pointer;
	transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.single-gated-resource__speaker-card--link:hover {
	border-color: rgba(255, 255, 255, 0.22);
	background: rgba(255, 255, 255, 0.06);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.single-gated-resource__speaker-card--link:hover .single-gated-resource__speaker-name {
	color: #f5d0fe;
}

.single-gated-resource__speaker-card--link .single-gated-resource__speaker-name {
	transition: color 0.2s ease;
}

.single-gated-resource__speaker-card--link:focus-visible {
	outline: 2px solid rgba(255, 255, 255, 0.45);
	outline-offset: 2px;
}

.single-gated-resource__speaker-avatar {
	flex-shrink: 0;
	width: 3rem;
	height: 3rem;
	border-radius: 9999px;
	overflow: hidden;
	background: linear-gradient(135deg, #7400b2, #d500c3);
}

.single-gated-resource__speaker-avatar img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.single-gated-resource__speaker-avatar--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
}

.single-gated-resource__speaker-avatar--placeholder span {
	font-size: 1rem;
	font-weight: 700;
	color: #fff;
}

.single-gated-resource__speaker-body {
	min-width: 0;
}

.single-gated-resource__speaker-name {
	margin: 0 0 0.2rem;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.3;
	color: #fff;
}

.single-gated-resource__speaker-role {
	margin: 0;
	font-size: 0.8125rem;
	line-height: 1.35;
	color: rgba(255, 255, 255, 0.62);
}

/* Anchor offset so "Register now" reveals the full form card (not clipped at top). */
#single-gated-resource-form {
	scroll-margin-top: 60px;
}

/* ── Form card ── */
.single-gated-resource__form-card {
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
	overflow: hidden;
	color: #111827;
}

.single-gated-resource__form-card-intro {
	padding: 1.75rem 1.75rem 0;
}

.single-gated-resource__form-card-title {
	margin: 0 0 0.35rem;
	font-size: 1.375rem;
	font-weight: 700;
	line-height: 1.25;
	color: #111827;
}

.single-gated-resource__form-card-subtitle {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.4;
	color: #6b7280;
}

/* Override legacy teal download form inside the hero card */
.single-gated-resource__form-card .course__demo_form_main {
	padding: 1.25rem 1.75rem 1.75rem !important;
	border-radius: 0 !important;
	background: transparent !important;
	color: #111827 !important;
}

.single-gated-resource__form-card .resource__download--form-title {
	display: none !important;
}

.single-gated-resource__form-card .resource__download--form-info {
	margin-bottom: 0 !important;
}

.single-gated-resource__form-card .resource__download--form-padding {
	padding-bottom: 0.85rem !important;
}

.single-gated-resource__form-card .resource__download--form-input-flex {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.85rem;
}

@media (max-width: 479px) {
	.single-gated-resource__form-card .resource__download--form-input-flex,
	.single-gated-resource__form-card .course__demo--form-input-flex {
		grid-template-columns: 1fr;
	}
}

.single-gated-resource__form-card .resource__download--form .resource__download--form-padding input,
.single-gated-resource__form-card .resource__download--form .resource__download--form-padding select,
.single-gated-resource__form-card .course__demo--form-input-flex .course__demo--form-padding input,
.single-gated-resource__form-card .course__demo--form-input-flex .course__demo--form-padding select {
	box-sizing: border-box;
	width: 100% !important;
	padding: 0.7rem 0.85rem !important;
	border: 1px solid #d1d5db !important;
	border-radius: 8px !important;
	background: #fff !important;
	color: #111827 !important;
	font-size: 0.9375rem !important;
	line-height: 1.35 !important;
}

.single-gated-resource__form-card .resource__download--form .resource__download--form-padding input::placeholder,
.single-gated-resource__form-card .resource__download--form .resource__download--form-padding select,
.single-gated-resource__form-card .course__demo--form-input-flex .course__demo--form-padding input::placeholder {
	color: #9ca3af !important;
	text-transform: none !important;
}

.single-gated-resource__form-card .resource__download--form .resource__download--form-padding input:-webkit-autofill {
	-webkit-text-fill-color: #111827 !important;
	box-shadow: 0 0 0 1000px #fff inset !important;
}

.single-gated-resource__form-card .resource__download--form-btn {
	padding-top: 0.5rem !important;
}

.single-gated-resource__form-card .resource__download--form-btn .animated__btn-white,
.single-gated-resource__form-card .resource__download--form-btn .vinci-btn__form_submit {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 3rem;
	padding: 0.75rem 1.5rem !important;
	border: none !important;
	border-radius: 9999px !important;
	background: linear-gradient(90deg, #7400b2 13.48%, #5511bc 56.52%, #d500c3 100%) !important;
	color: #fff !important;
	font-size: 0.9375rem !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	text-transform: none !important;
	box-shadow: none !important;
}

.single-gated-resource__form-card .resource__download--form-btn .animated__btn-white:hover,
.single-gated-resource__form-card .resource__download--form-btn .vinci-btn__form_submit:hover {
	opacity: 0.92;
	color: #fff !important;
	background: linear-gradient(90deg, #7400b2 13.48%, #5511bc 56.52%, #d500c3 100%) !important;
}

.single-gated-resource__form-card .resource__download--form-btn .animated__btn-white::before,
.single-gated-resource__form-card .resource__download--form-btn .animated__btn-white:hover::before {
	display: none !important;
}

.single-gated-resource__form-card .course__demo_form_main > p {
	margin: 1rem 0 0;
	font-size: 0.75rem !important;
	line-height: 1.45 !important;
	color: #6b7280 !important;
}

.single-gated-resource__form-card .course__demo_form_main a {
	color: #5511bc !important;
	text-decoration: underline !important;
	font-size: 12px;
    padding-bottom: 0 !important;
    border-bottom: none !important;
}

/* ── Body ── */
.single-gated-resource__body {
	padding-top: clamp(2.5rem, 5vw, 4rem);
	padding-bottom: clamp(3rem, 6vw, 5rem);
}

.single-gated-resource__body-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
	align-items: start;
}

@media (min-width: 1024px) {
	.single-gated-resource__body-grid--with-aside {
		grid-template-columns: 1fr 1fr;
		gap: 3.5rem;
	}
}

.single-gated-resource__body-content {
	min-width: 0;
	font-size: 1rem;
	line-height: 1.65;
	color: #374151;
}

.single-gated-resource__body-content > :first-child {
	margin-top: 0;
}

.single-gated-resource__body-content h2,
.single-gated-resource__body-content h3,
.single-gated-resource__body-content h4 {
	margin: 2rem 0 0.75rem;
	color: #111827;
	font-weight: 700;
	line-height: 1.25;
}

.single-gated-resource__body-content h2 {
	font-size: 1.5rem;
}

.single-gated-resource__body-content h3 {
	font-size: 1.25rem;
}

.single-gated-resource__body-content p,
.single-gated-resource__body-content ul,
.single-gated-resource__body-content ol {
	margin: 0 0 1rem;
}

.single-gated-resource__body-content ul,
.single-gated-resource__body-content ol {
	padding-left: 1.25rem;
	list-style-position: outside;
}

.single-gated-resource__body-content ul {
	list-style-type: disc !important;
}

.single-gated-resource__body-content ol {
	list-style-type: decimal !important;
}

.single-gated-resource__body-content li {
	display: list-item !important;
	margin-bottom: 0.35rem;
}

/* Sidebar featured image card (ACF hero pages) */
.single-gated-resource__body-aside {
	min-width: 0;
	max-width: 500px;
	width: 100%;
}

@media (min-width: 1024px) {
	.single-gated-resource__body-aside {
		max-width: none;
		position: sticky;
		top: 6rem;
	}
}

.single-gated-resource__aside-card {
	border-radius: 14px;
	overflow: hidden;
	border: 1px solid #e5e7eb;
	background: #fff;
	box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
}

.single-gated-resource__aside-card-media {
	background: linear-gradient(160deg, #2a1147 0%, #12121f 100%);
	padding: 1rem;
}

.single-gated-resource__aside-img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 8px;
	object-fit: contain;
}

.single-gated-resource__aside-card-body {
	padding: 1.25rem 1.25rem 1.5rem;
	background: #faf8f5;
}

.single-gated-resource__aside-card-title {
	margin: 0 0 0.35rem;
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.35;
	color: #111827;
}

.single-gated-resource__aside-card-meta {
	margin: 0;
	font-size: 0.8125rem;
	line-height: 1.4;
	color: #6b7280;
}

/* ── Webinar event details card ── */
.single-gated-resource__body-aside--event {
	max-width: none;
}

.single-gated-resource__aside-featured-image {
	margin-bottom: 3rem;
	border-radius: 14px;
	overflow: hidden;
}

.single-gated-resource__aside-featured-img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 14px;
}

.single-gated-resource__event-card {
	padding: 1.5rem;
	border-radius: 14px;
	border: 1px solid #e5e7eb;
	background: #faf8f5;
	box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
}

.single-gated-resource__event-card-title {
	margin: 0 0 1.15rem;
	font-size: 0.6875rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #111827;
}

.single-gated-resource__event-list {
	margin: 0 0 1.35rem;
	padding: 0;
	list-style: none;
}

.single-gated-resource__event-item {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	margin: 0 0 0.85rem;
	font-size: 0.9375rem;
	line-height: 1.4;
	color: #374151;
}

.single-gated-resource__event-item:last-child {
	margin-bottom: 0;
}

.single-gated-resource__event-item .single-gated-resource__icon {
	color: #7400b2;
	margin-top: 0.1rem;
}

.single-gated-resource__event-register-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 3rem;
	padding: 0.75rem 1.5rem;
	border: none;
	border-radius: 9999px;
	background: linear-gradient(90deg, #7400b2 13.48%, #5511bc 56.52%, #d500c3 100%);
	color: #fff;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.single-gated-resource__event-register-btn:hover {
	opacity: 0.92;
	color: #fff;
}

/* ── Latest resources ── */
.single-gated-resource__divider {
	margin: clamp(2.5rem, 5vw, 3.5rem) 0 clamp(2rem, 4vw, 2.75rem);
	border: 0;
	border-top: 1px solid #e5e7eb;
}

.single-gated-resource__latest-title {
	margin: 0 0 2rem;
	font-size: 1.25rem;
	font-weight: 400;
	line-height: 1.3;
	color: #383838;
}

.single-gated-resource__latest-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

@media (min-width: 768px) {
	.single-gated-resource__latest-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 2rem;
	}
}

.single-gated-resource__latest-card {
	display: block;
	border-radius: 0.5rem;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: transform 0.3s ease;
}

.single-gated-resource__latest-card:hover {
	transform: scale(1.03);
}

.single-gated-resource__latest-card-media {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	margin-bottom: 1rem;
	border-radius: 0.5rem;
	background: #e5e7eb;
}

.single-gated-resource__latest-card-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.single-gated-resource__latest-card-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: #9ca3af;
	font-size: 0.875rem;
}

.single-gated-resource__latest-card-title {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 500;
	line-height: 1.35;
	color: #111827;
}

@media (min-width: 768px) {
	.single-gated-resource__latest-card-title {
		font-size: 1.25rem;
	}
}

.single-gated-resource__latest-card-date {
	margin: 0.5rem 0 0;
	font-size: 0.875rem;
	line-height: 1.4;
	color: #111827;
}

@media (max-width: 767px) {
	.single-gated-resource__latest-title {
		text-align: center;
	}

	.single-gated-resource__latest-card {
		max-width: 450px;
		margin-left: auto;
		margin-right: auto;
	}
}
