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

body {
	font-family: 'Arial', sans-serif;
	line-height: 1.6;
	color: #333;
	background-color: #f9f9f9;
}

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

/* Header */
header {
	background-color: #fff;
	padding: 1rem 0;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	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.5rem;
	font-weight: bold;
	color: #007bff;
	text-decoration: none;
}

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

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

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

header nav ul li a {
	text-decoration: none;
	color: #333;
	font-weight: 500;
	transition: color 0.3s ease;
}

header nav ul li a:hover {
	color: #0056b3;
}

/* Burger Menu */
.burger-menu {
	display: none; /* Hidden by default, shown on mobile */
	flex-direction: column;
	justify-content: space-around;
	width: 2rem;
	height: 2rem;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 0;
	z-index: 1100; /* Ensure it's above other header content */
	margin-left: 15px; /* Add some space from nav if screen is small but not mobile yet */
}

.burger-menu span {
	width: 2rem;
	height: 0.25rem;
	background: #333; /* Burger icon color */
	border-radius: 10px;
	transition: all 0.3s linear;
	position: relative;
	transform-origin: 1px; /* For the "X" animation */
}

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

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

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

/* Sections */
section {
	padding: 60px 0;
	text-align: center;
}

section:nth-child(even) {
	background-color: #fff;
}

section h2 {
	font-size: 2.5rem;
	margin-bottom: 20px;
	color: #333;
}

section p {
	font-size: 1.1rem;
	color: #555;
	max-width: 800px;
	margin: 0 auto 20px auto;
}

/* Full Width Section with Background Image */
.full-width-section {
	position: relative;
	color: #fff;
	min-height: 70vh;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 100px 20px; /* Increased padding for better text visibility */
	overflow: hidden; /* Ensures image doesn't overflow its container */
}

.full-width-section .hero-bg-image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover; /* Cover ensures image fills space, might crop */
	z-index: -1;
	filter: brightness(0.6); /* Darken image for text readability */
}

.full-width-section .hero-content {
	position: relative; /* Ensure content is above image */
	z-index: 1;
	max-width: 800px;
}

.full-width-section h1,
.full-width-section h2 {
	color: #fff;
	font-size: 3rem;
	margin-bottom: 20px;
}

.full-width-section p {
	color: #f0f0f0;
	font-size: 1.2rem;
	margin-bottom: 30px;
}

/* Text-Image Section (for Emoji sections) */
.text-image-section .content-wrapper {
	display: flex;
	flex-direction: column; /* Stack on small screens */
	align-items: center;
	gap: 30px;
	text-align: left;
}

.text-image-section .text-content {
	flex: 1;
}
.text-image-section .text-content h2 {
	text-align: center; /* Center section title */
	margin-bottom: 30px;
}
.text-image-section .text-content ul {
	list-style: none;
	padding-left: 0;
}
.text-image-section .text-content ul li {
	font-size: 1.1rem;
	margin-bottom: 15px;
	display: flex;
	align-items: flex-start;
}
.text-image-section .text-content ul li .emoji {
	font-size: 1.5rem;
	margin-right: 10px;
	line-height: 1.2;
}

.inline-decorative-image {
	width: 30px; /* Adjust size as needed */
	height: 30px;
	margin-right: 10px;
	vertical-align: middle;
}

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

.course-card {
	background-color: #fff;
	padding: 25px;
	border-radius: 8px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
	text-align: left;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.course-card img {
	width: 100%;
	height: auto;
	margin-bottom: 15px;
}

.course-card h3 {
	font-size: 1.5rem;
	margin-bottom: 10px;
	color: #007bff;
}

.course-card p {
	font-size: 1rem;
	color: #555;
	margin-bottom: 20px;
}

/* Course Details on courses.html */
#course-details .course-detail-item {
	background-color: #fff;
	padding: 30px;
	margin-bottom: 30px;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
	text-align: left;
}
#course-details .course-detail-item h3 {
	font-size: 1.4rem;
	color: #007bff;
	margin-bottom: 15px;
}

/* FAQ Section */
#faq .faq-item {
	background-color: #fff;
	padding: 20px; /* This padding applies to the whole item */
	margin-bottom: 15px;
	border-radius: 5px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
	text-align: left;
}

/* Styling for new accordion structure */
#faq .faq-question-heading {
	margin: 0; /* Remove default h3 margin */
	font-size: 1.3rem; /* Keep original font size from h3 */
	color: #007bff; /* Keep original color */
}

#faq .faq-trigger {
	background-color: transparent;
	border: none;
	color: inherit; /* Inherit color from parent h3 or .faq-question-heading */
	cursor: pointer;
	font-size: inherit; /* Inherit font size */
	font-weight: bold; /* Typically h3s are bold */
	padding: 0; /* Padding is handled by .faq-item */
	text-align: left;
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

#faq .faq-trigger:hover,
#faq .faq-trigger:focus {
	outline: none; /* Or a custom focus style */
	/* Optional: text-decoration: underline; */
}

