/* Basic Reset & Global Styles */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Arial', sans-serif;
	line-height: 1.6;
	color: #333;
	background-color: #f9f9f9;
}

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

h1,
h2,
h3 {
	margin-bottom: 0.8em;
	color: #1a237e; /* Dark Blue */
}
h1 {
	font-size: 2.8em;
}
h2 {
	font-size: 2.2em;
}
h3 {
	font-size: 1.5em;
	color: #283593;
} /* Indigo */

p {
	margin-bottom: 1em;
	color: #555;
}

a {
	color: #3949ab; /* Indigo darker */
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

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

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

header nav {
	width: 90%;
	max-width: 1200px;
	margin: auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	position: relative; /* For positioning mobile menu dropdown */
}

header .logo {
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	font-size: 1.2em;
	font-weight: bold;
	color: #1a237e;
}

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

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

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

header nav ul li a {
	font-size: 1em;
	color: #333;
	padding: 5px 10px;
	transition: color 0.3s ease;
}

header nav ul li a:hover,
header nav ul li a.active {
	color: #3949ab;
	font-weight: bold;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
	display: none; /* Hidden by default, shown in media query */
	flex-direction: column;
	justify-content: space-around; /* Distributes space between lines */
	width: 30px;
	height: 24px;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 0;
	z-index: 1010; /* Above other header elements */
	order: 2; /* Ensure it's after the logo if HTML order changes */
}

.mobile-menu-toggle .line {
	display: block;
	width: 100%;
	height: 3px;
	background-color: #1a237e; /* Match logo color */
	border-radius: 3px;
	transition: all 0.3s ease-in-out;
}

/* Animation for burger to X */
.mobile-menu-toggle.is-active .line1 {
	transform: translateY(7.5px) rotate(45deg); /* Adjusted for 24px height, 3px line */
}
.mobile-menu-toggle.is-active .line2 {
	opacity: 0;
}
.mobile-menu-toggle.is-active .line3 {
	transform: translateY(-7.5px) rotate(-45deg); /* Adjusted for 24px height, 3px line */
}

/* Sections General Styling */
section {
	padding: 60px 20px; /* Default padding for mobile */
	margin: 20px auto;
	background-color: #fff;
	border-radius: 8px;
	box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
	max-width: 1200px; /* Max width for content within sections */
}

/* For sections that should span full width visually, but content constrained */
.full-width-section {
	max-width: none; /* Override max-width for the section itself */
	padding-left: 0;
	padding-right: 0;
}
.full-width-section > div {
	/* Content wrapper inside full-width section */
	max-width: 1200px;
	padding: 0 20px; /* Horizontal padding for content */
}

/* Hero Section */
#hero {
	margin: 0 auto;
	background: linear-gradient(
		to right,
		rgba(26, 35, 126, 0.8),
		rgba(57, 73, 171, 0.7)
	); /* Fallback if image specified in HTML doesn't load, or as overlay */
	background-size: cover;
	background-position: center;
	color: #fff;
	text-align: center;
	padding: 80px 20px; /* More padding for hero */
	display: flex; /* For side-by-side layout on larger screens */
	flex-direction: column; /* Default for mobile */
	justify-content: center;
	align-items: center;
	border-radius: 0; /* Full width hero might not need rounding */
}
#hero .hero-content {
	max-width: 700px;
	margin-bottom: 20px; /* Space between text and image on mobile */
}

#hero h1 {
	font-size: 2.5em; /* Adjusted for responsiveness */
	margin-bottom: 0.5em;
	color: #fff;
}

#hero p {
	font-size: 1.2em;
	margin-bottom: 1.5em;
	color: #f0f0f0;
}
.hero-image {
	max-width: 400px; /* Max width for the image */
	width: 100%;
	border-radius: 8px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* CTA Button */
.cta-button {
	display: inline-block;
	background-color: #ff6f00; /* Amber/Orange */
	color: #fff;
	padding: 12px 25px;
	font-size: 1.1em;
	border-radius: 25px;
	text-decoration: none;
	transition: background-color 0.3s ease, transform 0.3s ease;
	border: none;
	cursor: pointer;
}

.cta-button:hover {
	background-color: #e65100; /* Darker Amber */
	transform: translateY(-2px);
	text-decoration: none;
}

.cta-button-secondary {
	display: inline-block;
	background-color: #5c6bc0; /* Indigo Light */
	color: #fff;
	padding: 10px 20px;
	font-size: 1em;
	border-radius: 20px;
	text-decoration: none;
	transition: background-color 0.3s ease;
}
.cta-button-secondary:hover {
	background-color: #3949ab; /* Indigo Darker */
	text-decoration: none;
}

/* Services Section (Cards) */
#services .cards-container {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	justify-content: center;
}

