/* #region Reset and Base */
* {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	padding: 0;
	font-family: system-ui, sans-serif;
	background: #121212;
	color: #f0f0f0;
	min-height: 100vh;
	overflow-x: hidden;
	display: flex;
	flex-direction: column;
}

/* #endregion */

/* #region Background */
.background {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: url('images/background.jpg') center center / cover no-repeat;
}

.overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.65);
}

/* #endregion */

/* #region Universal Typography */
h1,
h2,
h3 {
	margin: 1rem 0 0.5rem;
	font-weight: 600;
	line-height: 1.2;
}

h1 {
	font-size: 1.75rem;
	text-transform: uppercase
}

h2 {
	font-size: 1.5rem;
	text-transform: uppercase
}

h3 {
	font-size: 1.1rem;
}

/* #endregion */

/* #region Main Content */
main {
	display: flex;
	width: 100%;
	flex: 1 0 auto;
	flex-direction: column;
	padding: 0 1rem;
	max-width: 960px;
	margin: 130px auto 78px auto;
	z-index: 1;
	position: relative;
	background: rgba(255, 255, 255, 0.05);
	border-radius: 8px;
}

/* #endregion */

/* #region Header / Logo / Nav */
.logo-bar {
	position: fixed;
	top: 0;
	width: 100%;
	background: rgba(0, 0, 0, 0.7);
	z-index: 1000;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	transition: all 0.3s ease;
	padding: 0.25rem 1rem 0;
}

.logo-bar button {
	padding: 0.125rem 1rem;
}

.logo-container {
	display: flex;
	justify-content: center;
	padding: 0.25rem 0;
	transition: all 0.4s ease;
}

.logo-container.left {
	justify-content: flex-start;
}

.logo {
	max-width: 220px;
	height: auto;
	transition: all 0.4s ease;
}

.logo.small {
	max-width: 160px;
}

