:root {
	--primary-color: #4caf50; /* Green for finance, growth */
	--secondary-color: #ffc107; /* Amber for call to action, warmth */
	--background-color: #1a1a1a; /* Dark grey */
	--surface-color: #2c2c2c; /* Slightly lighter grey for cards/modals */
	--text-color: #e0e0e0;
	--text-muted-color: #a0a0a0;
	--border-color: #444444;
	--font-family: 'Arial', sans-serif; /* Simple, widely available font */
}

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

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

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

/* Header */
header {
	background-color: var(--surface-color);
	padding: 1rem 0;
	border-bottom: 1px solid var(--border-color);
	position: sticky;
	top: 0;
	z-index: 1000;
}

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

.logo {
	font-size: 1.8rem;
	font-weight: bold;
	color: var(--primary-color);
	text-decoration: none;
}

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

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

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

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

/* Burger Menu */
.burger-menu {
	display: none; /* Hidden by default, shown in media query */
	background: none;
	border: none;
	cursor: pointer;
	padding: 10px;
	z-index: 1001; /* Above nav */
}

.burger-menu span {
	display: block;
	width: 25px;
	height: 3px;
	background-color: var(--text-color);
	margin: 5px 0;
	transition: all 0.3s ease-in-out;
}

/* Sections */
section {
	padding: 60px 0;
	overflow: hidden; /* For animations */
}

.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);
}

.full-height-section {
	min-height: calc(100vh - 80px); /* Adjust 80px based on header height */
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}

#hero {
	background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
		url('../img/hero.webp');
	background-size: cover;
	background-position: center;
	color: #fff;
}

#hero h1 {
	font-size: 3.5rem;
	margin-bottom: 1rem;
	color: #fff; /* Ensure contrast on image */
}

#hero p {
	font-size: 1.3rem;
	margin-bottom: 2rem;
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
	color: #f0f0f0; /* Ensure contrast on image */
}

h1,
h2,
h3,
h4 {
	margin-bottom: 1rem;
	color: var(--primary-color);
}

h1 {
	font-size: 2.8rem;
}
h2 {
	font-size: 2.2rem;
	margin-bottom: 1.5rem;
	text-align: center;
}
h3 {
	font-size: 1.5rem;
}
p {
	margin-bottom: 1rem;
	color: var(--text-color);
}

/* Buttons */
.btn {
	display: inline-block;
	padding: 12px 25px;
	text-decoration: none;
	border-radius: 5px;
	font-weight: bold;
	transition: background-color 0.3s ease, transform 0.2s ease;
	cursor: pointer;
	border: none;
}

.btn-primary {
	background-color: var(--primary-color);
	color: #fff;
}

.btn-primary:hover {
	background-color: #3e8e41; /* Darker green */
	transform: translateY(-2px);
}

.btn-secondary {
	background-color: var(--secondary-color);
	color: #333;
}

.btn-secondary:hover {
	background-color: #e0a800; /* Darker amber */
	transform: translateY(-2px);
}

/* Why Us Section */
#why-us .features-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 30px;
	margin-top: 2rem;
}
#why-us .feature-item {
	background-color: var(--surface-color);
	padding: 20px;
	border-radius: 8px;
	text-align: center;
	border: 1px solid var(--border-color);
}
.feature-icon {
	width: 100%;
	height: auto;
	margin-bottom: 10px;
}

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

.card {
	background-color: var(--surface-color);
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	border: 1px solid var(--border-color);
}

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

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

.card .card-content {
	padding: 20px;
}

.card .card-content h3 {
	margin-top: 0;
	color: var(--secondary-color);
}

/* Text Only Section - Testimonials */
#testimonials {
	background-color: var(
		--surface-color
	); /* Slightly different background for contrast */
}
.text-only-section p {
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}
#testimonials .testimonial-item {
	background-color: var(--background-color);
	padding: 20px;
	border-radius: 8px;
	margin-bottom: 20px;
	border-left: 4px solid var(--primary-color);
}
#testimonials .testimonial-item p {
	font-style: italic;
	color: var(--text-color);
	text-align: left;
}
#testimonials .testimonial-item span {
	display: block;
	text-align: right;
	margin-top: 10px;
	font-weight: bold;
	color: var(--text-muted-color);
}
#testimonials p em {
	font-size: 0.9rem;
	color: var(--text-muted-color);
}

/* Page 2 Specifics */
#course-details img,
#benefits img,
#contact-visual img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	margin-bottom: 1rem;
}