#services .card {
	background-color: #f9f9f9;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 25px;
	width: 100%; /* Full width on mobile */
	max-width: 350px; /* Max width for cards on larger screens */
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

#services .card img {
	width: 100%;
	height: auto;
	object-fit: cover;
	border-radius: 6px 6px 0 0;
	margin-bottom: 15px;
}

#services .card h3 {
	margin-top: 0;
	color: #1a237e;
}

/* Why Us Section */
#why-us {
	display: flex;
	flex-direction: column; /* Mobile first */
	align-items: center;
	gap: 30px;
}
.why-us-content {
	flex: 1;
	max-width: 600px;
}
.why-us-content h2 {
	text-align: left;
}
.why-us-content .section-subtitle {
	text-align: left;
}
.why-us-content ul {
	list-style: none;
	padding-left: 0;
}
.why-us-content ul li {
	margin-bottom: 10px;
	font-size: 1.05em;
	color: #444;
	padding-left: 25px; /* Space for emoji or custom bullet */
	position: relative; /* For custom bullet positioning if needed */
}
.why-us-content ul li::before {
	/* Example of using emoji as bullet */
	content: '✔️'; /* Default, can be overridden by inline emoji */
	position: absolute;
	left: 0;
	color: #ff6f00;
}
.why-us-image-container {
	flex: 1;
	max-width: 500px;
}
.why-us-image-container img {
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Blog Page Specifics */
/* Featured Post Section */
#featured-post {
	display: flex;
	flex-direction: column; /* Mobile first */
	align-items: center;
	gap: 20px;
	background-color: #e8eaf6; /* Light Indigo background */
}

.featured-post-image-container {
	flex-basis: 40%; /* Adjust as needed */
	max-width: 500px; /* Control image size */
}
.featured-post-image-container img {
	border-radius: 8px;
	object-fit: cover;
	width: 100%;
	height: auto;
}
.featured-post-content {
	flex-basis: 55%; /* Adjust as needed */
	max-width: 650px;
}
.featured-post-content h2 {
	color: #1a237e;
	text-align: left;
}
.post-meta {
	font-size: 0.9em;
	color: #555;
	margin-bottom: 15px;
}

/* Key Insights Section */
#key-insights .key-insights-container {
	display: flex;
	flex-direction: column;
	gap: 30px;
}
.insight-item {
	display: flex;
	flex-direction: column; /* Mobile first */
	gap: 20px;
	background-color: #f9f9f9;
	padding: 20px;
	border-radius: 8px;
	border: 1px solid #eee;
}
.insight-item img {
	max-width: 100%; /* Full width on mobile */
	height: auto;
	max-height: 250px; /* Control height */
	object-fit: cover;
	border-radius: 6px;
}
.insight-item h3 {
	color: #283593;
}

/* FAQ Section */
.faq-section-bg {
	background-color: #f0f4f8; /* Fallback color */
}
#faq .faq-container {
	max-width: 800px;
	margin: auto;
}
.faq-item {
	background-color: #fff;
	margin-bottom: 15px;
	padding: 20px;
	border-radius: 6px;
	border: 1px solid #e0e0e0;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}
.faq-item h3 {
	font-size: 1.2em;
	color: #1a237e;
	margin-bottom: 8px;
}

/* Contact Form Section */
#contact-form-section {
	background-color: #f0f4f8; /* Light blue-gray background */
}
#contactForm {
	max-width: 600px;
	margin: 20px auto;
	padding: 25px;
	background-color: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.form-group {
	margin-bottom: 20px;
}
.form-group label {
	display: block;
	margin-bottom: 5px;
	font-weight: bold;
	color: #333;
}
.form-group input[type='text'],
.form-group input[type='email'],
.form-group textarea {
	width: 100%;
	padding: 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 1em;
}
.form-group textarea {
	resize: vertical;
	min-height: 100px;
}
.form-group.checkbox-group {
	display: flex;
	align-items: center;
	margin-bottom: 20px; /* Keep consistent spacing */
}
.form-group.checkbox-group input[type='checkbox'] {
	width: auto; /* Override full width for checkbox */
	margin-right: 10px;
	accent-color: #1a237e; /* Match site's primary color */
}
.form-group.checkbox-group .checkbox-label {
	font-weight: normal; /* Regular font weight for checkbox label */
	font-size: 0.9em;
	color: #555;
	margin-bottom: 0; /* Remove default label margin */
	cursor: pointer;
}
.form-status {
	margin-top: 15px;
	font-weight: bold;
}
.form-status.success {
	color: green;
}
.form-status.error {
	color: red;
}

