/* General Styles */
*,
*::after,
*::before {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

:root {
	--primary-color: #007bff; /* Blueish */
	--secondary-color: #6c757d; /* Grey */
	--accent-color: #28a745; /* Greenish for CTAs */
	--light-bg: #f9f9f9;
	--dark-text: #333;
	--light-text: #fff;
	--card-bg: #ffffff;
	--border-color: #e0e0e0;
	--footer-bg: #2c3e50; /* Darker blue/grey */
	--link-hover-color: #0056b3;
	--font-primary: 'Arial', sans-serif; /* More common fallback */
	--font-secondary: 'Georgia', serif;
}

body {
	font-family: var(--font-primary);
	margin: 0;
	padding: 0;
	color: var(--dark-text);
	line-height: 1.6;
	background-color: #fff;
	overflow-x: hidden; /* Prevent horizontal scrollbars */
}

body.no-scroll {
	overflow-y: hidden;
}

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

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

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

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

h1,
h2,
h3 {
	font-family: var(--font-secondary);
	color: var(--primary-color);
	margin-bottom: 0.8em;
}
h1 {
	font-size: 2.8rem;
	line-height: 1.2;
}
h2 {
	font-size: 2.2rem;
	text-align: center;
	margin-bottom: 1.5em;
}
h3 {
	font-size: 1.6rem;
}

.section-intro {
	text-align: center;
	font-size: 1.1rem;
	color: var(--secondary-color);
	margin-bottom: 2.5em;
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
}

/* Header */
header {
	background-color: var(--light-text);
	padding: 15px 0;
	box-shadow: 0 2px 5px 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;
	text-decoration: none;
}

.logo-img {
	height: 40px; /* Consistent logo size */
	margin-right: 10px;
}

.logo-text {
	font-size: 1.2rem;
	font-weight: bold;
	color: var(--primary-color);
	font-family: var(--font-secondary);
}

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

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

header nav ul li a {
	text-decoration: none;
	color: var(--dark-text);
	font-weight: bold;
	padding: 5px 0;
	position: relative;
	transition: color 0.3s ease;
}

header nav ul li a::after {
	content: '';
	position: absolute;
	width: 0;
	height: 2px;
	bottom: -2px;
	left: 0;
	background-color: var(--primary-color);
	transition: width 0.3s ease;
}

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

header nav ul li a:hover::after,
header nav ul li a.active::after {
	width: 100%;
}

/* Mobile Navigation Toggle Button */
.mobile-nav-toggle {
	display: none; /* Hidden by default, shown in media query */
	background: transparent;
	border: none;
	padding: 10px;
	cursor: pointer;
	z-index: 1001; /* Above nav, below modal if any */
}

.hamburger-icon {
	display: block;
	width: 24px; /* Width of the hamburger lines */
	height: 2px; /* Thickness of the middle line */
	background-color: var(--primary-color);
	position: relative;
	transition: background-color 0.2s ease-in-out;
}

.hamburger-icon::before,
.hamburger-icon::after {
	content: '';
	display: block;
	width: 24px; /* Width of the hamburger lines */
	height: 2px; /* Thickness of the top/bottom lines */
	background-color: var(--primary-color);
	position: absolute;
	left: 0;
	transition: transform 0.2s ease-in-out, top 0.2s ease-in-out;
}

.hamburger-icon::before {
	top: -7px; /* Position of the top line */
}

.hamburger-icon::after {
	top: 7px; /* Position of the bottom line */
}

/* Transform hamburger to X when menu is open */
.mobile-nav-toggle[aria-expanded='true'] .hamburger-icon {
	background-color: transparent; /* Middle line disappears */
}

.mobile-nav-toggle[aria-expanded='true'] .hamburger-icon::before {
	transform: rotate(45deg);
	top: 0;
}

.mobile-nav-toggle[aria-expanded='true'] .hamburger-icon::after {
	transform: rotate(-45deg);
	top: 0;
}

/* Hero Section */
#hero {
	background-size: cover;
	background-position: center;
	color: var(--light-text);
	text-align: center;
	padding: 100px 0; /* Increased padding */
	position: relative;
}

#hero::before {
	/* Overlay for better text readability */
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5); /* Darker overlay */
	z-index: 1;
}

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

#hero h1 {
	font-size: 3.2rem;
	margin-bottom: 0.5em;
	color: var(--light-text);
	font-weight: 700;
}

