/**
 * Sponsorship Hub landing — pixel match to erudipedia.co.uk/job reference.
 */

:root {
	--primary: #c30226;
	--secondary: #7c3aed;
	--dark: #0f172a;
	--light: #f8fafc;
	--accent: red;
}

/* ─── Reset & WordPress isolation ─── */
.sh-landing *,
.sh-landing *::before,
.sh-landing *::after {
	box-sizing: border-box;
}

body.sh-landing-page {
	margin: 0;
	padding: 0;
	background-color: var(--light);
	color: var(--dark);
	line-height: 1.6;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	overflow-x: hidden;
	width: 100%;
	max-width: 100vw;
	-webkit-text-size-adjust: 100%;
}

body.sh-landing-page #primary,
body.sh-landing-page .sh-site-main,
body.sh-landing-page .sh-landing,
body.sh-landing-page .site-content,
body.sh-landing-page .entry-content,
body.sh-landing-page .hentry {
	margin: 0 !important;
	padding: 0 !important;
	max-width: none !important;
	width: 100% !important;
	float: none !important;
}

body.sh-landing-page .sh-site-footer,
body.sh-landing-page #secondary,
body.sh-landing-page .widget-area {
	display: none !important;
}

.sh-site-header {
	display: none;
}

.sh-site-header:has(.sh-site-branding img),
.sh-site-header:has(.sh-menu) {
	display: block;
	background: #fff;
	padding: 12px 20px;
	border-bottom: 1px solid #e2e8f0;
}

.sh-in-app-notice {
	position: sticky;
	top: 0;
	z-index: 9999;
	background: #1e293b;
	color: #dbeafe;
	text-align: center;
	padding: 10px 16px;
	font-size: 0.875rem;
	font-weight: 600;
	border-bottom: 2px solid var(--primary);
}

.sh-landing {
	display: flex;
	flex-direction: column;
	flex: 1;
	width: 100%;
	max-width: 100%;
	overflow-x: hidden;
}

/* ─── Hero (reference: .hero) ─── */
.sh-landing .hero {
	background: linear-gradient(135deg, var(--dark) 0%, #1e293b 100%);
	color: #fff;
	padding: 50px 20px;
	text-align: center;
	border-bottom: 4px solid var(--accent);
	width: 100%;
	max-width: 100%;
}

.sh-landing .hero h1 {
	font-size: 3.5rem;
	margin: 0 0 1rem;
	letter-spacing: -0.025em;
	color: #fffff2;
	font-weight: inherit;
	line-height: 1.15;
	text-align: center;
}

.sh-landing .hero h1 strong {
	font-weight: 700;
}

.sh-landing .hero p {
	font-size: 1.2rem;
	color: #fff2f2;
	max-width: 600px;
	margin: 0 auto;
	text-align: center;
	line-height: 1.6;
}

.sh-landing .hero br {
	display: block;
	margin: 0;
	line-height: 1.6;
}

/* Reference Tailwind checklist box */
.sh-landing .sh-checklist {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.75rem;
	text-align: left;
	font-size: 1.125rem;
	line-height: 1.75rem;
	font-weight: 500;
	color: #dbeafe;
	background: rgb(255 255 255 / 0.05);
	padding: 1.5rem 2rem;
	border-radius: 1.5rem;
	border: 1px solid rgb(255 255 255 / 0.1);
	max-width: calc(100% - 24px);
	margin: 0 auto;
}

.sh-landing .sh-checklist-item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	width: 100%;
}

.sh-landing .sh-checklist-icon {
	flex-shrink: 0;
}

/* ─── Job cards grid (reference: .container) ─── */
.sh-landing .container,
.sh-landing .sh-job-cards {
	max-width: 1000px;
	width: 100%;
	margin: -40px auto 40px;
	padding: 0 20px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 25px;
	box-sizing: border-box;
}

.sh-landing .card,
.sh-landing .sh-job-card {
	background: #fff;
	padding: 40px 30px;
	border-radius: 20px;
	text-align: center;
	box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	display: flex;
	flex-direction: column;
	align-items: center;
	border: 1px solid #e2e8f0;
	width: 100%;
	min-width: 0;
	max-width: 100%;
}

.sh-landing .card:hover,
.sh-landing .sh-job-card:hover {
	transform: translateY(-10px);
	box-shadow: 0 20px 40px -10px rgba(37, 99, 235, 0.2);
}

.sh-landing .icon-box {
	width: 70px;
	height: 70px;
	background: #eff6ff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 20px;
	flex-shrink: 0;
}

.sh-landing .icon-box svg {
	display: block;
	max-width: 40px;
	height: auto;
}

.sh-landing .card h2,
.sh-landing .sh-job-card h2 {
	font-size: 1.25rem;
	margin: 0 0 15px;
	color: var(--dark);
	font-weight: 600;
	line-height: 1.35;
	text-align: center;
	width: 100%;
}

/* Reference: .btn */
.sh-landing .sh-apply-btn,
.sh-landing a.sh-apply-btn {
	display: inline-block !important;
	background: var(--primary) !important;
	color: #fff !important;
	padding: 12px 24px;
	border-radius: 10px;
	text-decoration: none !important;
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.5;
	transition: background 0.2s ease;
	margin-top: auto;
	width: 100%;
	max-width: 100%;
	border: none !important;
	cursor: pointer;
	text-align: center;
	box-sizing: border-box;
	visibility: visible !important;
	opacity: 1 !important;
}

.sh-landing .sh-apply-btn:hover,
.sh-landing .sh-apply-btn:focus {
	background: var(--secondary) !important;
	color: #fff !important;
}

/* ─── Footer (reference: .footer) ─── */
.sh-landing .footer,
.sh-landing .sh-landing-footer {
	margin-top: auto;
	text-align: center;
	padding: 10px 20px 24px;
	font-size: 0.9rem;
	color: #64748b;
	width: 100%;
	max-width: 100%;
	background: var(--light);
}

.sh-landing .sh-copyright {
	margin: 0 0 0.5rem;
	text-align: center;
}

.sh-landing .sh-footer-tagline {
	font-size: 0.875rem;
	font-weight: 700;
	color: #94a3b8;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin: 0 0 2rem;
	text-align: center;
	line-height: 1.5;
}

/* Reference md: breakpoint for checklist text */
@media (min-width: 768px) {
	.sh-landing .sh-checklist {
		font-size: 1.25rem;
		line-height: 1.75rem;
	}
}

/* Reference mobile breakpoint — only these two rules in original */
@media (max-width: 600px) {
	.sh-landing .hero {
		padding: 50px 20px;
	}

	.sh-landing .hero h1 {
		font-size: 2rem;
	}

	.sh-landing .hero p {
		font-size: 1.2rem;
	}

	.sh-landing .container,
	.sh-landing .sh-job-cards {
		margin-top: 20px;
		margin-bottom: 40px;
		padding: 0 20px;
		grid-template-columns: 1fr;
		gap: 25px;
	}

	.sh-landing .card:hover,
	.sh-landing .sh-job-card:hover {
		transform: none;
		box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
	}
}

/* Prevent horizontal scroll on very small screens */
@media (max-width: 400px) {
	.sh-landing .hero h1 {
		font-size: 1.75rem;
		word-wrap: break-word;
	}

	.sh-landing .sh-checklist {
		padding: 1.25rem 1.5rem;
		font-size: 1rem;
	}
}