.main-nav {
	position: fixed;
	top: 0.25rem;
	right: 1rem;
	z-index: 1001;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.main-nav a {
	color: #ccc;
	text-decoration: none;
	text-transform: uppercase;
	font-size: smaller;
	padding: 0.25rem 0.75rem 0.35rem;
	border-radius: 4px;
	transition: background 0.3s;
}

.main-nav a.active,
.main-nav a:hover,
.main-nav a.current {
	background: rgba(255, 255, 255, 0.1);
}

.main-nav img {
	height: 20px;
	width: 20px;
	margin-top: 2px;
}

.menu-toggle {
	position: fixed;
	top: 0.25rem;
	right: 1rem;
	z-index: 1001;
	display: none;
	background: none;
	border: none;
	color: #ccc;
	font-size: 1.5rem;
	margin-left: auto;
	cursor: pointer;
}

/* #endregion */

/* #region Forms */
form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

label {
	font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea {
	width: 100%;
	padding: 0.75rem;
	border: 1px solid #ccc;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.8);
	color: #000;
}

/* #endregion */

/* #region Buttons */
button {
	display: inline-block;
	margin-top: 0rem;
	padding: 0.75rem 1.5rem;
	background-color: #2e824a;
	color: #fff;
	border: none;
	border-radius: 4px;
	font-weight: bold;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.3s ease;
}

button:hover {
	background-color: #3fa05c;
}

/* #endregion */

/* #region Password Toggle */
.password-wrapper {
	position: relative;
	display: flex;
	align-items: center;
}

.password-wrapper input {
	width: 100%;
	padding-right: 2.5rem;
}

.toggle-password {
	position: absolute;
	right: 0.75rem;
	cursor: pointer;
	color: #888;
}

.toggle-password:hover {
	color: #333;
}

/* #endregion */

/* #region Accordion */
.accordion-panel {
	margin-bottom: 0.25rem;
}

.accordion-header {
	cursor: pointer;
	padding: 0.75rem;
	text-align: center;
	background-color: rgba(20, 50, 20, 0.75);
	color: #f0f5e6;
	border-radius: 8px;
	transition: background-color 0.3s ease;
}

.accordion-header h2 {
	margin: 0px;
}

.accordion-header:hover {
	background-color: rgba(30, 70, 30, 0.85);
}

.accordion-content {
	max-height: 0;
	overflow: hidden;
	transition-property: max-height;
	transition-timing-function: ease;
}

/*.accordion-content.active {
}*/

/* #endregion */

/* #region Status */
.status {
	padding: 0rem;
	margin-top: 0.5rem;
	font-weight: bold;
}

.status.error {
	color: #b33;
}

/* #endregion */

/* #region Hidden */
.hidden {
	display: none;
}

/* #endregion */

/* #region Footer */
footer {
	background: rgba(0, 0, 0, 0.75);
	color: #999;
	font-size: 0.8rem;
	text-align: center;
	padding: 0.25rem;
	position: fixed;
	bottom: 0;
	width: 100%;

	z-index: 999;
}

footer a {
	color: #ccc;
	text-decoration: none;
}

footer a:hover {
	color: #fff;
}

/* #endregion */

/* #region Images */
img.rounded {
	border-radius: 8px;
}

img.in-line {
	width: 100%;
	margin-top: 1rem;
}

img.float-left {
	width: 50%;
	float: left;
	margin: 0 1rem 0.5rem 0;
}

img.float-right {
	width: 50%;
	float: right;
	margin: 0 0 0.5rem 1rem;
}

/* #endregion */

/* #region Transitions */
.fade-transition {
	transition: opacity 0.4s ease;
	opacity: 1;
}

.fade-hidden {
	opacity: 0;
}

/* #endregion */

/* #region Resources */
.resource-accordion {
	max-width: 1200px;
	margin: 1rem auto;
}

.resource-grid {
	display: grid;
	margin: 0.5rem 0;
	grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
	gap: 0.5rem;
}

.resource-card {
	display: flex;
	gap: 1rem;
	padding: 1rem;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 8px;
	background: rgba(20, 30, 20, 0.6);
	text-decoration: none;
	transition: box-shadow 0.3s ease;
	align-items: flex-start;
}

.resource-card:hover {
	box-shadow: 0 0 10px rgba(30, 70, 30, 0.7);
}

.card-image {
	flex-shrink: 0;
	width: 100px;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	position: relative;
	border-radius: 6px;
	background-color: #ccc;
}

.card-image img {
	position: absolute;
	top: 0;
	left: 0;
	will-change: transform;
	object-fit: cover;
	display: block;
}

/*
.card-image-scroll-x {
	animation: card-image-scroll-horizontal 6s ease-in-out infinite alternate;
}

.card-image-scroll-y {
	animation: card-image-scroll-vertical 6s ease-in-out infinite alternate;
}

@keyframes card-image-scroll-horizontal {
	0% {
		transform: translateX(0);
	}

	100% {
		transform: translateX(-20%);
	}
}

@keyframes card-image-scroll-vertical {
	0% {
		transform: translateY(0);
	}

	100% {
		transform: translateY(-20%);
	}
}
*/

.card-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.card-content h4 {
	margin: 0 0 0.25rem;
	font-size: 1rem;
	color: #eaf5d4;
}

.card-content p {
	margin: 0 0 0.5rem;
	font-size: 0.9rem;
	color: #cddfc9;
}

.card-date {
	font-size: 0.8rem;
	color: #aac4a0;
}

/* #endregion */

/* #region Contact Form */
.contact-wrapper {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	margin: 1rem 0;
	flex-wrap: wrap;
}

.contact-image {
	width: 450px;
	height: auto;
	display: flex;
	align-items: flex-start;
	justify-content: flex-start;
	overflow: hidden;
}

.contact-image img {
	width: 100%;
	height: 100%;
	aspect-ratio: 8 / 9;
	object-fit: cover;
	display: block;
}

.contact-form-container {
	flex: 1 1 0;
}

/* #endregion */

/* #region Admin Login Form */
.admin-login-wrapper {
	width: 50%;
	margin: 0px auto 0px auto;
}

/* #endregion */

/* #region Responsive */
@media (max-width: 950px) {

	.main-nav {
		display: none;
		flex-direction: column;
		background: rgba(0, 0, 0, 0.9);
		position: absolute;
		top: 3rem;
		right: 0;
		width: 200px;
		padding: 1rem;
	}

	.main-nav.open {
		display: flex;
	}

	.menu-toggle {
		display: block;
	}

	img.float-left {
		width: 100%;
		margin: 0 0 0.5rem 0;
	}

	img.float-right {
		width: 100%;
		margin: 0 0 0.5rem 0;
	}

	.contact-wrapper {
		flex-direction: column;
		align-items: stretch;
	}

	.contact-image {
		width: 100%;
		height: 180px;
	}

	.contact-image img {
		object-position: 50% -30px;
		aspect-ratio: unset;
	}

	.resource-card {
		flex-direction: column;
		align-items: stretch;
	}

	.card-image {
		width: 100%;
		height: 150px;
	}

	.admin-login-wrapper {
		width: 100%;
	}
}

/* #endregion */

/* #region Skeleton Placeholders */
.placeholder {
	animation: pulse 1.5s infinite ease-in-out;
}

.skeleton {
	background: rgba(255, 255, 255, 0.2);
	border-radius: 4px;
}

.skeleton-title {
	width: 60%;
	height: 1rem;
	margin-bottom: 0.5rem;
}

.skeleton-text {
	height: 0.8rem;
	margin-bottom: 0.3rem;
}

.skeleton-text.short {
	width: 50%;
}

.skeleton-text.long {
	width: 90%;
}

@keyframes pulse {
	0% {
		opacity: 1;
	}

	50% {
		opacity: 0.5;
	}

	100% {
		opacity: 1;
	}
}

/* #endregion */