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

html {
	scroll-behavior: smooth;
}

body {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	line-height: 1.6;
	color: #333;
	background-color: #f9f9f9;
	overflow-x: hidden; /* Prevent horizontal scrollbar if any element overflows */
}

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

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

a {
	color: #007bff;
	text-decoration: none;
	transition: color 0.3s ease;
}

a:hover {
	color: #0056b3;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin-bottom: 0.75em;
	color: #2c3e50;
	line-height: 1.2;
}

h1 {
	font-size: 2.8em;
}
h2 {
	font-size: 2.2em;
}
h3 {
	font-size: 1.6em;
}

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

ul,
ol {
	margin-bottom: 1em;
	padding-left: 20px;
}

li {
	margin-bottom: 0.5em;
}

/* Header Styles */
header {
	background-color: #ffffff;
	color: #2c3e50;
	padding: 1em 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;
	text-decoration: none;
}

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

header h1 {
	font-size: 1.2em;
	margin: 0;
	color: #2c3e50;
}

.nav-menu {
	list-style: none;
	display: flex;
	padding: 0;
	margin: 0;
}

.nav-menu li {
	margin-left: 25px;
	margin-bottom: 0;
}

.nav-menu a {
	text-decoration: none;
	color: #2c3e50;
	font-weight: 500;
	padding: 0.5em 0;
	position: relative;
	transition: color 0.3s ease;
}

.nav-menu a::after {
	content: '';
	position: absolute;
	width: 0;
	height: 2px;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	background-color: #007bff;
	transition: width 0.3s ease-in-out;
}

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

.nav-menu a:hover,
.nav-menu a.active {
	color: #007bff;
}

.menu-toggle {
	display: none;
	font-size: 1.8em;
	background: none;
	border: none;
	color: #2c3e50;
	cursor: pointer;
}

/* Main Content Styles */
main {
	padding-top: 20px; /* Adjust if header height changes */
}

section {
	padding: 60px 0;
	opacity: 0; /* Initial state for animation */
	transform: scale(0.95); /* Initial state for animation */
	transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Hero Section */
#hero {
	background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
	color: #2c3e50;
	text-align: left;
}

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

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

.hero-content h2 {
	font-size: 2.8em;
	margin-bottom: 0.5em;
	color: #1a237e; /* Darker blue for emphasis */
}

.hero-content p {
	font-size: 1.1em;
	margin-bottom: 1.5em;
	color: #37474f;
}

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

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

/* Button Styles */
.btn {
	display: inline-block;
	background-color: #007bff;
	color: #fff;
	padding: 12px 25px;
	text-decoration: none;
	border-radius: 5px;
	font-weight: bold;
	transition: background-color 0.3s ease, transform 0.2s ease;
	border: none;
	cursor: pointer;
}

.btn:hover {
	color: white;
	background-color: #0056b3;
	transform: translateY(-2px);
}

.btn-secondary {
	background-color: #6c757d;
}

.btn-secondary:hover {
	background-color: #545b62;
}

/* Why Us Section */
#why-us {
	background-color: #ffffff;
}

#why-us h2 {
	text-align: center;
	margin-bottom: 40px;
}

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

.card {
	background-color: #fff;
	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%; /* Adjust size as needed */
	height: auto;
	margin: 0 auto 15px auto;
	object-fit: contain;
}

.card h3 {
	font-size: 1.4em;
	margin-bottom: 10px;
	color: #3498db;
}

/* Core Programs Section */
#core-programs {
	background-color: #e8f5e9; /* Light green background */
}

#core-programs .container {
	display: flex;
	align-items: center;
	gap: 40px;
}

.program-content {
	flex: 1;
}

.program-content h2 {
	color: #2e7d32; /* Darker green for title */
}

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

.program-content ul li {
	padding-left: 25px;
	position: relative;
	margin-bottom: 0.8em;
}

.program-content ul li::before {
	content: '✔';
	color: #4caf50; /* Green checkmark */
	position: absolute;
	left: 0;
	font-weight: bold;
}

.key-benefits {
	margin-top: 20px;
	padding: 15px;
	background-color: #ffffff;
	border-left: 5px solid #4caf50;
	border-radius: 5px;
}

.key-benefits h3 {
	font-size: 1.3em;
	color: #2e7d32;
}

.key-benefits p {
	margin-bottom: 0;
}

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

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

/* Text Only Section Styling (e.g. FAQ page main content) */
.text-only-section {
	background-color: #fff;
}
.text-only-section .container {
	max-width: 800px; /* Narrower for better readability */
}

/* Page Title Section (common for subpages) */
.page-title-section {
	background-color: #f0f4f8; /* Light blue-grey */
	text-align: center;
	padding: 40px 0;
}
.page-title-section h2 {
	color: #334e68;
}
.page-title-section p {
	font-size: 1.1em;
	color: #58738c;
}

