/* Define variables for both light and dark modes */
:root {
	--hero-gradient-start: #16293F;
	--hero-gradient-end: #1A3A5F;
	--whats-new-bg-color: #16293F;
}

/* Dark mode variables */
[data-md-color-scheme="slate"] {
	--hero-gradient-start: #16293F;
	--hero-gradient-end: #1A3A5F;
	--whats-new-bg-color: #16293F;
}

/* Hero header section with centered content */
.hero-header {
	text-align: center;
	padding: 60px 20px;
	background: linear-gradient(135deg, var(--hero-gradient-start) 0%, var(--hero-gradient-end) 100%);
	color: white;
	position: relative;
	width: 100vw;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	margin-bottom: 40px;
	box-sizing: border-box;
}

/* Ensure dark mode uses the same styles without overrides */
[data-md-color-scheme="slate"] .hero-header {
	background: linear-gradient(135deg, var(--hero-gradient-start) 0%, var(--hero-gradient-end) 100%);
	color: white;
}

.hero-header h1 {
	font-size: 2.5rem;
	margin-bottom: 20px;
	color: white;
}

.hero-header p {
	font-size: 1.2rem;
	max-width: 800px;
	margin: 0 auto 30px;
	color: rgba(255, 255, 255, 0.9);
}

/* Ensure text remains white in dark mode */
[data-md-color-scheme="slate"] .hero-header h1,
[data-md-color-scheme="slate"] .hero-header p {
	color: white;
}

/* Create a variant with image background for future use */
.hero-header--image {
	background: linear-gradient(rgba(22, 41, 63, 0.8), rgba(26, 58, 95, 0.8)),
		url('/assets/images/header-bg.jpg');
	background-size: cover;
	background-position: center;
}

/* Center align the button row */
.md-button-row {
	display: flex;
	gap: 16px;
	margin: 20px 0;
	flex-wrap: wrap;
	justify-content: center;
}

/* Button styling for dark mode */
[data-md-color-scheme="slate"] .hero-header .md-button--primary {
	background-color: #FC764C;
	color: white;
	border-color: #FC764C;
}

[data-md-color-scheme="slate"] .hero-header .md-button:not(.md-button--primary) {
	background-color: transparent;
	color: white;
	border-color: rgba(255, 255, 255, 0.5);
}

/* Full-width What's New section */
.whats-new-section {
	background-color: var(--whats-new-bg-color);
	color: white;
	padding: 5px 5px;
	text-align: center;
	margin: 10px 0;
	width: 100vw;
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	box-sizing: border-box;
}

/* Media query for smaller screens */
@media screen and (max-width: 768px) {
	.hero-header {
		padding: 40px 20px;
	}

	.hero-header h1 {
		font-size: 2rem;
	}

	.hero-header p {
		font-size: 1rem;
	}
}
