:root {
	--primary-bg: #1a1a2e; /* Dark blue/purple */
	--secondary-bg: #162447; /* Slightly lighter dark blue */
	--card-bg: #1f4068; /* Card background */
	--text-primary: #e0e0e0; /* Light grey/white for text */
	--text-secondary: #b0b0c0; /* Slightly darker grey for secondary text */
	--accent-color: #e43f5a; /* Bright accent (e.g., pink/red) */
	--accent-hover: #f55f7a;
	--border-color: #303050;
	--font-main: 'Arial', sans-serif; /* Using a common sans-serif for now */
	--section-padding: 4rem 0;
}

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

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

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

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

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(--accent-color);
	text-decoration: none;
}

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

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

header ul li {
	margin-left: 1.5rem;
}

header ul li a {
	color: var(--text-primary);
	text-decoration: none;
	font-size: 1rem;
	transition: color 0.3s ease;
}

header ul li a:hover {
	color: var(--accent-color);
}

/* Mobile Navigation Toggle */
.mobile-nav-toggle {
	display: none; /* Hidden by default, shown in media query */
	background: none;
	border: none;
	cursor: pointer;
	padding: 0.5rem;
	z-index: 1001; /* Above the sticky header's content, but allows menu to be under */
}

.mobile-nav-toggle span {
	display: block;
	width: 25px;
	height: 3px;
	background-color: var(--text-primary);
	margin: 5px 0;
	transition: all 0.3s ease-in-out;
}

/* Sections */
section {
	padding: var(--section-padding);
	opacity: 0;
	transform: scale(0.95) translateY(20px);
	transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

section h2 {
	font-size: 2.5rem;
	color: var(--accent-color);
	margin-bottom: 1.5rem;
	text-align: center;
}
section p {
	margin-bottom: 1rem;
	color: var(--text-secondary);
	max-width: 700px; /* For readability in text-heavy sections */
	margin-left: auto;
	margin-right: auto;
	text-align: center; /* Default text alignment */
}
section#philosophy p,
section#philosophy h2 {
	text-align: left; /* Specific for text-only section */
}

/* Hero Section */
#hero {
	background: url('../img/h1.webp') no-repeat center center/cover;
	color: #fff;
	text-align: center;
	padding: 6rem 0; /* More padding for hero */
	min-height: 70vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}
#hero.full-width-section {
	/* Ensure hero bg covers full width */
	width: 100%;
}

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

#hero p {
	font-size: 1.2rem;
	margin-bottom: 2rem;
	max-width: 600px;
	color: #f0f0f0; /* Slightly brighter for hero text */
}

.cta-button {
	display: inline-block; /* Added for consistent margin/padding behavior */
	background-color: var(--accent-color);
	color: #fff;
	padding: 0.8rem 1.8rem;
	text-decoration: none;
	border-radius: 5px;
	font-size: 1.1rem;
	font-weight: bold;
	transition: background-color 0.3s ease, transform 0.2s ease;
	border: none;
	cursor: pointer;
}

.cta-button:hover {
	background-color: var(--accent-hover);
	transform: translateY(-2px);
}
.cta-button.secondary {
	background-color: var(--secondary-bg);
	border: 1px solid var(--accent-color);
	color: var(--accent-color);
}
.cta-button.secondary:hover {
	background-color: var(--accent-color);
	color: #fff;
}

.section-contact-link-wrapper {
	text-align: center;
	margin-top: 2rem;
}

/* Why Us Section */
#why-us .features-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 2rem;
	margin-top: 2rem;
}

#why-us .feature-item {
	background-color: var(--secondary-bg);
	padding: 1.5rem;
	border-radius: 8px;
	border-left: 5px solid var(--accent-color);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
	transition: transform 0.3s ease;
}
#why-us .feature-item:hover {
	transform: translateY(-5px);
}

#why-us .feature-item h3 {
	font-size: 1.5rem;
	margin-bottom: 0.5rem;
	color: var(--text-primary);
}
#why-us .feature-item p {
	font-size: 0.95rem;
	color: var(--text-secondary);
	text-align: left;
}

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

