:root {
	--primary-bg: #1a1a1a; /* Dark background */
	--secondary-bg: #2c2c2c; /* Slightly lighter background for elements */
	--text-color: #f0f0f0; /* Light text */
	--accent-color: #007bff; /* Bright blue for accents */
	--accent-hover-color: #0056b3; /* Darker blue for hover */
	--card-bg: #333333;
	--border-color: #444444;
	--font-family: 'Roboto', sans-serif;
}

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

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-family);
	background-color: var(--primary-bg);
	color: var(--text-color);
	line-height: 1.6;
}

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

/* Header & Navbar */
.main-header {
	background-color: var(--secondary-bg);
	padding: 1rem 0;
	position: fixed;
	width: 100%;
	top: 0;
	z-index: 1000;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.navbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 90%;
	max-width: 1200px;
	margin: 0 auto;
}

.logo {
	height: 40px;
	display: flex;
	align-items: center;
}

#logo-img {
	height: 40px;
	width: auto;
}

.nav-links {
	list-style: none;
	display: flex;
}

.nav-links li {
	margin-left: 25px;
}

.nav-links a {
	text-decoration: none;
	color: var(--text-color);
	font-weight: 400;
	transition: color 0.3s ease;
}

.nav-links a:hover {
	color: var(--accent-color);
}

/* Burger Menu Icon */
.burger-menu {
	display: none; /* Hidden by default, shown in media query */
	cursor: pointer;
	flex-direction: column;
	justify-content: space-around;
	width: 30px;
	height: 25px;
	padding: 5px 0; /* Add some padding to make it easier to tap */
}

.burger-menu span {
	width: 100%;
	height: 3px;
	background-color: var(--text-color);
	border-radius: 2px;
	transition: all 0.3s ease-in-out;
}

/* Burger animation to X */
.burger-menu.active span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}
.burger-menu.active span:nth-child(2) {
	opacity: 0;
}
.burger-menu.active span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* Hero Section */
.hero-section {
	height: 100vh;
	background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
		url('../img/hero-background.png');
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: #fff;
	padding: 0 20px;
	margin-top: 60px; /* Adjust based on header height - This should be consistent now */
}

.hero-content h1 {
	font-size: 3.5rem;
	margin-bottom: 1rem;
	font-weight: 700;
}

.hero-content p {
	font-size: 1.5rem;
	margin-bottom: 2rem;
	font-weight: 300;
}

.cta-button {
	background-color: var(--accent-color);
	color: #fff;
	padding: 15px 30px;
	text-decoration: none;
	font-size: 1.1rem;
	border-radius: 5px;
	transition: background-color 0.3s ease;
	border: none;
	cursor: pointer;
}

.cta-button:hover {
	background-color: var(--accent-hover-color);
}

.cta-button-small {
	background-color: var(--accent-color);
	color: #fff;
	padding: 10px 20px;
	text-decoration: none;
	font-size: 0.9rem;
	border-radius: 5px;
	transition: background-color 0.3s ease;
	display: inline-block;
	margin-top: 10px;
}

.cta-button-small:hover {
	background-color: var(--accent-hover-color);
}

