/* Global Resets & Variables */
:root {
	--primary-color: #007bff; /* A nice blue */
	--primary-color-dark: #0069d9; /* Darker blue for hover */
	--secondary-color: #6c757d; /* A calm gray */
	--secondary-color-dark: #5a6268; /* Darker gray for hover */
	--accent-color: #28a745; /* A vibrant green for accents */
	--light-color: #f8f9fa; /* Light background */
	--dark-color: #343a40; /* Dark text and elements */
	--text-color: #212529; /* Primary text color */
	--text-muted: #6c757d; /* Muted text color */
	--border-color: #dee2e6; /* Border color */
	--font-family-sans-serif: 'Arial', sans-serif; /* Cleaner font */
	--font-family-heading: 'Georgia', serif; /* Slightly more formal for headings */
	--container-width: 1140px;
	--border-radius: 0.3rem;
	--box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

body {
	font-family: var(--font-family-sans-serif);
	line-height: 1.6;
	color: var(--text-color);
	background-color: #fff;
	overflow-x: hidden; /* Prevent horizontal scroll */
}

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

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

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

ul {
	list-style: none;
}

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

h1 {
	font-size: 2.8rem;
}
h2 {
	font-size: 2.2rem;
}
h3 {
	font-size: 1.8rem;
}
p {
	margin-bottom: 1rem;
}

.section-subtitle {
	font-size: 1.1rem;
	color: var(--text-muted);
	margin-bottom: 2rem;
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

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

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

header nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	position: relative;
}

header .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 img {
	height: 40px;
	width: auto;
}

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

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

header ul li a {
	text-decoration: none;
	color: var(--dark-color);
	font-weight: 500;
	transition: color 0.3s ease;
}

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

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
	display: none;
	background: none;
	border: none;
	font-size: 1.8rem;
	color: var(--primary-color);
	cursor: pointer;
	padding: 0.5rem;
	line-height: 1;
}

/* Sections */
main section {
	padding: 60px 0;
}

section:nth-child(even):not(.text-only-section):not(.legal-page-section):not(
		.program-deep-dive-section
	) {
	background-color: var(--light-color);
}

.text-only-section {
	background-color: var(--light-color);
	padding: 60px 0;
}

.text-only-section .container {
	max-width: 800px; /* Optimal for reading */
}

.text-only-section h2 {
	text-align: center;
	margin-bottom: 2rem;
}

.text-only-section p {
	font-size: 1.1rem;
	line-height: 1.7;
	margin-bottom: 1.5rem;
}

/* 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, transform 0.2s 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-color-dark);
	border-color: var(--primary-color-dark);
	color: #fff;
	text-decoration: none;
	transform: translateY(-2px);
}

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

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

/* Hero Section */
.hero-section {
	background: linear-gradient(rgba(0, 123, 255, 0.05), rgba(0, 123, 255, 0.05));
	color: var(--dark-color);
	padding: 80px 0;
	text-align: left;
}

.hero-section .container {
	display: flex;
	align-items: center;
	gap: 2rem;
}

.hero-content {
	flex: 1;
}

.hero-image-container {
	flex: 1;
	text-align: center;
}
.hero-image-container img {
	width: 100%;
	max-width: 500px;
	border-radius: var(--border-radius);
	box-shadow: var(--box-shadow);
}

.hero-section h1 {
	font-size: 3rem;
	margin-bottom: 1rem;
	color: var(--dark-color);
}

.hero-section p {
	font-size: 1.2rem;
	margin-bottom: 2rem;
	max-width: 600px;
}

/* Why Choose Us Section */
.why-choose-us-section h2,
.featured-programs-section h2,
.our-mission-section h2,
.page-title-section h1 {
	text-align: center;
	margin-bottom: 1rem; /* Reduced margin */
}

.cards-container {
	display: flex;
	gap: 2rem;
	justify-content: center;
	margin-top: 2rem; /* Added margin-top to separate from subtitle */
}

