/* STYLE.css — designed for INDEX.html */
:root {
	--bg-1: #0f1724;
	/* deep navy */
	--bg-2: #0b1220;
	/* darker */
	--bar-bg: linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
	/* header/footer bar */
	--card: #f7fafc;
	/* main content card - lighter than header/footer */
	--footer-height: 64px;
	--muted: #6b7280;
	--accent: #16a34a;
	/* green */
	--accent-2: #7c3aed;
	/* purple accent */
	--max-width: 1100px;
}

/* Reset-ish */
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0
}

html,
body {
	height: 100%;
}

body {
	font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
	background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 100%);
	color: #111827;
	line-height: 1.45;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	padding: 32px 16px;
	padding-bottom: 120px;
	/* Space for fixed footer */
}

.container {
	max-width: var(--max-width);
	margin: 0 auto;
}

header {
	background: var(--bar-bg);
	padding: 18px 20px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 26px;
	border: 2px solid #ffffff;
}

header #logo {
	height: 64px;
	width: 64px;
	border-radius: 50%;
	object-fit: cover;
}

header h1 {
	font-size: 1.4rem;
	color: #fff;
	letter-spacing: 0.6px;
	margin-left: 12px;
}

nav ul {
	display: flex;
	gap: 12px;
	list-style: none;
	margin-left: auto
}

nav a {
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
	padding: 8px 10px;
	border-radius: 6px;
	font-weight: 600;
	font-size: 0.95rem;
}

nav a:hover {
	background: rgba(255, 255, 255, 0.06);
	color: var(--accent)
}

section {
	background: var(--card);
	border-radius: 10px;
	padding: 20px;
	margin: 18px auto 24px auto;
	max-width: var(--max-width);
	box-shadow: 0 10px 30px rgba(2, 6, 23, 0.35);
}

section h2 {
	color: #0f1724;
	margin-bottom: 8px
}

section p,
section ul,
section li {
	color: #1f2937
}

section ul {
	margin-left: 18px;
	margin-top: 8px
}

.pdf-section {
	background: linear-gradient(180deg, #fbfdff 0%, #f6f9fb 100%);
	border-radius: 8px;
	padding: 12px;
	margin-top: 12px;
	border: 1px solid rgba(15, 23, 36, 0.06);
}

.pdf-section a {
	color: var(--accent);
	font-weight: 700
}

.pdf-section label {
	display: inline-block;
	margin-top: 8px
}

.pdf-section input[type=file] {
	margin-top: 6px
}

.pdf-section iframe {
	width: 100%;
	height: 480px;
	border-radius: 6px;
	border: 1px solid rgba(15, 23, 36, 0.08);
	background: #fff
}

/* Donation total box */
.donation-total-box {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 14px 18px;
	border-radius: 12px;
	background: linear-gradient(180deg, #ffffff, #f4f7f9);
	border: 1px solid rgba(15, 23, 36, 0.06);
	box-shadow: 0 8px 18px rgba(2, 6, 23, 0.06);
	max-width: 340px;
	margin: 12px 0;
}

.donation-total-label {
	font-size: 0.85rem;
	color: var(--muted);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.6px;
}

.donation-amount {
	font-size: 1.6rem;
	font-weight: 800;
	color: var(--accent-2);
}

/* Auth button and avatar styles */
.auth-actions .auth-btn {
	display: inline-block;
	background: #16a34a;
	/* green */
	color: #fff;
	padding: 8px 12px;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 700;
	box-shadow: 0 6px 14px rgba(22, 163, 74, 0.12);
}

.auth-actions .auth-btn:hover {
	opacity: 0.95
}

.auth-actions .auth-btn:focus {
	outline: 3px solid rgba(16, 185, 129, 0.18);
	outline-offset: 2px
}

.user-avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid rgba(255, 255, 255, 0.12)
}

.donation-slip-upload label {
	display: inline-block;
	margin-bottom: 6px;
	font-weight: 600;
	background: var(--accent);
	color: #fff;
	border: none;
	padding: 12px 24px;
	border-radius: 8px;
	cursor: pointer;
	font-size: 1rem;
	transition: background 0.2s ease;
}

.donation-slip-upload label:hover {
	background: #15803d
}

.donation-slip-upload label:focus-within {
	outline: 3px solid rgba(22, 163, 74, 0.3);
	outline-offset: 2px
}

.donation-slip-upload input[type=file] {
	display: none;
}

.donation-slip-upload img {
	display: block;
	margin-top: 8px;
	border-radius: 6px
}

.donation-slip-upload button {
	background: var(--accent);
	color: #fff;
	border: none;
	padding: 12px 24px;
	border-radius: 8px;
	cursor: pointer;
	font-size: 1rem;
	font-weight: 600;
	margin-top: 16px;
	transition: background 0.2s ease;
}

.donation-slip-upload button:hover {
	background: #15803d
}

.donation-slip-upload button:focus {
	outline: 3px solid rgba(22, 163, 74, 0.3);
	outline-offset: 2px
}

/* Volunteer form button styling - matches choose file button */
#volunteer button {
	background: var(--accent);
	color: #fff;
	border: none;
	padding: 12px 24px;
	border-radius: 8px;
	cursor: pointer;
	font-size: 1rem;
	font-weight: 600;
	margin-top: 16px;
	transition: background 0.2s ease;
	display: inline-block;
}

