/* Reset and Base Styles */
:root {
	--primary-color: #4dabf7; /* Lighter Blue for dark mode */
	--primary-color-hover: #228be6; /* Darker, saturated blue for hover */
	--secondary-color: #868e96; /* Lighter Gray */
	--accent-color: #40c057; /* Lighter Green */

	--background-color: #1a1d21; /* Dark bluish gray - Main background */
	--text-color: #d8dde2; /* Light grayish blue - Main text */
	--dark-text-color: #ffffff; /* White - Headings */

	--light-gray-bg: #252a30; /* Slightly lighter dark - Used for alt sections, FAQ question bg */
	--card-bg-color: #2b3036; /* Background for cards, benefit items, success items */

	--header-bg-color: #212529; /* Dark for header and mobile menu */
	--footer-bg-color: #121417; /* Very dark for footer */
	--footer-text-color: #adb5bd; /* Specific text color for footer */

	--input-bg-color: #2c3238; /* Background for form inputs */
	--input-border-color: #4a5058; /* Border for form inputs */
	--input-focus-shadow-color: rgba(
		77,
		171,
		247,
		0.25
	); /* Primary color with alpha for focus */

	--border-color-dark: #3e444c; /* General border color for dark elements */
	--shadow-color: rgba(0, 0, 0, 0.4); /* General shadow for depth */
	--shadow-color-hover: rgba(0, 0, 0, 0.5);

	--container-width: 1140px;
	--border-radius: 8px;
	--font-primary: 'Roboto', sans-serif;
	--font-secondary: 'Montserrat', sans-serif;
}

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

body {
	font-family: var(--font-primary);
	color: var(--text-color);
	background-color: var(--background-color);
	line-height: 1.7;
	font-size: 16px;
	/* Dark theme scrollbar styling */
	scrollbar-width: thin;
	scrollbar-color: var(--light-gray-bg) var(--background-color);
}

/* Webkit Scrollbar Styling */
::-webkit-scrollbar {
	width: 10px;
	height: 10px;
}
::-webkit-scrollbar-track {
	background: var(--background-color);
}
::-webkit-scrollbar-thumb {
	background-color: var(--light-gray-bg);
	border-radius: 5px;
	border: 2px solid var(--background-color); /* Creates padding around thumb */
}
::-webkit-scrollbar-thumb:hover {
	background-color: var(--secondary-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-secondary);
	font-weight: 700;
	color: var(--dark-text-color);
	margin-bottom: 0.75em;
}

h1 {
	font-size: 2.8rem;
	line-height: 1.2;
}
h2 {
	font-size: 2.2rem;
	line-height: 1.25;
}
h3 {
	font-size: 1.6rem;
	line-height: 1.3;
}

p {
	margin-bottom: 1rem;
}

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

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

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

ul {
	list-style-position: inside;
	padding-left: 0; /* Reset for custom styling if needed */
}
ul li {
	margin-bottom: 0.5rem;
}

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

.text-center {
	text-align: center;
}

.mt-2 {
	margin-top: 2rem;
}

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

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

.logo {
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	font-size: 1rem;
	font-weight: 700;
	color: var(--dark-text-color);
	font-family: var(--font-secondary);
}

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

.logo:hover {
	text-decoration: none;
	color: var(--primary-color);
}

header nav ul {
	list-style: none;
	display: flex;
	gap: 1.5rem;
	/* For mobile menu background */
	background-color: var(--header-bg-color);
}

header nav ul li a {
	font-weight: 600;
	color: var(--text-color);
	font-family: var(--font-secondary);
	font-size: 0.95rem;
}

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

.menu-toggle {
	display: none; /* Hidden on desktop */
	background: none;
	border: none;
	cursor: pointer;
	padding: 0.5rem;
}

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

/* Hero Section */
.hero-section {
	background: url('../img/hero.webp') no-repeat center center/cover;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	position: relative; /* For pseudo-element overlay */
}
.hero-section::before {
	/* Dark overlay for 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-section.full-screen {
	min-height: calc(
		100vh - 70px
	); /* Adjust 70px based on actual header height */
}

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

.hero-content h1 {
	color: #fff;
	font-size: 3.5rem;
	margin-bottom: 1rem;
}

