/* Global Styles */
:root {
	--primary-color: #007bff; /* Blue */
	--secondary-color: #0056b3; /* Darker Blue */
	--accent-color: #ffc107; /* Yellow */
	--text-color: #333;
	--light-text-color: #f8f9fa;
	--bg-color: #fff;
	--light-bg-color: #f8f9fa; /* Light Gray */
	--border-color: #dee2e6;
	--section-padding: 60px 0;
	--container-max-width: 1140px;
	--border-radius: 8px;
}

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

body {
	font-family: 'Arial', sans-serif; /* Simple, widely available font */
	line-height: 1.6;
	color: var(--text-color);
	background-color: var(--bg-color);
	font-size: 16px;
}

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

h1,
h2,
h3,
h4 {
	margin-bottom: 0.75em;
	color: var(--primary-color);
	line-height: 1.2;
}
h1 {
	font-size: 2.8rem;
}
h2 {
	font-size: 2.2rem;
}
h3 {
	font-size: 1.6rem;
	color: var(--secondary-color);
}
h4 {
	font-size: 1.2rem;
	color: var(--secondary-color);
}

p {
	margin-bottom: 1em;
	font-size: 1rem;
	color: #555;
}

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

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

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

ul {
	list-style-type: none;
}

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

header nav {
	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.2em;
	font-weight: bold;
	color: var(--primary-color);
	text-decoration: none;
}
header .logo:hover {
	text-decoration: none;
}

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

header nav ul {
	display: flex;
}

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

header nav ul li a {
	font-weight: 500;
	padding: 5px 10px;
	transition: color 0.3s ease;
}
header nav ul li a:hover,
header nav ul li a.active {
	color: var(--secondary-color);
	border-bottom: 2px solid var(--secondary-color);
}

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

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

/* Burger animation to 'X' when active */
.burger-menu.active .burger-bar:nth-child(1) {
	transform: translateY(8px) rotate(45deg);
}
.burger-menu.active .burger-bar:nth-child(2) {
	opacity: 0;
}
.burger-menu.active .burger-bar:nth-child(3) {
	transform: translateY(-8px) rotate(-45deg);
}

/* Sections General Styling */
section {
	padding: var(--section-padding);
}
section:nth-child(odd).alt-bg,
.alt-bg {
	background-color: var(--light-bg-color);
}
.full-width-section {
	padding: 0;
}

/* Hero Section (#hero, #explore-programs) */
#hero,
.page-hero {
	background-size: cover;
	background-position: center center;
	color: var(--light-text-color);
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 60vh;
	position: relative;
}
#hero::before,
.page-hero::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 1;
}

.hero-content {
	position: relative;
	z-index: 2;
	max-width: 800px;
}

#hero h1,
.page-hero h1 {
	font-size: 3.5rem;
	color: var(--light-text-color);
	margin-bottom: 0.5em;
}

#hero p,
.page-hero p {
	font-size: 1.2rem;
	color: var(--light-text-color);
	margin-bottom: 1.5em;
}

.cta-button {
	display: inline-block;
	background-color: var(--accent-color);
	color: var(--text-color);
	padding: 12px 25px;
	border-radius: var(--border-radius);
	text-decoration: none;
	font-weight: bold;
	transition: background-color 0.3s ease, transform 0.2s ease;
	border: none;
	cursor: pointer;
	font-size: 1rem;
}

.cta-button:hover {
	background-color: #e0a800;
	text-decoration: none;
	transform: translateY(-2px);
}

/* Why Us Section (#why-us) */
#why-us .container > h2 {
	text-align: center;
	margin-bottom: 40px;
}
.why-us-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 30px;
	margin-bottom: 30px;
}
.why-us-item {
	background-color: var(--bg-color);
	padding: 25px;
	border-radius: var(--border-radius);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	text-align: center;
}
.why-us-icon {
	width: 100%;
	height: auto;
	margin: 0 auto 15px auto;
	/* fill: var(--primary-color); For SVGs */
}
.why-us-item h3 {
	margin-bottom: 10px;
}
.why-us-summary {
	text-align: center;
	font-size: 1.1rem;
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
}

/* Top Courses Section (#top-courses) */
#top-courses .container > h2,
#top-courses .container > p {
	text-align: center;
}
#top-courses .container > p {
	margin-bottom: 40px;
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
}

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

.course-card {
	background-color: var(--bg-color);
	border-radius: var(--border-radius);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
	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 20px rgba(0, 0, 0, 0.15);
}

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

.course-card-content {
	padding: 20px;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}
