/* Global Styles */
:root {
	--primary-color: #4caf50;
	--primary-hover-color: #45a049;
	--secondary-color: #ffc107;
	--background-color: #121212;
	--surface-color: #1e1e1e;
	--on-background-color: #e0e0e0;
	--on-surface-color: #cccccc;
	--border-color: #333333;
	--font-family: 'Roboto', sans-serif;
	--header-font-family: 'Montserrat', sans-serif;
	--error-color: #f44336; /* For error messages */
}

*,
*::before,
*::after {
	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(--on-background-color);
	line-height: 1.6;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	overflow-x: hidden;
}

main {
	flex-grow: 1;
	width: 100%;
}

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

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

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

h1,
h2,
h3,
h4 {
	font-family: var(--header-font-family);
	color: var(--on-background-color);
	margin-bottom: 0.75em;
}

h1 {
	font-size: 2.8rem;
	font-weight: 700;
}

h2 {
	font-size: 2.2rem;
	font-weight: 600;
	text-align: center;
	margin-bottom: 1.5em;
}

h3 {
	font-size: 1.5rem;
	font-weight: 500;
}

h4 {
	font-size: 1.2rem;
	font-weight: 500;
}

p {
	margin-bottom: 1em;
	color: var(--on-surface-color);
}

ul {
	list-style-position: inside;
	margin-bottom: 1em;
}

li {
	margin-bottom: 0.5em;
}

/* Header & Navigation */
header {
	background-color: var(--surface-color);
	padding: 1rem 5%;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
	position: sticky;
	top: 0;
	z-index: 1000;
	width: 100%;
}

nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	max-width: 1200px;
	margin: 0 auto;
	position: relative;
}

.logo {
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	font-family: var(--header-font-family);
	font-size: 1rem;
	font-weight: bold;
	color: var(--primary-color);
	text-decoration: none;
	z-index: 1101;
}
.logo:hover {
	color: var(--primary-hover-color);
	text-decoration: none;
}

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

nav ul#main-navigation-list {
	list-style: none;
	display: flex;
	gap: 2rem;
	margin: 0;
	padding: 0;
}

nav ul#main-navigation-list li a {
	font-family: var(--header-font-family);
	color: var(--on-background-color);
	font-weight: 500;
	padding: 0.5rem 0;
	position: relative;
	text-decoration: none;
	display: inline-block;
}

nav ul#main-navigation-list li a::after {
	content: '';
	position: absolute;
	width: 0;
	height: 2px;
	bottom: 0;
	left: 0;
	background-color: var(--primary-color);
	transition: width 0.3s ease;
}

nav ul#main-navigation-list li a:hover::after,
nav ul#main-navigation-list li a.active::after {
	width: 100%;
}

/* Burger Menu Icon */
.burger-menu {
	display: none;
	flex-direction: column;
	justify-content: space-around;
	width: 30px;
	height: 25px;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 0;
	z-index: 1101;
}

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

/* Burger Menu Active State (X icon) */
.burger-menu.burger-active span:nth-child(1) {
	transform: translateY(8px) rotate(45deg);
}
.burger-menu.burger-active span:nth-child(2) {
	opacity: 0;
}
.burger-menu.burger-active span:nth-child(3) {
	transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
#hero {
	min-height: 100vh;
	background: url('../img/hero-background.png') no-repeat center center/cover;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 2rem;
	position: relative;
}

#hero::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.6);
	z-index: 1;
}

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

.hero-content h1 {
	color: #fff;
	font-size: 3.5rem;
	margin-bottom: 0.5em;
}

.hero-content p {
	color: #e0e0e0;
	font-size: 1.2rem;
	margin-bottom: 1.5em;
}

.cta-button {
	display: inline-block;
	background-color: var(--primary-color);
	color: #ffffff;
	padding: 0.8rem 2rem;
	font-size: 1.1rem;
	font-weight: bold;
	text-decoration: none;
	border-radius: 5px;
	transition: background-color 0.3s ease, transform 0.2s ease;
	border: none;
	cursor: pointer;
}

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

