/* Global Styles */
:root {
	--primary-color: #007bff; /* Example: Blue */
	--secondary-color: #6c757d; /* Example: Gray */
	--accent-color: #28a745; /* Example: Green */
	--background-color: #f8f9fa;
	--text-color: #333;
	--heading-font: 'Roboto', sans-serif;
	--body-font: 'Lato', sans-serif;
	--card-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	--section-padding: 60px 20px;
}

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

body {
	font-family: var(--body-font);
	line-height: 1.6;
	color: var(--text-color);
	background-color: var(--background-color);
	overflow-x: hidden; /* Prevent horizontal scroll from animations */
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--heading-font);
	margin-bottom: 1rem;
	font-weight: 700;
	color: var(--primary-color);
}
h1 {
	font-size: 2.8rem;
}
h2 {
	font-size: 2.2rem;
	color: #333;
}
h3 {
	font-size: 1.8rem;
	color: var(--primary-color);
}

p {
	margin-bottom: 1rem;
	font-size: 1rem;
	color: #555;
}

a {
	color: var(--primary-color);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
	color: #0056b3;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* Header & Navigation */
header {
	background-color: #fff;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	padding: 1rem 0;
	position: sticky;
	top: 0;
	z-index: 1000;
	width: 100%;
}

nav {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

nav .logo {
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--primary-color);
	text-decoration: none;
}

.logo img {
	height: 40px;
	width: auto;
}

nav ul {
	list-style: none;
	display: flex;
}

nav ul li {
	margin-left: 25px;
}

nav ul li a {
	font-size: 1rem;
	color: var(--text-color);
	font-weight: 500;
	transition: color 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
	color: var(--primary-color);
}

.mobile-menu-toggle {
	display: none;
	background: none;
	border: none;
	font-size: 2rem;
	cursor: pointer;
	color: var(--primary-color);
}

/* Sections */
.content-section {
	padding: var(--section-padding);
	max-width: 1000px;
	margin: 40px auto;
	background-color: #fff;
	border-radius: 8px;
	box-shadow: var(--card-shadow);
}

.full-width-section {
	padding: var(--section-padding);
	margin: 40px 0; /* Allow full-width sections to have margin */
	background-color: #fff;
	/* box-shadow: var(--card-shadow); */ /* Optional for full-width */
}

/* Hero Section */
#hero {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
	background: linear-gradient(
		to right,
		#e0f7fa,
		#b2ebf2
	); /* Light teal gradient */
	padding: 80px 5%; /* More padding for hero */
	min-height: 70vh;
	margin-top: 0; /* Remove top margin if it's the first element */
}

#hero .hero-content {
	flex: 1;
	max-width: 600px;
}

#hero .hero-content h1 {
	font-size: 3rem;
	margin-bottom: 1.5rem;
	color: #004d40; /* Darker teal for text */
}

#hero .hero-content p {
	font-size: 1.2rem;
	margin-bottom: 2rem;
	color: #00695c; /* Medium teal */
}

#hero .hero-image-container {
	flex: 1;
	max-width: 500px;
	text-align: center; /* Center image if it's smaller */
}

#hero .hero-image-container img {
	border-radius: 10px;
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.hero-buttons-container {
	margin-top: 1.5rem;
	display: flex;
	gap: 15px;
	flex-wrap: wrap; /* Allow buttons to stack */
}

.cta-button {
	display: inline-block;
	background-color: var(--accent-color);
	color: #fff;
	padding: 12px 25px;
	border-radius: 5px;
	text-decoration: none;
	font-weight: 700;
	font-size: 1.1rem;
	transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
	background-color: #218838; /* Darker green */
	transform: translateY(-2px);
	color: #fff;
}

/* Mission Section */
#mission h2 {
	text-align: center;
	margin-bottom: 2rem;
}

/* Cards Container */
.cards-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
	margin-top: 2rem;
}

.card {
	background-color: #fff;
	border-radius: 8px;
	box-shadow: var(--card-shadow);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.card img {
	width: 100%;
	height: auto;
	object-fit: cover;
}

.card h3 {
	padding: 15px 20px 5px;
	font-size: 1.5rem;
}

.card p {
	padding: 0 20px 15px;
	flex-grow: 1; /* Allows p to take available space */
	font-size: 0.95rem;
	color: #666;
}
.card .card-link {
	display: block;
	padding: 15px 20px;
	background-color: #f0f0f0;
	text-align: center;
	font-weight: bold;
	color: var(--primary-color);
	text-decoration: none;
	margin-top: auto; /* Pushes link to bottom */
}
.card .card-link:hover {
	background-color: #e0e0e0;
}

/* Story Spotlights */
#story-spotlights article {
	margin-bottom: 40px;
	padding-bottom: 30px;
	border-bottom: 1px solid #eee;
}
#story-spotlights article:last-child {
	border-bottom: none;
	margin-bottom: 0;
}

.story-spotlight {
	display: flex;
	gap: 30px;
	align-items: flex-start; /* Align items to the top */
}

