/* General Reset & Base Styles */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	font-family: 'Arial', sans-serif;
	line-height: 1.6;
	color: #333;
	background-color: #f9f9f9;
	overflow-x: hidden; /* Prevent horizontal scroll */
}

h1,
h2,
h3,
h4 {
	font-weight: 600;
	margin-bottom: 0.75em;
	color: #2c3e50;
}

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

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

a {
	color: #3498db;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

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

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

/* Header & Navigation */
header {
	background-color: #fff;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	padding: 1em 0;
	position: sticky;
	top: 0;
	z-index: 1000;
	width: 100%;
}

header nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 15px;
}

header .logo {
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	font-size: 1.2em;
	font-weight: bold;
	color: #2c3e50;
	text-decoration: none;
}
header .logo:hover {
	text-decoration: none;
}

.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 {
	color: #333;
	font-weight: 500;
	padding: 0.5em 0.75em;
	border-radius: 4px;
	transition: background-color 0.3s, color 0.3s;
}

header nav ul li a:hover,
header nav ul li a.active {
	background-color: #3498db;
	color: #fff;
	text-decoration: none;
}

/* Mobile Navigation Toggle Button */
.nav-toggle {
	display: none; /* Hidden by default, shown in media query */
	background: none;
	border: none;
	cursor: pointer;
	padding: 10px;
	position: relative;
	z-index: 1001; /* Above nav links */
}

.hamburger {
	display: block;
	width: 25px;
	height: 3px;
	background-color: #333;
	position: relative;
	transition: transform 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

.hamburger::before,
.hamburger::after {
	content: '';
	position: absolute;
	left: 0;
	width: 100%;
	height: 3px;
	background-color: #333;
	transition: transform 0.3s ease-in-out, top 0.3s ease-in-out;
}

.hamburger::before {
	top: -8px;
}

.hamburger::after {
	top: 8px;
}

/* Active state for hamburger icon (X mark) */
.nav-open .hamburger {
	background-color: transparent; /* Middle bar disappears */
}

.nav-open .hamburger::before {
	transform: rotate(45deg);
	top: 0;
}

.nav-open .hamburger::after {
	transform: rotate(-45deg);
	top: 0;
}

/* Main Content & Sections */
main {
	padding-top: 20px; /* Space below sticky header */
}

section {
	padding: 60px 0;
	overflow: hidden; /* For animations */
}

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

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

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

/* Hero Section Specifics (index.html) */
#hero {
	background: linear-gradient(to right, #4facfe 0%, #00f2fe 100%);
	color: #fff;
	text-align: center;
	min-height: 70vh;
	display: flex;
	align-items: center;
}

#hero .container {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
}
#hero .hero-content {
	max-width: 700px;
}
#hero h1 {
	color: #fff;
	font-size: 3rem;
	margin-bottom: 0.5em;
}
#hero p {
	color: #f0f0f0;
	font-size: 1.2rem;
	margin-bottom: 1.5em;
}
#hero .hero-image img {
	width: 100%;
	max-width: 400px;
	border-radius: 8px;
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn {
	display: inline-block;
	background-color: #e74c3c;
	color: #fff;
	padding: 12px 25px;
	border-radius: 5px;
	text-decoration: none;
	font-weight: bold;
	transition: background-color 0.3s ease;
}

.btn:hover {
	background-color: #c0392b;
	text-decoration: none;
	color: #fff;
}

/* Features Grid (Why Us - index.html) */
.features-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 30px;
	margin-top: 30px;
}
.feature {
	background: #fff;
	padding: 25px;
	border-radius: 8px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
	text-align: center;
}
.feature h3 {
	color: #3498db;
	font-size: 1.6rem; /* Emoji size relative */
}

/* Course Cards (index.html) */
.course-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
	margin-top: 30px;
}
.course-card {
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.course-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.course-card img {
	width: 100%;
	height: 200px;
	object-fit: cover;
}
.course-card h3 {
	padding: 20px 20px 10px;
	color: #2c3e50;
}
.course-card p {
	padding: 0 20px 20px;
	font-size: 0.95rem;
}

/* Page 2 Section Layouts */
#mission-vision .container,
#learning-environment .container,
#team .container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: center;
}
#learning-environment .container.reverse-layout {
	grid-template-columns: 1fr 1fr; /* default */
}
#learning-environment .container.reverse-layout .section-text-content {
	order: 1;
}
#learning-environment .container.reverse-layout .section-image-container {
	order: 2;
}