.course-card {
	background-color: var(--card-bg);
	border-radius: 8px;
	padding: 1.5rem;
	text-align: center;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
	display: flex;
	flex-direction: column;
	align-items: center;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.course-card:hover {
	transform: translateY(-10px);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.course-card img {
	width: 100%;
	height: auto;
	margin-bottom: 1rem;
	object-fit: contain;
}

.course-card h3 {
	font-size: 1.6rem;
	margin-bottom: 0.75rem;
	color: var(--text-primary);
}

.course-card p {
	font-size: 0.95rem;
	color: var(--text-secondary);
	flex-grow: 1; /* Makes text take available space */
	margin-bottom: 1rem;
}

.learn-more-link {
	color: var(--accent-color);
	text-decoration: none;
	font-weight: bold;
	transition: color 0.3s ease;
}

.learn-more-link:hover {
	text-decoration: underline;
	color: var(--accent-hover);
}

/* Page 2 Specifics */
.section-layout-image-text,
.section-layout-text-image {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	align-items: center;
}
.section-layout-image-text .section-text,
.section-layout-text-image .section-text {
	text-align: left;
}
.section-layout-image-text .section-text p,
.section-layout-text-image .section-text p {
	text-align: left;
	margin-left: 0;
	margin-right: 0;
	max-width: none;
}
.section-layout-image-text h2,
.section-layout-text-image h2 {
	text-align: left; /* Align h2 to left in these layouts */
}

.section-image img {
	width: 100%;
	height: auto;
	border-radius: 8px;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
}

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

#faq .faq-item {
	background-color: var(--secondary-bg);
	padding: 1.5rem;
	border-radius: 8px;
}

#faq .faq-item h3 {
	font-size: 1.2rem;
	color: var(--accent-color);
	margin-bottom: 0.5rem;
}
#faq .faq-item p {
	text-align: left;
	color: var(--text-secondary);
	font-size: 0.9rem;
}

/* New Contact Section on Main Page */
#contact-section {
	background-color: var(
		--secondary-bg
	); /* Giving it a background like the footer */
}

#contact-section .container {
	max-width: 700px; /* Constrain form width for better appearance */
	margin-left: auto;
	margin-right: auto;
	text-align: center; /* Center heading and status message */
}

#contact-section h2 {
	margin-bottom: 1rem; /* Adjusted from 1.5rem for section p */
}
#contact-section p {
	/* For the introductory text above the form */
	margin-bottom: 1.5rem;
	color: var(--text-secondary);
}

#contact-form textarea {
	/* Specific adjustment if needed */
	min-height: 120px; /* Give textarea a bit more default height */
}

/* Footer */
footer {
	background-color: var(--secondary-bg);
	color: var(--text-secondary);
	padding: 3rem 0 1.5rem;
	margin-top: 3rem; /* Space above footer */
}

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

.footer-col h3 {
	color: var(--accent-color);
	margin-bottom: 1rem;
	font-size: 1.3rem;
}

.footer-col p,
.footer-col ul li {
	margin-bottom: 0.5rem;
	font-size: 0.9rem;
}

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

.footer-col a {
	color: var(--text-secondary);
	text-decoration: none;
	transition: color 0.3s ease;
}

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

#contact-form input,
#contact-form textarea,
#contact-form-about input,
#contact-form-about textarea {
	width: 100%;
	padding: 0.7rem;
	margin-bottom: 0.7rem;
	border-radius: 5px;
	border: 1px solid var(--border-color);
	background-color: var(--primary-bg);
	color: var(--text-primary);
	font-family: inherit;
}
#contact-form input::placeholder,
#contact-form textarea::placeholder,
#contact-form-about input::placeholder,
#contact-form-about textarea::placeholder {
	color: var(--text-secondary);
}

/* Styles for the consent checkbox */
.form-group-checkbox {
	margin-bottom: 1rem;
	text-align: left; /* Align checkbox and label to the left */
	display: flex;
	align-items: center; /* Vertically align items */
	flex-wrap: wrap; /* Allow error message to wrap if needed */
}

.form-group-checkbox input[type='checkbox'] {
	display: none; /* Hide the default checkbox */
}

.form-group-checkbox label {
	position: relative;
	padding-left: 30px; /* Space for custom checkbox */
	cursor: pointer;
	font-size: 0.9rem;
	color: var(--text-secondary);
	user-select: none; /* Prevent text selection on click */
	display: inline-block; /* Ensure it takes up only necessary width */
}

/* Custom checkbox box */
.form-group-checkbox label::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 18px;
	height: 18px;
	border: 2px solid var(--accent-color);
	background-color: var(--primary-bg);
	border-radius: 3px;
	transition: background-color 0.2s, border-color 0.2s;
}

/* Custom checkbox checkmark */
.form-group-checkbox input[type='checkbox']:checked + label::after {
	content: '';
	position: absolute;
	left: 6px; /* Position checkmark inside the box */
	top: 50%;
	transform: translateY(-50%) rotate(45deg); /* Create checkmark shape */
	width: 5px;
	height: 10px;
	border: solid var(--text-primary); /* Checkmark color */
	border-width: 0 2px 2px 0;
	transition: opacity 0.2s;
}

.form-group-checkbox input[type='checkbox']:checked + label::before {
	background-color: var(
		--accent-color
	); /* Change box background when checked */
	border-color: var(--accent-hover);
}

.form-group-checkbox .error-message {
	color: var(--accent-color);
	font-size: 0.85rem;
	margin-top: 0.25rem; /* Space between label and error message */
	width: 100%; /* Make error message take full width below checkbox/label */
	display: block; /* Ensure it's on its own line */
	padding-left: 30px; /* Align with label text */
}

#contact-form button,
#contact-form-about button {
	width: 100%;
}

