/* ============================= */
/* 🔹 CSS RESET - Normalize Styles */
/* ============================= */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

/* ============================= */
/* 🔹 Typography - Clean & Readable */
/* ============================= */
body {
	font-family: "Inter", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: #333;
	background-color: #f8f8f8;
	padding: 20px;
}
footer {
	background-color: #EEE;
	padding: 24px 12px;
	text-align: center;
}
/* ============================= */
/* 🔹 Headings - Consistent Spacing & Size */
/* ============================= */
h1, h2, h3, h4, h5, h6 {
	font-weight: 600;
	margin-bottom: 10px;
	color: #222;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

/* ============================= */
/* 🔹 Paragraphs & Text Blocks */
/* ============================= */
p {
	margin-bottom: 15px;
}

/* Links */
a {
	color: #0077cc;
	text-decoration: none;
	transition: color 0.2s ease-in-out;
}
a:hover {
	color: #005fa3;
}

/* ============================= */
/* 🔹 Lists */
/* ============================= */
ul, ol {
	margin-bottom: 15px;
	padding-left: 20px;
}

li {
	margin-bottom: 5px;
}
img {
	width: auto;
	max-width:100%;
	height: auto;
}
/* ============================= */
/* 🔹 Buttons */
/* ============================= */
button {
	font-size: 16px;
	padding: 10px 15px;
	border: none;
	cursor: pointer;
	border-radius: 5px;
	transition: all 0.2s ease-in-out;
}

button.primary {
	background: #0077cc;
	color: white;
}
button.primary:hover {
	background: #005fa3;
}

/* ============================= */
/* 🔹 Forms */
/* ============================= */
input, textarea, select {
	width: 100%;
	padding: 8px;
	margin-bottom: 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 16px;
}
textarea {
	height: 120px;
	resize: vertical;
}

/* ============================= */
/* 🔹 Layout - Container & Sections */
/* ============================= */
.container {
	max-width: 900px;
	margin: 0 auto;
	padding: 20px;
	background: white;
	border-radius: 8px;
	box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
}
aside {
	max-width: 320px;
	margin-top: 12px;
	margin-bottom: 12px;
	border: 1px solid #eee;
}
aside.right {
	float: right;
	margin-left: 12px;
}
aside.left {
	float: left;
	margin-right: 12px;
}
/* ============================= */
/* 🔹 Responsive Design */
/* ============================= */
@media (max-width: 768px) {
	body {
		padding: 10px;
	}
	.container {
		padding: 15px;
	}
	h1 { font-size: 1.8rem; }
	h2 { font-size: 1.5rem; }
}

/* ============================= */
/* 🔹 General Navigation Styles */
/* ============================= */
nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background-color: #333;
	padding: 10px 20px;
	color: white;
	position: relative;
}

/* Target all direct children of nav */
nav > * {
	display: flex;
	gap: 15px;
}

/* Style menu items */
nav > a,
nav > a:hover,
nav > div {
	color: white;
	text-decoration: none;
	padding: 10px 15px;
	border-radius: 5px;
	transition: background 0.2s ease-in-out;
	cursor: pointer;
}

nav > a:hover,
nav > div:hover {
	background-color: #555;
}

/* ============================= */
/* 🔹 Hamburger Menu (Hidden by Default) */
/* ============================= */
.hamburger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 35px;
	height: 30px;
	cursor: pointer;
	padding: 0;
}
.hamburger div {
	width: 100%;
	height: 4px;
	background-color: white;
	border-radius: 2px;
	transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

/* ============================= */
/* 🔹 Mobile Styles (Under 1024px) */
/* ============================= */
@media (max-width: 1024px) {
	header {
		position: relative;
		padding-top: 50px;
	}
	nav {
		position: absolute;
		top: 0;
		width: calc( 100% - 20px );
		flex-direction: column;
		align-items: flex-end;
	}
	.hamburger {
		display: flex;
	}

	/* Hide all menu items except the first child (hamburger button) */
	nav > *:not(:first-child) {
		display: none;
		flex-direction: column;
		left: 0;
		width: 100%;
		background-color: #333;
		padding: 10px 0;
		box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.2);
		z-index: 1000;
	}

	/* Ensure when the menu is open, the items display correctly */
	nav.show-menu > *:not(:first-child) {
		display: flex;
		flex-direction: column;
		width: 100%;
	}

	/* Ensure items are displayed properly */
	nav > *:not(:first-child) a,
	nav > *:not(:first-child) div {
		display: block;
		padding: 12px 15px;
		text-align: left;
		width: 100%;
		border-bottom: 1px solid rgba(255, 255, 255, 0.2);
	}

	/* Ensure no double spacing between dropdown items */
	nav > *:not(:first-child) a:last-child,
	nav > *:not(:first-child) div:last-child {
		border-bottom: none;
	}
}