.card {
	background-color: #fff;
	padding: 2rem;
	border-radius: var(--border-radius);
	box-shadow: var(--box-shadow);
	text-align: center;
	flex: 1;
	max-width: 350px; /* Max width for cards */
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.card-icon {
	width: 100%;
	height: auto;
	margin: 0 auto 1rem auto;
	/* background-color: var(--primary-color-light); Optionally a light bg for icon */
	/* border-radius: 50%; */
	/* display: flex; */
	/* align-items: center; */
	/* justify-content: center; */
}

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

/* Featured Programs Section */
.programs-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
	margin-top: 2rem;
}

.program-card {
	background-color: #fff;
	border-radius: var(--border-radius);
	box-shadow: var(--box-shadow);
	overflow: hidden; /* To contain image */
	display: flex;
	flex-direction: column;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.program-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

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

.program-card h3 {
	font-size: 1.4rem;
	padding: 1rem 1rem 0.5rem 1rem;
	color: var(--primary-color);
}

.program-card p {
	padding: 0 1rem 1rem 1rem;
	flex-grow: 1; /* Allows p to take available space */
	font-size: 0.95rem;
}

.program-card .btn-secondary {
	margin: 0 1rem 1rem 1rem;
	align-self: flex-start; /* Aligns button to the start of the flex item (itself) */
}

/* Page Title Section (for subpages) */
.page-title-section {
	background-color: var(--primary-color);
	color: #fff;
	padding: 40px 0;
	text-align: center;
}
.page-title-section h1 {
	color: #fff;
	margin-bottom: 0.5rem;
}
.page-title-section p {
	font-size: 1.1rem;
	color: rgba(255, 255, 255, 0.9);
	margin-bottom: 0;
}

/* Legal Page Section */
.legal-page-section {
	padding: 40px 0;
}
.legal-page-section .container {
	max-width: 800px;
}
.legal-page-section h1 {
	font-size: 1.5rem;
	margin-bottom: 0.5rem;
}
.legal-page-section p,
.legal-page-section ul {
	margin-bottom: 1.5rem;
	line-height: 1.7;
}
.legal-page-section ul {
	padding-left: 20px;
	list-style: disc;
}
.legal-page-section ul ul {
	list-style: circle;
	margin-top: 0.5rem;
	margin-bottom: 0.5rem;
}
.legal-page-section h2 {
	margin-top: 2rem;
	margin-bottom: 1rem;
	font-size: 1.5rem;
}
.legal-page-section h3 {
	margin-top: 1.5rem;
	margin-bottom: 0.75rem;
	font-size: 1.3rem;
}
.legal-page-section em {
	color: var(--text-muted);
	display: block;
	margin-bottom: 2rem;
}

/* FAQ Section */
.faq-section {
	padding: 60px 0;
}
.faq-section .container {
	max-width: 800px;
}
.faq-item {
	margin-bottom: 1rem;
	border: 1px solid var(--border-color);
	border-radius: var(--border-radius);
	overflow: hidden;
}
.faq-question {
	background-color: var(--light-color);
	color: var(--dark-color);
	cursor: pointer;
	padding: 1rem 1.5rem;
	width: 100%;
	border: none;
	text-align: left;
	outline: none;
	font-size: 1.1rem;
	font-weight: 500;
	transition: background-color 0.3s ease;
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.faq-question:hover {
	background-color: #e9ecef;
}
.faq-question::after {
	/* Basic arrow, can be replaced with SVG or font icon */
	content: '+';
	font-size: 1.5rem;
	color: var(--primary-color);
	transition: transform 0.3s ease;
}
.faq-question.active::after {
	transform: rotate(45deg);
}
.faq-answer {
	padding: 0 1.5rem;
	background-color: white;
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}
.faq-answer p {
	padding: 1.5rem 0;
	margin-bottom: 0;
}

/* Contact Form Section */
.contact-form-section {
	padding: 60px 0;
}
.contact-layout {
	display: flex;
	gap: 3rem;
	align-items: flex-start;
}
.contact-form-container {
	flex: 1.5;
}
.contact-details-container {
	flex: 1;
	background-color: var(--light-color);
	padding: 2rem;
	border-radius: var(--border-radius);
}
.contact-details-container h2 {
	color: var(--primary-color);
}
.contact-info-list li {
	margin-bottom: 1rem;
	display: flex;
	align-items: flex-start;
}
.contact-info-list .emoji {
	font-size: 1.5rem;
	margin-right: 0.75rem;
	margin-top: -0.2rem; /* Adjust alignment */
}
.contact-info-list strong {
	display: block;
	margin-bottom: 0.25rem;
}

.form-group {
	margin-bottom: 1.5rem;
}
.form-group label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 500;
}
.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, box-shadow 0.3s ease;
}
.form-group input[type='email']:focus,
.form-group textarea:focus {
	border-color: var(--primary-color);
	box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
	outline: none;
}

