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

body {
	font-family: 'Open Sans', sans-serif;
	line-height: 1.6;
	color: #333;
	background-color: #f9f9f9;
	font-size: 16px;
}

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

h1,
h2,
h3,
h4 {
	font-weight: 700;
	color: #2c3e50; /* Dark blue-gray */
	margin-bottom: 0.75em;
}

h1 {
	font-size: 2.8em; /* Larger for main title */
}

h2 {
	font-size: 2.2em; /* Section titles */
	text-align: center;
	margin-bottom: 1em;
}

h3 {
	font-size: 1.5em;
}

h4 {
	font-size: 1.2em;
}

p {
	margin-bottom: 1em;
	color: #555; /* Slightly lighter than headings */
}

a {
	text-decoration: none;
	color: #3498db; /* Primary blue */
	transition: color 0.3s ease;
}

a:hover {
	color: #2980b9; /* Darker blue on hover */
}

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

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

section {
	padding: 60px 0;
	overflow: hidden; /* For scroll animations if they involve transforms */
}

section:nth-child(even) {
	background-color: #ffffff; /* Alternating section backgrounds */
}

.section-header {
	text-align: center;
	margin-bottom: 40px;
}

.section-header p {
	font-size: 1.1em;
	color: #777;
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
}

/* Header */
header {
	background-color: #ffffff;
	padding: 15px 0;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	position: sticky;
	top: 0;
	z-index: 1000;
	width: 100%;
}

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

.logo-link {
	display: flex;
	align-items: center;
	color: #2c3e50;
}

.logo-link:hover {
	color: #3498db;
}

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

header h1 {
	font-size: 1.2em;
	margin-bottom: 0;
}

nav ul {
	display: flex;
}

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

nav ul li a {
	font-weight: 600;
	color: #333;
	padding: 5px 0;
	position: relative;
}

nav ul li a::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 0;
	height: 2px;
	background-color: #3498db; /* Primary blue */
	transition: width 0.3s ease;
}

nav ul li a:hover::after,
nav ul li a.active::after {
	/* Assuming an 'active' class for current page */
	width: 100%;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
	display: none; /* Hidden by default, shown on mobile */
	background: none;
	border: none;
	cursor: pointer;
	padding: 10px;
	z-index: 1001; /* Above header but below open menu content */
}

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

/* Hamburger to X animation */
.mobile-menu-toggle.active span:nth-child(1) {
	transform: translateY(8px) rotate(45deg);
}
.mobile-menu-toggle.active span:nth-child(2) {
	opacity: 0;
}
.mobile-menu-toggle.active span:nth-child(3) {
	transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu Styles (when open) */
nav#mainNav.mobile-menu-open {
	display: block;
	position: absolute;
	top: 100%; /* Position below the header */
	left: 0;
	right: 0;
	background-color: #ffffff;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
	padding: 15px 0;
	z-index: 1000;
}

nav#mainNav.mobile-menu-open ul {
	flex-direction: column;
	align-items: center;
	width: 100%;
}

nav#mainNav.mobile-menu-open ul li {
	margin: 10px 0;
	width: 100%;
	text-align: center;
}

nav#mainNav.mobile-menu-open ul li a {
	padding: 10px 20px;
	display: block;
	width: 100%;
}

nav#mainNav.mobile-menu-open ul li a::after {
	/* Optional: adjust underline for mobile menu */
	bottom: -5px;
	height: 2px;
}

/* Hero Section */
#hero {
	background: linear-gradient(
		to right,
		#0052d4,
		#4364f7,
		#6fb1fc
	); /* Example gradient */
	color: #fff;
	padding: 80px 0;
	text-align: left;
}

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

.hero-content {
	flex: 1;
	max-width: 550px;
}

#hero h2 {
	font-size: 2.8em;
	color: #fff;
	margin-bottom: 0.5em;
	text-align: left;
}

