*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

:root {
	--color-primary: #212934;
	--color-accent: #89b444;
	--color-background: #f4f4f4;
	--color-surface: white;
	--color-border: #dde0e6;
	--color-text: #5c5c5b;
	--color-muted: #4a4e57;
	--sidebar-width: 260px;
	--header-height: 64px;
	--font-family: 'Montserrat', system-ui, sans-serif;
}

/* Base */
body {
	font-family: var(--font-family);
	background: var(--color-background);
	color: var(--color-text);
	height: 100vh;
	display: flex;
	flex-direction: column;
}

a {
	color: var(--color-accent);
	text-decoration: none;
}
a:hover, a:focus {
	text-decoration: underline;
}

/* Header */
header {
	border-top: 0.5rem solid var(--color-accent);
	background: var(--color-surface);
	font-size: 1.8rem;
	padding: 1rem 2rem;
	box-shadow: 0 1px 0 var(--color-border), 0 2px 12px rgba(0, 0, 0, 0.05);
	position: sticky;
	top: 0;
	z-index: 100;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1.5rem;
}

#title {
	color: var(--color-text);
}
#title:hover {
	text-decoration: none;
}
#title img {
	width: 2.5rem;
	height: 2.5rem;
	fill: var(--color-accent);
	margin-right: 0.5rem;
	vertical-align: middle;
}

.menu-toggle {
	background: none;
	border: 1px solid var(--color-border);
	color: var(--color-primary);
	cursor: pointer;
	font-size: 1rem;
	padding: 0.3rem 0.6rem;
	border-radius: 4px;
	line-height: 1;
	transition: background 0.15s;
}
.menu-toggle:hover {
	background: var(--color-background);
}

/* Hide menu toggle on desktop — sidebar is always visible there */
@media (min-width: 769px) {
	.menu-toggle {
		display: none;
	}
}

/* Top navigation */
header nav {
	border-left: 1px solid var(--color-border);
	padding-left: 1.5rem;
}
header nav ul {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 0.25rem;
}
header nav li a {
	display: block;
	color: var(--color-muted);
	padding: 0.4rem 0.75rem;
	font-size: 0.85rem;
	font-weight: 500;
	border-radius: 5px;
	transition: background 0.15s, color 0.15s;
}
header nav li a:hover {
	background: var(--color-background);
	color: var(--color-primary);
	text-decoration: none;
}
header nav li:last-child a {
	background: var(--color-accent);
	color: #fff;
	font-weight: 600;
}
header nav li:last-child a:hover {
	background: var(--color-primary);
	color: #fff;
}

/* Layout */
.layout {
	display: flex;
	flex-grow: 1;
	line-height: 1.65;
	width: 100%;
	max-width: 1200px;
	padding: 2rem 1.5rem;
	gap: 2rem;
}

/* Sidebar */
aside {
	width: var(--sidebar-width);
	flex-shrink: 0;
}
aside section + section {
	margin-top: 1.5rem;
}
aside h2,
aside h3 {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0 0.25rem 0.5rem;
	color: var(--color-primary);
	font-size: 0.9rem;
}
aside h3 {
	padding-left: 1.1rem;
	padding-right: 1.1rem;
	color: var(--color-text);
	font-size: 0.92rem;
	font-weight: 400;
}
aside [role="group"] {
	margin: 0.75rem 0;
}
aside [role="group"] ul {
	margin: 0 0.75rem 0 1.1rem;
	padding-left: 0.75rem;
	border-left: 0.125rem solid var(--color-border);
	border-radius: 0;
}
aside [role="group"] a {
	padding: 0.5rem;
	border-bottom: none;
	font-size: 0.85rem;
}
aside ul {
	list-style: none;
	background: var(--color-surface);
	border-radius: 8px;
	overflow: hidden;
}
aside ul li a {
	display: block;
	padding: 0.75rem 1.1rem;
	color: var(--color-text);
	font-size: 0.92rem;
	border-bottom: 1px solid var(--color-border);
	transition: background 0.12s, color 0.12s;
}
aside li:last-child > a {
	border-bottom: none;
}
aside ul li a:hover,
aside ul li a[aria-current="page"] {
	background: var(--color-accent);
	color: #fff;
	text-decoration: none;
}

/* Main content */
main {
	flex: 1;
	min-width: 0;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: 8px;
	padding: 2rem 2.5rem;
}

main h1 {
	font-size: 1.75rem;
	color: var(--color-primary);
	margin-bottom: 1.5rem;
	padding-bottom: 0.75rem;
	border-bottom: 2px solid var(--color-border);
}

main h2 {
	font-size: 1.25rem;
	color: var(--color-primary);
	margin: 1.75rem 0 0.5rem;
}

main h3 {
	font-size: 1rem;
	color: var(--color-primary);
	margin: 1.25rem 0 0.4rem;
}

main p {
	margin-bottom: 1rem;
}

main ul, main ol {
	margin: 0.5rem 0 1rem 1.5rem;
}
main li {
	margin-bottom: 0.3rem;
}

