/* Global Resets & Base Styles */
:root {
	--primary-color: #007bff; /* Blue */
	--primary-hover-color: #0056b3;
	--secondary-color: #6c757d; /* Gray */
	--secondary-hover-color: #545b62;
	--accent-color: #28a745; /* Green */
	--accent-hover-color: #1e7e34;
	--light-color: #f8f9fa;
	--dark-color: #343a40;
	--text-color: #212529;
	--text-muted: #6c757d;
	--border-color: #dee2e6;
	--background-color: #ffffff;
	--container-max-width: 1140px;
	--header-height: 70px;
	--border-radius: 0.3rem;
	--box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
	--font-family-sans-serif: -apple-system, BlinkMacSystemFont, 'Segoe UI',
		Roboto, 'Helvetica Neue', Arial, sans-serif;
	--font-family-heading: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-family-sans-serif);
	line-height: 1.6;
	color: var(--text-color);
	background-color: var(--background-color);
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

main {
	flex-grow: 1;
}

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

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-family-heading);
	margin-bottom: 0.75rem;
	line-height: 1.3;
	color: var(--dark-color);
}

h1 {
	font-size: 2.5rem;
}
h2 {
	font-size: 2rem;
}
h3 {
	font-size: 1.75rem;
}
h4 {
	font-size: 1.5rem;
}

p {
	margin-bottom: 1rem;
}

ul,
ol {
	margin-bottom: 1rem;
	padding-left: 20px;
}

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

/* Header */
header {
	background-color: var(--background-color);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	position: sticky;
	top: 0;
	z-index: 1000;
	height: var(--header-height);
	display: flex;
	align-items: center;
}

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

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

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

nav ul {
	list-style: none;
	display: flex;
	margin: 0;
	padding: 0;
}

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

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

nav ul li a:hover,
nav ul li a.active {
	color: var(--primary-color);
}

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

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

.menu-toggle {
	display: none; /* Hidden by default, shown on mobile */
	background: none;
	border: none;
	cursor: pointer;
	padding: 10px;
}

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

/* Buttons */
.btn {
	display: inline-block;
	padding: 0.75rem 1.5rem;
	font-size: 1rem;
	font-weight: 500;
	text-align: center;
	text-decoration: none;
	border-radius: var(--border-radius);
	cursor: pointer;
	transition: background-color 0.3s ease, border-color 0.3s ease,
		color 0.3s ease;
	border: 1px solid transparent;
}

.btn-primary {
	background-color: var(--primary-color);
	color: #fff;
	border-color: var(--primary-color);
}

.btn-primary:hover {
	background-color: var(--primary-hover-color);
	border-color: var(--primary-hover-color);
	color: #fff;
	text-decoration: none;
}

.btn-secondary {
	background-color: var(--secondary-color);
	color: #fff;
	border-color: var(--secondary-color);
}

.btn-secondary:hover {
	background-color: var(--secondary-hover-color);
	border-color: var(--secondary-hover-color);
	color: #fff;
	text-decoration: none;
}

/* Sections General */
section {
	padding: 60px 0;
	overflow: hidden; /* For animated sections not to cause scrollbars during animation */
}

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

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

/* Hero Section */
.hero-section {
	background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
		url('../img/h1.webp'); /* Placeholder if you add an image */
	background-size: cover;
	background-position: center;
	color: #fff;
	text-align: center;
	padding: 100px 0;
	min-height: calc(
		100vh - var(--header-height) - 100px
	); /* Adjust 100px if footer height changes */
	display: flex;
	align-items: center;
	justify-content: center;
}

.hero-section h1 {
	font-size: 3rem;
	margin-bottom: 1rem;
	color: #fff;
}

.hero-section p {
	font-size: 1.2rem;
	margin-bottom: 2rem;
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
}

.hero-buttons {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
	gap: 1rem; /* Space between buttons */
}

.hero-section .btn-primary,
.hero-section .btn-secondary.hero-contact-btn {
	font-size: 1.1rem;
	padding: 0.9rem 2rem;
	margin: 0; /* Reset margin, gap handles spacing */
}

.hero-section .btn-secondary.hero-contact-btn {
	background-color: transparent;
	border: 2px solid #fff; /* Make border more prominent */
	color: #fff;
}
.hero-section .btn-secondary.hero-contact-btn:hover {
	background-color: #fff;
	color: var(--primary-color);
	text-decoration: none;
}

/* Why Us Section */
.why-us-section {
	background-color: var(--light-color);
}

.why-us-section h2 {
	text-align: center;
	margin-bottom: 1rem;
}
.why-us-section > .container > p {
	/* The main paragraph under h2 */
	text-align: center;
	color: var(--text-muted);
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 3rem;
}

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

