/* Basic Reset and Global Styles */
:root {
	--primary-color: #007bff; /* Blue */
	--secondary-color: #28a745; /* Green */
	--accent-color: #ffc107; /* Yellow */
	--light-gray: #f8f9fa;
	--medium-gray: #6c757d;
	--dark-gray: #343a40;
	--text-color: #333;
	--background-color: #ffffff;
	--font-family: 'Arial', sans-serif;
	--border-radius: 8px;
	--box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

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

html {
	scroll-behavior: smooth; /* Smooth scrolling for anchor links */
}

body {
	font-family: var(--font-family);
	line-height: 1.6;
	color: var(--text-color);
	background-color: var(--background-color);
	font-size: 16px; /* Base font size */
	padding-top: 62px; /* Adjust this value based on actual navbar height */
}

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

h1,
h2,
h3,
h4 {
	color: var(--dark-gray);
	margin-bottom: 0.8em;
	line-height: 1.3;
}
h1 {
	font-size: 2.8rem;
}
h2 {
	font-size: 2.2rem;
}
h3 {
	font-size: 1.6rem;
}
h4 {
	font-size: 1.2rem;
}

p {
	margin-bottom: 1em;
}

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

a:hover {
	text-decoration: underline;
}

img {
	max-width: 100%;
	height: auto;
	border-radius: var(--border-radius);
}

.cta-button {
	display: inline-block;
	background-color: var(--primary-color);
	color: white;
	padding: 12px 25px;
	border-radius: var(--border-radius);
	text-decoration: none;
	font-weight: bold;
	transition: background-color 0.3s ease, transform 0.2s ease;
	border: none;
	cursor: pointer;
	text-align: center; /* Ensures text is centered if button width is constrained */
}

.cta-button:hover {
	background-color: #0056b3; /* Darker blue */
	text-decoration: none;
	transform: translateY(-2px);
}

/* Navbar */
.navbar {
	background-color: white;
	padding: 1rem 0;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
	position: fixed; /* Changed from sticky to fixed */
	top: 0;
	z-index: 1000;
	width: 100%;
}

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

.logo {
	height: 30px;
}
.logo img {
	height: 30px;
	width: auto;
}

.nav-links {
	list-style: none;
	display: flex;
}

.nav-links li {
	margin-left: 25px;
}

.nav-links a {
	color: var(--dark-gray);
	font-weight: 500;
	transition: color 0.3s ease;
}

.nav-links a:hover {
	color: var(--primary-color);
	text-decoration: none;
}

.menu-toggle {
	display: none; /* Hidden by default, shown on mobile */
	background: none;
	border: none;
	cursor: pointer;
	padding: 10px;
}

.menu-toggle span {
	display: block;
	width: 25px;
	height: 3px;
	background-color: var(--dark-gray);
	margin: 5px 0;
	transition: all 0.3s ease-in-out;
}

/* Hero Section */
.hero-section {
	background: url('../img/hero_background.png') no-repeat center center/cover;
	color: white;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	position: relative; /* For pseudo-element overlay */
}

.hero-section::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);
	z-index: 1;
}

.hero-content {
	position: relative; /* To be above the overlay */
	z-index: 2;
	max-width: 800px;
	padding: 20px;
}

.hero-content h1 {
	font-size: 3.5rem;
	margin-bottom: 0.5em;
	color: white;
}

.hero-content p {
	font-size: 1.3rem;
	margin-bottom: 1.5em;
}

.hero-content .cta-button {
	margin: 10px 5px; /* Basic margin for spacing if they wrap or are side-by-side */
}

.hero-content .cta-button-alt {
	background-color: var(--secondary-color); /* Green */
}
.hero-content .cta-button-alt:hover {
	background-color: #218838; /* Darker green */
}

.fullscreen-section {
	min-height: 100vh; /* Full viewport height */
}

