:root {
	--primary-color: #005a9c; /* A professional blue */
	--secondary-color: #003f72; /* Darker blue */
	--accent-color: #fdb813; /* A warm yellow/gold accent */
	--text-color: #333;
	--light-gray: #f4f4f4;
	--white: #fff;
	--section-padding: 60px 0;
	--border-radius: 8px;
}

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

html {
	scroll-behavior: smooth;
}

body {
	font-family: 'Arial', sans-serif;
	line-height: 1.6;
	color: var(--text-color);
	margin: 0;
	padding: 0;
	background-color: var(--white);
}

.container {
	width: 90%;
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 15px;
}

/* Header */
header {
	background-color: var(--white);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	padding: 1rem 0;
	position: sticky;
	top: 0;
	z-index: 1000;
}

header .container {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

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

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

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

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

nav ul li a {
	text-decoration: none;
	color: var(--primary-color);
	font-weight: 500;
	transition: color 0.3s ease;
}

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

.mobile-menu-toggle {
	display: none; /* Hidden by default, shown in media query */
	font-size: 1.5rem;
	background: none;
	border: none;
	color: var(--primary-color);
	cursor: pointer;
}

/* Hero Sections */
#bpo-hero,
#ba-hero {
	background-color: var(--light-gray);
	padding: var(--section-padding);
	text-align: center;
}

#bpo-hero .container,
#ba-hero .container {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 30px;
}

.hero-content h1 {
	font-size: 2.8rem;
	color: var(--secondary-color);
	margin-bottom: 1rem;
}

.hero-content p {
	font-size: 1.1rem;
	max-width: 700px;
	margin: 0 auto 1.5rem auto;
}

.hero-image img {
	max-width: 100%;
	height: auto;
	border-radius: var(--border-radius);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cta-button {
	display: inline-block;
	background-color: var(--accent-color);
	color: var(--secondary-color);
	padding: 12px 25px;
	text-decoration: none;
	font-weight: bold;
	border-radius: var(--border-radius);
	transition: background-color 0.3s ease, transform 0.2s ease;
	border: 2px solid var(--accent-color);
}

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

/* General Section Styling */
section {
	padding: var(--section-padding);
}

section:nth-child(even):not(.hero-section):not(.card-section) {
	/* excluding hero and card sections from this rule if they are even */
	/* background-color: var(--light-gray); */ /* Decided against alternating for cleaner look */
}

section h2 {
	text-align: center;
	font-size: 2.2rem;
	color: var(--secondary-color);
	margin-bottom: 40px;
}

.section-subtitle {
	text-align: center;
	font-size: 1.1rem;
	color: #555;
	margin-top: -30px;
	margin-bottom: 40px;
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
}

/* Text & Image Sections (includes emoji sections) */
.text-image-section .container .content-wrapper {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 30px;
}

.text-image-section .text-content,
.text-image-section .image-content {
	flex: 1;
}

.text-image-section .image-content img {
	max-width: 100%;
	height: auto;
	border-radius: var(--border-radius);
}

.text-image-section ul,
.emoji-section ul {
	list-style: none;
	padding-left: 0;
}

.text-image-section ul li,
.emoji-section ul li {
	margin-bottom: 0.8rem;
	font-size: 1.05rem;
	display: flex;
	align-items: flex-start;
}

.emoji-section .emoji {
	font-size: 1.5rem;
	margin-right: 10px;
	line-height: 1.4; /* Align emoji better with text */
}

.text-only-section {
	background-color: var(--light-gray);
}

.text-only-section p {
	max-width: 800px;
	margin: 0 auto;
	text-align: center;
	font-size: 1.1rem;
}

/* Card Section */
.card-section {
	background-color: var(--light-gray);
}

.cards-container {
	display: flex;
	flex-wrap: wrap;
	gap: 25px;
	justify-content: center;
}

.card {
	background-color: var(--white);
	border-radius: var(--border-radius);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
	padding: 25px;
	width: calc(33.333% - 20px); /* Adjust for gap */
	min-width: 280px; /* Minimum width for smaller screens before wrapping */
	display: flex;
	flex-direction: column;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
	transform: translateY(-5px);
	box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

.card img {
	width: 100%;
	max-height: 180px;
	object-fit: cover;
	border-radius: var(--border-radius) var(--border-radius) 0 0;
	margin-bottom: 15px;
}

.card h3 {
	font-size: 1.4rem;
	color: var(--primary-color);
	margin-bottom: 10px;
}

.card p {
	font-size: 0.95rem;
	flex-grow: 1; /* Pushes link to bottom if card heights vary */
	margin-bottom: 15px;
}

.learn-more-link {
	color: var(--primary-color);
	text-decoration: none;
	font-weight: bold;
	align-self: flex-start;
}

.learn-more-link:hover {
	text-decoration: underline;
}

/* FAQ Section */
#faq-section .faq-item {
	background-color: var(--white);
	margin-bottom: 15px;
	padding: 15px 20px;
	border-radius: var(--border-radius);
	border: 1px solid #e0e0e0;
}

#faq-section .faq-item h3 {
	font-size: 1.2rem;
	color: var(--primary-color);
	margin: 0 0 8px 0;
}

/* Contact Form Section */
#contact-section {
	background-color: var(--light-gray);
}

#contact-form {
	max-width: 600px;
	margin: 0 auto;
	background-color: var(--white);
	padding: 30px;
	border-radius: var(--border-radius);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.form-group label {
	display: block;
	margin-bottom: 5px;
	font-weight: bold;
	color: var(--secondary-color);
}

