:root {
	--primary-color: #4a90e2; /* A vibrant blue for accents */
	--primary-hover-color: #357abd;
	--background-color: #121212; /* Very dark grey (almost black) */
	--surface-color: #1e1e1e; /* Slightly lighter grey for cards, modals */
	--text-color: #e0e0e0; /* Light grey for text */
	--text-secondary-color: #b0b0b0; /* Medium grey for less important text */
	--border-color: #2a2a2a;
	--font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
		Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
		'Segoe UI Symbol';
	--section-padding: 4rem 0;
}

/* Reset and Base Styles */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-family);
	background-color: var(--background-color);
	color: var(--text-color);
	line-height: 1.6;
	font-size: 16px;
}

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

h1,
h2,
h3,
h4 {
	color: var(--text-color);
	margin-bottom: 1rem;
	line-height: 1.3;
}

h1 {
	font-size: 2.8rem;
	font-weight: 700;
}
h2 {
	font-size: 2.2rem;
	font-weight: 600;
}
h3 {
	font-size: 1.6rem;
	font-weight: 500;
}

p {
	margin-bottom: 1rem;
	color: var(--text-secondary-color);
}

a {
	color: var(--primary-color);
	text-decoration: none;
	transition: color 0.3s ease;
}

a:hover {
	color: var(--primary-hover-color);
}

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

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

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

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

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

header .logo:hover {
	color: var(--primary-color);
}

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

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

header ul li a {
	font-weight: 500;
	padding: 0.5rem 0.2rem;
}

.nav-toggle {
	display: none; /* Hidden by default, shown on mobile */
	background: none;
	border: none;
	cursor: pointer;
	padding: 10px;
}

.hamburger {
	display: block;
	width: 25px;
	height: 3px;
	background-color: var(--text-color);
	position: relative;
	transition: background-color 0.3s ease;
}

.hamburger::before,
.hamburger::after {
	content: '';
	position: absolute;
	width: 25px;
	height: 3px;
	background-color: var(--text-color);
	left: 0;
	transition: transform 0.3s ease, top 0.3s ease, bottom 0.3s ease;
}

.hamburger::before {
	top: -8px;
}

.hamburger::after {
	bottom: -8px;
}

/* Open state for hamburger */
.nav-open .hamburger {
	background-color: transparent; /* Middle line disappears */
}

.nav-open .hamburger::before {
	transform: rotate(45deg);
	top: 0;
}

.nav-open .hamburger::after {
	transform: rotate(-45deg);
	bottom: 0;
}

/* Sections */
section {
	padding: var(--section-padding);
	text-align: center;
}

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

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

/* Hero Section */
#hero {
	min-height: 70vh;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	overflow: hidden;
	padding: 6rem 0; /* Increased padding */
}

.hero-content {
	position: relative;
	z-index: 2;
	max-width: 700px;
}

.hero-bg-img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.3; /* Darken the image for text readability */
	z-index: 1;
}

#hero h1 {
	color: #fff; /* Ensure hero title stands out */
	margin-bottom: 1.5rem;
}

#hero p {
	font-size: 1.2rem;
	color: var(--text-color);
	margin-bottom: 2rem;
}

.btn {
	display: inline-block;
	background-color: var(--primary-color);
	color: #fff;
	padding: 12px 25px;
	border-radius: 5px;
	text-decoration: none;
	font-weight: 500;
	transition: background-color 0.3s ease, transform 0.2s ease;
	border: none;
	cursor: pointer;
}

.btn:hover {
	background-color: var(--primary-hover-color);
	color: #fff;
	transform: translateY(-2px);
}

.btn-secondary {
	margin-top: 5px;
	background-color: var(--surface-color);
	color: var(--text-color);
	border: 1px solid var(--primary-color);
}
.btn-secondary:hover {
	background-color: var(--primary-color);
	color: #fff;
}

/* About Section */
#about .about-content {
	display: flex;
	align-items: center;
	gap: 3rem;
	text-align: left;
}

#about .about-text {
	flex: 1;
}

#about .about-image {
	flex-basis: 40%;
	max-width: 400px;
	border-radius: 8px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

.card {
	background-color: var(--surface-color);
	padding: 2rem;
	border-radius: 8px;
	text-align: left;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	display: flex;
	flex-direction: column;
}
.card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.card img {
	width: 100%; /* Adjust as needed */
	height: auto;
	margin-bottom: 1rem;
	/* For dark theme, if icons are light, this is fine. If dark icons, might need filter: invert(1) or similar for contrast */
}