#faq .faq-icon {
	font-size: 1.5rem; /* Make icon a bit larger */
	font-weight: bold;
	margin-left: 10px;
	transition: transform 0.2s ease-in-out;
}

#faq .faq-trigger[aria-expanded='true'] .faq-icon {
	/* transform: rotate(45deg); /* If using '+' that visually forms 'x' */
	/* content: "-"; Will be handled by JS */
}

#faq .faq-answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease-out, margin-top 0.3s ease-out;
	/* Paragraphs inside .faq-answer will use their default styling for text color and line-height */
}

#faq .faq-answer.is-open {
	max-height: 500px; /* Adjust if answers can be very long */
	margin-top: 15px; /* Space between question and answer content */
}

#faq .faq-answer p {
	/* Ensure p inside faq-answer doesn't have excessive bottom margin */
	margin-bottom: 0;
	font-size: 1rem; /* Match original p style if needed, or inherit */
	color: #555; /* Match original p style if needed, or inherit */
}

/* Buttons */
.btn {
	display: inline-block;
	padding: 12px 25px;
	text-decoration: none;
	border-radius: 5px;
	font-weight: bold;
	transition: background-color 0.3s ease, transform 0.2s ease;
	cursor: pointer;
	border: none;
}

.btn-primary {
	background-color: #007bff;
	color: #fff;
	margin-bottom: 5px;
}

.btn-primary:hover {
	background-color: #0056b3;
	transform: translateY(-2px);
}

.btn-secondary {
	background-color: #6c757d;
	color: #fff;
}

.btn-secondary:hover {
	background-color: #545b62;
	transform: translateY(-2px);
}

/* Footer */
footer {
	background-color: #2c3e50;
	color: #ecf0f1;
	padding: 40px 0 20px;
}

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

.footer-content h4 {
	font-size: 1.2rem;
	margin-bottom: 15px;
	color: #fff;
}

.footer-content p,
.footer-content ul li a {
	color: #bdc3c7;
	text-decoration: none;
	font-size: 0.95rem;
}

.footer-content p a {
	color: #bdc3c7;
	text-decoration: none;
	font-size: 0.95rem;
}

.footer-content p a:hover {
	text-decoration: underline;
}

.footer-content ul {
	list-style: none;
}
.footer-content ul li {
	margin-bottom: 8px;
}
.footer-content ul li a:hover {
	color: #fff;
	text-decoration: underline;
}

.form-status {
	margin-top: 10px;
	font-size: 0.9em;
}

.copyright {
	text-align: center;
	padding-top: 20px;
	border-top: 1px solid #34495e;
	font-size: 0.9rem;
	color: #bdc3c7;
}

/* Cookie Modal */
.cookie-modal {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: rgba(0, 0, 0, 0.9);
	color: #fff;
	padding: 20px;
	z-index: 2000;
	display: none; /* Hidden by default */
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

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

.cookie-modal-content p {
	margin: 0;
	flex-grow: 1;
	font-size: 0.95rem;
}
.cookie-modal-content p a {
	color: #00adee;
	text-decoration: underline;
}

.cookie-modal-buttons button {
	margin-left: 10px;
}

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

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

/* Contact Form Section on index.html */
#contact-us {
}
#contact-us .container h2 {
	margin-bottom: 15px;
}
#contact-us .container p {
	margin-bottom: 30px;
	font-size: 1.1rem;
	color: #555;
}

#contact-us form {
	max-width: 700px;
	margin: 0 auto;
	text-align: left;
	background-color: #ffffff;
	padding: 30px;
	border-radius: 8px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#contact-us input[type='text'],
#contact-us input[type='email'],
#contact-us textarea {
	width: 100%;
	padding: 12px 15px;
	margin-bottom: 20px;
	border-radius: 5px;
	border: 1px solid #ddd;
	background-color: #f9f9f9;
	color: #333;
	font-size: 1rem;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#contact-us input[type='text']:focus,
#contact-us input[type='email']:focus,
#contact-us textarea:focus {
	border-color: #007bff;
	box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
	outline: none;
}

#contact-us textarea {
	resize: vertical;
	min-height: 120px;
}
#contact-us input::placeholder,
#contact-us textarea::placeholder {
	color: #888;
}

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

#contact-us .form-checkbox-group input[type='checkbox'] {
	width: auto; /* Override default full width for inputs */
	margin-right: 10px;
	appearance: checkbox; /* Ensure it looks like a checkbox */
	-webkit-appearance: checkbox; /* For Safari */
	-moz-appearance: checkbox; /* For Firefox */
}

#contact-us .form-checkbox-group label {
	font-size: 0.9rem;
	color: #555;
	flex-grow: 1; /* Allow label to take available space */
}

#contact-us button[type='submit'] {
	display: block;
	width: auto;
	min-width: 180px;
	margin: 0 auto;
	padding: 12px 30px;
}
#contact-us .form-status {
	margin-top: 20px;
	text-align: center;
	font-size: 0.95em;
	min-height: 1.2em;
}

