/* Reset and Global Styles */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

:root {
	--primary-color: #007bff;
	--primary-hover-color: #0056b3;
	--secondary-color: #6c757d;
	--secondary-hover-color: #545b62;
	--light-bg-color: #f8f9fa;
	--dark-text-color: #343a40;
	--light-text-color: #ffffff;
	--border-color: #dee2e6;
	--card-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	--font-family: 'Poppins', sans-serif;
}

body {
	font-family: var(--font-family);
	line-height: 1.6;
	color: var(--dark-text-color);
	background-color: var(--light-text-color);
	overflow-x: hidden;
}

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

h1,
h2,
h3,
h4 {
	margin-bottom: 0.75rem;
	font-weight: 600;
	line-height: 1.3;
}

h1 {
	font-size: 2.8rem;
}

h2 {
	font-size: 2.2rem;
	color: var(--primary-color);
	margin-bottom: 1.5rem;
}

h3 {
	font-size: 1.6rem;
}

p {
	margin-bottom: 1rem;
	font-size: 1rem;
	line-height: 1.7;
}

a {
	color: var(--primary-color);
	text-decoration: none;
	transition: color 0.3s ease;
}

a:hover {
	color: var(--primary-hover-color);
	text-decoration: underline;
}

img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

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

/* Header */
header {
	background-color: var(--light-text-color);
	padding: 1rem 0;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
	position: sticky;
	top: 0;
	z-index: 1000;
	border-bottom: 1px solid var(--border-color);
}

header .container {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.logo {
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--primary-color);
	text-decoration: none;
}

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

.logo:hover {
	text-decoration: none;
	color: var(--primary-hover-color);
}

nav ul {
	display: flex;
}

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

nav ul li a {
	color: var(--dark-text-color);
	font-weight: 500;
	padding: 0.5rem 0;
	text-decoration: none;
	position: relative;
}

nav ul li a::after {
	content: '';
	position: absolute;
	width: 0;
	height: 2px;
	bottom: -2px;
	left: 0;
	background-color: var(--primary-color);
	transition: width 0.3s ease;
}

nav ul li a:hover::after,
nav ul li a.active::after {
	width: 100%;
}

/* Burger Menu */
.burger-menu {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 10px;
	z-index: 1010;
	position: relative;
}

.burger-bar {
	display: block;
	width: 25px;
	height: 3px;
	background-color: var(--dark-text-color);
	margin: 5px 0;
	transition: transform 0.3s ease, opacity 0.3s ease;
	border-radius: 3px;
}

/* Burger Menu Active State (transform to X) */
.burger-menu.burger-open .burger-bar:nth-child(1) {
	transform: translateY(8px) rotate(45deg);
}
.burger-menu.burger-open .burger-bar:nth-child(2) {
	opacity: 0;
}
.burger-menu.burger-open .burger-bar:nth-child(3) {
	transform: translateY(-8px) rotate(-45deg);
}

/* Sections */
section {
	padding: 80px 0;
}

.full-height-section {
	min-height: calc(100vh - 80px);
	display: flex;
	align-items: center;
	justify-content: center;
}

#hero {
	background-color: var(--light-bg-color);
	text-align: left;
}

#hero .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
}

.hero-content {
	flex-basis: 55%;
}

.hero-image {
	flex-basis: 40%;
	text-align: center;
}

.hero-image img {
	width: 100%;
	height: auto;
	border-radius: 12px;
	box-shadow: var(--card-shadow);
}

#why-literacy .container,
#what-we-offer .container,
#get-started-cta .container {
	display: flex;
	align-items: center;
	gap: 3rem;
}

#why-literacy .section-image,
#what-we-offer .section-image,
#get-started-cta .section-image {
	flex: 1;
	max-width: 45%;
}
#why-literacy .section-content,
#what-we-offer .section-content,
#get-started-cta .section-content {
	flex: 1;
}

/* Alternate section background for visual rhythm */
section:nth-of-type(even):not(#hero):not(#contact-form-section) {
	background-color: var(--light-bg-color);
}
#testimonials.text-only-section {
	background-color: var(--light-bg-color);
}

/* Buttons */
.btn {
	display: inline-block;
	padding: 12px 28px;
	font-size: 1rem;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	border-radius: 25px;
	transition: background-color 0.3s ease, transform 0.2s ease,
		box-shadow 0.3s ease;
	cursor: pointer;
	border: none;
}
.btn:hover {
	text-decoration: none;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-primary {
	background-color: var(--primary-color);
	color: var(--light-text-color);
}

.btn-primary:hover {
	background-color: var(--primary-hover-color);
	color: var(--light-text-color);
}

.btn-secondary {
	background-color: var(--secondary-color);
	color: var(--light-text-color);
}

.btn-secondary:hover {
	background-color: var(--secondary-hover-color);
	color: var(--light-text-color);
}

/* Course Catalog */
#course-catalog h2 {
	text-align: center;
}
#course-catalog > .container > p {
	text-align: center;
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 3rem;
}

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