.section-image-container img {
	border-radius: 8px;
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}
.section-text-content h2 {
	margin-bottom: 20px;
}

/* Page 3 Sections */
/* Success Stories */
.text-only-section {
	background-color: #eaf4f9; /* Light blueish tint */
}
.story {
	background: #fff;
	padding: 20px;
	border-radius: 8px;
	margin-bottom: 20px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}
.story cite {
	display: block;
	text-align: right;
	font-style: italic;
	margin-top: 10px;
	color: #555;
}

/* FAQ Section */
#faq h2 {
	text-align: center;
	margin-bottom: 40px;
}
.faq-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 25px;
}
.faq-item {
	background: #fff;
	padding: 20px;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}
.faq-item h4 {
	color: #3498db;
	margin-bottom: 10px;
}

/* Contact Section */
#contact {
	background-color: #f0f4f8;
}
.contact-container {
	display: grid;
	grid-template-columns: 1fr 1.2fr; /* Adjust ratio as needed */
	gap: 40px;
	align-items: flex-start; /* Align items to the top */
}

.contact-info h2 {
	margin-bottom: 15px;
}
.contact-info p {
	margin-bottom: 10px;
}
.contact-info address {
	font-style: normal;
	line-height: 1.8;
}
.contact-info address a {
	color: #333;
}
.contact-info address a:hover {
	color: #3498db;
}

.contact-form-wrapper {
	background: #fff;
	padding: 30px;
	border-radius: 8px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
	position: relative; /* For bg image if needed */
	overflow: hidden; /* If bg image is used */
}

.contact-bg-image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.1; /* Adjust for subtlety */
	z-index: 0;
}

#contactForm {
	position: relative; /* To ensure form elements are above bg image */
	z-index: 1;
}

#contactForm h3 {
	margin-bottom: 20px;
	text-align: center;
}

.form-group {
	margin-bottom: 20px;
}
.form-group label {
	display: block;
	margin-bottom: 5px;
	font-weight: 500;
	color: #444;
}
.form-group input[type='text'],
.form-group input[type='email'],
.form-group textarea {
	width: 100%;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 1rem;
}
.form-group textarea {
	resize: vertical;
	min-height: 100px;
}

.form-group-checkbox {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 20px;
}

.form-group-checkbox input[type='checkbox'] {
	width: auto;
	margin-right: 5px;
	transform: scale(1.2);
}

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

#contactForm .btn {
	width: 100%;
	padding: 12px;
	font-size: 1.1rem;
}
.form-status {
	margin-top: 15px;
	text-align: center;
	font-weight: bold;
}
.form-status.success {
	color: green;
}
.form-status.error {
	color: red;
}

/* Footer */
footer {
	background-color: #2c3e50;
	color: #ecf0f1;
	padding: 40px 0 20px;
	font-size: 0.9rem;
}
.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: #fff;
	margin-bottom: 15px;
	font-size: 1.1rem;
}
.footer-contact p,
.footer-contact a {
	color: #bdc3c7;
	margin-bottom: 5px;
}
.footer-contact a:hover {
	color: #3498db;
}
.footer-links ul,
.footer-legal ul {
	list-style: none;
}
.footer-links ul li,
.footer-legal ul li {
	margin-bottom: 8px;
}
.footer-links ul li a,
.footer-legal ul li a {
	color: #bdc3c7;
}
.footer-links ul li a:hover,
.footer-legal ul li a:hover {
	color: #3498db;
	text-decoration: underline;
}
.copyright {
	text-align: center;
	border-top: 1px solid #34495e;
	padding-top: 20px;
	color: #95a5a6;
}

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

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