.card {
	background-color: #fff;
	padding: 25px;
	border-radius: var(--border-radius);
	box-shadow: var(--box-shadow);
	text-align: center;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
	transform: translateY(-10px);
	box-shadow: 0 1rem 1.5rem rgba(0, 0, 0, 0.1);
}

.card img {
	height: auto;
	width: 100%; /* Adjust as needed */
	margin: 0 auto 1rem auto;
}

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

.card p {
	font-size: 0.95rem;
	color: var(--text-muted);
}

/* General CTA button styling for sections */
.section-cta-button {
	text-align: center;
	margin-top: 2.5rem; /* Space above the button */
	margin-bottom: 1rem; /* Space below the button */
}

/* Text Only Section (Our Mission) */
.text-only-section {
	background-color: #fff;
}
.text-only-section h2 {
	color: var(--primary-color);
	text-align: center;
	margin-bottom: 2rem;
}
.text-only-section ul {
	list-style: disc;
	padding-left: 25px;
}
.text-only-section ul li {
	margin-bottom: 0.5rem;
}
.text-only-section strong {
	color: var(--dark-color);
}

/* Course Page Styles */
.course-intro-section {
	background-color: var(--primary-color);
	color: #fff;
	text-align: center;
	padding: 80px 0;
}
.course-intro-section h2 {
	color: #fff;
	font-size: 2.8rem;
}
.course-intro-section p {
	font-size: 1.1rem;
	max-width: 700px;
	margin: 1rem auto 0;
}

.course-list-section {
	background-color: var(--light-color);
}
.course-list-section h3 {
	text-align: center;
	color: var(--dark-color);
	margin-bottom: 1rem;
}
.course-list-section > .container > p {
	text-align: center;
	color: var(--text-muted);
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 3rem;
}
.course-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 30px;
}
.course-card {
	background-color: #fff;
	padding: 25px;
	border-radius: var(--border-radius);
	box-shadow: var(--box-shadow);
	display: flex;
	flex-direction: column;
}
.course-card h4 {
	color: var(--primary-color);
	margin-bottom: 0.75rem;
}
.course-card p {
	font-size: 0.95rem;
	color: var(--text-muted);
	flex-grow: 1;
	margin-bottom: 1.5rem;
}
.course-card .btn-secondary {
	margin-top: auto; /* Pushes button to bottom */
	background-color: var(--accent-color);
	border-color: var(--accent-color);
}
.course-card .btn-secondary:hover {
	background-color: var(--accent-hover-color);
	border-color: var(--accent-hover-color);
}
.course-list-section .note {
	text-align: center;
	margin-top: 2rem;
	font-style: italic;
	color: var(--text-muted);
}

.learning-community-section {
	background-color: #fff;
	text-align: center;
}
.learning-community-section h2 {
	color: var(--primary-color);
}
.learning-community-section .emoji-showcase {
	font-size: 2rem;
	margin-top: 1.5rem;
}
.learning-community-section .emoji-showcase span {
	margin: 0 10px;
	display: inline-block;
	animation: pulse 2s infinite;
}

@keyframes pulse {
	0% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.1);
	}
	100% {
		transform: scale(1);
	}
}

.enroll-now-section {
	background-color: var(--light-color);
	text-align: center;
}
.enroll-now-section h2 {
	color: var(--accent-color);
}
.enroll-now-section ol {
	list-style-type: decimal;
	max-width: 600px;
	margin: 1.5rem auto;
	text-align: left;
	padding-left: 40px; /* For numbers to align nicely */
}
.enroll-now-section ol li {
	margin-bottom: 0.75rem;
}
.enroll-now-section .btn-primary {
	margin-top: 1rem;
	margin-bottom: 1rem;
}
.enroll-now-section .emoji-showcase {
	font-size: 2rem;
	margin-top: 1.5rem;
}
.enroll-now-section .emoji-showcase span {
	margin: 0 10px;
}

/* FAQ Page Styles */
.faq-header-img-section {
	background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
		url('../img/h5.webp');
	background-size: cover;
	background-position: center;
	color: #fff;
	text-align: center;
	padding: 80px 0;
}
.faq-header-img-section h1 {
	color: #fff;
	font-size: 2.8rem;
}
.faq-header-img-section p {
	font-size: 1.1rem;
	max-width: 700px;
	margin: 1rem auto 0;
}

