:root {
	--primary-bg: #1a1a1a; /* Darker gray */
	--secondary-bg: #2c2c2c; /* Lighter gray for cards/sections */
	--text-color: #e0e0e0;
	--primary-accent: #007bff; /* Blue accent */
	--secondary-accent: #00bcd4; /* Cyan accent for highlights */
	--header-bg: #111111; /* Very dark for header */
	--footer-bg: #111111;
	--font-family: 'Roboto', sans-serif;
}

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

h1,
h2,
h3 {
	color: #ffffff;
	margin-top: 0;
}

h1 {
	font-size: 2.8rem;
	margin-bottom: 0.5em;
}

h2 {
	font-size: 2rem;
	margin-bottom: 0.75em;
	border-bottom: 2px solid var(--primary-accent);
	padding-bottom: 0.3em;
	display: inline-block;
}

h3 {
	font-size: 1.5rem;
	margin-bottom: 0.5em;
}

p {
	margin-bottom: 1em;
}

a {
	color: var(--secondary-accent);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

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

nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	position: relative; /* For mobile menu positioning */
}

nav .logo {
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	font-size: 1.2rem;
	font-weight: bold;
	color: #ffffff;
}
nav .logo:hover {
	text-decoration: none;
}

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

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

nav ul li {
	margin-left: 2rem;
}

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

nav ul li a:hover {
	color: var(--primary-accent);
	text-decoration: none;
}

/* Burger Menu */
.burger-menu {
	display: none; /* Hidden by default, shown on mobile */
	background: none;
	border: none;
	color: var(--text-color);
	font-size: 1.8rem;
	cursor: pointer;
	padding: 0.5rem;
}
.burger-menu:focus {
	outline: 2px solid var(--primary-accent);
	outline-offset: 2px;
}

/* Main Content Sections */
main {
	padding-top: 80px; /* Adjust based on header height */
}

.content-section,
.hero-section,
.form-section,
.faq-section,
.courses-grid-section {
	padding: 60px 5%;
	opacity: 0;
	transform: scale(0.95);
	transition: opacity 0.8s ease-out, transform 0.8s ease-out;
	margin-bottom: 20px; /* Space between sections */
	background-color: var(--secondary-bg);
	border-radius: 8px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.content-section:nth-child(odd) {
	background-color: var(--primary-bg); /* Alternate background for depth */
}

.content-section.active,
.hero-section.active,
.form-section.active,
.faq-section.active,
.courses-grid-section.active {
	opacity: 1;
	transform: scale(1);
}

.section-container {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	gap: 40px;
	align-items: center;
}

.content-section .section-container.reverse {
	flex-direction: row-reverse;
}

.text-content {
	flex: 1;
}

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

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

.text-only-section .section-container {
	display: block; /* For single column text */
}
.text-only-section p {
	font-size: 1.1rem;
	max-width: 900px; /* Improved readability for text-only sections */
	margin-left: auto;
	margin-right: auto;
}

.emoji-section .emoji {
	font-size: 3rem;
	display: inline-block;
	margin-left: 10px;
	vertical-align: middle;
}

/* Hero Section */
.hero-section {
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	color: #fff;
	text-align: center;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	position: relative; /* For pseudo-element overlay */
	background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
		url('../img/hero.webp');
}

.full-height-section {
	min-height: calc(100vh - 80px); /* 80px for header height */
	box-sizing: border-box;
}

.hero-content {
	max-width: 800px;
	z-index: 1; /* Ensure text is above overlay */
}

.cta-button {
	display: inline-block;
	background-color: var(--primary-accent);
	color: #fff;
	padding: 15px 30px;
	font-size: 1.2rem;
	border-radius: 5px;
	text-decoration: none;
	transition: background-color 0.3s ease, transform 0.2s ease;
	margin-top: 20px;
	border: none;
	cursor: pointer;
}

.cta-button:hover {
	background-color: var(--secondary-accent);
	transform: translateY(-2px);
	text-decoration: none;
}

/* Footer */
footer {
	background-color: var(--footer-bg);
	color: var(--text-color);
	padding: 40px 5%;
	text-align: center;
}

.footer-content {
	display: flex;
	justify-content: space-around;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 30px;
	margin-bottom: 30px;
	text-align: left;
}

.contact-info,
.footer-links,
.footer-navigation {
	flex: 1;
	min-width: 230px; /* Adjusted slightly to better fit 3 columns */
}

.footer-links ul,
.footer-navigation ul {
	list-style: none;
	padding: 0;
}

.footer-links ul li a,
.footer-navigation ul li a {
	color: var(--text-color);
	display: block;
	margin-bottom: 0.5em;
}
.footer-links ul li a:hover,
.footer-navigation ul li a:hover {
	color: var(--primary-accent);
}

.copyright {
	border-top: 1px solid #444;
	padding-top: 20px;
	font-size: 0.9rem;
}

/* Cookie Consent Banner */
.cookie-consent-banner {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: var(--secondary-bg);
	color: var(--text-color);
	padding: 15px;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
	z-index: 2000;
	display: flex;
	justify-content: space-between;
	align-items: center;
	box-sizing: border-box;
}
.cookie-consent-banner.hidden {
	display: none;
}
.cookie-consent-banner p {
	margin: 0;
	margin-right: 20px;
	font-size: 0.9rem;
}
.cookie-consent-banner p a {
	color: var(--secondary-accent);
	text-decoration: underline;
}
.cookie-consent-banner div {
	display: flex;
	gap: 10px;
}
.cookie-consent-banner button {
	padding: 8px 15px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-weight: bold;
}
#cookie-accept-btn {
	background-color: var(--primary-accent);
	color: #fff;
}
#cookie-decline-btn {
	background-color: #555;
	color: var(--text-color);
}