.form-group-checkbox {
	display: flex;
	align-items: center;
	gap: 0.5rem; /* Space between checkbox and label */
}

.form-group-checkbox input[type='checkbox'] {
	width: auto; /* Override default full width for checkboxes */
	margin-top: -0.1rem; /* Align checkbox better with label text */
}

.form-group-checkbox .checkbox-label {
	margin-bottom: 0; /* Remove default label margin */
	font-weight: normal; /* Make label text normal weight */
	font-size: 0.9rem;
}

textarea {
	resize: vertical;
}
#form-feedback {
	margin-top: 1rem;
	padding: 0.75rem;
	border-radius: var(--border-radius);
	display: none; /* Hidden by default */
}
#form-feedback.success {
	background-color: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
	display: block;
}
#form-feedback.error {
	background-color: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
	display: block;
}

/* Program Deep Dive Sections */
.program-deep-dive-section {
	padding: 60px 0;
}
.program-deep-dive-section .container {
	display: flex;
	gap: 2.5rem;
	align-items: center;
}
.program-deep-dive-image {
	flex: 1;
	max-width: 450px;
}
.program-deep-dive-image img {
	border-radius: var(--border-radius);
	box-shadow: var(--box-shadow);
}
.program-deep-dive-content {
	flex: 1.5;
}
.program-deep-dive-content h2 {
	color: var(--primary-color);
	margin-bottom: 1rem;
}
.program-deep-dive-content h3 {
	font-size: 1.3rem;
	margin-top: 1.5rem;
	margin-bottom: 0.5rem;
	color: var(--dark-color);
}
.program-deep-dive-content ul {
	list-style: disc;
	padding-left: 20px;
	margin-bottom: 1rem;
}
.program-deep-dive-content ul li {
	margin-bottom: 0.5rem;
}
.program-deep-dive-section.alternate-layout .container {
	flex-direction: row-reverse;
}

/* Learning Environment Section */
.learning-environment-section {
	padding: 60px 0;
	background-color: var(--light-color);
}
.learning-environment-section h2 {
	text-align: center;
	margin-bottom: 2rem;
}
.learning-content-wrapper {
	display: flex;
	gap: 2.5rem;
	align-items: center;
}
.learning-text {
	flex: 1.2;
}
.learning-image {
	flex: 1;
	max-width: 500px;
}
.learning-image img {
	border-radius: var(--border-radius);
	box-shadow: var(--box-shadow);
}

/* Footer */
footer {
	background-color: var(--dark-color);
	color: var(--light-color);
	padding: 40px 0 20px;
}

.footer-content {
	display: flex;
	flex-wrap: wrap;
	gap: 2rem;
	margin-bottom: 2rem;
	padding-bottom: 2rem;
	border-bottom: 1px solid #495057; /* Slightly lighter border */
}

.footer-col {
	flex: 1;
	min-width: 250px; /* Ensures columns don't get too narrow */
}

.footer-col h4 {
	color: #fff;
	margin-bottom: 1rem;
	font-size: 1.2rem;
}

.footer-col p,
.footer-col ul li {
	margin-bottom: 0.5rem;
	font-size: 0.95rem;
	color: #adb5bd; /* Lighter gray for text */
}

.footer-col a {
	color: #ced4da; /* Even lighter for links */
	text-decoration: none;
}

.footer-col a:hover {
	color: #fff;
	text-decoration: underline;
}