.course-card-content h3 {
	margin-bottom: 10px;
}
.course-card-content p {
	flex-grow: 1;
	margin-bottom: 15px;
	font-size: 0.95rem;
}
.learn-more-button {
	background-color: var(--primary-color);
	color: var(--light-text-color);
	padding: 10px 15px;
	border-radius: var(--border-radius);
	text-align: center;
	font-weight: 500;
	align-self: flex-start;
}
.learn-more-button:hover {
	color: var(--light-text-color);
	background-color: var(--secondary-color);
	text-decoration: none;
}

/* Course Details Section (#course-details on courses.html) */
#course-details .container > h2,
#course-details .container > p {
	text-align: center;
}
#course-details .container > p {
	margin-bottom: 40px;
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
}

.course-detail-item {
	background-color: var(--bg-color);
	padding: 30px;
	border-radius: var(--border-radius);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	margin-bottom: 40px;
	display: flex;
	gap: 30px;
	align-items: flex-start;
}
.course-detail-image {
	width: 300px;
	height: auto;
	object-fit: cover;
	border-radius: var(--border-radius);
	flex-shrink: 0;
}
.course-detail-item > div {
	flex-grow: 1;
}
.course-detail-item h3 {
	margin-top: 0;
	margin-bottom: 15px;
}
.course-detail-item h4 {
	margin-top: 20px;
	margin-bottom: 8px;
	font-size: 1.1rem;
}
.course-detail-item ul {
	list-style-type: disc;
	padding-left: 20px;
	margin-bottom: 20px;
}
.course-detail-item ul li {
	margin-bottom: 5px;
	font-size: 0.95rem;
}

/* Testimonials Section (#success-stories) */
#success-stories .container > h2,
#success-stories .container > p {
	text-align: center;
}
#success-stories .container > p {
	margin-bottom: 40px;
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
}

.testimonials-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
}
.testimonial-card {
	background-color: var(--bg-color);
	padding: 25px;
	border-radius: var(--border-radius);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	text-align: center;
}
.testimonial-card img {
	width: 100px;
	height: 100px;
	border-radius: 50%;
	object-fit: cover;
	margin: 0 auto 15px auto;
	border: 3px solid var(--accent-color);
}
.testimonial-card h4 {
	margin-bottom: 8px;
	font-size: 1.1rem;
}
.testimonial-card p {
	font-style: italic;
	font-size: 0.95rem;
	color: #666;
}

/* FAQ Section (#faq) */
#faq .container > h2,
#faq .container > p {
	text-align: center;
}
#faq .container > p {
	margin-bottom: 40px;
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
}
.faq-accordion {
	max-width: 800px;
	margin: 0 auto;
}
.faq-item {
	border: 1px solid var(--border-color);
	border-radius: var(--border-radius);
	margin-bottom: 10px;
	overflow: hidden;
}
.faq-question {
	background-color: var(--bg-color);
	color: var(--text-color);
	cursor: pointer;
	padding: 15px 20px;
	width: 100%;
	border: none;
	text-align: left;
	outline: none;
	font-size: 1.1rem;
	font-weight: 500;
	transition: background-color 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.faq-icon {
	width: 20px;
	height: 20px;
	margin-right: 10px;
	opacity: 0.7;
}
.faq-question:hover {
	background-color: var(--light-bg-color);
}
.faq-question::after {
	content: '+';
	font-size: 1.5rem;
	color: var(--primary-color);
	transition: transform 0.3s ease;
}
.faq-item.active .faq-question::after {
	transform: rotate(45deg);
}
.faq-answer {
	padding: 0 20px;
	background-color: var(--bg-color);
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}
.faq-answer p {
	padding: 15px 0;
	font-size: 0.95rem;
	margin-bottom: 0;
}
.faq-item.active .faq-answer {
	max-height: 300px;
	padding: 0 20px 15px 20px;
}

/* Contact Form Section (#contact-form-section) */
#contact-form-section .container > h2,
#contact-form-section .container > p {
	text-align: center;
}
#contact-form-section .container > p {
	margin-bottom: 30px;
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
}

.contact-form {
	max-width: 700px;
	margin: 0 auto;
	background-color: var(--bg-color);
	padding: 30px;
	border-radius: var(--border-radius);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.form-group {
	margin-bottom: 20px;
}
.form-group label {
	display: block;
	margin-bottom: 5px;
	font-weight: 500;
	color: var(--secondary-color);
}
.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: var(--border-radius);
	font-size: 1rem;
}
.form-group textarea {
	resize: vertical;
	min-height: 120px;
}
.form-group-checkbox {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 20px;
}
.form-group-checkbox input[type='checkbox'] {
	width: auto;
	margin: 0;
	flex-shrink: 0;
}
.form-group-checkbox label {
	margin-bottom: 0;
	font-weight: normal;
	font-size: 0.9rem;
	color: var(--text-color);
}

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