/* Course Cards */
.courses-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
}

.course-card {
	background-color: #333; /* Slightly lighter than section bg */
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	display: flex;
	flex-direction: column;
}

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

.course-card-image-placeholder {
	width: 100%;
	height: auto;
	background-color: #444; /* Placeholder color */
	display: flex;
	justify-content: center;
	align-items: center;
}
.course-card-image-placeholder img {
	width: 100%;
	height: auto;
}

.course-card-content {
	padding: 20px;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

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

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

/* FAQ Section */
.faq-item summary {
	font-weight: bold;
	padding: 15px;
	background-color: #333;
	cursor: pointer;
	border-radius: 5px;
	margin-bottom: 5px;
	list-style: none; /* Remove default marker */
	position: relative;
	transition: background-color 0.3s ease;
}
.faq-item summary:hover {
	background-color: #404040;
}

.faq-item summary::-webkit-details-marker {
	display: none; /* Chrome/Safari */
}

.faq-item summary::after {
	/* Custom marker */
	content: '+';
	position: absolute;
	right: 20px;
	font-size: 1.5em;
	transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
	transform: rotate(45deg);
}

.faq-item div {
	/* Content of details */
	padding: 15px;
	background-color: var(--secondary-bg);
	border-radius: 0 0 5px 5px;
	margin-bottom: 10px;
	border-left: 3px solid var(--primary-accent);
}

/* Form Section */
.form-section {
	background-color: var(--secondary-bg);
}
.contact-form {
	max-width: 700px;
	margin: 0 auto;
	padding: 30px;
	background-color: #333;
	border-radius: 8px;
}
.contact-form h2 {
	text-align: center;
	margin-bottom: 30px;
}
.form-group {
	margin-bottom: 20px;
}
.form-group label {
	display: block;
	margin-bottom: 8px;
	font-weight: bold;
}
.form-group input[type='text'],
.form-group input[type='email'],
.form-group textarea {
	width: calc(100% - 20px);
	padding: 12px;
	border-radius: 4px;
	border: 1px solid #555;
	background-color: #444;
	color: var(--text-color);
	font-size: 1rem;
}
.form-group textarea {
	min-height: 120px;
	resize: vertical;
}
.form-group input[type='text']:focus,
.form-group input[type='email']:focus,
.form-group textarea:focus {
	outline: none;
	border-color: var(--primary-accent);
	box-shadow: 0 0 5px var(--primary-accent);
}
.form-group-checkbox {
	display: flex;
	align-items: center;
	margin-bottom: 20px;
}
.form-group-checkbox input[type='checkbox'] {
	width: auto; /* Override default width for inputs */
	margin-right: 10px;
	accent-color: var(--primary-accent); /* Style the checkbox color */
}
.form-group-checkbox .checkbox-label {
	font-weight: normal; /* Override label bold style if needed */
	margin-bottom: 0; /* Remove default margin for labels */
	font-size: 0.9rem;
	color: var(--text-color);
}
#form-message {
	margin-top: 15px;
	text-align: center;
	font-weight: bold;
}