/* Content Sections */
.content-section {
	padding: 60px 0;
	opacity: 0; /* For animation */
	transform: scale(0.95); /* For animation */
	transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

.content-section:nth-child(even) {
	background-color: var(--light-gray);
}

.section-intro {
	font-size: 1.1rem;
	color: var(--medium-gray);
	max-width: 700px;
	margin: 0 auto 2rem auto;
	text-align: center;
}
.content-section h2 {
	text-align: center;
	margin-bottom: 1.5em;
}

/* Course Detail Item Styling (for courses.html) */
.course-detail-item {
	background-color: #fff; /* Or var(--light-gray) if section bg is white */
	padding: 20px;
	margin-bottom: 25px;
	border-radius: var(--border-radius);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	border-left: 5px solid var(--primary-color); /* Accent border */
}
.course-detail-item h3 {
	color: var(--primary-color);
	margin-top: 0;
	margin-bottom: 10px;
}
.course-detail-item p {
	font-size: 1rem;
	line-height: 1.7;
}

/* Cards Container */
.cards-container {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
	justify-content: center;
}

.card {
	background-color: white;
	border-radius: var(--border-radius);
	box-shadow: var(--box-shadow);
	padding: 25px;
	width: calc(33.333% - 20px); /* Adjust for gap */
	min-width: 280px; /* Minimum card width */
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card img {
	width: 100%;
	height: auto;
	margin-bottom: 15px;
	object-fit: contain;
}

.card h3 {
	margin-bottom: 10px;
	color: var(--primary-color);
}
.card p {
	font-size: 0.95rem;
	margin-bottom: 15px;
	flex-grow: 1; /* Makes text content take available space */
}
.card-link {
	font-weight: bold;
	color: var(--secondary-color);
	margin-top: auto; /* Pushes link to bottom */
}

/* General container for section-wide CTAs, typically centered */
.section-cta-container {
	text-align: center;
	margin-top: 30px;
	margin-bottom: 15px;
}

/* Two Column Layout */
.two-column-layout {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 40px;
}
.column-text,
.column-image {
	flex: 1;
	min-width: 300px; /* Prevents excessive squishing */
}
.column-image img {
	width: 100%;
	height: auto;
	object-fit: cover;
	box-shadow: var(--box-shadow);
}
.reversed-layout .column-text {
	order: 2;
}
.reversed-layout .column-image {
	order: 1;
}

/* For CTAs placed directly within .column-text (usually at the end of text content) */
.column-text > .cta-button {
	margin-top: 20px; /* Provides space above the button */
	display: inline-block; /* Ensures margin-top applies correctly and respects text flow */
}

/* FAQ Section */
.faq-item {
	margin-bottom: 20px;
	background: #fff;
	padding: 15px;
	border-radius: var(--border-radius);
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
.faq-item h3 {
	font-size: 1.2rem;
	color: var(--primary-color);
	margin-bottom: 0.5em;
}

/* Philosophy Section (on courses.html, renamed from #philosophy to #learning-approach related classes) */
#learning-approach h2 {
	/* For the emoji in the heading, assuming it's within h2 */
	display: flex;
	align-items: center;
	justify-content: center;
}
.philosophy-points {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 20px;
	margin-top: 30px;
}
.philosophy-points .point {
	background: var(--background-color);
	padding: 20px;
	border-radius: var(--border-radius);
	box-shadow: var(--box-shadow);
}
.philosophy-points .point h3 {
	color: var(--secondary-color); /* Original style for point h3 */
}

/* Contact Section */
#contact h2 {
	/* For the emoji in the heading */
	display: flex;
	align-items: center;
	justify-content: center;
}
.contact-form-container {
	max-width: 700px;
	margin: 30px auto;
	padding: 30px;
	background-color: var(--light-gray);
	border-radius: var(--border-radius);
	box-shadow: var(--box-shadow);
}
.contact-form-container h3 {
	text-align: center;
	margin-bottom: 1.5rem;
}
.form-group {
	margin-bottom: 20px;
}
.form-group label {
	display: block;
	margin-bottom: 5px;
	font-weight: bold;
	color: var(--dark-gray);
}
.form-group input[type='text'],
.form-group input[type='email'],
.form-group textarea {
	width: 100%;
	padding: 12px;
	border: 1px solid #ccc;
	border-radius: var(--border-radius);
	font-size: 1rem;
}
.form-group textarea {
	resize: vertical;
	min-height: 100px;
}
.form-group-checkbox {
	display: flex;
	align-items: flex-start;
	margin-bottom: 20px;
}

.form-group-checkbox input[type='checkbox'] {
	margin-right: 10px;
	margin-top: 5px;
	width: auto;
	accent-color: var(--primary-color);
}

.form-group-checkbox .checkbox-label {
	font-weight: normal;
	font-size: 0.9rem;
	color: var(--medium-gray);
	line-height: 1.4;
}
.form-group-checkbox .checkbox-label a {
	color: var(--primary-color);
	text-decoration: underline;
}

.contact-details-alt {
	text-align: center;
	margin-top: 40px;
}
.contact-details-alt h3 {
	margin-bottom: 1rem;
}
.contact-details-alt p {
	margin-bottom: 0.5rem;
	font-size: 1.1rem;
	color: var(--medium-gray);
}

/* Footer */
footer {
	background-color: var(--dark-gray);
	color: var(--light-gray);
	padding: 40px 0 20px;
	font-size: 0.9rem;
}
.footer-content {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 30px;
	margin-bottom: 30px;
}
.footer-column {
	flex: 1;
	min-width: 200px;
}
.footer-column h4 {
	color: white;
	margin-bottom: 15px;
	font-size: 1.1rem;
}
.footer-column p,
.footer-column ul {
	margin-bottom: 10px;
}
.footer-column ul {
	list-style: none;
}
.footer-column li a {
	color: var(--light-gray);
	transition: color 0.3s ease;
}
.footer-column li a:hover {
	color: var(--accent-color);
	text-decoration: none;
}
.footer-column a {
	color: var(--accent-color);
}
.copyright {
	text-align: center;
	border-top: 1px solid var(--medium-gray);
	padding-top: 20px;
	color: var(--medium-gray);
}

/* Generic Modal Styles (can be used by form submission modal, etc.) */
.modal {
	display: none; /* Hidden by default */
	position: fixed; /* Stay in place */
	z-index: 2000; /* Sit on top */
	left: 0;
	top: 0;
	width: 100%; /* Full width */
	height: 100%; /* Full height */
	overflow: auto; /* Enable scroll if needed */
	background-color: rgba(0, 0, 0, 0.6); /* Black w/ opacity */
	align-items: center; /* Vertical center */
	justify-content: center; /* Horizontal center */
}

.modal-content {
	background-color: #fff;
	color: var(--text-color);
	margin: auto;
	padding: 20px 30px;
	border: 1px solid #888;
	width: 90%;
	max-width: 450px; /* Adjust as needed */
	border-radius: var(--border-radius);
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
	text-align: center;
}

.modal-header {
	padding-bottom: 10px;
	border-bottom: 1px solid #eee;
	margin-bottom: 15px;
}

.modal-header h4 {
	margin-bottom: 0;
	font-size: 1.5rem;
	color: var(--primary-color);
}

.modal-body {
	padding-top: 10px;
}

.form-modal-message {
	font-size: 1rem;
	margin-bottom: 20px;
	line-height: 1.5;
}

/* Loader for Form Submission Modal */
.loader {
	border: 4px solid #f3f3f3; /* Light grey */
	border-top: 4px solid var(--primary-color); /* Blue */
	border-radius: 50%;
	width: 40px;
	height: 40px;
	animation: spin 1s linear infinite;
	margin: 20px auto; /* Centered */
	display: none; /* Hidden by default, shown by JS */
}

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

/* Cookie Consent Modal */
.cookie-modal {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: rgba(0, 0, 0, 0.9);
	color: white;
	padding: 20px;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
	z-index: 2000;
	display: none;
	align-items: center;
	justify-content: center;
	text-align: center;
}
.cookie-modal.show {
	display: flex;
}
.cookie-modal-content {
	max-width: 800px;
}
.cookie-modal p {
	margin-bottom: 15px;
	font-size: 0.95rem;
}
.cookie-modal a {
	color: var(--accent-color);
	text-decoration: underline;
}
.cookie-modal-buttons button {
	background-color: var(--primary-color);
	color: white;
	border: none;
	padding: 10px 20px;
	margin: 0 10px;
	border-radius: var(--border-radius);
	cursor: pointer;
	transition: background-color 0.3s;
}
.cookie-modal-buttons button#declineCookies {
	background-color: var(--medium-gray);
}
.cookie-modal-buttons button:hover {
	opacity: 0.9;
}