.story-spotlight .story-image {
	flex: 0 0 300px; /* Fixed width for image container */
}
.story-spotlight .story-image img {
	border-radius: 8px;
	box-shadow: var(--card-shadow);
}

.story-spotlight .story-text {
	flex: 1;
}
.story-spotlight .story-text h3 {
	margin-top: 0;
}

/* FAQ Section */
#faq h2 {
	text-align: center;
	margin-bottom: 2rem;
}
.faq-item {
	margin-bottom: 15px;
	border: 1px solid #ddd;
	border-radius: 5px;
	overflow: hidden;
}
.faq-question {
	background-color: #f7f7f7;
	color: var(--primary-color);
	padding: 15px 20px;
	width: 100%;
	text-align: left;
	border: none;
	outline: none;
	cursor: pointer;
	font-size: 1.1rem;
	font-weight: 500;
	transition: background-color 0.3s;
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.faq-question:hover {
	background-color: #e9e9e9;
}
.faq-question::after {
	content: '+';
	font-size: 1.5rem;
	font-weight: bold;
	color: var(--secondary-color);
}
.faq-question.active::after {
	content: '−';
}
.faq-answer {
	box-sizing: content-box;
	padding: 0px 20px;
	background-color: #fff;
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}
.faq-answer p {
	margin: 15px 0;
}
.faq-answer.active {
	max-height: 300px; /* Adjust as needed */
	padding: 15px 20px;
}

/* Contact Section */
#contact h2 {
	text-align: center;
	margin-bottom: 2rem;
}

.contact-container {
	display: flex;
	gap: 30px;
	flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.contact-info {
	flex: 1;
	min-width: 280px; /* Ensure it doesn't get too squished */
}
.contact-info p {
	margin-bottom: 0.8rem;
}
.contact-info strong {
	color: var(--text-color);
}

.contact-form {
	flex: 1.5; /* Give form more space */
	min-width: 300px;
	background-color: #f9f9f9;
	padding: 25px;
	border-radius: 8px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.form-group {
	margin-bottom: 20px;
}

.form-group label {
	display: block;
	margin-bottom: 8px;
	font-weight: 500;
	color: #444;
}

.form-group input[type='text'],
.form-group input[type='email'],
.form-group textarea {
	width: 100%;
	padding: 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 1rem;
	font-family: var(--body-font);
}
.form-group input[type='text']:focus,
.form-group input[type='email']:focus,
.form-group textarea:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.form-group textarea {
	resize: vertical;
	min-height: 100px;
}

.contact-form .cta-button {
	width: 100%;
	padding: 12px;
	font-size: 1.1rem;
}
.form-status {
	margin-top: 15px;
	text-align: center;
	font-weight: 500;
}
.form-status.success {
	color: var(--accent-color);
}
.form-status.error {
	color: #dc3545; /* Red for errors */
}
.contact-form-image {
	margin-top: 20px;
	border-radius: 8px;
	max-width: 250px; /* Control size */
}

/* Section CTA Button Container */
.section-cta-container {
	text-align: center;
	margin-top: 30px; /* Space above the button */
	padding-top: 20px; /* Additional space if section content is close */
}
#mission .section-cta-container,
#featured-stories .section-cta-container {
	margin-top: 20px; /* Adjust if needed for specific sections */
}
#story-spotlights .section-cta-container {
	padding-top: 10px; /* Spotlights already have bottom margin/padding */
	margin-top: 0;
}
#faq .section-cta-container {
	margin-top: 10px; /* FAQ items have margin, so less needed here */
}

/* Footer */
footer {
	background-color: #343a40;
	color: #f8f9fa;
	padding: 40px 20px 20px;
	margin-top: 50px;
}

.footer-content {
	max-width: 1200px;
	margin: 0 auto 20px;
	display: flex;
	justify-content: space-around;
	flex-wrap: wrap;
	gap: 20px;
	padding-bottom: 20px;
	border-bottom: 1px solid #495057;
}

.footer-contact,
.footer-links,
.footer-navigation {
	flex: 1;
	min-width: 250px; /* Ensure readability on wrap */
}

.footer-contact h4,
.footer-links h4,
.footer-navigation h4 {
	color: #fff;
	margin-bottom: 15px;
	font-size: 1.3rem;
}

.footer-contact p {
	margin-bottom: 8px;
	font-size: 0.95rem;
	color: #adb5bd;
}

.footer-links ul,
.footer-navigation ul {
	list-style: none;
}

.footer-links ul li,
.footer-navigation ul li {
	margin-bottom: 8px;
}

.footer-links ul li a,
.footer-navigation ul li a {
	color: #adb5bd;
	text-decoration: none;
	transition: color 0.3s ease;
}

.footer-links ul li a:hover,
.footer-navigation ul li a:hover {
	color: #fff;
	text-decoration: underline;
}

.copyright {
	text-align: center;
	font-size: 0.9rem;
	color: #adb5bd;
}