/* Footer */
footer {
	background-color: #1c273a; /* Dark blue/grey */
	color: #f0f0f0;
	padding: 40px 20px 20px;
	text-align: center;
}
.footer-content {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-around;
	gap: 30px;
	margin-bottom: 30px;
	text-align: left;
}
.footer-contact,
.footer-links,
.footer-legal {
	flex: 1;
	min-width: 250px; /* Ensure readability on smaller flex layouts */
}
.footer-content h3 {
	color: #fff;
	margin-bottom: 15px;
	font-size: 1.3em;
	border-bottom: 1px solid #4a5c7a;
	padding-bottom: 8px;
}
.footer-content ul {
	list-style: none;
	padding: 0;
}
.footer-content ul li {
	margin-bottom: 8px;
}
.footer-content ul li a {
	color: #bbb;
	transition: color 0.3s ease;
}
.footer-content ul li a:hover {
	color: #ff6f00;
	text-decoration: none;
}
.footer-contact p {
	color: #bbb;
	margin-bottom: 8px;
}
.footer-contact a {
	color: #bbb;
}
.footer-contact a:hover {
	color: #ff6f00;
}
.copyright {
	margin-top: 20px;
	font-size: 0.9em;
	color: #aaa;
	border-top: 1px solid #3a4b6a;
	padding-top: 20px;
}

/* 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 */
	text-align: center;
}
.cookie-modal-content {
	max-width: 800px;
	margin: auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 15px;
}
.cookie-modal p {
	margin: 0;
	font-size: 0.95em;
}
.cookie-modal a {
	color: #ffc107; /* Amber for links */
	text-decoration: underline;
}
.cookie-buttons {
	display: flex;
	gap: 15px;
}
.cookie-buttons button {
	padding: 10px 20px;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	font-size: 0.9em;
	transition: background-color 0.3s ease;
}
#acceptCookies {
	background-color: #4caf50; /* Green */
	color: white;
}
#acceptCookies:hover {
	background-color: #45a049;
}
#declineCookies {
	background-color: #f44336; /* Red */
	color: white;
}
#declineCookies:hover {
	background-color: #e53935;
}

/* Form Submission Modal */
.submission-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.6);
	display: none; /* Hidden by default */
	justify-content: center;
	align-items: center;
	z-index: 3000; /* Higher than cookie modal */
	opacity: 0;
	transition: opacity 0.3s ease-in-out;
}
.submission-modal.visible {
	display: flex;
	opacity: 1;
}

.submission-modal-content {
	background-color: #fff;
	padding: 30px 40px;
	border-radius: 8px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
	text-align: center;
	min-width: 300px;
	max-width: 90%;
}

.submission-modal-content p {
	margin: 10px 0 0;
	font-size: 1.1em;
	color: #333;
}