.cta-button-small {
	display: inline-block;
	background-color: var(--secondary-color);
	color: var(--background-color);
	padding: 0.6rem 1.2rem;
	font-size: 0.9rem;
	font-weight: bold;
	text-decoration: none;
	border-radius: 4px;
	transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button-small:hover {
	background-color: #ffca28;
	transform: translateY(-1px);
	text-decoration: none;
	color: var(--background-color);
}

/* Content Sections */
.content-section {
	padding: 4rem 5%;
	max-width: 1100px;
	margin: 0 auto;
}

#intro h2,
#core-principles h2,
#testimonials h2,
#faq h2,
#contact h2,
#courses-overview h2,
#journey-start h2 {
	margin-bottom: 2rem;
}
#intro p,
#core-principles p {
	font-size: 1.1rem;
	text-align: justify;
}

/* Cards (Core Principles) */
.cards-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 2rem;
	margin-top: 2rem;
}

.card {
	background-color: var(--surface-color);
	padding: 2rem;
	border-radius: 8px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
	text-align: center;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card img {
	width: 80px;
	height: 80px;
	margin: 0 auto 1rem auto;
	filter: invert(70%) sepia(80%) saturate(500%) hue-rotate(80deg);
}

.card h3 {
	color: var(--primary-color);
	margin-bottom: 0.5em;
}

/* Page 2: Courses Overview & List */
.page-hero {
	text-align: center;
	padding-top: 3rem;
	padding-bottom: 3rem;
	background-color: var(--surface-color);
}
.page-hero h2 {
	font-size: 2.5rem;
}
.page-hero p {
	font-size: 1.1rem;
	max-width: 700px;
	margin: 0 auto;
}

#course-list {
	display: flex;
	flex-direction: column;
	gap: 2.5rem;
}

.course-item {
	display: flex;
	gap: 2rem;
	background-color: var(--surface-color);
	padding: 1.5rem;
	border-radius: 8px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
	align-items: center;
}

.course-item img {
	width: 200px;
	height: 150px;
	object-fit: cover;
	border-radius: 6px;
	flex-shrink: 0;
}

.course-details h3 {
	color: var(--secondary-color);
}

/* Testimonials */
#testimonials {
	background-color: var(--surface-color);
}
.testimonial-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 1.5rem;
}

.testimonial {
	background-color: var(--background-color);
	padding: 1.5rem;
	border-radius: 6px;
	border-left: 4px solid var(--primary-color);
}

.testimonial p {
	font-style: italic;
	margin-bottom: 1rem;
}

.testimonial h4 {
	text-align: right;
	color: var(--primary-color);
}

/* Page 3: Resources & Contact */
#journey-start {
	background-color: var(--surface-color);
}
.journey-content {
	display: flex;
	align-items: center;
	gap: 2rem;
}
.journey-image {
	width: 250px;
	height: auto;
	border-radius: 8px;
	flex-shrink: 0;
}
.inline-form {
	display: flex;
	gap: 0.5rem;
	margin-top: 1rem;
	position: relative; /* For feedback message positioning if needed inside */
}
.inline-form input[type='email'] {
	flex-grow: 1;
	padding: 0.75rem;
	border: 1px solid var(--border-color);
	border-radius: 4px;
	background-color: var(--background-color);
	color: var(--on-background-color);
}
.inline-form button {
	padding: 0.75rem 1.5rem;
}

/* Form Feedback Messages (General) */
.form-feedback,
.newsletter-feedback,
.contact-form-feedback {
	font-size: 0.9rem;
	margin-top: 1rem;
	padding: 0.5rem;
	border-radius: 4px;
	text-align: left;
}
.form-feedback.success,
.newsletter-feedback.success,
.contact-form-feedback.success {
	color: var(--primary-color);
	background-color: rgba(76, 175, 80, 0.1); /* Light green background */
	border: 1px solid var(--primary-color);
}
.form-feedback.error,
.newsletter-feedback.error,
.contact-form-feedback.error {
	color: var(--error-color);
	background-color: rgba(244, 67, 54, 0.1); /* Light red background */
	border: 1px solid var(--error-color);
}
.consent-error-message {
	margin-bottom: 1rem; /* Ensure it's clearly visible before the button */
}