.copyright {
	text-align: center;
	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, JS will show it */
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.cookie-modal-content {
	max-width: 800px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}
.cookie-modal-content p {
	margin-bottom: 1rem;
	font-size: 0.95rem;
}

.cookie-modal-actions {
	display: flex;
	gap: 1rem;
}
.cookie-modal .btn {
	padding: 0.6rem 1.2rem;
}

.cookie-modal-actions .btn:last-child {
	margin-bottom: 0;
}

/* Loading Modal */
.loading-modal {
	display: none; /* Hidden by default */
	position: fixed;
	z-index: 2000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0, 0, 0, 0.6);
	justify-content: center;
	align-items: center;
	flex-direction: column; /* Added to ensure content centers well */
}

.loading-modal-content {
	background-color: #fff;
	padding: 30px 40px;
	border-radius: var(--border-radius);
	text-align: center;
	box-shadow: var(--box-shadow);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
}

.loading-modal-content p {
	margin-bottom: 0;
	font-size: 1.1rem;
	color: var(--dark-color);
}

.loader {
	border: 6px solid var(--light-color);
	border-top: 6px solid var(--primary-color);
	border-radius: 50%;
	width: 50px;
	height: 50px;
	animation: spin 1s linear infinite;
}

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

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

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

/* Responsive Design */
@media (max-width: 992px) {
	.hero-section .container {
		flex-direction: column;
		text-align: center;
	}
	.hero-section p {
		margin-left: auto;
		margin-right: auto;
	}
	.hero-image-container {
		margin-top: 2rem;
	}
	.cards-container {
		flex-direction: column;
		align-items: center;
	}
	.card {
		width: 100%;
		max-width: 450px; /* Allow cards to be a bit wider on tablets */
	}
	.program-deep-dive-section .container,
	.program-deep-dive-section.alternate-layout .container {
		flex-direction: column;
	}
	.program-deep-dive-image {
		max-width: 100%; /* Allow image to take full width if needed */
		margin-bottom: 1.5rem;
	}
	.learning-content-wrapper {
		flex-direction: column;
	}
	.learning-image {
		max-width: 100%;
		margin-top: 1.5rem;
	}
	.contact-layout {
		flex-direction: column;
	}
	.contact-details-container {
		margin-top: 2rem; /* Add space when stacked */
	}
}

@media (max-width: 768px) {
	h1 {
		font-size: 2.2rem;
	}
	h2 {
		font-size: 1.8rem;
	}
	.hero-section h1 {
		font-size: 2.5rem;
	}
	.hero-section p {
		font-size: 1.1rem;
	}

	header nav {
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
	}
	header .logo {
		margin-bottom: 0;
	}

	.mobile-menu-toggle {
		display: block;
	}

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

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

	header ul#main-nav-links li {
		margin-left: 0;
		margin-bottom: 0;
		width: 100%;
	}
	header ul#main-nav-links li a {
		display: block;
		padding: 1rem 1.5rem;
		border-bottom: 1px solid var(--border-color);
		text-align: left;
		color: var(--dark-color);
	}
	header ul#main-nav-links li a:hover,
	header ul#main-nav-links li a.active {
		background-color: var(--light-color);
		color: var(--primary-color);
	}

	header ul#main-nav-links li:last-child a {
		border-bottom: none;
	}

	.programs-grid {
		grid-template-columns: 1fr; /* Single column for mobile */
	}

	.footer-content {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
	.footer-col {
		width: 100%;
		max-width: 350px;
	}
	.cookie-modal-content {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
	.cookie-modal-actions {
		margin-top: 1rem;
		flex-direction: column;
		width: 100%;
	}
	.cookie-modal-actions .btn {
		width: 100%;
		margin-bottom: 0.5rem;
	}
	.cookie-modal-actions .btn:last-child {
		margin-bottom: 0;
	}
}

@media (max-width: 576px) {
	body {
		font-size: 0.95rem;
	}
	main section {
		padding: 40px 0;
	}
	.hero-section {
		padding: 60px 0;
	}
	.hero-section h1 {
		font-size: 2rem;
	}
	.hero-section p {
		font-size: 1rem;
	}
	h1 {
		font-size: 1.8rem;
	}
	h2 {
		font-size: 1.6rem;
	}
	.btn {
		padding: 0.6rem 1.2rem;
		font-size: 0.9rem;
	}
}