/* Legal Pages Simple Styling */
.legal-page {
	max-width: 800px;
	margin: 40px auto;
	padding: 30px;
	background-color: #fff;
	border-radius: 8px;
	box-shadow: var(--card-shadow);
}
.legal-page h1 {
	font-size: 1.5rem;
	margin-bottom: 1.5rem;
	text-align: center;
}
.legal-page h2 {
	margin-top: 1.5rem;
	margin-bottom: 0.8rem;
	font-size: 1.6rem;
	border-bottom: 1px solid #eee;
	padding-bottom: 0.5rem;
}
.legal-page p,
.legal-page ul li {
	margin-bottom: 1rem;
	line-height: 1.7;
	color: #444;
}
.legal-page ul {
	padding-left: 20px;
}

/* Animation for Sections */
.animated-section {
	opacity: 0;
	transform: scale(0.95) translateY(20px);
	transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animated-section.is-visible {
	opacity: 1;
	transform: scale(1) translateY(0);
}

/* Cookie Consent Modal */
.cookie-modal {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: rgba(0, 0, 0, 0.85);
	color: #fff;
	padding: 20px;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
	z-index: 2000;
	display: none; /* Hidden by default */
	align-items: center;
	justify-content: center;
	text-align: center;
}
.cookie-modal.show {
	display: flex; /* Use flex to center content vertically if needed */
}

.cookie-modal-content {
	max-width: 800px;
	display: flex;
	flex-direction: column; /* Stack text and buttons on small screens */
	align-items: center;
	gap: 15px; /* Space between text and buttons */
}

.cookie-modal p {
	margin: 0;
	font-size: 0.95rem;
	color: #f0f0f0;
}
.cookie-modal a {
	color: var(--accent-color);
	text-decoration: underline;
}
.cookie-modal-buttons {
	display: flex;
	gap: 15px;
}
.cookie-modal button {
	padding: 10px 20px;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	font-weight: 500;
	transition: background-color 0.3s;
}
#acceptCookies {
	background-color: var(--accent-color);
	color: #fff;
}
#acceptCookies:hover {
	background-color: #218838;
}
#declineCookies {
	background-color: var(--secondary-color);
	color: #fff;
}
#declineCookies:hover {
	background-color: #545b62;
}

/* Responsive Design */
@media (max-width: 992px) {
	#hero {
		flex-direction: column;
		text-align: center;
		padding: 60px 5%;
	}
	#hero .hero-content,
	#hero .hero-image-container {
		max-width: 100%;
	}
	#hero .hero-content h1 {
		font-size: 2.5rem;
	}
	#hero .hero-content p {
		font-size: 1.1rem;
	}
	.hero-buttons-container {
		justify-content: center; /* Center buttons in flex container when hero content is centered */
	}
	.story-spotlight {
		flex-direction: column;
	}
	.story-spotlight .story-image {
		flex: 0 0 auto; /* Reset flex basis */
		width: 100%; /* Full width on smaller screens */
		max-width: 400px; /* Optional max width for image */
		margin: 0 auto 20px; /* Center image */
	}
}

@media (max-width: 768px) {
	h1 {
		font-size: 2.2rem;
	}
	h2 {
		font-size: 1.8rem;
	}
	.content-section,
	.full-width-section {
		padding: 40px 15px;
		margin: 20px auto;
	}
	nav ul {
		display: none;
		flex-direction: column;
		width: 100%;
		background-color: #fff;
		position: absolute;
		top: 70px; /* Adjust based on header height */
		left: 0;
		box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	}
	nav ul.active {
		display: flex;
	}
	nav ul li {
		margin: 0;
		text-align: center;
	}
	nav ul li a {
		padding: 15px;
		display: block;
		border-bottom: 1px solid #f0f0f0;
	}
	nav ul li:last-child a {
		border-bottom: none;
	}
	.mobile-menu-toggle {
		display: block;
	}

	.cards-container {
		grid-template-columns: 1fr; /* Stack cards */
	}
	.contact-container {
		flex-direction: column;
	}
	.footer-content {
		flex-direction: column;
		text-align: center;
	}
	.footer-contact,
	.footer-links {
		margin-bottom: 20px;
	}
	.cookie-modal-content {
		flex-direction: column; /* Stack text and buttons always on small screens for clarity */
	}
	.cookie-modal p {
		margin-bottom: 10px;
	}
}

@media (max-width: 480px) {
	body {
		font-size: 15px; /* Adjust base font size for very small screens */
	}
	h1 {
		font-size: 2rem;
	}
	#hero .hero-content h1 {
		font-size: 2.2rem;
	}
	#hero .hero-content p {
		font-size: 1rem;
	}
	.hero-buttons-container .cta-button {
		/* Target buttons specifically within hero for smaller screens if needed */
		width: calc(
			100% - 20px
		); /* Example: make buttons full width with some margin */
		margin-left: 10px;
		margin-right: 10px;
		box-sizing: border-box; /* Ensure padding is included in width */
	}
	.hero-buttons-container .cta-button + .cta-button {
		/* Add space between stacked buttons */
		margin-top: 10px;
	}
	.cta-button {
		padding: 10px 20px;
		font-size: 1rem;
	}
	.cookie-modal {
		padding: 15px;
	}
	.cookie-modal-buttons button {
		padding: 8px 15px;
		font-size: 0.9rem;
	}
}