.course-card {
	background-color: var(--light-text-color);
	border-radius: 12px;
	box-shadow: var(--card-shadow);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.course-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.course-card img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	border-radius: 12px 12px 0 0;
}

.course-card h3 {
	padding: 1rem 1.5rem 0.5rem;
	color: var(--primary-color);
	font-size: 1.4rem;
}

.course-card p {
	padding: 0 1.5rem;
	flex-grow: 1;
	font-size: 0.95rem;
	margin-bottom: 1rem;
}

.course-card .btn {
	margin: 0 1.5rem 1.5rem;
	align-self: flex-start;
}

/* Testimonials */
#testimonials h2 {
	text-align: center;
}
.testimonial-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
	margin-top: 2rem;
}

.testimonial-item {
	background-color: var(--light-text-color);
	padding: 2rem;
	border-radius: 12px;
	box-shadow: var(--card-shadow);
	border-left: 5px solid var(--primary-color);
}

.testimonial-item p {
	font-style: italic;
	margin-bottom: 1rem;
	color: #555;
}

.testimonial-item span {
	display: block;
	font-weight: 600;
	color: var(--dark-text-color);
	text-align: right;
}

/* FAQ Section */
#faq-section h2 {
	text-align: center;
}
.faq-item {
	background-color: var(--light-text-color);
	margin-bottom: 1.5rem;
	padding: 1.5rem 2rem;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
	border-left: 4px solid var(--secondary-color);
}
.faq-item:last-child {
	margin-bottom: 0;
}

.faq-item h3 {
	font-size: 1.3rem;
	color: var(--primary-color);
	margin-bottom: 0.5rem;
}

/* Contact Form Section */
#contact-form-section {
	background-color: var(--light-bg-color);
}
#contact-form-section h2 {
	text-align: center;
}
#contact-form-section > .container > p {
	text-align: center;
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 2rem;
}

.contact-form {
	max-width: 700px;
	margin: 0 auto;
	background-color: var(--light-text-color);
	padding: 2.5rem;
	border-radius: 12px;
	box-shadow: var(--card-shadow);
}

.form-group {
	margin-bottom: 1.5rem;
}

.form-group label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 500;
}

.form-group input[type='text'],
.form-group input[type='email'],
.form-group textarea {
	width: 100%;
	padding: 12px;
	border: 1px solid var(--border-color);
	border-radius: 6px;
	font-family: inherit;
	font-size: 1rem;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input[type='text']:focus,
.form-group input[type='email']:focus,
.form-group textarea:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-group textarea {
	resize: vertical;
	min-height: 120px;
}

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

.form-group-checkbox input[type='checkbox'] {
	margin-right: 0.75rem;
	width: auto;
	appearance: checkbox;
	-webkit-appearance: checkbox;
	-moz-appearance: checkbox;
	height: 1.1em;
	width: 1.1em;
	cursor: pointer;
}

.form-group-checkbox label {
	margin-bottom: 0;
	font-weight: normal;
	font-size: 0.95rem;
	cursor: pointer;
}

.contact-form .btn {
	width: 100%;
	padding: 15px;
}

.form-feedback-message {
	margin-top: 1rem;
	padding: 1rem;
	border-radius: 6px;
	font-weight: 500;
}
.form-feedback-message.success {
	background-color: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}
.form-feedback-message.error {
	background-color: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

/* Form Submission Modal */
.form-submission-modal {
	display: none;
	position: fixed;
	z-index: 2000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0, 0, 0, 0.6);
	align-items: center;
	justify-content: center;
}

.form-submission-modal.active {
	display: flex;
}

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

.form-submission-loader {
	border: 5px solid var(--light-bg-color);
	border-top: 5px solid var(--primary-color);
	border-radius: 50%;
	width: 40px;
	height: 40px;
	animation: spin 1s linear infinite;
	margin-bottom: 20px;
}

.form-submission-modal-content p {
	margin-bottom: 0;
	font-size: 1.1rem;
	color: var(--dark-text-color);
}

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

/* Footer */
footer {
	background-color: var(--dark-text-color);
	color: #adb5bd;
	padding: 50px 0 30px;
}

.footer-columns {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 2rem;
	margin-bottom: 2rem;
}

.footer-col {
	flex: 1;
	min-width: 200px;
}

.footer-col h4 {
	color: var(--light-text-color);
	margin-bottom: 1rem;
	font-size: 1.2rem;
}

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

.footer-col a {
	color: #adb5bd;
	text-decoration: none;
}

.footer-col a:hover {
	color: var(--light-text-color);
	text-decoration: underline;
}

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

/* Cookie Consent Modal */
.cookie-modal {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: rgba(33, 37, 41, 0.95);
	color: var(--light-text-color);
	padding: 25px 0;
	z-index: 2000;
	box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.2);
	transform: translateY(100%);
	transition: transform 0.5s ease-in-out;
}