/* Content Sections */
.content-section {
	padding: 80px 0;
	opacity: 0;
	transform: scale(0.95);
	transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

.content-section h2 {
	font-size: 2.8rem;
	text-align: center;
	margin-bottom: 1.5rem;
	color: var(--accent-color);
	font-weight: 700;
}
.content-section > .container > p {
	/* Targeting direct paragraph children of container for intros */
	text-align: center;
	font-size: 1.1rem;
	margin-bottom: 3rem;
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
}

/* About Us Section */
.about-content {
	display: flex;
	align-items: center;
	gap: 40px;
}

.about-text {
	flex: 1;
}
.about-text p {
	margin-bottom: 1rem;
	font-size: 1.05rem;
}

.about-image {
	flex: 1;
	text-align: center;
}

.about-image img {
	width: 100%;
	max-width: 450px;
	height: auto;
	border-radius: 8px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

.course-card {
	background-color: var(--card-bg);
	padding: 25px;
	border-radius: 8px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
	display: flex;
	flex-direction: column;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.course-card img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	border-radius: 6px;
	margin-bottom: 15px;
}

.course-card h3 {
	font-size: 1.5rem;
	margin-bottom: 10px;
	color: var(--text-color);
}

.course-card p {
	font-size: 0.95rem;
	margin-bottom: 15px;
	flex-grow: 1;
}

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

.faq-question {
	background: none;
	border: none;
	color: var(--text-color);
	width: 100%;
	text-align: left;
	padding: 15px 20px;
	font-size: 1.1rem;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.faq-question::after {
	content: '+';
	font-size: 1.5rem;
	transition: transform 0.3s ease;
}

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

.faq-answer {
	padding: 0 20px;
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}
.faq-answer p {
	padding-bottom: 15px; /* Add padding only when open */
}

.faq-answer a {
	color: var(--accent-color);
	text-decoration: none;
}
.faq-answer a:hover {
	text-decoration: underline;
}

/* Contact Section */
.contact-content {
	display: flex;
	gap: 40px;
	margin-top: 2rem;
}

.contact-form-container {
	flex: 1.5; /* Give form more space */
	background-color: var(--secondary-bg);
	padding: 30px;
	border-radius: 8px;
}

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

.form-group label {
	display: block;
	margin-bottom: 5px;
	font-weight: bold;
}

.form-group input,
.form-group textarea {
	width: 100%;
	padding: 12px;
	border-radius: 5px;
	border: 1px solid var(--border-color);
	background-color: var(--primary-bg);
	color: var(--text-color);
	font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
	outline: none;
	border-color: var(--accent-color);
	box-shadow: 0 0 0 2px var(--accent-color-translucent, rgba(0, 123, 255, 0.25));
}

.form-group textarea:focus {
	outline: none;
	border-color: var(--accent-color);
	box-shadow: 0 0 0 2px var(--accent-color-translucent, rgba(0, 123, 255, 0.25));
}

.form-group-checkbox {
	display: flex;
	align-items: flex-start; /* Align items to the start for multi-line labels */
	gap: 10px; /* Space between checkbox and label */
}

.form-group-checkbox input[type='checkbox'] {
	width: auto; /* Override default width for inputs */
	margin-top: 5px; /* Align checkbox with the first line of text */
	accent-color: var(--accent-color); /* Style the checkbox color */
	cursor: pointer;
}

.form-group-checkbox .checkbox-label {
	font-weight: normal; /* Reset bold from general label style */
	font-size: 0.9rem;
	color: var(--text-color);
	cursor: pointer;
	line-height: 1.4;
}

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

.contact-details {
	flex: 1;
	background-color: var(--secondary-bg);
	padding: 30px;
	border-radius: 8px;
}
.contact-details .contact-image-mascot {
	width: 100%;
	height: auto;
	display: block;
	margin: 0 auto 20px auto;
}

.contact-details h3 {
	font-size: 1.4rem;
	color: var(--accent-color);
	margin-bottom: 15px;
}

.contact-details p {
	margin-bottom: 10px;
	font-size: 1rem;
}

.contact-details a {
	color: var(--accent-color);
	text-decoration: none;
}

.contact-details a:hover {
	text-decoration: underline;
}

/* Footer */
.main-footer {
	background-color: var(--secondary-bg);
	color: #aaa;
	text-align: center;
	padding: 30px 0;
	margin-top: 40px; /* Ensure some space before footer */
	border-top: 1px solid var(--border-color);
}

.footer-links {
	list-style: none;
	padding: 0;
	margin-top: 10px;
}

.footer-links li {
	display: inline;
	margin: 0 10px;
}

.footer-links a {
	color: #aaa;
	text-decoration: none;
	font-size: 0.9rem;
}

.footer-links a:hover {
	color: var(--accent-color);
}

.footer-contact-info {
	margin-top: 15px;
	font-size: 0.85rem;
	color: #aaa; /* Same as footer links for consistency */
}

.footer-contact-info p {
	margin-bottom: 5px;
}

.footer-contact-info a {
	color: #aaa; /* Match paragraph color */
	text-decoration: none;
}

.footer-contact-info a:hover {
	color: var(--accent-color); /* Highlight on hover */
	text-decoration: underline;
}

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

.cookie-modal-content {
	max-width: 800px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}
.cookie-modal-content p {
	margin: 0;
	font-size: 0.95rem;
}
.cookie-modal-content a {
	color: var(--accent-color);
	text-decoration: underline;
}

.cookie-modal-content button {
	padding: 10px 18px;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	font-weight: bold;
	transition: background-color 0.3s ease;
}

#cookie-accept-btn {
	background-color: var(--accent-color);
	color: #fff;
}
#cookie-accept-btn:hover {
	background-color: var(--accent-hover-color);
}

#cookie-reject-btn {
	background-color: var(--card-bg);
	color: var(--text-color);
	border: 1px solid var(--border-color);
}
#cookie-reject-btn:hover {
	background-color: #555;
}

