/* Global Resets & Base Styles */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	line-height: 1.6;
	color: #e0e0e0; /* Light grey text for dark theme */
	background-color: #121212; /* Very dark grey background */
	overflow-x: hidden; /* Prevent horizontal scroll */
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
	margin-bottom: 1rem;
	color: #ffffff; /* White headings */
	line-height: 1.3;
}

h1 {
	font-size: 2.8rem;
}
h2 {
	font-size: 2.2rem;
}
h3 {
	font-size: 1.8rem;
}

p {
	margin-bottom: 1rem;
	font-size: 1rem;
	color: #c5c5c5; /* Slightly lighter than main text for readability */
}

a {
	color: #4dabf7; /* Bright blue for links */
	text-decoration: none;
	transition: color 0.3s ease;
}

a:hover {
	color: #2c89d8; /* Darker blue on hover */
}

ul {
	list-style: none;
	padding-left: 0;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
	border-radius: 8px; /* Rounded corners for images */
}

/* Header */
header {
	background-color: #1e1e1e; /* Slightly lighter dark for header */
	color: #fff;
	padding: 1rem 0;
	border-bottom: 1px solid #333;
	position: sticky;
	top: 0;
	z-index: 1000;
}

header .container {
	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: #fff;
}

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

header nav ul {
	display: flex;
}

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

header nav ul li a {
	color: #e0e0e0;
	font-weight: 500;
	padding: 0.5rem 0.8rem;
	border-radius: 4px;
}

header nav ul li a:hover,
header nav ul li a.active {
	color: #fff;
	background-color: #333;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
	background: none;
	border: none;
	cursor: pointer;
	padding: 10px;
	display: none; /* Hidden by default, shown in media query */
	z-index: 1001; /* Ensure it's clickable */
	order: 3; /* Places it after nav in flex order if needed, but not essential with current setup */
}
.mobile-menu-toggle span {
	display: block;
	width: 25px;
	height: 3px;
	background-color: #fff;
	margin: 5px 0;
	transition: all 0.3s ease-in-out;
	border-radius: 3px;
}

/* X Icon for Active Toggle */
.mobile-menu-toggle.active span:nth-child(1) {
	transform: translateY(8px) rotate(45deg);
}
.mobile-menu-toggle.active span:nth-child(2) {
	opacity: 0;
}
.mobile-menu-toggle.active span:nth-child(3) {
	transform: translateY(-8px) rotate(-45deg);
}

/* Main Content & Sections */
main {
	padding: 2rem 0;
}

section {
	padding: 4rem 0;
	border-bottom: 1px solid #2a2a2a; /* Separator for sections */
}

section:last-child {
	border-bottom: none;
}

.full-width-section {
	padding-left: 0;
	padding-right: 0;
}

.full-width-section .container.content-overlay {
	position: relative;
	z-index: 2;
	padding: 3rem 2rem;
	background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay */
	border-radius: 8px;
	text-align: center;
}

.text-focused-section {
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
}

.section-intro {
	font-size: 1.1rem;
	color: #b0b0b0;
	margin-bottom: 2rem;
	text-align: center;
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
}

/* Hero Section */
#hero {
	background: url('../img/h1.webp') no-repeat center center/cover; /* Placeholder, actual image set in HTML or JS */
	color: #fff;
	text-align: center;
	position: relative; /* For overlay positioning if needed directly on section */
	min-height: 70vh;
	display: flex;
	align-items: center;
	justify-content: center;
}
#hero::before {
	/* Optional: Darker overlay if not using content-overlay class approach */
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
	z-index: 1;
}

#hero .container.content-overlay {
	/* This targets the container when it has content-overlay */
	background-color: transparent; /* Remove background if hero itself has overlay */
}

#hero h1 {
	font-size: 3.5rem;
	margin-bottom: 1rem;
}

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

.cta-button {
	display: inline-block;
	background-color: #4dabf7; /* Primary action color */
	color: #fff;
	padding: 0.8rem 2rem;
	border-radius: 5px;
	text-transform: uppercase;
	font-weight: bold;
	transition: background-color 0.3s ease, transform 0.2s ease;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
	background-color: #2c89d8; /* Darker shade on hover */
	color: #fff;
	transform: translateY(-2px);
}

/* Why Us & Other Flex Sections */
.content-flex {
	display: flex;
	gap: 2rem;
	align-items: center;
}

.content-flex .text-content {
	flex: 1;
}

.content-flex .image-content {
	flex: 1;
	display: flex;
	justify-content: center;
	align-items: center;
}
.content-flex .image-content img {
	max-width: 100%;
	border-radius: 8px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

#why-us ul {
	list-style: disc;
	padding-left: 20px;
	margin-bottom: 1rem;
}
#why-us ul li {
	margin-bottom: 0.5rem;
}
#why-us ul li strong {
	color: #b9e0ff; /* Light blue for emphasis */
}

