/* General Styles */
body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica,
		Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
	margin: 0;
	background-color: #121212; /* Dark background */
	color: #e0e0e0; /* Light text */
	line-height: 1.6;
	font-size: 16px;
}

*,
*::after,
*::before {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

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

h1,
h2,
h3,
h4 {
	color: #ffffff;
	margin-top: 0;
}

h1 {
	font-size: 2.8rem;
	margin-bottom: 1rem;
}
h2 {
	font-size: 2.2rem;
	margin-bottom: 1rem;
	text-align: center;
}
h3 {
	font-size: 1.5rem;
	margin-bottom: 0.5rem;
}
p {
	margin-bottom: 1rem;
}

a {
	color: #4dabf7; /* Light blue links */
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

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

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

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border-width: 0;
}

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

header nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	position: relative;
}

.logo-link {
	font-size: 1.2rem;
	font-weight: bold;
	color: #ffffff;
	display: flex;
	align-items: center;
}
.logo-link:hover {
	text-decoration: none;
}

.logo-img {
	height: 40px;
	margin-right: 10px;
}

header nav ul#primary-navigation {
	display: flex;
	gap: 1.5rem;
	margin: 0;
}

header nav ul#primary-navigation li a {
	color: #e0e0e0;
	font-weight: 500;
}

header nav ul#primary-navigation li a:hover {
	color: #4dabf7;
	text-decoration: none;
}

.mobile-nav-toggle {
	display: none;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 0.5rem;
	z-index: 1002;
}

.hamburger-icon {
	width: 24px;
	height: 20px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	position: relative;
}

.hamburger-icon .line {
	display: block;
	height: 3px;
	width: 100%;
	background-color: #e0e0e0;
	border-radius: 3px;
	transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.mobile-nav-toggle.nav-open .line1 {
	transform: translateY(8px) rotate(45deg);
}
.mobile-nav-toggle.nav-open .line2 {
	opacity: 0;
}
.mobile-nav-toggle.nav-open .line3 {
	transform: translateY(-9px) rotate(-45deg);
}

/* Sections General Styling */
main section {
	padding: 60px 0;
	border-bottom: 1px solid #282828;
}

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

.animated-section {
	opacity: 0;
	transform: scale(0.95) translateY(20px);
	transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Hero Section */
.hero-section {
	background-size: cover;
	background-position: center;
	color: #fff;
	text-align: center;
	padding: 100px 0;
	min-height: 70vh;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}
.hero-section::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.6);
}
.hero-section .container {
	position: relative;
	z-index: 1;
}
.hero-section h1 {
	font-size: 3.5rem;
	margin-bottom: 1.5rem;
}
.hero-section p {
	font-size: 1.25rem;
	margin-bottom: 2rem;
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
}

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

.btn-primary {
	background-color: #007bff;
	color: #fff;
}

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

.btn-secondary {
	margin-top: 5px;
	background-color: #6c757d;
	color: #fff;
}

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

/* Why Choose Us Section - Cards */
#why-choose-us h2,
#courses h2,
#success-stories h2,
#learning-philosophy h2,
#faq-contact h2 {
	margin-bottom: 3rem;
}
#why-choose-us p:first-of-type {
	text-align: center;
	font-size: 1.1rem;
	color: #b0b0b0;
	margin-bottom: 3rem;
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
}

.cards-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
}

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

.card:hover {
	transform: translateY(-10px);
	box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
}

.card-icon {
	width: 100%;
	height: auto;
	margin-bottom: 1rem;
}

.card h3 {
	color: #4dabf7;
	margin-bottom: 0.8rem;
}

/* Courses Section */
.courses-section {
	background-size: cover;
	background-position: center;
	position: relative;
	padding: 80px 0;
}
.courses-section::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(18, 18, 18, 0.85);
}
.courses-section .container {
	position: relative;
	z-index: 1;
	text-align: center;
}
.courses-section p:first-of-type {
	font-size: 1.1rem;
	color: #b0b0b0;
	margin-bottom: 3rem;
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
}
.course-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 2rem;
	text-align: left;
	margin-bottom: 2.5rem;
}
.course-list li {
	background-color: #2a2a2a;
	padding: 1.5rem;
	border-radius: 8px;
	border-left: 4px solid #007bff;
}
.course-list h3 {
	color: #4dabf7;
	font-size: 1.3rem;
}

/* Page 2 Specific Styles */
/* Success Stories Section */
.success-stories-section .container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	align-items: center;
}
.success-content h2 {
	text-align: left;
}
.testimonial {
	background-color: #1e1e1e;
	padding: 1.5rem;
	border-radius: 8px;
	margin-bottom: 1.5rem;
	border-left: 4px solid #17a2b8;
}
.testimonial blockquote {
	margin: 0 0 0.5rem 0;
	font-style: italic;
	color: #d0d0d0;
}
.testimonial .author {
	text-align: right;
	font-weight: bold;
	color: #4dabf7;
}
.success-image-container {
	text-align: center;
}
.success-image {
	border-radius: 10px;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
	max-width: 100%;
}