/* Course Page Specifics */
.course-detail .container {
	display: flex;
	align-items: flex-start; /* Align items to top for varying content height */
	gap: 40px;
}

.course-image {
	flex: 0 0 40%; /* Fixed width for image container */
	max-width: 450px;
}
.course-image img {
	border-radius: 8px;
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.course-content {
	flex: 1;
}

.course-content h3 {
	color: #007bff;
	margin-top: 0; /* Reset margin if image is first */
}

.course-content ul li::before {
	/* Using the checkmark style from core programs */
	content: '✔';
	color: #007bff;
	position: absolute;
	left: 0;
	font-weight: bold;
}
.course-content ul {
	list-style: none;
	padding-left: 0;
}

.course-content ul li {
	padding-left: 25px;
	position: relative;
	margin-bottom: 0.8em;
}

.course-detail.alt-layout .container {
	flex-direction: row-reverse; /* Image on the right */
}

#student-experience {
	background-color: #fff3e0; /* Light orange background */
	text-align: center;
}
#student-experience h2 {
	color: #e65100; /* Dark orange */
}

/* FAQ Page */
#faq-list .container {
	max-width: 900px;
}

.faq-item {
	background-color: #ffffff;
	margin-bottom: 20px;
	padding: 20px;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
	border-left: 4px solid #007bff;
}

.faq-item h3 {
	font-size: 1.3em;
	color: #2c3e50;
	margin-bottom: 0.5em;
}

.faq-item p {
	margin-bottom: 0;
	color: #555;
}

/* Contact Page */
.contact-layout {
	display: flex;
	gap: 40px;
}