.modal-content {
	max-width: 800px;
	margin: 0 auto;
	text-align: center;
}
.modal-content h2 {
	color: #fff;
	margin-bottom: 10px;
}
.modal-content p {
	color: #eee;
	margin-bottom: 20px;
	font-size: 0.9rem;
}
.modal-buttons button {
	background-color: #3498db;
	color: white;
	border: none;
	padding: 10px 20px;
	margin: 0 10px;
	border-radius: 5px;
	cursor: pointer;
	font-weight: bold;
}
.modal-buttons button#rejectCookies {
	background-color: #7f8c8d;
}
.modal-buttons button:hover {
	opacity: 0.9;
}

/* Legal Pages Simple Layout */
.legal-page-container {
	padding: 40px 0;
}
.legal-page-container .container {
	background: #fff;
	padding: 30px;
	border-radius: 8px;
	box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}
.legal-page-container h1 {
	font-size: 1.5rem;
	margin-bottom: 20px;
	border-bottom: 2px solid #eee;
	padding-bottom: 10px;
}
.legal-page-container h2 {
	margin-top: 30px;
	margin-bottom: 10px;
	font-size: 1.5rem;
}
.legal-page-container p,
.legal-page-container li {
	margin-bottom: 10px;
}
.legal-page-container ul {
	list-style-position: inside;
	padding-left: 20px;
}

/* CTA Button Container for sections */
.section-cta-button-container {
	text-align: center;
	margin-top: 30px; /* Adjust as needed */
}

/* Responsive Design */
@media (max-width: 992px) {
	#hero .container {
		flex-direction: column;
		text-align: center;
	}
	#hero .hero-content,
	#hero .hero-image {
		width: 100%;
	}
	#mission-vision .container,
	#learning-environment .container,
	#learning-environment .container.reverse-layout,
	#team .container,
	.contact-container {
		grid-template-columns: 1fr; /* Stack on smaller screens */
	}
	#learning-environment .container.reverse-layout .section-text-content,
	#learning-environment .container.reverse-layout .section-image-container {
		order: initial; /* Reset order for stacked layout */
	}
	.section-image-container {
		margin-bottom: 20px; /* Add space when stacked */
	}
	.contact-form-wrapper {
		margin-top: 30px; /* Space when stacked */
	}
}

@media (max-width: 768px) {
	h1 {
		font-size: 2rem;
	}
	#hero h1 {
		font-size: 2.5rem;
	}
	h2 {
		font-size: 1.75rem;
	}
	h3 {
		font-size: 1.3rem;
	}

	header nav {
		flex-direction: row; /* Keep logo and toggle side-by-side */
		justify-content: space-between;
		align-items: center;
	}
	header nav .logo {
		margin-bottom: 0; /* Reset margin */
	}

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

	header nav ul {
		display: none; /* Hide by default on mobile */
		flex-direction: column;
		position: absolute;
		top: 100%; /* Position below header */
		left: 0;
		width: 100%;
		background-color: #fff;
		box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
		padding-top: 10px;
		padding-bottom: 10px;
	}

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

	header nav ul li {
		margin-left: 0;
		margin-bottom: 0; /* Remove bottom margin for cleaner look */
		width: 100%;
	}
	header nav ul li a {
		display: block;
		text-align: left;
		padding: 10px 20px; /* Adjust padding for mobile */
		border-bottom: 1px solid #f0f0f0;
	}
	header nav ul li:last-child a {
		border-bottom: none;
	}
	header nav ul li a:hover,
	header nav ul li a.active {
		background-color: #3498db;
		color: #fff;
	}

	.footer-content {
		grid-template-columns: 1fr; /* Stack footer columns */
		text-align: center;
	}
	.footer-contact,
	.footer-links,
	.footer-legal {
		margin-bottom: 20px;
	}
}

@media (max-width: 480px) {
	body {
		font-size: 0.95rem;
	}
	.container {
		width: 95%;
	}
	section {
		padding: 40px 0;
	}
	.btn,
	#contactForm .btn {
		padding: 10px 20px;
		font-size: 1rem;
	}
	.modal-content p {
		font-size: 0.85rem;
	}
	.modal-buttons button {
		padding: 8px 15px;
		font-size: 0.9rem;
	}
}