/* Form Submission Modal */
.form-submission-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.7);
	display: none; /* Hidden by default */
	justify-content: center;
	align-items: center;
	z-index: 3000;
	opacity: 0;
	transition: opacity 0.3s ease-in-out;
}

.form-submission-modal.show {
	display: flex;
	opacity: 1;
}

.form-submission-modal-content {
	background-color: #fff;
	padding: 30px 40px;
	border-radius: 8px;
	text-align: center;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 250px;
}

#form-submission-status-text {
	font-size: 1.1rem;
	color: #333;
	margin-top: 15px;
}

/* Loader animation */
.loader {
	border: 5px solid #f3f3f3; /* Light grey */
	border-top: 5px solid #007bff; /* Blue */
	border-radius: 50%;
	width: 40px;
	height: 40px;
	animation: spin 1s linear infinite;
	display: none; /* Hidden by default, shown via JS */
}

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

/* Legal Pages Basic Styling */
.legal-page-container {
	width: 80%;
	max-width: 900px;
	margin: 40px auto;
	padding: 30px;
	background-color: #fff;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	border-radius: 8px;
}

.legal-page-container h1 {
	font-size: 1.5rem;
	color: #007bff;
	margin-bottom: 20px;
	text-align: center;
}
.legal-page-container h2 {
	font-size: 1.5rem;
	color: #333;
	margin-top: 30px;
	margin-bottom: 10px;
}
.legal-page-container p,
.legal-page-container ul li {
	font-size: 1rem;
	line-height: 1.7;
	color: #444;
	margin-bottom: 15px;
}
.legal-page-container ul {
	padding-left: 20px;
	margin-bottom: 15px;
}

/* Responsive Design */
@media (max-width: 992px) {
	.full-width-section h1,
	.full-width-section h2 {
		font-size: 2.5rem;
	}
	.full-width-section p {
		font-size: 1.1rem;
	}
	section h2 {
		font-size: 2rem;
	}
}

@media (max-width: 768px) {
	.legal-page-container {
		width: 90%;
	}

	.text-image-section .text-content ul li {
		flex-direction: column;
	}

	header .container {
		flex-direction: row; /* Keep logo and burger on the same line */
		/* text-align: center; Removed as align-items: center is enough */
	}
	header nav {
		display: none; /* Hide nav by default on mobile */
		flex-direction: column;
		align-items: center;
		position: absolute;
		top: 100%; /* Position below the header (relative to header height) */
		left: 0;
		width: 100%;
		background-color: #fff;
		box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
		padding: 1rem 0;
		border-top: 1px solid #eee;
		z-index: 1050; /* Below burger, above page content */
	}

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

	header nav ul {
		flex-direction: column;
		width: 100%;
		align-items: center; /* Center list items */
		margin-top: 0;
		/* justify-content: center; Removed as flex-direction is column */
	}

	header nav ul li {
		margin-left: 0;
		margin-bottom: 1rem;
		width: 90%; /* Give some padding effect */
		text-align: center;
	}
	header nav ul li:last-child {
		margin-bottom: 0;
	}

	header nav ul li a {
		padding: 0.75rem 1rem; /* Slightly larger tap target */
		display: block;
		width: 100%;
		border-radius: 4px; /* Optional: slightly rounded links background on hover */
	}
	header nav ul li a:hover {
		background-color: #f0f0f0; /* Subtle hover for mobile links */
	}

	.burger-menu {
		display: flex; /* Show burger menu on mobile */
		/* order: 3; Not strictly needed with current flex setup but harmless */
		/* margin-left: auto; This pushes burger to the right, which is good */
	}

	.full-width-section {
		min-height: 50vh;
		padding: 60px 15px;
	}
	.full-width-section h1,
	.full-width-section h2 {
		font-size: 2rem;
	}
	.full-width-section p {
		font-size: 1rem;
	}

	.text-image-section .content-wrapper {
		flex-direction: column;
	}
	.text-image-section .image-content img {
		max-width: 80%;
		margin-bottom: 20px;
	}

	.footer-content {
		grid-template-columns: 1fr;
		text-align: center;
		gap: 0;
	}
	.footer-content > div {
		margin-bottom: 20px;
	}

	.cookie-modal-content {
		flex-direction: column;
		text-align: center;
	}
	.cookie-modal-content p {
		margin-bottom: 15px;
	}
	.cookie-modal-buttons {
		width: 100%;
		display: flex;
		justify-content: space-around;
	}
}

@media (max-width: 480px) {
	section {
		padding: 40px 0;
	}
	section h2 {
		font-size: 1.8rem;
	}
	section p {
		font-size: 1rem;
	}
	.btn {
		padding: 10px 20px;
		font-size: 0.9rem;
	}
	.course-card h3 {
		font-size: 1.3rem;
	}
	.logo {
		font-size: 1.3rem;
	}
}