.form-group input[type='text'],
.form-group input[type='email'],
.form-group textarea {
	width: calc(100% - 20px); /* Account for padding */
	padding: 10px;
	border: 1px solid #ccc;
	border-radius: var(--border-radius);
	font-size: 1rem;
}

.form-group textarea {
	resize: vertical;
}

.form-group-checkbox {
	display: flex;
	align-items: center;
}

.form-group-checkbox input[type='checkbox'] {
	margin-right: 10px;
	width: auto; /* Override previous width rule for inputs */
	accent-color: var(--primary-color); /* Style checkbox color */
}

.form-group-checkbox .checkbox-label {
	font-weight: normal; /* Override default bold label */
	color: var(--text-color);
	font-size: 0.9rem;
	margin-bottom: 0; /* Remove default margin */
}

#form-status {
	margin-top: 15px;
	font-weight: bold;
}

/* Section CTA Container */
.section-cta-container {
	display: inline-block;
	text-align: center;
	margin-top: 30px;
}

.hero-content .section-cta-container {
	/* Specific for hero to have less margin if two buttons */
	margin-top: 15px;
}

/* Footer */
footer {
	background-color: var(--secondary-color);
	color: var(--light-gray);
	padding: 40px 0 20px 0;
	text-align: center;
}

.footer-columns {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 30px;
	text-align: left;
}

.footer-col {
	flex: 1;
	min-width: 200px; /* Ensure columns don't get too squished */
}

.footer-col h4 {
	font-size: 1.2rem;
	color: var(--white);
	margin-bottom: 15px;
}

.footer-col p,
.footer-col ul li {
	font-size: 0.9rem;
	margin-bottom: 8px;
}

.footer-col ul {
	list-style: none;
	padding: 0;
}

.footer-col a {
	color: var(--light-gray);
	text-decoration: none;
}

.footer-col a:hover {
	color: var(--accent-color);
	text-decoration: underline;
}

.copyright {
	border-top: 1px solid #4a6e8c; /* Lighter shade of footer bg */
	padding-top: 20px;
	font-size: 0.85rem;
}

/* Cookie Consent Modal */
.cookie-modal {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: rgba(0, 0, 0, 0.9);
	color: var(--white);
	padding: 20px;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
	z-index: 2000;
	display: none; /* Hidden by default */
	text-align: center;
}

.cookie-modal-content {
	max-width: 800px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 15px;
}

.cookie-modal p {
	margin: 0;
}
.cookie-modal a {
	color: var(--accent-color);
	text-decoration: underline;
}

.cookie-buttons button {
	background-color: var(--accent-color);
	color: var(--secondary-color);
	border: none;
	padding: 10px 20px;
	margin: 0 10px;
	border-radius: var(--border-radius);
	cursor: pointer;
	font-weight: bold;
}

.cookie-buttons button#reject-cookies {
	background-color: #6c757d; /* Gray */
	color: white;
}

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

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

/* Responsive Design */
@media (min-width: 769px) {
	/* Apply for tablets and desktops */
	#bpo-hero .container,
	#ba-hero .container {
		flex-direction: row;
		text-align: left;
	}
	#bpo-hero .hero-content,
	#ba-hero .hero-content {
		flex: 1.2; /* Give more space to text */
	}
	#bpo-hero .hero-image,
	#ba-hero .hero-image {
		flex: 0.8;
	}
	.hero-content p {
		margin-left: 0;
		margin-right: 0;
	}

	.text-image-section .container .content-wrapper {
		flex-direction: row;
	}
	.text-image-section .container .content-wrapper.reverse {
		/* Optional class to reverse order */
		flex-direction: row-reverse;
	}
}

@media (max-width: 768px) {
	.hero-content h1 {
		font-size: 2.2rem;
	}
	.hero-content p {
		font-size: 1rem;
	}
	section h2 {
		font-size: 1.8rem;
	}

	nav ul {
		display: none; /* Hide nav links */
		flex-direction: column;
		position: absolute;
		top: 60px; /* Adjust based on header height */
		left: 0;
		width: 100%;
		background-color: var(--white);
		box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	}
	nav ul.active {
		display: flex; /* Show when active */
	}
	nav ul li {
		margin: 0;
		width: 100%;
		text-align: center;
	}
	nav ul li a {
		display: block;
		padding: 1rem;
		border-bottom: 1px solid var(--light-gray);
	}
	.mobile-menu-toggle {
		display: block; /* Show hamburger */
	}

	.card {
		width: calc(50% - 15px); /* Two cards per row */
	}
	.footer-columns {
		gap: 0;
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
	.footer-col {
		margin-bottom: 20px;
	}
	.cookie-modal-content {
		flex-direction: column;
	}
	.cookie-buttons {
		margin-top: 10px;
	}
}

@media (max-width: 480px) {
	.container {
		width: 95%;
	}
	.hero-content h1 {
		font-size: 1.8rem;
	}
	section h2 {
		font-size: 1.6rem;
	}
	.card {
		width: 100%; /* One card per row */
	}
	.cookie-buttons button {
		width: calc(50% - 10px);
		margin: 5px;
	}
}

/* Legal Pages Specific Styles */
.legal-page-container {
	padding: 40px 0;
}

.legal-page-container h1 {
	font-size: 2rem;
	color: var(--secondary-color);
	margin-bottom: 20px;
}

.legal-page-container h2 {
	font-size: 1.5rem;
	color: var(--primary-color);
	margin-top: 30px;
	margin-bottom: 10px;
}

.legal-page-container p,
.legal-page-container li {
	font-size: 1rem;
	margin-bottom: 10px;
	line-height: 1.7;
}

.legal-page-container ul {
	padding-left: 20px;
}
