/* Reset and Base Styles */
:root {
	--primary-color: #0056b3; /* Deep Blue for branding and important elements */
	--primary-hover-color: #00428a;
	--secondary-color: #4a90e2; /* Lighter Blue for accents, links */
	--text-color: #333;
	--text-light-color: #555;
	--background-color: #f4f7f6; /* Light, clean background */
	--card-background-color: #ffffff;
	--border-color: #e0e0e0;
	--success-color: #28a745;
	--error-color: #dc3545;
	--font-family-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	--font-family-headings: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana,
		sans-serif; /* Slightly different for headings if desired */
	--box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	--box-shadow-hover: 0 6px 16px rgba(0, 0, 0, 0.12);
	--border-radius: 8px;
}

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

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-family-main);
	line-height: 1.7;
	color: var(--text-color);
	background-color: var(--background-color);
	font-size: 16px;
	margin: 0;
}

html {
	scroll-behavior: smooth;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-family-headings);
	color: var(--primary-color);
	margin-bottom: 0.75em;
	line-height: 1.3;
}

h1 {
	font-size: 2.8em;
}
h2 {
	font-size: 2.2em;
}
h3 {
	font-size: 1.8em;
}
h4 {
	font-size: 1.4em;
}

p {
	margin-bottom: 1em;
	color: var(--text-light-color);
}

a {
	color: var(--secondary-color);
	text-decoration: none;
	transition: color 0.3s ease;
}

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

ul {
	list-style-position: inside;
	padding-left: 0;
}

ul li {
	margin-bottom: 0.5em;
}

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

/* Header & Navigation */
header {
	background-color: var(--card-background-color);
	padding: 1.2em 0;
	box-shadow: var(--box-shadow);
	position: sticky;
	top: 0;
	z-index: 1000;
	border-bottom: 1px solid var(--border-color);
}

header .container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	position: relative; /* For absolute positioning of mobile menu */
}

.logo-link {
	display: flex;
	align-items: center;
	text-decoration: none;
}

.logo-link h1 {
	font-size: 1.2em;
	margin-bottom: 0;
	color: var(--primary-color);
}

.logo-img {
	height: 40px;
	width: auto;
}

/* Desktop Navigation Styles */
header nav#primary-navigation ul {
	list-style-type: none;
	display: flex;
	gap: 25px;
	padding: 0;
	margin: 0;
}

header nav#primary-navigation ul li a {
	font-weight: 600;
	font-size: 1em;
	padding: 0.5em 0;
	position: relative;
	text-decoration: none;
	color: var(--text-light-color);
}

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

header nav#primary-navigation ul li a:hover::after,
header nav#primary-navigation ul li a.active::after {
	width: 100%;
}
header nav#primary-navigation ul li a:hover {
	color: var(--primary-color);
	text-decoration: none;
}

/* Mobile Navigation Toggle Button */
.mobile-nav-toggle {
	display: none; /* Hidden by default, shown in media query */
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 0.5em;
	z-index: 1001;
	position: relative;
}
.mobile-nav-toggle .hamburger-icon {
	display: block;
	width: 24px;
	height: 2px;
	background-color: var(--primary-color);
	position: relative;
	transition: background-color 0.1s 0.2s ease-in-out;
}
.mobile-nav-toggle .hamburger-icon::before,
.mobile-nav-toggle .hamburger-icon::after {
	content: '';
	position: absolute;
	left: 0;
	width: 24px;
	height: 2px;
	background-color: var(--primary-color);
	transition: transform 0.3s ease-in-out, top 0.3s ease-in-out;
}
.mobile-nav-toggle .hamburger-icon::before {
	top: -7px;
}
.mobile-nav-toggle .hamburger-icon::after {
	top: 7px;
}

/* Active state for hamburger (X icon) */
.mobile-nav-toggle[aria-expanded='true'] .hamburger-icon {
	background-color: transparent;
	transition-delay: 0s;
}
.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;
}

/* Accessibility class for screen readers */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border-width: 0;
}

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

/* Hero Section */
#hero {
	background: linear-gradient(
		135deg,
		var(--primary-color) 0%,
		var(--secondary-color) 100%
	);
	color: #fff;
	text-align: center;
	padding: 80px 0;
}

#hero h2 {
	color: #fff;
	font-size: 3em;
	margin-bottom: 0.5em;
}