.content-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: center;
}
.content-grid img {
	max-width: 100%;
	border-radius: 8px;
}
.text-content {
	/* styles for text next to image */
}

/* FAQ Section */
#faq .faq-item {
	background-color: var(--surface-color);
	margin-bottom: 15px;
	border-radius: 5px;
	border: 1px solid var(--border-color);
}

#faq .faq-question {
	padding: 15px;
	cursor: pointer;
	font-weight: bold;
	display: flex;
	justify-content: space-between;
	align-items: center;
	color: var(--secondary-color);
}
#faq .faq-question::after {
	content: '+';
	font-size: 1.5rem;
}
#faq .faq-answer {
	padding: 0 15px 15px;
	display: none;
	border-top: 1px solid var(--border-color);
}
#faq .faq-item.active .faq-answer {
	display: block;
}
#faq .faq-item.active .faq-question::after {
	content: '-';
}

/* Contact Form */
#contactForm {
	background-color: var(--surface-color);
	padding: 30px;
	border-radius: 8px;
	max-width: 600px;
	margin: 2rem auto 0 auto;
	border: 1px solid var(--border-color);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

#contactForm label {
	display: block;
	margin-bottom: 8px;
	font-weight: bold;
	color: var(--text-muted-color);
}

#contactForm input[type='text'],
#contactForm input[type='email'],
#contactForm textarea {
	width: 100%;
	padding: 12px;
	border-radius: 5px;
	border: 1px solid var(--border-color);
	background-color: var(--background-color);
	color: var(--text-color);
	font-size: 1rem;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#contactForm input[type='text']::placeholder,
#contactForm input[type='email']::placeholder,
#contactForm textarea::placeholder {
	color: var(--text-muted-color);
	opacity: 0.7;
}

#contactForm input[type='text']:focus,
#contactForm input[type='email']:focus,
#contactForm textarea:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.25);
}

#contactForm textarea {
	resize: vertical;
	min-height: 120px;
}

#contactForm .form-group-checkbox {
	display: flex;
	align-items: flex-start; /* Align items to the start for multi-line labels */
	margin-bottom: 20px;
}

#contactForm .form-group-checkbox input[type='checkbox'] {
	margin-top: 0.3em; /* Adjust vertical alignment with text */
	margin-right: 10px;
	width: auto; /* Override general input width */
	accent-color: var(--primary-color); /* Style the checkbox color */
}

#contactForm .form-group-checkbox .checkbox-label {
	font-weight: normal; /* Override general label bolding if needed */
	color: var(--text-muted-color);
	font-size: 0.9rem;
	cursor: pointer;
	line-height: 1.4; /* Improve readability for multi-line labels */
}

#contactForm textarea:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.25);
}

#contactForm button[type='submit'] {
	width: 100%;
	padding: 12px 20px;
	font-size: 1.1rem;
	margin-top: 10px;
}

#form-message {
	margin-top: 15px;
	padding: 10px;
}

/* Submission Modal */
.submission-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent backdrop */
	display: none; /* Hidden by default */
	justify-content: center;
	align-items: center;
	z-index: 3000; /* Above other content */
	padding: 20px;
}

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

.submission-modal .modal-state p {
	font-size: 1.1rem;
	color: var(--text-color);
	margin-top: 15px;
}

.submission-modal #modalSuccess p {
	color: var(--primary-color); /* Green for success */
}

/* CSS Spinner for loading state */
.spinner {
	width: 50px;
	height: 50px;
	border: 5px solid var(--border-color); /* Light grey */
	border-top: 5px solid var(--primary-color); /* Primary color */
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin: 0 auto;
}

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

/* Footer */
footer {
	background-color: var(--surface-color);
	color: var(--text-muted-color);
	padding: 40px 0 20px;
	border-top: 1px solid var(--border-color);
	margin-top: 40px;
}
.footer-content {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
	margin-bottom: 20px;
}
.footer-col h4 {
	color: var(--text-color);
	margin-bottom: 10px;
	font-size: 1.2rem;
}
.footer-col p,
.footer-col ul {
	font-size: 0.9rem;
	margin-bottom: 5px;
}
.footer-col ul {
	list-style: none;
}
.footer-col ul li a {
	color: var(--text-muted-color);
	text-decoration: none;
	transition: color 0.3s ease;
}
.footer-col ul li a:hover {
	color: var(--primary-color);
}
.copyright {
	text-align: center;
	font-size: 0.9rem;
	margin-top: 20px;
	border-top: 1px solid var(--border-color);
	padding-top: 20px;
}
footer a {
	color: var(--text-muted-color);
}
footer a:hover {
	color: var(--primary-color);
}