/* Learning Philosophy Section */
.learning-philosophy-section h2 {
	text-align: center;
}
.learning-philosophy-section p:first-of-type {
	text-align: center;
	font-size: 1.1rem;
	color: #b0b0b0;
	margin-bottom: 2rem;
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
}
.learning-philosophy-section ul {
	max-width: 800px;
	margin: 0 auto 2rem auto;
	padding-left: 20px;
}
.learning-philosophy-section ul li {
	list-style: disc;
	margin-bottom: 0.8rem;
	font-size: 1.05rem;
}
.learning-philosophy-section ul li strong {
	color: #4dabf7;
}
.learning-philosophy-section .btn {
	display: block;
	width: fit-content;
	margin: 2rem auto 0;
}

/* FAQ & Contact Section */
#faq-contact .container h2 {
	text-align: left;
}
.faq-contact-grid {
	gap: 20px;
	display: grid;
	grid-template-columns: 1fr;
}
@media (min-width: 992px) {
	.faq-contact-grid {
		grid-template-columns: 1fr 1fr;
	}
}

.faq-item {
	margin-bottom: 1.5rem;
	border-bottom: 1px solid #282828;
	padding-bottom: 1.5rem;
}
.faq-item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}
.faq-item h3 {
	color: #4dabf7;
	margin-bottom: 0.5rem;
	cursor: pointer;
	position: relative; /* For positioning the pseudo-element */
	padding-right: 25px; /* Space for the icon */
}

.faq-item p {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease-out, padding-top 0.3s ease-out,
		padding-bottom 0.3s ease-out, margin-top 0.3s ease-out;
	margin-top: 0;
	padding-top: 0;
	padding-bottom: 0;
	color: #c0c0c0; /* Ensure text color is consistent */
}

.faq-item.active p {
	max-height: 500px; /* Adjust as needed, should be larger than any possible answer content */
	margin-top: 0.5rem; /* Add some space between question and answer */
	padding-top: 0.5rem;
	padding-bottom: 1rem; /* Original padding-bottom for .faq-item was 1.5rem, question margin-bottom is 0.5rem, so this makes it consistent */
}

.faq-item h3::after {
	content: '+';
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.5rem;
	font-weight: bold;
	color: #4dabf7;
	transition: transform 0.3s ease-out;
}

.faq-item.active h3::after {
	content: '−'; /* Unicode minus sign */
}

/* Contact Form */
.contact-form-section p:first-of-type {
	font-size: 1.05rem;
	color: #b0b0b0;
	margin-bottom: 1.5rem;
}
.form-group {
	margin-bottom: 1.5rem;
}
.form-group label {
	display: block;
	margin-bottom: 0.5rem;
	color: #c0c0c0;
	font-weight: 500;
}
.form-group input[type='text'],
.form-group input[type='email'],
.form-group textarea {
	width: 100%;
	padding: 0.8rem;
	border: 1px solid #333;
	background-color: #2a2a2a;
	color: #e0e0e0;
	border-radius: 5px;
	box-sizing: border-box;
}
.form-group input[type='text']:focus,
.form-group input[type='email']:focus,
.form-group textarea:focus {
	outline: none;
	border-color: #007bff;
	box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}
.form-group textarea {
	resize: vertical;
	min-height: 100px;
}

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

.form-group-checkbox input[type='checkbox'] {
	margin-right: 0.5rem;
	width: auto;
	accent-color: #007bff;
}

.form-group-checkbox label {
	margin-bottom: 0;
	font-weight: normal;
	font-size: 0.9rem;
	color: #c0c0c0;
}

.form-feedback-message {
	margin-top: 1rem;
	color: #28a745;
	font-weight: bold;
}

/* Footer */
footer {
	background-color: #1e1e1e;
	color: #a0a0a0;
	padding: 40px 0 20px;
	border-top: 1px solid #333;
}

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

.footer-content h4 {
	color: #e0e0e0;
	margin-bottom: 1rem;
	font-size: 1.2rem;
}

.footer-content p,
.footer-content ul li {
	margin-bottom: 0.5rem;
}

.footer-content ul li a {
	color: #a0a0a0;
}

.footer-content ul li a:hover {
	color: #4dabf7;
}

.footer-contact a {
	color: #a0a0a0;
}
.footer-contact a:hover {
	color: #4dabf7;
}

.copyright {
	text-align: center;
	padding-top: 1.5rem;
	border-top: 1px solid #333;
	font-size: 0.9rem;
}

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

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

.cookie-modal-content p {
	margin: 0;
	margin-right: 20px;
	font-size: 0.95rem;
}
.cookie-modal-content p a {
	color: #4dabf7;
	font-weight: bold;
}

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