#hero p {
	color: #f0f0f0;
	font-size: 1.2em;
	max-width: 700px;
	margin: 0 auto 1.5em auto;
}

.cta-button,
.learn-more-btn {
	display: inline-block;
	background-color: #fff;
	color: var(--primary-color);
	padding: 12px 30px;
	border-radius: var(--border-radius);
	text-decoration: none;
	font-weight: bold;
	font-size: 1.1em;
	transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cta-button:hover,
.learn-more-btn:hover {
	background-color: var(--primary-hover-color);
	color: #fff;
	text-decoration: none;
	transform: translateY(-2px);
}

/* Why molestias-illum.com Section */
#why-li .container {
	display: flex;
	align-items: center;
	gap: 40px;
}

#why-li .text-content {
	flex: 1;
}

#why-li .image-content {
	flex: 1;
	text-align: center;
}

#why-li .image-content img {
	width: 100%;
	max-width: 450px;
	box-shadow: var(--box-shadow);
}

#why-li ul {
	padding-left: 20px;
}
#why-li ul li {
	color: var(--text-light-color);
}
#why-li ul li strong {
	color: var(--text-color);
}

/* Programs Section */
#programs {
	background-color: #fff; /* Slightly different background for variety */
}
#programs .container > p {
	/* The intro paragraph */
	text-align: center;
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
	font-size: 1.1em;
	margin-bottom: 2em;
}
#programs h2 {
	text-align: center;
}

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

.program-card {
	background-color: var(--card-background-color);
	padding: 25px;
	border-radius: var(--border-radius);
	box-shadow: var(--box-shadow);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	display: flex;
	flex-direction: column;
}

.program-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--box-shadow-hover);
}

.program-card img {
	width: 100%; /* Adjust as needed */
	height: auto;
	margin-bottom: 15px;
	object-fit: contain; /* Or cover, depending on images */
	align-self: flex-start; /* Or center */
}

.program-card h3 {
	font-size: 1.5em;
	color: var(--primary-color);
	margin-bottom: 10px;
}

.program-card p {
	font-size: 0.95em;
	flex-grow: 1; /* Makes text take available space before button */
	margin-bottom: 20px;
}

.program-card .learn-more-btn {
	background-color: var(--primary-color);
	color: #fff;
	align-self: flex-start; /* Aligns button to the left */
}
.program-card .learn-more-btn:hover {
	background-color: var(--primary-hover-color);
	color: #fff;
}

/* Footer */
footer {
	background-color: var(--primary-color);
	color: #f0f0f0;
	padding: 50px 0 20px;
}

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

.footer-column h4 {
	color: #fff;
	margin-bottom: 15px;
	font-size: 1.3em;
}

.footer-column p,
.footer-column ul li {
	color: #ccc;
	margin-bottom: 8px;
	font-size: 0.95em;
}

.footer-column a {
	color: #fff;
	text-decoration: none;
	transition: opacity 0.3s ease;
}

.footer-column a:hover {
	opacity: 0.8;
	text-decoration: underline;
}

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

.copyright {
	text-align: center;
	font-size: 0.9em;
	padding-top: 20px;
	border-top: 1px solid #3c7dc2; /* Lighter border within footer */
	color: #ccc;
}

/* Cookie Consent Modal */
.modal {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: rgba(0, 0, 0, 0.9);
	color: #fff;
	padding: 25px 0;
	z-index: 2000;
	display: none; /* Hidden by default, JS handles display */
	box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.2);
}

.modal.show {
	display: block;
}

.modal-content {
	width: 90%;
	max-width: 800px;
	margin: 0 auto;
	text-align: center;
}

.modal-content h3 {
	color: #fff;
	margin-bottom: 10px;
}

.modal-content p {
	color: #f0f0f0;
	margin-bottom: 20px;
	font-size: 0.95em;
}

.modal-buttons button {
	background-color: var(--secondary-color);
	color: #fff;
	border: none;
	padding: 12px 25px;
	margin: 0 10px;
	border-radius: var(--border-radius);
	cursor: pointer;
	font-weight: bold;
	transition: background-color 0.3s ease, transform 0.2s ease;
}

.modal-buttons button:hover {
	background-color: #3a7bc8; /* Slightly lighter blue for hover */
	transform: translateY(-1px);
}