/* Legal Pages Basic Styling */
.legal-page {
	padding: 40px 0;
}
.legal-page .container {
	max-width: 800px;
	background: #fff;
	padding: 30px;
	border-radius: var(--border-radius);
	box-shadow: var(--box-shadow);
}
.legal-page h1 {
	font-size: 1.5rem;
	margin-bottom: 1.5em;
	text-align: center;
}
.legal-page h2 {
	margin-top: 1.5em;
	margin-bottom: 0.8em;
	font-size: 1.5rem;
	color: var(--dark-gray);
}
.legal-page p,
.legal-page ul,
.legal-page ol {
	margin-bottom: 1em;
}
.legal-page ul,
.legal-page ol {
	padding-left: 20px;
}

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

	.cards-container {
		flex-direction: column;
		align-items: center;
	}
	.card {
		width: 80%;
		max-width: 400px;
	}
}

@media (max-width: 768px) {
	body {
		font-size: 15px;
		padding-top: 70px;
	} /* Adjusted padding for potentially smaller fixed navbar */
	.container {
		width: 95%;
	}

	.nav-links {
		display: none;
		flex-direction: column;
		width: 100%;
		position: absolute;
		top: 60px; /* Adjusted based on typical navbar height on mobile */
		left: 0;
		background-color: white;
		box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
		z-index: 999; /* Ensure it's above content but below navbar if navbar is 1000 */
	}
	.nav-links.active {
		display: flex;
	}
	.nav-links li {
		margin: 0;
		text-align: center;
		border-bottom: 1px solid var(--light-gray);
	}
	.nav-links li a {
		display: block;
		padding: 15px;
	}
	.menu-toggle {
		display: block;
	}
	.menu-toggle.active span:nth-child(1) {
		transform: rotate(45deg) translate(5px, 5px);
	}
	.menu-toggle.active span:nth-child(2) {
		opacity: 0;
	}
	.menu-toggle.active span:nth-child(3) {
		transform: rotate(-45deg) translate(7px, -6px);
	}

	.hero-content h1 {
		font-size: 2.2rem;
	}
	.hero-content p {
		font-size: 1rem;
	}
	h1 {
		font-size: 2.2rem;
	}
	h2 {
		font-size: 1.8rem;
	}
	h3 {
		font-size: 1.4rem;
	}

	.two-column-layout {
		flex-direction: column;
	}
	.reversed-layout .column-text,
	.reversed-layout .column-image {
		order: initial;
	}
	.column-image {
		margin-top: 20px;
	}
	.footer-content {
		flex-direction: column;
		text-align: center;
	}
	.footer-column {
		margin-bottom: 20px;
	}
	.cookie-modal-content {
		flex-direction: column;
	}
	.cookie-modal-buttons {
		margin-top: 10px;
	}
	.cookie-modal-buttons button {
		margin: 5px;
		width: calc(50% - 10px);
	}
}

@media (max-width: 480px) {
	.hero-content h1 {
		font-size: 2rem;
	}
	.hero-content .cta-button {
		display: block;
		margin: 10px auto; /* Center block buttons */
		width: fit-content; /* Don't stretch full width */
		min-width: 200px; /* Decent tap target */
	}
	.hero-content .cta-button:last-child {
		margin-bottom: 0;
	}

	.cta-button {
		padding: 10px 20px;
		font-size: 0.9rem;
	}
	.card {
		width: 95%;
	}
	.contact-form-container {
		padding: 20px;
	}
}