/* FAQ */
.faq-list {
	max-width: 800px;
	margin: 0 auto;
}
.faq-item {
	background-color: var(--surface-color);
	margin-bottom: 1rem;
	border-radius: 5px;
	overflow: hidden;
}
.faq-item dt {
	padding: 1rem 1.5rem;
	font-weight: bold;
	cursor: pointer;
	background-color: var(--primary-color);
	color: #fff;
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.faq-item dt::after {
	content: '▼';
	font-size: 0.8em;
	transition: transform 0.3s ease;
}
.faq-item.active dt::after {
	transform: rotate(180deg);
}
.faq-item dd {
	padding: 0 1.5rem;
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}
.faq-item.active dd {
	padding: 1.5rem;
	max-height: 500px;
}
.faq-item dd p {
	margin-bottom: 0;
}

/* Contact Form */
#contact {
	padding-bottom: 5rem;
}
.contact-container {
	display: flex;
	gap: 3rem;
	background-color: var(--surface-color);
	padding: 2.5rem;
	border-radius: 8px;
}
.contact-form-section {
	flex: 2;
	position: relative; /* For feedback message positioning if needed inside */
}
.contact-details-section {
	flex: 1;
}
.contact-details-section h3 {
	color: var(--secondary-color);
	margin-bottom: 1rem;
}
.contact-details-section p {
	font-size: 0.95rem;
}
.contact-section-image {
	width: 100%;
	max-width: 300px;
	border-radius: 6px;
	margin-bottom: 1.5rem;
}

#contactForm div {
	margin-bottom: 1.5rem;
}
#contactForm label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: bold;
	color: var(--on-surface-color);
}
#contactForm input[type='text'],
#contactForm input[type='email'],
#contactForm textarea {
	width: 100%;
	padding: 0.75rem;
	border: 1px solid var(--border-color);
	border-radius: 4px;
	background-color: var(--background-color);
	color: var(--on-background-color);
	font-family: var(--font-family);
}
#contactForm textarea {
	min-height: 120px;
	resize: vertical;
}
#contactForm button {
	width: auto;
}

/* Checkbox styling in contact form */
.checkbox-container {
	display: flex;
	align-items: center;
	margin-bottom: 1.5rem; /* Default, can be overridden if consent error is shown */
	position: relative;
}

#contactForm .checkbox-label {
	margin-bottom: 0; /* Override default label margin */
	margin-left: 0.5rem;
	font-weight: normal; /* Make it less prominent than field labels */
	color: var(--on-surface-color);
	font-size: 0.9rem;
}

#contactForm input[type='checkbox'] {
	width: auto; /* Override full width for text inputs */
	accent-color: var(--primary-color); /* Style the checkmark color */
	height: 1rem;
	width: 1rem;
}

/* Footer */
footer {
	background-color: #0a0a0a;
	color: var(--on-surface-color);
	padding: 3rem 5% 1.5rem;
	text-align: center;
	margin-top: auto;
}

.footer-content {
	display: flex;
	justify-content: space-around;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 2rem;
	max-width: 1200px;
	margin: 0 auto 2rem auto;
	text-align: left;
}

.footer-column {
	flex: 1;
	min-width: 250px;
}

.footer-column h4 {
	color: var(--primary-color);
	margin-bottom: 1rem;
	font-size: 1.3rem;
}

.contact-info p {
	margin-bottom: 0.5rem;
	font-size: 0.9rem;
}

.quick-links ul,
.legal-links ul {
	list-style: none;
	padding-left: 0;
}

.quick-links ul li a,
.legal-links ul li a {
	color: var(--on-surface-color);
	font-size: 0.9rem;
	display: block;
	padding: 0.3rem 0;
}
.quick-links ul li a:hover,
.legal-links ul li a:hover {
	color: var(--primary-color);
	text-decoration: none;
}

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

/* Cookie Modal */
#cookie-modal {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: var(--surface-color);
	color: var(--on-background-color);
	padding: 1.5rem 2rem;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
	z-index: 2000;
	display: none;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}

#cookie-modal p {
	margin-bottom: 0;
	flex-grow: 1;
}
#cookie-modal p a {
	color: var(--secondary-color);
	font-weight: bold;
}
#cookie-modal div {
	display: flex;
	gap: 1rem;
}
#cookie-modal button {
	padding: 0.6rem 1.2rem;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-weight: 500;
	transition: background-color 0.2s;
}
#accept-cookies {
	background-color: var(--primary-color);
	color: white;
}
#accept-cookies:hover {
	background-color: var(--primary-hover-color);
}
#decline-cookies {
	background-color: #555;
	color: white;
}
#decline-cookies:hover {
	background-color: #666;
}