#hero p {
	font-size: 1.15em;
	margin-bottom: 1.5em;
	color: #f0f0f0;
}

.hero-image {
	flex: 1;
	max-width: 500px;
}

.hero-image img {
	border-radius: 8px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Buttons */
.btn {
	display: inline-block;
	padding: 12px 28px;
	border-radius: 25px;
	font-weight: 600;
	text-align: center;
	transition: all 0.3s ease;
	border: none;
	cursor: pointer;
	font-size: 1em;
}

.btn-primary {
	background-color: #ffc107; /* Yellow accent */
	color: #333;
	box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}

.btn-primary:hover {
	background-color: #e0a800;
	color: #333;
	box-shadow: 0 6px 20px rgba(224, 168, 0, 0.5);
	transform: translateY(-2px);
}

.btn-secondary {
	background-color: #3498db; /* Primary blue */
	color: #fff;
	border: 2px solid #3498db;
}

.btn-secondary:hover {
	background-color: #2980b9;
	border-color: #2980b9;
	color: #fff;
	transform: translateY(-2px);
}

/* Why Choose Us Section */
#why-cz .why-cz-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 30px;
	margin-top: 40px;
}

.why-cz-item {
	background-color: #fff;
	padding: 30px;
	border-radius: 8px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
	text-align: center;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-cz-item:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.why-cz-item img {
	width: 100%;
	height: auto; /* Control image size */
	border-radius: 8px;
	margin-bottom: 20px;
}

.why-cz-item h3 {
	margin-bottom: 10px;
	color: #3498db;
}

/* Courses Section */
#courses {
	background-color: #f0f4f8;
}

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

.course-card {
	background-color: #fff;
	border-radius: 8px;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
	overflow: hidden; /* Ensures image corners are rounded with card */
	display: flex;
	flex-direction: column;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.course-card img {
	width: 100%;
	height: auto; /* Fixed height for course images */
	object-fit: cover; /* Ensures image covers area without distortion */
}

.course-card h3 {
	padding: 20px 20px 10px 20px;
	color: #3498db;
}

.course-card p {
	padding: 0 20px 20px 20px;
	flex-grow: 1; /* Allows p to take available space */
	font-size: 0.95em;
}

.course-card .btn-secondary {
	margin: 0 20px 20px 20px;
	align-self: flex-start; /* Aligns button to the start */
}

/* Footer */
footer {
	background-color: #2c3e50; /* Dark blue-gray */
	color: #ecf0f1; /* Light gray text */
	padding: 50px 0 20px 0;
}

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

.footer-col h4 {
	color: #fff;
	margin-bottom: 15px;
	font-size: 1.3em;
	position: relative;
	padding-bottom: 10px;
}

.footer-col h4::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 40px;
	height: 2px;
	background-color: #3498db; /* Primary blue */
}

.footer-col p,
.footer-col ul li {
	margin-bottom: 10px;
	font-size: 0.95em;
	color: #bdc3c7; /* Lighter gray for footer text */
}