.modal-buttons button#declineCookies {
	background-color: #6c757d; /* Gray for decline */
}
.modal-buttons button#declineCookies:hover {
	background-color: #5a6268;
}

/* Legal Pages */
.legal-page .container {
	padding-top: 30px;
	padding-bottom: 30px;
	background-color: var(--card-background-color);
	border-radius: var(--border-radius);
	box-shadow: var(--box-shadow);
	margin-top: 30px;
	margin-bottom: 30px;
}

.legal-page h1 {
	font-size: 1.5em;
	margin-bottom: 0.5em;
	border-bottom: 2px solid var(--primary-color);
	padding-bottom: 0.3em;
}
.legal-page h1 + p em {
	/* "Last Updated" text */
	display: block;
	margin-bottom: 2em;
	font-size: 0.9em;
	color: var(--text-light-color);
}

.legal-page h2 {
	font-size: 1.5em;
	margin-top: 1.5em;
	margin-bottom: 0.7em;
	color: var(--primary-color);
}

.legal-page p,
.legal-page ul li {
	line-height: 1.8;
	color: var(--text-color);
}
.legal-page ul {
	list-style-type: disc;
	padding-left: 25px;
	margin-bottom: 1em;
}

/* About & Contact Page Specifics */
#instructors .section-image,
#success-community .section-image {
	width: 100%;
	max-width: 600px;
	margin: 30px auto;
	box-shadow: var(--box-shadow);
}
#instructors p,
#success-community p {
	text-align: center;
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
	font-size: 1.1em;
}
#instructors h2,
#success-community h2 {
	text-align: center;
}

#faq-contact .container {
	display: flex;
	gap: 40px;
	flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.faq-column,
.contact-column {
	flex: 1;
	width: 50%; /* Ensure they don't get too squished */
}

.faq-column h2,
.contact-column h2 {
	margin-bottom: 1.5em;
}

.faq-item {
	margin-bottom: 15px;
	border: 1px solid var(--border-color);
	border-radius: var(--border-radius);
	overflow: hidden; /* To contain background of question */
}

.faq-question {
	width: 100%;
	background-color: var(--card-background-color);
	color: var(--primary-color);
	padding: 15px 20px;
	text-align: left;
	border: none;
	font-weight: bold;
	font-size: 1.1em;
	cursor: pointer;
	transition: background-color 0.3s ease;
	position: relative; /* For ::after pseudo-element */
}

.faq-question::after {
	/* Arrow indicator */
	content: '▼';
	position: absolute;
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
	transition: transform 0.3s ease;
}

.faq-question[aria-expanded='true']::after {
	transform: translateY(-50%) rotate(180deg);
}

.faq-question:hover {
	background-color: #e9ecef;
}

.faq-answer {
	padding: 0 20px; /* Initially no padding for hidden state */
	background-color: #fdfdfd;
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}
.faq-answer p {
	padding: 15px 0;
	margin-bottom: 0;
	color: var(--text-light-color);
}
.faq-item.active .faq-answer {
	/* JS will add 'active' class to item */
	max-height: 500px; /* Adjust if answers are very long */
	padding: 10px 20px;
}

/* Contact Form */
#contactForm .form-group {
	margin-bottom: 20px;
}

#contactForm label {
	display: block;
	margin-bottom: 8px;
	font-weight: bold;
	color: var(--text-color);
}

#contactForm input[type='text'],
#contactForm input[type='email'],
#contactForm textarea {
	width: 100%;
	padding: 12px;
	border: 1px solid var(--border-color);
	border-radius: var(--border-radius);
	font-size: 1em;
	font-family: var(--font-family-main);
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#contactForm input[type='text']:focus,
#contactForm input[type='email']:focus,
#contactForm textarea:focus {
	border-color: var(--primary-color);
	box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.25);
	outline: none;
}

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

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

.form-group-checkbox input[type='checkbox'] {
	width: auto; /* Override full width for inputs */
	margin-top: 2px; /* Align with text */
	accent-color: var(--primary-color);
}

.form-group-checkbox .checkbox-label {
	font-weight: normal; /* Override default label bold */
	color: var(--text-light-color);
	margin-bottom: 0; /* Override default label margin */
	font-size: 0.9em;
}

