body {
	margin: 0;
	font-family: 'Roboto', sans-serif;
	background-color: #1a1a1a; /* Darker background */
	color: #e0e0e0;
	line-height: 1.6;
	font-size: 16px;
}

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

/* Header & Navigation */
header {
	background-color: #111; /* Even darker for header */
	padding: 1rem 0;
	position: fixed;
	width: 100%;
	top: 0;
	z-index: 1000;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 90%;
	max-width: 1100px;
	margin: 0 auto;
	position: relative; /* For mobile menu positioning */
}

nav .logo {
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	font-size: 1.2em;
	font-weight: 700;
	color: #00aaff; /* Accent color */
	text-decoration: none;
}

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

nav ul.nav-links {
	/* Added .nav-links class */
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
}

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

nav ul.nav-links li a {
	color: #e0e0e0;
	text-decoration: none;
	font-weight: 400;
	transition: color 0.3s ease;
}

nav ul.nav-links li a:hover,
nav ul.nav-links li a.active {
	color: #00aaff;
}

/* Burger Menu Icon */
.burger-menu {
	display: none; /* Hidden by default, shown in media query */
	flex-direction: column;
	justify-content: space-around;
	width: 2rem;
	height: 2rem;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 0;
	z-index: 1002; /* Above mobile nav links */
	position: relative; /* Ensures proper stacking if needed */
}

.burger-menu span {
	width: 2rem;
	height: 0.25rem;
	background-color: #e0e0e0;
	border-radius: 10px;
	transition: all 0.3s ease-in-out;
	position: relative;
	transform-origin: 1px; /* For smoother rotation */
}

/* Burger icon animation to X */
.burger-menu.open span:nth-child(1) {
	transform: rotate(45deg) translate(1px, -1px);
}

.burger-menu.open span:nth-child(2) {
	opacity: 0;
	transform: translateX(20px);
}

.burger-menu.open span:nth-child(3) {
	transform: rotate(-45deg) translate(1px, 1px);
}

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

section {
	padding: 60px 0;
	border-bottom: 1px solid #333;
	opacity: 0;
	transform: scale(0.95) translateY(20px);
	transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

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

section h2 {
	text-align: center;
	font-size: 2.5em;
	margin-bottom: 40px;
	color: #00aaff; /* Accent for headings */
}

section p,
section li {
	font-size: 1.1em;
	color: #c5c5c5; /* Slightly lighter gray for text */
	margin-bottom: 15px;
}

/* Hero Section */
#hero {
	background: url('../img/h1.webp') no-repeat center center/cover;
	color: #fff;
	text-align: center;
	padding: 100px 0; /* Increased padding */
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: calc(100vh - 80px); /* Full viewport height minus header */
	box-sizing: border-box;
}

#hero .container {
	background-color: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
	padding: 40px;
	border-radius: 8px;
}

#hero h1 {
	font-size: 3.5em; /* Larger heading */
	margin-bottom: 20px;
	font-weight: 700;
}

#hero p {
	font-size: 1.4em; /* Larger paragraph */
	margin-bottom: 30px;
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
	color: #f0f0f0;
}

.cta-button,
.cta-button-secondary {
	display: inline-block;
	background-color: #00aaff;
	color: #fff;
	padding: 15px 30px;
	text-decoration: none;
	border-radius: 5px;
	font-size: 1.1em;
	font-weight: 700;
	transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover,
.cta-button-secondary:hover {
	background-color: #0088cc;
	transform: translateY(-2px);
}

.cta-button-secondary {
	background-color: transparent;
	border: 2px solid #00aaff;
	color: #00aaff;
	margin-top: 20px;
}

.cta-button-secondary:hover {
	background-color: #00aaff;
	color: #fff;
}

/* Why Us Section - Cards */
#why-us .cards-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 30px;
	margin-top: 20px;
}

#why-us .card {
	background-color: #252525; /* Darker card background */
	padding: 25px;
	border-radius: 8px;
	text-align: center;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

#why-us .card img {
	width: 100%; /* Icon size */
	height: auto;
	margin-bottom: 15px;
}

#why-us .card h3 {
	font-size: 1.5em;
	margin-bottom: 10px;
	color: #00aaff;
}

#featured-courses .courses-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 20px;
}

#featured-courses .course-item {
	background-color: rgba(
		42,
		42,
		42,
		0.8
	); /* Slightly transparent item background */
	padding: 20px;
	border-radius: 8px;
	border-left: 4px solid #00aaff;
}

#featured-courses .course-item h3 {
	font-size: 1.6em;
	color: #00c0ff; /* Brighter accent for course titles */
	margin-bottom: 10px;
}

/* Page 2 Specific Styles */
.page-offset {
	/* To ensure content starts below fixed header if first element */
	/* padding-top: 80px; */ /* Already handled by main padding-top */
}

/* Success Stories / Testimonials */
#success-stories {
	background: #222 url('../img/h6.webp') no-repeat center center/cover;
	background-blend-mode: overlay;
}

#success-stories .testimonial-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 20px;
	margin-top: 20px;
}