/* Cookie Consent Modal */
.cookie-modal {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: rgba(30, 30, 30, 0.95);
	color: var(--text-color);
	padding: 20px;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
	z-index: 2000;
	display: none;
	border-top: 1px solid var(--border-color);
}

.cookie-modal-content {
	max-width: 800px;
	margin: 0 auto;
	text-align: center;
}

.cookie-modal-content h2 {
	color: var(--primary-color);
	margin-top: 0;
}

.cookie-modal-content p {
	margin-bottom: 15px;
	font-size: 0.9rem;
}
.cookie-modal-content a {
	color: var(--secondary-color);
	text-decoration: underline;
}

.cookie-buttons button {
	margin: 0 10px;
}

/* Legal Pages Basic Styling */
.legal-page {
	padding: 40px 0;
}
.legal-page .container {
	background-color: var(--surface-color);
	padding: 30px;
	border-radius: 8px;
}

.legal-page h1 {
	font-size: 1.5rem;
	text-align: center;
	margin-bottom: 30px;
}
.legal-page h2 {
	text-align: left;
	margin-top: 20px;
	margin-bottom: 10px;
	font-size: 1.5rem;
	color: var(--secondary-color);
}
.legal-page p,
.legal-page ul {
	margin-bottom: 15px;
}
.legal-page ul {
	list-style-position: inside;
	padding-left: 20px;
}

/* Responsive Design */
@media (max-width: 992px) {
	.content-grid {
		grid-template-columns: 1fr;
	}
	.content-grid img {
		margin-bottom: 20px;
	}
}

@media (max-width: 768px) {
	h1 {
		font-size: 2.2rem;
	}
	#hero h1 {
		font-size: 2.5rem;
	}
	#hero p {
		font-size: 1.1rem;
	}
	h2 {
		font-size: 1.8rem;
	}

	header .container {
		flex-direction: row; /* Keep logo and burger on same line */
		justify-content: space-between;
		align-items: center;
	}
	.logo {
		margin-bottom: 0;
	} /* Reset margin if any */

	.burger-menu {
		display: block; /* Show burger on mobile */
	}

	nav {
		position: fixed;
		top: 0;
		right: -100%; /* Start off-screen */
		width: 70%;
		max-width: 300px;
		height: 100vh;
		background-color: var(--surface-color);
		border-left: 1px solid var(--border-color);
		box-shadow: -2px 0 5px rgba(0, 0, 0, 0.3);
		transition: right 0.4s ease-in-out;
		padding-top: 80px; /* Space for header or close button if added inside */
		z-index: 1000;
	}

	nav.nav-open {
		right: 0; /* Slide in */
	}

	/* Adjust burger icon when menu is open */
	.burger-menu.active span:nth-child(1) {
		transform: rotate(45deg) translate(5px, 5px);
	}
	.burger-menu.active span:nth-child(2) {
		opacity: 0;
	}
	.burger-menu.active span:nth-child(3) {
		transform: rotate(-45deg) translate(7px, -7px);
	}

	nav ul {
		flex-direction: column;
		align-items: center; /* Center links in mobile menu */
		width: 100%;
		padding-left: 0;
	}
	nav ul li {
		margin-left: 0;
		margin-bottom: 20px; /* Space out mobile links */
		width: 100%;
		text-align: center;
	}
	nav ul li a {
		font-size: 1.2rem; /* Larger text for mobile nav */
		padding: 10px 0;
		display: block; /* Make entire area clickable */
	}

	body.no-scroll {
		overflow: hidden;
	}

	.full-height-section {
		min-height: calc(
			100vh - 70px
		); /* Adjusted for potentially smaller header on mobile */
	}
	.footer-content {
		grid-template-columns: 1fr;
		text-align: center;
	}
	.footer-col ul {
		padding-left: 0;
	}
}

@media (max-width: 480px) {
	.btn {
		padding: 10px 20px;
		font-size: 0.9rem;
	}
	.cards-container {
		grid-template-columns: 1fr;
	}
	.cookie-modal-content {
		text-align: left;
	}
	.cookie-buttons {
		text-align: center;
	}
	.cookie-buttons button {
		display: block;
		width: 80%;
		margin: 10px auto;
	}
}