/* Modal Styles */
.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: 3000; /* Ensure it's above everything */
}
.modal-overlay.hidden {
	display: none;
}
.modal-content {
	background-color: var(--secondary-bg); /* Or #333 like form background */
	padding: 30px 40px;
	border-radius: 8px;
	text-align: center;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
	color: var(--text-color);
}
.modal-content p {
	margin-top: 20px; /* Space between spinner and text */
	font-size: 1.1rem;
}

/* Simple CSS Spinner */
.spinner {
	border: 6px solid #555; /* Darker shade for spinner track */
	border-top: 6px solid var(--primary-accent); /* Accent color for spinner active part */
	border-radius: 50%;
	width: 50px;
	height: 50px;
	animation: spin 1s linear infinite;
	margin: 0 auto; /* Center spinner */
}

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

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

	.section-container {
		flex-direction: column;
	}
	.content-section .section-container.reverse {
		flex-direction: column; /* Stack normally on mobile */
	}
	.image-content {
		margin-top: 20px;
	}
}

@media (max-width: 768px) {
	nav {
		flex-direction: row; /* Keep logo and burger on one line */
		justify-content: space-between;
		align-items: center;
	}

	.burger-menu {
		display: block; /* Show burger */
		order: 1; /* Ensure burger is on the right */
	}

	nav .logo {
		order: 0; /* Logo on the left */
	}

	nav ul {
		display: none; /* Hide normal nav links */
		flex-direction: column;
		position: absolute;
		top: 100%; /* Position below the header */
		left: 0;
		width: 100%;
		background-color: var(--header-bg); /* Same as header background */
		box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
		padding: 1rem 0; /* Add some padding */
		z-index: 999; /* Ensure it's above main content but below header */
	}

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

	nav ul li {
		margin-left: 0;
		margin-bottom: 0;
		width: 100%;
		text-align: center;
	}

	nav ul li a {
		display: block;
		padding: 1rem 0;
		border-bottom: 1px solid #333; /* Separator for links */
		width: 100%;
	}
	nav ul li:last-child a {
		border-bottom: none;
	}

	main {
		padding-top: 80px; /* Keep original padding top as header height doesn't change */
	}
	.full-height-section {
		min-height: calc(100vh - 80px);
	}

	.footer-content {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
	.contact-info,
	.footer-links,
	.footer-navigation {
		min-width: auto; /* Reset min-width for stacked layout */
		width: 100%;
		text-align: center;
	}
	.footer-links ul,
	.footer-navigation ul {
		padding-left: 0;
	}
	.cookie-consent-banner {
		flex-direction: column;
		text-align: center;
	}
	.cookie-consent-banner p {
		margin-bottom: 10px;
		margin-right: 0;
	}
}

@media (max-width: 480px) {
	h1 {
		font-size: 1.8rem;
	}
	h2 {
		font-size: 1.5rem;
	}
	.cta-button {
		padding: 12px 25px;
		font-size: 1rem;
	}
	.content-section,
	.hero-section,
	.form-section,
	.faq-section,
	.courses-grid-section {
		padding: 40px 3%;
	}
	main {
		padding-top: 80px; /* Keep original padding top as header height doesn't change */
	}
	.full-height-section {
		min-height: calc(100vh - 80px);
	}
}