.cookie-modal.active {
	transform: translateY(0);
}

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

.cookie-modal-content p {
	margin-bottom: 0;
	margin-right: 1.5rem;
	font-size: 0.95rem;
}

.cookie-modal-content p a {
	color: var(--primary-color);
	font-weight: 500;
}
.cookie-modal-content p a:hover {
	color: var(--primary-hover-color);
}

.cookie-modal-content .btn {
	padding: 10px 20px;
	margin-left: 10px;
}

/* Legal Pages */
.legal-page {
	padding: 60px 0;
}
.legal-page .container {
	max-width: 800px;
}
.legal-page h1 {
	font-size: 1.5rem;
	color: var(--primary-color);
	margin-bottom: 1rem;
	text-align: center;
}
.legal-page p em {
	display: block;
	text-align: center;
	margin-bottom: 2.5rem;
	color: var(--secondary-color);
	font-size: 0.9rem;
}
.legal-page h2 {
	font-size: 1.5rem;
	color: var(--dark-text-color);
	margin-top: 2.5rem;
	margin-bottom: 1rem;
	border-bottom: 1px solid var(--border-color);
	padding-bottom: 0.5rem;
}
.legal-page ul {
	list-style: disc;
	padding-left: 25px;
	margin-bottom: 1rem;
}
.legal-page ul li {
	margin-bottom: 0.5rem;
}
.legal-page footer {
	margin-top: 4rem;
}

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

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

/* Responsive Design */
@media (max-width: 992px) {
	h1 {
		font-size: 2.4rem;
	}
	h2 {
		font-size: 1.7rem;
	}
	h3 {
		font-size: 1.5rem;
	}

	#hero .container,
	#why-literacy .container,
	#what-we-offer .container,
	#get-started-cta .container {
		flex-direction: column;
		text-align: center;
	}

	#why-literacy .container > div,
	#what-we-offer .container > div,
	#get-started-cta .container > div {
		max-width: 100%;
	}

	#why-literacy .section-image,
	#what-we-offer .section-image,
	#get-started-cta .section-image {
		margin-bottom: 2rem;
	}

	/* Ensure image is first on mobile for why-literacy and get-started-cta */
	#why-literacy .container,
	#get-started-cta .container {
		flex-direction: column-reverse;
	}
	#what-we-offer .container {
		flex-direction: column;
	}

	.hero-content {
		margin-bottom: 2rem;
	}
}

@media (max-width: 768px) {
	header .container {
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
	}
	.logo {
		margin-bottom: 0;
	}

	.burger-menu {
		display: block;
	}

	header nav {
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100vh;
		background-color: rgba(255, 255, 255, 0.98);
		backdrop-filter: blur(5px);
		padding-top: 80px;
		transform: translateX(-100%);
		transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
		z-index: 1005;
		overflow-y: auto;
	}

	header nav.nav-open {
		transform: translateX(0);
	}

	header nav ul {
		flex-direction: column;
		align-items: center;
		width: 100%;
		padding-top: 2rem;
	}

	header nav ul li {
		margin: 0;
		width: 100%;
		text-align: center;
	}

	header nav ul li a {
		display: block;
		padding: 1.5rem 1rem;
		font-size: 1.4rem;
		color: var(--primary-color);
		border-bottom: 1px solid var(--border-color);
		width: 100%;
	}
	header nav ul li:last-child a {
		border-bottom: none;
	}

	header nav ul li a::after {
		display: none;
	}
	header nav ul li a:hover,
	header nav ul li a.active {
		background-color: var(--primary-color);
		color: var(--light-text-color);
	}

	body.no-scroll {
		overflow: hidden;
	}

	.full-height-section {
		min-height: auto;
		padding: 60px 0;
	}
	#hero {
		padding: 60px 0;
	}

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

	.footer-columns {
		flex-direction: column;
		text-align: center;
	}
	.footer-col {
		margin-bottom: 2rem;
	}
	.footer-col:last-child {
		margin-bottom: 0;
	}

	.cookie-modal-content {
		flex-direction: column;
		text-align: center;
	}
	.cookie-modal-content p {
		margin-bottom: 1rem;
		margin-right: 0;
	}
	.cookie-modal-content .btn {
		margin: 5px;
	}
}

@media (max-width: 480px) {
	h1 {
		font-size: 2rem;
	}
	h2 {
		font-size: 1.7rem;
	}
	h3 {
		font-size: 1.3rem;
	}
	p {
		font-size: 0.95rem;
	}

	.btn {
		padding: 10px 20px;
		font-size: 0.9rem;
	}
	.contact-form {
		padding: 1.5rem;
	}
}