#hero p {
	font-size: 1.2rem;
	margin-bottom: 1.5em;
	line-height: 1.7;
}

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

.cta-button:hover {
	background-color: #218838; /* Darker green */
	transform: translateY(-2px);
	text-decoration: none;
	color: var(--light-text);
}

.cta-button.secondary {
	background-color: var(--secondary-color);
}
.cta-button.secondary:hover {
	background-color: #5a6268;
}

/* Scalable Sections & Animations */
.scalable-section {
	padding: 60px 0;
	opacity: 0;
	transform: scale(0.95);
	transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scalable-section.visible {
	opacity: 1;
	transform: scale(1);
}

.full-width-section {
	width: 100vw;
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	box-sizing: border-box; /* Important for full width */
}
/* Ensure container within full-width is not affected */
.full-width-section > .container {
	margin-left: auto;
	margin-right: auto;
	padding-left: 15px; /* Standard container padding */
	padding-right: 15px; /* Standard container padding */
	/* Resetting the negative margins from parent for the direct child container */
	position: relative;
	left: auto;
	right: auto;
	width: 90%; /* or your standard container width */
	max-width: 1200px; /* or your standard max-width */
}

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

.card {
	background-color: var(--card-bg);
	padding: 25px;
	border-radius: 8px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
	text-align: center;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card img {
	width: 100%; /* Icon size */
	height: auto;
	margin: 0 auto 20px auto;
}

.card h3 {
	margin-bottom: 10px;
	font-size: 1.4rem;
	color: var(--primary-color);
}

.card p {
	font-size: 0.95rem;
	color: #555;
	line-height: 1.5;
}

/* Philosophy Section (Text Only) */
#philosophy {
	background-size: cover;
	background-position: center;
	color: var(--light-text); /* Assuming dark background image */
	padding: 80px 0;
	position: relative;
}
#philosophy::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 45, 95, 0.7); /* Dark blue overlay */
	z-index: 1;
}
#philosophy .container {
	position: relative;
	z-index: 2;
	max-width: 900px;
}
#philosophy h2 {
	color: var(--light-text);
	text-align: left;
}
#philosophy p {
	font-size: 1.1rem;
	line-height: 1.8;
	text-align: justify;
}

/* Contact Section */
#contact {
	background-color: var(--light-bg); /* Light background for contrast */
}

#contact h2 {
	color: var(--primary-color);
	margin-bottom: 1em;
}

.contact-form-container {
	max-width: 700px;
	margin: 0 auto;
	background-color: var(--card-bg);
	padding: 30px;
	border-radius: 8px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

#contact-form input[type='text'],
#contact-form input[type='email'],
#contact-form textarea {
	width: calc(100% - 22px); /* Account for padding and border */
	padding: 12px;
	margin-bottom: 15px;
	border: 1px solid var(--border-color);
	border-radius: 4px;
	background-color: #fff;
	color: var(--dark-text);
	font-size: 1rem;
	box-sizing: border-box;
}

#contact-form input[type='text']::placeholder,
#contact-form input[type='email']::placeholder,
#contact-form textarea::placeholder {
	color: #999;
}

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

.form-consent {
	display: flex;
	align-items: center;
	margin-bottom: 15px;
	font-size: 0.9rem;
	color: var(--secondary-color);
}

.form-consent input[type='checkbox'] {
	width: auto; /* Override default form input width */
	margin-right: 10px;
	accent-color: var(--primary-color); /* Style checkbox color */
	transform: scale(1.1); /* Slightly larger checkbox */
}

.form-consent label {
	margin-bottom: 0; /* Remove any default label margin */
	cursor: pointer;
}

#contact-form button {
	width: 100%;
	padding: 12px 25px;
}

/* Footer */
footer {
	background-color: var(--footer-bg);
	color: #ccc; /* Lighter text for dark background */
	padding: 0;
}

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

.footer-column h3 {
	color: var(--light-text);
	margin-bottom: 20px;
	font-size: 1.3rem;
	border-bottom: 1px solid var(--primary-color);
	padding-bottom: 10px;
	display: inline-block;
}

.footer-column p,
.footer-column ul li {
	margin-bottom: 10px;
	font-size: 0.95rem;
}

.footer-column a {
	color: #aaa; /* Lighter link color */
	transition: color 0.3s ease;
}

.footer-column a:hover {
	color: var(--light-text);
	text-decoration: underline;
}