/* Submission Modal */
.submission-modal {
	display: none; /* Hidden by default */
	position: fixed;
	z-index: 2001; /* Above cookie modal */
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0, 0, 0, 0.7); /* Dim background */
	align-items: center;
	justify-content: center;
}

.submission-modal-content {
	background-color: var(--secondary-bg);
	margin: auto;
	padding: 30px 40px;
	border: 1px solid var(--border-color);
	width: 90%;
	max-width: 450px;
	text-align: center;
	border-radius: 8px;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

#submission-modal-text {
	font-size: 1.2rem;
	color: var(--text-color);
	margin-top: 10px; /* Space from spinner or top if spinner is hidden */
}

.spinner {
	border: 4px solid rgba(240, 240, 240, 0.3); /* Light grey border */
	border-radius: 50%;
	border-top: 4px solid var(--accent-color); /* Blue accent for spinning part */
	width: 40px;
	height: 40px;
	animation: spin 1s linear infinite;
	margin: 0 auto 15px auto; /* Centered with bottom margin */
}

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

/* Responsive Design */
@media (max-width: 992px) {
	.hero-content h1 {
		font-size: 2.8rem;
	}
	.hero-content p {
		font-size: 1.3rem;
	}
	.content-section h2 {
		font-size: 2.2rem;
	}
	.about-content,
	.contact-content {
		flex-direction: column;
	}
	.about-image {
		margin-top: 30px;
	}
}

@media (max-width: 768px) {
	.navbar {
		position: relative; /* For absolute positioning of nav-links */
	}

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

	.nav-links {
		display: none; /* Hide by default, toggled by JS */
		flex-direction: column;
		position: absolute;
		top: 100%; /* Position below the header (main-header's bottom) */
		left: 0;
		width: 100%;
		background-color: var(--secondary-bg);
		box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
		z-index: 999; /* Below main-header (1000) but above content */
		border-top: 1px solid var(--border-color);
		padding-bottom: 10px; /* Add some padding at the bottom */
	}

	.nav-links.active {
		display: flex; /* Show when active */
	}

	.nav-links li {
		margin-left: 0;
		width: 100%;
		text-align: center;
	}
	.nav-links li a {
		display: block;
		padding: 0.8rem 1rem; /* Adjust padding for touch targets */
		border-bottom: 1px solid var(--border-color);
	}
	.nav-links li:last-child a {
		border-bottom: none;
	}

	.hero-section {
		/* margin-top: 100px; */ /* Removed: header height should be consistent now approx 60px */
		/* The default margin-top: 60px; from .hero-section will apply */
	}

	.hero-content h1 {
		font-size: 2.2rem;
	}
	.hero-content p {
		font-size: 1.1rem;
	}
	.cta-button {
		padding: 12px 25px;
		font-size: 1rem;
	}
	.courses-grid {
		grid-template-columns: 1fr; /* Stack cards on smaller screens */
	}
	.contact-content {
		flex-direction: column;
	}
	.contact-form-container,
	.contact-details {
		width: 100%;
	}
	.cookie-modal-content {
		flex-direction: column;
		text-align: center;
		gap: 0;
	}
	.cookie-modal-content button {
		margin-top: 10px;
	}
}

@media (max-width: 480px) {
	.logo {
		font-size: 1.5rem;
	}
	.nav-links a {
		font-size: 0.9rem;
	}
	.hero-content h1 {
		font-size: 1.8rem;
	}
	.hero-content p {
		font-size: 1rem;
	}
	.content-section h2 {
		font-size: 1.8rem;
	}
	.content-section > .container > p {
		font-size: 1rem;
	}
	.faq-question {
		font-size: 1rem;
	}
}