/* Basic Spinner */
.spinner {
	border: 4px solid #f3f3f3; /* Light grey */
	border-top: 4px solid #3498db; /* Blue */
	border-radius: 50%;
	width: 40px;
	height: 40px;
	animation: spin 1s linear infinite;
	margin: 0 auto 15px auto;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

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

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

/* Legal Pages Specific Styling */
.legal-page-container {
	max-width: 800px;
	margin: 40px auto;
	padding: 30px;
	background-color: #fff;
	border-radius: 8px;
	box-shadow: 0 0 15px rgba(0, 0, 0, 0.07);
}
.legal-page-container h1 {
	font-size: 1.5rem;
	margin-bottom: 20px;
}
.legal-page-container h2 {
	margin-top: 30px;
	margin-bottom: 10px;
	font-size: 1.5em;
	color: #283593;
}
.legal-page-container p,
.legal-page-container ul li {
	margin-bottom: 10px;
	color: #444;
}
.legal-page-container ul {
	padding-left: 20px;
	margin-bottom: 15px;
}

/* Responsive Design */
@media (min-width: 768px) {
	h1 {
		font-size: 3.2em;
	}
	h2 {
		font-size: 2.5em;
	}
	section {
		padding: 80px 40px; /* More padding on larger screens */
	}
	.full-width-section > div {
		padding: 0 40px;
	}
	#hero {
		flex-direction: row; /* Side-by-side on tablets and desktops */
		text-align: left;
		padding: 100px 40px;
	}
	#hero .hero-content {
		text-align: left;
	}
	#hero h1 {
		font-size: 3em;
	}

	#services .card {
		width: calc(33.333% - 20px); /* Three cards per row */
	}

	#why-us {
		flex-direction: row; /* Side-by-side for content and image */
	}
	.why-us-content h2,
	.why-us-content .section-subtitle {
		text-align: left;
	}
	#featured-post {
		flex-direction: row;
		gap: 40px;
	}
	.featured-post-content h2 {
		text-align: left;
	}
	.insight-item {
		flex-direction: row;
		align-items: center;
	}
	.insight-item img {
		max-width: 250px; /* Fixed width for image on larger screens */
		margin-right: 20px; /* Space between image and text */
	}
	.insight-text {
		flex: 1;
	}
	.cookie-modal-content {
		flex-direction: row;
		justify-content: space-between;
	}
	.cookie-modal p {
		text-align: left;
		margin-right: 20px; /* Space between text and buttons */
	}
	/* Ensure desktop nav is visible and mobile toggle is hidden */
	.mobile-menu-toggle {
		display: none;
	}
	#main-nav-links {
		display: flex !important; /* Ensure it's flex for desktop */
		flex-direction: row;
		position: static; /* Override mobile absolute positioning */
		background-color: transparent;
		box-shadow: none;
		width: auto; /* Override mobile full width */
		padding: 0;
	}
	#main-nav-links li {
		margin: 0 0 0 25px; /* Reset mobile margins, apply desktop left margin */
	}
	#main-nav-links li a {
		padding: 5px 10px; /* Original padding */
	}
}

@media (max-width: 767px) {
	header nav {
		flex-wrap: wrap; /* Allow items to wrap if needed, though not expected here */
	}
	header nav .logo {
		margin-bottom: 0; /* Reset from previous mobile style */
		order: 1; /* Ensure logo is first */
	}

	.mobile-menu-toggle {
		display: flex; /* Show burger icon */
	}

	header nav ul#main-nav-links {
		display: none; /* Hidden by default */
		flex-direction: column;
		width: 100%; /* Full width of the nav container */
		position: absolute;
		top: 100%; /* Position below the nav bar */
		left: 0;
		background-color: #fff;
		box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
		padding: 10px 0;
		z-index: 1005; /* Below header but above content */
		order: 3; /* Below logo and toggle */
	}

	header nav ul#main-nav-links.mobile-menu-open {
		display: flex; /* Show when toggled */
	}

	header nav ul li {
		margin: 0; /* Reset desktop margins */
		width: 100%;
		text-align: center;
	}
	header nav ul li a {
		display: block;
		padding: 12px 15px; /* Larger clickable area for mobile */
		width: 100%;
		border-bottom: 1px solid #f0f0f0;
	}
	header nav ul li:last-child a {
		border-bottom: none;
	}

	#services .card {
		width: calc(50% - 10px); /* Two cards per row on smaller tablets */
	}
}

@media (max-width: 480px) {
	#services .card {
		width: 100%; /* Single card per row on very small screens */
	}
	.hero-image {
		max-width: 300px;
	}
	#hero h1 {
		font-size: 2em;
	}
	#hero p {
		font-size: 1em;
	}
	.why-us-image-container img {
		max-width: 300px;
		margin: 0 auto;
	}
	#featured-post .featured-post-image-container img {
		max-height: 250px;
	}
}