.card h3 {
	margin-bottom: 0.5rem;
}
.card p {
	font-size: 0.95rem;
	flex-grow: 1; /* Pushes link to bottom */
}
.card .card-link {
	display: inline-block;
	margin-top: 1rem;
	font-weight: bold;
}

/* Learn More Page - Approach Section */
#approach .approach-content {
	display: flex;
	align-items: center;
	gap: 3rem;
	text-align: left;
}
#approach .approach-image {
	flex-basis: 40%;
	max-width: 400px;
	border-radius: 8px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
#approach .approach-text {
	flex: 1;
}

/* FAQ Section */
.faq-section {
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}
.faq-item {
	background-color: var(--surface-color);
	margin-bottom: 1rem;
	border-radius: 5px;
	border: 1px solid var(--border-color);
	text-align: left;
}

.faq-question {
	background: none;
	border: none;
	color: var(--text-color);
	width: 100%;
	padding: 1rem 1.5rem;
	font-size: 1.1rem;
	text-align: left;
	cursor: pointer;
	position: relative;
	font-weight: 500;
}

.faq-question::after {
	content: '+';
	position: absolute;
	right: 1.5rem;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.5rem;
	transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
	transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
	box-sizing: content-box;
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}
.faq-answer p {
	margin-bottom: 0;
	font-size: 0.95rem;
}

.faq-item.active .faq-answer {
	max-height: 300px; /* Adjust as needed */
	padding: 0 1.5rem 1rem;
}

/* Contact Section */
#contact .contact-content {
	display: flex;
	gap: 3rem;
	text-align: left;
	margin-top: 2rem;
	align-items: flex-start;
}

.contact-form-container {
	flex: 1.5;
	background-color: var(--surface-color);
	padding: 2rem;
	border-radius: 8px;
}

.contact-details-map {
	flex: 1;
}
.contact-details-map .contact-info h3 {
	margin-top: 1.5rem;
}
.contact-details-map .contact-info h3:first-child {
	margin-top: 0;
}
.contact-details-map .contact-info p {
	font-size: 1rem;
}
.contact-map-image {
	margin-top: 2rem;
	border-radius: 8px;
	width: 100%;
	height: auto;
	max-height: 250px; /* Limit height of this image */
	object-fit: cover;
}

.form-group {
	margin-bottom: 1.5rem;
}

.form-group label {
	display: block;
	margin-bottom: 0.5rem;
	color: var(--text-secondary-color);
	font-weight: 500;
}

.form-group input[type='text'],
.form-group input[type='email'],
.form-group textarea {
	width: 100%;
	padding: 10px;
	border-radius: 5px;
	border: 1px solid var(--border-color);
	background-color: var(--background-color);
	color: var(--text-color);
	font-size: 1rem;
}
.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
		var(--primary-color-translucent, rgba(74, 144, 226, 0.3)); /* Define this color if needed */
}

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

.form-group-checkbox {
	display: flex;
	align-items: center;
	gap: 0.5rem; /* Spacing between checkbox and label */
}

.form-group-checkbox input[type='checkbox'] {
	width: auto; /* Override default width for text inputs */
	accent-color: var(--primary-color); /* Style the checkbox color */
}

.form-group-checkbox label {
	margin-bottom: 0; /* Remove default label margin */
	font-weight: normal; /* Make it less prominent than field labels */
	font-size: 0.9rem;
}

#formSubmissionStatus {
	font-weight: bold;
}
#formSubmissionStatus.success {
	color: #4caf50; /* Green */
}
#formSubmissionStatus.error {
	color: #f44336; /* Red */
}

.form-validation-error {
	color: #f44336; /* Red */
	font-weight: bold;
	font-size: 0.9rem;
	text-align: left; /* Align with form fields */
}

/* Footer */
footer {
	background-color: var(--surface-color);
	color: var(--text-secondary-color);
	padding: 3rem 0 1.5rem;
	border-top: 1px solid var(--border-color);
	text-align: center;
}

.footer-content {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 2rem;
	margin-bottom: 2rem;
	text-align: left;
}

.footer-content h4 {
	color: var(--text-color);
	margin-bottom: 1rem;
}

.footer-content ul {
	list-style: none;
}

.footer-content ul li {
	margin-bottom: 0.5rem;
}