.faq-list-section {
	background-color: #fff;
}
.faq-item {
	border-bottom: 1px solid var(--border-color);
	margin-bottom: 1.5rem;
}
.faq-item:last-child {
	border-bottom: none;
}
.faq-question {
	background: none;
	border: none;
	width: 100%;
	text-align: left;
	font-size: 1.25rem;
	font-weight: 500;
	padding: 1rem 0;
	cursor: pointer;
	position: relative;
	color: var(--dark-color);
	transition: color 0.3s ease;
}
.faq-question:hover {
	color: var(--primary-color);
}
.faq-question::after {
	/* Accordion icon */
	content: '+';
	font-size: 1.5rem;
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	transition: transform 0.3s ease;
}
.faq-question[aria-expanded='true']::after {
	content: '–'; /* Minus sign */
	transform: translateY(-50%) rotate(180deg);
}
.faq-answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.5s ease-out, padding 0.5s ease-out;
	padding: 0 1rem;
}
.faq-answer p {
	color: var(--text-muted);
	padding: 1rem 0; /* Added padding when open */
	margin-bottom: 0;
}
.faq-answer[style*='max-height'] {
	/* When JS sets max-height */
	padding: 0 1rem 1rem 1rem; /* Adjust padding for open state */
}

/* Contact Page Styles */
.contact-intro-section {
	background-color: var(--accent-color);
	color: #fff;
	text-align: center;
	padding: 80px 0;
}
.contact-intro-section h1 {
	color: #fff;
	font-size: 2.8rem;
}
.contact-intro-section p {
	font-size: 1.1rem;
	max-width: 700px;
	margin: 1rem auto 0;
}

.contact-details-section {
	background-color: var(--light-color);
}
.contact-info-blocks {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 30px;
	text-align: center;
}
.contact-block {
	padding: 20px;
	background-color: #fff;
	border-radius: var(--border-radius);
	box-shadow: var(--box-shadow);
}
.contact-block h3 {
	color: var(--primary-color);
	margin-bottom: 1rem;
}
.contact-block p {
	color: var(--text-muted);
	font-size: 0.95rem;
}
.contact-block a {
	color: var(--accent-color);
}
.contact-block a:hover {
	color: var(--accent-hover-color);
}

.contact-form-area {
	background-color: #fff;
}
.contact-form-area h2 {
	text-align: center;
	color: var(--primary-color);
	margin-bottom: 2rem;
}
#contact-form {
	max-width: 700px;
	margin: 0 auto;
}
.form-group {
	margin-bottom: 1.5rem;
}
.form-group label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 500;
	color: var(--dark-color);
}
.form-group input[type='text'],
.form-group input[type='email'],
.form-group textarea {
	width: 100%;
	padding: 0.75rem;
	border: 1px solid var(--border-color);
	border-radius: var(--border-radius);
	font-size: 1rem;
	transition: border-color 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-checkbox {
	display: flex;
	align-items: center;
	margin-bottom: 1.5rem;
}

.form-group-checkbox input[type='checkbox'] {
	width: auto; /* Override default width for inputs */
	margin-right: 10px;
	accent-color: var(--primary-color); /* Modern way to color checkbox */
	transform: scale(1.2); /* Slightly larger checkbox */
}

.form-group-checkbox label {
	margin-bottom: 0; /* Remove default label margin */
	font-weight: normal; /* Match paragraph text */
	font-size: 0.9rem;
	color: var(--text-muted);
}

#contact-form button[type='submit'] {
	display: block;
	width: 100%;
	padding: 0.8rem 1.5rem;
}
#form-submission-status {
	text-align: center;
	font-weight: 500;
}
#form-submission-status.success {
	background-color: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}
#form-submission-status.error {
	background-color: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

/* Legal Page Styles */
.legal-page {
	background-color: #fff;
	padding: 40px 0;
}
.legal-page .container {
	max-width: 800px; /* Narrower for readability */
}
.legal-page h1 {
	font-size: 1.5rem;
	color: var(--primary-color);
	margin-bottom: 1rem;
	text-align: center;
}
.legal-page p em {
	/* Last Updated */
	display: block;
	text-align: center;
	color: var(--text-muted);
	margin-bottom: 2rem;
	font-size: 0.9rem;
}
.legal-page h2 {
	color: var(--dark-color);
	margin-top: 2.5rem;
	margin-bottom: 1rem;
	font-size: 1.5rem;
	border-bottom: 1px solid var(--border-color);
	padding-bottom: 0.5rem;
}
.legal-page p,
.legal-page ul,
.legal-page ol {
	color: var(--text-color);
	font-size: 1rem;
	line-height: 1.7;
}
.legal-page ul {
	list-style: disc;
}
.legal-page ul li,
.legal-page ol li {
	margin-bottom: 0.5rem;
}

/* Footer */
footer {
	background-color: var(--dark-color);
	color: var(--light-color);
	padding: 40px 0 20px;
	margin-top: auto; /* Pushes footer to bottom */
}

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