.footer-col ul li a {
	color: #bdc3c7;
	transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-col ul li a:hover {
	color: #fff;
	padding-left: 5px;
}

.footer-bottom {
	text-align: center;
	padding-top: 20px;
	border-top: 1px solid #34495e; /* Slightly lighter border */
	font-size: 0.9em;
	color: #bdc3c7;
}

/* Cookie Consent Modal */
.cookie-modal {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: rgba(
		44,
		62,
		80,
		0.95
	); /* Dark semi-transparent background */
	color: #ecf0f1;
	padding: 25px;
	box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.2);
	z-index: 2000;
	display: none; /* Hidden by default, shown by JS */
	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: 900px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.cookie-modal-content p {
	color: white;
	margin-bottom: 20px;
	font-size: 0.95em;
}

.cookie-modal-content a {
	color: #ffc107; /* Yellow accent for link */
	text-decoration: underline;
}
.cookie-modal-content a:hover {
	color: #e0a800;
}

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

.cookie-modal-buttons .btn-primary {
	background-color: #ffc107;
	color: #333;
}
.cookie-modal-buttons .btn-primary:hover {
	background-color: #e0a800;
}

.cookie-modal-buttons .btn-secondary {
	background-color: transparent;
	color: #ecf0f1;
	border: 2px solid #ecf0f1;
}

.cookie-modal-buttons .btn-secondary:hover {
	background-color: #ecf0f1;
	color: #2c3e50;
}

/* Scroll Animation Class */
.scroll-animate {
	opacity: 0;
	transform: scale(0.95) translateY(20px);
	transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.visible {
	opacity: 1;
	transform: scale(1) translateY(0);
}

/* Page 2 Specific Styles */

/* About Us Section */
#about-us .about-us-content {
	display: flex;
	align-items: flex-start; /* Align items to top */
	gap: 40px;
	margin-top: 30px;
}

.about-us-text {
	flex: 1.5; /* More space for text */
}

.about-us-text h3 {
	color: #3498db;
	margin-top: 20px; /* Space between h3s */
}
.about-us-text h3:first-child {
	margin-top: 0;
}

.about-us-text ul {
	list-style: disc;
	padding-left: 20px;
	margin-top: 10px;
}
.about-us-text ul li {
	margin-bottom: 8px;
}

.about-us-image {
	flex: 1;
	max-width: 450px;
}

.about-us-image img {
	border-radius: 8px;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Student Success Section */
#student-success {
	background-color: #f0f4f8;
}

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

.testimonial-card {
	background-color: #fff;
	padding: 25px;
	border-radius: 8px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
	border-left: 5px solid #3498db; /* Accent border */
}

.testimonial-card p {
	font-style: italic;
	margin-bottom: 15px;
	color: #555;
}

.testimonial-card h4 {
	font-weight: 600;
	color: #2c3e50;
	text-align: right;
}

.community-showcase {
	display: flex;
	align-items: center;
	gap: 30px;
	background-color: #fff;
	padding: 30px;
	border-radius: 8px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.community-showcase img {
	max-width: 300px;
	border-radius: 8px;
}

.community-showcase p {
	flex: 1;
	font-size: 1.05em;
}

/* Learning Environment Section */
#learning-environment .learning-content {
	display: flex;
	align-items: center;
	gap: 40px;
	margin-top: 30px;
}

.learning-image {
	flex: 1;
	max-width: 500px;
}

.learning-image img {
	border-radius: 8px;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.learning-text {
	flex: 1.2;
}

.learning-text ul {
	list-style: disc;
	padding-left: 20px;
	margin-top: 15px;
}

.learning-text ul li {
	margin-bottom: 8px;
}

/* FAQ Section */
#faq {
	background-color: #f0f4f8;
}

.faq-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 25px;
}

.faq-item {
	background-color: #fff;
	padding: 25px;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
}

.faq-item h4 {
	color: #3498db;
	margin-bottom: 10px;
}

.text-only-section .section-header p {
	/* For sections like FAQ where p is main text */
	max-width: 100%;
}

/* Contact Section */
.contact-wrapper {
	display: flex;
	gap: 40px;
	margin-top: 30px;
	background-color: #fff;
	padding: 40px;
	border-radius: 8px;
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.contact-form-container {
	flex: 1.5;
}

#contactForm .form-group {
	margin-bottom: 20px;
}

#contactForm label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: #444;
}

#contactForm input[type='text'],
#contactForm input[type='email'],
#contactForm textarea {
	width: 100%;
	padding: 12px;
	border: 1px solid #ddd;
	border-radius: 5px;
	font-size: 1em;
	font-family: 'Open Sans', sans-serif;
	transition: border-color 0.3s ease;
}

#contactForm input[type='text']:focus,
#contactForm input[type='email']:focus,
#contactForm textarea:focus {
	border-color: #3498db;
	outline: none;
	box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