.hero-content p {
	font-size: 1.2rem;
	margin-bottom: 2rem;
	font-weight: 300;
}

.cta-button {
	background-color: var(--primary-color);
	color: #fff; /* Ensuring text is white for contrast */
	padding: 0.8rem 2rem;
	border-radius: var(--border-radius);
	text-decoration: none;
	font-weight: 700;
	font-family: var(--font-secondary);
	font-size: 1rem;
	transition: background-color 0.3s ease, transform 0.2s ease;
	display: inline-block;
	border: none;
	cursor: pointer;
}

.cta-button:hover {
	background-color: var(--primary-color-hover);
	text-decoration: none;
	color: #fff; /* Ensuring text is white for contrast */
	transform: translateY(-2px);
}

/* Content Sections */
.content-section {
	padding: 60px 0;
}
.content-section.alt-bg {
	background-color: var(--light-gray-bg);
}
.page-hero {
	/* For about first section if not full screen */
	padding-top: 40px; /* Less padding if it's right after header */
	padding-bottom: 40px;
}

.grid-two-cols {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	align-items: center;
}

.grid-two-cols .image-content {
	text-align: center; /* Or can be adjusted */
}
.grid-two-cols .image-content img {
	max-width: 100%;
	border-radius: var(--border-radius);
	box-shadow: 0 6px 12px var(--shadow-color);
}

/* Cards Container */
.cards-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
	margin-top: 2rem;
}

.course-card {
	background-color: var(--card-bg-color);
	border-radius: var(--border-radius);
	box-shadow: 0 4px 8px var(--shadow-color);
	padding: 1.5rem;
	text-align: center;
	display: flex;
	flex-direction: column;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.course-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 6px 16px var(--shadow-color-hover);
}

.course-card img {
	width: 100%;
	height: auto;
	margin: 0 auto 1rem auto;
	object-fit: contain;
}

.course-card h3 {
	margin-bottom: 0.5rem;
}
.course-card p {
	font-size: 0.9rem;
	flex-grow: 1;
	margin-bottom: 1rem;
}
.learn-more-link {
	display: inline-block;
	margin-top: auto; /* Pushes to bottom if card heights vary due to content */
	font-weight: 600;
	color: var(--accent-color);
	font-size: 0.9rem;
}
.learn-more-link:hover {
	text-decoration: underline;
}

/* Benefits Grid */
.benefits-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 2rem;
	margin-top: 2rem;
}
.benefit-item {
	padding: 1.5rem;
	border: 1px solid var(--border-color-dark);
	border-radius: var(--border-radius);
	background-color: var(--card-bg-color);
}
.benefit-item h3 {
	font-size: 1.3rem;
}

/* Success Grid (Page 2) */
.success-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 2rem;
	margin-top: 2rem;
}
.success-item {
	background-color: var(--card-bg-color);
	padding: 1.5rem;
	border-radius: var(--border-radius);
	box-shadow: 0 2px 8px var(--shadow-color);
}
.success-item h3 {
	font-size: 1.3rem;
	color: var(--primary-color);
}

/* FAQ Section */
.faq-accordion .faq-item {
	margin-bottom: 1rem;
	border: 1px solid var(--border-color-dark);
	border-radius: var(--border-radius);
	overflow: hidden; /* Ensures border radius is respected by children */
}
.faq-question {
	width: 100%;
	background-color: var(--light-gray-bg);
	border: none;
	padding: 1rem 1.5rem;
	text-align: left;
	font-size: 1.1rem;
	font-weight: 600;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-family: var(--font-secondary);
	color: var(--text-color); /* Ensure question text is light */
}
.faq-question:hover {
	background-color: #2e343a; /* Slightly lighter than --light-gray-bg */
}
.faq-icon {
	font-size: 1.5rem;
	transition: transform 0.3s ease;
}
.faq-question[aria-expanded='true'] .faq-icon {
	transform: rotate(45deg);
}
.faq-answer {
	box-sizing: content-box;
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease-out, padding 0.3s ease-out;
	background-color: var(
		--background-color
	); /* Use main background for answer area */
}
.faq-answer p {
	/* padding: 1.5rem; Add padding only when expanded */
	margin-bottom: 0;
}