.form-status-message {
	margin-top: 0.5rem;
	font-size: 0.9rem;
	min-height: 1.2em; /* Prevent layout shift when message appears/disappears */
}

.copyright {
	text-align: center;
	padding-top: 1.5rem;
	border-top: 1px solid var(--border-color);
	font-size: 0.85rem;
}

/* Cookie Consent Modal */
.cookie-modal {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: rgba(10, 10, 20, 0.95); /* Darker, slightly transparent */
	color: var(--text-primary);
	padding: 1.5rem;
	box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.3);
	z-index: 2000;
	display: none; /* Hidden by default */
	align-items: center;
	justify-content: center;
	text-align: center;
}

.cookie-modal.show {
	display: flex; /* Use flex to center content if needed */
}

.cookie-modal-content {
	max-width: 800px;
}

.cookie-modal p {
	margin-bottom: 1rem;
	font-size: 0.95rem;
}

.cookie-modal a {
	color: var(--accent-color);
	text-decoration: underline;
}

.cookie-modal-buttons button {
	margin: 0 0.5rem;
}

/* Legal Pages Basic Styling */
.legal-page-container {
	padding: var(--section-padding);
	min-height: 60vh;
}
.legal-page-container h1 {
	font-size: 1.5rem;
	color: var(--accent-color);
	margin-bottom: 1.5rem;
}
.legal-page-container h2 {
	font-size: 1.5rem;
	color: var(--text-primary);
	margin-top: 2rem;
	margin-bottom: 1rem;
}
.legal-page-container p,
.legal-page-container ul li {
	margin-bottom: 1rem;
	line-height: 1.7;
	color: var(--text-secondary);
	text-align: left;
}
.legal-page-container ul {
	padding-left: 20px;
}
.legal-page-container a {
	color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 992px) {
	.section-layout-image-text,
	.section-layout-text-image {
		grid-template-columns: 1fr; /* Stack on smaller screens */
	}
	.section-layout-text-image .section-text {
		/* Ensure text comes before image if that's the order in HTML */
		grid-row: 1;
	}
	#hero h1 {
		font-size: 2.8rem;
	}
	#hero p {
		font-size: 1.1rem;
	}
}

@media (max-width: 768px) {
	body {
		font-size: 15px;
	}
	header nav {
		flex-direction: row; /* Keep logo and toggle on same line */
		align-items: center; /* Vertically align logo and toggle */
		position: relative; /* For absolute positioning of the menu */
	}

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

	header ul#main-nav-links {
		display: none; /* Hide menu by default on mobile */
		flex-direction: column;
		position: absolute;
		top: 100%; /* Position below the header bar */
		left: 0;
		width: 100%;
		background-color: var(--secondary-bg); /* Match header background */
		padding: 1rem 0;
		box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
		z-index: 999; /* Below toggle button if it's part of nav, but above page content */
		border-top: 1px solid var(--border-color);
	}

	header.nav-open ul#main-nav-links {
		display: flex; /* Show menu when nav-open class is present */
	}

	header.nav-open .mobile-nav-toggle span:nth-child(1) {
		transform: translateY(8px) rotate(45deg);
	}
	header.nav-open .mobile-nav-toggle span:nth-child(2) {
		opacity: 0;
	}
	header.nav-open .mobile-nav-toggle span:nth-child(3) {
		transform: translateY(-8px) rotate(-45deg);
	}

	header ul#main-nav-links li {
		margin-left: 0;
		margin-bottom: 0; /* Remove bottom margin, use padding on <a> */
		width: 100%;
		text-align: center;
	}
	header ul#main-nav-links li a {
		display: block;
		padding: 0.75rem 1rem;
		border-bottom: 1px solid var(--border-color); /* Separator for links */
	}
	header ul#main-nav-links li:last-child a {
		border-bottom: none;
	}

	section h2 {
		font-size: 2rem;
	}

	.footer-content {
		grid-template-columns: 1fr; /* Stack footer columns */
		text-align: center;
	}
	.footer-col form {
		margin: 0 auto; /* Center form elements if parent is text-align center */
		max-width: 350px;
	}
	.footer-col h3 {
		margin-top: 1rem;
	}
	#contact-form input,
	#contact-form textarea,
	#contact-form-about input,
	#contact-form-about textarea {
		text-align: left; /* Ensure placeholder text alignment is left for inputs */
	}

	.cookie-modal-content {
		padding: 0 1rem; /* Add padding for modal on small screens */
	}
	.cookie-modal-buttons {
		display: flex;
		flex-direction: column;
		gap: 0.5rem;
	}
	.cookie-modal-buttons button {
		width: 100%;
		margin: 0;
	}
}

@media (max-width: 480px) {
	#hero h1 {
		font-size: 2.2rem;
	}
	#hero p {
		font-size: 1rem;
	}
	.container {
		width: 95%;
	}
	#courses .cards-container,
	#why-us .features-grid,
	#faq .faq-grid {
		grid-template-columns: 1fr; /* Single column for cards/features on very small screens */
	}
}