/* Learning Philosophy */
#learning-philosophy p {
	margin-bottom: 1.5rem;
}
#learning-philosophy strong {
	color: #b9e0ff;
}

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

.card {
	background-color: #1e1e1e; /* Dark card background */
	padding: 1.5rem;
	border-radius: 8px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	display: flex;
	flex-direction: column;
}

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

.card img {
	width: 100%;
	height: auto; /* Fixed height for card images */
	object-fit: cover;
	border-radius: 6px 6px 0 0; /* Rounded top corners */
	margin-bottom: 1rem;
}

.card h3 {
	font-size: 1.5rem;
	margin-bottom: 0.75rem;
	color: #4dabf7; /* Accent color for card titles */
}

.card p {
	font-size: 0.95rem;
	color: #b0b0b0;
	flex-grow: 1; /* Allows p to take available space, pushing button down */
	margin-bottom: 1rem;
}

/* Community Testimonials */
#community-testimonials blockquote {
	background-color: #252525; /* Slightly different dark shade for blockquote */
	border-left: 4px solid #4dabf7; /* Accent border */
	padding: 1rem 1.5rem;
	margin: 1rem 0;
	border-radius: 0 4px 4px 0;
}
#community-testimonials blockquote p {
	margin-bottom: 0.5rem;
	font-style: italic;
	color: #d0d0d0;
}

/* FAQ Section */
#faq-section .faq-item {
	background-color: #1e1e1e;
	margin-bottom: 1rem;
	padding: 1.5rem;
	border-radius: 8px;
	border: 1px solid #333;
	overflow: hidden; /* Important for max-height transition */
}

#faq-section .faq-item h3 {
	font-size: 1.3rem;
	color: #4dabf7;
	cursor: pointer;
	display: flex; /* For aligning text and icon */
	justify-content: space-between; /* Pushes icon to the right */
	align-items: center;
	margin-bottom: 0; /* Remove default h3 margin if answer is hidden */
	transition: margin-bottom 0.3s ease-out; /* Smooth transition for margin */
}

#faq-section .faq-item h3::after {
	content: '+'; /* Plus icon */
	font-size: 1.5rem;
	font-weight: bold;
	color: #4dabf7;
	transition: transform 0.3s ease-out;
	margin-left: 10px; /* Space between text and icon */
}

#faq-section .faq-item.active h3 {
	margin-bottom: 1rem; /* Add margin back when active to space from answer */
}

#faq-section .faq-item.active h3::after {
	content: '−'; /* Minus icon when active */
	transform: rotate(
		180deg
	); /* Optional: rotate plus to minus if using a more complex icon */
}

#faq-section .faq-item p {
	font-size: 0.95rem;
	color: #b0b0b0;
	/* margin-top: 0.5rem; */ /* Handled by h3 margin-bottom when active */
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	transition: max-height 0.4s ease-out, opacity 0.3s ease-out 0.1s,
		margin-top 0.3s ease-out;
	margin-top: 0;
}

#faq-section .faq-item.active p {
	max-height: 500px; /* Adjust if answers are very long */
	opacity: 1;
	margin-top: 0.5rem; /* Add some space when visible */
}

/* Contact Us Section */
#contact-us {
	padding: 4rem 0;
	background-color: #161616; /* Slightly different dark background from other sections */
}
#contact-us h2 {
	text-align: center;
	margin-bottom: 2.5rem;
	font-size: 2.2rem;
	color: #fff;
}
#contact-us .contact-form-wrapper {
	max-width: 700px;
	margin: 0 auto;
	background-color: #1e1e1e;
	padding: 2.5rem; /* Increased padding */
	border-radius: 8px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

/* Footer */
footer {
	background-color: #1a1a1a; /* Dark footer background */
	color: #ccc;
	padding: 3rem 0 1.5rem;
	border-top: 1px solid #333;
}

.footer-content {
	display: flex;
	justify-content: center; /* Center the .contact-info block */
	margin-bottom: 0; /* Adjusted as .footer-navigation will have padding-top */
	flex-wrap: wrap;
}

.footer-content .contact-info {
	flex-basis: auto;
	max-width: 500px;
	text-align: center;
}

.contact-info h3 {
	color: #fff;
	margin-bottom: 1rem;
}

.contact-info p {
	margin-bottom: 0.5rem;
}
.contact-info a {
	color: #4dabf7;
}
.contact-info a:hover {
	text-decoration: underline;
}

/* Contact Form */
#contactForm label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: bold;
	color: #d0d0d0;
}

#contactForm input[type='text'],
#contactForm input[type='email'],
#contactForm textarea {
	width: 100%;
	padding: 0.75rem;
	margin-bottom: 1rem;
	border: 1px solid #444;
	border-radius: 4px;
	background-color: #2c2c2c; /* Dark input background */
	color: #e0e0e0; /* Light text in input */
	font-size: 1rem;
}