.footer-content ul li a,
.footer-contact p a {
	color: var(--text-secondary-color);
}
.footer-content ul li a:hover,
.footer-contact p a:hover {
	color: var(--primary-color);
}
.footer-contact p {
	font-size: 0.9rem;
	margin-bottom: 0.3rem;
}

.copyright {
	font-size: 0.9rem;
	margin-top: 2rem;
	border-top: 1px solid var(--border-color);
	padding-top: 1.5rem;
}

/* Cookie Consent Modal */
.modal {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: var(--surface-color);
	padding: 1.5rem;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
	z-index: 2000;
	border-top: 1px solid var(--border-color);
}

.modal-content {
	max-width: 800px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
}

.modal-content p {
	margin-bottom: 0;
	flex-grow: 1;
}

.modal-buttons button {
	margin-left: 10px;
}

/* Legal Pages Basic Styling */
.legal-page-container {
	padding: var(--section-padding);
	min-height: 60vh;
}
.legal-page-container h1 {
	font-size: 1.5em;
	margin-bottom: 2rem;
}
.legal-page-container h2 {
	font-size: 1.5em;
	margin-top: 2rem;
	margin-bottom: 1rem;
}
.legal-page-container p,
.legal-page-container ul {
	text-align: left;
	color: var(--text-secondary-color);
	margin-bottom: 1rem;
}
.legal-page-container ul {
	list-style-position: inside;
	padding-left: 1rem;
}

/* Status Modal for Form Submission */
.status-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.7);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 2001;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0s 0.3s linear; /* Delay visibility transition */
}

.status-modal-overlay.visible {
	opacity: 1;
	visibility: visible;
	transition: opacity 0.3s ease, visibility 0s 0s linear;
}

.status-modal-content {
	background-color: var(--surface-color);
	padding: 2rem 2.5rem;
	border-radius: 8px;
	text-align: center;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
	max-width: 400px;
	width: 90%;
}

.status-modal-content p {
	margin-bottom: 0;
	font-size: 1.1rem;
	color: var(--text-color);
}

.loader {
	border: 4px solid var(--border-color);
	border-top: 4px solid var(--primary-color);
	border-radius: 50%;
	width: 40px;
	height: 40px;
	animation: spin 1s linear infinite;
	margin: 0 auto 1rem auto; /* Center it and add space below */
}

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

/* Responsive Adjustments */
@media (max-width: 768px) {
	h1 {
		font-size: 2.2rem;
	}
	h2 {
		font-size: 1.8rem;
	}

	header ul {
		display: none; /* Hide nav links by default */
		flex-direction: column;
		width: 100%;
		position: absolute;
		top: 100%; /* Position below header */
		left: 0;
		background-color: var(--surface-color);
		border-top: 1px solid var(--border-color);
	}
	header.nav-open ul {
		display: flex; /* Show when nav is open */
	}

	header ul li {
		margin: 0;
		text-align: center;
		border-bottom: 1px solid var(--border-color);
	}
	header ul li:last-child {
		border-bottom: none;
	}

	header ul li a {
		display: block;
		padding: 1rem;
	}

	.nav-toggle {
		display: block; /* Show hamburger icon */
	}

	#hero {
		min-height: auto;
		padding: 4rem 0;
	}
	#hero p {
		font-size: 1rem;
	}

	#about .about-content,
	#approach .approach-content {
		flex-direction: column;
		text-align: center;
	}
	#about .about-text,
	#approach .approach-text {
		text-align: center;
	}
	#about .about-image,
	#approach .approach-image {
		margin-top: 2rem;
		max-width: 80%;
	}

	.course-cards {
		grid-template-columns: 1fr; /* Stack cards */
	}

	#contact .contact-content {
		flex-direction: column;
	}
	#contact .contact-details-map {
		margin-top: 2rem;
		text-align: center;
	}
	.contact-map-image {
		max-height: 200px;
		margin-left: auto;
		margin-right: auto;
	}

	.modal-content {
		flex-direction: column;
		text-align: center;
	}
	.modal-buttons {
		margin-top: 1rem;
	}
	.footer-content {
		grid-template-columns: 1fr;
		text-align: center;
	}
	.footer-content div {
		margin-bottom: 1rem;
	}
	.footer-content ul {
		padding-left: 0;
	}
	.status-modal-content {
		padding: 1.5rem;
	}
}