.footer-column ul {
	list-style: none;
	padding: 0;
}

.form-status {
	margin-top: 10px;
	font-size: 0.9rem;
	min-height: 1.2em; /* Reserve space for message */
}
.form-status.success {
	color: var(--accent-color);
}
.form-status.error {
	color: #dc3545; /* Red for errors */
}

.copyright {
	text-align: center;
	padding: 20px;
	border-top: 1px solid #444; /* Separator line */
	font-size: 0.9rem;
	color: #aaa;
}

/* 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);
	padding: 20px;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
	z-index: 2000;
	display: none; /* Hidden by default */
	font-size: 0.95rem;
}

.cookie-modal-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	max-width: 1200px;
	margin: 0 auto;
	flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.cookie-modal-content p {
	margin: 0 20px 10px 0; /* Add bottom margin for wrapped layout */
	flex-grow: 1;
}

.cookie-modal-content p a {
	color: var(--primary-color);
	text-decoration: underline;
}
.cookie-modal-content p a:hover {
	color: var(--link-hover-color);
}

.cookie-modal-buttons {
	display: flex;
	gap: 10px;
	flex-shrink: 0; /* Prevent buttons from shrinking too much */
}

.cookie-modal-buttons .cta-button {
	padding: 8px 18px;
	font-size: 0.9rem;
}

/* Courses Page Specific Styles */
.content-with-image,
.content-with-image-reverse {
	display: flex;
	align-items: center;
	gap: 40px;
	margin-bottom: 40px;
}

.content-with-image .text-content,
.content-with-image-reverse .text-content {
	flex: 1;
}
.content-with-image .image-content,
.content-with-image-reverse .image-content {
	flex: 1;
	max-width: 500px; /* Control image size */
}

.content-with-image-reverse {
	flex-direction: row-reverse;
}

.section-image {
	border-radius: 8px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

#programs-overview h2,
#learning-experience h2 {
	text-align: left; /* Align section titles to left for these layouts */
}
#programs-overview p,
#learning-experience p {
	font-size: 1.05rem;
	line-height: 1.7;
}
.emoji {
	display: inline-block;
	margin-left: 5px;
	font-size: 1.5em; /* Make emoji slightly larger */
}

/* FAQ Section */
#faq .content-with-image {
	align-items: flex-start; /* Align items to top for FAQ */
}
.faq-items {
	display: flex;
	flex-direction: column;
	gap: 15px;
}
.faq-item {
	border: 1px solid var(--border-color);
	border-radius: 5px;
	background-color: var(--card-bg);
}
.faq-item summary {
	padding: 15px;
	font-weight: bold;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	color: var(--primary-color);
	list-style: none; /* Remove default marker */
}
.faq-item summary::-webkit-details-marker {
	display: none;
} /* Chrome/Safari */
.faq-item summary::after {
	content: '+'; /* Collapsed state icon */
	font-size: 1.5em;
	font-weight: normal;
	transition: transform 0.3s ease;
}
.faq-item[open] summary::after {
	content: '−'; /* Expanded state icon */
	transform: rotate(180deg);
}
.faq-item p {
	padding: 0 15px 15px 15px;
	font-size: 0.95rem;
	color: #555;
	border-top: 1px solid var(--border-color);
	margin-top: 10px;
}

/* Legal Pages Specific Styles */
.legal-page {
	padding: 40px 0;
	background-color: #fff; /* Ensure clean background for legal text */
}
.legal-page .container {
	max-width: 900px; /* Optimal width for readability */
}
.legal-page h1 {
	font-size: 1.5rem;
	margin-bottom: 0.5em;
	border-bottom: 2px solid var(--primary-color);
	padding-bottom: 0.3em;
	text-align: left;
}
.legal-page h2 {
	font-size: 1.5rem;
	margin-top: 2em;
	margin-bottom: 0.8em;
	color: var(--dark-text); /* Darker h2 for less emphasis than h1 */
	text-align: left;
	padding-bottom: 0.2em;
	border-bottom: 1px solid var(--border-color);
}
.legal-page p,
.legal-page ul {
	margin-bottom: 1.2em;
	font-size: 1rem;
	line-height: 1.7;
	color: #444;
}
.legal-page ul {
	padding-left: 25px;
}
.legal-page ul li {
	margin-bottom: 0.5em;
}
.legal-page em {
	/* For "Last updated" */
	display: block;
	margin-bottom: 2em;
	color: var(--secondary-color);
	font-size: 0.9rem;
}
.legal-footer {
	background-color: var(--light-bg);
	text-align: center;
	padding: 20px 0;
	margin-top: 40px;
	border-top: 1px solid var(--border-color);
}
.legal-footer p {
	margin: 0;
	color: var(--secondary-color);
	font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
	h1 {
		font-size: 2.5rem;
	}
	h2 {
		font-size: 2rem;
	}
	#hero h1 {
		font-size: 2.8rem;
	}

	.content-with-image,
	.content-with-image-reverse {
		flex-direction: column;
		text-align: center;
	}
	.content-with-image .text-content,
	.content-with-image-reverse .text-content {
		margin-bottom: 30px;
	}
	#programs-overview h2,
	#learning-experience h2,
	#faq h2 {
		text-align: center;
	}
	.content-with-image .image-content,
	.content-with-image-reverse .image-content {
		margin: 0 auto; /* Center image content */
	}
}