#success-stories .testimonial {
	background-color: #2c2c2c;
	padding: 20px;
	border-radius: 8px;
	border-left: 4px solid #00aaff;
}

#success-stories .testimonial p {
	font-style: italic;
	margin-bottom: 10px;
}

#success-stories .testimonial h4 {
	text-align: right;
	font-weight: 700;
	color: #00c0ff;
}

/* Community Philosophy Section */
#community-philosophy {
	background: #1c1c1c url('assets/img/community-philosophy-bg.png') no-repeat
		center center/cover;
	background-blend-mode: soft-light;
}

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

#community-philosophy li {
	background-color: rgba(50, 50, 50, 0.7);
	padding: 15px;
	margin-bottom: 10px;
	border-radius: 5px;
	border-left: 3px solid #00aaff;
}

#community-philosophy li strong {
	color: #00c0ff;
}

/* Courses Overview Section on Page 2 */
#courses-overview {
	background-color: #202020;
}

.accordion-item {
	margin-bottom: 15px;
	border-radius: 5px;
	border-left: 3px solid #00aaff;
	/* Specific background colors will be set per section */
}

#faq .accordion-item {
	background-color: #282828;
}

#courses-overview .accordion-item {
	background-color: #2a2a2a;
	margin-bottom: 20px; /* courses had slightly more margin */
}

.accordion-trigger {
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: transparent;
	border: none;
	font-family: inherit;
	font-size: inherit;
	color: inherit; /* Takes color from parent, allowing h3/h4 to set it */
	text-align: left;
	cursor: pointer;
	padding: 15px 20px; /* Default padding, can be overridden */
}

#courses-overview .accordion-trigger {
	padding: 20px; /* Specific padding for courses section */
}

.accordion-trigger h3,
.accordion-trigger h4 {
	margin: 0;
	color: #00c0ff; /* Consistent color for accordion titles */
	flex-grow: 1; /* Allow title to take available space */
}

#faq .accordion-trigger h3 {
	font-size: 1.3em;
}

#courses-overview .accordion-trigger h4 {
	font-size: 1.4em;
}

.accordion-icon {
	font-size: 1.2em; /* Adjusted for better proportion with text */
	font-weight: bold;
	color: #00aaff;
	transition: transform 0.3s ease-out;
	flex-shrink: 0;
	margin-left: 15px; /* Space between text and icon */
	line-height: 1; /* Ensure icon aligns well */
}

.accordion-icon::before {
	content: '+';
	display: inline-block;
}

.accordion-trigger.open .accordion-icon {
	transform: rotate(45deg); /* '+' becomes 'x' */
}

.accordion-panel {
	overflow: hidden;
	max-height: 0;
	transition: max-height 0.3s ease-out;
	padding: 0 20px; /* Horizontal padding for panel content */
	/* display: none; will be handled by 'hidden' attribute for no-JS and JS control */
}
.accordion-panel[hidden] {
	display: none;
}

#faq .accordion-panel p {
	color: #c5c5c5; /* Copied from general section p styling */
	font-size: 1.1em; /* Copied from general section p styling */
	margin-bottom: 0; /* Reset margin if padding is used */
}
#faq .accordion-panel p:first-child {
	padding-top: 5px; /* Space between trigger and first paragraph */
}
#faq .accordion-panel p:last-child {
	padding-bottom: 15px; /* Space after last paragraph, matching trigger's bottom padding effect */
}

#courses-overview .accordion-panel p {
	color: #c5c5c5;
	font-size: 1.1em;
	margin-bottom: 0;
}
#courses-overview .accordion-panel p:first-child {
	padding-top: 8px; /* Original spacing for course details */
}
#courses-overview .accordion-panel p {
	/* For multiple paragraphs within a course item */
	padding-bottom: 8px;
}
#courses-overview .accordion-panel p:last-child {
	padding-bottom: 20px; /* Matching trigger's bottom padding effect */
}

#courses-overview .accordion-panel p em {
	/* Retain style for duration text */
	color: #aaa;
	font-size: 0.9em;
}

/* FAQ Section */
#faq {
	background-color: #1e1e1e; /* Slightly different dark for text-only section */
}

/* Contact Form Section */
#contact {
	background-color: #222;
}

#contactForm {
	max-width: 600px;
	margin: 20px auto;
	padding: 25px;
	background-color: #2f2f2f;
	border-radius: 8px;
}

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

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

.form-group input[type='text'],
.form-group input[type='email'],
.form-group textarea {
	width: calc(100% - 20px);
	padding: 10px;
	border-radius: 4px;
	border: 1px solid #444;
	background-color: #3a3a3a;
	color: #e0e0e0;
	font-size: 1em;
}

.form-group input[type='text']:focus,
.form-group input[type='email']:focus,
.form-group textarea:focus {
	outline: none;
	border-color: #00aaff;
	box-shadow: 0 0 5px rgba(0, 170, 255, 0.5);
}

.form-group textarea {
	resize: vertical;
}