/* Legal Pages (Generic Styling) */
.legal-page-container {
	padding: 40px 0;
}
.legal-page-container h1 {
	font-size: 1.5rem;
	margin-bottom: 2rem;
	color: #4dabf7;
	text-align: center;
}
.legal-page-container h2 {
	font-size: 1.5rem;
	margin-top: 2rem;
	margin-bottom: 1rem;
	color: #e0e0e0;
	border-bottom: 1px solid #333;
	padding-bottom: 0.5rem;
	text-align: left;
}
.legal-page-container p,
.legal-page-container ul li {
	margin-bottom: 1rem;
	color: #c0c0c0;
}
.legal-page-container ul {
	padding-left: 20px;
}
.legal-page-container ul li {
	list-style: disc;
}

/* 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: flex; /* Use flex for initial centering attempt */
	justify-content: center;
	align-items: center;
	z-index: 3000; /* Higher than cookie modal and header */
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0s 0.3s linear; /* Delay visibility change */
}

.form-submission-modal.visible {
	opacity: 1;
	visibility: visible;
	transition: opacity 0.3s ease, visibility 0s 0s linear;
}

.form-submission-modal-content {
	background-color: #2a2a2a;
	padding: 30px 40px;
	border-radius: 8px;
	text-align: center;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
	color: #e0e0e0;
	transform: scale(0.9);
	transition: transform 0.3s ease;
}

.form-submission-modal.visible .form-submission-modal-content {
	transform: scale(1);
}

.form-submission-modal-content p {
	margin-top: 20px;
	font-size: 1.1rem;
	margin-bottom: 0;
}

.form-loader {
	border: 6px solid #444; /* Darker grey for loader track */
	border-top: 6px solid #007bff; /* Blue for spinner */
	border-radius: 50%;
	width: 50px;
	height: 50px;
	animation: spin 1s linear infinite;
	margin: 0 auto;
}

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

/* Responsive Adjustments */
@media (max-width: 991px) {
	.hero-section h1 {
		font-size: 2.8rem;
	}
	.hero-section p {
		font-size: 1.1rem;
	}

	.success-stories-section .container {
		grid-template-columns: 1fr;
	}
	.success-image-container {
		order: -1;
		margin-bottom: 2rem;
	}
	.success-content h2 {
		text-align: center;
	}
}

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

	/* Adjust header nav for mobile */
	header nav {
		/* flex-direction: row; default */
		/* align-items: center; default */
		/* justify-content: space-between; default */
		/* No changes needed here as defaults are fine */
	}
	.logo-link {
		margin-bottom: 0;
	}

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

	header nav ul#primary-navigation {
		display: none;
		flex-direction: column;
		position: absolute;
		top: 100%;
		left: 0;
		width: 100%;
		background-color: #1e1e1e;
		padding: 1rem 0;
		box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
		border-top: 1px solid #333;
		align-items: center;
		gap: 0;
		z-index: 1001;
	}

	header nav ul#primary-navigation.nav-open {
		display: flex;
	}

	header nav ul#primary-navigation li {
		width: 100%;
		text-align: center;
	}
	header nav ul#primary-navigation li a {
		display: block;
		padding: 0.8rem 1rem;
		width: 100%;
		font-size: 1rem;
		color: #e0e0e0;
	}
	header nav ul#primary-navigation li a:hover {
		background-color: #333;
		color: #4dabf7;
		text-decoration: none;
	}

	.cards-container {
		grid-template-columns: 1fr;
	}
	.course-list {
		grid-template-columns: 1fr;
	}

	.footer-content {
		grid-template-columns: 1fr;
		text-align: center;
	}
	.footer-content div {
		margin-bottom: 1rem;
	}
	.footer-content ul {
		padding-left: 0;
	}

	.cookie-modal-content {
		flex-direction: column;
		text-align: center;
	}
	.cookie-modal-content p {
		margin-right: 0;
		margin-bottom: 15px;
	}
	.cookie-buttons {
		display: flex;
		justify-content: center;
		width: 100%;
	}
	.cookie-buttons button {
		flex-grow: 1;
		margin: 0 5px;
	}
}

@media (min-width: 769px) {
	.mobile-nav-toggle {
		display: none;
	}
	header nav ul#primary-navigation {
		display: flex !important;
		flex-direction: row;
		position: static;
		width: auto;
		background-color: transparent;
		padding: 0;
		box-shadow: none;
		border-top: none;
		align-items: center;
		gap: 1.5rem;
	}
	header nav ul#primary-navigation li {
		width: auto;
	}
	header nav ul#primary-navigation li a {
		display: inline;
		padding: 0;
		font-size: 1rem;
	}
}

@media (max-width: 480px) {
	.hero-section h1 {
		font-size: 2rem;
	}
	.hero-section p {
		font-size: 1rem;
	}
	.btn {
		padding: 10px 20px;
		font-size: 0.9rem;
	}
	body {
		font-size: 15px;
	}
	.logo-img {
		height: 30px;
	}
	.logo-link {
		font-size: 1.5rem;
	}
}