/* Legal Pages Specifics */
.legal-page main {
	padding: 3rem 5%;
	background-color: var(--surface-color);
	max-width: 900px;
	margin: 2rem auto;
	border-radius: 8px;
}
.legal-content h1 {
	color: var(--primary-color);
	text-align: center;
	margin-bottom: 1.5rem;
	font-size: 2.5rem;
}
.legal-content p {
	margin-bottom: 1.2em;
	line-height: 1.7;
	color: var(--on-surface-color);
}
.legal-content h2 {
	font-size: 1.8rem;
	color: var(--secondary-color);
	margin-top: 2rem;
	margin-bottom: 1rem;
	text-align: left;
	border-bottom: 1px solid var(--border-color);
	padding-bottom: 0.3rem;
}
.legal-content h3 {
	font-size: 1.4rem;
	color: var(--on-background-color);
	margin-top: 1.5rem;
	margin-bottom: 0.7rem;
}
.legal-content ul {
	padding-left: 20px;
	list-style: disc;
}
.legal-content ul li {
	margin-bottom: 0.6em;
}
.legal-content strong {
	color: var(--on-background-color);
}
.legal-content em {
	display: block;
	text-align: center;
	margin-bottom: 2rem;
	font-style: italic;
	color: var(--on-surface-color);
}

/* Animation for sections */
.section-animate {
	opacity: 0;
	transform: translateY(30px) scale(0.98);
	transition: opacity 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275),
		transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

/* Responsive Design */
@media (max-width: 992px) {
	.hero-content h1 {
		font-size: 2.8rem;
	}
	.journey-content {
		flex-direction: column;
		text-align: center;
	}
	.journey-image {
		margin-bottom: 1.5rem;
	}
	.contact-container {
		flex-direction: column;
	}
	.course-item {
		flex-direction: column;
		align-items: flex-start;
	}
	.course-item img {
		width: 100%;
		height: 200px;
	}
}

@media (max-width: 768px) {
	h1 {
		font-size: 2.5rem;
	}
	h2 {
		font-size: 2rem;
	}
	.hero-content h1 {
		font-size: 2.5rem;
	}
	.hero-content p {
		font-size: 1.1rem;
	}

	/* Mobile Navigation Styles */
	.burger-menu {
		display: flex;
	}

	nav ul#main-navigation-list {
		display: none;
	}

	nav.nav-active ul#main-navigation-list {
		display: flex;
		flex-direction: column;
		position: absolute;
		top: 100%;
		left: 0;
		width: 100%;
		background-color: var(--surface-color);
		box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
		padding: 1rem 0;
		z-index: 1050;
		border-top: 1px solid var(--border-color);
		gap: 0.5rem;
	}

	nav.nav-active ul#main-navigation-list li {
		width: 100%;
		text-align: center;
		margin-bottom: 0;
	}

	nav.nav-active ul#main-navigation-list li a {
		padding: 1rem;
		display: block;
		width: 100%;
	}

	nav.nav-active ul#main-navigation-list li a::after {
		left: 50%;
		transform: translateX(-50%);
		width: 0;
	}
	nav.nav-active ul#main-navigation-list li a:hover::after,
	nav.nav-active ul#main-navigation-list li a.active::after {
		width: 80%;
	}

	.footer-content {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
	.footer-column {
		width: 100%;
		max-width: 350px;
	}
	#cookie-modal {
		flex-direction: column;
		text-align: center;
		padding: 1rem;
	}
	#cookie-modal div {
		width: 100%;
		justify-content: center;
	}
	.legal-page main {
		margin: 1rem auto;
		padding: 2rem 3%;
	}
}

@media (max-width: 480px) {
	body {
		font-size: 15px;
	}
	h1 {
		font-size: 2rem;
	}
	h2 {
		font-size: 1.7rem;
	}
	.hero-content h1 {
		font-size: 2rem;
	}
	.hero-content p {
		font-size: 1rem;
	}
	.cta-button {
		padding: 0.7rem 1.5rem;
		font-size: 1rem;
	}
	header {
		padding: 1rem 3%;
	}
	.content-section {
		padding: 3rem 3%;
	}
	.inline-form {
		flex-direction: column;
	}
	.inline-form input[type='email'],
	.inline-form button {
		width: 100%;
	}
	.card {
		padding: 1.5rem;
	}
	.course-item {
		padding: 1rem;
	}
	.contact-container {
		padding: 1.5rem;
	}
}