/* Footer */
footer {
	background-color: var(--secondary-color);
	color: var(--light-text-color);
	padding: 40px 0 20px 0;
	margin-top: 40px;
}
.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 {
	color: var(--light-text-color);
	margin-bottom: 15px;
	font-size: 1.2rem;
}
.footer-contact p,
.footer-contact a,
.footer-links ul li a,
.footer-legal ul li a {
	color: #ccc;
	font-size: 0.95rem;
	margin-bottom: 8px;
}
.footer-contact a:hover,
.footer-links ul li a:hover,
.footer-legal ul li a:hover {
	color: var(--light-text-color);
	text-decoration: underline;
}
.footer-bottom {
	text-align: center;
	padding-top: 20px;
	border-top: 1px solid #4a7db5;
	font-size: 0.9rem;
	color: #ccc;
}

/* Cookie Consent Modal */
.cookie-modal {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: rgba(0, 0, 0, 0.9);
	color: var(--light-text-color);
	padding: 20px;
	z-index: 2000;
	display: none;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}
.cookie-modal-content {
	max-width: var(--container-max-width);
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
}
.cookie-modal p {
	margin-bottom: 0;
	font-size: 0.9rem;
	flex-grow: 1;
}
.cookie-modal p a {
	color: var(--accent-color);
	text-decoration: underline;
}
.cookie-buttons button {
	background-color: var(--primary-color);
	color: var(--light-text-color);
	border: none;
	padding: 10px 20px;
	margin-left: 10px;
	border-radius: var(--border-radius);
	cursor: pointer;
	transition: background-color 0.3s ease;
}
.cookie-buttons button#cookie-accept {
	background-color: var(--accent-color);
	color: var(--text-color);
}
.cookie-buttons button#cookie-accept:hover {
	background-color: #e0a800;
}
.cookie-buttons button#cookie-reject {
	background-color: #6c757d;
}
.cookie-buttons button#cookie-reject:hover {
	background-color: #5a6268;
}

/* Animation Classes */
.animated-section {
	opacity: 0;
	transform: scale(0.95) translateY(30px);
	transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.animated-section.in-view {
	opacity: 1;
	transform: scale(1) translateY(0);
}

/* Legal Pages Basic Styling */
.legal-page-container {
	padding-top: 40px;
	padding-bottom: 40px;
}
.legal-page-container h1 {
	font-size: 1.5rem;
	margin-bottom: 30px;
	text-align: center;
}
.legal-page-container h2 {
	margin-top: 30px;
	margin-bottom: 15px;
	font-size: 1.5rem;
}
.legal-page-container p,
.legal-page-container li {
	margin-bottom: 10px;
	font-size: 1rem;
	color: #444;
}
.legal-page-container ul {
	list-style: disc;
	padding-left: 25px;
}

/* Responsive Design */
@media (max-width: 992px) {
	h1 {
		font-size: 2.4rem;
	}
	#hero h1,
	.page-hero h1 {
		font-size: 2.8rem;
	}
	h2 {
		font-size: 1.9rem;
	}

	.course-detail-item {
		flex-direction: column;
	}
	.course-detail-image {
		width: 100%;
		max-width: 400px;
		margin: 0 auto 20px auto;
	}
}

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

	.burger-menu {
		display: block;
	}

	header nav ul#nav-links {
		display: none;
		flex-direction: column;
		position: absolute;
		top: 100%;
		left: 0;
		width: 100%;
		background-color: var(--bg-color);
		box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
		padding: 10px 0;
		z-index: 1000;
	}

	header nav ul#nav-links.active {
		display: flex;
	}

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

	header nav ul#nav-links li a {
		display: block;
		padding: 12px 20px;
		border-bottom: 1px solid var(--border-color);
	}
	header nav ul#nav-links li:last-child a {
		border-bottom: none;
	}

	header nav ul#nav-links li a:hover,
	header nav ul#nav-links li a.active {
		background-color: var(--light-bg-color);
		color: var(--secondary-color);
		border-bottom: 1px solid var(--border-color);
	}

	#hero,
	.page-hero {
		min-height: 50vh;
	}
	#hero h1,
	.page-hero h1 {
		font-size: 2.2rem;
	}
	#hero p,
	.page-hero p {
		font-size: 1rem;
	}
	.cta-button {
		padding: 10px 20px;
		font-size: 0.95rem;
	}

	.why-us-grid,
	.course-cards-grid,
	.testimonials-grid {
		grid-template-columns: 1fr;
	}

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

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

@media (max-width: 480px) {
	body {
		font-size: 15px;
	}
	h1 {
		font-size: 2rem;
	}
	#hero h1,
	.page-hero h1 {
		font-size: 1.8rem;
	}
	h2 {
		font-size: 1.6rem;
	}
	h3 {
		font-size: 1.3rem;
	}

	.container {
		width: 95%;
	}
	section {
		padding: 40px 0;
	}

	.contact-form {
		padding: 20px;
	}
}