#contactForm textarea {
	resize: vertical;
	min-height: 120px;
}

#contactForm textarea:focus {
	border-color: #3498db;
	outline: none;
	box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

#contactForm textarea {
	resize: vertical;
	min-height: 120px;
}

.form-status-message {
	margin-top: 15px;
	font-weight: 600;
}

.form-status-message.success {
	color: #27ae60; /* Green for success */
}

.form-status-message.error {
	color: #c0392b; /* Red for error */
}

/* Form Status Modal */
.status-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.6);
	display: none; /* Hidden by default */
	justify-content: center;
	align-items: center;
	z-index: 2001; /* Above cookie modal */
	opacity: 0;
	transition: opacity 0.3s ease-in-out;
}

.status-modal.visible {
	display: flex;
	opacity: 1;
}

.status-modal-content {
	background-color: #fff;
	padding: 30px 40px;
	border-radius: 8px;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
	text-align: center;
	min-width: 300px;
	max-width: 450px;
}

.form-status-loading .spinner {
	border: 4px solid #f3f3f3; /* Light grey */
	border-top: 4px solid #3498db; /* Blue */
	border-radius: 50%;
	width: 40px;
	height: 40px;
	animation: spin 1s linear infinite;
	margin: 0 auto 15px auto;
}

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

.form-status-loading p {
	font-size: 1.1em;
	color: #555;
	margin-bottom: 0;
}

#formMessageContainer p {
	font-size: 1.1em;
	font-weight: 600;
	margin-bottom: 0;
}

#formMessageContainer.success p {
	color: #27ae60; /* Green */
}

#formMessageContainer.error p {
	color: #c0392b; /* Red */
}

.contact-info-container {
	flex: 1;
	padding-left: 30px; /* Space from form */
	border-left: 1px solid #eee; /* Subtle separator */
}

.contact-info-container img.contact-image {
	width: 100%;
	border-radius: 8px;
	margin-bottom: 25px;
}

.contact-info-container h3 {
	color: #3498db;
	margin-top: 20px;
	margin-bottom: 8px;
}
.contact-info-container h3:first-of-type {
	margin-top: 0;
}

.contact-info-container p {
	margin-bottom: 10px;
	font-size: 1em;
}

/* Styling for checkbox group */
.form-group-checkbox {
	display: flex;
	align-items: flex-start; /* Align items to the top for long labels */
	gap: 10px; /* Space between checkbox and label */
	margin-bottom: 20px;
}

.form-group-checkbox input[type='checkbox'] {
	margin-top: 4px; /* Align checkbox nicely with the first line of text */
	width: auto; /* Override default width from other inputs */
	flex-shrink: 0; /* Prevent checkbox from shrinking */
}

.form-group-checkbox .checkbox-label {
	font-weight: normal; /* Normal weight for consent text */
	color: #555;
	font-size: 0.9em;
	margin-bottom: 0; /* Remove default label margin */
	cursor: pointer;
}
.form-group-checkbox .checkbox-label a {
	color: #3498db;
	text-decoration: underline;
}
.form-group-checkbox .checkbox-label a:hover {
	color: #2980b9;
}

#contactForm button[type='submit'] {
	padding: 12px 30px;
	border-radius: 5px; /* More standard button shape for form */
}

/* Legal Pages Styling */
.legal-page {
	padding: 40px 0;
	background-color: #fff;
}

.legal-page .container {
	max-width: 900px; /* Comfortable reading width */
}

.legal-page h2 {
	text-align: left;
	margin-bottom: 20px;
	padding-bottom: 10px;
	border-bottom: 2px solid #3498db;
	font-size: 1.5em;
}

.legal-page p,
.legal-page ul li {
	margin-bottom: 1em;
	line-height: 1.7;
	color: #444;
}

.legal-page ul {
	list-style: disc;
	padding-left: 25px;
}