.footer-contact h4,
.footer-links h4,
.footer-legal h4 {
	font-size: 1.2rem;
	margin-bottom: 1rem;
	color: #fff;
	position: relative;
	padding-bottom: 0.5rem;
}
.footer-contact h4::after,
.footer-links h4::after,
.footer-legal h4::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 40px;
	height: 2px;
	background-color: var(--primary-color);
}

.footer-contact p {
	margin-bottom: 0.5rem;
	font-size: 0.9rem;
	color: #adb5bd;
}

.footer-contact a,
.footer-links a,
.footer-legal a {
	color: #adb5bd;
	text-decoration: none;
}

.footer-contact a:hover,
.footer-links a:hover,
.footer-legal a:hover {
	color: #fff;
	text-decoration: underline;
}

.footer-links ul,
.footer-legal ul {
	list-style: none;
	padding: 0;
}

.footer-links ul li,
.footer-legal ul li {
	margin-bottom: 0.5rem;
}

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

/* Cookie Consent 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, shown by JS */
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.cookie-modal.active {
	display: block;
	animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
	from {
		transform: translateY(100%);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

.cookie-modal-content {
	max-width: var(--container-max-width);
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

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

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

.cookie-modal-buttons {
	display: flex;
	gap: 15px;
}

.cookie-modal-buttons .btn {
	padding: 0.6rem 1.2rem;
}
.cookie-modal-buttons .btn-primary {
	background-color: var(--accent-color);
	border-color: var(--accent-color);
}
.cookie-modal-buttons .btn-primary:hover {
	background-color: var(--accent-hover-color);
	border-color: var(--accent-hover-color);
}
.cookie-modal-buttons .btn {
	/* Reject button */
	background-color: var(--secondary-color);
	border-color: var(--secondary-color);
	color: #fff;
}
.cookie-modal-buttons .btn:hover {
	background-color: var(--secondary-hover-color);
	border-color: var(--secondary-hover-color);
}

/* Responsive Design */
@media (max-width: 992px) {
	.hero-section h1 {
		font-size: 2.5rem;
	}
	.hero-section p {
		font-size: 1.1rem;
	}
	.course-intro-section h2,
	.faq-header-img-section h1,
	.contact-intro-section h1 {
		font-size: 2.3rem;
	}
}

@media (max-width: 768px) {
	:root {
		--header-height: 60px;
	}

	header .container {
		position: relative; /* For menu positioning */
	}

	nav {
		display: none; /* Hidden by default on mobile */
		position: absolute;
		top: var(--header-height);
		left: 0;
		width: 100%;
		background-color: #fff;
		box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
		border-top: 1px solid var(--border-color);
	}

	nav.active {
		display: block;
	}

	nav ul {
		flex-direction: column;
		align-items: center;
		padding: 10px 0;
	}

	nav ul li {
		margin: 10px 0;
		width: 100%;
		text-align: center;
	}
	nav ul li a {
		display: block;
		padding: 10px;
	}
	nav ul li a::after {
		display: none; /* No underline on mobile nav items */
	}

	.menu-toggle {
		display: block; /* Show hamburger menu */
	}

	.menu-toggle.active span:nth-child(1) {
		transform: rotate(45deg) translate(5px, 5px);
	}
	.menu-toggle.active span:nth-child(2) {
		opacity: 0;
	}
	.menu-toggle.active span:nth-child(3) {
		transform: rotate(-45deg) translate(7px, -6px);
	}

	section {
		padding: 40px 0;
	}
	.hero-section {
		padding: 60px 0;
		min-height: auto;
	}
	.hero-section h1 {
		font-size: 2rem;
	}
	.hero-section p {
		font-size: 1rem;
	}

	.cards-container,
	.course-grid,
	.contact-info-blocks {
		grid-template-columns: 1fr; /* Stack cards on smaller screens */
	}

	.footer-content {
		grid-template-columns: 1fr;
		text-align: center;
	}
	.footer-contact h4::after,
	.footer-links h4::after,
	.footer-legal h4::after {
		left: 50%;
		transform: translateX(-50%);
	}

	.cookie-modal-content {
		flex-direction: column;
		align-items: center;
	}
	.cookie-modal p {
		margin-bottom: 20px;
		text-align: center;
	}
	.cookie-modal-buttons {
		width: 100%;
		flex-direction: column;
		gap: 10px;
	}
	.cookie-modal-buttons .btn {
		width: 100%;
	}
}

@media (max-width: 576px) {
	h1 {
		font-size: 2rem;
	}
	h2 {
		font-size: 1.75rem;
	}
	.course-intro-section h2,
	.faq-header-img-section h1,
	.contact-intro-section h1 {
		font-size: 2rem;
	}

	.legal-page h1 {
		font-size: 1.8rem;
	}
	.legal-page h2 {
		font-size: 1.4rem;
	}
}