@media (max-width: 768px) {
	header .container {
		flex-direction: row; /* Ensure logo and toggle are on the same line */
		justify-content: space-between;
		align-items: center;
	}
	.logo-link {
		margin-bottom: 0; /* Remove bottom margin since it's on the same line */
	}
	.mobile-nav-toggle {
		display: block; /* Show hamburger button */
	}

	header nav#main-nav {
		/* The <nav> element for mobile */
		display: none; /* Hidden by default */
		position: absolute;
		top: 100%; /* Position below the header (assuming header is its offset parent) */
		left: 0;
		right: 0; /* Take full width */
		background-color: var(--card-bg);
		box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
		z-index: 1000; /* Ensure it's above content but below sticky header's potential top layer items */
		border-top: 1px solid var(--border-color);
	}

	header nav#main-nav.mobile-active {
		display: block; /* Show when active */
	}

	header nav#main-nav ul {
		display: flex;
		flex-direction: column; /* Stack items vertically */
		width: 100%;
		margin: 0;
		padding: 0;
	}

	header nav#main-nav ul li {
		margin-left: 0; /* Reset desktop margin */
		width: 100%;
		text-align: left; /* Or 'center' if preferred for mobile links */
	}

	header nav#main-nav ul li a {
		display: block; /* Make links take full width of li */
		padding: 15px 20px; /* Comfortable touch targets */
		border-bottom: 1px solid var(--border-color);
		color: var(--dark-text);
		font-weight: normal; /* Reset from desktop bold if any */
		transition: background-color 0.2s ease, color 0.2s ease;
	}
	header nav#main-nav ul li a.active,
	header nav#main-nav ul li a:hover {
		background-color: var(--light-bg); /* Slight highlight on hover/active */
		color: var(--primary-color);
		text-decoration: none;
	}
	header nav#main-nav ul li a::after {
		display: none; /* Remove desktop underline style */
	}
	header nav#main-nav ul li:last-child a {
		border-bottom: none; /* No border for the last item */
	}

	#hero {
		padding: 60px 0;
	}
	#hero h1 {
		font-size: 2.2rem;
	}
	#hero p {
		font-size: 1rem;
	}

	.footer-columns {
		grid-template-columns: 1fr; /* Stack columns */
		text-align: center;
	}
	.footer-column h3 {
		display: block; /* Center heading better when stacked */
		margin-left: auto;
		margin-right: auto;
	}

	.cookie-modal-content {
		flex-direction: column;
		text-align: center;
	}
	.cookie-modal-content p {
		margin-right: 0;
		margin-bottom: 15px;
	}
	.cookie-modal-buttons {
		width: 100%;
		justify-content: center;
	}
	.cookie-modal-buttons .cta-button {
		flex-grow: 1; /* Make buttons take available space */
	}
}

@media (max-width: 480px) {
	body {
		font-size: 15px;
	} /* Slightly smaller base font for small screens */
	h1 {
		font-size: 2rem;
	}
	h2 {
		font-size: 1.8rem;
	}
	#hero h1 {
		font-size: 2rem;
	}
	.cta-button {
		padding: 10px 20px;
		font-size: 0.9rem;
	}

	.cards-container {
		grid-template-columns: 1fr; /* Single column for cards */
	}
	.scalable-section {
		padding: 40px 0;
	}
	.logo-text {
		font-size: 1.5rem;
	}
	.logo-img {
		height: 35px;
	}
}