.legal-page h3 {
	font-size: 1.4em;
	color: #2c3e50;
	margin-top: 1.5em;
	margin-bottom: 0.5em;
}

.legal-page strong {
	color: #2c3e50;
}

.legal-page em {
	/* For Last Updated dates */
	display: block;
	margin-bottom: 1.5em;
	font-style: italic;
	color: #777;
}

/* Responsive Design */
@media (max-width: 992px) {
	.container {
		width: 95%;
	}
	#hero .container {
		flex-direction: column;
		text-align: center;
	}
	#hero h2 {
		text-align: center;
	}
	.hero-content {
		max-width: 100%;
		margin-bottom: 30px;
	}
	.hero-image {
		max-width: 80%;
		margin: 0 auto;
	}
	.footer-content {
		grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	}
}

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

	header .container {
		flex-direction: column;
		align-items: center;
	}
	.logo-link {
		margin-bottom: 15px;
	}
	nav ul {
		justify-content: center;
		flex-wrap: wrap;
	}
	nav ul li {
		margin: 5px 10px;
	}

	section {
		padding: 40px 0;
	}

	#why-cz .why-cz-grid,
	.course-cards,
	.testimonials,
	.faq-grid {
		grid-template-columns: 1fr; /* Stack on smaller screens */
	}

	#about-us .about-us-content,
	#learning-environment .learning-content,
	.community-showcase,
	.contact-wrapper {
		flex-direction: column;
	}
	.about-us-image,
	.learning-image,
	.community-showcase img {
		max-width: 100%;
		margin-top: 20px;
	}
	.contact-info-container {
		padding-left: 0;
		border-left: none;
		margin-top: 30px;
		border-top: 1px solid #eee;
		padding-top: 30px;
	}
	.contact-info-container img.contact-image {
		margin-left: auto;
		margin-right: auto;
	}
	.footer-content {
		grid-template-columns: 1fr;
		text-align: center;
	}
	.footer-col h4::after {
		left: 50%;
		transform: translateX(-50%);
	}
	.cookie-modal-content {
		flex-direction: column;
		text-align: center;
	}
	.cookie-modal-buttons {
		margin-top: 15px;
		flex-direction: column;
		width: 100%;
	}
	.cookie-modal-buttons .btn {
		width: 100%;
		margin-bottom: 10px;
	}
	.cookie-modal-buttons .btn:last-child {
		margin-bottom: 0;
	}
}

@media (max-width: 480px) {
	body {
		font-size: 15px;
	}
	.btn {
		padding: 10px 20px;
		font-size: 0.9em;
	}
	header .logo-img {
		height: 40px;
	}
	header h1 {
		font-size: 1.5em;
	}
	#hero h2 {
		font-size: 2.2em;
	}
	#hero p {
		font-size: 1em;
	}
}

/* Mobile Menu Specifics */
@media (max-width: 768px) {
	.mobile-menu-toggle {
		display: block; /* Show hamburger on mobile */
		order: 3; /* Place it after logo and potentially nav if nav was visible */
		margin-left: auto; /* Push to the right if header is row */
	}
	header .container {
		flex-direction: row; /* Keep header items in a row */
		justify-content: space-between; /* Space between logo and toggle */
		flex-wrap: nowrap; /* Prevent wrapping of logo and toggle */
	}
	.logo-link {
		margin-bottom: 0; /* Remove bottom margin if header is row */
	}

	nav#mainNav {
		display: none; /* Hide nav by default on mobile */
		width: 100%;
		order: 4; /* Ensure it's below toggle if needed, but absolute positioning handles stacking */
	}

	nav#mainNav ul {
		/* Default mobile nav ul styles are now in .mobile-menu-open ul */
		/* This ensures they are hidden until the menu is toggled */
		display: none;
	}

	nav#mainNav.mobile-menu-open ul {
		display: flex; /* Show ul when menu is open */
		flex-direction: column;
		align-items: center;
	}
	/* End Mobile Menu Specifics */
}