.form-group-checkbox {
	display: flex;
	align-items: center;
	margin-bottom: 20px;
}

.form-group-checkbox input[type='checkbox'] {
	width: auto;
	margin-right: 10px;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background-color: #3a3a3a;
	border: 1px solid #444;
	padding: 8px;
	border-radius: 3px;
	position: relative;
	cursor: pointer;
}

.form-group-checkbox input[type='checkbox']:checked {
	background-color: #00aaff;
	border-color: #0088cc;
}

.form-group-checkbox input[type='checkbox']:checked::before {
	content: '\2714';
	font-size: 12px;
	color: #fff;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	line-height: 1;
}

.form-group-checkbox label {
	font-weight: normal;
	color: #c5c5c5;
	font-size: 0.9em;
	cursor: pointer;
}

#contactForm button[type='submit'] {
	width: 100%;
}

.form-status {
	text-align: center;
	margin-top: 15px;
	font-weight: bold;
}

.form-status.success {
	color: #33cc33;
}

.form-status.error {
	color: #ff3333;
}

/* Footer */
footer {
	background-color: #111;
	color: #aaa;
	padding: 40px 0 20px;
	text-align: center;
}

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

.footer-col {
	flex: 1;
	min-width: 200px; /* Ensure columns don't get too narrow */
}

.footer-col h4 {
	color: #00aaff;
	margin-bottom: 15px;
	font-size: 1.2em;
}

.footer-col p,
.footer-col ul {
	margin-bottom: 10px;
	font-size: 0.95em;
}

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

.footer-col ul li a {
	color: #aaa;
	text-decoration: none;
	transition: color 0.3s ease;
}

.footer-col ul li a:hover {
	color: #00aaff;
}

.copyright {
	font-size: 0.9em;
	border-top: 1px solid #333;
	padding-top: 20px;
	margin-top: 20px;
}

footer a {
	color: #00aaff;
	text-decoration: none;
}

footer a:hover {
	text-decoration: underline;
}

/* Cookie Consent Modal */
.modal {
	display: none; /* Hidden by default */
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: #1c1c1c; /* Dark background for modal */
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
	z-index: 2000;
	padding: 20px;
	box-sizing: border-box;
	border-top: 2px solid #00aaff;
}

.modal-content {
	max-width: 800px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.modal-content p {
	margin: 0;
	flex-grow: 1;
	color: #e0e0e0;
}

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

#acceptCookies {
	background-color: #00aaff;
	color: #fff;
	margin-right: 10px;
}

#acceptCookies:hover {
	background-color: #0088cc;
}

#rejectCookies {
	background-color: #555;
	color: #fff;
}

#rejectCookies:hover {
	background-color: #444;
}

/* Legal Page Specific Styles */
.legal-page section {
	opacity: 1; /* Ensure sections in legal pages are visible by default */
	transform: none; /* Reset any transform applied for animations */
}

/* Responsive Design */
@media (max-width: 768px) {
	.burger-menu {
		display: flex; /* Show burger on mobile */
	}

	nav ul.nav-links {
		display: none; /* Hide by default on mobile */
		flex-direction: column;
		width: 100%;
		position: absolute;
		top: calc(
			100% + 1px
		); /* Position below the header, accounts for potential border */
		left: 0;
		background-color: #1c1c1c;
		border-top: 1px solid #333;
		padding: 0.5rem 0; /* Adjusted padding */
		box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
		z-index: 1001; /* Ensure it's above other content, but below burger's X state */
		margin-left: 0; /* Reset margin from desktop */
	}

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

	nav ul.nav-links li {
		margin: 0; /* Reset margin */
		width: 100%;
		text-align: center;
	}

	nav ul.nav-links li a {
		display: block; /* Make links take full width */
		padding: 1rem;
		border-bottom: 1px solid #2a2a2a; /* Separator for links */
		margin-left: 0; /* Ensure no inherited margin */
	}
	nav ul.nav-links li:last-child a {
		border-bottom: none;
	}

	nav ul.nav-links li a:hover,
	nav ul.nav-links li a.active {
		background-color: #2a2a2a; /* Hover effect for mobile links */
	}

	#hero h1 {
		font-size: 2.5em;
	}

	#hero p {
		font-size: 1.1em;
	}

	section h2 {
		font-size: 2em;
	}

	.footer-content {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.footer-col {
		margin-bottom: 20px;
	}

	.modal-content {
		flex-direction: column;
		text-align: center;
	}

	.modal-buttons {
		margin-top: 15px;
	}
}

@media (max-width: 480px) {
	body {
		font-size: 15px;
	}

	#hero h1 {
		font-size: 2em;
	}

	#hero p {
		font-size: 1em;
	}

	section h2 {
		font-size: 1.8em;
	}

	.cta-button,
	.cta-button-secondary {
		padding: 12px 25px;
		font-size: 1em;
	}

	#why-us .card h3 {
		font-size: 1.3em;
	}

	#featured-courses .course-item h3 {
		font-size: 1.4em;
	}

	.footer-col {
		min-width: 100%; /* Stack footer columns */
	}
}