#contactForm input[type='text']:focus,
#contactForm input[type='email']:focus,
#contactForm textarea:focus {
	outline: none;
	border-color: #4dabf7;
	box-shadow: 0 0 0 2px rgba(77, 171, 247, 0.3);
}

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

#contactForm textarea:focus {
	outline: none;
	border-color: #4dabf7;
	box-shadow: 0 0 0 2px rgba(77, 171, 247, 0.3);
}

#contactForm .form-consent {
	display: flex;
	align-items: center;
	margin-bottom: 1rem;
	gap: 0.5rem;
}

#contactForm .form-consent input[type='checkbox'] {
	width: auto;
	margin-bottom: 0;
	accent-color: #4dabf7;
	height: 1.2em;
	width: 1.2em;
}

#contactForm .form-consent label {
	font-weight: normal;
	margin-bottom: 0;
	color: #c5c5c5;
	font-size: 0.9rem;
}

#contactForm button[type='submit'] {
	display: inline-block;
	background-color: #4dabf7;
	color: #fff;
	padding: 0.75rem 1.5rem;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 1rem;
	font-weight: bold;
	transition: background-color 0.3s ease;
}

#contactForm button[type='submit']:hover {
	background-color: #2c89d8;
}

#formFeedback {
	margin-top: 1rem;
	font-size: 0.9rem;
}

#formFeedback.success {
	color: #4caf50;
}

#formFeedback.error {
	color: #f44336;
}

/* Footer Navigation */
.footer-navigation {
	text-align: center;
	padding-top: 1.5rem;
	margin-bottom: 0;
	border-top: 1px solid #333;
}

.footer-navigation h3 {
	font-size: 1.1rem;
	color: #e0e0e0;
	margin-bottom: 0.75rem;
	font-weight: 600;
}

.footer-navigation ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
}

.footer-navigation ul li {
	margin: 0.25rem 10px;
}

.footer-navigation ul li a {
	color: #b0b0b0;
	font-size: 0.95rem;
}

.footer-navigation ul li a:hover {
	color: #fff;
	text-decoration: underline;
}

/* Footer Links */
.footer-links {
	text-align: center;
	margin-bottom: 1.5rem;
	padding-top: 1.5rem;
}

.footer-links a {
	color: #aaa;
	margin: 0 10px;
	font-size: 0.9rem;
}

.footer-links a:hover {
	color: #fff;
	text-decoration: underline;
}

.copyright {
	text-align: center;
	font-size: 0.85rem;
	color: #888;
}

/* Cookie Consent Modal */
.cookie-modal {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: #1e1e1e;
	color: #e0e0e0;
	padding: 1.5rem;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
	z-index: 2000;
	display: none;
	border-top: 1px solid #444;
}

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

.cookie-modal p {
	margin: 0;
	flex-grow: 1;
	font-size: 0.95rem;
}

.cookie-modal .modal-buttons button {
	padding: 0.6rem 1.2rem;
	margin-left: 0.5rem;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-weight: bold;
	transition: background-color 0.3s ease, color 0.3s ease;
}

#acceptCookies {
	background-color: #4dabf7;
	color: #fff;
}
#acceptCookies:hover {
	background-color: #2c89d8;
}

#declineCookies {
	background-color: #555;
	color: #fff;
}
#declineCookies:hover {
	background-color: #777;
}

/* Legal Pages (Privacy, Terms, etc.) */
.legal-page .container {
	max-width: 800px;
	padding-top: 2rem;
	padding-bottom: 2rem;
}
.legal-page h1 {
	font-size: 1.5rem;
	margin-bottom: 0.5rem;
	border-bottom: 2px solid #4dabf7;
	padding-bottom: 0.5rem;
	color: #fff;
}
.legal-page p em,
.legal-page span#currentDate {
	display: block;
	font-size: 0.9rem;
	color: #999;
	margin-bottom: 2rem;
}
.legal-page h2 {
	font-size: 1.5rem;
	margin-top: 2.5rem;
	margin-bottom: 1rem;
	color: #e0e0e0;
	border-bottom: 1px solid #555;
	padding-bottom: 0.3rem;
}
.legal-page h3 {
	font-size: 1.4rem;
	margin-top: 2rem;
	margin-bottom: 0.75rem;
	color: #d0d0d0;
}
.legal-page h4 {
	font-size: 1.2rem;
	margin-top: 1.5rem;
	margin-bottom: 0.5rem;
	color: #c0c0c0;
}
.legal-page p {
	line-height: 1.7;
	color: #c5c5c5;
}
.legal-page ul {
	list-style: disc;
	padding-left: 25px;
	margin-bottom: 1rem;
}
.legal-page ul li {
	margin-bottom: 0.5rem;
	color: #c5c5c5;
}
.legal-page ul ul {
	list-style: circle;
	margin-top: 0.5rem;
}
.legal-page a {
	color: #69c0ff;
}
.legal-page a:hover {
	text-decoration: underline;
}