/* Contact Form */
#contact-form .form-group {
	margin-bottom: 1.5rem;
}
#contact-form label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 600;
	color: var(--text-color); /* Ensure label is light */
}
#contact-form input[type='text'],
#contact-form input[type='email'],
#contact-form textarea {
	width: 100%;
	padding: 0.75rem;
	border: 1px solid var(--input-border-color);
	border-radius: var(--border-radius);
	font-family: var(--font-primary);
	font-size: 1rem;
	background-color: var(--input-bg-color);
	color: var(--text-color);
}
#contact-form input[type='text']:focus,
#contact-form input[type='email']:focus,
#contact-form textarea:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 0 0.2rem var(--input-focus-shadow-color);
}
#contact-form textarea {
	resize: vertical;
}

#contact-form .form-group#consent-group {
	/* Styling for the consent checkbox group */
	display: flex;
	align-items: center;
	margin-bottom: 1.5rem;
}

#contact-form input[type='checkbox'] {
	width: auto; /* Override default 100% width for inputs */
	margin-right: 0.75rem; /* Space between checkbox and label text */
	accent-color: var(--primary-color); /* Style the checkmark color */
	transform: scale(1.2); /* Make checkbox slightly larger */
	background-color: transparent; /* Remove inherited background */
	border: none; /* Remove inherited border */
	padding: 0; /* Remove inherited padding */
}

#contact-form input[type='checkbox']:focus {
	outline: 2px solid var(--primary-color); /* Simple focus outline for accessibility */
	box-shadow: none; /* Remove inherited box-shadow */
}

#contact-form label.checkbox-label {
	font-weight: normal; /* Standard font weight for checkbox label */
	color: var(--text-color);
	margin-bottom: 0; /* Remove default label margin-bottom */
	display: inline; /* Allow it to sit next to checkbox */
	font-size: 0.9rem;
	line-height: 1.4; /* Adjust line height for better readability */
}

/* Footer */
footer {
	background-color: var(--footer-bg-color);
	color: var(--footer-text-color);
	padding: 40px 0 20px;
	font-size: 0.9rem;
}
.footer-content {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 2rem;
	margin-bottom: 2rem;
}
.footer-col h4 {
	color: var(--dark-text-color); /* White */
	margin-bottom: 1rem;
	font-family: var(--font-secondary);
}
.footer-col p {
	margin-bottom: 0.5rem;
	line-height: 1.6;
	color: var(--footer-text-color);
}
.footer-col ul {
	list-style: none;
	padding: 0;
}
.footer-col ul li {
	margin-bottom: 0.5rem;
}
.footer-col ul li a {
	color: var(--footer-text-color);
}
.footer-col ul li a:hover {
	color: var(--primary-color);
	text-decoration: underline;
}
.footer-col a {
	/* For email/phone in contact info */
	color: var(--footer-text-color);
}
.footer-col a:hover {
	color: var(--primary-color);
}
.copyright {
	text-align: center;
	padding-top: 1.5rem;
	border-top: 1px solid var(--border-color-dark);
	font-size: 0.85rem;
	color: var(--footer-text-color);
}

/* Cookie Consent Modal */
.cookie-modal {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: rgba(37, 42, 48, 0.95); /* --light-gray-bg with alpha */
	color: var(--text-color);
	padding: 1.5rem;
	z-index: 2000; /* Above other elements but below form submission modal */
	display: none; /* Hidden by default */
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}
.cookie-modal.show {
	display: block;
}
.cookie-modal-content {
	max-width: var(--container-width);
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
}
.cookie-modal-content p {
	margin-bottom: 0; /* Reset default p margin */
	margin-right: 1rem; /* Space before buttons */
	flex-grow: 1;
	color: var(--text-color); /* Explicitly set text color */
}
.cookie-modal-content a {
	color: var(--primary-color);
	text-decoration: underline;
}
.cookie-modal-buttons button {
	padding: 0.6rem 1.2rem;
	margin-left: 0.5rem;
	border: none;
	border-radius: var(--border-radius);
	cursor: pointer;
	font-weight: 600;
	font-family: var(--font-secondary);
}
#cookie-accept-btn {
	background-color: var(--accent-color);
	color: #fff; /* Ensure button text is white for contrast */
}
#cookie-accept-btn:hover {
	background-color: #2f9e44; /* Darken accent for hover */
}
#cookie-reject-btn {
	background-color: var(--secondary-color);
	color: #fff; /* Ensure button text is white for contrast */
}
#cookie-reject-btn:hover {
	background-color: #616870; /* Darken secondary for hover */
}

