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

body {
	font-family: 'Arial', sans-serif;
	line-height: 1.6;
	color: #333;
	background-color: #f9f9f9;
}

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

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

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

.logo-link {
	text-decoration: none;
	color: #333;
	font-size: 1rem;
	font-weight: bold;
	display: flex;
	align-items: center;
}

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

header nav ul {
	list-style: none;
	display: flex;
}

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

header nav ul li a {
	text-decoration: none;
	color: #333;
	font-weight: 500;
	transition: color 0.3s ease;
}

header nav ul li a:hover,
header nav ul li a.active {
	color: #007bff;
}

.mobile-nav-toggle {
	display: none; /* Hidden by default, shown on mobile */
	font-size: 1.5rem;
	background: none;
	border: none;
	cursor: pointer;
}

/* Main Content Sections */
main section {
	padding: 60px 0;
	overflow: hidden; /* For animations */
}

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

main section h1,
main section h2 {
	text-align: center;
	margin-bottom: 40px;
	color: #222;
	font-size: 2.5rem;
}

main section h2 {
	font-size: 2.2rem;
}
main section p {
	margin-bottom: 20px;
	color: #555;
	font-size: 1.1rem;
}

/* Hero Section */
#hero {
	background: linear-gradient(to right, #007bff, #0056b3);
	color: #fff;
	padding: 80px 0;
}
#hero h1 {
	color: #fff;
	font-size: 3rem;
	text-align: left;
}
#hero p {
	color: #f0f0f0;
	font-size: 1.2rem;
	margin-bottom: 30px;
	text-align: left;
}
#hero .container {
	display: flex;
	align-items: center;
	gap: 30px;
}
#hero .hero-content {
	flex: 1;
}
#hero .hero-image {
	flex: 1;
	text-align: center;
}
#hero .hero-image img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Why Us Section */
#why-us .container {
	display: flex;
	align-items: center;
	gap: 40px;
}
#why-us .why-us-content {
	flex: 1;
}
#why-us .why-us-image {
	flex: 1;
	text-align: center;
}
#why-us .why-us-image img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}
#why-us ul {
	list-style: none;
	padding-left: 0;
}
#why-us ul li {
	margin-bottom: 15px;
	font-size: 1.1rem;
	position: relative;
	padding-left: 25px;
}
#why-us ul li::before {
	content: '✔';
	color: #007bff;
	position: absolute;
	left: 0;
	font-weight: bold;
}

/* Programs Overview / Cards */
#programs-overview .cards-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
	margin-top: 30px;
}
.card {
	background-color: #fff;
	padding: 25px;
	border-radius: 8px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
	text-align: center;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
	transform: translateY(-10px);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.card img {
	width: 100%;
	height: auto;
	margin-bottom: 20px;
}
.card h3 {
	font-size: 1.5rem;
	margin-bottom: 15px;
	color: #007bff;
}
.card p {
	font-size: 1rem;
	color: #666;
	margin-bottom: 20px;
}

/* Buttons */
.btn,
.btn-secondary {
	display: inline-block;
	padding: 12px 25px;
	border-radius: 5px;
	text-decoration: none;
	font-weight: bold;
	transition: background-color 0.3s ease, transform 0.2s ease;
	cursor: pointer;
	border: none;
}
.btn {
	background-color: #007bff;
	color: #fff;
}
.btn:hover {
	background-color: #0056b3;
	transform: translateY(-2px);
}
.btn-secondary {
	margin-top: 5px;
	background-color: #6c757d;
	color: #fff;
}
.btn-secondary:hover {
	background-color: #545b62;
	transform: translateY(-2px);
}

/* Learning Experience Section */
#learning-experience .container,
#student-success .container {
	display: flex;
	align-items: center;
	gap: 40px;
}
#learning-experience .learning-experience-content,
#student-success .student-success-content {
	flex: 1.2; /* More space for text */
}
#learning-experience .learning-experience-image,
#student-success .student-success-image {
	flex: 0.8; /* Less space for image */
	text-align: center;
}
#learning-experience img,
#student-success img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}
#student-success .testimonial {
	background: #f0f8ff;
	padding: 15px;
	border-radius: 5px;
	margin-bottom: 15px;
	border-left: 4px solid #007bff;
}
#student-success .testimonial p {
	font-style: italic;
	color: #444;
	margin-bottom: 5px;
}
#student-success .testimonial strong {
	display: block;
	text-align: right;
	font-style: normal;
	color: #0056b3;
}

/* Community Vibe Section */
#community-vibe {
	background-color: #e9f5ff; /* Light blue background */
}
#community-vibe .text-center {
	text-align: center;
}
#community-vibe h2 {
	font-size: 2rem;
}
#community-vibe p {
	font-size: 1.2rem;
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
}

/* FAQ Section */
#faq .faq-item {
	margin-bottom: 25px;
	background: #fff;
	padding: 20px;
	border-radius: 5px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
#faq .faq-item h4 {
	font-size: 1.3rem;
	color: #007bff;
	margin-bottom: 10px;
}
#faq .faq-item p {
	margin-bottom: 0;
}
.section-text-only {
	background-color: #f0f0f0;
}
.section-text-only p {
	text-align: left;
}

/* Contact Section */
#contact .container {
	display: flex;
	align-items: flex-start; /* Align items to the top */
	gap: 40px;
}
#contact .contact-content {
	flex: 1;
}
#contact .contact-image {
	flex: 1;
	text-align: center;
	padding-top: 40px; /* Align image a bit lower */
}
#contact .contact-image img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