/* Home page card grid */
.portal-intro {
	font-size: 1.1rem;
	color: var(--color-muted);
	margin-bottom: 2rem;
}

.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 1.25rem;
	margin-top: 1.5rem;
}

.card {
	display: block;
	background: var(--color-background);
	border: 1px solid var(--color-border);
	border-radius: 8px;
	padding: 1.25rem 1.1rem;
	color: var(--color-text);
	transition: box-shadow 0.15s, border-color 0.15s;
}
.card:hover {
	box-shadow: 0 4px 16px rgba(42, 127, 193, 0.15);
	border-color: var(--color-accent);
	text-decoration: none;
}
.card-form {
	border-style: dashed;
	border-color: var(--color-accent);
}
.form-badge {
	display: inline-block;
	margin-left: 0.4rem;
	padding: 0.1rem 0.35rem;
	border-radius: 0.25rem;
	background: #e2edcf;
	color: var(--color-primary);
	font-size: 0.65rem;
	font-weight: 700;
	vertical-align: middle;
}
.card-icon {
	font-size: 1.75rem;
	margin-bottom: 0.5rem;
	display: block;
}
.card-title {
	font-weight: 700;
	font-size: 0.97rem;
	color: var(--color-primary);
	display: block;
	margin-bottom: 0.35rem;
}
.card-desc {
	font-size: 0.85rem;
	color: var(--color-muted);
	line-height: 1.4;
}

main iframe {
	display: block;
	width: 100%;
	height: 80vh;
	border: 1px solid var(--color-border);
	border-radius: 6px;
	margin-top: 1rem;
}

/* FAQ accordion */
main section {
	margin-bottom: 2rem;
}
main section > h2 {
	border-left: 4px solid var(--color-accent);
	padding-left: 0.75rem;
	margin-bottom: 1rem;
}

main details {
	border: 1px solid var(--color-border);
	border-radius: 6px;
	margin-bottom: 0.5rem;
	background: var(--color-background);
}
main details[open] {
	background: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}
main details > summary {
	padding: 0.85rem 1rem;
	cursor: pointer;
	font-weight: 600;
	font-size: 0.94rem;
	color: var(--color-primary);
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	user-select: none;
}
main details > summary::-webkit-details-marker {
	display: none;
}
main details > summary::after {
	content: "+";
	font-size: 1.2rem;
	color: var(--color-accent);
	transition: transform 0.2s;
}
main details[open] > summary::after {
	content: "−";
}
main details > div {
	padding: 0.5rem 1rem 1rem;
	font-size: 0.93rem;
	color: var(--color-text);
	border-top: 1px solid var(--color-border);
}
main details > div > p {
	margin-bottom: 0.75rem;
}
main details > div > p:last-child {
	margin-bottom: 0;
}

/* Contact / Email form */
.form-card {
	background: var(--color-background);
	border: 1px solid var(--color-border);
	border-radius: 8px;
	padding: 1.5rem;
	max-width: 600px;
}
.form-note {
	font-size: 0.88rem;
	color: var(--color-muted);
	margin-bottom: 1.25rem;
}
.form-group {
	margin-bottom: 1.1rem;
}
.form-group label {
	display: block;
	font-weight: 600;
	font-size: 0.9rem;
	margin-bottom: 0.3rem;
}
.form-group input,
.form-group select,
.form-group textarea {
	width: 100%;
	padding: 0.55rem 0.75rem;
	border: 1px solid var(--color-border);
	border-radius: 5px;
	font-family: inherit;
	font-size: 0.95rem;
	background: #fff;
	color: var(--color-text);
	transition: border-color 0.15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
	outline: none;
	border-color: var(--color-accent);
	box-shadow: 0 0 0 3px rgba(42, 127, 193, 0.15);
}
.form-group textarea {
	resize: vertical;
	min-height: 110px;
}
button[type=submit] {
	background: var(--color-accent);
	color: #fff;
	border: none;
	border-radius: 5px;
	padding: 0.65rem 1.75rem;
	font-size: 0.97rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s;
}
button[type=submit]:hover {
	background: var(--color-primary);
}

/* Form feedback messages */
.form-feedback {
	padding: 0.75rem 1rem;
	border-radius: 5px;
	font-size: 0.92rem;
	margin-bottom: 1.25rem;
}
.form-feedback--ok {
	background: #eaf4d6;
	border: 1px solid #b5d96a;
	color: #3a6010;
}
.form-feedback--error {
	background: #fdecea;
	border: 1px solid #f5a8a0;
	color: #8b1a14;
}

/* Footer */
footer {
	background: var(--color-text);
	color: var(--color-surface);
	text-align: center;
	padding: 1rem 2rem;
	font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
	.layout {
		flex-direction: column;
		padding: 1rem;
	}
	aside {
		width: 100%;
		display: none;
	}
	/* Show sidebar when menu is open */
	aside.is-open {
		display: block;
	}
	main {
		padding: 1.25rem 1rem;
	}
	header {
		padding: 1rem;
	}
	header nav {
		display: none;
	}
}