/* Animation */
[data-animate] {
	opacity: 0;
	transform: scale(0.95) translateY(20px);
	transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-animate].is-visible {
	opacity: 1;
	transform: scale(1) translateY(0);
}

/* Form Submission Modal */
.submission-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.6); /* Darker overlay */
	display: none; /* Hidden by default */
	justify-content: center;
	align-items: center;
	z-index: 3000; /* Above cookie modal */
	opacity: 0;
	transition: opacity 0.3s ease;
}

.submission-modal.show {
	display: flex;
	opacity: 1;
}

.submission-modal-content {
	background-color: var(--card-bg-color);
	padding: 2rem 3rem;
	border-radius: var(--border-radius);
	text-align: center;
	box-shadow: 0 5px 15px var(--shadow-color);
	color: var(--text-color);
}

.submission-modal-content p {
	margin-top: 1rem;
	font-size: 1.1rem;
}

.spinner {
	width: 50px;
	height: 50px;
	border: 5px solid var(--secondary-color);
	border-top-color: var(--primary-color);
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin: 0 auto;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

/* Responsive Design */
@media (max-width: 992px) {
	h1 {
		font-size: 2.5rem;
	}
	.hero-content h1 {
		font-size: 3rem;
	}
	h2 {
		font-size: 2rem;
	}
	.grid-two-cols {
		grid-template-columns: 1fr;
		gap: 2rem;
	}
	.grid-two-cols .image-content {
		order: -1; /* Moves image above text on mobile for some layouts */
		margin-bottom: 1.5rem;
	}
	#contact.grid-two-cols .image-content {
		order: initial; /* Keep contact image below form or to side if still possible */
	}
	.contact-info-col {
		padding-left: 0;
		margin-top: 2rem;
	}
	.contact-info-col img {
		display: block;
		margin-left: auto;
		margin-right: auto;
		max-width: 300px; /* Control size on smaller screens */
	}
}

@media (max-width: 768px) {
	body {
		font-size: 15px;
	}
	h1 {
		font-size: 2.2rem;
	}
	.hero-content h1 {
		font-size: 2.5rem;
	}
	h2 {
		font-size: 1.8rem;
	}
	.hero-section.full-screen {
		min-height: 80vh;
	}

	header nav ul {
		display: none; /* Hide menu items by default */
		flex-direction: column;
		position: absolute;
		top: 65px; /* Adjust based on header height */
		left: 0;
		width: 100%;
		background-color: var(
			--header-bg-color
		); /* Dark background for mobile menu */
		box-shadow: 0 2px 4px var(--shadow-color);
		padding: 1rem 0;
	}
	header nav ul.active {
		display: flex; /* Show when active */
	}
	header nav ul li {
		text-align: center;
		margin: 0.5rem 0;
	}
	.menu-toggle {
		display: block; /* Show hamburger icon */
	}
	.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);
	}

	.cards-container {
		grid-template-columns: 1fr; /* Stack cards */
	}
	.benefits-grid {
		grid-template-columns: 1fr;
	}
	.success-grid {
		grid-template-columns: 1fr;
	}
	.footer-content {
		grid-template-columns: 1fr; /* Stack footer columns */
		text-align: center;
	}
	.footer-col ul {
		padding-left: 0;
	}

	.cookie-modal-content {
		flex-direction: column;
		text-align: center;
	}
	.cookie-modal-content p {
		margin-right: 0;
		margin-bottom: 1rem;
	}
	.cookie-modal-buttons {
		width: 100%;
		display: flex;
		justify-content: center;
	}
}

@media (max-width: 576px) {
	.hero-content h1 {
		font-size: 2rem;
	}
	.hero-content p {
		font-size: 1rem;
	}
	.cta-button {
		padding: 0.7rem 1.5rem;
		font-size: 0.9rem;
	}
	.content-section {
		padding: 40px 0;
	}
	h1 {
		font-size: 1.5rem;
	}
	h2 {
		font-size: 1.6rem;
	}
}