/* Form Styling */
.form-group {
	margin-bottom: 20px;
}
.form-group label {
	display: block;
	margin-bottom: 5px;
	font-weight: bold;
	color: #333;
}
.form-group input[type='text'],
.form-group input[type='email'],
.form-group textarea {
	width: 100%;
	padding: 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 1rem;
}
.form-group textarea {
	resize: vertical;
}
.form-group-checkbox {
	display: flex;
	align-items: center;
	gap: 10px;
}

.form-group-checkbox input[type='checkbox'] {
	width: auto;
	margin-top: -2px;
}

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

.form-status-message {
	margin-top: 15px;
	font-weight: bold;
}
.form-status-message.success {
	color: green;
}
.form-status-message.error {
	color: red;
}

/* Footer */
footer {
	background-color: #2c3e50;
	color: #ecf0f1;
	padding: 40px 0 20px;
}
.footer-columns {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 20px;
	margin-bottom: 30px;
}
.footer-col {
	flex: 1;
	min-width: 200px; /* Ensures columns don't get too narrow */
}
.footer-col h4 {
	font-size: 1.3rem;
	margin-bottom: 15px;
	color: #fff;
	border-bottom: 1px solid #3498db;
	padding-bottom: 5px;
	display: inline-block;
}
.footer-col p,
.footer-col ul li {
	margin-bottom: 10px;
	font-size: 0.95rem;
}
.footer-col ul {
	list-style: none;
}
.footer-col a {
	color: #ecf0f1;
	text-decoration: none;
	transition: color 0.3s ease;
}
.footer-col a:hover {
	color: #3498db;
}
.copyright {
	text-align: center;
	padding-top: 20px;
	border-top: 1px solid #34495e;
	font-size: 0.9rem;
}

/* 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 */
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}
.cookie-modal.show {
	display: block;
}
.cookie-modal-content {
	max-width: 800px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
}
.cookie-modal-content p {
	margin-bottom: 0;
	font-size: 0.9rem;
}
.cookie-modal-content p a {
	color: #3498db;
	text-decoration: underline;
}
.cookie-modal-buttons button {
	margin-left: 10px;
}

/* Form Submission Modal */
.form-submission-modal {
	display: none; /* Hidden by default */
	position: fixed;
	z-index: 2000; /* Above cookie modal */
	height: fit-content;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0, 0, 0, 0.6); /* Dim background */
}

.form-submission-modal-content {
	height: fit-content;
	background-color: #fff;
	margin: 15% auto;
	padding: 30px;
	border: 1px solid #888;
	width: 80%;
	max-width: 500px;

	border-radius: 8px;
	text-align: center;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.form-submission-modal-content p {
	font-size: 1.2rem;
	margin-bottom: 20px;
}

.form-submission-modal-content .spinner {
	border: 4px solid #f3f3f3; /* Light grey */
	border-top: 4px solid #007bff; /* Blue */
	border-radius: 50%;
	width: 40px;
	height: 40px;
	animation: spin 1s linear infinite;
	margin: 0 auto 20px auto;
}

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

/* Policy Pages Basic Layout */
.policy-container {
	padding: 40px 0;
	min-height: 60vh; /* Ensure footer is pushed down */
}
.policy-container h1 {
	margin-bottom: 30px;
	text-align: center;
	font-size: 1.5rem;
}
.policy-container h2 {
	margin-top: 30px;
	margin-bottom: 15px;
	font-size: 1.5rem;
	color: #007bff;
}
.policy-container p,
.policy-container ul li {
	margin-bottom: 15px;
	line-height: 1.7;
}
.policy-container ul {
	padding-left: 20px;
}

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

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

/* Responsive Design */
@media (max-width: 992px) {
	#hero h1 {
		font-size: 2.5rem;
		text-align: center;
	}
	#hero p {
		text-align: center;
	}
	#hero .container,
	#why-us .container,
	#learning-experience .container,
	#student-success .container,
	#contact .container {
		flex-direction: column;
		text-align: center;
	}
	#hero .hero-image,
	#why-us .why-us-image,
	#learning-experience .learning-experience-image,
	#student-success .student-success-image,
	#contact .contact-image {
		margin-top: 30px;
		order: -1; /* Moves image to top in column layout for some sections */
	}
	#why-us .why-us-image,
	#contact .contact-image {
		order: 0;
	} /* Keep image below for these on mobile */
	#student-success .container {
		flex-direction: column-reverse;
	} /* Image below text */

	main section h1,
	main section h2 {
		font-size: 2rem;
	}
}

@media (max-width: 768px) {
	header nav {
		display: none; /* Hide nav by default */
		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);
	}
	header nav.active {
		display: block; /* Show nav when active */
	}
	header nav ul {
		flex-direction: column;
		width: 100%;
	}
	header nav ul li {
		margin: 0;
		text-align: center;
		border-bottom: 1px solid #f0f0f0;
	}
	header nav ul li a {
		display: block;
		padding: 15px;
	}
	.mobile-nav-toggle {
		display: block; /* Show hamburger icon */
	}

	.footer-columns {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
	.footer-col {
		margin-bottom: 20px;
	}
	.cookie-modal-content {
		flex-direction: column;
		text-align: center;
	}
	.cookie-modal-buttons {
		margin-top: 15px;
	}
	#programs-overview .cards-container {
		grid-template-columns: 1fr; /* Stack cards on mobile */
	}
}

@media (max-width: 480px) {
	#hero h1 {
		font-size: 2rem;
	}
	#hero p {
		font-size: 1rem;
	}
	main section h1,
	main section h2 {
		font-size: 1.8rem;
	}
	.btn,
	.btn-secondary {
		padding: 10px 20px;
		font-size: 0.9rem;
	}
}