.contact-form-container {
	flex: 1.5; /* More space for form */
	background-color: #fff;
	padding: 30px;
	border-radius: 8px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-details-container {
	flex: 1;
	padding: 20px;
}

.contact-details-container h3 {
	color: #007bff;
}

.contact-image {
	border-radius: 8px;
	margin-bottom: 20px;
}

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

.form-group label {
	display: block;
	margin-bottom: 5px;
	font-weight: bold;
	color: #495057;
}

.form-group input[type='text'],
.form-group input[type='email'],
.form-group textarea {
	width: 100%;
	padding: 12px;
	border: 1px solid #ced4da;
	border-radius: 4px;
	font-size: 1em;
}

.form-group textarea {
	resize: vertical;
	min-height: 120px;
}

.form-group input[type='text']:focus,
.form-group input[type='email']:focus,
.form-group textarea:focus {
	border-color: #007bff;
	box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
	outline: none;
}

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

.form-group-checkbox input[type='checkbox'] {
	width: auto; /* Override default width for inputs */
	margin-right: 10px;
	appearance: none; /* Remove default browser styling */
	-webkit-appearance: none;
	-moz-appearance: none;
	width: 18px;
	height: 18px;
	border: 2px solid #ced4da;
	border-radius: 3px;
	cursor: pointer;
	position: relative;
	top: -2px; /* Align better with label */
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.form-group-checkbox input[type='checkbox']:checked {
	background-color: #007bff;
	border-color: #007bff;
}

.form-group-checkbox input[type='checkbox']:checked::after {
	content: '✔';
	color: white;
	font-size: 12px;
	font-weight: bold;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.form-group-checkbox .checkbox-label {
	font-weight: normal; /* Label for checkbox shouldn't be bold by default */
	color: #495057;
	margin-bottom: 0; /* Remove bottom margin for label */
	font-size: 0.95em;
	cursor: pointer;
}

.form-status-message {
	margin-top: 15px;
	padding: 10px;
	border-radius: 4px;
	font-weight: bold;
}
.form-status-message.success {
	background-color: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}
.form-status-message.error {
	background-color: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

/* Policy Pages (Privacy, Terms, Cookies, etc.) */
.policy-page main {
	background-color: #ffffff;
	padding-top: 30px;
	padding-bottom: 30px;
}
.policy-page .container {
	max-width: 900px; /* Good for readability of text-heavy pages */
}
.policy-page h2 {
	color: #17a2b8; /* Teal color for policy titles */
	border-bottom: 2px solid #e9ecef;
	padding-bottom: 0.5em;
	margin-bottom: 1em;
}
.policy-page h3 {
	color: #28a745; /* Green for subheadings */
	margin-top: 1.5em;
}
.policy-page p,
.policy-page ul,
.policy-page li {
	font-size: 1.05em;
	color: #454545;
}
.policy-page em {
	color: #6c757d;
	display: block;
	margin-bottom: 1.5em;
}

/* Footer Styles */
footer {
	background-color: #2c3e50;
	color: #ecf0f1;
	padding: 40px 0 20px;
	text-align: left;
}

footer .container {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 30px;
}

.footer-contact,
.footer-navigation,
.footer-links {
	flex: 1;
	min-width: 220px;
	margin-bottom: 20px;
}

.footer-contact p {
	margin-bottom: 0.5em;
	color: #bdc3c7;
}

.footer-navigation h4,
.footer-links h4 {
	color: #ffffff;
	margin-bottom: 1em;
	font-size: 1.15em;
	border-bottom: 1px solid #4a6278;
	padding-bottom: 0.5em;
}

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

.footer-navigation ul li,
.footer-links a {
	margin-bottom: 0.8em;
}

.footer-navigation ul li a,
.footer-links a {
	color: #bdc3c7;
	text-decoration: none;
	display: block;
	transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-navigation ul li a:hover,
.footer-links a:hover {
	color: #ffffff;
	padding-left: 8px;
}

.footer-contact a {
	color: #3498db;
}
.footer-contact a:hover {
	color: #5dade2;
	text-decoration: underline;
}

/* Cookie Consent Modal */
.cookie-modal {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: rgba(44, 62, 80, 0.95); /* Darker, slightly transparent */
	color: #ecf0f1;
	padding: 20px;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
	z-index: 2000;
	display: none; /* Hidden by default, shown by JS */
	align-items: center;
	justify-content: center;
	text-align: center;
}

.cookie-modal.show {
	display: flex; /* Use flex to center content */
}

.cookie-modal-content {
	max-width: 800px;
	margin: 0 auto;
}

.cookie-modal p {
	margin: 0 0 15px 0;
	font-size: 0.95em;
	color: #ecf0f1;
}

.cookie-modal a {
	color: #3498db;
	text-decoration: underline;
}

.cookie-modal a:hover {
	color: #5dade2;
}

.cookie-buttons {
	display: flex;
	justify-content: center;
	gap: 15px;
}

.cookie-buttons .btn {
	padding: 10px 20px;
}

/* Responsive Design */
@media (max-width: 992px) {
	h1 {
		font-size: 2.4em;
	}
	h2 {
		font-size: 2em;
	}
	h3 {
		font-size: 1.5em;
	}

	#hero .container,
	#core-programs .container,
	.course-detail .container,
	.course-detail.alt-layout .container {
		flex-direction: column;
		text-align: center;
	}

	.hero-content,
	.program-content,
	.course-content {
		max-width: 100%;
		order: 2; /* Content below image */
	}
	.hero-image,
	.program-image,
	.course-image {
		order: 1; /* Image above content */
		margin: 0 auto 30px auto; /* Center image */
	}
	.course-detail.alt-layout .course-content {
		order: 2;
	}
	.course-detail.alt-layout .course-image {
		order: 1;
	}

	.contact-layout {
		flex-direction: column;
	}
	.contact-form-container {
		margin-bottom: 30px;
	}
}

@media (max-width: 768px) {
	.menu-toggle {
		display: block; /* Show hamburger menu */
	}

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

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

	.nav-menu li {
		margin: 0;
		width: 100%;
		text-align: center;
	}

	.nav-menu a {
		display: block;
		padding: 1em;
		border-bottom: 1px solid #f0f0f0;
	}
	.nav-menu a::after {
		display: none; /* Remove underline for mobile menu */
	}
	.nav-menu li:last-child a {
		border-bottom: none;
	}

	.cards-container {
		grid-template-columns: 1fr; /* Stack cards on smaller screens */
	}

	footer .container {
		flex-direction: column;
		text-align: center;
	}
	.footer-contact,
	.footer-links {
		margin-bottom: 30px;
	}
}

@media (max-width: 480px) {
	body {
		font-size: 15px; /* Slightly smaller base font for very small screens */
	}
	h1 {
		font-size: 2em;
	}
	h2 {
		font-size: 1.8em;
	}
	h3 {
		font-size: 1.4em;
	}

	.container {
		width: 95%;
	}
	section {
		padding: 40px 0;
	}
	.btn {
		padding: 10px 20px;
		font-size: 0.95em;
	}
	.cookie-modal-content p {
		font-size: 0.9em;
	}
	.cookie-buttons {
		flex-direction: column;
		gap: 10px;
	}
	.cookie-buttons .btn {
		width: 100%;
	}
}

/* Disclaimer page specific styling (if needed - might be same as policy-page) */
.disclaimer-page main {
	background-color: #ffffff;
	padding-top: 30px;
	padding-bottom: 30px;
}
.disclaimer-page .container {
	max-width: 900px;
}
.disclaimer-page h2 {
	color: #17a2b8;
	border-bottom: 2px solid #e9ecef;
	padding-bottom: 0.5em;
	margin-bottom: 1em;
}
.disclaimer-page p,
.disclaimer-page ul,
.disclaimer-page li {
	font-size: 1.05em;
	color: #454545;
}
.disclaimer-page em {
	color: #6c757d;
	display: block;
	margin-bottom: 1.5em;
}