#volunteer button:hover {
	background: #15803d
}

#volunteer button:focus {
	outline: 3px solid rgba(22, 163, 74, 0.3);
	outline-offset: 2px
}

#volunteer a {
	text-decoration: none;
	display: inline-block;
}

/* Footer */
/* Footer layout: full-width bar, inner .container centers the content.
   This visually separates the site footer from the content cards above. */
/* Static footer: flows naturally with page content */
footer {
	position: relative;
	width: 100%;
	max-width: var(--max-width);
	margin: 40px auto 0 auto;

	background: var(--bar-bg);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);

	border: 2px solid #ffffff;
	border-radius: 10px;

	padding: 18px 0;
	text-align: center;
	color: rgba(255, 255, 255, 0.95);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
	z-index: 10;
}

/* center the content inside the full-width footer */
footer>.social-media {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 16px;
	display: flex;
	align-items: center;
	gap: 12px;
	justify-content: space-between;
}

footer small {
	display: block;
	color: rgba(255, 255, 255, 0.65);
	font-size: 0.85rem
}

/* MA Services logo in footer - make circular */
footer .site-credit img {
	border-radius: 50%;
	width: 36px;
	height: 36px;
	object-fit: cover;
}

/* Utilities */
.muted {
	color: var(--muted)
}

/* Responsive */
@media (max-width:800px) {
	header {
		flex-direction: column;
		align-items: flex-start
	}

	nav ul {
		flex-wrap: wrap
	}

	header h1 {
		margin-left: 0;
		margin-top: 8px
	}

	.pdf-section iframe {
		height: 320px
	}
}

@media (max-width:420px) {
	body {
		padding: 18px 12px
	}

	header #logo {
		height: 56px
	}
}

.awareness-images {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-top: 20px;
}

.awareness-images img {
	max-width: 45%;
	max-height: 350px;
	height: auto;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	display: block;
	object-fit: contain;
}

.awareness-images img:nth-child(odd) {
	margin-right: auto;
	margin-left: 0;
}

.awareness-images img:nth-child(even) {
	margin-left: auto;
	margin-right: 0;
}

@media (max-width:800px) {
	.awareness-images img {
		max-width: 85%;
		max-height: 350px;
		margin-left: auto !important;
		margin-right: auto !important;
	}
}

a:focus {
	outline: 3px solid rgba(22, 163, 74, 0.18);
	outline-offset: 2px
}