/* assets/css/night-layout.css */

.container { max-width: 71.25rem; margin: 0 auto; padding: 0 1.5rem; }

.main-header {
	background: linear-gradient(90deg, var(--header-bg-start) 0%, var(--header-bg-end) 100%);
	color: #fff;
	padding: 1rem 1.5rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	position: sticky;
	top: 0;
	z-index: 1000;
	border-bottom: 2px solid var(--accent-color);
	box-shadow: 0 0.3rem 1rem rgba(0,0,0,0.6);
}
.header-content { text-align: left; }
.logo-link { color: #fff; text-decoration: none; transition: opacity 0.3s ease; }
.logo-link:hover { opacity: 0.9; }
.main-header h1 {
	margin: 0;
	font-size: var(--font-size-xl); /* Adjusted H1 size */
	font-weight: 800;
	display: inline-block;
	text-shadow: 0 0 1rem var(--shadow-color);
	font-family: 'Montserrat', sans-serif;
	line-height: 1.1;
}
.main-header h1 .highlight { color: var(--highlight-color); font-style: normal; font-weight: 800; }
.main-header .subtitle {
	font-size: var(--font-size-sm); /* Adjusted subtitle size */
	color: var(--secondary-text-color);
	margin: 0.3rem 0 0 0;
	font-weight: 400;
	display: block;
	letter-spacing: 0.05rem;
}

.main-menu {
	position: fixed;
	top: 0;
	right: 0;
	width: var(--menu-width);
	height: 100vh;
	background-color: var(--nav-bg);
	box-shadow: -0.8rem 0 2.5rem rgba(0, 0, 0, 0.7);
	transform: translateX(100%);
	transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
	z-index: 1050;
	padding: 7rem 0 2rem 0;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	border-left: 2px solid var(--border-color);
}
.main-menu[aria-hidden="false"] { transform: translateX(0); }
.main-menu ul { list-style: none; padding: 0; margin: 0; width: 100%; }
.main-menu ul li a {
	display: block;
	padding: 1rem 2.5rem; /* Adjusted padding */
	color: var(--primary-text-color);
	text-decoration: none;
	font-size: var(--font-size-base); /* Menu item size */
	font-weight: 500;
	border-bottom: 1px solid var(--border-color);
	transition: background-color 0.3s ease, color 0.3s ease, padding-left 0.3s ease;
	position: relative;
}
.main-menu ul li a::before { content: ''; position: absolute; left: 0; top: 0; height: 100%; width: 0.4rem; background-color: var(--accent-color); transform: scaleY(0); transition: transform 0.3s ease; transform-origin: center; opacity: 0; border-radius: 0 3px 3px 0; }
.main-menu ul li a:hover { background-color: rgba(255, 0, 255, 0.15); color: #fff; padding-left: 3rem; }
.main-menu ul li a:hover::before { transform: scaleY(1); opacity: 1; }

.content-section {
	padding: 3rem 2rem;
	margin: 2rem 0;
	background-color: var(--card-bg-color);
	border-radius: 12px;
	box-shadow: 0 0.8rem 2.5rem rgba(0, 0, 0, 0.5), 0 0 1.5rem var(--shadow-color);
	border: 1px solid var(--border-color);
	overflow: hidden;
}
.content-section:nth-of-type(even) { background-color: var(--card-bg-color-alt); }

.hero-section {
	background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.9)), url('https://images.unsplash.com/photo-1514525253161-7a46d19cd819?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') center center/cover no-repeat;
	border: none;
	box-shadow: none;
	padding: 5rem 2rem;
	text-align: center;
	margin-top: 0; /* Remove top margin for the first section */
	margin-bottom: 3rem;
	border-radius: 0; /* No border radius for hero */
}
.hero-section h2 {
	font-size: var(--font-size-h1); /* Adjusted Hero H2 size */
	color: #fff;
	text-shadow: 0 0.4rem 1.5rem var(--shadow-color), 0 0 2.5rem var(--shadow-color-blue);
	border-bottom: none;
	margin-top: 0;
	margin-bottom: 1.5rem;
	font-family: 'Montserrat', sans-serif;
	font-weight: 800;
	line-height: 1.3;
}
.hero-section p.subtitle {
	font-size: var(--font-size-lg); /* Adjusted Hero subtitle size */
	color: var(--primary-text-color);
	max-width: 65rem;
	margin: 0 auto 1rem auto; /* Added bottom margin */
	font-weight: 400;
	line-height: 1.7;
	text-align: center;
}
.hero-section p.subtitle br { content: ""; display: block; margin-bottom: 0.5rem; }

.content-section:not(.hero-section) h2 {
	font-size: var(--font-size-h2); /* Adjusted Section H2 size */
	font-weight: 700;
	color: var(--primary-text-color);
	border-bottom: 3px solid var(--accent-color);
	padding-bottom: 1rem;
	margin-top: 0;
	margin-bottom: 2rem;
	display: flex;
	align-items: center;
	font-family: 'Montserrat', sans-serif;
	letter-spacing: 0.05rem;
}
.content-section h2 .icon {
	margin-right: 1rem;
	font-size: 1.2em; /* Relative icon size */
	color: var(--accent-color);
	display: inline-block;
	transform: translateY(-0.1rem);
	opacity: 0.9;
	font-family: sans-serif; /* Use sans-serif for emoji */
}
.content-section h3 {
	font-size: var(--font-size-h3); /* Adjusted Section H3 size */
	color: var(--primary-text-color);
	margin-top: 2rem;
	margin-bottom: 1.5rem;
	font-weight: 600;
	border-left: 4px solid var(--highlight-color);
	padding-left: 1rem;
	font-family: 'Montserrat', sans-serif;
}
.content-subsection { margin-bottom: 3rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border-color); }
.content-subsection:last-child { margin-bottom: 0; border-bottom: none; padding-bottom: 0; }
.subsection-title { /* Specific adjustments for subsection titles */
	font-size: var(--font-size-h3) !important; /* Keep consistent or adjust slightly */
	color: var(--highlight-color) !important;
	border-left: none !important;
	padding-left: 0 !important;
	margin-top: 0 !important; /* Reset top margin */
	margin-bottom: 1.5rem !important;
	font-weight: 600 !important;
	font-family: 'Montserrat', sans-serif;
	border-bottom: 1px solid var(--border-color);
	padding-bottom: 0.8rem;
}

/* Grids */
.safety-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(26rem, 1fr));
	gap: 1.5rem;
	margin-top: 2rem;
}
.app-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(28rem, 1fr));
	gap: 2rem;
	margin-bottom: 3rem;
}
.about-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(26rem, 1fr));
	gap: 2rem;
}

/* Footer */
footer {
	text-align: center;
	padding: 2rem;
	margin-top: 3rem;
	color: var(--secondary-text-color);
	background-color: var(--header-bg-end); /* Match header end color */
	border-top: 3px solid var(--accent-color);
}
footer p {
	margin-bottom: 0.5rem;
	font-size: var(--font-size-sm); /* Footer text size */
}
footer p small { font-size: 0.9em; } /* Relative size */