/* Submission Status Modal */
.status-modal {
	display: none; /* Hidden by default */
	position: fixed;
	z-index: 2000; /* Above other content, including cookie modal */
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0, 0, 0, 0.7); /* Darker overlay */
	/* Use flex to center content, as it's a direct child now */
	align-items: center;
	justify-content: center;
}

.status-modal-content {
	background-color: #252525; /* Slightly darker than cards for distinction */
	margin: auto; /* Fallback if flex not fully supported or for older browsers */
	padding: 25px 30px; /* Adjusted padding */
	border: 1px solid #555; /* More pronounced border */
	border-radius: 8px;
	width: 90%;
	max-width: 450px; /* Slightly wider */
	text-align: center;
	color: #e0e0e0;
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6); /* Stronger shadow */
}

.status-modal-content p#statusModalMessage {
	font-size: 1.15rem; /* Slightly larger text */
	margin-bottom: 20px; /* More space below message */
	line-height: 1.5;
}

/* Basic CSS Spinner */
.spinner {
	border: 4px solid #383838; /* Darker base for spinner */
	border-top: 4px solid #4dabf7; /* Accent blue */
	border-radius: 50%;
	width: 40px;
	height: 40px;
	animation: spin 1s linear infinite;
	margin: 20px auto 10px; /* Adjusted margin */
}

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

/* Animation Support */
.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);
}

/* Responsive Design */
@media (max-width: 992px) {
	#hero h1 {
		font-size: 2.8rem;
	}
	#hero p {
		font-size: 1.1rem;
	}
	.content-flex {
		flex-direction: column;
		text-align: center;
	}
	.content-flex .text-content,
	.content-flex .image-content {
		flex-basis: 100%;
		margin-bottom: 1rem;
	}
	.content-flex .image-content img {
		max-width: 80%;
	}
}

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

	header .container {
		position: relative;
	}

	.mobile-menu-toggle {
		display: block;
	}

	header nav#main-nav {
		display: none;
	}

	header nav#main-nav.mobile-nav-active {
		display: flex;
		flex-direction: column;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background-color: #1e1e1e;
		padding: 1rem 0;
		box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
		z-index: 999;
		border-top: 1px solid #333;
	}

	header nav#main-nav.mobile-nav-active ul {
		list-style: none;
		padding: 0;
		margin: 0;
		width: 100%;
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	header nav#main-nav.mobile-nav-active ul li {
		margin: 0;
		width: 90%;
	}

	header nav#main-nav.mobile-nav-active ul li a {
		display: block;
		padding: 0.8rem 1rem;
		text-align: center;
		color: #e0e0e0;
		border-bottom: 1px solid #2a2a2a;
		transition: background-color 0.2s ease, color 0.2s ease;
	}
	header nav#main-nav.mobile-nav-active ul li:last-child a {
		border-bottom: none;
	}
	header nav#main-nav.mobile-nav-active ul li a:hover,
	header nav#main-nav.mobile-nav-active ul li a.active {
		background-color: #333;
		color: #fff;
	}

	#hero {
		min-height: 60vh;
	}
	#hero h1 {
		font-size: 2.4rem;
	}
	#hero p {
		font-size: 1rem;
	}
	.cta-button {
		font-size: 0.9rem;
		padding: 0.7rem 1.5rem;
	}

	section {
		padding: 3rem 0;
	}

	.footer-content {
		flex-direction: column;
		align-items: center;
	}
	.footer-content .contact-info {
		flex-basis: 100%;
		margin-bottom: 0;
	}

	.footer-navigation ul {
		flex-direction: column;
		align-items: center;
	}
	.footer-navigation ul li {
		margin: 8px 0;
	}

	.cookie-modal .modal-content {
		flex-direction: column;
		text-align: center;
	}
	.cookie-modal p {
		margin-bottom: 1rem;
	}
	.cookie-modal .modal-buttons button {
		margin-left: 0;
		margin: 0.25rem;
	}
	.cards-container {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	body {
		font-size: 0.95rem;
	}
	h1 {
		font-size: 2rem;
	}
	h2 {
		font-size: 1.6rem;
	}
	.container {
		width: 95%;
		padding: 0 10px;
	}
	section {
		padding: 2rem 0;
	}

	#hero h1 {
		font-size: 2rem;
	}
	#hero p {
		font-size: 0.9rem;
	}

	.cta-button {
		font-size: 0.8rem;
		padding: 0.6rem 1.2rem;
	}

	.footer-links a {
		margin: 0 5px;
		font-size: 0.8rem;
	}
}