#contactForm .cta-button {
	/* Re-use cta-button styles */
	background-color: var(--primary-color);
	color: #fff;
	border: none;
	cursor: pointer;
}
#contactForm .cta-button:hover {
	background-color: var(--primary-hover-color);
}

.form-status-message {
	margin-top: 15px;
	font-weight: bold;
	padding: 10px;
	border-radius: var(--border-radius);
	display: none; /* Hidden by default */
}
.form-status-message.success {
	background-color: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
	display: block;
}
.form-status-message.error {
	background-color: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
	display: block;
}
.contact-form-image {
	width: 100%;
	margin-top: 20px;
	max-width: 350px;
	margin-left: auto;
	margin-right: auto;
}

/* Form Submission Modal Styles */
#formSubmissionModal .modal-content {
	text-align: center;
}

#formSubmissionModal h3 {
	color: #fff;
	margin-bottom: 15px;
}

#formSubmissionModal p {
	color: #f0f0f0;
	font-size: 1.1em;
	line-height: 1.6;
}

.spinner {
	border: 4px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	border-top: 4px solid #fff;
	width: 40px;
	height: 40px;
	animation: spin 1s linear infinite;
	margin: 0 auto 10px auto;
}

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

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

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

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

	#why-li .container {
		flex-direction: column;
		text-align: center;
	}
	#why-li .image-content img {
		margin-top: 20px;
	}
}

@media (max-width: 768px) {
	.faq-column,
	.contact-column {
		flex: 1;
		width: 100%; /* Ensure they don't get too squished */
	}

	header .container {
		flex-direction: row;
		gap: 15px;
	}
	.mobile-nav-toggle {
		display: block;
	}

	header nav#primary-navigation {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background-color: var(--card-background-color);
		box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
		z-index: 999;
		padding: 0;
		max-height: 0;
		overflow: hidden;
		opacity: 0;
		transition: max-height 0.3s ease-out, padding-top 0.3s ease-out,
			padding-bottom 0.3s ease-out, opacity 0.2s ease-out;
	}

	header nav#primary-navigation.mobile-nav-active {
		max-height: 20rem;
		padding-top: 0.5em;
		padding-bottom: 0.5em;
		opacity: 1;
	}

	header nav#primary-navigation ul {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		width: 100%;
	}

	header nav#primary-navigation ul li {
		width: 100%;
		margin-bottom: 0;
	}

	header nav#primary-navigation ul li a {
		padding: 0.8em 1.5em;
		display: block;
		width: 100%;
		text-align: center;
		font-size: 1.05em;
		color: var(--primary-color);
		border-bottom: 1px solid var(--border-color);
		font-weight: 500;
	}
	header nav#primary-navigation ul li:last-child a {
		border-bottom: none;
	}

	header nav#primary-navigation ul li a::after {
		display: none;
	}

	header nav#primary-navigation ul li a:hover {
		background-color: #f8f9fa;
		color: var(--primary-hover-color);
		text-decoration: none;
	}
	header nav#primary-navigation ul li a.active {
		background-color: #e9ecef;
	}

	#hero h2 {
		font-size: 2.2em;
	}
	.cta-button,
	.learn-more-btn {
		font-size: 1em;
		padding: 10px 25px;
	}

	.program-cards-container {
		grid-template-columns: 1fr;
	}

	#faq-contact .container {
		flex-direction: column;
	}

	.footer-columns {
		grid-template-columns: 1fr;
		text-align: center;
	}
	.footer-column ul {
		padding-left: 0;
	}
}

@media (max-width: 480px) {
	body {
		font-size: 15px;
	}
	h1 {
		font-size: 2em;
	}
	h2 {
		font-size: 1.7em;
	}
	#hero h2 {
		font-size: 1.8em;
	}
	#hero p {
		font-size: 1em;
	}

	.container {
		width: 95%;
	}
	main section {
		padding: 40px 0;
	}
	header {
		padding: 1em 0;
	}
	.logo-img {
		height: 40px;
	}
	.logo-link h1 {
		font-size: 1.5em;
	}
	.modal-content {
		width: 95%;
	}
	.modal-buttons button {
		padding: 10px 18px;
		font-size: 0.9em;
		margin: 5px;
	}
	.modal-buttons {
		display: flex;
		flex-direction: column;
		gap: 10px;
	}
}
